From 947529321bcf5bc21272cd0e9152d4ee8cd48e5d Mon Sep 17 00:00:00 2001 From: gamalielhere Date: Wed, 17 Oct 2018 13:46:02 -0700 Subject: [PATCH 1/3] Package update, update changelog, add EWO token and reorder contracts --- CHANGELOG.md | 15 + app/scripts/abiDefinitions/ethAbi.json | 52 +- app/scripts/tokens/ethTokens.json | 6 + chrome-extension/contest.html | 4 +- .../css/etherwallet-master.min.css | 2 +- chrome-extension/cx-wallet.html | 4 +- chrome-extension/helpers.html | 4 +- chrome-extension/js/etherwallet-master.js | 125291 ++++++++------- chrome-extension/manifest.json | 2 +- chrome-extension/phishing.html | 4 +- chrome-extension/privacy-policy.html | 4 +- dist/contest.html | 4 +- dist/css/etherwallet-master.min.css | 2 +- dist/helpers.html | 4 +- dist/index.html | 4 +- dist/js/etherwallet-master.js | 125291 ++++++++------- dist/phishing.html | 4 +- dist/privacy-policy.html | 4 +- package.json | 2 +- 19 files changed, 133461 insertions(+), 117242 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83d7bbe699..76d0523d66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +### Rlease v3.23.1 + +### Hotfix + +- Fix unsafe eval [#2103](https://github.com/kvhnuke/etherwallet/pull/2103) + +### Update + +- Update mewconnect version package []() +- Update EOSC chainid [#2105](https://github.com/kvhnuke/etherwallet/pull/2105) + +### New + +- Reorder token contract, add EWO token []() + ### Release v3.23.0 ### New diff --git a/app/scripts/abiDefinitions/ethAbi.json b/app/scripts/abiDefinitions/ethAbi.json index c8b65608d9..b40d43ce3d 100644 --- a/app/scripts/abiDefinitions/ethAbi.json +++ b/app/scripts/abiDefinitions/ethAbi.json @@ -1,26 +1,5 @@ [ { "name": "Select a contract...", "address": "", "abi": "" }, - { - "name": "ImmortalPlayerCharacters (IPCs)", - "address": "0x011C77fa577c500dEeDaD364b8af9e8540b808C0", - "abi": '[ { "constant": false, "inputs": [ { "name": "_newGod", "type": "address" } ], "name": "renounceGodhood", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nameModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "randomizeDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "ImmortalPlayerCharacter" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "name": "", "type": "address", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToChangeName", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateIpcContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "setMaxIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "changePriceToModifyDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "ipcPriceInCents", "outputs": [ { "name": "", "type": "uint256", "value": "25" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_adminToRemove", "type": "address" } ], "name": "removeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getAllPositions", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "Ipcs", "outputs": [ { "name": "name", "type": "string", "value": "Eve" }, { "name": "attributeSeed", "type": "bytes32", "value": "0xf2cfccdde23c372c60a76a2795f77ca9cbd241e6dab46d90a0caad74dc9af739" }, { "name": "dna", "type": "bytes32", "value": "0x4a2899f96d0202f1d682a81d4b868499e963b4052cf44d0eed7ded9ee1782190" }, { "name": "experience", "type": "uint128", "value": "0" }, { "name": "timeOfBirth", "type": "uint128", "value": "1521154199" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newMultiplier", "type": "uint256" } ], "name": "changeCustomizationMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newUrl", "type": "string" } ], "name": "updateIpcUrl", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcIdArray", "type": "uint256[]" }, { "name": "_xpIdArray", "type": "uint256[]" } ], "name": "grantBulkXp", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_index", "type": "uint256" } ], "name": "tokenOfOwnerByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_beneficiaryAddress", "type": "address" }, { "name": "_beneficiaryPrice", "type": "uint256" } ], "name": "setSpecialPriceForAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getAdmins", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToMarketInfo", "outputs": [ { "name": "sellPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" }, { "name": "approvalAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" } ], "name": "ipcIdToExperience", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "setIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "buyIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createRandomizedIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignRandomizedIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_developer", "type": "address" } ], "name": "experiencesOfDeveloper", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_index", "type": "uint256" } ], "name": "tokenByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "1" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "mostCurrentIpcAddress", "outputs": [ { "name": "", "type": "address", "value": "0x011c77fa577c500deedad364b8af9e8540b808c0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "maxIpcPrice", "outputs": [ { "name": "", "type": "uint256", "value": "100000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "name": "owner", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalDevelopers", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "releaseNewTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_dna", "type": "bytes32" } ], "name": "customizeDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "value", "type": "bool" } ], "name": "setAutoTrancheRelease", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAdmin", "type": "address" } ], "name": "addAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "customizationPriceMultiplier", "outputs": [ { "name": "", "type": "uint256", "value": "4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcPriceInWei", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalIpcs", "outputs": [ { "name": "", "type": "uint128", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpc", "outputs": [ { "name": "name", "type": "string" }, { "name": "attributeSeed", "type": "bytes32" }, { "name": "dna", "type": "bytes32" }, { "name": "experience", "type": "uint128" }, { "name": "timeOfBirth", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAmount", "type": "uint256" } ], "name": "changeXpPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_xpId", "type": "uint256" } ], "name": "removeExperience", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "tokensOfOwner", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeNameModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpPrice", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_address", "type": "address" }, { "name": "_name", "type": "string" } ], "name": "setDeveloperName", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateMarketPriceContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newInterfaceId", "type": "bytes4" } ], "name": "addSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "rollAttributes", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": "IPC" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "developer", "type": "address" }, { "name": "value", "type": "bool" } ], "name": "changeDeveloperStatus", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_authorization", "type": "bool" } ], "name": "changeAdminAuthorization", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "dnaModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "1000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToOwner", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToModifyDna", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignIpcSeed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcName", "outputs": [ { "name": "result", "type": "bytes32", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCashier", "type": "address" } ], "name": "setCashier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPriceIncrease", "type": "uint256" } ], "name": "changePriceIncreasePerTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_description", "type": "string" } ], "name": "registerNewExperience", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newSize", "type": "uint256" } ], "name": "changeTrancheSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }, { "name": "data", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "removeSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createIpcSeed", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "tokenURI", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpBalance", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "experiences", "outputs": [ { "name": "developer", "type": "address" }, { "name": "description", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "buyXp", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "ownerIpcCount", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_byteToModify", "type": "uint256" }, { "name": "_modifyAmount", "type": "int256" } ], "name": "modifyDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeDnaModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newName", "type": "string" } ], "name": "changeIpcName", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newExec", "type": "address" } ], "name": "setExec", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_xpId", "type": "uint256" } ], "name": "grantXpToIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "developer", "type": "address" }, { "indexed": true, "name": "xpId", "type": "uint256" } ], "name": "ExperienceEarned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_to", "type": "string" } ], "name": "NameChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_seller", "type": "address" }, { "indexed": true, "name": "_buyer", "type": "address" }, { "indexed": false, "name": "price", "type": "uint256" } ], "name": "Bought", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "from", "type": "uint256" }, { "indexed": false, "name": "to", "type": "uint256" } ], "name": "PriceChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "owner", "type": "address" }, { "indexed": false, "name": "name", "type": "string" } ], "name": "Created", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "dna", "type": "bytes32" }, { "indexed": false, "name": "attributes", "type": "bytes32" } ], "name": "Substantiated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "to", "type": "bytes32" } ], "name": "DnaModified", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_from", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_approved", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_operator", "type": "address" }, { "indexed": false, "name": "_approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" } ]' - }, - { - "name": "ROCK2PAY", - "address": "0x0E3de3B0E3D617FD8D1D8088639bA877feb4d742", - "comment": "", - "abi": '[{"constant": true,"inputs": [{ "name": "_owner", "type": "address" }],"name": "balanceOf","outputs": [{ "name": "balance", "type": "uint256" }],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{ "name": "to", "type": "address" },{ "name": "tokens", "type": "uint256" }],"name": "transfer","outputs": [{ "name": "success", "type": "bool" }],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "addTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "addTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_newState", "type": "uint8" }],"name": "changeState","outputs": [],"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": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "decreaseTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "decreaseTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","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": "_amount", "type": "uint256" },{ "name": "_address", "type": "address" }],"name": "requestPayout","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "state","outputs": [{ "name": "", "type": "uint8" }],"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": "tech","outputs": [{ "name": "", "type": "address" }],"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": "newOwner", "type": "address" }],"name": "transferOwnership","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "newTech", "type": "address" }],"name": "transferTech","outputs": [],"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": "value", "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"}]' - }, - { - "name": "TangguoTaoToken", - "address": "0xfA0eF5E034CaE1AE752d59bdb8aDcDe37Ed7aB97", - "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":"INITIAL_SUPPLY","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":false,"inputs":[],"name":"unpause","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":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","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":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","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":"_owner","type":"address"},{"name":"_spender","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":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"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":"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": "PAX", - "address": "0x8e870d67f660d95d5be530380d0ec0bd388289e1", - "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": "_newLawEnforcementRole","type": "address"}],"name": "setLawEnforcementRole","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "unpause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "unfreeze","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_newSupplyController","type": "address"}],"name": "setSupplyController","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "paused","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "balanceOf","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [],"name": "initialize","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "pause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "freeze","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": "_value","type": "uint256"}],"name": "decreaseSupply","outputs": [{"name": "success","type": "bool"}],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "lawEnforcementRole","outputs": [{"name": "","type": "address"}],"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": "_value","type": "uint256"}],"name": "increaseSupply","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": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "wipeFrozenAddress","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "isFrozen","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [],"name": "supplyController","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": [],"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"},{"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": "oldOwner","type": "address"},{"indexed"true,"name": "newOwner","type": "address"}],"name": "OwnershipTransferred","type": "event"},{"anonymous": false,"inputs": [],"name": "Pause","type": "event"},{"anonymous": false,"inputs": [],"name": "Unpause","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressFrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressUnfrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "FrozenAddressWiped","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldLawEnforcementRole","type": "address"},{"indexed": true,"name": "newLawEnforcementRole","type": "address"}],"name": "LawEnforcementRoleSet","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "to","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyIncreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "from","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyDecreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldSupplyController","type": "address"},{"indexed": true,"name": "newSupplyController","type": "address"}],"name": "SupplyControllerSet","type": "event"}]' - }, { "name": "ADST - AdShares", "address": "0x422866a8F0b032c5cf1DfBDEf31A20F4509562b0", @@ -315,6 +294,11 @@ "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": "ImmortalPlayerCharacters (IPCs)", + "address": "0x011C77fa577c500dEeDaD364b8af9e8540b808C0", + "abi": '[ { "constant": false, "inputs": [ { "name": "_newGod", "type": "address" } ], "name": "renounceGodhood", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nameModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "randomizeDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "ImmortalPlayerCharacter" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "name": "", "type": "address", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToChangeName", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateIpcContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "setMaxIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "changePriceToModifyDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "ipcPriceInCents", "outputs": [ { "name": "", "type": "uint256", "value": "25" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_adminToRemove", "type": "address" } ], "name": "removeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getAllPositions", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "Ipcs", "outputs": [ { "name": "name", "type": "string", "value": "Eve" }, { "name": "attributeSeed", "type": "bytes32", "value": "0xf2cfccdde23c372c60a76a2795f77ca9cbd241e6dab46d90a0caad74dc9af739" }, { "name": "dna", "type": "bytes32", "value": "0x4a2899f96d0202f1d682a81d4b868499e963b4052cf44d0eed7ded9ee1782190" }, { "name": "experience", "type": "uint128", "value": "0" }, { "name": "timeOfBirth", "type": "uint128", "value": "1521154199" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newMultiplier", "type": "uint256" } ], "name": "changeCustomizationMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newUrl", "type": "string" } ], "name": "updateIpcUrl", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcIdArray", "type": "uint256[]" }, { "name": "_xpIdArray", "type": "uint256[]" } ], "name": "grantBulkXp", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_index", "type": "uint256" } ], "name": "tokenOfOwnerByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_beneficiaryAddress", "type": "address" }, { "name": "_beneficiaryPrice", "type": "uint256" } ], "name": "setSpecialPriceForAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getAdmins", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToMarketInfo", "outputs": [ { "name": "sellPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" }, { "name": "approvalAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" } ], "name": "ipcIdToExperience", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "setIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "buyIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createRandomizedIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignRandomizedIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_developer", "type": "address" } ], "name": "experiencesOfDeveloper", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_index", "type": "uint256" } ], "name": "tokenByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "1" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "mostCurrentIpcAddress", "outputs": [ { "name": "", "type": "address", "value": "0x011c77fa577c500deedad364b8af9e8540b808c0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "maxIpcPrice", "outputs": [ { "name": "", "type": "uint256", "value": "100000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "name": "owner", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalDevelopers", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "releaseNewTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_dna", "type": "bytes32" } ], "name": "customizeDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "value", "type": "bool" } ], "name": "setAutoTrancheRelease", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAdmin", "type": "address" } ], "name": "addAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "customizationPriceMultiplier", "outputs": [ { "name": "", "type": "uint256", "value": "4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcPriceInWei", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalIpcs", "outputs": [ { "name": "", "type": "uint128", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpc", "outputs": [ { "name": "name", "type": "string" }, { "name": "attributeSeed", "type": "bytes32" }, { "name": "dna", "type": "bytes32" }, { "name": "experience", "type": "uint128" }, { "name": "timeOfBirth", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAmount", "type": "uint256" } ], "name": "changeXpPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_xpId", "type": "uint256" } ], "name": "removeExperience", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "tokensOfOwner", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeNameModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpPrice", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_address", "type": "address" }, { "name": "_name", "type": "string" } ], "name": "setDeveloperName", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateMarketPriceContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newInterfaceId", "type": "bytes4" } ], "name": "addSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "rollAttributes", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": "IPC" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "developer", "type": "address" }, { "name": "value", "type": "bool" } ], "name": "changeDeveloperStatus", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_authorization", "type": "bool" } ], "name": "changeAdminAuthorization", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "dnaModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "1000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToOwner", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToModifyDna", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignIpcSeed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcName", "outputs": [ { "name": "result", "type": "bytes32", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCashier", "type": "address" } ], "name": "setCashier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPriceIncrease", "type": "uint256" } ], "name": "changePriceIncreasePerTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_description", "type": "string" } ], "name": "registerNewExperience", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newSize", "type": "uint256" } ], "name": "changeTrancheSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }, { "name": "data", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "removeSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createIpcSeed", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "tokenURI", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpBalance", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "experiences", "outputs": [ { "name": "developer", "type": "address" }, { "name": "description", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "buyXp", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "ownerIpcCount", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_byteToModify", "type": "uint256" }, { "name": "_modifyAmount", "type": "int256" } ], "name": "modifyDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeDnaModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newName", "type": "string" } ], "name": "changeIpcName", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newExec", "type": "address" } ], "name": "setExec", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_xpId", "type": "uint256" } ], "name": "grantXpToIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "developer", "type": "address" }, { "indexed": true, "name": "xpId", "type": "uint256" } ], "name": "ExperienceEarned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_to", "type": "string" } ], "name": "NameChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_seller", "type": "address" }, { "indexed": true, "name": "_buyer", "type": "address" }, { "indexed": false, "name": "price", "type": "uint256" } ], "name": "Bought", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "from", "type": "uint256" }, { "indexed": false, "name": "to", "type": "uint256" } ], "name": "PriceChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "owner", "type": "address" }, { "indexed": false, "name": "name", "type": "string" } ], "name": "Created", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "dna", "type": "bytes32" }, { "indexed": false, "name": "attributes", "type": "bytes32" } ], "name": "Substantiated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "to", "type": "bytes32" } ], "name": "DnaModified", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_from", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_approved", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_operator", "type": "address" }, { "indexed": false, "name": "_approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" } ]' + }, { "name": "Ink Protocol", "address": "0xBC86727E770de68B1060C91f6BB6945c73e10388", @@ -465,6 +449,11 @@ "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": "PAX", + "address": "0x8e870d67f660d95d5be530380d0ec0bd388289e1", + "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": "_newLawEnforcementRole","type": "address"}],"name": "setLawEnforcementRole","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "unpause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "unfreeze","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_newSupplyController","type": "address"}],"name": "setSupplyController","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "paused","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "balanceOf","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [],"name": "initialize","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "pause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "freeze","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": "_value","type": "uint256"}],"name": "decreaseSupply","outputs": [{"name": "success","type": "bool"}],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "lawEnforcementRole","outputs": [{"name": "","type": "address"}],"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": "_value","type": "uint256"}],"name": "increaseSupply","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": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "wipeFrozenAddress","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "isFrozen","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [],"name": "supplyController","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": [],"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"},{"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": "oldOwner","type": "address"},{"indexed"true,"name": "newOwner","type": "address"}],"name": "OwnershipTransferred","type": "event"},{"anonymous": false,"inputs": [],"name": "Pause","type": "event"},{"anonymous": false,"inputs": [],"name": "Unpause","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressFrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressUnfrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "FrozenAddressWiped","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldLawEnforcementRole","type": "address"},{"indexed": true,"name": "newLawEnforcementRole","type": "address"}],"name": "LawEnforcementRoleSet","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "to","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyIncreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "from","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyDecreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldSupplyController","type": "address"},{"indexed": true,"name": "newSupplyController","type": "address"}],"name": "SupplyControllerSet","type": "event"}]' + }, { "name": "Peculium", "address": "0x3618516F45CD3c913F81F9987AF41077932Bc40d", @@ -501,11 +490,11 @@ "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":"creationBlock","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":"_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":false,"inputs":[{"name":"_newController","type":"address"}],"name":"changeController","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_blockNumber","type":"uint256"}],"name":"balanceOfAt","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":"_cloneTokenName","type":"string"},{"name":"_cloneDecimalUnits","type":"uint8"},{"name":"_cloneTokenSymbol","type":"string"},{"name":"_snapshotBlock","type":"uint256"},{"name":"_transfersEnabled","type":"bool"}],"name":"createCloneToken","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":"parentToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"generateTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_blockNumber","type":"uint256"}],"name":"totalSupplyAt","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":"transfersEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentSnapShotBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"destroyTokens","outputs":[{"name":"","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":"_token","type":"address"}],"name":"claimTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenFactory","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_transfersEnabled","type":"bool"}],"name":"enableTransfers","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_token","type":"address"},{"indexed":true,"name":"_controller","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"ClaimedTokens","type":"event"},{"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":"_cloneToken","type":"address"},{"indexed":false,"name":"_snapshotBlock","type":"uint256"}],"name":"NewCloneToken","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"}]' }, - { - "name": "PUC", - "address": "0xef6b4ce8c9bc83744fbcde2657b32ec18790458a", - "abi": '[{"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":"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":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"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":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","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"}]' - }, + { + "name": "PUC", + "address": "0xef6b4ce8c9bc83744fbcde2657b32ec18790458a", + "abi": '[{"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":"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":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"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":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","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"}]' + }, { "name": "Q - TiiQu Network", "address": "0x2C3C1F05187dBa7A5f2Dd47Dca57281C4d4F183F", @@ -530,6 +519,12 @@ "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": "ROCK2PAY", + "address": "0x0E3de3B0E3D617FD8D1D8088639bA877feb4d742", + "comment": "", + "abi": '[{"constant": true,"inputs": [{ "name": "_owner", "type": "address" }],"name": "balanceOf","outputs": [{ "name": "balance", "type": "uint256" }],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{ "name": "to", "type": "address" },{ "name": "tokens", "type": "uint256" }],"name": "transfer","outputs": [{ "name": "success", "type": "bool" }],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "addTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "addTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_newState", "type": "uint8" }],"name": "changeState","outputs": [],"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": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "decreaseTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "decreaseTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","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": "_amount", "type": "uint256" },{ "name": "_address", "type": "address" }],"name": "requestPayout","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "state","outputs": [{ "name": "", "type": "uint8" }],"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": "tech","outputs": [{ "name": "", "type": "address" }],"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": "newOwner", "type": "address" }],"name": "transferOwnership","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "newTech", "type": "address" }],"name": "transferTech","outputs": [],"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": "value", "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"}]' + }, { "name": "SGelder", "address": "0xa1ccc166faf0E998b3E33225A1A0301B1C86119D", @@ -591,6 +586,11 @@ "abi": '[{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_operator","type":"address"},{"indexed":false,"name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"constant":false,"inputs":[{"name":"_approved","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_newOwner","type":"address"}],"name":"grantToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_nftId","type":"uint256"}],"name":"Personalized","type":"event"},{"constant":false,"inputs":[{"name":"_squareId","type":"uint256"},{"name":"_rgbData","type":"bytes"},{"name":"_title","type":"string"},{"name":"_href","type":"string"}],"name":"personalizeSquare","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"constant":false,"inputs":[{"name":"_nftId","type":"uint256"}],"name":"purchase","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"},{"name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_operator","type":"address"},{"name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_executiveOfficerAddress","type":"address"}],"name":"setExecutiveOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_financialOfficerAddress","type":"address"}],"name":"setFinancialOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_operatingOfficerAddress","type":"address"}],"name":"setOperatingOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"executiveOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"financialOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"operatingOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"promoCreatedCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"suSquares","outputs":[{"name":"version","type":"uint256"},{"name":"rgbData","type":"bytes"},{"name":"title","type":"string"},{"name":"href","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"_tokenId","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"_tokenURI","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]' }, + { + "name": "TangguoTaoToken", + "address": "0xfA0eF5E034CaE1AE752d59bdb8aDcDe37Ed7aB97", + "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":"INITIAL_SUPPLY","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":false,"inputs":[],"name":"unpause","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":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","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":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","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":"_owner","type":"address"},{"name":"_spender","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":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"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":"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": "Telcoin Redeem", "address": "0x6D9FE564C9B1C81C305e066346dF73de6cF9295f", diff --git a/app/scripts/tokens/ethTokens.json b/app/scripts/tokens/ethTokens.json index d5c0431ab9..e3bd1759b6 100644 --- a/app/scripts/tokens/ethTokens.json +++ b/app/scripts/tokens/ethTokens.json @@ -2279,6 +2279,12 @@ "decimal": 4, "type": "default" }, + { + "address": "0x444997b7e7fC830E20089afea3078cd518fCF2A2", + "symbol": "EWO", + "decimal": 18, + "type": "default" + }, { "address": "0x00c4b398500645eb5da00a1a379a88b11683ba01", "symbol": "EXC", diff --git a/chrome-extension/contest.html b/chrome-extension/contest.html index 9a34e0ee41..aa632d4487 100644 --- a/chrome-extension/contest.html +++ b/chrome-extension/contest.html @@ -98,13 +98,13 @@ MyEtherWallet -

3.23.0

+

3.23.1

- + diff --git a/chrome-extension/css/etherwallet-master.min.css b/chrome-extension/css/etherwallet-master.min.css index ecbe307310..e2121c11b1 100644 --- a/chrome-extension/css/etherwallet-master.min.css +++ b/chrome-extension/css/etherwallet-master.min.css @@ -1,3 +1,3 @@ @font-face{font-family:Lato;src:url(../fonts/Lato-Light.woff) format("woff");font-style:normal;font-weight:300}@font-face{font-family:Lato;src:url(../fonts/Lato-Regular.woff) format("woff");font-style:normal;font-weight:400}@font-face{font-family:Lato;src:url(../fonts/Lato-Bold.woff) format("woff");font-style:normal;font-weight:700} /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0} -/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline;color:#000}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #000;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}.print-text{color:#0b7290!important}footer{border-top:1px solid #000}header{border-bottom:1px solid #000;border-top:0 solid #fff!important}.btn{border:1px solid #000;color:1px solid #000;background:transparent!important}.nav-container{display:none!important}.footer-1 img{width:40px!important}.footer-1 *,.footer-2 *,.footer-3 *{font-size:8px!important;line-height:1.1!important}.footer-1 .footer-2,.footer-1 .footer-3,.footer-2 .footer-2,.footer-2 .footer-3,.footer-3 .footer-2,.footer-3 .footer-3{float:left!important}.h1,h1{font-size:18px}.h1,.h2,h1,h2{font-weight:700}.h2,h2{font-size:17px}.h3,h3{font-size:16px}.h3,.h4,h3,h4{font-weight:700}.h4,h4{font-size:15px}.h5,h5{font-size:14px}.h5,.h6,h5,h6{font-weight:700}.h6,h6{font-size:13px}.modal{position:inherit!important;page-break-inside:avoid;page-break-before:always}}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:15 px;-webkit-tap-highlight-color:rgba(0,0,0,0);height:100%}@media screen and (min-width:94rem){html{font-size:16px}}@media screen and (max-width:50.2rem){html{font-size:15 px}}body{font-family:Lato,sans-serif;font-size:1rem;line-height:1.4;color:#333;background-color:#fbfbfb;height:100%}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}figure{margin:0}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-thumbnail{padding:.2rem;line-height:1.4;background-color:#fbfbfb;border:1px solid #ddd;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid #ececec}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:700;line-height:1.2;color:inherit;letter-spacing:.02em}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:inherit}.h1,.h2,.h3,h1,h2,h3{margin-top:1rem;margin-bottom:.5rem}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:1rem;margin-bottom:.5rem}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:2.25rem}.h1,.h2,h1,h2{font-weight:300}.h2,h2{font-size:1.9rem}.h3,h3{font-size:1.5rem}.h3,.h4,h3,h4{font-weight:700}.h4,h4{font-size:1.3rem}.h5,h5{font-size:1.15rem}.h5,.h6,h5,h6{font-weight:400}.h6,h6{font-size:1.07rem}p{margin:0 0 .5rem;font-weight:300}p.strong,p .strong,p strong{font-weight:400}i{font-style:normal}.strong,strong{font-weight:600}.lead{margin-bottom:1.4;font-size:1rem}a{color:#0e97c0;text-decoration:none;cursor:pointer}a,a:hover{-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}a:hover{opacity:.8;color:#0c84a8}a:active,a:focus{opacity:1;-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}a:focus{outline:thin dotted;outline-offset:3px}.point{cursor:pointer}.strike{text-decoration:line-through}.small,small{font-size:85%}.mark,mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#9a9a9a}.text-primary{color:#0e97c0}a.text-primary:focus,a.text-primary:hover{color:#0c84a8}.text-success{color:#459f42}a.text-success:focus,a.text-success:hover{color:#3d8d3b}.text-info{color:#0b1929}a.text-info:focus,a.text-info:hover{color:#060d15}.text-warning{color:#cc7a00}a.text-warning:focus,a.text-warning:hover{color:#b36a00}.text-danger{color:#df2518}a.text-danger:focus,a.text-danger:hover{color:#c82116}.text-underline{text-decoration:underline}.text-light{font-weight:200}.bg-primary{color:#fff;background-color:#0e97c0}a.bg-primary:focus,a.bg-primary:hover{background-color:#0b7290}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:-.5rem;margin:2.8 0 1.4;border-bottom:1px solid #ececec}ol,ul{margin-top:0;margin-bottom:1em}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}li{margin-bottom:.5em;font-weight:300}li strong{font-weight:400}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline{margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:1.4}dd,dt{line-height:1.4}dt{font-weight:700}dd{margin-left:0}@media (min-width:51.2rem){.dl-horizontal dt{float:left;width:-8rem;clear:left;text-align:right;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:12rem}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #9a9a9a}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:.5rem 1.4;margin:0 0 1.4;font-size:1.25rem;border-left:5px solid #ececec}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.4;color:#9a9a9a}blockquote .small:before,blockquote footer:before,blockquote small:before{content:"\2014 \00A0"}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #ececec;border-left:0;text-align:right}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:""}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:"\00A0 \2014"}address{margin-bottom:1.4;font-style:normal;line-height:1.4}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace}code{color:#c7254e;background-color:#f9f2f4}code,kbd{padding:2px 4px;font-size:90%;border-radius:0}kbd{color:#fff;background-color:#333;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:.2;margin:0 0 .7;font-size:0;line-height:1.4;word-break:break-all;word-wrap:break-word;color:#333;background-color:#fafafa;border:1px solid #ececec;border-radius:0}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:23rem;overflow-y:scroll}.container{width:100%;margin-right:auto;margin-left:auto;max-width:113rem;padding:0 5rem}@media screen and (max-width:80rem){.container{padding:0 3%}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:1rem;padding-right:1rem}.row{margin-left:-1rem;margin-right:-1rem}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{position:relative;min-height:1px;padding-left:1rem;padding-right:1rem}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:51.2rem){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:66.13333333rem){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:80rem){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent;margin-bottom:10px;border-bottom:1px solid #ddd}caption{padding-top:.5rem;padding-bottom:.5rem;color:#9a9a9a}caption,th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:1.4}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:.5rem;line-height:1.4;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fbfbfb}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:.25rem}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f5f5f5}.table-striped>tbody>tr>td,.table-striped>tbody>tr>th,.table-striped>tfoot>tr>td,.table-striped>tfoot>tr>th,.table-striped>thead>tr>td,.table-striped>thead>tr>th{border-top:0}.table-mnemonic{border-bottom:0;font-weight:400}.table-mnemonic th{border-bottom:1px solid #ececec;vertical-align:bottom}.table-mnemonic td:first-child{font-family:Menlo,Monaco,Consolas,Courier New,monospace}.table-mnemonic tr:last-child td:first-child{text-align:left}.table-mnemonic tr:first-child,.table-mnemonic tr:last-child:not(.mnemonic-custom-row){background-color:#fff!important}.table-mnemonic.table>tbody>tr>td,.table-mnemonic.table>tbody>tr>th,.table-mnemonic.table>tfoot>tr>td,.table-mnemonic.table>tfoot>tr>th,.table-mnemonic.table>thead>tr>td,.table-mnemonic.table>thead>tr>th{padding:.25rem}.table-mnemonic .mnemonic-custom-row input[type=text]{margin:-5px;display:inline;width:70%;max-width:15rem}.table-mnemonic label{margin:.15rem}.table-hover,.table-hover>tbody>tr>td,.table-hover>tbody>tr>th,.table-hover>tfoot>tr>td,.table-hover>tfoot>tr>th,.table-hover>thead>tr>td,.table-hover>thead>tr>th,.table-hover td,.table-hover th,.table-hover tr{border:0 solid #fff}.table-hover>tbody>tr:hover{background-color:#fafafa}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#fafafa}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#ededed}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}@media screen and (max-width:50.2rem){.table-responsive{width:100%;margin-bottom:1.05;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}.table-domainsale-modal .table-ens-modal{font-weight:400;font-size:16px}.table-domainsale-modal .table-ens-modal textarea{font-size:11px;word-break:break-all;padding:.5rem}fieldset{margin:0;min-width:0}fieldset,legend{padding:0;border:0}legend{display:block;width:100%;margin-bottom:1.4;font-size:1.5rem;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-top:.5rem;margin-bottom:.25rem;font-weight:600;font-size:1.15rem}label small{font-weight:300;font-size:1em}td label{font-weight:400}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:3px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted;outline-offset:3px}output{display:block;padding-top:1.75rem;font-size:1rem;line-height:1.4;color:#333}.account-help-icon+.btn,.account-help-icon+input,.account-help-icon+textarea,label+.form-control,label+input,label+textarea{margin-top:0}.form-control{display:block;width:100%;height:2.55rem;padding:.25rem 1rem;font-size:1rem;line-height:2;color:#333;background-color:#fff;background-image:none;border:1px solid #ececec;margin-top:.5rem;margin-bottom:.5rem;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}.form-control:focus{border-color:#0e97c0;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(14,151,192,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(14,151,192,.5)}.form-control::-moz-placeholder{color:#d3d3d3;opacity:1}.form-control:-ms-input-placeholder{color:#d3d3d3}.form-control::-webkit-input-placeholder{color:#d3d3d3}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#ececec;opacity:1;cursor:text!important;-webkit-box-shadow:none!important;box-shadow:none!important}.form-control[disabled],fieldset[disabled] .form-control{cursor:default}textarea.form-control{height:auto;line-height:1.4}input[readonly]{background-color:#fafafa;cursor:text!important}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:2.55rem}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:2rem}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:4rem}}.form-group{margin-top:.5rem;margin-bottom:.5rem;display:block}.checkbox,.radio{position:relative;display:block;margin:15px 0;font-weight:500}.checkbox label,.radio label{min-height:1.4;padding-left:20px;padding-right:15px;margin-bottom:0;font-weight:500;cursor:pointer}.checkbox.small,.radio.small{margin:.2rem 0}.checkbox-inline input[type=checkbox],.checkbox input[type=checkbox],.radio-inline input[type=radio],.radio input[type=radio]{margin-left:-20px}input[type=radio]{margin-right:5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .checkbox label,fieldset[disabled] .radio-inline,fieldset[disabled] .radio label,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:default}.form-control-static{padding-top:1.75rem;padding-bottom:1.75rem;margin-bottom:0;min-height:2.4rem}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.input-sm{height:2rem;line-height:2rem}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5}.form-group-sm select.form-control{height:2rem;line-height:2rem}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:2rem;min-height:2.3rem;padding:1.5rem 1rem;font-size:.9rem;line-height:1.5}.input-lg{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2;border-radius:0}select.input-lg{height:4rem;line-height:4rem}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2}.form-group-lg select.form-control{height:4rem;line-height:4rem}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:4rem;min-height:3.3rem;padding:2rem;font-size:1.9rem;line-height:1.2}.form-control.is-valid{border-color:#b5e0b4;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(93,186,90,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(93,186,90,.5)}.form-control.is-valid:focus{border-color:#92d190;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(93,186,90,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(93,186,90,.5)}.form-control.is-invalid{border-color:#f7b7b3;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(234,75,64,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(234,75,64,.5)}.form-control.is-invalid:focus{border-color:#f28c85;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(234,75,64,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(234,75,64,.5)}.form-control.is-semivalid{border-color:#ffcc80;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(255,152,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(255,152,0,.5)}.form-control.is-semivalid:focus{border-color:#ffb74d;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(255,152,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(255,152,0,.5)}.flagged-address{color:red;font-weight:700}.btn{background-image:none;cursor:pointer;border:1px solid gray;display:inline-block;font-weight:400;letter-spacing:.05em;margin-top:.5rem;margin-bottom:0;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;vertical-align:middle;white-space:nowrap;padding:.75rem 2rem;font-size:1.07rem;line-height:1.4;border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline-offset:3px}.btn.focus,.btn:focus,.btn:hover{color:#222;text-decoration:none;border-bottom-color:transparent;-webkit-box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1);box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1)}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.alert .btn-info{background-color:#fff;text-decoration:none;color:#163151}.alert .btn-info.focus,.alert .btn-info:focus,.alert .btn-info:hover{color:#fff;text-decoration:none;opacity:1}.alert .btn-info.disabled{background-color:#fff;text-decoration:none;color:#163151;opacity:.6}.btn-default{color:#222;background-color:#c3c3c3;border-color:#bdbdbd;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#222;background-color:#b6b6b6;border-color:#b0b0b0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#222;background-color:#9d9d9d;border-color:#979797;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#c3c3c3;border-color:#bdbdbd}.btn-default .badge{color:#c3c3c3;background-color:#222}.btn-primary{color:#fff;background-color:#0e97c0;border-color:#0e97c0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#0c84a8;border-color:#0c84a8;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#095f79;border-color:#095f79;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#0e97c0;border-color:#0e97c0}.btn-primary .badge{color:#0e97c0;background-color:#fff}.btn-success{color:#fff;background-color:#5dba5a;border-color:#5dba5a;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#4db14a;border-color:#4db14a;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#3d8d3b;border-color:#3d8d3b;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5dba5a;border-color:#5dba5a}.btn-success .badge{color:#5dba5a;background-color:#fff}.btn-info{color:#fff;background-color:#163151;border-color:#163151;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#11253d;border-color:#11253d;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#060d15;border-color:#060d15;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#163151;border-color:#163151}.btn-info .badge{color:#163151;background-color:#fff}.btn-warning{color:#fff;background-color:#ff9800;border-color:#ff9800;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#e68900;border-color:#e68900;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#b36a00;border-color:#b36a00;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#ff9800;border-color:#ff9800}.btn-warning .badge{color:#ff9800;background-color:#fff}.btn-danger{color:#fff;background-color:#ea4b40;border-color:#ea4b40;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#e73529;border-color:#e73529;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#c82116;border-color:#c82116;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#ea4b40;border-color:#ea4b40}.btn-danger .badge{color:#ea4b40;background-color:#fff}.btn-white{background-color:hsla(0,0%,100%,.8);border-color:hsla(0,0%,100%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease;color:#163151}.btn-white.active,.btn-white.focus,.btn-white:active,.btn-white:focus,.btn-white:hover,.open>.dropdown-toggle.btn-white{color:#163151;background-color:hsla(0,0%,95%,.8);border-color:hsla(0,0%,95%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-white.active.focus,.btn-white.active:focus,.btn-white.active:hover,.btn-white:active.focus,.btn-white:active:focus,.btn-white:active:hover,.open>.dropdown-toggle.btn-white.focus,.open>.dropdown-toggle.btn-white:focus,.open>.dropdown-toggle.btn-white:hover{color:#163151;background-color:hsla(0,0%,85%,.8);border-color:hsla(0,0%,85%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-white.active,.btn-white:active,.open>.dropdown-toggle.btn-white{background-image:none}.btn-white.disabled,.btn-white.disabled.active,.btn-white.disabled.focus,.btn-white.disabled:active,.btn-white.disabled:focus,.btn-white.disabled:hover,.btn-white[disabled],.btn-white[disabled].active,.btn-white[disabled].focus,.btn-white[disabled]:active,.btn-white[disabled]:focus,.btn-white[disabled]:hover,fieldset[disabled] .btn-white,fieldset[disabled] .btn-white.active,fieldset[disabled] .btn-white.focus,fieldset[disabled] .btn-white:active,fieldset[disabled] .btn-white:focus,fieldset[disabled] .btn-white:hover{background-color:hsla(0,0%,100%,.8);border-color:hsla(0,0%,100%,.8)}.btn-white .badge{color:hsla(0,0%,100%,.8);background-color:#163151}.header-branding a.btn-white{color:#163151}.header-branding a.btn-white:focus,.header-branding a.btn-white:hover{background:#fff;opacity:1;color:#163151}.btn-group .btn-default{border-bottom-width:1px}.btn-group .btn-default.active{border:1px solid #0e97c0;color:#0e97c0;background:#f5f5f5}.btn-link{color:#0e97c0;font-weight:400}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#0c84a8;text-decoration:none;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#9a9a9a;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:1rem 2rem;font-size:1.15rem;line-height:1.2;border-radius:0}.btn-group-sm>.btn,.btn-sm{padding:.5rem 1rem;font-size:1rem;line-height:1.5;border-radius:0}.btn-group-xs>.btn,.btn-xs{font-size:.75rem;line-height:1.5;border-radius:0;padding:.1rem .6rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}.btn-file,input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.btn-file{background-image:none;cursor:pointer;border:1px solid gray;display:inline-block;font-weight:400;letter-spacing:.05em;margin-top:.5rem;margin-bottom:0;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;vertical-align:middle;white-space:nowrap;padding:.75rem 2rem;font-size:1.07rem;line-height:1.4;border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;color:#222;background-color:#c3c3c3;border-color:#bdbdbd;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease;position:relative;overflow:hidden}.btn-file.active.focus,.btn-file.active:focus,.btn-file.focus,.btn-file:active.focus,.btn-file:active:focus,.btn-file:focus{outline:thin dotted;outline-offset:3px}.btn-file.focus,.btn-file:focus,.btn-file:hover{color:#222;text-decoration:none;border-bottom-color:transparent;-webkit-box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1);box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1)}.btn-file.active,.btn-file:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-file.disabled,.btn-file[disabled],fieldset[disabled] .btn-file{cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn-file.disabled,fieldset[disabled] a.btn-file{pointer-events:none}.btn-file.active,.btn-file.focus,.btn-file:active,.btn-file:focus,.btn-file:hover,.open>.dropdown-toggle.btn-file{color:#222;background-color:#b6b6b6;border-color:#b0b0b0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-file.active.focus,.btn-file.active:focus,.btn-file.active:hover,.btn-file:active.focus,.btn-file:active:focus,.btn-file:active:hover,.open>.dropdown-toggle.btn-file.focus,.open>.dropdown-toggle.btn-file:focus,.open>.dropdown-toggle.btn-file:hover{color:#222;background-color:#9d9d9d;border-color:#979797;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-file.active,.btn-file:active,.open>.dropdown-toggle.btn-file{background-image:none}.btn-file.disabled,.btn-file.disabled.active,.btn-file.disabled.focus,.btn-file.disabled:active,.btn-file.disabled:focus,.btn-file.disabled:hover,.btn-file[disabled],.btn-file[disabled].active,.btn-file[disabled].focus,.btn-file[disabled]:active,.btn-file[disabled]:focus,.btn-file[disabled]:hover,fieldset[disabled] .btn-file,fieldset[disabled] .btn-file.active,fieldset[disabled] .btn-file.focus,fieldset[disabled] .btn-file:active,fieldset[disabled] .btn-file:focus,fieldset[disabled] .btn-file:hover{background-color:#c3c3c3;border-color:#bdbdbd}.btn-file .badge{color:#c3c3c3;background-color:#222}.btn-file input[type=file]{position:absolute;top:0;right:0;min-width:100%;min-height:100%;font-size:100px;text-align:right;filter:alpha(opacity=0);opacity:0;background:red;cursor:inherit;display:block}.caret{display:inline-block;width:0;height:0;margin-left:.5rem;vertical-align:middle;border-top:.25rem dashed;border-right:.25rem solid transparent;border-left:.25rem solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle{margin-top:0;font-size:1rem;padding:.5rem 1rem}.dropdown:hover .dropdown-menu{display:block}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;min-width:160px;max-width:100vw;max-height:75vh;overflow:scroll;padding:0;margin:2px 0 0;list-style:none;font-size:.9rem;text-align:left;background-color:#fff;border-radius:0;-webkit-box-shadow:0 6px 10px rgba(0,0,0,.175);box-shadow:0 6px 10px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:2px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li{margin:0}.dropdown-menu>li:first-child{padding-top:2px}.dropdown-menu>li:last-child{padding-bottom:2px}.dropdown-menu>li>a{display:block;padding:2px 1rem;clear:both;font-weight:300;line-height:1.4;color:#163151;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#0e97c0;background-color:#fafafa}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#0e97c0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#9a9a9a}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:default}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:.9rem;line-height:1.4;color:#9a9a9a;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:.25rem solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:51.2rem){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle;margin-bottom:5px}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn-group{float:left}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn-lg .caret{border-width:.25rem .25rem 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 .25rem .25rem}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio],[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group>*{margin-bottom:0;margin-top:0}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%}.input-group .dropdown-toggle{padding-right:.75rem;padding-left:.75rem}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2;border-radius:0}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:4rem;line-height:4rem}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:2rem;line-height:2rem}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding-left:2rem;padding-right:2rem;font-size:1rem;font-weight:400;line-height:1;color:#333;text-align:center;background-color:#ececec;border:1px solid #dfdfdf;outline:0;-webkit-box-shadow:inset 0 1px 1px hsla(0,0%,93%,.5),0 0 1px hsla(0,0%,93%,.5);box-shadow:inset 0 1px 1px hsla(0,0%,93%,.5),0 0 1px hsla(0,0%,93%,.5)}.input-group-addon.input-sm{padding:.5rem 1rem;font-size:.9rem}.input-group-addon.input-lg{padding:1rem 2rem;font-size:1.9rem}.input-group-addon:focus{border:1px solid #dadada;outline:0;-webkit-box-shadow:inset 0 1px 1px #ececec,30%,0 0 1px hsla(0,0%,93%,.9);box-shadow:inset 0 1px 1px #ececec,30%,0 0 1px hsla(0,0%,93%,.9)}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative;margin-bottom:0;margin-top:0;font-size:1rem;padding:.55rem 2rem}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.alert{padding:.75rem 2rem;margin:1rem auto;font-weight:300;font-size:1.07rem}.alert h4{color:inherit}.alert>:first-child,.alert h4{margin-top:0}.alert>:last-child{margin-bottom:0}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert a{color:#fff;text-decoration:underline}.alert a:hover{opacity:.8}.alert a:active,.alert a:focus{opacity:1}.alert svg{vertical-align:bottom}.alert-danger--outline{padding:.5em .6em .6em .3em;margin:0 0 1em;border-top:2px solid #ea4b40;-webkit-box-shadow:0 1px 5px 1px rgba(63,63,63,.13);box-shadow:0 1px 5px 1px rgba(63,63,63,.13);font-size:.9em;font-weight:500}.alert-danger--outline:before{content:"";background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23ea4b40'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23ea4b40'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:1.75em;float:left;width:2em;height:4em;margin-right:.75em}.alert.popup{position:fixed;bottom:0;left:0;right:0;padding:1rem 0;-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.33);box-shadow:0 0 20px 0 rgba(0,0,0,.33);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out;z-index:1060;margin:0}.alert.popup .container{position:relative;padding:0 10rem 0 5rem}@media screen and (max-width:51.2rem){.alert.popup .container{padding:1rem 8rem 1rem 4rem}}@media screen and (max-width:32rem){.alert.popup .container{padding:3rem 1rem 0 4rem}}.alert.popup .container:after{content:"";background-position:50%;background-repeat:no-repeat;background-size:contain;display:block;color:#fff;position:absolute;top:0;bottom:0;left:1%;width:2.25rem}@media screen and (max-width:32rem){.alert.popup .container:after{top:2.5rem;left:.5rem}}.alert.popup .icon-close{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 348.333 348.334'%3E%3Cpath d='M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z' fill='%23FFF'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:1rem;cursor:pointer;opacity:.7;position:absolute;top:0;right:0;width:9rem;bottom:0;border-left:1px solid hsla(0,0%,100%,.7);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}@media screen and (max-width:51.2rem){.alert.popup .icon-close{width:7rem}}@media screen and (max-width:32rem){.alert.popup .icon-close{width:100%;height:3rem;left:0;right:0;top:0;bottom:auto;border-left:0;border-bottom:1px solid hsla(0,0%,100%,.7)}}.alert.popup .icon-close:hover{border-color:hsla(0,0%,100%,.5)}.alert.popup .icon-close:active,.alert.popup .icon-close:hover{-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out;background-color:rgba(0,0,0,.1)}.alert.popup .icon-close:active{border-color:hsla(0,0%,100%,.7);opacity:1}.alert.popup.ng-hide{bottom:-20%;-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}.alert,.alert-info{background-color:#0e97c0;border-color:#0e97c0;color:#fff}.alert-info hr,.alert hr{border-top-color:#0c84a8}.alert-info .alert-link,.alert .alert-link{color:#e6e6e6}.alert-info .container:after,.alert .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' x='30' y='30' viewBox='0 0 65 65' width='512' height='512'%3E%3Cpath d='M32.5 0C14.58 0 0 14.579 0 32.5S14.58 65 32.5 65 65 50.421 65 32.5 50.42 0 32.5 0zm0 61C16.785 61 4 48.215 4 32.5S16.785 4 32.5 4 61 16.785 61 32.5 48.215 61 32.5 61z' fill='%23FFF'/%3E%3Ccircle cx='33.018' cy='19.541' r='3.345' fill='%23FFF'/%3E%3Cpath d='M32.137 28.342a2 2 0 0 0-2 2v17a2 2 0 0 0 4 0v-17a2 2 0 0 0-2-2z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-success{background-color:#5dba5a;border-color:#5dba5a;color:#fff}.alert-success hr{border-top-color:#4db14a}.alert-success .alert-link{color:#e6e6e6}.alert-success .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 478.2 478.2' width='32' height='32'%3E%3Cpath d='M457.575 325.1c9.8-12.5 14.5-25.9 13.9-39.7-.6-15.2-7.4-27.1-13-34.4 6.5-16.2 9-41.7-12.7-61.5-15.9-14.5-42.9-21-80.3-19.2-26.3 1.2-48.3 6.1-49.2 6.3h-.1c-5 .9-10.3 2-15.7 3.2-.4-6.4.7-22.3 12.5-58.1 14-42.6 13.2-75.2-2.6-97-16.6-22.9-43.1-24.7-50.9-24.7-7.5 0-14.4 3.1-19.3 8.8-11.1 12.9-9.8 36.7-8.4 47.7-13.2 35.4-50.2 122.2-81.5 146.3-.6.4-1.1.9-1.6 1.4-9.2 9.7-15.4 20.2-19.6 29.4-5.9-3.2-12.6-5-19.8-5h-61c-23 0-41.6 18.7-41.6 41.6v162.5c0 23 18.7 41.6 41.6 41.6h61c8.9 0 17.2-2.8 24-7.6l23.5 2.8c3.6.5 67.6 8.6 133.3 7.3 11.9.9 23.1 1.4 33.5 1.4 17.9 0 33.5-1.4 46.5-4.2 30.6-6.5 51.5-19.5 62.1-38.6 8.1-14.6 8.1-29.1 6.8-38.3 19.9-18 23.4-37.9 22.7-51.9-.4-8.1-2.2-15-4.1-20.1zm-409.3 122.2c-8.1 0-14.6-6.6-14.6-14.6V270.1c0-8.1 6.6-14.6 14.6-14.6h61c8.1 0 14.6 6.6 14.6 14.6v162.5c0 8.1-6.6 14.6-14.6 14.6h-61v.1zm383.7-133.9c-4.2 4.4-5 11.1-1.8 16.3 0 .1 4.1 7.1 4.6 16.7.7 13.1-5.6 24.7-18.8 34.6-4.7 3.6-6.6 9.8-4.6 15.4 0 .1 4.3 13.3-2.7 25.8-6.7 12-21.6 20.6-44.2 25.4-18.1 3.9-42.7 4.6-72.9 2.2h-1.4c-64.3 1.4-129.3-7-130-7.1h-.1l-10.1-1.2c.6-2.8.9-5.8.9-8.8V270.1c0-4.3-.7-8.5-1.9-12.4 1.8-6.7 6.8-21.6 18.6-34.3 44.9-35.6 88.8-155.7 90.7-160.9.8-2.1 1-4.4.6-6.7-1.7-11.2-1.1-24.9 1.3-29 5.3.1 19.6 1.6 28.2 13.5 10.2 14.1 9.8 39.3-1.2 72.7-16.8 50.9-18.2 77.7-4.9 89.5 6.6 5.9 15.4 6.2 21.8 3.9 6.1-1.4 11.9-2.6 17.4-3.5.4-.1.9-.2 1.3-.3 30.7-6.7 85.7-10.8 104.8 6.6 16.2 14.8 4.7 34.4 3.4 36.5-3.7 5.6-2.6 12.9 2.4 17.4.1.1 10.6 10 11.1 23.3.4 8.9-3.8 18-12.5 27z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-warning{background-color:#ff9800;border-color:#ff9800;color:#fff}.alert-warning hr{border-top-color:#e68900}.alert-warning .alert-link{color:#e6e6e6}.alert-warning .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23FFF'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-danger{background-color:#ea4b40;border-color:#ea4b40;color:#fff}.alert-danger hr{border-top-color:#e73529}.alert-danger .alert-link{color:#e6e6e6}.alert-danger .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23FFF'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23FFF'/%3E%3C/svg%3E")}.well{min-height:20px;padding:1rem;margin-top:1rem;margin-bottom:1rem;background-color:#fafafa;border:1px solid #e8e8e8;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well :first-child{margin-top:0}.well :last-child{margin-bottom:0}.well.lg{padding:2rem}.well.sm{padding:.5rem}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal,.modal-open{overflow:hidden}.modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translateY(-25%);-ms-transform:translateY(-25%);-o-transform:translateY(-25%);transform:translateY(-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:-webkit-transform .3s ease-out;-o-transition:transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0);-ms-transform:translate(0);-o-transform:translate(0);transform:translate(0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border-radius:0;-webkit-box-shadow:1px 1px 60px rgba(0,0,0,.32);box-shadow:1px 1px 60px rgba(0,0,0,.32);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:.75rem 1.5rem}.modal-header .close{margin-top:-2px}.modal-title{margin:0 0 1rem;line-height:1.4}.modal-body{position:relative;padding:.75rem;font-size:1.15rem}.modal-body .table>tbody>tr>td{vertical-align:middle}.modal-body .addressIdenticon{margin:auto}.modal-footer{padding:1rem 1.5rem;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn{margin-top:0}.modal-footer .btn+.btn{margin-left:.5rem;margin-bottom:0;margin-top:0}#sendTransaction .modal-footer{text-align:center}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:51.2rem){.modal-dialog{width:800px;margin:30px auto}.modal-sm{width:30rem}}@media (min-width:66.13333333rem){.modal-lg{width:70rem}}.bity-contact:after,.bity-contact:before,.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.modal-footer:after,.modal-footer:before,.row:after,.row:before{content:" ";display:table}.bity-contact:after,.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.modal-footer:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:50.2rem){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:50.2rem){.visible-xs-block{display:block!important}}@media (max-width:50.2rem){.visible-xs-inline{display:inline!important}}@media (max-width:50.2rem){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-block{display:block!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-inline{display:inline!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-block{display:block!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-inline{display:inline!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-inline-block{display:inline-block!important}}@media (min-width:80rem){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:80rem){.visible-lg-block{display:block!important}}@media (min-width:80rem){.visible-lg-inline{display:inline!important}}@media (min-width:80rem){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:50.2rem){.hidden-xs{display:none!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.hidden-sm{display:none!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.hidden-md{display:none!important}}@media (min-width:80rem){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}img{max-width:100%;height:auto}textarea{resize:vertical}.announcement{padding:3px 10px;text-align:center;font-weight:300;color:#fff;display:block;background-color:#0e97c0}.announcement a{text-decoration:underline;color:#fff}.announcement:focus,.announcement:hover,.announcement a{-webkit-transition:all .25s ease;-o-transition:.25s all ease;transition:all .25s ease}.announcement:focus,.announcement:hover{color:#f2f2f2;text-decoration:none;background-color:#0c84a8}.announcement strong{font-weight:400}.annoucement-warning{background-color:#ff5722}.annoucement-warning:focus,.annoucement-warning:hover{background-color:#ff4408}.annoucement-warning:focus a,.annoucement-warning:focus a:hover,.annoucement-warning:hover a,.annoucement-warning:hover a:hover{text-decoration:none}.annoucement-danger{background-color:#ea4b40}.annoucement-danger:hover{background-color:#ff4408}.annoucement-danger a:focus,.annoucement-danger a:hover{color:#f2f2f2}.annoucement-danger a:focus a,.annoucement-danger a:focus a:hover,.annoucement-danger a:hover a,.annoucement-danger a:hover a:hover{text-decoration:none}.address-identicon-container{padding:0;text-align:left;max-width:4.5rem;margin-left:-.5rem;margin-top:.5rem}.address-identicon-container-right{text-align:right}.address-identicon-container-right .addressIdenticon{float:right}.address-identicon-container-offline{padding:0;margin-left:-15px}.addressIdenticon{width:100%;height:auto;padding-bottom:100%;background-size:cover;background-repeat:no-repeat;border-radius:50%;-webkit-box-shadow:inset hsla(0,0%,100%,.5) 0 2px 2px,inset rgba(0,0,0,.6) 0 -1px 8px;box-shadow:inset 0 2px 2px hsla(0,0%,100%,.5),inset 0 -1px 8px rgba(0,0,0,.6)}.addressIdenticon.med{width:3rem;height:3rem;padding:0}.addressIdenticon.small{width:2rem;height:2rem;padding:0}.addressIdenticon.inline{display:inline-block}.addressIdenticon.float{float:left;margin-right:.5rem}.transaction-modal tbody tr td:first-child{width:30%}.transaction-modal tbody tr td:nth-child(2){width:70%}.transaction-modal .text-width-limit{display:grid;grid-auto-rows:1fr}.transaction-modal .text-width-limit p{margin:0;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.wrap{word-wrap:break-word}.bigger-on-mobile.form-control[readonly]{height:60px}@media screen and (max-width:767px){.bigger-on-mobile.form-control[readonly]{height:100px}}#paneHelp h3{margin-top:2em}.account-help-icon h3,.account-help-icon h4,.account-help-icon h5,.account-help-icon h6,.account-help-icon img{display:inline-block}.account-help-icon img:hover+.account-help-text{display:block;opacity:1;z-index:999}.account-help-icon img{margin-left:-30px;margin-right:3px}.account-help-icon:hover{opacity:1}.account-help-text{background:#fff;border-radius:0;border:1px solid #cdcdcd;-webkit-box-shadow:0 0 .5rem hsla(0,0%,39%,.2);box-shadow:0 0 .5rem hsla(0,0%,39%,.2);display:none;font-size:.75rem;font-weight:400;padding:.25rem;position:absolute;width:18rem;z-index:999;color:#333}ul.account-help-text{padding-left:1.6rem}.account-help-text li{font-size:.75rem;font-weight:400}@media screen and (max-width:767px){.account-help-icon img,.account-help-icon li,.account-help-icon p{display:none}}#accountAddress,#accountAddressMainTbl-1,#accountBalance,#accountBalanceBtc,#accountBalanceEur,#accountBalancePopMB-0,#accountBalancePopMB-2,#accountBalanceUsd,.form-control,.mono{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-weight:400;letter-spacing:.02em}.offline-qrcode{margin-top:-150px;max-width:300px}@media screen and (max-width:942px){.offline-qrcode{margin-top:-78px}}@media screen and (max-width:769px){.offline-qrcode{margin-top:0}}.account-info{padding-left:1em;margin:0}.account-info:after,.account-info:before{content:" ";display:table}.account-info:after{clear:both}.account-info li{margin-bottom:0;list-style-type:none;word-break:break-all}table.account-info{font-weight:200;border-bottom:0;min-width:200px;width:100%}table.account-info tbody{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}table.account-info td{padding:.3rem;line-height:1}table.account-info td:first-child{word-wrap:break-word;padding-left:1em}table.account-info tr{border-bottom:1px solid #f3f3f3}table.account-info tr:last-child,table.account-info tr:nth-last-child(2){border-bottom:0 solid #f3f3f3}table.account-info tr.custom-token{-webkit-box-ordinal-group:0;-webkit-order:-1;-ms-flex-order:-1;order:-1}input[type=text]+.eye{cursor:pointer}input[type=text]+.eye:before{content:"";width:20px;height:20px;margin-left:6px;margin-right:6px;display:inline-block;vertical-align:middle;background:url(../images/icon-eye.svg)}input[type=password]+.eye{cursor:pointer}input[type=password]+.eye:before{content:"";width:20px;height:20px;margin-left:6px;margin-right:6px;display:inline-block;vertical-align:middle;background:url(../images/icon-eye-closed.svg)}.collapse-container h1{margin:.25rem 0}.collapse-container .collapse-button{float:left;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;margin:5px -30px;font-size:1.6rem;line-height:.95;display:inline-block;width:25px;height:25px;text-align:center;border:1px solid #ddd;color:#c3c3c3;border-radius:5px}.help .collapse-container{margin:40px 0}.help .collapse-container .collapse-button{margin:-10px -30px;font-size:20px;line-height:1}.token-remove{width:.9rem;height:.9rem;position:absolute;left:18px;cursor:pointer}.node-remove{width:16px;height:16px;position:absolute;right:6px;top:8px}.m-addresses td:first-child{max-width:50px;min-widht:50px}.m-addresses td:last-child{text-align:right}.token-balances{margin-bottom:15px;font-size:14px;max-height:60vh;overflow:scroll}h2 a.isActive,h2 a.isActive:active,h2 a.isActive:hover{color:#333;cursor:default}.item{margin:6px 0}.output{padding:.5rem 1rem;margin-top:-.5rem}.output p{margin:.75rem 0 0}label .small{font-size:.9rem}label small{color:#9a9a9a}.write-address .col-xs-1{padding:0}.write-address .col-xs-11{padding-right:10px}.write-boolean label{display:block}.decrypt-drtv{padding:1rem 0}.decrypt-drtv label.radio{padding:0 1.5rem;margin:.5rem 0}.decrypt-drtv h4{margin-top:0}.qr-code{max-width:17rem;margin:auto}.qr-pkey-container{position:relative}.qr-overlay{background-color:#000;position:absolute;top:0;left:0;right:0;bottom:0}.contracts a.isActive{color:#333;font-weight:400}.contracts .dropdown-toggle{display:block;text-align:left;white-space:normal}.contracts .dropdown-toggle .caret{position:absolute;right:1rem;top:1.25rem}.contracts .dropdown-menu-left{font-size:.9rem;left:auto;right:0;min-width:37rem}.contracts .dropdown-menu-left small{float:right}.ens-tab a.isActive{color:#333;font-weight:400}.ens-tab .btn-primary-buy-button{width:200px}.ens-tab .btn-red{background-color:#84023d;border-color:#84023d;position:relative;width:200px}.ens-tab .btn-red .na{background-color:red;border-radius:300px;padding:5px 8px;font-weight:900}.ens-tab .btn-red:hover{background-color:#84023d;border-color:#84023d;position:relative}.ens-tab .pad-bot{padding-bottom:5px}.dropdown-gas{padding-bottom:1rem}@media screen and (max-width:900px){.dropdown-gas{padding-bottom:2rem}}.dropdown-gas__msg{font-size:12px;font-weight:300;margin:-10px auto 3px;max-width:113rem;padding:0 5rem;text-align:right;white-space:normal}@media screen and (max-width:80rem){.dropdown-gas__msg{padding:0 3%}}@media screen and (max-width:900px){.dropdown-gas__msg{margin-top:0;padding:0 1%}}.view-wallet-content h5{margin-bottom:.25rem}.view-wallet-content a.isActive{color:#333}#selectedTypeLedger ol{padding-left:1rem}.loading-wrap{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.7);z-index:999;text-align:center}.loading-wrap .loading{position:absolute;text-align:center;top:40%;left:50%;-webkit-transform:translate(-50%,-60%);-ms-transform:translate(-50%,-60%);transform:translate(-50%,-60%)}.loading-wrap img{border-radius:50%}.loading-wrap h1{-webkit-animation:opacity 2s infinite ease-in-out;animation:opacity 2s infinite ease-in-out;color:#fff}@-webkit-keyframes opacity{0%,to{opacity:0}50%{opacity:1}}@keyframes opacity{0%,to{opacity:0}50%{opacity:1}}.embedded-logo{height:auto;width:100%;max-width:290px;padding:.5rem 0}.ens-response{color:#737373}.dropdown-node .dropdown-menu li{border-left:2px solid #b50085;position:relative}.dropdown-node .dropdown-menu li:last-child{border-top:1px solid #ececec;padding-top:5px}.dropdown-node .dropdown-menu li:first-child,.dropdown-node .dropdown-menu li:nth-child(2),.dropdown-node .dropdown-menu li:nth-child(3),.dropdown-node .dropdown-menu li:nth-child(4){border-left:2px solid #0e97c0}.dropdown-node .dropdown-menu li:nth-child(5),.dropdown-node .dropdown-menu li:nth-child(6),.dropdown-node .dropdown-menu li:nth-child(7),.dropdown-node .dropdown-menu li:nth-child(8),.dropdown-node .dropdown-menu li:nth-child(9){border-left:2px solid #009241}.dropdown-node .dropdown-menu li:nth-child(10),.dropdown-node .dropdown-menu li:nth-child(11),.dropdown-node .dropdown-menu li:nth-child(12),.dropdown-node .dropdown-menu li:nth-child(13),.dropdown-node .dropdown-menu li:nth-child(14),.dropdown-node .dropdown-menu li:nth-child(15){border-left:2px solid #adc101}.dropdown-node .dropdown-menu li:nth-child(16){border-left:2px solid #673ab7}.dropdown-node .dropdown-menu li:nth-child(17){border-left:2px solid #00ad85}.dropdown-node .dropdown-menu li:nth-child(18){border-left:2px solid #4568bb}.dropdown-node .dropdown-menu li:nth-child(19){border-left:2px solid #6a488d}.dropdown-node .dropdown-menu li:nth-child(20){border-left:2px solid #046111}.dropdown-node .dropdown-menu li:nth-child(21){border-left:2px solid #4295d1}.dropdown-node .dropdown-menu li:nth-child(22){border-left:2px solid #0e97c0}.dropdown-node .dropdown-menu li:nth-child(23){border-left:2px solid #009241}.dropdown-node .dropdown-menu li:nth-child(24){border-left:2px solid #fece00}.dropdown-node .dropdown-menu li:nth-child(25){border-left:2px solid #27223d}.dropdown-node .dropdown-menu li:nth-child(26){border-left:2px solid #926565}.dropdown-node .dropdown-menu li:nth-child(27),.dropdown-node .dropdown-menu li:nth-child(28){border-left:2px solid #aa0087}.dropdown-node .dropdown-menu li:nth-child(29){border-left:2px solid #a16bff}.dropdown-node .dropdown-menu li:nth-child(30){border-left:2px solid #a2d729}.dropdown-node .dropdown-menu li:nth-child(31){border-left:2px solid #d63068}.dropdown-node .dropdown-menu li:nth-child(32){border-left:2px solid #09f}.dropdown-node .dropdown-menu li:nth-child(33){border-left:2px solid #4568bb}.dropdown-node .dropdown-menu li:nth-child(34){border-left:2px solid #0092ee}.dropdown-node .dropdown-menu li:last-child{border-left:2px solid #9a9a9a}.dropdown-node .dropdown-menu li:nth-child(4),.dropdown-node .dropdown-menu li:nth-child(9),.dropdown-node .dropdown-menu li:nth-child(15),.dropdown-node .dropdown-menu li:nth-child(16),.dropdown-node .dropdown-menu li:nth-child(17),.dropdown-node .dropdown-menu li:nth-child(18),.dropdown-node .dropdown-menu li:nth-child(19),.dropdown-node .dropdown-menu li:nth-child(20),.dropdown-node .dropdown-menu li:nth-child(21),.dropdown-node .dropdown-menu li:nth-child(22),.dropdown-node .dropdown-menu li:nth-child(23),.dropdown-node .dropdown-menu li:nth-child(24),.dropdown-node .dropdown-menu li:nth-child(25),.dropdown-node .dropdown-menu li:nth-child(26),.dropdown-node .dropdown-menu li:nth-child(28),.dropdown-node .dropdown-menu li:nth-child(29),.dropdown-node .dropdown-menu li:nth-child(30),.dropdown-node .dropdown-menu li:nth-child(31),.dropdown-node .dropdown-menu li:nth-child(32){border-bottom:1px solid #ececec}header{margin-bottom:1em}header.ETH .header-branding{border-bottom:.25rem solid #0e97c0}header.ETH+.container+.pre-footer+.footer{border-top:.25rem solid #0e97c0}header.ETH+.container .modal-content{border:.25rem solid #0e97c0}header.ETH+.container .alert-info{background-color:#0e97c0}header.ETH .dropdown-gas:before{width:24px;background-image:url(../images/coins/ethereum.svg)}header.ETC .header-branding{border-bottom:.25rem solid #009241}header.ETC+.container+.pre-footer+.footer{border-top:.25rem solid #009241}header.ETC+.container .modal-content{border:.25rem solid #009241}header.ETC+.container .alert-info{background-color:#009241}header.ETC .dropdown-gas:before{width:24px;background-image:url(../images/coins/ethereum-classic.svg)}header.Ropsten .header-branding{border-bottom:.25rem solid #adc101}header.Ropsten+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Ropsten+.container .modal-content{border:.25rem solid #adc101}header.Ropsten+.container .alert-info{background-color:#adc101}header.Kovan .header-branding{border-bottom:.25rem solid #adc101}header.Kovan+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Kovan+.container .modal-content{border:.25rem solid #adc101}header.Kovan+.container .alert-info{background-color:#adc101}header.Rinkeby .header-branding{border-bottom:.25rem solid #adc101}header.Rinkeby+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Rinkeby+.container .modal-content{border:.25rem solid #adc101}header.Rinkeby+.container .alert-info{background-color:#adc101}header.Custom .header-branding{border-bottom:.25rem solid #b50085}header.Custom+.container+.pre-footer+.footer{border-top:.25rem solid #b50085}header.Custom+.container .modal-content{border:.25rem solid #b50085}header.Custom+.container .alert-info{background-color:#b50085}header.EXP .header-branding{border-bottom:.25rem solid #673ab7}header.EXP+.container+.pre-footer+.footer{border-top:.25rem solid #673ab7}header.EXP+.container .modal-content{border:.25rem solid #673ab7}header.EXP+.container .alert-info{background-color:#673ab7}header.EXP .dropdown-gas:before{width:32px;background-image:url(../images/coins/exp.svg)}header.UBQ .header-branding{border-bottom:.25rem solid #00ad85}header.UBQ+.container+.pre-footer+.footer{border-top:.25rem solid #00ad85}header.UBQ+.container .modal-content{border:.25rem solid #00ad85}header.UBQ+.container .alert-info{background-color:#00ad85}header.UBQ .dropdown-gas:before{width:32px;background-image:url(../images/coins/ubiq.svg)}header.POA .header-branding{border-bottom:.25rem solid #4568bb}header.POA+.container+.pre-footer+.footer{border-top:.25rem solid #4568bb}header.POA+.container .modal-content{border:.25rem solid #4568bb}header.POA+.container .alert-info{background-color:#4568bb}header.POA .dropdown-gas:before{width:32px;background-image:url(../images/coins/poa.svg)}header.TOMO .header-branding{border-bottom:.25rem solid #6a488d}header.TOMO+.container+.pre-footer+.footer{border-top:.25rem solid #6a488d}header.TOMO+.container .modal-content{border:.25rem solid #6a488d}header.TOMO+.container .alert-info{background-color:#6a488d}header.TOMO .dropdown-gas:before{width:34px;background-image:url(../images/coins/tomo.svg)}header.ELLA .header-branding{border-bottom:.25rem solid #046111}header.ELLA+.container+.pre-footer+.footer{border-top:.25rem solid #046111}header.ELLA+.container .modal-content{border:.25rem solid #046111}header.ELLA+.container .alert-info{background-color:#046111}header.ELLA .dropdown-gas:before{width:32px;background-image:url(../images/coins/ella.svg)}header.ETSC .header-branding{border-bottom:.25rem solid #4295d1}header.ETSC+.container+.pre-footer+.footer{border-top:.25rem solid #4295d1}header.ETSC+.container .modal-content{border:.25rem solid #4295d1}header.ETSC+.container .alert-info{background-color:#4295d1}header.ETSC .dropdown-gas:before{width:32px;background-image:url(../images/coins/etsc.svg)}header.EGEM .header-branding{border-bottom:.25rem solid #0e97c0}header.EGEM+.container+.pre-footer+.footer{border-top:.25rem solid #0e97c0}header.EGEM+.container .modal-content{border:.25rem solid #0e97c0}header.EGEM+.container .alert-info{background-color:#0e97c0}header.EGEM .dropdown-gas:before{width:36px;background-image:url(../images/coins/egem.svg)}header.CLO .header-branding{border-bottom:.25rem solid #009241}header.CLO+.container+.pre-footer+.footer{border-top:.25rem solid #009241}header.CLO+.container .modal-content{border:.25rem solid #009241}header.CLO+.container .alert-info{background-color:#009241}header.CLO .dropdown-gas:before{width:36px;background-image:url(../images/coins/callisto.svg)}header.MUSIC .header-branding{border-bottom:.25rem solid #fece00}header.MUSIC+.container+.pre-footer+.footer{border-top:.25rem solid #fece00}header.MUSIC+.container .modal-content{border:.25rem solid #fece00}header.MUSIC+.container .alert-info{background-color:#fece00}header.MUSIC .dropdown-gas:before{width:34px;background-image:url(../images/coins/music.svg)}header.GO .header-branding{border-bottom:.25rem solid #27223d}header.GO+.container+.pre-footer+.footer{border-top:.25rem solid #27223d}header.GO+.container .modal-content{border:.25rem solid #27223d}header.GO+.container .alert-info{background-color:#27223d}header.GO .dropdown-gas:before{width:38px;background-image:url(../images/coins/gochain.svg)}header.EOSC .header-branding{border-bottom:.25rem solid #926565}header.EOSC+.container+.pre-footer+.footer{border-top:.25rem solid #926565}header.EOSC+.container .modal-content{border:.25rem solid #926565}header.EOSC+.container .alert-info{background-color:#926565}header.EOSC .dropdown-gas:before{width:26px;background-image:url(../images/coins/eosc.svg)}header.AKA .header-branding{border-bottom:.25rem solid #aa0087}header.AKA+.container+.pre-footer+.footer{border-top:.25rem solid #aa0087}header.AKA+.container .modal-content{border:.25rem solid #aa0087}header.AKA+.container .alert-info{background-color:#aa0087}header.AKA .dropdown-gas:before{width:34px;background-image:url(../images/coins/akroma.svg)}header.ESN .header-branding{border-bottom:.25rem solid #a16bff}header.ESN+.container+.pre-footer+.footer{border-top:.25rem solid #a16bff}header.ESN+.container .modal-content{border:.25rem solid #a16bff}header.ESN+.container .alert-info{background-color:#a16bff}header.ESN .dropdown-gas:before{width:32px;background-image:url(../images/coins/ethersocial.svg)}header.PIRL .header-branding{border-bottom:.25rem solid #a2d729}header.PIRL+.container+.pre-footer+.footer{border-top:.25rem solid #a2d729}header.PIRL+.container .modal-content{border:.25rem solid #a2d729}header.PIRL+.container .alert-info{background-color:#a2d729}header.PIRL .dropdown-gas:before{width:32px;background-image:url(../images/coins/pirl.svg)}header.ETHO .header-branding{border-bottom:.25rem solid #d63068}header.ETHO+.container+.pre-footer+.footer{border-top:.25rem solid #d63068}header.ETHO+.container .modal-content{border:.25rem solid #d63068}header.ETHO+.container .alert-info{background-color:#d63068}header.ETHO .dropdown-gas:before{width:24px;background-image:url(../images/coins/etho.svg)}header.ATH .header-branding{border-bottom:.25rem solid #09f}header.ATH+.container+.pre-footer+.footer{border-top:.25rem solid #09f}header.ATH+.container .modal-content{border:.25rem solid #09f}header.ATH+.container .alert-info{background-color:#09f}header.ATH .dropdown-gas:before{width:36px;background-image:url(../images/coins/atheios.svg)}header.ILT .header-branding{border-bottom:.25rem solid #4568bb}header.ILT+.container+.pre-footer+.footer{border-top:.25rem solid #4568bb}header.ILT+.container .modal-content{border:.25rem solid #4568bb}header.ILT+.container .alert-info{background-color:#4568bb}header.ILT .dropdown-gas:before{width:35px;background-image:url(../images/coins/ilt.svg)}header.WEB .header-branding{border-bottom:.25rem solid #0092ee}header.WEB+.container+.pre-footer+.footer{border-top:.25rem solid #0092ee}header.WEB+.container .modal-content{border:.25rem solid #0092ee}header.WEB+.container .alert-info{background-color:#0092ee}header.WEB .dropdown-gas:before{width:36px;background-image:url(../images/coins/webchain.svg)}.contest-container{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0!important;text-align:center}.contest-container ol{padding:0 10em;text-align:left!important}.contest-container ol li{list-style-position:inside}@media screen and (max-width:960px){.contest-container ol{padding:0 5em!important}.collapse-container .collapse-button{margin-left:-100px}}@media screen and (max-width:650px){.contest-container ol{padding:0 20px!important}}.on-boarding-close{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.on-boarding-close img{cursor:pointer}@media screen and (max-width:600px){.footer__pill-custom-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.footer__pill-custom-wrap a{-webkit-box-flex:1;-webkit-flex:auto;-ms-flex:auto;flex:auto;max-width:115px}}.privacy-policy{width:90%}.privacy-policy h1,.privacy-policy h3{font-weight:700;text-align:center}.privacy-policy .privacy-policy-body{margin-top:30px}.phishing{height:60%;text-align:center}.swap-tab a.link,.swap-tab a.link:hover{-webkit-transition:none;-o-transition:none;transition:none}.swap-tab .btn-lg{margin-top:3rem}.swap-tab .btn img,.swap-tab .btn svg{margin-right:.5rem;margin-left:-.25rem;vertical-align:middle}.swap-tab .swap-rates{text-align:center}.swap-tab .swap-rates .order-panel{background:-webkit-linear-gradient(300deg,#0e97c0,#163151);background:-o-linear-gradient(300deg,#0e97c0,#163151);background:linear-gradient(150deg,#0e97c0,#163151);position:relative}.swap-tab .swap-rates .order-panel .bity-logo{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@media screen and (max-width:51.2rem){.swap-tab .swap-rates .order-panel{padding-top:1rem;padding-bottom:1rem}.swap-tab .swap-rates .order-panel .order-info{text-align:left;padding:0 0 0 22%}.swap-tab .swap-rates .order-panel .bity-logo{left:-1rem;top:40%;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}}.swap-tab .swap-rates .form-control.input-sm{width:16%;min-width:3.5rem;display:inline-block;margin-right:1rem;text-align:right;background-color:transparent;color:#fff;-webkit-box-shadow:0 0 0 #fff;box-shadow:0 0 0 #fff;border:0 solid #fff;border-bottom:2px solid #fff}.swap-tab .swap-rates p{margin:0}.swap-tab .swap-rates p span{opacity:.9}.swap-tab .swap-rates .order-info:nth-child(4n+1),.swap-tab .swap-rates .order-info:nth-child(4n+2),.swap-tab .swap-rates .order-info:nth-child(4n+3){background:transparent}.swap-tab .swap-panel{text-align:center;margin-top:3rem;padding:2rem .5rem}.swap-tab .swap-panel>*{display:inline-block;margin:1.5rem .5rem;vertical-align:middle}.swap-tab .swap-panel .form-control{width:10rem;margin-right:0}.swap-tab .swap-panel .dropdown{margin-left:0}.swap-tab .swap-address{text-align:center;padding:3rem 1rem}.swap-tab .swap-start{text-align:center}.swap-tab .swap-start .swap-info{text-align:left;margin-bottom:5rem}.swap-tab .swap-order{text-align:left}.swap-tab .swap-order .order-info-wrap{margin-bottom:0}.swap-tab .swap-order h1{margin-top:3rem;margin-bottom:3rem}.ens-tab .collapse-container h4,.ens-tab .collapse-container h5,.swap-tab .collapse-container h4,.swap-tab .collapse-container h5{display:inline-block}.ens-tab .collapse-container .collapse-button,.swap-tab .collapse-container .collapse-button{float:none;margin:0}.order-info-wrap{margin-bottom:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.order-info-wrap .order-info{padding:1rem 0}.order-info{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;min-height:100px;text-align:center;padding:.5rem 0;color:#fff}.order-info:after,.order-info:before{content:" ";display:table}.order-info:after{clear:both}.order-info h3,.order-info h4,.order-info p{margin:0}.order-info:nth-child(4n+1){background-color:#175575}.order-info:nth-child(4n+2){background-color:#1e92ba}.order-info:nth-child(4n+3){background-color:#143955}.order-info:nth-child(4n+4){background-color:#19b3ae}.swap-progress{margin-top:2rem;margin-bottom:0;position:relative}.swap-progress .sep{position:absolute;top:3.5rem;left:3%;right:3%;height:.25rem;background-color:#ececec}@media screen and (max-width:675px){.swap-progress .sep{display:none}}.swap-progress:after,.swap-progress:before{content:" ";display:table}.swap-progress:after{clear:both}.swap-progress .progress-item{width:20%;float:left;text-align:center;margin:.25rem 0}@media screen and (max-width:675px){.swap-progress .progress-item{width:100%}}.swap-progress .progress-item:nth-child(4n+1) .progress-circle{border-color:rgba(30,146,186,.4);color:rgba(30,146,186,.4)}.swap-progress .progress-item:nth-child(4n+2) .progress-circle{border-color:rgba(23,85,117,.4);color:rgba(23,85,117,.4)}.swap-progress .progress-item:nth-child(4n+3) .progress-circle{border-color:rgba(25,179,174,.4);color:rgba(25,179,174,.4)}.swap-progress .progress-item:nth-child(4n+4) .progress-circle{border-color:rgba(20,57,85,.4);color:rgba(20,57,85,.4)}.swap-progress .progress-item .progress-circle{border-radius:50%;border-width:.25rem;border-style:solid;-webkit-box-sizing:content-box;box-sizing:content-box;margin:1rem auto;padding-bottom:4rem;position:relative;width:4rem;background:#fff}@media screen and (max-width:675px){.swap-progress .progress-item .progress-circle{margin:.25rem 1rem .25rem 2rem;padding-bottom:3rem;width:3rem;float:left}}.swap-progress .progress-item .progress-circle i{font-size:1.5rem;line-height:1.75rem;height:1.75rem;width:1.75rem;font-weight:900;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@media screen and (max-width:675px){.swap-progress .progress-item .progress-circle i{font-size:1.5rem;line-height:1.5rem;height:1.5rem;width:1.5rem}}.swap-progress .progress-item p{font-size:.9rem;font-weight:600;text-transform:uppercase;color:hsla(0,0%,55%,.5);letter-spacing:.1em}@media screen and (max-width:675px){.swap-progress .progress-item p{line-height:4rem;margin:0;text-align:left}}.swap-progress .progress-item p small{letter-spacing:.03em;font-size:75%}.swap-progress .progress-item.progress-active p{color:#8d8d8d}.swap-progress .progress-item.progress-active:nth-child(4n+1) .progress-circle{border-color:#1e92ba;color:#1e92ba}.swap-progress .progress-item.progress-active:nth-child(4n+2) .progress-circle{border-color:#175575;color:#175575}.swap-progress .progress-item.progress-active:nth-child(4n+3) .progress-circle{border-color:#19b3ae;color:#19b3ae}.swap-progress .progress-item.progress-active:nth-child(4n+4) .progress-circle{border-color:#143955;color:#143955}.swap-progress .progress-item.progress-true .progress-circle{background-color:#5dba5a;border-color:#5dba5a;-webkit-box-shadow:inset 0 0 0 5px #fff;box-shadow:inset 0 0 0 5px #fff}.swap-progress .progress-item.progress-true .progress-circle i{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 426.67 426.67' width='32' height='32'%3E%3Cpath d='M153.504 366.839c-8.657 0-17.323-3.302-23.927-9.911L9.914 237.265c-13.218-13.218-13.218-34.645 0-47.863 13.218-13.218 34.645-13.218 47.863 0l95.727 95.727 215.39-215.386c13.218-13.214 34.65-13.218 47.859 0 13.222 13.218 13.222 34.65 0 47.863L177.436 356.928c-6.609 6.605-15.271 9.911-23.932 9.911z' fill='%23fff'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;font-size:0}.swap-progress .progress-item.progress-true p{color:#5dba5a}.ens-tab .order-info-wrap{margin-top:1rem;margin-bottom:1rem}.ens-tab h5+p{margin-top:-.5em}.bity-contact{margin:9rem -1rem -5rem}.cont-md{max-width:64rem;margin:auto}.txstatus__1 .form-control{max-width:64rem;margin:1rem auto}.txstatus__3 h4{display:inline-block}.txstatus__3 .collapse-button{float:none;margin:0}.text-ellipsis{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.block-title1{background-color:#007cc0}.block-title1,.block-title2{color:#fff;padding:10px 20px;font-weight:900;font-size:20px}.block-title2{background-color:#3e4b5a}.mywallet-container ::-webkit-scrollbar{width:7px}.mywallet-container ::-webkit-scrollbar-track{background:#d7d7d7}.mywallet-container ::-webkit-scrollbar-thumb{background:#3e4b5a;border-radius:12px}.mywallet-container p{margin:0}.mywallet-container h3{margin:0;font-weight:900}.mywallet-container .addressIdenticon{width:50px!important;height:50px!important}.mywallet-container .grid-bg{background-color:#f5f5f5}.mywallet-container .grid-frame{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.mywallet-container .grid-frame #walletsContainer{-webkit-box-flex:50;-webkit-flex:50;-ms-flex:50;flex:50;height:100%}.mywallet-container .grid-frame .data:last-child{margin:0}.mywallet-container .grid-frame .data{display:grid;grid-template-columns:1fr 350px;grid-gap:4px;margin-bottom:20px}.mywallet-container .grid-frame .data .wallet .editor-icons{height:20px;width:20px}.mywallet-container .grid-frame .data .wallet .block-title1 p{font-weight:900}.mywallet-container .grid-frame .data .wallet .content{padding:25px 30px 20px}.mywallet-container .grid-frame .data .wallet .content>div{display:inline-block;vertical-align:top}.mywallet-container .grid-frame .data .wallet .content .balance{padding:0 20px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block{margin-bottom:15px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .block-title,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .block-title{width:125px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block h3,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block h3{display:inline-block;vertical-align:middle;font-size:20px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .balance-amount,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .balance-amount{vertical-align:middle;display:inline-block;font-size:20px;font-weight:900;color:#00c599}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block{display:inline-block;vertical-align:middle}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p{background-color:#fff;padding-left:20px;font-weight:500;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;font-size:14px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p button,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p button{background-color:#b3b3b4!important;color:#fff!important;display:inline-block;margin-left:30px;padding:12px 17px!important;border:none;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p button:hover,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p button:hover{background-color:grey!important}.mywallet-container .grid-frame .data .tokens .col-title{background-color:#fff;display:grid;grid-template-columns:1fr 1fr;padding:5px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .data .tokens .col-title p{font-weight:900;font-size:13px}.mywallet-container .grid-frame .data .tokens .content{height:116px;overflow-y:auto;position:relative}.mywallet-container .grid-frame .data .tokens .content>div{display:grid;grid-template-columns:1fr 1fr;padding:5px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .data .tokens .content>div:nth-child(2n){background-color:#ebebeb}.mywallet-container .grid-frame .data .tokens .content>div p{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mywallet-container .grid-frame .sidebar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:15;-webkit-flex:15;-ms-flex:15;flex:15;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;margin-left:15px;margin-top:4.2rem}.mywallet-container .grid-frame .sidebar .title-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff;background-color:#3e4b5a;padding:10px 20px}.mywallet-container .grid-frame .sidebar .title-container .title{display:inline-block;font-weight:900;font-size:20px}.mywallet-container .grid-frame .sidebar .title-container .total-of{display:inline-block;margin-left:auto;font-size:13px;margin-top:10px}.mywallet-container .grid-frame .sidebar .col-title{background-color:#fff;display:grid;grid-template-columns:2fr 1fr;padding:15px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .sidebar .col-title p{font-size:15px;font-weight:900}.mywallet-container .grid-frame .sidebar .content{overflow-y:scroll;position:relative}.mywallet-container .grid-frame .sidebar .content>div{display:grid;grid-template-columns:2fr 1fr;padding:15px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .sidebar .content>div p{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mywallet-container .grid-frame .sidebar .content>div .add-button{position:relative}.mywallet-container .grid-frame .sidebar .content>div .add-button p{cursor:pointer;width:90px;position:absolute;padding:7px 0;border:1px solid blue;font-size:12px;color:blue;text-align:center;top:-6px;left:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .sidebar .content>div .add-button p:hover{color:#fff;background-color:blue}.mywallet-container .grid-frame .sidebar .content>div .remove-button{position:relative}.mywallet-container .grid-frame .sidebar .content>div .remove-button p{cursor:pointer;width:90px;position:absolute;padding:7px 0;border:1px solid red;font-size:12px;color:red;text-align:center;top:-6px;left:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .sidebar .content>div .remove-button p:hover{color:#fff;background-color:red}.mywallet-container .grid-frame .sidebar .content .col-title{background-color:#fff}.mywallet-container .grid-frame .sidebar .content .col-title p{font-weight:900}#etherWalletPopUp{padding:10px;position:relative;min-width:346px}#etherWalletPopUp .back-icon{position:absolute;left:5px;top:5px}#etherWalletPopUp .back-icon:active,#etherWalletPopUp .back-icon:hover{outline:0}.toggleTokenContainer span{color:#0e97c0;cursor:pointer}.toggleTokenContainer span:hover{color:#095f79}.walletTokensContainer{max-height:70px;overflow:scroll}.quicksend-address{font-family:Menlo,Monaco,Consolas,Courier New,monospace;max-width:170px;word-wrap:break-word;font-size:12px;font-weight:300;display:block}.chrome-tokens span{min-width:130px;display:inline-block}.truncate{max-width:130px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mainWalletDelete,.mainWalletEdit,.mainWalletView{margin:.5em}.myWalletCtrl table:not(.account-info) h2{margin:0;font-size:1.6em}.myWalletCtrl table:not(.account-info) h3{font-weight:400;font-size:1.3em}.myWalletCtrl table:not(.account-info) td:nth-child(2){max-width:380px}.myWalletCtrl table:not(.account-info) td,.myWalletCtrl table:not(.account-info) th{vertical-align:middle;padding:.5em .75em}#secWatchOnlyMain .mainWalletDelete{width:60px;display:block}.spinner{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;height:37px}.spinner-container{display:inherit!important;padding:7.5px 20px!important;text-align:center}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.text-navy{color:#163151}.text-gray-lighter{color:#ececec}.text-blue{color:#0e97c0}.text-white{color:#fff}.bg-navy{background:#163151}.bg-gradient{background:#163151;background:-webkit-linear-gradient(301deg,#132a45,#143a56,#21a4ce,#19b4ad);background:-o-linear-gradient(301deg,#132a45,#143a56,#21a4ce,#19b4ad);background:linear-gradient(149deg,#132a45,#143a56,#21a4ce,#19b4ad)}.bg-gray-lighter{background-color:#ececec}.bg-blue{background-color:#0e97c0}.bg-white{background-color:#fff}.text-serif{font-family:Georgia,Times New Roman,Times,serif}.text-sans-serif{font-family:Lato,sans-serif}.pad-v-sm{padding-top:.5em;padding-bottom:.5em}.pad-v-md{padding-top:1em;padding-bottom:1em}.pad-v-lg{padding-top:1.5em;padding-bottom:1.5em}.pad-v-xl{padding-top:2em;padding-bottom:2em}.marg-v-sm{margin-top:.5em;margin-bottom:.5em}.marg-v-md{margin-top:1em;margin-bottom:1em}.marg-v-lg{margin-top:1.5em;margin-bottom:1.5em}.marg-v-xl{margin-top:2em;margin-bottom:2em}.img-fill{width:100%;height:auto;max-width:100%}.header-branding{color:#fff;padding:0}@media screen and (max-width:960px){.header-branding{text-align:center}}.header-branding .container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:900px){.header-branding .container{padding-left:1%;padding-right:1%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}}.header-branding .brand{float:left}@media screen and (max-width:900px){.header-branding .brand{float:none}}.header-branding .brand img{padding:.25rem 0}.header-branding .tagline{font-weight:200;color:#fff;-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;text-align:right;padding:.25rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:900px){.header-branding .tagline{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;text-align:right}}.header-branding a{cursor:pointer;font-weight:400;display:inline-block}.header-branding a,.header-branding a:active,.header-branding a:hover{color:#fff;-webkit-transition:all .25s ease;-o-transition:.25s all ease;transition:all .25s ease}.header-branding a:active,.header-branding a:hover{opacity:.8;text-decoration:none}.header-branding .dropdown{padding:.1rem}@media screen and (max-width:900px){.header-branding .dropdown{padding:.1rem 0;white-space:nowrap;display:inline-block;font-size:14px}.header-branding .dropdown .dropdown-menu{right:0;overflow-y:auto;min-width:auto;left:auto;top:100%;font-size:14px}.header-branding .dropdown .dropdown-menu>li>a{font-size:14px;padding:.25rem 30px .25rem 15px;position:relative}.header-branding .dropdown-gas{white-space:normal}.header-branding .dropdown-gas .dropdown-menu{right:0!important}}.header-branding .dropdown-toggle{font-size:14px;padding:.3em .6rem}.header-branding .dropdown-gas{display:inline-block}.header-branding .dropdown-gas .dropdown-menu{min-width:200px;padding:.5rem;margin:.1rem 0 0;right:.1rem;left:auto;overflow:unset}.header-branding .dropdown-gas .dropdown-menu p{padding:0}.header-branding .dropdown-gas:before{content:"";display:inline-block;background-position:50%;background-repeat:no-repeat;background-size:contain;vertical-align:middle;width:24px;height:48px;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='417' preserveAspectRatio='xMidYMid'%3E%3Cg fill-opacity='.588'%3E%3Cpath d='M128.95 154.205h.003l127.96 58.162L128.953.047z' fill='%23b1b1b1'/%3E%3Cpath d='M128.95 154.205V.047L.988 212.367l127.96-58.162z' fill='%23cfcfcf'/%3E%3Cpath d='M128.949 416.953l128.038-180.32-128.038 75.6z' fill='%23b1b1b1'/%3E%3Cpath fill='%23cfcfcf' d='M.988 236.632l127.962 180.32v-104.72z'/%3E%3Cpath fill='%23909090' d='M128.95 288.004l127.96-75.637-127.96-58.162z'/%3E%3Cpath fill='%23b1b1b1' d='M128.948 154.205L.988 212.367l127.96 75.637z'/%3E%3C/g%3E%3C/svg%3E");margin-top:1px}.dropdown-menu a.active{text-decoration:none;color:#0e97c0;background-color:#fafafa}.dropdown-menu{overflow-y:auto;right:.1rem;margin:.1rem 0 0}.nav-container{position:relative;overflow-y:hidden}.nav-container .nav-scroll{-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;overflow-x:auto;margin-bottom:-20px;font-size:0;white-space:nowrap}@media screen and (max-width:51.2rem){.nav-container .nav-scroll{margin:0 -5% -20px}}.nav-container .nav-scroll .nav-inner{border-bottom:2px solid #fff;display:inline-block;font-size:0;margin-bottom:20px;min-width:100%;padding:5px 0 0;vertical-align:middle}.nav-container .nav-scroll .nav-inner .nav-item{display:inline-block;font-size:0}.nav-container .nav-scroll .nav-inner .nav-item.NAV_Swap a:before{content:"";display:inline-block;margin-top:-.1rem;width:1.3rem;height:1.3rem;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620.04 631.27'%3E%3Ctitle%3Eicon-swap%3C/title%3E%3Cpath d='M469.95 289.68c-77 0-139.59-62.62-139.59-139.59S392.98 10.5 469.95 10.5s139.59 62.62 139.59 139.59-62.62 139.59-139.59 139.59z' fill='%23ffe14d'/%3E%3Cpath d='M469.95 21a129.09 129.09 0 1 1-129.09 129.09A129.24 129.24 0 0 1 469.95 21m0-21c-82.76 0-150.09 67.33-150.09 150.09s67.29 150.09 150.09 150.09 150.09-67.33 150.09-150.09S552.71 0 469.95 0z' fill='%230f0f0f'/%3E%3Cpath d='M599.04 150.09A129.24 129.24 0 0 0 469.95 21v258.18a129.24 129.24 0 0 0 129.09-129.09z' fill='%23fc3'/%3E%3Cpath d='M469.95 44.94a105.12 105.12 0 1 0 105.12 105.15A105.24 105.24 0 0 0 469.95 44.94zm0 179c-49.27 0-74.85-24.6-74.85-73.87s25.58-74.85 74.85-74.85 75.82 25.58 75.82 74.85-26.55 73.87-75.82 73.87z' fill='%23ff9f19'/%3E%3Cpath d='M545.77 150.09c0 49.27-26.55 74.85-75.82 74.85v30.27a105.12 105.12 0 1 0 0-210.24v30.27c49.27 0 75.82 25.58 75.82 74.85z' fill='%23f28618'/%3E%3Cpath fill='%230492be' d='M100.66 277.37H26.9V114.06h240.72V50.84l131.7 100.1-131.7 100.09v-63.22H100.66v89.56z'/%3E%3Cpath fill='%23103957' opacity='.2' d='M63.78 150.94h335.54l-131.7-100.1v63.22H26.9v163.31h36.88V150.94z'/%3E%3Cpath d='M259.71 34.94l152.67 116-152.67 116v-71.23H108.55v89.56H19V106.15h240.71zm126.55 116L275.52 66.77v55.17H34.8v147.53h57.95v-89.53h182.77v55.19z'/%3E%3Cpath fill='%23fff' d='M292.951 119.43l9.638-12.482 47.456 36.642-9.638 12.482z'/%3E%3Cpath d='M150.09 620.77c-77 0-139.59-62.62-139.59-139.59s62.65-139.59 139.59-139.59 139.59 62.62 139.59 139.59-62.62 139.59-139.59 139.59z' fill='%23ffe14d'/%3E%3Cpath d='M150.09 352.09A129.09 129.09 0 1 1 21 481.18a129.24 129.24 0 0 1 129.09-129.09m0-21C67.33 331.09 0 398.42 0 481.18s67.33 150.09 150.09 150.09 150.06-67.33 150.06-150.09-67.3-150.09-150.06-150.09z' fill='%230f0f0f'/%3E%3Cpath d='M21 481.18a129.24 129.24 0 0 0 129.09 129.09V352.09A129.24 129.24 0 0 0 21 481.18z' fill='%23fc3'/%3E%3Cpath d='M150.09 586.3A105.12 105.12 0 1 0 44.97 481.18 105.24 105.24 0 0 0 150.09 586.3zm0-179c49.27 0 74.85 24.6 74.85 73.87s-25.58 74.85-74.85 74.85-75.82-25.58-75.82-74.85 26.55-73.86 75.82-73.86z' fill='%23ff9f19'/%3E%3Cpath d='M74.26 481.18c0-49.27 26.55-74.85 75.82-74.85v-30.27a105.12 105.12 0 1 0 0 210.24v-30.27c-49.26 0-75.82-25.58-75.82-74.85z' fill='%23f28618'/%3E%3Cpath fill='%230492be' d='M519.39 353.9h73.75v163.31H352.43v63.22L220.72 480.34l131.71-100.1v63.22h166.96V353.9z'/%3E%3Cpath fill='%23103957' opacity='.2' d='M556.26 480.34H220.72l131.71 100.09v-63.22h240.71V353.9h-36.88v126.44z'/%3E%3Cpath d='M360.32 596.36l-152.66-116 152.66-116v71.25h151.16V346h89.56v179.11H360.32zm-126.55-116l110.74 84.16v-55.21h240.73V361.8h-57.95v89.56H344.52v-55.19z'/%3E%3Cpath fill='%23fff' d='M268.572 486.574l9.7-12.473 47.419 36.875-9.7 12.473z'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;vertical-align:middle;margin-right:.25rem}.nav-container .nav-scroll .nav-inner .nav-item a{color:#095f79;display:block;font-size:16px;font-weight:300;padding:10px;white-space:nowrap;position:relative;min-height:2.75rem}.nav-container .nav-scroll .nav-inner .nav-item a:after{content:"";background:#0e97c0;height:2px;width:100%;left:0;position:absolute;bottom:-1px;-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.nav-container .nav-scroll .nav-inner .nav-item.active a,.nav-container .nav-scroll .nav-inner .nav-item a:focus,.nav-container .nav-scroll .nav-inner .nav-item a:hover{color:#0e97c0;text-decoration:none;-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s}.nav-container .nav-scroll .nav-inner .nav-item.active a:after,.nav-container .nav-scroll .nav-inner .nav-item a:focus:after,.nav-container .nav-scroll .nav-inner .nav-item a:hover:after{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s}.nav-container .nav-arrow-left,.nav-container .nav-arrow-right{background-color:#fff;bottom:12px;color:#d6d6d6;font-size:33px;line-height:1.3;min-width:50px;position:absolute;top:0;vertical-align:middle;width:5%;z-index:999}.nav-container .nav-arrow-left:hover,.nav-container .nav-arrow-right:hover{text-decoration:none}.nav-container .nav-arrow-right{right:3%;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(47%,#fff),to(#fff));background:-webkit-linear-gradient(left,hsla(0,0%,100%,0),#fff 47%,#fff);background:-o-linear-gradient(left,hsla(0,0%,100%,0) 0,#fff 47%,#fff 100%);background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 47%,#fff);padding-right:5px;text-align:right}@media screen and (max-width:51.2rem){.nav-container .nav-arrow-right{right:0}}.nav-container .nav-arrow-left{left:3%;background:-webkit-gradient(linear,right top,left top,from(hsla(0,0%,100%,0)),color-stop(47%,#fff),to(#fff));background:-webkit-linear-gradient(right,hsla(0,0%,100%,0),#fff 47%,#fff);background:-o-linear-gradient(right,hsla(0,0%,100%,0) 0,#fff 47%,#fff 100%);background:linear-gradient(270deg,hsla(0,0%,100%,0) 0,#fff 47%,#fff);padding-left:5px;text-align:left}@media screen and (max-width:51.2rem){.nav-container .nav-arrow-left{left:0}}.print-container{width:680px;height:280px;border:1px solid gray;margin-bottom:50px;position:relative}.print-container #identicon{-webkit-print-color-adjust:exact;position:absolute;right:7.5rem;bottom:3rem}.print-container #identicon:after{content:"Always look for this icon when sending to this wallet.";font-size:9px;width:120px;position:absolute;bottom:.75rem;text-align:center;right:-7.5rem}.print-title{float:left}.print-text{color:#0b7290;text-transform:uppercase;letter-spacing:.05em;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);position:absolute;right:0;bottom:0;font-size:13px;font-weight:600}.print-qr-code-1{width:28%;float:left;position:relative;padding:20px}.print-qr-code-1 .print-text{right:-35px;bottom:69px}.print-qr-code-2{width:28%;float:left;position:relative;padding:20px}.print-qr-code-2 .print-text{right:-45px;bottom:69px}.print-notes{width:28%;float:left;position:relative;padding:20px}.print-notes .print-text{right:-45px;bottom:69px}.print-address-container{float:left;width:85%;padding:0 25px}.print-address-container p{font-size:14px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.ether-logo-1{position:absolute;left:100px}.ether-logo-2{position:absolute;right:32px;bottom:64px}.block--container{max-width:113rem;margin-left:-1%;margin-right:-1%}.block__wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.block{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative}.block:after,.block:before{content:" ";display:table}.block:after{clear:both}@media screen and (max-width:32rem){.block{padding:1.25rem}}.block>:first-child{margin-top:0}.block>:last-child{margin-bottom:0}.block--text-white *,.block--text-white a{color:#fff}.block--text-white a:focus,.block--text-white a:hover{color:hsla(0,0%,100%,.9)}.block--danger{background-color:#ea4b40}.block--danger *,.block--danger a{color:#fff}.block--danger a:focus,.block--danger a:hover{color:hsla(0,0%,100%,.9)}.block--warning{background-color:#ff9800}.block--warning *,.block--warning a{color:#fff}.block--warning a:focus,.block--warning a:hover{color:hsla(0,0%,100%,.9)}.block--info{background-color:#163151}.block--info *,.block--info a{color:#fff}.block--info a:focus,.block--info a:hover{color:hsla(0,0%,100%,.9)}.block--primary{background-color:#0e97c0}.block--primary *,.block--primary a{color:#fff}.block--primary a:focus,.block--primary a:hover{color:hsla(0,0%,100%,.9)}.block--success{background-color:#5dba5a}.block--success *,.block--success a{color:#fff}.block--success a:focus,.block--success a:hover{color:hsla(0,0%,100%,.9)}.block__main{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative;text-align:left;padding:.75rem;-webkit-flex-basis:98%;-ms-flex-preferred-size:98%;flex-basis:98%;margin:1rem .5%}.block__main:after,.block__main:before{content:" ";display:table}.block__main:after{clear:both}@media screen and (max-width:32rem){.block__main{padding:1.25rem}}.block__main>:first-child{margin-top:0}.block__main>:last-child{margin-bottom:0}@media screen and (min-width:51.2rem){.block__main{-webkit-flex-basis:68%;-ms-flex-preferred-size:68%;flex-basis:68%}}@media screen and (min-width:66.13333333rem){.block__main{-webkit-flex-basis:73%;-ms-flex-preferred-size:73%;flex-basis:73%}}.block__help{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative;background-image:url(../images/icon-help-2.svg);background-size:8rem;background-position:102% -5%;background-repeat:no-repeat;text-align:left;margin:1rem 1%;-webkit-flex-basis:98%;-ms-flex-preferred-size:98%;flex-basis:98%}.block__help:after,.block__help:before{content:" ";display:table}.block__help:after{clear:both}@media screen and (max-width:32rem){.block__help{padding:1.25rem}}.block__help>:last-child{margin-bottom:0}@media screen and (min-width:51.2rem){.block__help{-webkit-flex-basis:28%;-ms-flex-preferred-size:28%;flex-basis:28%}}@media screen and (min-width:66.13333333rem){.block__help{-webkit-flex-basis:23%;-ms-flex-preferred-size:23%;flex-basis:23%}}.block__help a{color:#ff5722}.block__help a:hover{color:#ff4408}.block__help>:first-child{margin-top:0}.block__help ul{list-style:circle}.block__help ol,.block__help ul{padding-left:1rem}.block__help h2{font-size:1.15rem;font-weight:400}.equal-space>*{margin-top:1rem;margin-bottom:1rem}.u-center-h{text-align:center}.gen__1 .input-group{max-width:43rem;margin:1rem auto}.gen__1--inner{text-align:center}.gen__1--inner h1{margin:1rem auto 2rem}.gen__1--inner h4{margin:3rem auto 1rem}.gen__1--inner p{margin:0 0 2rem}.gen__1--inner .btn{margin:0 auto 3rem}.gen__2--inner{text-align:center}.gen__2--inner h1{margin:1rem auto}.gen__2--inner>.btn{margin:1rem auto 2rem}.gen__2--inner .warn{margin:2rem auto}.gen__3--inner{text-align:center}.gen__3--inner h1{margin:2rem auto 1rem}.gen__3--inner>.btn,.gen__3--inner>.form-control{margin:0 auto 3rem}.pre-footer{padding:1rem;-webkit-box-shadow:16px 16px 47px 0 rgba(0,0,0,.07);box-shadow:16px 16px 47px 0 rgba(0,0,0,.07);margin-top:5rem;background-color:#fff;text-align:center}.pre-footer p{font-size:1.3rem}.footer{background-color:#102138;color:#fff;font-size:.8rem;margin-top:0}.footer h5{margin-top:.5rem;margin-bottom:.25rem}.footer h5 i{margin-left:-1.5em;margin-right:.25em}.footer h5:first-child{margin-top:0}.footer ul{list-style:none;padding-left:0;margin:0}.footer li,.footer p{font-size:.8rem;margin:.25em 0}.footer a{color:#7fe5ff;font-weight:400}.footer a:focus,.footer a:hover{color:#4cdbff}.footer small{font-size:.6rem}.footer--logo{width:100%;height:auto;max-width:16rem}.header--gas{max-width:26rem;color:#333}.header--gas p{font-weight:400;margin:.5rem 0 0}.header--gas a,.header--gas a:focus,.header--gas a:hover,.header--gas a:visited{color:#0e97c0}.footer--left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:22rem;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:32rem){.footer--left{max-width:100%}}.footer--cent{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:34rem;-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2}@media screen and (max-width:32rem){.footer--cent{max-width:100%}}.footer--cent li:last-child,.footer--cent ul{margin-bottom:0}.footer--righ{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:28rem;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:32rem){.footer--righ{max-width:100%}}.footer__icon{display:inline-block;height:30px;width:30px;padding:5px}.footer__pill-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}a.footer__pill{display:inline;background:#0e97c0;padding:3px 12px;border-radius:30px;color:#fff}a.footer__pill:focus,a.footer__pill:hover{color:#0e97c0;background:#fff;opacity:1}.custom-token-fields label{font-weight:400;font-size:1rem}.custom-token-fields input{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.custom-token-fields input{height:2rem;line-height:2rem}select[multiple].custom-token-fields input,textarea.custom-token-fields input{height:auto}.custom-token-fields input .mono{font-size:.75rem}.custom-token-fields .address-identicon-container{margin-top:2rem}.swap--btc,.swap--hw,.swap--usd{text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1rem .15rem}.swap--btc .col-sm-7,.swap--hw .col-sm-7,.swap--usd .col-sm-7{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.swap--usd{background-color:#2b71b1}.swap--usd *,.swap--usd a{color:#fff}.swap--usd a:focus,.swap--usd a:hover{color:hsla(0,0%,100%,.9)}.swap--usd .swap-flag--bal,.swap--usd .swap-flag--price{background-color:#2e86d7}.swap--btc{background-color:#006e79}.swap--btc *,.swap--btc a{color:#fff}.swap--btc a:focus,.swap--btc a:hover{color:hsla(0,0%,100%,.9)}.swap--btc .swap-flag--bal,.swap--btc .swap-flag--price{background-color:#00a3b4}.swap--hw{background-color:#6e9a3e}.swap--hw *,.swap--hw a{color:#fff}.swap--hw a:focus,.swap--hw a:hover{color:hsla(0,0%,100%,.9)}.swap--hw .swap-flag--bal,.swap--hw .swap-flag--price{background-color:#81bc3f}.swap--hw .swap__logo{margin:.45rem 0}.swap-flag--bal,.swap-flag--price{background-color:#5dba5a;color:#fff;padding:.1rem .5rem;font-size:.7rem;border-radius:5rem;margin:.7rem 0 0;line-height:1.4;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.swap__subhead{font-size:.8rem;margin:.15rem 0}.swap__cta{font-size:1.25rem;margin:.15rem 0}.swap__logo{margin:0}.swap__nav{margin-top:-1.1rem;margin-bottom:.7rem;text-align:center}.swap__nav a{color:#9a9a9a;padding:0 .2rem .6rem}.send-modal__addr{font-size:12px}.u__protip{display:table}.u__protip:before{content:"";display:table-cell;width:2em;height:1em;background-image:url(../images/icon-protip.svg);background-size:contain;vertical-align:middle;text-align:center;background-position:50%;background-repeat:no-repeat;border-right:.5em solid transparent}.u__download{display:table;margin-left:.5em}.u__download:before{content:"";display:table-cell;width:1.25em;height:1em;background-image:url(../images/icon-external-link.svg);background-size:contain;vertical-align:middle;text-align:center;background-position:50%;background-repeat:no-repeat;border-right:.5em solid transparent}.send__load-tokens{padding:5px 2px;margin:0;background-color:#ff9800;text-align:center;color:#fff;font-size:9px}.send__load-tokens img{width:14px;height:14px}.send__load-tokens p{margin:4px 0 0;font-weight:500}.send__load-tokens:hover{color:#fff;opacity:.8}.onboarding__modal{padding:1rem}.onboarding__modal:after,.onboarding__modal:before{content:" ";display:table}.onboarding__modal:after{clear:both}.onboarding__modal .btn-primary{background-image:url(../images/icon-arrow-right.svg);background-size:contain;background-position:100%;background-repeat:no-repeat}.onboarding__modal .btn-default{background-image:url(../images/icon-arrow-left.svg);background-size:contain;background-position:0;background-repeat:no-repeat}.onboarding__modal .onboarding__title{text-align:center;margin-bottom:1.5rem}@media (max-width:50.2rem){.onboarding__modal .onboarding__title{margin:0 auto .5rem}}.onboarding__modal img{margin-top:1rem;margin-bottom:1rem}@media (max-width:50.2rem){.onboarding__modal img{max-height:200px}}.onboarding__modal .onboarding__buttons .btn{margin-top:.5rem;margin-bottom:.5rem}@media (min-width:51.2rem){.onboarding__modal .onboarding__buttons{margin-top:.5rem;margin-bottom:.5rem}.onboarding__modal .onboarding__buttons:after,.onboarding__modal .onboarding__buttons:before{content:" ";display:table}.onboarding__modal .onboarding__buttons:after{clear:both}.onboarding__modal .onboarding__buttons .btn+.btn{float:right}}@media (max-width:50.2rem){.onboarding__modal .onboarding__buttons .btn{display:block}.onboarding__modal .onboarding__buttons .btn+.btn{margin-top:1.5rem}}@media (max-width:50.2rem){.onboarding__modal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.onboarding__modal .onboarding__content,.onboarding__modal .onboarding__image{-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2}.onboarding__modal .onboarding__content+.onboarding__image{-webkit-box-ordinal-group:2;-webkit-order:1;-ms-flex-order:1;order:1}}.row.row--flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media (max-width:50.2rem){.row.row--flex{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}}.onboarding__msg{text-align:center;font-size:.9rem} \ No newline at end of file +/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline;color:#000}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #000;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}.print-text{color:#0b7290!important}footer{border-top:1px solid #000}header{border-bottom:1px solid #000;border-top:0 solid #fff!important}.btn{border:1px solid #000;color:1px solid #000;background:transparent!important}.nav-container{display:none!important}.footer-1 img{width:40px!important}.footer-1 *,.footer-2 *,.footer-3 *{font-size:8px!important;line-height:1.1!important}.footer-1 .footer-2,.footer-1 .footer-3,.footer-2 .footer-2,.footer-2 .footer-3,.footer-3 .footer-2,.footer-3 .footer-3{float:left!important}.h1,h1{font-size:18px}.h1,.h2,h1,h2{font-weight:700}.h2,h2{font-size:17px}.h3,h3{font-size:16px}.h3,.h4,h3,h4{font-weight:700}.h4,h4{font-size:15px}.h5,h5{font-size:14px}.h5,.h6,h5,h6{font-weight:700}.h6,h6{font-size:13px}.modal{position:inherit!important;page-break-inside:avoid;page-break-before:always}}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:15 px;-webkit-tap-highlight-color:rgba(0,0,0,0);height:100%}@media screen and (min-width:94rem){html{font-size:16px}}@media screen and (max-width:50.2rem){html{font-size:15 px}}body{font-family:Lato,sans-serif;font-size:1rem;line-height:1.4;color:#333;background-color:#fbfbfb;height:100%}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}figure{margin:0}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-thumbnail{padding:.2rem;line-height:1.4;background-color:#fbfbfb;border:1px solid #ddd;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid #ececec}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:700;line-height:1.2;color:inherit;letter-spacing:.02em}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:inherit}.h1,.h2,.h3,h1,h2,h3{margin-top:1rem;margin-bottom:.5rem}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:1rem;margin-bottom:.5rem}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:2.25rem}.h1,.h2,h1,h2{font-weight:300}.h2,h2{font-size:1.9rem}.h3,h3{font-size:1.5rem}.h3,.h4,h3,h4{font-weight:700}.h4,h4{font-size:1.3rem}.h5,h5{font-size:1.15rem}.h5,.h6,h5,h6{font-weight:400}.h6,h6{font-size:1.07rem}p{margin:0 0 .5rem;font-weight:300}p.strong,p .strong,p strong{font-weight:400}i{font-style:normal}.strong,strong{font-weight:600}.lead{margin-bottom:1.4;font-size:1rem}a{color:#0e97c0;text-decoration:none;cursor:pointer}a,a:hover{-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}a:hover{opacity:.8;color:#0c84a8}a:active,a:focus{opacity:1;-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}a:focus{outline:thin dotted;outline-offset:3px}.point{cursor:pointer}.strike{text-decoration:line-through}.small,small{font-size:85%}.mark,mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#9a9a9a}.text-primary{color:#0e97c0}a.text-primary:focus,a.text-primary:hover{color:#0c84a8}.text-success{color:#459f42}a.text-success:focus,a.text-success:hover{color:#3d8d3b}.text-info{color:#0b1929}a.text-info:focus,a.text-info:hover{color:#060d15}.text-warning{color:#cc7a00}a.text-warning:focus,a.text-warning:hover{color:#b36a00}.text-danger{color:#df2518}a.text-danger:focus,a.text-danger:hover{color:#c82116}.text-underline{text-decoration:underline}.text-light{font-weight:200}.bg-primary{color:#fff;background-color:#0e97c0}a.bg-primary:focus,a.bg-primary:hover{background-color:#0b7290}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:-.5rem;margin:2.8 0 1.4;border-bottom:1px solid #ececec}ol,ul{margin-top:0;margin-bottom:1em}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}li{margin-bottom:.5em;font-weight:300}li strong{font-weight:400}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline{margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:1.4}dd,dt{line-height:1.4}dt{font-weight:700}dd{margin-left:0}@media (min-width:51.2rem){.dl-horizontal dt{float:left;width:-8rem;clear:left;text-align:right;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:12rem}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #9a9a9a}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:.5rem 1.4;margin:0 0 1.4;font-size:1.25rem;border-left:5px solid #ececec}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.4;color:#9a9a9a}blockquote .small:before,blockquote footer:before,blockquote small:before{content:"\2014 \00A0"}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #ececec;border-left:0;text-align:right}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:""}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:"\00A0 \2014"}address{margin-bottom:1.4;font-style:normal;line-height:1.4}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace}code{color:#c7254e;background-color:#f9f2f4}code,kbd{padding:2px 4px;font-size:90%;border-radius:0}kbd{color:#fff;background-color:#333;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:.2;margin:0 0 .7;font-size:0;line-height:1.4;word-break:break-all;word-wrap:break-word;color:#333;background-color:#fafafa;border:1px solid #ececec;border-radius:0}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:23rem;overflow-y:scroll}.container{width:100%;margin-right:auto;margin-left:auto;max-width:113rem;padding:0 5rem}@media screen and (max-width:80rem){.container{padding:0 3%}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:1rem;padding-right:1rem}.row{margin-left:-1rem;margin-right:-1rem}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{position:relative;min-height:1px;padding-left:1rem;padding-right:1rem}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:51.2rem){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:66.13333333rem){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:80rem){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent;margin-bottom:10px;border-bottom:1px solid #ddd}caption{padding-top:.5rem;padding-bottom:.5rem;color:#9a9a9a}caption,th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:1.4}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:.5rem;line-height:1.4;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fbfbfb}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:.25rem}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f5f5f5}.table-striped>tbody>tr>td,.table-striped>tbody>tr>th,.table-striped>tfoot>tr>td,.table-striped>tfoot>tr>th,.table-striped>thead>tr>td,.table-striped>thead>tr>th{border-top:0}.table-mnemonic{border-bottom:0;font-weight:400}.table-mnemonic th{border-bottom:1px solid #ececec;vertical-align:bottom}.table-mnemonic td:first-child{font-family:Menlo,Monaco,Consolas,Courier New,monospace}.table-mnemonic tr:last-child td:first-child{text-align:left}.table-mnemonic tr:first-child,.table-mnemonic tr:last-child:not(.mnemonic-custom-row){background-color:#fff!important}.table-mnemonic.table>tbody>tr>td,.table-mnemonic.table>tbody>tr>th,.table-mnemonic.table>tfoot>tr>td,.table-mnemonic.table>tfoot>tr>th,.table-mnemonic.table>thead>tr>td,.table-mnemonic.table>thead>tr>th{padding:.25rem}.table-mnemonic .mnemonic-custom-row input[type=text]{margin:-5px;display:inline;width:70%;max-width:15rem}.table-mnemonic label{margin:.15rem}.table-hover,.table-hover>tbody>tr>td,.table-hover>tbody>tr>th,.table-hover>tfoot>tr>td,.table-hover>tfoot>tr>th,.table-hover>thead>tr>td,.table-hover>thead>tr>th,.table-hover td,.table-hover th,.table-hover tr{border:0 solid #fff}.table-hover>tbody>tr:hover{background-color:#fafafa}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#fafafa}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#ededed}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}@media screen and (max-width:50.2rem){.table-responsive{width:100%;margin-bottom:1.05;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}.table-domainsale-modal .table-ens-modal{font-weight:400;font-size:16px}.table-domainsale-modal .table-ens-modal textarea{font-size:11px;word-break:break-all;padding:.5rem}fieldset{margin:0;min-width:0}fieldset,legend{padding:0;border:0}legend{display:block;width:100%;margin-bottom:1.4;font-size:1.5rem;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-top:.5rem;margin-bottom:.25rem;font-weight:600;font-size:1.15rem}label small{font-weight:300;font-size:1em}td label{font-weight:400}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:3px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted;outline-offset:3px}output{display:block;padding-top:1.75rem;font-size:1rem;line-height:1.4;color:#333}.account-help-icon+.btn,.account-help-icon+input,.account-help-icon+textarea,label+.form-control,label+input,label+textarea{margin-top:0}.form-control{display:block;width:100%;height:2.55rem;padding:.25rem 1rem;font-size:1rem;line-height:2;color:#333;background-color:#fff;background-image:none;border:1px solid #ececec;margin-top:.5rem;margin-bottom:.5rem;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}.form-control:focus{border-color:#0e97c0;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(14,151,192,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(14,151,192,.5)}.form-control::-moz-placeholder{color:#d3d3d3;opacity:1}.form-control:-ms-input-placeholder{color:#d3d3d3}.form-control::-webkit-input-placeholder{color:#d3d3d3}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#ececec;opacity:1;cursor:text!important;-webkit-box-shadow:none!important;box-shadow:none!important}.form-control[disabled],fieldset[disabled] .form-control{cursor:default}textarea.form-control{height:auto;line-height:1.4}input[readonly]{background-color:#fafafa;cursor:text!important}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:2.55rem}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:2rem}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:4rem}}.form-group{margin-top:.5rem;margin-bottom:.5rem;display:block}.checkbox,.radio{position:relative;display:block;margin:15px 0;font-weight:500}.checkbox label,.radio label{min-height:1.4;padding-left:20px;padding-right:15px;margin-bottom:0;font-weight:500;cursor:pointer}.checkbox.small,.radio.small{margin:.2rem 0}.checkbox-inline input[type=checkbox],.checkbox input[type=checkbox],.radio-inline input[type=radio],.radio input[type=radio]{margin-left:-20px}input[type=radio]{margin-right:5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .checkbox label,fieldset[disabled] .radio-inline,fieldset[disabled] .radio label,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:default}.form-control-static{padding-top:1.75rem;padding-bottom:1.75rem;margin-bottom:0;min-height:2.4rem}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.input-sm{height:2rem;line-height:2rem}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5}.form-group-sm select.form-control{height:2rem;line-height:2rem}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:2rem;min-height:2.3rem;padding:1.5rem 1rem;font-size:.9rem;line-height:1.5}.input-lg{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2;border-radius:0}select.input-lg{height:4rem;line-height:4rem}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2}.form-group-lg select.form-control{height:4rem;line-height:4rem}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:4rem;min-height:3.3rem;padding:2rem;font-size:1.9rem;line-height:1.2}.form-control.is-valid{border-color:#b5e0b4;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(93,186,90,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(93,186,90,.5)}.form-control.is-valid:focus{border-color:#92d190;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(93,186,90,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(93,186,90,.5)}.form-control.is-invalid{border-color:#f7b7b3;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(234,75,64,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(234,75,64,.5)}.form-control.is-invalid:focus{border-color:#f28c85;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(234,75,64,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(234,75,64,.5)}.form-control.is-semivalid{border-color:#ffcc80;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(255,152,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(255,152,0,.5)}.form-control.is-semivalid:focus{border-color:#ffb74d;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(255,152,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(255,152,0,.5)}.flagged-address{color:red;font-weight:700}.btn{background-image:none;cursor:pointer;border:1px solid gray;display:inline-block;font-weight:400;letter-spacing:.05em;margin-top:.5rem;margin-bottom:0;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;vertical-align:middle;white-space:nowrap;padding:.75rem 2rem;font-size:1.07rem;line-height:1.4;border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline-offset:3px}.btn.focus,.btn:focus,.btn:hover{color:#222;text-decoration:none;border-bottom-color:transparent;-webkit-box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1);box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1)}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.alert .btn-info{background-color:#fff;text-decoration:none;color:#163151}.alert .btn-info.focus,.alert .btn-info:focus,.alert .btn-info:hover{color:#fff;text-decoration:none;opacity:1}.alert .btn-info.disabled{background-color:#fff;text-decoration:none;color:#163151;opacity:.6}.btn-default{color:#222;background-color:#c3c3c3;border-color:#bdbdbd;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#222;background-color:#b6b6b6;border-color:#b0b0b0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#222;background-color:#9d9d9d;border-color:#979797;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#c3c3c3;border-color:#bdbdbd}.btn-default .badge{color:#c3c3c3;background-color:#222}.btn-primary{color:#fff;background-color:#0e97c0;border-color:#0e97c0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#0c84a8;border-color:#0c84a8;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#095f79;border-color:#095f79;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#0e97c0;border-color:#0e97c0}.btn-primary .badge{color:#0e97c0;background-color:#fff}.btn-success{color:#fff;background-color:#5dba5a;border-color:#5dba5a;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#4db14a;border-color:#4db14a;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#3d8d3b;border-color:#3d8d3b;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5dba5a;border-color:#5dba5a}.btn-success .badge{color:#5dba5a;background-color:#fff}.btn-info{color:#fff;background-color:#163151;border-color:#163151;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#11253d;border-color:#11253d;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#060d15;border-color:#060d15;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#163151;border-color:#163151}.btn-info .badge{color:#163151;background-color:#fff}.btn-warning{color:#fff;background-color:#ff9800;border-color:#ff9800;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#e68900;border-color:#e68900;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#b36a00;border-color:#b36a00;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#ff9800;border-color:#ff9800}.btn-warning .badge{color:#ff9800;background-color:#fff}.btn-danger{color:#fff;background-color:#ea4b40;border-color:#ea4b40;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#e73529;border-color:#e73529;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#c82116;border-color:#c82116;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#ea4b40;border-color:#ea4b40}.btn-danger .badge{color:#ea4b40;background-color:#fff}.btn-white{background-color:hsla(0,0%,100%,.8);border-color:hsla(0,0%,100%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease;color:#163151}.btn-white.active,.btn-white.focus,.btn-white:active,.btn-white:focus,.btn-white:hover,.open>.dropdown-toggle.btn-white{color:#163151;background-color:hsla(0,0%,95%,.8);border-color:hsla(0,0%,95%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-white.active.focus,.btn-white.active:focus,.btn-white.active:hover,.btn-white:active.focus,.btn-white:active:focus,.btn-white:active:hover,.open>.dropdown-toggle.btn-white.focus,.open>.dropdown-toggle.btn-white:focus,.open>.dropdown-toggle.btn-white:hover{color:#163151;background-color:hsla(0,0%,85%,.8);border-color:hsla(0,0%,85%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-white.active,.btn-white:active,.open>.dropdown-toggle.btn-white{background-image:none}.btn-white.disabled,.btn-white.disabled.active,.btn-white.disabled.focus,.btn-white.disabled:active,.btn-white.disabled:focus,.btn-white.disabled:hover,.btn-white[disabled],.btn-white[disabled].active,.btn-white[disabled].focus,.btn-white[disabled]:active,.btn-white[disabled]:focus,.btn-white[disabled]:hover,fieldset[disabled] .btn-white,fieldset[disabled] .btn-white.active,fieldset[disabled] .btn-white.focus,fieldset[disabled] .btn-white:active,fieldset[disabled] .btn-white:focus,fieldset[disabled] .btn-white:hover{background-color:hsla(0,0%,100%,.8);border-color:hsla(0,0%,100%,.8)}.btn-white .badge{color:hsla(0,0%,100%,.8);background-color:#163151}.header-branding a.btn-white{color:#163151}.header-branding a.btn-white:focus,.header-branding a.btn-white:hover{background:#fff;opacity:1;color:#163151}.btn-group .btn-default{border-bottom-width:1px}.btn-group .btn-default.active{border:1px solid #0e97c0;color:#0e97c0;background:#f5f5f5}.btn-link{color:#0e97c0;font-weight:400}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#0c84a8;text-decoration:none;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#9a9a9a;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:1rem 2rem;font-size:1.15rem;line-height:1.2;border-radius:0}.btn-group-sm>.btn,.btn-sm{padding:.5rem 1rem;font-size:1rem;line-height:1.5;border-radius:0}.btn-group-xs>.btn,.btn-xs{font-size:.75rem;line-height:1.5;border-radius:0;padding:.1rem .6rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}.btn-file,input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.btn-file{background-image:none;cursor:pointer;border:1px solid gray;display:inline-block;font-weight:400;letter-spacing:.05em;margin-top:.5rem;margin-bottom:0;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;vertical-align:middle;white-space:nowrap;padding:.75rem 2rem;font-size:1.07rem;line-height:1.4;border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;color:#222;background-color:#c3c3c3;border-color:#bdbdbd;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease;position:relative;overflow:hidden}.btn-file.active.focus,.btn-file.active:focus,.btn-file.focus,.btn-file:active.focus,.btn-file:active:focus,.btn-file:focus{outline:thin dotted;outline-offset:3px}.btn-file.focus,.btn-file:focus,.btn-file:hover{color:#222;text-decoration:none;border-bottom-color:transparent;-webkit-box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1);box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1)}.btn-file.active,.btn-file:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-file.disabled,.btn-file[disabled],fieldset[disabled] .btn-file{cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn-file.disabled,fieldset[disabled] a.btn-file{pointer-events:none}.btn-file.active,.btn-file.focus,.btn-file:active,.btn-file:focus,.btn-file:hover,.open>.dropdown-toggle.btn-file{color:#222;background-color:#b6b6b6;border-color:#b0b0b0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-file.active.focus,.btn-file.active:focus,.btn-file.active:hover,.btn-file:active.focus,.btn-file:active:focus,.btn-file:active:hover,.open>.dropdown-toggle.btn-file.focus,.open>.dropdown-toggle.btn-file:focus,.open>.dropdown-toggle.btn-file:hover{color:#222;background-color:#9d9d9d;border-color:#979797;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-file.active,.btn-file:active,.open>.dropdown-toggle.btn-file{background-image:none}.btn-file.disabled,.btn-file.disabled.active,.btn-file.disabled.focus,.btn-file.disabled:active,.btn-file.disabled:focus,.btn-file.disabled:hover,.btn-file[disabled],.btn-file[disabled].active,.btn-file[disabled].focus,.btn-file[disabled]:active,.btn-file[disabled]:focus,.btn-file[disabled]:hover,fieldset[disabled] .btn-file,fieldset[disabled] .btn-file.active,fieldset[disabled] .btn-file.focus,fieldset[disabled] .btn-file:active,fieldset[disabled] .btn-file:focus,fieldset[disabled] .btn-file:hover{background-color:#c3c3c3;border-color:#bdbdbd}.btn-file .badge{color:#c3c3c3;background-color:#222}.btn-file input[type=file]{position:absolute;top:0;right:0;min-width:100%;min-height:100%;font-size:100px;text-align:right;filter:alpha(opacity=0);opacity:0;background:red;cursor:inherit;display:block}.caret{display:inline-block;width:0;height:0;margin-left:.5rem;vertical-align:middle;border-top:.25rem dashed;border-right:.25rem solid transparent;border-left:.25rem solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle{margin-top:0;font-size:1rem;padding:.5rem 1rem}.dropdown:hover .dropdown-menu{display:block}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;min-width:160px;max-width:100vw;max-height:75vh;overflow:scroll;padding:0;margin:2px 0 0;list-style:none;font-size:.9rem;text-align:left;background-color:#fff;border-radius:0;-webkit-box-shadow:0 6px 10px rgba(0,0,0,.175);box-shadow:0 6px 10px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:2px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li{margin:0}.dropdown-menu>li:first-child{padding-top:2px}.dropdown-menu>li:last-child{padding-bottom:2px}.dropdown-menu>li>a{display:block;padding:2px 1rem;clear:both;font-weight:300;line-height:1.4;color:#163151;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#0e97c0;background-color:#fafafa}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#0e97c0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#9a9a9a}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:default}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:.9rem;line-height:1.4;color:#9a9a9a;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:.25rem solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:51.2rem){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle;margin-bottom:5px}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn-group{float:left}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn-lg .caret{border-width:.25rem .25rem 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 .25rem .25rem}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio],[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group>*{margin-bottom:0;margin-top:0}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%}.input-group .dropdown-toggle{padding-right:.75rem;padding-left:.75rem}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2;border-radius:0}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:4rem;line-height:4rem}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:2rem;line-height:2rem}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding-left:2rem;padding-right:2rem;font-size:1rem;font-weight:400;line-height:1;color:#333;text-align:center;background-color:#ececec;border:1px solid #dfdfdf;outline:0;-webkit-box-shadow:inset 0 1px 1px hsla(0,0%,93%,.5),0 0 1px hsla(0,0%,93%,.5);box-shadow:inset 0 1px 1px hsla(0,0%,93%,.5),0 0 1px hsla(0,0%,93%,.5)}.input-group-addon.input-sm{padding:.5rem 1rem;font-size:.9rem}.input-group-addon.input-lg{padding:1rem 2rem;font-size:1.9rem}.input-group-addon:focus{border:1px solid #dadada;outline:0;-webkit-box-shadow:inset 0 1px 1px #ececec,30%,0 0 1px hsla(0,0%,93%,.9);box-shadow:inset 0 1px 1px #ececec,30%,0 0 1px hsla(0,0%,93%,.9)}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative;margin-bottom:0;margin-top:0;font-size:1rem;padding:.55rem 2rem}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.alert{padding:.75rem 2rem;margin:1rem auto;font-weight:300;font-size:1.07rem}.alert h4{color:inherit}.alert>:first-child,.alert h4{margin-top:0}.alert>:last-child{margin-bottom:0}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert a{color:#fff;text-decoration:underline}.alert a:hover{opacity:.8}.alert a:active,.alert a:focus{opacity:1}.alert svg{vertical-align:bottom}.alert-danger--outline{padding:.5em .6em .6em .3em;margin:0 0 1em;border-top:2px solid #ea4b40;-webkit-box-shadow:0 1px 5px 1px rgba(63,63,63,.13);box-shadow:0 1px 5px 1px rgba(63,63,63,.13);font-size:.9em;font-weight:500}.alert-danger--outline:before{content:"";background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23ea4b40'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23ea4b40'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:1.75em;float:left;width:2em;height:4em;margin-right:.75em}.alert.popup{position:fixed;bottom:0;left:0;right:0;padding:1rem 0;-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.33);box-shadow:0 0 20px 0 rgba(0,0,0,.33);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out;z-index:1060;margin:0}.alert.popup .container{position:relative;padding:0 10rem 0 5rem}@media screen and (max-width:51.2rem){.alert.popup .container{padding:1rem 8rem 1rem 4rem}}@media screen and (max-width:32rem){.alert.popup .container{padding:3rem 1rem 0 4rem}}.alert.popup .container:after{content:"";background-position:50%;background-repeat:no-repeat;background-size:contain;display:block;color:#fff;position:absolute;top:0;bottom:0;left:1%;width:2.25rem}@media screen and (max-width:32rem){.alert.popup .container:after{top:2.5rem;left:.5rem}}.alert.popup .icon-close{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 348.333 348.334'%3E%3Cpath d='M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z' fill='%23FFF'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:1rem;cursor:pointer;opacity:.7;position:absolute;top:0;right:0;width:9rem;bottom:0;border-left:1px solid hsla(0,0%,100%,.7);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}@media screen and (max-width:51.2rem){.alert.popup .icon-close{width:7rem}}@media screen and (max-width:32rem){.alert.popup .icon-close{width:100%;height:3rem;left:0;right:0;top:0;bottom:auto;border-left:0;border-bottom:1px solid hsla(0,0%,100%,.7)}}.alert.popup .icon-close:hover{border-color:hsla(0,0%,100%,.5)}.alert.popup .icon-close:active,.alert.popup .icon-close:hover{-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out;background-color:rgba(0,0,0,.1)}.alert.popup .icon-close:active{border-color:hsla(0,0%,100%,.7);opacity:1}.alert.popup.ng-hide{bottom:-20%;-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}.alert,.alert-info{background-color:#0e97c0;border-color:#0e97c0;color:#fff}.alert-info hr,.alert hr{border-top-color:#0c84a8}.alert-info .alert-link,.alert .alert-link{color:#e6e6e6}.alert-info .container:after,.alert .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' x='30' y='30' viewBox='0 0 65 65' width='512' height='512'%3E%3Cpath d='M32.5 0C14.58 0 0 14.579 0 32.5S14.58 65 32.5 65 65 50.421 65 32.5 50.42 0 32.5 0zm0 61C16.785 61 4 48.215 4 32.5S16.785 4 32.5 4 61 16.785 61 32.5 48.215 61 32.5 61z' fill='%23FFF'/%3E%3Ccircle cx='33.018' cy='19.541' r='3.345' fill='%23FFF'/%3E%3Cpath d='M32.137 28.342a2 2 0 0 0-2 2v17a2 2 0 0 0 4 0v-17a2 2 0 0 0-2-2z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-success{background-color:#5dba5a;border-color:#5dba5a;color:#fff}.alert-success hr{border-top-color:#4db14a}.alert-success .alert-link{color:#e6e6e6}.alert-success .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 478.2 478.2' width='32' height='32'%3E%3Cpath d='M457.575 325.1c9.8-12.5 14.5-25.9 13.9-39.7-.6-15.2-7.4-27.1-13-34.4 6.5-16.2 9-41.7-12.7-61.5-15.9-14.5-42.9-21-80.3-19.2-26.3 1.2-48.3 6.1-49.2 6.3h-.1c-5 .9-10.3 2-15.7 3.2-.4-6.4.7-22.3 12.5-58.1 14-42.6 13.2-75.2-2.6-97-16.6-22.9-43.1-24.7-50.9-24.7-7.5 0-14.4 3.1-19.3 8.8-11.1 12.9-9.8 36.7-8.4 47.7-13.2 35.4-50.2 122.2-81.5 146.3-.6.4-1.1.9-1.6 1.4-9.2 9.7-15.4 20.2-19.6 29.4-5.9-3.2-12.6-5-19.8-5h-61c-23 0-41.6 18.7-41.6 41.6v162.5c0 23 18.7 41.6 41.6 41.6h61c8.9 0 17.2-2.8 24-7.6l23.5 2.8c3.6.5 67.6 8.6 133.3 7.3 11.9.9 23.1 1.4 33.5 1.4 17.9 0 33.5-1.4 46.5-4.2 30.6-6.5 51.5-19.5 62.1-38.6 8.1-14.6 8.1-29.1 6.8-38.3 19.9-18 23.4-37.9 22.7-51.9-.4-8.1-2.2-15-4.1-20.1zm-409.3 122.2c-8.1 0-14.6-6.6-14.6-14.6V270.1c0-8.1 6.6-14.6 14.6-14.6h61c8.1 0 14.6 6.6 14.6 14.6v162.5c0 8.1-6.6 14.6-14.6 14.6h-61v.1zm383.7-133.9c-4.2 4.4-5 11.1-1.8 16.3 0 .1 4.1 7.1 4.6 16.7.7 13.1-5.6 24.7-18.8 34.6-4.7 3.6-6.6 9.8-4.6 15.4 0 .1 4.3 13.3-2.7 25.8-6.7 12-21.6 20.6-44.2 25.4-18.1 3.9-42.7 4.6-72.9 2.2h-1.4c-64.3 1.4-129.3-7-130-7.1h-.1l-10.1-1.2c.6-2.8.9-5.8.9-8.8V270.1c0-4.3-.7-8.5-1.9-12.4 1.8-6.7 6.8-21.6 18.6-34.3 44.9-35.6 88.8-155.7 90.7-160.9.8-2.1 1-4.4.6-6.7-1.7-11.2-1.1-24.9 1.3-29 5.3.1 19.6 1.6 28.2 13.5 10.2 14.1 9.8 39.3-1.2 72.7-16.8 50.9-18.2 77.7-4.9 89.5 6.6 5.9 15.4 6.2 21.8 3.9 6.1-1.4 11.9-2.6 17.4-3.5.4-.1.9-.2 1.3-.3 30.7-6.7 85.7-10.8 104.8 6.6 16.2 14.8 4.7 34.4 3.4 36.5-3.7 5.6-2.6 12.9 2.4 17.4.1.1 10.6 10 11.1 23.3.4 8.9-3.8 18-12.5 27z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-warning{background-color:#ff9800;border-color:#ff9800;color:#fff}.alert-warning hr{border-top-color:#e68900}.alert-warning .alert-link{color:#e6e6e6}.alert-warning .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23FFF'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-danger{background-color:#ea4b40;border-color:#ea4b40;color:#fff}.alert-danger hr{border-top-color:#e73529}.alert-danger .alert-link{color:#e6e6e6}.alert-danger .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23FFF'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23FFF'/%3E%3C/svg%3E")}.well{min-height:20px;padding:1rem;margin-top:1rem;margin-bottom:1rem;background-color:#fafafa;border:1px solid #e8e8e8;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well :first-child{margin-top:0}.well :last-child{margin-bottom:0}.well.lg{padding:2rem}.well.sm{padding:.5rem}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal,.modal-open{overflow:hidden}.modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translateY(-25%);-ms-transform:translateY(-25%);-o-transform:translateY(-25%);transform:translateY(-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:-webkit-transform .3s ease-out;-o-transition:transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0);-ms-transform:translate(0);-o-transform:translate(0);transform:translate(0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border-radius:0;-webkit-box-shadow:1px 1px 60px rgba(0,0,0,.32);box-shadow:1px 1px 60px rgba(0,0,0,.32);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:.75rem 1.5rem}.modal-header .close{margin-top:-2px}.modal-title{margin:0 0 1rem;line-height:1.4}.modal-body{position:relative;padding:.75rem;font-size:1.15rem}.modal-body .table>tbody>tr>td{vertical-align:middle}.modal-body .addressIdenticon{margin:auto}.modal-footer{padding:1rem 1.5rem;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn{margin-top:0}.modal-footer .btn+.btn{margin-left:.5rem;margin-bottom:0;margin-top:0}#sendTransaction .modal-footer{text-align:center}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:51.2rem){.modal-dialog{width:800px;margin:30px auto}.modal-sm{width:30rem}}@media (min-width:66.13333333rem){.modal-lg{width:70rem}}.bity-contact:after,.bity-contact:before,.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.modal-footer:after,.modal-footer:before,.row:after,.row:before{content:" ";display:table}.bity-contact:after,.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.modal-footer:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:50.2rem){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:50.2rem){.visible-xs-block{display:block!important}}@media (max-width:50.2rem){.visible-xs-inline{display:inline!important}}@media (max-width:50.2rem){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-block{display:block!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-inline{display:inline!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-block{display:block!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-inline{display:inline!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-inline-block{display:inline-block!important}}@media (min-width:80rem){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:80rem){.visible-lg-block{display:block!important}}@media (min-width:80rem){.visible-lg-inline{display:inline!important}}@media (min-width:80rem){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:50.2rem){.hidden-xs{display:none!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.hidden-sm{display:none!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.hidden-md{display:none!important}}@media (min-width:80rem){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}img{max-width:100%;height:auto}textarea{resize:vertical}.announcement{padding:3px 10px;text-align:center;font-weight:300;color:#fff;display:block;background-color:#0e97c0}.announcement a{text-decoration:underline;color:#fff}.announcement:focus,.announcement:hover,.announcement a{-webkit-transition:all .25s ease;-o-transition:.25s all ease;transition:all .25s ease}.announcement:focus,.announcement:hover{color:#f2f2f2;text-decoration:none;background-color:#0c84a8}.announcement strong{font-weight:400}.annoucement-warning{background-color:#ff5722}.annoucement-warning:focus,.annoucement-warning:hover{background-color:#ff4408}.annoucement-warning:focus a,.annoucement-warning:focus a:hover,.annoucement-warning:hover a,.annoucement-warning:hover a:hover{text-decoration:none}.annoucement-danger{background-color:#ea4b40}.annoucement-danger:hover{background-color:#ff4408}.annoucement-danger a:focus,.annoucement-danger a:hover{color:#f2f2f2}.annoucement-danger a:focus a,.annoucement-danger a:focus a:hover,.annoucement-danger a:hover a,.annoucement-danger a:hover a:hover{text-decoration:none}.address-identicon-container{padding:0;text-align:left;max-width:4.5rem;margin-left:-.5rem;margin-top:.5rem}.address-identicon-container-right{text-align:right}.address-identicon-container-right .addressIdenticon{float:right}.address-identicon-container-offline{padding:0;margin-left:-15px}.addressIdenticon{width:100%;height:auto;padding-bottom:100%;background-size:cover;background-repeat:no-repeat;border-radius:50%;-webkit-box-shadow:inset hsla(0,0%,100%,.5) 0 2px 2px,inset rgba(0,0,0,.6) 0 -1px 8px;box-shadow:inset 0 2px 2px hsla(0,0%,100%,.5),inset 0 -1px 8px rgba(0,0,0,.6)}.addressIdenticon.med{width:3rem;height:3rem;padding:0}.addressIdenticon.small{width:2rem;height:2rem;padding:0}.addressIdenticon.inline{display:inline-block}.addressIdenticon.float{float:left;margin-right:.5rem}.transaction-modal tbody tr td:first-child{width:30%}.transaction-modal tbody tr td:nth-child(2){width:70%}.transaction-modal .text-width-limit{display:grid;grid-auto-rows:1fr}.transaction-modal .text-width-limit p{margin:0;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.wrap{word-wrap:break-word}.bigger-on-mobile.form-control[readonly]{height:60px}@media screen and (max-width:767px){.bigger-on-mobile.form-control[readonly]{height:100px}}#paneHelp h3{margin-top:2em}.account-help-icon h3,.account-help-icon h4,.account-help-icon h5,.account-help-icon h6,.account-help-icon img{display:inline-block}.account-help-icon img:hover+.account-help-text{display:block;opacity:1;z-index:999}.account-help-icon img{margin-left:-30px;margin-right:3px}.account-help-icon:hover{opacity:1}.account-help-text{background:#fff;border-radius:0;border:1px solid #cdcdcd;-webkit-box-shadow:0 0 .5rem hsla(0,0%,39%,.2);box-shadow:0 0 .5rem hsla(0,0%,39%,.2);display:none;font-size:.75rem;font-weight:400;padding:.25rem;position:absolute;width:18rem;z-index:999;color:#333}ul.account-help-text{padding-left:1.6rem}.account-help-text li{font-size:.75rem;font-weight:400}@media screen and (max-width:767px){.account-help-icon img,.account-help-icon li,.account-help-icon p{display:none}}#accountAddress,#accountAddressMainTbl-1,#accountBalance,#accountBalanceBtc,#accountBalanceEur,#accountBalancePopMB-0,#accountBalancePopMB-2,#accountBalanceUsd,.form-control,.mono{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-weight:400;letter-spacing:.02em}.offline-qrcode{margin-top:-150px;max-width:300px}@media screen and (max-width:942px){.offline-qrcode{margin-top:-78px}}@media screen and (max-width:769px){.offline-qrcode{margin-top:0}}.account-info{padding-left:1em;margin:0}.account-info:after,.account-info:before{content:" ";display:table}.account-info:after{clear:both}.account-info li{margin-bottom:0;list-style-type:none;word-break:break-all}table.account-info{font-weight:200;border-bottom:0;min-width:200px;width:100%}table.account-info tbody{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}table.account-info td{padding:.3rem;line-height:1}table.account-info td:first-child{word-wrap:break-word;padding-left:1em}table.account-info tr{border-bottom:1px solid #f3f3f3}table.account-info tr:last-child,table.account-info tr:nth-last-child(2){border-bottom:0 solid #f3f3f3}table.account-info tr.custom-token{-webkit-box-ordinal-group:0;-webkit-order:-1;-ms-flex-order:-1;order:-1}input[type=text]+.eye{cursor:pointer}input[type=text]+.eye:before{content:"";width:20px;height:20px;margin-left:6px;margin-right:6px;display:inline-block;vertical-align:middle;background:url(../images/icon-eye.svg)}input[type=password]+.eye{cursor:pointer}input[type=password]+.eye:before{content:"";width:20px;height:20px;margin-left:6px;margin-right:6px;display:inline-block;vertical-align:middle;background:url(../images/icon-eye-closed.svg)}.collapse-container h1{margin:.25rem 0}.collapse-container .collapse-button{float:left;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;margin:5px -30px;font-size:1.6rem;line-height:.95;display:inline-block;width:25px;height:25px;text-align:center;border:1px solid #ddd;color:#c3c3c3;border-radius:5px}.help .collapse-container{margin:40px 0}.help .collapse-container .collapse-button{margin:-10px -30px;font-size:20px;line-height:1}.token-remove{width:.9rem;height:.9rem;position:absolute;left:18px;cursor:pointer}.node-remove{width:16px;height:16px;position:absolute;right:6px;top:8px}.m-addresses td:first-child{max-width:50px;min-widht:50px}.m-addresses td:last-child{text-align:right}.token-balances{margin-bottom:15px;font-size:14px;max-height:60vh;overflow:scroll}h2 a.isActive,h2 a.isActive:active,h2 a.isActive:hover{color:#333;cursor:default}.item{margin:6px 0}.output{padding:.5rem 1rem;margin-top:-.5rem}.output p{margin:.75rem 0 0}label .small{font-size:.9rem}label small{color:#9a9a9a}.write-address .col-xs-1{padding:0}.write-address .col-xs-11{padding-right:10px}.write-boolean label{display:block}.decrypt-drtv{padding:1rem 0}.decrypt-drtv label.radio{padding:0 1.5rem;margin:.5rem 0}.decrypt-drtv h4{margin-top:0}.qr-code{max-width:17rem;margin:auto}.qr-pkey-container{position:relative}.qr-overlay{background-color:#000;position:absolute;top:0;left:0;right:0;bottom:0}.contracts a.isActive{color:#333;font-weight:400}.contracts .dropdown-toggle{display:block;text-align:left;white-space:normal}.contracts .dropdown-toggle .caret{position:absolute;right:1rem;top:1.25rem}.contracts .dropdown-menu-left{font-size:.9rem;left:auto;right:0;min-width:37rem}.contracts .dropdown-menu-left small{float:right}.ens-tab a.isActive{color:#333;font-weight:400}.ens-tab .btn-primary-buy-button{width:200px}.ens-tab .btn-red{background-color:#84023d;border-color:#84023d;position:relative;width:200px}.ens-tab .btn-red .na{background-color:red;border-radius:300px;padding:5px 8px;font-weight:900}.ens-tab .btn-red:hover{background-color:#84023d;border-color:#84023d;position:relative}.ens-tab .pad-bot{padding-bottom:5px}.dropdown-gas{padding-bottom:1rem}@media screen and (max-width:900px){.dropdown-gas{padding-bottom:2rem}}.dropdown-gas__msg{font-size:12px;font-weight:300;margin:-10px auto 3px;max-width:113rem;padding:0 5rem;text-align:right;white-space:normal}@media screen and (max-width:80rem){.dropdown-gas__msg{padding:0 3%}}@media screen and (max-width:900px){.dropdown-gas__msg{margin-top:0;padding:0 1%}}.view-wallet-content h5{margin-bottom:.25rem}.view-wallet-content a.isActive{color:#333}#selectedTypeLedger ol{padding-left:1rem}.loading-wrap{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.7);z-index:999;text-align:center}.loading-wrap .loading{position:absolute;text-align:center;top:40%;left:50%;-webkit-transform:translate(-50%,-60%);-ms-transform:translate(-50%,-60%);transform:translate(-50%,-60%)}.loading-wrap img{border-radius:50%}.loading-wrap h1{-webkit-animation:opacity 2s infinite ease-in-out;animation:opacity 2s infinite ease-in-out;color:#fff}@-webkit-keyframes opacity{0%,to{opacity:0}50%{opacity:1}}@keyframes opacity{0%,to{opacity:0}50%{opacity:1}}.embedded-logo{height:auto;width:100%;max-width:290px;padding:.5rem 0}.ens-response{color:#737373}.dropdown-node .dropdown-menu li{border-left:2px solid #b50085;position:relative}.dropdown-node .dropdown-menu li:last-child{border-top:1px solid #ececec;padding-top:5px}.dropdown-node .dropdown-menu li:first-child,.dropdown-node .dropdown-menu li:nth-child(2),.dropdown-node .dropdown-menu li:nth-child(3),.dropdown-node .dropdown-menu li:nth-child(4){border-left:2px solid #0e97c0}.dropdown-node .dropdown-menu li:nth-child(5),.dropdown-node .dropdown-menu li:nth-child(6),.dropdown-node .dropdown-menu li:nth-child(7),.dropdown-node .dropdown-menu li:nth-child(8),.dropdown-node .dropdown-menu li:nth-child(9){border-left:2px solid #009241}.dropdown-node .dropdown-menu li:nth-child(10),.dropdown-node .dropdown-menu li:nth-child(11),.dropdown-node .dropdown-menu li:nth-child(12),.dropdown-node .dropdown-menu li:nth-child(13),.dropdown-node .dropdown-menu li:nth-child(14),.dropdown-node .dropdown-menu li:nth-child(15){border-left:2px solid #adc101}.dropdown-node .dropdown-menu li:nth-child(16){border-left:2px solid #673ab7}.dropdown-node .dropdown-menu li:nth-child(17){border-left:2px solid #00ad85}.dropdown-node .dropdown-menu li:nth-child(18){border-left:2px solid #4568bb}.dropdown-node .dropdown-menu li:nth-child(19){border-left:2px solid #6a488d}.dropdown-node .dropdown-menu li:nth-child(20){border-left:2px solid #046111}.dropdown-node .dropdown-menu li:nth-child(21){border-left:2px solid #4295d1}.dropdown-node .dropdown-menu li:nth-child(22){border-left:2px solid #0e97c0}.dropdown-node .dropdown-menu li:nth-child(23){border-left:2px solid #009241}.dropdown-node .dropdown-menu li:nth-child(24){border-left:2px solid #fece00}.dropdown-node .dropdown-menu li:nth-child(25){border-left:2px solid #27223d}.dropdown-node .dropdown-menu li:nth-child(26){border-left:2px solid #926565}.dropdown-node .dropdown-menu li:nth-child(27),.dropdown-node .dropdown-menu li:nth-child(28){border-left:2px solid #aa0087}.dropdown-node .dropdown-menu li:nth-child(29){border-left:2px solid #a16bff}.dropdown-node .dropdown-menu li:nth-child(30){border-left:2px solid #a2d729}.dropdown-node .dropdown-menu li:nth-child(31){border-left:2px solid #d63068}.dropdown-node .dropdown-menu li:nth-child(32){border-left:2px solid #09f}.dropdown-node .dropdown-menu li:nth-child(33){border-left:2px solid #4568bb}.dropdown-node .dropdown-menu li:nth-child(34){border-left:2px solid #0092ee}.dropdown-node .dropdown-menu li:last-child{border-left:2px solid #9a9a9a}.dropdown-node .dropdown-menu li:nth-child(4),.dropdown-node .dropdown-menu li:nth-child(9),.dropdown-node .dropdown-menu li:nth-child(15),.dropdown-node .dropdown-menu li:nth-child(16),.dropdown-node .dropdown-menu li:nth-child(17),.dropdown-node .dropdown-menu li:nth-child(18),.dropdown-node .dropdown-menu li:nth-child(19),.dropdown-node .dropdown-menu li:nth-child(20),.dropdown-node .dropdown-menu li:nth-child(21),.dropdown-node .dropdown-menu li:nth-child(22),.dropdown-node .dropdown-menu li:nth-child(23),.dropdown-node .dropdown-menu li:nth-child(24),.dropdown-node .dropdown-menu li:nth-child(25),.dropdown-node .dropdown-menu li:nth-child(26),.dropdown-node .dropdown-menu li:nth-child(28),.dropdown-node .dropdown-menu li:nth-child(29),.dropdown-node .dropdown-menu li:nth-child(30),.dropdown-node .dropdown-menu li:nth-child(31),.dropdown-node .dropdown-menu li:nth-child(32),.dropdown-node .dropdown-menu li:nth-child(33){border-bottom:1px solid #ececec}header{margin-bottom:1em}header.ETH .header-branding{border-bottom:.25rem solid #0e97c0}header.ETH+.container+.pre-footer+.footer{border-top:.25rem solid #0e97c0}header.ETH+.container .modal-content{border:.25rem solid #0e97c0}header.ETH+.container .alert-info{background-color:#0e97c0}header.ETH .dropdown-gas:before{width:24px;background-image:url(../images/coins/ethereum.svg)}header.ETC .header-branding{border-bottom:.25rem solid #009241}header.ETC+.container+.pre-footer+.footer{border-top:.25rem solid #009241}header.ETC+.container .modal-content{border:.25rem solid #009241}header.ETC+.container .alert-info{background-color:#009241}header.ETC .dropdown-gas:before{width:24px;background-image:url(../images/coins/ethereum-classic.svg)}header.Ropsten .header-branding{border-bottom:.25rem solid #adc101}header.Ropsten+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Ropsten+.container .modal-content{border:.25rem solid #adc101}header.Ropsten+.container .alert-info{background-color:#adc101}header.Kovan .header-branding{border-bottom:.25rem solid #adc101}header.Kovan+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Kovan+.container .modal-content{border:.25rem solid #adc101}header.Kovan+.container .alert-info{background-color:#adc101}header.Rinkeby .header-branding{border-bottom:.25rem solid #adc101}header.Rinkeby+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Rinkeby+.container .modal-content{border:.25rem solid #adc101}header.Rinkeby+.container .alert-info{background-color:#adc101}header.Custom .header-branding{border-bottom:.25rem solid #b50085}header.Custom+.container+.pre-footer+.footer{border-top:.25rem solid #b50085}header.Custom+.container .modal-content{border:.25rem solid #b50085}header.Custom+.container .alert-info{background-color:#b50085}header.EXP .header-branding{border-bottom:.25rem solid #673ab7}header.EXP+.container+.pre-footer+.footer{border-top:.25rem solid #673ab7}header.EXP+.container .modal-content{border:.25rem solid #673ab7}header.EXP+.container .alert-info{background-color:#673ab7}header.EXP .dropdown-gas:before{width:32px;background-image:url(../images/coins/exp.svg)}header.UBQ .header-branding{border-bottom:.25rem solid #00ad85}header.UBQ+.container+.pre-footer+.footer{border-top:.25rem solid #00ad85}header.UBQ+.container .modal-content{border:.25rem solid #00ad85}header.UBQ+.container .alert-info{background-color:#00ad85}header.UBQ .dropdown-gas:before{width:32px;background-image:url(../images/coins/ubiq.svg)}header.POA .header-branding{border-bottom:.25rem solid #4568bb}header.POA+.container+.pre-footer+.footer{border-top:.25rem solid #4568bb}header.POA+.container .modal-content{border:.25rem solid #4568bb}header.POA+.container .alert-info{background-color:#4568bb}header.POA .dropdown-gas:before{width:32px;background-image:url(../images/coins/poa.svg)}header.TOMO .header-branding{border-bottom:.25rem solid #6a488d}header.TOMO+.container+.pre-footer+.footer{border-top:.25rem solid #6a488d}header.TOMO+.container .modal-content{border:.25rem solid #6a488d}header.TOMO+.container .alert-info{background-color:#6a488d}header.TOMO .dropdown-gas:before{width:34px;background-image:url(../images/coins/tomo.svg)}header.ELLA .header-branding{border-bottom:.25rem solid #046111}header.ELLA+.container+.pre-footer+.footer{border-top:.25rem solid #046111}header.ELLA+.container .modal-content{border:.25rem solid #046111}header.ELLA+.container .alert-info{background-color:#046111}header.ELLA .dropdown-gas:before{width:32px;background-image:url(../images/coins/ella.svg)}header.ETSC .header-branding{border-bottom:.25rem solid #4295d1}header.ETSC+.container+.pre-footer+.footer{border-top:.25rem solid #4295d1}header.ETSC+.container .modal-content{border:.25rem solid #4295d1}header.ETSC+.container .alert-info{background-color:#4295d1}header.ETSC .dropdown-gas:before{width:32px;background-image:url(../images/coins/etsc.svg)}header.EGEM .header-branding{border-bottom:.25rem solid #0e97c0}header.EGEM+.container+.pre-footer+.footer{border-top:.25rem solid #0e97c0}header.EGEM+.container .modal-content{border:.25rem solid #0e97c0}header.EGEM+.container .alert-info{background-color:#0e97c0}header.EGEM .dropdown-gas:before{width:36px;background-image:url(../images/coins/egem.svg)}header.CLO .header-branding{border-bottom:.25rem solid #009241}header.CLO+.container+.pre-footer+.footer{border-top:.25rem solid #009241}header.CLO+.container .modal-content{border:.25rem solid #009241}header.CLO+.container .alert-info{background-color:#009241}header.CLO .dropdown-gas:before{width:36px;background-image:url(../images/coins/callisto.svg)}header.MUSIC .header-branding{border-bottom:.25rem solid #fece00}header.MUSIC+.container+.pre-footer+.footer{border-top:.25rem solid #fece00}header.MUSIC+.container .modal-content{border:.25rem solid #fece00}header.MUSIC+.container .alert-info{background-color:#fece00}header.MUSIC .dropdown-gas:before{width:34px;background-image:url(../images/coins/music.svg)}header.GO .header-branding{border-bottom:.25rem solid #27223d}header.GO+.container+.pre-footer+.footer{border-top:.25rem solid #27223d}header.GO+.container .modal-content{border:.25rem solid #27223d}header.GO+.container .alert-info{background-color:#27223d}header.GO .dropdown-gas:before{width:38px;background-image:url(../images/coins/gochain.svg)}header.EOSC .header-branding{border-bottom:.25rem solid #926565}header.EOSC+.container+.pre-footer+.footer{border-top:.25rem solid #926565}header.EOSC+.container .modal-content{border:.25rem solid #926565}header.EOSC+.container .alert-info{background-color:#926565}header.EOSC .dropdown-gas:before{width:26px;background-image:url(../images/coins/eosc.svg)}header.AKA .header-branding{border-bottom:.25rem solid #aa0087}header.AKA+.container+.pre-footer+.footer{border-top:.25rem solid #aa0087}header.AKA+.container .modal-content{border:.25rem solid #aa0087}header.AKA+.container .alert-info{background-color:#aa0087}header.AKA .dropdown-gas:before{width:34px;background-image:url(../images/coins/akroma.svg)}header.ESN .header-branding{border-bottom:.25rem solid #a16bff}header.ESN+.container+.pre-footer+.footer{border-top:.25rem solid #a16bff}header.ESN+.container .modal-content{border:.25rem solid #a16bff}header.ESN+.container .alert-info{background-color:#a16bff}header.ESN .dropdown-gas:before{width:32px;background-image:url(../images/coins/ethersocial.svg)}header.PIRL .header-branding{border-bottom:.25rem solid #a2d729}header.PIRL+.container+.pre-footer+.footer{border-top:.25rem solid #a2d729}header.PIRL+.container .modal-content{border:.25rem solid #a2d729}header.PIRL+.container .alert-info{background-color:#a2d729}header.PIRL .dropdown-gas:before{width:32px;background-image:url(../images/coins/pirl.svg)}header.ETHO .header-branding{border-bottom:.25rem solid #d63068}header.ETHO+.container+.pre-footer+.footer{border-top:.25rem solid #d63068}header.ETHO+.container .modal-content{border:.25rem solid #d63068}header.ETHO+.container .alert-info{background-color:#d63068}header.ETHO .dropdown-gas:before{width:24px;background-image:url(../images/coins/etho.svg)}header.ATH .header-branding{border-bottom:.25rem solid #09f}header.ATH+.container+.pre-footer+.footer{border-top:.25rem solid #09f}header.ATH+.container .modal-content{border:.25rem solid #09f}header.ATH+.container .alert-info{background-color:#09f}header.ATH .dropdown-gas:before{width:36px;background-image:url(../images/coins/atheios.svg)}header.ILT .header-branding{border-bottom:.25rem solid #4568bb}header.ILT+.container+.pre-footer+.footer{border-top:.25rem solid #4568bb}header.ILT+.container .modal-content{border:.25rem solid #4568bb}header.ILT+.container .alert-info{background-color:#4568bb}header.ILT .dropdown-gas:before{width:35px;background-image:url(../images/coins/ilt.svg)}header.WEB .header-branding{border-bottom:.25rem solid #0092ee}header.WEB+.container+.pre-footer+.footer{border-top:.25rem solid #0092ee}header.WEB+.container .modal-content{border:.25rem solid #0092ee}header.WEB+.container .alert-info{background-color:#0092ee}header.WEB .dropdown-gas:before{width:36px;background-image:url(../images/coins/webchain.svg)}.contest-container{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0!important;text-align:center}.contest-container ol{padding:0 10em;text-align:left!important}.contest-container ol li{list-style-position:inside}@media screen and (max-width:960px){.contest-container ol{padding:0 5em!important}.collapse-container .collapse-button{margin-left:-100px}}@media screen and (max-width:650px){.contest-container ol{padding:0 20px!important}}.on-boarding-close{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.on-boarding-close img{cursor:pointer}@media screen and (max-width:600px){.footer__pill-custom-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.footer__pill-custom-wrap a{-webkit-box-flex:1;-webkit-flex:auto;-ms-flex:auto;flex:auto;max-width:115px}}.privacy-policy{width:90%}.privacy-policy h1,.privacy-policy h3{font-weight:700;text-align:center}.privacy-policy .privacy-policy-body{margin-top:30px}.phishing{height:60%;text-align:center}.swap-tab a.link,.swap-tab a.link:hover{-webkit-transition:none;-o-transition:none;transition:none}.swap-tab .btn-lg{margin-top:3rem}.swap-tab .btn img,.swap-tab .btn svg{margin-right:.5rem;margin-left:-.25rem;vertical-align:middle}.swap-tab .swap-rates{text-align:center}.swap-tab .swap-rates .order-panel{background:-webkit-linear-gradient(300deg,#0e97c0,#163151);background:-o-linear-gradient(300deg,#0e97c0,#163151);background:linear-gradient(150deg,#0e97c0,#163151);position:relative}.swap-tab .swap-rates .order-panel .bity-logo{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@media screen and (max-width:51.2rem){.swap-tab .swap-rates .order-panel{padding-top:1rem;padding-bottom:1rem}.swap-tab .swap-rates .order-panel .order-info{text-align:left;padding:0 0 0 22%}.swap-tab .swap-rates .order-panel .bity-logo{left:-1rem;top:40%;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}}.swap-tab .swap-rates .form-control.input-sm{width:16%;min-width:3.5rem;display:inline-block;margin-right:1rem;text-align:right;background-color:transparent;color:#fff;-webkit-box-shadow:0 0 0 #fff;box-shadow:0 0 0 #fff;border:0 solid #fff;border-bottom:2px solid #fff}.swap-tab .swap-rates p{margin:0}.swap-tab .swap-rates p span{opacity:.9}.swap-tab .swap-rates .order-info:nth-child(4n+1),.swap-tab .swap-rates .order-info:nth-child(4n+2),.swap-tab .swap-rates .order-info:nth-child(4n+3){background:transparent}.swap-tab .swap-panel{text-align:center;margin-top:3rem;padding:2rem .5rem}.swap-tab .swap-panel>*{display:inline-block;margin:1.5rem .5rem;vertical-align:middle}.swap-tab .swap-panel .form-control{width:10rem;margin-right:0}.swap-tab .swap-panel .dropdown{margin-left:0}.swap-tab .swap-address{text-align:center;padding:3rem 1rem}.swap-tab .swap-start{text-align:center}.swap-tab .swap-start .swap-info{text-align:left;margin-bottom:5rem}.swap-tab .swap-order{text-align:left}.swap-tab .swap-order .order-info-wrap{margin-bottom:0}.swap-tab .swap-order h1{margin-top:3rem;margin-bottom:3rem}.ens-tab .collapse-container h4,.ens-tab .collapse-container h5,.swap-tab .collapse-container h4,.swap-tab .collapse-container h5{display:inline-block}.ens-tab .collapse-container .collapse-button,.swap-tab .collapse-container .collapse-button{float:none;margin:0}.order-info-wrap{margin-bottom:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.order-info-wrap .order-info{padding:1rem 0}.order-info{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;min-height:100px;text-align:center;padding:.5rem 0;color:#fff}.order-info:after,.order-info:before{content:" ";display:table}.order-info:after{clear:both}.order-info h3,.order-info h4,.order-info p{margin:0}.order-info:nth-child(4n+1){background-color:#175575}.order-info:nth-child(4n+2){background-color:#1e92ba}.order-info:nth-child(4n+3){background-color:#143955}.order-info:nth-child(4n+4){background-color:#19b3ae}.swap-progress{margin-top:2rem;margin-bottom:0;position:relative}.swap-progress .sep{position:absolute;top:3.5rem;left:3%;right:3%;height:.25rem;background-color:#ececec}@media screen and (max-width:675px){.swap-progress .sep{display:none}}.swap-progress:after,.swap-progress:before{content:" ";display:table}.swap-progress:after{clear:both}.swap-progress .progress-item{width:20%;float:left;text-align:center;margin:.25rem 0}@media screen and (max-width:675px){.swap-progress .progress-item{width:100%}}.swap-progress .progress-item:nth-child(4n+1) .progress-circle{border-color:rgba(30,146,186,.4);color:rgba(30,146,186,.4)}.swap-progress .progress-item:nth-child(4n+2) .progress-circle{border-color:rgba(23,85,117,.4);color:rgba(23,85,117,.4)}.swap-progress .progress-item:nth-child(4n+3) .progress-circle{border-color:rgba(25,179,174,.4);color:rgba(25,179,174,.4)}.swap-progress .progress-item:nth-child(4n+4) .progress-circle{border-color:rgba(20,57,85,.4);color:rgba(20,57,85,.4)}.swap-progress .progress-item .progress-circle{border-radius:50%;border-width:.25rem;border-style:solid;-webkit-box-sizing:content-box;box-sizing:content-box;margin:1rem auto;padding-bottom:4rem;position:relative;width:4rem;background:#fff}@media screen and (max-width:675px){.swap-progress .progress-item .progress-circle{margin:.25rem 1rem .25rem 2rem;padding-bottom:3rem;width:3rem;float:left}}.swap-progress .progress-item .progress-circle i{font-size:1.5rem;line-height:1.75rem;height:1.75rem;width:1.75rem;font-weight:900;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@media screen and (max-width:675px){.swap-progress .progress-item .progress-circle i{font-size:1.5rem;line-height:1.5rem;height:1.5rem;width:1.5rem}}.swap-progress .progress-item p{font-size:.9rem;font-weight:600;text-transform:uppercase;color:hsla(0,0%,55%,.5);letter-spacing:.1em}@media screen and (max-width:675px){.swap-progress .progress-item p{line-height:4rem;margin:0;text-align:left}}.swap-progress .progress-item p small{letter-spacing:.03em;font-size:75%}.swap-progress .progress-item.progress-active p{color:#8d8d8d}.swap-progress .progress-item.progress-active:nth-child(4n+1) .progress-circle{border-color:#1e92ba;color:#1e92ba}.swap-progress .progress-item.progress-active:nth-child(4n+2) .progress-circle{border-color:#175575;color:#175575}.swap-progress .progress-item.progress-active:nth-child(4n+3) .progress-circle{border-color:#19b3ae;color:#19b3ae}.swap-progress .progress-item.progress-active:nth-child(4n+4) .progress-circle{border-color:#143955;color:#143955}.swap-progress .progress-item.progress-true .progress-circle{background-color:#5dba5a;border-color:#5dba5a;-webkit-box-shadow:inset 0 0 0 5px #fff;box-shadow:inset 0 0 0 5px #fff}.swap-progress .progress-item.progress-true .progress-circle i{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 426.67 426.67' width='32' height='32'%3E%3Cpath d='M153.504 366.839c-8.657 0-17.323-3.302-23.927-9.911L9.914 237.265c-13.218-13.218-13.218-34.645 0-47.863 13.218-13.218 34.645-13.218 47.863 0l95.727 95.727 215.39-215.386c13.218-13.214 34.65-13.218 47.859 0 13.222 13.218 13.222 34.65 0 47.863L177.436 356.928c-6.609 6.605-15.271 9.911-23.932 9.911z' fill='%23fff'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;font-size:0}.swap-progress .progress-item.progress-true p{color:#5dba5a}.ens-tab .order-info-wrap{margin-top:1rem;margin-bottom:1rem}.ens-tab h5+p{margin-top:-.5em}.bity-contact{margin:9rem -1rem -5rem}.cont-md{max-width:64rem;margin:auto}.txstatus__1 .form-control{max-width:64rem;margin:1rem auto}.txstatus__3 h4{display:inline-block}.txstatus__3 .collapse-button{float:none;margin:0}.text-ellipsis{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.block-title1{background-color:#007cc0}.block-title1,.block-title2{color:#fff;padding:10px 20px;font-weight:900;font-size:20px}.block-title2{background-color:#3e4b5a}.mywallet-container ::-webkit-scrollbar{width:7px}.mywallet-container ::-webkit-scrollbar-track{background:#d7d7d7}.mywallet-container ::-webkit-scrollbar-thumb{background:#3e4b5a;border-radius:12px}.mywallet-container p{margin:0}.mywallet-container h3{margin:0;font-weight:900}.mywallet-container .addressIdenticon{width:50px!important;height:50px!important}.mywallet-container .grid-bg{background-color:#f5f5f5}.mywallet-container .grid-frame{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.mywallet-container .grid-frame #walletsContainer{-webkit-box-flex:50;-webkit-flex:50;-ms-flex:50;flex:50;height:100%}.mywallet-container .grid-frame .data:last-child{margin:0}.mywallet-container .grid-frame .data{display:grid;grid-template-columns:1fr 350px;grid-gap:4px;margin-bottom:20px}.mywallet-container .grid-frame .data .wallet .editor-icons{height:20px;width:20px}.mywallet-container .grid-frame .data .wallet .block-title1 p{font-weight:900}.mywallet-container .grid-frame .data .wallet .content{padding:25px 30px 20px}.mywallet-container .grid-frame .data .wallet .content>div{display:inline-block;vertical-align:top}.mywallet-container .grid-frame .data .wallet .content .balance{padding:0 20px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block{margin-bottom:15px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .block-title,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .block-title{width:125px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block h3,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block h3{display:inline-block;vertical-align:middle;font-size:20px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .balance-amount,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .balance-amount{vertical-align:middle;display:inline-block;font-size:20px;font-weight:900;color:#00c599}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block{display:inline-block;vertical-align:middle}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p{background-color:#fff;padding-left:20px;font-weight:500;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;font-size:14px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p button,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p button{background-color:#b3b3b4!important;color:#fff!important;display:inline-block;margin-left:30px;padding:12px 17px!important;border:none;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p button:hover,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p button:hover{background-color:grey!important}.mywallet-container .grid-frame .data .tokens .col-title{background-color:#fff;display:grid;grid-template-columns:1fr 1fr;padding:5px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .data .tokens .col-title p{font-weight:900;font-size:13px}.mywallet-container .grid-frame .data .tokens .content{height:116px;overflow-y:auto;position:relative}.mywallet-container .grid-frame .data .tokens .content>div{display:grid;grid-template-columns:1fr 1fr;padding:5px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .data .tokens .content>div:nth-child(2n){background-color:#ebebeb}.mywallet-container .grid-frame .data .tokens .content>div p{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mywallet-container .grid-frame .sidebar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:15;-webkit-flex:15;-ms-flex:15;flex:15;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;margin-left:15px;margin-top:4.2rem}.mywallet-container .grid-frame .sidebar .title-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff;background-color:#3e4b5a;padding:10px 20px}.mywallet-container .grid-frame .sidebar .title-container .title{display:inline-block;font-weight:900;font-size:20px}.mywallet-container .grid-frame .sidebar .title-container .total-of{display:inline-block;margin-left:auto;font-size:13px;margin-top:10px}.mywallet-container .grid-frame .sidebar .col-title{background-color:#fff;display:grid;grid-template-columns:2fr 1fr;padding:15px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .sidebar .col-title p{font-size:15px;font-weight:900}.mywallet-container .grid-frame .sidebar .content{overflow-y:scroll;position:relative}.mywallet-container .grid-frame .sidebar .content>div{display:grid;grid-template-columns:2fr 1fr;padding:15px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .sidebar .content>div p{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mywallet-container .grid-frame .sidebar .content>div .add-button{position:relative}.mywallet-container .grid-frame .sidebar .content>div .add-button p{cursor:pointer;width:90px;position:absolute;padding:7px 0;border:1px solid blue;font-size:12px;color:blue;text-align:center;top:-6px;left:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .sidebar .content>div .add-button p:hover{color:#fff;background-color:blue}.mywallet-container .grid-frame .sidebar .content>div .remove-button{position:relative}.mywallet-container .grid-frame .sidebar .content>div .remove-button p{cursor:pointer;width:90px;position:absolute;padding:7px 0;border:1px solid red;font-size:12px;color:red;text-align:center;top:-6px;left:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .sidebar .content>div .remove-button p:hover{color:#fff;background-color:red}.mywallet-container .grid-frame .sidebar .content .col-title{background-color:#fff}.mywallet-container .grid-frame .sidebar .content .col-title p{font-weight:900}#etherWalletPopUp{padding:10px;position:relative;min-width:346px}#etherWalletPopUp .back-icon{position:absolute;left:5px;top:5px}#etherWalletPopUp .back-icon:active,#etherWalletPopUp .back-icon:hover{outline:0}.toggleTokenContainer span{color:#0e97c0;cursor:pointer}.toggleTokenContainer span:hover{color:#095f79}.walletTokensContainer{max-height:70px;overflow:scroll}.quicksend-address{font-family:Menlo,Monaco,Consolas,Courier New,monospace;max-width:170px;word-wrap:break-word;font-size:12px;font-weight:300;display:block}.chrome-tokens span{min-width:130px;display:inline-block}.truncate{max-width:130px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mainWalletDelete,.mainWalletEdit,.mainWalletView{margin:.5em}.myWalletCtrl table:not(.account-info) h2{margin:0;font-size:1.6em}.myWalletCtrl table:not(.account-info) h3{font-weight:400;font-size:1.3em}.myWalletCtrl table:not(.account-info) td:nth-child(2){max-width:380px}.myWalletCtrl table:not(.account-info) td,.myWalletCtrl table:not(.account-info) th{vertical-align:middle;padding:.5em .75em}#secWatchOnlyMain .mainWalletDelete{width:60px;display:block}.spinner{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;height:37px}.spinner-container{display:inherit!important;padding:7.5px 20px!important;text-align:center}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.text-navy{color:#163151}.text-gray-lighter{color:#ececec}.text-blue{color:#0e97c0}.text-white{color:#fff}.bg-navy{background:#163151}.bg-gradient{background:#163151;background:-webkit-linear-gradient(301deg,#132a45,#143a56,#21a4ce,#19b4ad);background:-o-linear-gradient(301deg,#132a45,#143a56,#21a4ce,#19b4ad);background:linear-gradient(149deg,#132a45,#143a56,#21a4ce,#19b4ad)}.bg-gray-lighter{background-color:#ececec}.bg-blue{background-color:#0e97c0}.bg-white{background-color:#fff}.text-serif{font-family:Georgia,Times New Roman,Times,serif}.text-sans-serif{font-family:Lato,sans-serif}.pad-v-sm{padding-top:.5em;padding-bottom:.5em}.pad-v-md{padding-top:1em;padding-bottom:1em}.pad-v-lg{padding-top:1.5em;padding-bottom:1.5em}.pad-v-xl{padding-top:2em;padding-bottom:2em}.marg-v-sm{margin-top:.5em;margin-bottom:.5em}.marg-v-md{margin-top:1em;margin-bottom:1em}.marg-v-lg{margin-top:1.5em;margin-bottom:1.5em}.marg-v-xl{margin-top:2em;margin-bottom:2em}.img-fill{width:100%;height:auto;max-width:100%}.header-branding{color:#fff;padding:0}@media screen and (max-width:960px){.header-branding{text-align:center}}.header-branding .container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:900px){.header-branding .container{padding-left:1%;padding-right:1%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}}.header-branding .brand{float:left}@media screen and (max-width:900px){.header-branding .brand{float:none}}.header-branding .brand img{padding:.25rem 0}.header-branding .tagline{font-weight:200;color:#fff;-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;text-align:right;padding:.25rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:900px){.header-branding .tagline{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;text-align:right}}.header-branding a{cursor:pointer;font-weight:400;display:inline-block}.header-branding a,.header-branding a:active,.header-branding a:hover{color:#fff;-webkit-transition:all .25s ease;-o-transition:.25s all ease;transition:all .25s ease}.header-branding a:active,.header-branding a:hover{opacity:.8;text-decoration:none}.header-branding .dropdown{padding:.1rem}@media screen and (max-width:900px){.header-branding .dropdown{padding:.1rem 0;white-space:nowrap;display:inline-block;font-size:14px}.header-branding .dropdown .dropdown-menu{right:0;overflow-y:auto;min-width:auto;left:auto;top:100%;font-size:14px}.header-branding .dropdown .dropdown-menu>li>a{font-size:14px;padding:.25rem 30px .25rem 15px;position:relative}.header-branding .dropdown-gas{white-space:normal}.header-branding .dropdown-gas .dropdown-menu{right:0!important}}.header-branding .dropdown-toggle{font-size:14px;padding:.3em .6rem}.header-branding .dropdown-gas{display:inline-block}.header-branding .dropdown-gas .dropdown-menu{min-width:200px;padding:.5rem;margin:.1rem 0 0;right:.1rem;left:auto;overflow:unset}.header-branding .dropdown-gas .dropdown-menu p{padding:0}.header-branding .dropdown-gas:before{content:"";display:inline-block;background-position:50%;background-repeat:no-repeat;background-size:contain;vertical-align:middle;width:24px;height:48px;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='417' preserveAspectRatio='xMidYMid'%3E%3Cg fill-opacity='.588'%3E%3Cpath d='M128.95 154.205h.003l127.96 58.162L128.953.047z' fill='%23b1b1b1'/%3E%3Cpath d='M128.95 154.205V.047L.988 212.367l127.96-58.162z' fill='%23cfcfcf'/%3E%3Cpath d='M128.949 416.953l128.038-180.32-128.038 75.6z' fill='%23b1b1b1'/%3E%3Cpath fill='%23cfcfcf' d='M.988 236.632l127.962 180.32v-104.72z'/%3E%3Cpath fill='%23909090' d='M128.95 288.004l127.96-75.637-127.96-58.162z'/%3E%3Cpath fill='%23b1b1b1' d='M128.948 154.205L.988 212.367l127.96 75.637z'/%3E%3C/g%3E%3C/svg%3E");margin-top:1px}.dropdown-menu a.active{text-decoration:none;color:#0e97c0;background-color:#fafafa}.dropdown-menu{overflow-y:auto;right:.1rem;margin:.1rem 0 0}.nav-container{position:relative;overflow-y:hidden}.nav-container .nav-scroll{-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;overflow-x:auto;margin-bottom:-20px;font-size:0;white-space:nowrap}@media screen and (max-width:51.2rem){.nav-container .nav-scroll{margin:0 -5% -20px}}.nav-container .nav-scroll .nav-inner{border-bottom:2px solid #fff;display:inline-block;font-size:0;margin-bottom:20px;min-width:100%;padding:5px 0 0;vertical-align:middle}.nav-container .nav-scroll .nav-inner .nav-item{display:inline-block;font-size:0}.nav-container .nav-scroll .nav-inner .nav-item.NAV_Swap a:before{content:"";display:inline-block;margin-top:-.1rem;width:1.3rem;height:1.3rem;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620.04 631.27'%3E%3Ctitle%3Eicon-swap%3C/title%3E%3Cpath d='M469.95 289.68c-77 0-139.59-62.62-139.59-139.59S392.98 10.5 469.95 10.5s139.59 62.62 139.59 139.59-62.62 139.59-139.59 139.59z' fill='%23ffe14d'/%3E%3Cpath d='M469.95 21a129.09 129.09 0 1 1-129.09 129.09A129.24 129.24 0 0 1 469.95 21m0-21c-82.76 0-150.09 67.33-150.09 150.09s67.29 150.09 150.09 150.09 150.09-67.33 150.09-150.09S552.71 0 469.95 0z' fill='%230f0f0f'/%3E%3Cpath d='M599.04 150.09A129.24 129.24 0 0 0 469.95 21v258.18a129.24 129.24 0 0 0 129.09-129.09z' fill='%23fc3'/%3E%3Cpath d='M469.95 44.94a105.12 105.12 0 1 0 105.12 105.15A105.24 105.24 0 0 0 469.95 44.94zm0 179c-49.27 0-74.85-24.6-74.85-73.87s25.58-74.85 74.85-74.85 75.82 25.58 75.82 74.85-26.55 73.87-75.82 73.87z' fill='%23ff9f19'/%3E%3Cpath d='M545.77 150.09c0 49.27-26.55 74.85-75.82 74.85v30.27a105.12 105.12 0 1 0 0-210.24v30.27c49.27 0 75.82 25.58 75.82 74.85z' fill='%23f28618'/%3E%3Cpath fill='%230492be' d='M100.66 277.37H26.9V114.06h240.72V50.84l131.7 100.1-131.7 100.09v-63.22H100.66v89.56z'/%3E%3Cpath fill='%23103957' opacity='.2' d='M63.78 150.94h335.54l-131.7-100.1v63.22H26.9v163.31h36.88V150.94z'/%3E%3Cpath d='M259.71 34.94l152.67 116-152.67 116v-71.23H108.55v89.56H19V106.15h240.71zm126.55 116L275.52 66.77v55.17H34.8v147.53h57.95v-89.53h182.77v55.19z'/%3E%3Cpath fill='%23fff' d='M292.951 119.43l9.638-12.482 47.456 36.642-9.638 12.482z'/%3E%3Cpath d='M150.09 620.77c-77 0-139.59-62.62-139.59-139.59s62.65-139.59 139.59-139.59 139.59 62.62 139.59 139.59-62.62 139.59-139.59 139.59z' fill='%23ffe14d'/%3E%3Cpath d='M150.09 352.09A129.09 129.09 0 1 1 21 481.18a129.24 129.24 0 0 1 129.09-129.09m0-21C67.33 331.09 0 398.42 0 481.18s67.33 150.09 150.09 150.09 150.06-67.33 150.06-150.09-67.3-150.09-150.06-150.09z' fill='%230f0f0f'/%3E%3Cpath d='M21 481.18a129.24 129.24 0 0 0 129.09 129.09V352.09A129.24 129.24 0 0 0 21 481.18z' fill='%23fc3'/%3E%3Cpath d='M150.09 586.3A105.12 105.12 0 1 0 44.97 481.18 105.24 105.24 0 0 0 150.09 586.3zm0-179c49.27 0 74.85 24.6 74.85 73.87s-25.58 74.85-74.85 74.85-75.82-25.58-75.82-74.85 26.55-73.86 75.82-73.86z' fill='%23ff9f19'/%3E%3Cpath d='M74.26 481.18c0-49.27 26.55-74.85 75.82-74.85v-30.27a105.12 105.12 0 1 0 0 210.24v-30.27c-49.26 0-75.82-25.58-75.82-74.85z' fill='%23f28618'/%3E%3Cpath fill='%230492be' d='M519.39 353.9h73.75v163.31H352.43v63.22L220.72 480.34l131.71-100.1v63.22h166.96V353.9z'/%3E%3Cpath fill='%23103957' opacity='.2' d='M556.26 480.34H220.72l131.71 100.09v-63.22h240.71V353.9h-36.88v126.44z'/%3E%3Cpath d='M360.32 596.36l-152.66-116 152.66-116v71.25h151.16V346h89.56v179.11H360.32zm-126.55-116l110.74 84.16v-55.21h240.73V361.8h-57.95v89.56H344.52v-55.19z'/%3E%3Cpath fill='%23fff' d='M268.572 486.574l9.7-12.473 47.419 36.875-9.7 12.473z'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;vertical-align:middle;margin-right:.25rem}.nav-container .nav-scroll .nav-inner .nav-item a{color:#095f79;display:block;font-size:16px;font-weight:300;padding:10px;white-space:nowrap;position:relative;min-height:2.75rem}.nav-container .nav-scroll .nav-inner .nav-item a:after{content:"";background:#0e97c0;height:2px;width:100%;left:0;position:absolute;bottom:-1px;-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.nav-container .nav-scroll .nav-inner .nav-item.active a,.nav-container .nav-scroll .nav-inner .nav-item a:focus,.nav-container .nav-scroll .nav-inner .nav-item a:hover{color:#0e97c0;text-decoration:none;-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s}.nav-container .nav-scroll .nav-inner .nav-item.active a:after,.nav-container .nav-scroll .nav-inner .nav-item a:focus:after,.nav-container .nav-scroll .nav-inner .nav-item a:hover:after{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s}.nav-container .nav-arrow-left,.nav-container .nav-arrow-right{background-color:#fff;bottom:12px;color:#d6d6d6;font-size:33px;line-height:1.3;min-width:50px;position:absolute;top:0;vertical-align:middle;width:5%;z-index:999}.nav-container .nav-arrow-left:hover,.nav-container .nav-arrow-right:hover{text-decoration:none}.nav-container .nav-arrow-right{right:3%;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(47%,#fff),to(#fff));background:-webkit-linear-gradient(left,hsla(0,0%,100%,0),#fff 47%,#fff);background:-o-linear-gradient(left,hsla(0,0%,100%,0) 0,#fff 47%,#fff 100%);background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 47%,#fff);padding-right:5px;text-align:right}@media screen and (max-width:51.2rem){.nav-container .nav-arrow-right{right:0}}.nav-container .nav-arrow-left{left:3%;background:-webkit-gradient(linear,right top,left top,from(hsla(0,0%,100%,0)),color-stop(47%,#fff),to(#fff));background:-webkit-linear-gradient(right,hsla(0,0%,100%,0),#fff 47%,#fff);background:-o-linear-gradient(right,hsla(0,0%,100%,0) 0,#fff 47%,#fff 100%);background:linear-gradient(270deg,hsla(0,0%,100%,0) 0,#fff 47%,#fff);padding-left:5px;text-align:left}@media screen and (max-width:51.2rem){.nav-container .nav-arrow-left{left:0}}.print-container{width:680px;height:280px;border:1px solid gray;margin-bottom:50px;position:relative}.print-container #identicon{-webkit-print-color-adjust:exact;position:absolute;right:7.5rem;bottom:3rem}.print-container #identicon:after{content:"Always look for this icon when sending to this wallet.";font-size:9px;width:120px;position:absolute;bottom:.75rem;text-align:center;right:-7.5rem}.print-title{float:left}.print-text{color:#0b7290;text-transform:uppercase;letter-spacing:.05em;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);position:absolute;right:0;bottom:0;font-size:13px;font-weight:600}.print-qr-code-1{width:28%;float:left;position:relative;padding:20px}.print-qr-code-1 .print-text{right:-35px;bottom:69px}.print-qr-code-2{width:28%;float:left;position:relative;padding:20px}.print-qr-code-2 .print-text{right:-45px;bottom:69px}.print-notes{width:28%;float:left;position:relative;padding:20px}.print-notes .print-text{right:-45px;bottom:69px}.print-address-container{float:left;width:85%;padding:0 25px}.print-address-container p{font-size:14px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.ether-logo-1{position:absolute;left:100px}.ether-logo-2{position:absolute;right:32px;bottom:64px}.block--container{max-width:113rem;margin-left:-1%;margin-right:-1%}.block__wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.block{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative}.block:after,.block:before{content:" ";display:table}.block:after{clear:both}@media screen and (max-width:32rem){.block{padding:1.25rem}}.block>:first-child{margin-top:0}.block>:last-child{margin-bottom:0}.block--text-white *,.block--text-white a{color:#fff}.block--text-white a:focus,.block--text-white a:hover{color:hsla(0,0%,100%,.9)}.block--danger{background-color:#ea4b40}.block--danger *,.block--danger a{color:#fff}.block--danger a:focus,.block--danger a:hover{color:hsla(0,0%,100%,.9)}.block--warning{background-color:#ff9800}.block--warning *,.block--warning a{color:#fff}.block--warning a:focus,.block--warning a:hover{color:hsla(0,0%,100%,.9)}.block--info{background-color:#163151}.block--info *,.block--info a{color:#fff}.block--info a:focus,.block--info a:hover{color:hsla(0,0%,100%,.9)}.block--primary{background-color:#0e97c0}.block--primary *,.block--primary a{color:#fff}.block--primary a:focus,.block--primary a:hover{color:hsla(0,0%,100%,.9)}.block--success{background-color:#5dba5a}.block--success *,.block--success a{color:#fff}.block--success a:focus,.block--success a:hover{color:hsla(0,0%,100%,.9)}.block__main{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative;text-align:left;padding:.75rem;-webkit-flex-basis:98%;-ms-flex-preferred-size:98%;flex-basis:98%;margin:1rem .5%}.block__main:after,.block__main:before{content:" ";display:table}.block__main:after{clear:both}@media screen and (max-width:32rem){.block__main{padding:1.25rem}}.block__main>:first-child{margin-top:0}.block__main>:last-child{margin-bottom:0}@media screen and (min-width:51.2rem){.block__main{-webkit-flex-basis:68%;-ms-flex-preferred-size:68%;flex-basis:68%}}@media screen and (min-width:66.13333333rem){.block__main{-webkit-flex-basis:73%;-ms-flex-preferred-size:73%;flex-basis:73%}}.block__help{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative;background-image:url(../images/icon-help-2.svg);background-size:8rem;background-position:102% -5%;background-repeat:no-repeat;text-align:left;margin:1rem 1%;-webkit-flex-basis:98%;-ms-flex-preferred-size:98%;flex-basis:98%}.block__help:after,.block__help:before{content:" ";display:table}.block__help:after{clear:both}@media screen and (max-width:32rem){.block__help{padding:1.25rem}}.block__help>:last-child{margin-bottom:0}@media screen and (min-width:51.2rem){.block__help{-webkit-flex-basis:28%;-ms-flex-preferred-size:28%;flex-basis:28%}}@media screen and (min-width:66.13333333rem){.block__help{-webkit-flex-basis:23%;-ms-flex-preferred-size:23%;flex-basis:23%}}.block__help a{color:#ff5722}.block__help a:hover{color:#ff4408}.block__help>:first-child{margin-top:0}.block__help ul{list-style:circle}.block__help ol,.block__help ul{padding-left:1rem}.block__help h2{font-size:1.15rem;font-weight:400}.equal-space>*{margin-top:1rem;margin-bottom:1rem}.u-center-h{text-align:center}.gen__1 .input-group{max-width:43rem;margin:1rem auto}.gen__1--inner{text-align:center}.gen__1--inner h1{margin:1rem auto 2rem}.gen__1--inner h4{margin:3rem auto 1rem}.gen__1--inner p{margin:0 0 2rem}.gen__1--inner .btn{margin:0 auto 3rem}.gen__2--inner{text-align:center}.gen__2--inner h1{margin:1rem auto}.gen__2--inner>.btn{margin:1rem auto 2rem}.gen__2--inner .warn{margin:2rem auto}.gen__3--inner{text-align:center}.gen__3--inner h1{margin:2rem auto 1rem}.gen__3--inner>.btn,.gen__3--inner>.form-control{margin:0 auto 3rem}.pre-footer{padding:1rem;-webkit-box-shadow:16px 16px 47px 0 rgba(0,0,0,.07);box-shadow:16px 16px 47px 0 rgba(0,0,0,.07);margin-top:5rem;background-color:#fff;text-align:center}.pre-footer p{font-size:1.3rem}.footer{background-color:#102138;color:#fff;font-size:.8rem;margin-top:0}.footer h5{margin-top:.5rem;margin-bottom:.25rem}.footer h5 i{margin-left:-1.5em;margin-right:.25em}.footer h5:first-child{margin-top:0}.footer ul{list-style:none;padding-left:0;margin:0}.footer li,.footer p{font-size:.8rem;margin:.25em 0}.footer a{color:#7fe5ff;font-weight:400}.footer a:focus,.footer a:hover{color:#4cdbff}.footer small{font-size:.6rem}.footer--logo{width:100%;height:auto;max-width:16rem}.header--gas{max-width:26rem;color:#333}.header--gas p{font-weight:400;margin:.5rem 0 0}.header--gas a,.header--gas a:focus,.header--gas a:hover,.header--gas a:visited{color:#0e97c0}.footer--left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:22rem;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:32rem){.footer--left{max-width:100%}}.footer--cent{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:34rem;-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2}@media screen and (max-width:32rem){.footer--cent{max-width:100%}}.footer--cent li:last-child,.footer--cent ul{margin-bottom:0}.footer--righ{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:28rem;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:32rem){.footer--righ{max-width:100%}}.footer__icon{display:inline-block;height:30px;width:30px;padding:5px}.footer__pill-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}a.footer__pill{display:inline;background:#0e97c0;padding:3px 12px;border-radius:30px;color:#fff}a.footer__pill:focus,a.footer__pill:hover{color:#0e97c0;background:#fff;opacity:1}.custom-token-fields label{font-weight:400;font-size:1rem}.custom-token-fields input{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.custom-token-fields input{height:2rem;line-height:2rem}select[multiple].custom-token-fields input,textarea.custom-token-fields input{height:auto}.custom-token-fields input .mono{font-size:.75rem}.custom-token-fields .address-identicon-container{margin-top:2rem}.swap--btc,.swap--hw,.swap--usd{text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1rem .15rem}.swap--btc .col-sm-7,.swap--hw .col-sm-7,.swap--usd .col-sm-7{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.swap--usd{background-color:#2b71b1}.swap--usd *,.swap--usd a{color:#fff}.swap--usd a:focus,.swap--usd a:hover{color:hsla(0,0%,100%,.9)}.swap--usd .swap-flag--bal,.swap--usd .swap-flag--price{background-color:#2e86d7}.swap--btc{background-color:#006e79}.swap--btc *,.swap--btc a{color:#fff}.swap--btc a:focus,.swap--btc a:hover{color:hsla(0,0%,100%,.9)}.swap--btc .swap-flag--bal,.swap--btc .swap-flag--price{background-color:#00a3b4}.swap--hw{background-color:#6e9a3e}.swap--hw *,.swap--hw a{color:#fff}.swap--hw a:focus,.swap--hw a:hover{color:hsla(0,0%,100%,.9)}.swap--hw .swap-flag--bal,.swap--hw .swap-flag--price{background-color:#81bc3f}.swap--hw .swap__logo{margin:.45rem 0}.swap-flag--bal,.swap-flag--price{background-color:#5dba5a;color:#fff;padding:.1rem .5rem;font-size:.7rem;border-radius:5rem;margin:.7rem 0 0;line-height:1.4;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.swap__subhead{font-size:.8rem;margin:.15rem 0}.swap__cta{font-size:1.25rem;margin:.15rem 0}.swap__logo{margin:0}.swap__nav{margin-top:-1.1rem;margin-bottom:.7rem;text-align:center}.swap__nav a{color:#9a9a9a;padding:0 .2rem .6rem}.send-modal__addr{font-size:12px}.u__protip{display:table}.u__protip:before{content:"";display:table-cell;width:2em;height:1em;background-image:url(../images/icon-protip.svg);background-size:contain;vertical-align:middle;text-align:center;background-position:50%;background-repeat:no-repeat;border-right:.5em solid transparent}.u__download{display:table;margin-left:.5em}.u__download:before{content:"";display:table-cell;width:1.25em;height:1em;background-image:url(../images/icon-external-link.svg);background-size:contain;vertical-align:middle;text-align:center;background-position:50%;background-repeat:no-repeat;border-right:.5em solid transparent}.send__load-tokens{padding:5px 2px;margin:0;background-color:#ff9800;text-align:center;color:#fff;font-size:9px}.send__load-tokens img{width:14px;height:14px}.send__load-tokens p{margin:4px 0 0;font-weight:500}.send__load-tokens:hover{color:#fff;opacity:.8}.onboarding__modal{padding:1rem}.onboarding__modal:after,.onboarding__modal:before{content:" ";display:table}.onboarding__modal:after{clear:both}.onboarding__modal .btn-primary{background-image:url(../images/icon-arrow-right.svg);background-size:contain;background-position:100%;background-repeat:no-repeat}.onboarding__modal .btn-default{background-image:url(../images/icon-arrow-left.svg);background-size:contain;background-position:0;background-repeat:no-repeat}.onboarding__modal .onboarding__title{text-align:center;margin-bottom:1.5rem}@media (max-width:50.2rem){.onboarding__modal .onboarding__title{margin:0 auto .5rem}}.onboarding__modal img{margin-top:1rem;margin-bottom:1rem}@media (max-width:50.2rem){.onboarding__modal img{max-height:200px}}.onboarding__modal .onboarding__buttons .btn{margin-top:.5rem;margin-bottom:.5rem}@media (min-width:51.2rem){.onboarding__modal .onboarding__buttons{margin-top:.5rem;margin-bottom:.5rem}.onboarding__modal .onboarding__buttons:after,.onboarding__modal .onboarding__buttons:before{content:" ";display:table}.onboarding__modal .onboarding__buttons:after{clear:both}.onboarding__modal .onboarding__buttons .btn+.btn{float:right}}@media (max-width:50.2rem){.onboarding__modal .onboarding__buttons .btn{display:block}.onboarding__modal .onboarding__buttons .btn+.btn{margin-top:1.5rem}}@media (max-width:50.2rem){.onboarding__modal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.onboarding__modal .onboarding__content,.onboarding__modal .onboarding__image{-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2}.onboarding__modal .onboarding__content+.onboarding__image{-webkit-box-ordinal-group:2;-webkit-order:1;-ms-flex-order:1;order:1}}.row.row--flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media (max-width:50.2rem){.row.row--flex{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}}.onboarding__msg{text-align:center;font-size:.9rem} \ No newline at end of file diff --git a/chrome-extension/cx-wallet.html b/chrome-extension/cx-wallet.html index 89eba42cd2..e8c0239a77 100644 --- a/chrome-extension/cx-wallet.html +++ b/chrome-extension/cx-wallet.html @@ -83,12 +83,12 @@ MyEtherWallet -

3.23.0

+

3.23.1

- + diff --git a/chrome-extension/helpers.html b/chrome-extension/helpers.html index c8ddc21699..cd65fa887f 100644 --- a/chrome-extension/helpers.html +++ b/chrome-extension/helpers.html @@ -99,13 +99,13 @@ MyEtherWallet -

3.23.0

+

3.23.1

- + diff --git a/chrome-extension/js/etherwallet-master.js b/chrome-extension/js/etherwallet-master.js index 25eea3dba9..f33be89def 100644 --- a/chrome-extension/js/etherwallet-master.js +++ b/chrome-extension/js/etherwallet-master.js @@ -5388,7 +5388,7 @@ var decryptWalletCtrl = function decryptWalletCtrl($scope, $sce, walletService) module.exports = decryptWalletCtrl; }).call(this,require("buffer").Buffer) -},{"buffer":401}],36:[function(require,module,exports){ +},{"buffer":415}],36:[function(require,module,exports){ 'use strict'; var domainsaleCtrl = function domainsaleCtrl($scope, $sce, walletService) { @@ -7153,7 +7153,7 @@ var signMsgCtrl = function signMsgCtrl($scope, $sce, walletService) { module.exports = signMsgCtrl; }).call(this,require("buffer").Buffer) -},{"buffer":401}],44:[function(require,module,exports){ +},{"buffer":415}],44:[function(require,module,exports){ 'use strict'; function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } @@ -11001,7 +11001,7 @@ ens.prototype.checkDomain = function () { module.exports = ens; }).call(this,require("buffer").Buffer) -},{"./ensConfigs/ETHConfig.json":65,"./ensConfigs/ROPConfig.json":66,"./ensConfigs/RinkebyConfig.json":67,"./ensConfigs/auctionABI.json":68,"./ensConfigs/deedABI.json":69,"./ensConfigs/registryABI.json":70,"./ensConfigs/resolverABI.json":71,"./ensConfigs/subDomainABI.json":72,"buffer":401,"idna-uts46":879}],65:[function(require,module,exports){ +},{"./ensConfigs/ETHConfig.json":65,"./ensConfigs/ROPConfig.json":66,"./ensConfigs/RinkebyConfig.json":67,"./ensConfigs/auctionABI.json":68,"./ensConfigs/deedABI.json":69,"./ensConfigs/registryABI.json":70,"./ensConfigs/resolverABI.json":71,"./ensConfigs/subDomainABI.json":72,"buffer":415,"idna-uts46":893}],65:[function(require,module,exports){ module.exports={ "public": { "resolver": "0x1da022710dF5002339274AaDEe8D58218e9D6AB5", @@ -16056,7 +16056,7 @@ if (IS_CX) { app.controller('cxDecryptWalletCtrl', ['$scope', '$sce', 'walletService', cxDecryptWalletCtrl]); } -},{"./ajaxReq":25,"./bity":26,"./constants/darkListConst":27,"./controllers/CX/addWalletCtrl":28,"./controllers/CX/cxDecryptWalletCtrl":29,"./controllers/CX/mainPopCtrl":30,"./controllers/CX/myWalletsCtrl":31,"./controllers/CX/quickSendCtrl":32,"./controllers/bulkGenCtrl":33,"./controllers/contractsCtrl":34,"./controllers/decryptWalletCtrl":35,"./controllers/domainsaleCtrl":36,"./controllers/ensCtrl":37,"./controllers/footerCtrl":38,"./controllers/helpersCtrl":39,"./controllers/offlineTxCtrl":40,"./controllers/onboardingCtrl":41,"./controllers/sendTxCtrl":42,"./controllers/signMsgCtrl":43,"./controllers/swapCtrl":44,"./controllers/tabsCtrl":45,"./controllers/txStatusCtrl":46,"./controllers/viewCtrl":47,"./controllers/viewWalletCtrl":48,"./controllers/walletBalanceCtrl":49,"./controllers/walletGenCtrl":50,"./customGas.js":51,"./cxFuncs":52,"./directives/QRCodeDrtv":53,"./directives/addressFieldDrtv":54,"./directives/balanceDrtv":56,"./directives/blockiesDrtv":57,"./directives/cxWalletDecryptDrtv":58,"./directives/fileReaderDrtv":59,"./directives/walletDecryptDrtv":61,"./domainsale":62,"./ens":64,"./ethFuncs":73,"./etherUnits":74,"./globalFuncs":75,"./homoglyphs.json":76,"./kyber":77,"./localStoragePolyfill":85,"./myetherwallet":87,"./nodes":95,"./services/globalService":96,"./services/walletService":97,"./solidity/coder":101,"./solidity/utils":112,"./staticJS/customMarked":113,"./staticJS/digitalBitboxEth":114,"./staticJS/digitalBitboxUsb":115,"./staticJS/ledger-eth":116,"./staticJS/ledger3":117,"./staticJS/mewConnectEth":118,"./staticJS/secalotEth":119,"./staticJS/secalotUsb":120,"./staticJS/u2f-api":121,"./tokenlib":122,"./translations/translate.js":168,"./uiFuncs":172,"./validator":173,"./web3Wallet":174,"@myetherwallet/mewconnect-web-client":175,"angular":320,"angular-animate":314,"angular-sanitize":316,"angular-translate":318,"angular-translate-handler-log":317,"babel-polyfill":339,"bignumber.js":356,"bip39":357,"crypto":827,"detect-browser":834,"ethereumjs-tx":858,"ethereumjs-util":859,"hdkey":876,"levenshtein":894,"punycode":397,"scryptsy":938,"similarity":953,"string-format":955,"trezor-connect":969,"unicode/category/Ll":986,"uuid":990,"wallet-address-validator":1003,"xss-filters":1005}],87:[function(require,module,exports){ +},{"./ajaxReq":25,"./bity":26,"./constants/darkListConst":27,"./controllers/CX/addWalletCtrl":28,"./controllers/CX/cxDecryptWalletCtrl":29,"./controllers/CX/mainPopCtrl":30,"./controllers/CX/myWalletsCtrl":31,"./controllers/CX/quickSendCtrl":32,"./controllers/bulkGenCtrl":33,"./controllers/contractsCtrl":34,"./controllers/decryptWalletCtrl":35,"./controllers/domainsaleCtrl":36,"./controllers/ensCtrl":37,"./controllers/footerCtrl":38,"./controllers/helpersCtrl":39,"./controllers/offlineTxCtrl":40,"./controllers/onboardingCtrl":41,"./controllers/sendTxCtrl":42,"./controllers/signMsgCtrl":43,"./controllers/swapCtrl":44,"./controllers/tabsCtrl":45,"./controllers/txStatusCtrl":46,"./controllers/viewCtrl":47,"./controllers/viewWalletCtrl":48,"./controllers/walletBalanceCtrl":49,"./controllers/walletGenCtrl":50,"./customGas.js":51,"./cxFuncs":52,"./directives/QRCodeDrtv":53,"./directives/addressFieldDrtv":54,"./directives/balanceDrtv":56,"./directives/blockiesDrtv":57,"./directives/cxWalletDecryptDrtv":58,"./directives/fileReaderDrtv":59,"./directives/walletDecryptDrtv":61,"./domainsale":62,"./ens":64,"./ethFuncs":73,"./etherUnits":74,"./globalFuncs":75,"./homoglyphs.json":76,"./kyber":77,"./localStoragePolyfill":85,"./myetherwallet":87,"./nodes":95,"./services/globalService":96,"./services/walletService":97,"./solidity/coder":101,"./solidity/utils":112,"./staticJS/customMarked":113,"./staticJS/digitalBitboxEth":114,"./staticJS/digitalBitboxUsb":115,"./staticJS/ledger-eth":116,"./staticJS/ledger3":117,"./staticJS/mewConnectEth":118,"./staticJS/secalotEth":119,"./staticJS/secalotUsb":120,"./staticJS/u2f-api":121,"./tokenlib":122,"./translations/translate.js":168,"./uiFuncs":172,"./validator":173,"./web3Wallet":174,"@myetherwallet/mewconnect-web-client":175,"angular":334,"angular-animate":328,"angular-sanitize":330,"angular-translate":332,"angular-translate-handler-log":331,"babel-polyfill":353,"bignumber.js":370,"bip39":371,"crypto":841,"detect-browser":848,"ethereumjs-tx":872,"ethereumjs-util":873,"hdkey":890,"levenshtein":908,"punycode":411,"scryptsy":952,"similarity":967,"string-format":969,"trezor-connect":983,"unicode/category/Ll":1000,"uuid":1004,"wallet-address-validator":1017,"xss-filters":1019}],87:[function(require,module,exports){ (function (Buffer){ 'use strict'; @@ -16463,7 +16463,7 @@ Wallet.getWalletFromPrivKeyFile = function (strjson, password) { module.exports = Wallet; }).call(this,require("buffer").Buffer) -},{"buffer":401}],88:[function(require,module,exports){ +},{"buffer":415}],88:[function(require,module,exports){ 'use strict'; var customNode = function customNode(srvrUrl, port, httpBasicAuthentication) { @@ -17196,7 +17196,7 @@ nodes.nodeList = { blockExplorerAddr: "https://explorer.eos-classic.io/addr/[[address]]", type: nodes.nodeTypes.EOSC, eip155: true, - chainId: 20, + chainId: 2018, tokenList: require("./tokens/eoscTokens.json"), abiList: require("./abiDefinitions/eoscAbi.json"), estimateGas: true, @@ -17852,7 +17852,7 @@ module.exports = { defaultAccount: undefined }; -},{"bignumber.js":356}],103:[function(require,module,exports){ +},{"bignumber.js":370}],103:[function(require,module,exports){ 'use strict'; var f = require('./formatters'); @@ -18131,7 +18131,7 @@ module.exports = { formatOutputAddress: formatOutputAddress }; -},{"./config":102,"./param":106,"./utils":112,"bignumber.js":356}],105:[function(require,module,exports){ +},{"./config":102,"./param":106,"./utils":112,"bignumber.js":370}],105:[function(require,module,exports){ 'use strict'; var f = require('./formatters'); @@ -19295,7 +19295,7 @@ module.exports = { isJson: isJson }; -},{"bignumber.js":356,"ethereumjs-util":859,"utf8":988}],113:[function(require,module,exports){ +},{"bignumber.js":370,"ethereumjs-util":873,"utf8":1002}],113:[function(require,module,exports){ 'use strict'; var marked = require('marked'); @@ -19326,7 +19326,7 @@ marked.setOptions({ }); module.exports = marked; -},{"marked":895}],114:[function(require,module,exports){ +},{"marked":909}],114:[function(require,module,exports){ (function (Buffer){ /** * (c) 2017 Douglas Bakkum, Shift Devices AG @@ -19494,7 +19494,7 @@ DigitalBitboxEth.prototype.signMessage = function (path, messageHex, callback) { module.exports = DigitalBitboxEth; }).call(this,require("buffer").Buffer) -},{"buffer":401,"crypto":827,"hdkey":876}],115:[function(require,module,exports){ +},{"buffer":415,"crypto":841,"hdkey":890}],115:[function(require,module,exports){ (function (Buffer){ /** * (c) 2017 Douglas Bakkum, Shift Devices AG @@ -19548,7 +19548,7 @@ DigitalBitboxUsb.prototype.exchange = function (msg, callback) { module.exports = DigitalBitboxUsb; }).call(this,require("buffer").Buffer) -},{"buffer":401}],116:[function(require,module,exports){ +},{"buffer":415}],116:[function(require,module,exports){ (function (Buffer){ /******************************************************************************** * Ledger Communication toolkit @@ -19763,7 +19763,7 @@ LedgerEth.prototype.signPersonalMessage_async = function (path, messageHex, call module.exports = LedgerEth; }).call(this,require("buffer").Buffer) -},{"buffer":401}],117:[function(require,module,exports){ +},{"buffer":415}],117:[function(require,module,exports){ (function (Buffer){ /******************************************************************************** * Ledger Communication toolkit @@ -19834,7 +19834,7 @@ Ledger3.prototype.exchange = function (apduHex, callback) { module.exports = Ledger3; }).call(this,require("buffer").Buffer) -},{"buffer":401}],118:[function(require,module,exports){ +},{"buffer":415}],118:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -20299,7 +20299,7 @@ SecalotEth.prototype.signMessage = function (path, message, callback) { module.exports = SecalotEth; }).call(this,require("buffer").Buffer) -},{"buffer":401}],120:[function(require,module,exports){ +},{"buffer":415}],120:[function(require,module,exports){ (function (Buffer){ 'use strict'; @@ -20343,7 +20343,7 @@ SecalotUsb.prototype.exchange = function (apduHex, callback) { module.exports = SecalotUsb; }).call(this,require("buffer").Buffer) -},{"buffer":401}],121:[function(require,module,exports){ +},{"buffer":415}],121:[function(require,module,exports){ //Copyright 2014-2015 Google Inc. All rights reserved. //Use of this source code is governed by a BSD-style @@ -21170,16 +21170,8 @@ module.exports=[ ] },{}],128:[function(require,module,exports){ -module.exports=[ - { - "address": "0x92b5120545f457cd0ffcfd787d17a5d777a54293", - "symbol": "EOSG", - "decimal": 0, - "type": "default" - } -] - -},{}],129:[function(require,module,exports){ +arguments[4][2][0].apply(exports,arguments) +},{"dup":2}],129:[function(require,module,exports){ module.exports=[ { "address": "0x72ea3508d9d817a91465abb59be10fef9857a055", @@ -32266,7 +32258,7 @@ uiFuncs.notifier = { module.exports = uiFuncs; }).call(this,require("buffer").Buffer) -},{"buffer":401}],173:[function(require,module,exports){ +},{"buffer":415}],173:[function(require,module,exports){ 'use strict'; var validator = function validator() {}; @@ -32407,11 +32399,7 @@ module.exports = Web3Wallet; (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; }; - -function _interopDefault(ex) { - return ex && (typeof ex === 'undefined' ? 'undefined' : _typeof(ex)) === 'object' && 'default' in ex ? ex['default'] : ex; -} +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var createLogger = _interopDefault(require('logging')); var EventEmitter = _interopDefault(require('events')); @@ -32425,13 +32413,11 @@ var debugLogger = _interopDefault(require('debug')); var io = _interopDefault(require('socket.io-client')); var SimplePeer = _interopDefault(require('simple-peer')); -var version = "1.0.7"; +var version = "1.0.9"; var version$1 = version; -var stunServers = [ -// { urls: 'stun:stun.l.google.com:19302' }, -{ urls: 'stun:global.stun.twilio.com:3478?transport=udp' }]; +var stunServers = [{ urls: 'stun:global.stun.twilio.com:3478?transport=udp' }]; var versions = ['0.0.1']; @@ -32514,7 +32500,7 @@ var communicationTypes = { signTx: 'signTx' }; -var asyncToGenerator = function asyncToGenerator(fn) { +var asyncToGenerator = function (fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { @@ -32543,7 +32529,7 @@ var asyncToGenerator = function asyncToGenerator(fn) { }; }; -var classCallCheck = function classCallCheck(instance, Constructor) { +var classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } @@ -32581,9 +32567,9 @@ var _extends = Object.assign || function (target) { return target; }; -var inherits = function inherits(subClass, superClass) { +var inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === 'undefined' ? 'undefined' : _typeof(superClass))); + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { @@ -32597,19 +32583,19 @@ var inherits = function inherits(subClass, superClass) { if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }; -var possibleConstructorReturn = function possibleConstructorReturn(self, call) { +var possibleConstructorReturn = function (self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } - return call && ((typeof call === 'undefined' ? 'undefined' : _typeof(call)) === "object" || typeof call === "function") ? call : self; + return call && (typeof call === "object" || typeof call === "function") ? call : self; }; -var toConsumableArray = function toConsumableArray(arr) { +var toConsumableArray = function (arr) { if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - }return arr2; + for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; } else { return Array.from(arr); } @@ -32694,6 +32680,8 @@ var MewConnectCommon = function (_EventEmitter) { * */ if (typeof window !== 'undefined') { if (browser.name === 'safari') { + // eslint-disable-next-line global-require + require('webrtc-adapter'); return MewConnectCommon.buildBrowserResult(true, 'Safari', 'version: ' + browser.version); } if (browser.name === 'ie') { @@ -32923,6 +32911,7 @@ var MewConnectInitiator = function (_MewConnectCommon) { createClass(MewConnectInitiator, [{ key: 'destroyOnUnload', + // Check if a WebRTC connection exists before a window/tab is closed or refreshed // Destroy the connection if one exists value: function destroyOnUnload() { @@ -32941,6 +32930,7 @@ var MewConnectInitiator = function (_MewConnectCommon) { }, { key: 'getSocketConnectionState', + // Returns a boolean indicating whether the socket connection exists and is active value: function getSocketConnectionState() { return this.socketConnected; @@ -33421,7 +33411,6 @@ var MewConnectInitiator = function (_MewConnectCommon) { this.socketEmit(this.signals.rtcConnected, this.socketKey); this.socketDisconnect(); this.uiCommunicator(this.lifeCycle.RtcConnectedEvent); - this.uiCommunicator(this.lifeCycle.RtcConnectedEvent); } }, { key: 'onData', @@ -33671,32 +33660,30 @@ var index = { module.exports = index; }).call(this,require("buffer").Buffer) -},{"browser-or-node":184,"buffer":401,"crypto":827,"debug":192,"detect-browser":194,"eccrypto":195,"ethereumjs-util":226,"events":861,"logging":256,"secp256k1":277,"simple-peer":291,"socket.io-client":295}],176:[function(require,module,exports){ -'use strict'; - -module.exports = after; +},{"browser-or-node":184,"buffer":415,"crypto":841,"debug":192,"detect-browser":194,"eccrypto":195,"ethereumjs-util":226,"events":875,"logging":256,"secp256k1":279,"simple-peer":293,"socket.io-client":297,"webrtc-adapter":314}],176:[function(require,module,exports){ +module.exports = after function after(count, callback, err_cb) { - var bail = false; - err_cb = err_cb || noop; - proxy.count = count; + var bail = false + err_cb = err_cb || noop + proxy.count = count - return count === 0 ? callback() : proxy; + return (count === 0) ? callback() : proxy function proxy(err, result) { if (proxy.count <= 0) { - throw new Error('after called too many times'); + throw new Error('after called too many times') } - --proxy.count; + --proxy.count // after first error, rest are passed to err_cb if (err) { - bail = true; - callback(err); + bail = true + callback(err) // future error callbacks will go to error handler - callback = err_cb; + callback = err_cb } else if (proxy.count === 0 && !bail) { - callback(null, result); + callback(null, result) } } } @@ -33704,8 +33691,6 @@ function after(count, callback, err_cb) { function noop() {} },{}],177:[function(require,module,exports){ -"use strict"; - /** * An abstraction for slicing an arraybuffer even when * ArrayBuffer.prototype.slice is not supported @@ -33713,24 +33698,16 @@ function noop() {} * @api public */ -module.exports = function (arraybuffer, start, end) { +module.exports = function(arraybuffer, start, end) { var bytes = arraybuffer.byteLength; start = start || 0; end = end || bytes; - if (arraybuffer.slice) { - return arraybuffer.slice(start, end); - } + if (arraybuffer.slice) { return arraybuffer.slice(start, end); } - if (start < 0) { - start += bytes; - } - if (end < 0) { - end += bytes; - } - if (end > bytes) { - end = bytes; - } + if (start < 0) { start += bytes; } + if (end < 0) { end += bytes; } + if (end > bytes) { end = bytes; } if (start >= bytes || start >= end || bytes === 0) { return new ArrayBuffer(0); @@ -33745,7 +33722,6 @@ module.exports = function (arraybuffer, start, end) { }; },{}],178:[function(require,module,exports){ -"use strict"; /** * Expose `Backoff`. @@ -33781,12 +33757,12 @@ function Backoff(opts) { * @api public */ -Backoff.prototype.duration = function () { +Backoff.prototype.duration = function(){ var ms = this.ms * Math.pow(this.factor, this.attempts++); if (this.jitter) { - var rand = Math.random(); + var rand = Math.random(); var deviation = Math.floor(rand * this.jitter * ms); - ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation; + ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation; } return Math.min(ms, this.max) | 0; }; @@ -33797,7 +33773,7 @@ Backoff.prototype.duration = function () { * @api public */ -Backoff.prototype.reset = function () { +Backoff.prototype.reset = function(){ this.attempts = 0; }; @@ -33807,7 +33783,7 @@ Backoff.prototype.reset = function () { * @api public */ -Backoff.prototype.setMin = function (min) { +Backoff.prototype.setMin = function(min){ this.ms = min; }; @@ -33817,7 +33793,7 @@ Backoff.prototype.setMin = function (min) { * @api public */ -Backoff.prototype.setMax = function (max) { +Backoff.prototype.setMax = function(max){ this.max = max; }; @@ -33827,13 +33803,12 @@ Backoff.prototype.setMax = function (max) { * @api public */ -Backoff.prototype.setJitter = function (jitter) { +Backoff.prototype.setJitter = function(jitter){ this.jitter = jitter; }; -},{}],179:[function(require,module,exports){ -"use strict"; +},{}],179:[function(require,module,exports){ /* * base64-arraybuffer * https://github.com/niklasvh/base64-arraybuffer @@ -33841,7 +33816,7 @@ Backoff.prototype.setJitter = function (jitter) { * Copyright (c) 2012 Niklas von Hertzen * Licensed under the MIT license. */ -(function () { +(function(){ "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; @@ -33852,20 +33827,18 @@ Backoff.prototype.setJitter = function (jitter) { lookup[chars.charCodeAt(i)] = i; } - exports.encode = function (arraybuffer) { + exports.encode = function(arraybuffer) { var bytes = new Uint8Array(arraybuffer), - i, - len = bytes.length, - base64 = ""; + i, len = bytes.length, base64 = ""; - for (i = 0; i < len; i += 3) { + for (i = 0; i < len; i+=3) { base64 += chars[bytes[i] >> 2]; - base64 += chars[(bytes[i] & 3) << 4 | bytes[i + 1] >> 4]; - base64 += chars[(bytes[i + 1] & 15) << 2 | bytes[i + 2] >> 6]; + base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)]; + base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)]; base64 += chars[bytes[i + 2] & 63]; } - if (len % 3 === 2) { + if ((len % 3) === 2) { base64 = base64.substring(0, base64.length - 1) + "="; } else if (len % 3 === 1) { base64 = base64.substring(0, base64.length - 2) + "=="; @@ -33874,15 +33847,10 @@ Backoff.prototype.setJitter = function (jitter) { return base64; }; - exports.decode = function (base64) { + exports.decode = function(base64) { var bufferLength = base64.length * 0.75, - len = base64.length, - i, - p = 0, - encoded1, - encoded2, - encoded3, - encoded4; + len = base64.length, i, p = 0, + encoded1, encoded2, encoded3, encoded4; if (base64[base64.length - 1] === "=") { bufferLength--; @@ -33892,17 +33860,17 @@ Backoff.prototype.setJitter = function (jitter) { } var arraybuffer = new ArrayBuffer(bufferLength), - bytes = new Uint8Array(arraybuffer); + bytes = new Uint8Array(arraybuffer); - for (i = 0; i < len; i += 4) { + for (i = 0; i < len; i+=4) { encoded1 = lookup[base64.charCodeAt(i)]; - encoded2 = lookup[base64.charCodeAt(i + 1)]; - encoded3 = lookup[base64.charCodeAt(i + 2)]; - encoded4 = lookup[base64.charCodeAt(i + 3)]; + encoded2 = lookup[base64.charCodeAt(i+1)]; + encoded3 = lookup[base64.charCodeAt(i+2)]; + encoded4 = lookup[base64.charCodeAt(i+3)]; - bytes[p++] = encoded1 << 2 | encoded2 >> 4; - bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2; - bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63; + bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); + bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); + bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); } return arraybuffer; @@ -33910,65 +33878,63 @@ Backoff.prototype.setJitter = function (jitter) { })(); },{}],180:[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; +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; +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 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; + 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[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; + 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'); +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 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'); + 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[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'); + 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) - }; + } } /* @@ -33993,81 +33959,84 @@ function decode(buffer) { * 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); +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); + 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; + return signature } module.exports = { check: check, decode: decode, encode: encode -}; +} -},{"safe-buffer":276}],181:[function(require,module,exports){ +},{"safe-buffer":277}],181:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Create a blob builder even when vendor prefixes exist */ -var BlobBuilder = global.BlobBuilder || global.WebKitBlobBuilder || global.MSBlobBuilder || global.MozBlobBuilder; +var BlobBuilder = global.BlobBuilder + || global.WebKitBlobBuilder + || global.MSBlobBuilder + || global.MozBlobBuilder; /** * Check if Blob constructor is supported */ -var blobSupported = function () { +var blobSupported = (function() { try { var a = new Blob(['hi']); return a.size === 2; - } catch (e) { + } catch(e) { return false; } -}(); +})(); /** * Check if Blob constructor supports ArrayBufferViews * Fails in Safari 6, so we need to map to ArrayBuffers there. */ -var blobSupportsArrayBufferView = blobSupported && function () { +var blobSupportsArrayBufferView = blobSupported && (function() { try { - var b = new Blob([new Uint8Array([1, 2])]); + var b = new Blob([new Uint8Array([1,2])]); return b.size === 2; - } catch (e) { + } catch(e) { return false; } -}(); +})(); /** * Check if BlobBuilder is supported */ -var blobBuilderSupported = BlobBuilder && BlobBuilder.prototype.append && BlobBuilder.prototype.getBlob; +var blobBuilderSupported = BlobBuilder + && BlobBuilder.prototype.append + && BlobBuilder.prototype.getBlob; /** * Helper function that maps ArrayBufferViews to ArrayBuffers @@ -34104,7 +34073,7 @@ function BlobBuilderConstructor(ary, options) { bb.append(ary[i]); } - return options.type ? bb.getBlob(options.type) : bb.getBlob(); + return (options.type) ? bb.getBlob(options.type) : bb.getBlob(); }; function BlobConstructor(ary, options) { @@ -34112,7 +34081,7 @@ function BlobConstructor(ary, options) { return new Blob(ary, options || {}); }; -module.exports = function () { +module.exports = (function() { if (blobSupported) { return blobSupportsArrayBufferView ? global.Blob : BlobConstructor; } else if (blobBuilderSupported) { @@ -34120,28 +34089,23 @@ module.exports = function () { } else { return undefined; } -}(); +})(); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],182:[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) { + 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) { + function inherits (ctor, superCtor) { ctor.super_ = superCtor; - var TempCtor = function TempCtor() {}; + var TempCtor = function () {}; TempCtor.prototype = superCtor.prototype; ctor.prototype = new TempCtor(); ctor.prototype.constructor = ctor; @@ -34149,7 +34113,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // BN - function BN(number, base, endian) { + function BN (number, base, endian) { if (BN.isBN(number)) { return number; } @@ -34170,7 +34134,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this._init(number || 0, base || 10, endian || 'be'); } } - if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object') { + if (typeof module === 'object') { module.exports = BN; } else { exports.BN = BN; @@ -34182,32 +34146,34 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var Buffer; try { Buffer = require('buffer').Buffer; - } catch (e) {} + } catch (e) { + } - BN.isBN = function isBN(num) { + 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); + return num !== null && typeof num === 'object' && + num.constructor.wordSize === BN.wordSize && Array.isArray(num.words); }; - BN.max = function max(left, right) { + BN.max = function max (left, right) { if (left.cmp(right) > 0) return left; return right; }; - BN.min = function min(left, right) { + BN.min = function min (left, right) { if (left.cmp(right) < 0) return left; return right; }; - BN.prototype._init = function init(number, base, endian) { + 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') { + if (typeof number === 'object') { return this._initArray(number, base, endian); } @@ -34239,20 +34205,27 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this._initArray(this.toArray(), base, endian); }; - BN.prototype._initNumber = function _initNumber(number, 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.words = [ number & 0x3ffffff ]; this.length = 1; } else if (number < 0x10000000000000) { - this.words = [number & 0x3ffffff, number / 0x4000000 & 0x3ffffff]; + 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.words = [ + number & 0x3ffffff, + (number / 0x4000000) & 0x3ffffff, + 1 + ]; this.length = 3; } @@ -34262,11 +34235,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this._initArray(this.toArray(), base, endian); }; - BN.prototype._initArray = function _initArray(number, 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.words = [ 0 ]; this.length = 1; return this; } @@ -34281,9 +34254,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + 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; @@ -34292,9 +34265,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } } 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; + 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; @@ -34305,7 +34278,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - function parseHex(str, start, end) { + function parseHex (str, start, end) { var r = 0; var len = Math.min(str.length, end); for (var i = start; i < len; i++) { @@ -34317,11 +34290,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (c >= 49 && c <= 54) { r |= c - 49 + 0xa; - // 'A' - 'F' + // 'A' - 'F' } else if (c >= 17 && c <= 22) { r |= c - 17 + 0xa; - // '0' - '9' + // '0' - '9' } else { r |= c & 0xf; } @@ -34329,7 +34302,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; } - BN.prototype._parseHex = function _parseHex(number, start) { + 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); @@ -34342,9 +34315,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + 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; + this.words[j + 1] |= w >>> (26 - off) & 0x3fffff; off += 24; if (off >= 26) { off -= 26; @@ -34353,13 +34326,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } 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.words[j] |= (w << off) & 0x3ffffff; + this.words[j + 1] |= w >>> (26 - off) & 0x3fffff; } this.strip(); }; - function parseBase(str, start, end, mul) { + function parseBase (str, start, end, mul) { var r = 0; var len = Math.min(str.length, end); for (var i = start; i < len; i++) { @@ -34371,11 +34344,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (c >= 49) { r += c - 49 + 0xa; - // 'A' + // 'A' } else if (c >= 17) { r += c - 17 + 0xa; - // '0' - '9' + // '0' - '9' } else { r += c; } @@ -34383,9 +34356,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; } - BN.prototype._parseBase = function _parseBase(number, base, start) { + BN.prototype._parseBase = function _parseBase (number, base, start) { // Initialize as zero - this.words = [0]; + this.words = [ 0 ]; this.length = 1; // Find length of limb in base @@ -34393,7 +34366,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol limbLen++; } limbLen--; - limbPow = limbPow / base | 0; + limbPow = (limbPow / base) | 0; var total = number.length - start; var mod = total % limbLen; @@ -34428,7 +34401,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - BN.prototype.copy = function copy(dest) { + 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]; @@ -34438,13 +34411,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol dest.red = this.red; }; - BN.prototype.clone = function clone() { + BN.prototype.clone = function clone () { var r = new BN(null); this.copy(r); return r; }; - BN.prototype._expand = function _expand(size) { + BN.prototype._expand = function _expand (size) { while (this.length < size) { this.words[this.length++] = 0; } @@ -34452,14 +34425,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Remove leading `0` from `this` - BN.prototype.strip = function strip() { + 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() { + BN.prototype._normSign = function _normSign () { // -0 = 0 if (this.length === 1 && this.words[0] === 0) { this.negative = 0; @@ -34467,15 +34440,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this; }; - BN.prototype.inspect = function inspect() { + BN.prototype.inspect = function inspect () { return (this.red ? ''; }; /* - var zeros = []; + + var zeros = []; var groupSizes = []; var groupBases = []; - var s = ''; + + var s = ''; var i = -1; while (++i < BN.wordSize) { zeros[i] = s; @@ -34496,15 +34471,57 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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) { + 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; @@ -34515,8 +34532,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + 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 { @@ -34573,33 +34590,33 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol assert(false, 'Base should be between 2 and 36'); }; - BN.prototype.toNumber = function toNumber() { + 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; + 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; + return (this.negative !== 0) ? -ret : ret; }; - BN.prototype.toJSON = function toJSON() { + BN.prototype.toJSON = function toJSON () { return this.toString(16); }; - BN.prototype.toBuffer = function toBuffer(endian, length) { + BN.prototype.toBuffer = function toBuffer (endian, length) { assert(typeof Buffer !== 'undefined'); return this.toArrayLike(Buffer, endian, length); }; - BN.prototype.toArray = function toArray(endian, length) { + BN.prototype.toArray = function toArray (endian, length) { return this.toArrayLike(Array, endian, length); }; - BN.prototype.toArrayLike = function toArrayLike(ArrayType, 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'); @@ -34640,11 +34657,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; if (Math.clz32) { - BN.prototype._countBits = function _countBits(w) { + BN.prototype._countBits = function _countBits (w) { return 32 - Math.clz32(w); }; } else { - BN.prototype._countBits = function _countBits(w) { + BN.prototype._countBits = function _countBits (w) { var t = w; var r = 0; if (t >= 0x1000) { @@ -34667,7 +34684,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; } - BN.prototype._zeroBits = function _zeroBits(w) { + BN.prototype._zeroBits = function _zeroBits (w) { // Short-cut if (w === 0) return 26; @@ -34696,27 +34713,27 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Return number of used bits in a BN - BN.prototype.bitLength = function bitLength() { + 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) { + function toBitArray (num) { var w = new Array(num.bitLength()); for (var bit = 0; bit < w.length; bit++) { - var off = bit / 26 | 0; + var off = (bit / 26) | 0; var wbit = bit % 26; - w[bit] = (num.words[off] & 1 << wbit) >>> wbit; + w[bit] = (num.words[off] & (1 << wbit)) >>> wbit; } return w; } // Number of trailing zero bits - BN.prototype.zeroBits = function zeroBits() { + BN.prototype.zeroBits = function zeroBits () { if (this.isZero()) return 0; var r = 0; @@ -34728,34 +34745,34 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; }; - BN.prototype.byteLength = function byteLength() { + BN.prototype.byteLength = function byteLength () { return Math.ceil(this.bitLength() / 8); }; - BN.prototype.toTwos = function toTwos(width) { + 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) { + 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() { + BN.prototype.isNeg = function isNeg () { return this.negative !== 0; }; // Return negative clone of `this` - BN.prototype.neg = function neg() { + BN.prototype.neg = function neg () { return this.clone().ineg(); }; - BN.prototype.ineg = function ineg() { + BN.prototype.ineg = function ineg () { if (!this.isZero()) { this.negative ^= 1; } @@ -34764,7 +34781,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Or `num` with `this` in-place - BN.prototype.iuor = function iuor(num) { + BN.prototype.iuor = function iuor (num) { while (this.length < num.length) { this.words[this.length++] = 0; } @@ -34776,24 +34793,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.ior = function ior(num) { + 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) { + 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) { + 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) { + BN.prototype.iuand = function iuand (num) { // b = min-length(num, this) var b; if (this.length > num.length) { @@ -34811,24 +34828,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.iand = function iand(num) { + 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) { + 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) { + 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) { + BN.prototype.iuxor = function iuxor (num) { // a.length > b.length var a; var b; @@ -34855,24 +34872,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.ixor = function ixor(num) { + 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) { + 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) { + 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) { + BN.prototype.inotn = function inotn (width) { assert(typeof width === 'number' && width >= 0); var bytesNeeded = Math.ceil(width / 26) | 0; @@ -34892,28 +34909,28 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Handle the residue if (bitsLeft > 0) { - this.words[i] = ~this.words[i] & 0x3ffffff >> 26 - bitsLeft; + this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft)); } // And remove leading zeroes return this.strip(); }; - BN.prototype.notn = function notn(width) { + BN.prototype.notn = function notn (width) { return this.clone().inotn(width); }; // Set `bit` of `this` - BN.prototype.setn = function setn(bit, val) { + BN.prototype.setn = function setn (bit, val) { assert(typeof bit === 'number' && bit >= 0); - var off = bit / 26 | 0; + var off = (bit / 26) | 0; var wbit = bit % 26; this._expand(off + 1); if (val) { - this.words[off] = this.words[off] | 1 << wbit; + this.words[off] = this.words[off] | (1 << wbit); } else { this.words[off] = this.words[off] & ~(1 << wbit); } @@ -34922,7 +34939,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Add `num` to `this` in-place - BN.prototype.iadd = function iadd(num) { + BN.prototype.iadd = function iadd (num) { var r; // negative + positive @@ -34932,7 +34949,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this.negative ^= 1; return this._normSign(); - // positive + negative + // positive + negative } else if (this.negative === 0 && num.negative !== 0) { num.negative = 0; r = this.isub(num); @@ -34966,7 +34983,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (carry !== 0) { this.words[this.length] = carry; this.length++; - // Copy the rest of the words + // Copy the rest of the words } else if (a !== this) { for (; i < a.length; i++) { this.words[i] = a.words[i]; @@ -34977,7 +34994,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Add `num` to `this` - BN.prototype.add = function add(num) { + BN.prototype.add = function add (num) { var res; if (num.negative !== 0 && this.negative === 0) { num.negative = 0; @@ -34997,7 +35014,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Subtract `num` from `this` in-place - BN.prototype.isub = function isub(num) { + BN.prototype.isub = function isub (num) { // this - (-num) = this + num if (num.negative !== 0) { num.negative = 0; @@ -35005,7 +35022,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol num.negative = 1; return r._normSign(); - // -this - num = -(this + num) + // -this - num = -(this + num) } else if (this.negative !== 0) { this.negative = 0; this.iadd(num); @@ -35063,15 +35080,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Subtract `num` from `this` - BN.prototype.sub = function sub(num) { + BN.prototype.sub = function sub (num) { return this.clone().isub(num); }; - function smallMulTo(self, num, out) { + function smallMulTo (self, num, out) { out.negative = num.negative ^ self.negative; - var len = self.length + num.length | 0; + var len = (self.length + num.length) | 0; out.length = len; - len = len - 1 | 0; + len = (len - 1) | 0; // Peel one iteration (compiler can't do it, because of code complexity) var a = self.words[0] | 0; @@ -35079,7 +35096,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var r = a * b; var lo = r & 0x3ffffff; - var carry = r / 0x4000000 | 0; + var carry = (r / 0x4000000) | 0; out.words[0] = lo; for (var k = 1; k < len; k++) { @@ -35089,11 +35106,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + var i = (k - j) | 0; a = self.words[i] | 0; b = num.words[j] | 0; r = a * b + rword; - ncarry += r / 0x4000000 | 0; + ncarry += (r / 0x4000000) | 0; rword = r & 0x3ffffff; } out.words[k] = rword | 0; @@ -35111,7 +35128,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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 comb10MulTo = function comb10MulTo (self, num, out) { var a = self.words; var b = num.words; var o = out.words; @@ -35185,478 +35202,478 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /* k = 0 */ lo = Math.imul(al0, bl0); mid = Math.imul(al0, bh0); - mid = mid + Math.imul(ah0, bl0) | 0; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; @@ -35689,7 +35706,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol comb10MulTo = smallMulTo; } - function bigMulTo(self, num, out) { + function bigMulTo (self, num, out) { out.negative = num.negative ^ self.negative; out.length = self.length + num.length; @@ -35709,10 +35726,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var r = a * b; var lo = r & 0x3ffffff; - ncarry = ncarry + (r / 0x4000000 | 0) | 0; - lo = lo + rword | 0; + ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0; + lo = (lo + rword) | 0; rword = lo & 0x3ffffff; - ncarry = ncarry + (lo >>> 26) | 0; + ncarry = (ncarry + (lo >>> 26)) | 0; hncarry += ncarry >>> 26; ncarry &= 0x3ffffff; @@ -35730,12 +35747,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return out.strip(); } - function jumboMulTo(self, num, out) { + function jumboMulTo (self, num, out) { var fftm = new FFTM(); return fftm.mulp(self, num, out); } - BN.prototype.mulTo = function mulTo(num, out) { + BN.prototype.mulTo = function mulTo (num, out) { var res; var len = this.length + num.length; if (this.length === 10 && num.length === 10) { @@ -35754,12 +35771,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Cooley-Tukey algorithm for FFT // slightly revisited to rely on looping instead of recursion - function FFTM(x, y) { + function FFTM (x, y) { this.x = x; this.y = y; } - FFTM.prototype.makeRBT = function makeRBT(N) { + 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++) { @@ -35770,12 +35787,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Returns binary-reversed representation of `x` - FFTM.prototype.revBin = function revBin(x, l, N) { + 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; + rb |= (x & 1) << (l - i - 1); x >>= 1; } @@ -35784,14 +35801,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Performs "tweedling" phase, therefore 'emulating' // behaviour of the recursive algorithm - FFTM.prototype.permute = function permute(rbt, rws, iws, rtws, itws, N) { + 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) { + 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) { @@ -35834,7 +35851,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - FFTM.prototype.guessLen13b = function guessLen13b(n, m) { + FFTM.prototype.guessLen13b = function guessLen13b (n, m) { var N = Math.max(m, n) | 1; var odd = N & 1; var i = 0; @@ -35845,7 +35862,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return 1 << i + 1 + odd; }; - FFTM.prototype.conjugate = function conjugate(rws, iws, N) { + FFTM.prototype.conjugate = function conjugate (rws, iws, N) { if (N <= 1) return; for (var i = 0; i < N / 2; i++) { @@ -35861,10 +35878,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - FFTM.prototype.normalize13b = function normalize13b(ws, N) { + 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; + var w = Math.round(ws[2 * i + 1] / N) * 0x2000 + + Math.round(ws[2 * i] / N) + + carry; ws[i] = w & 0x3ffffff; @@ -35878,13 +35897,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return ws; }; - FFTM.prototype.convert13b = function convert13b(ws, len, rws, N) { + 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; + rws[2 * i] = carry & 0x1fff; carry = carry >>> 13; + rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13; } // Pad with zeroes @@ -35896,7 +35915,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol assert((carry & ~0x1fff) === 0); }; - FFTM.prototype.stub = function stub(N) { + FFTM.prototype.stub = function stub (N) { var ph = new Array(N); for (var i = 0; i < N; i++) { ph[i] = 0; @@ -35905,7 +35924,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return ph; }; - FFTM.prototype.mulp = function mulp(x, y, out) { + FFTM.prototype.mulp = function mulp (x, y, out) { var N = 2 * this.guessLen13b(x.length, y.length); var rbt = this.makeRBT(N); @@ -35946,25 +35965,25 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Multiply `this` by `num` - BN.prototype.mul = function mul(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) { + 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) { + BN.prototype.imul = function imul (num) { return this.clone().mulTo(num, this); }; - BN.prototype.imuln = function imuln(num) { + BN.prototype.imuln = function imuln (num) { assert(typeof num === 'number'); assert(num < 0x4000000); @@ -35974,7 +35993,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var w = (this.words[i] | 0) * num; var lo = (w & 0x3ffffff) + (carry & 0x3ffffff); carry >>= 26; - carry += w / 0x4000000 | 0; + carry += (w / 0x4000000) | 0; // NOTE: lo is 27bit maximum carry += lo >>> 26; this.words[i] = lo & 0x3ffffff; @@ -35988,22 +36007,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this; }; - BN.prototype.muln = function muln(num) { + BN.prototype.muln = function muln (num) { return this.clone().imuln(num); }; // `this` * `this` - BN.prototype.sqr = function sqr() { + BN.prototype.sqr = function sqr () { return this.mul(this); }; // `this` * `this` in-place - BN.prototype.isqr = function isqr() { + BN.prototype.isqr = function isqr () { return this.imul(this.clone()); }; // Math.pow(`this`, `num`) - BN.prototype.pow = function pow(num) { + BN.prototype.pow = function pow (num) { var w = toBitArray(num); if (w.length === 0) return new BN(1); @@ -36025,11 +36044,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Shift-left in-place - BN.prototype.iushln = function iushln(bits) { + 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 carryMask = (0x3ffffff >>> (26 - r)) << (26 - r); var i; if (r !== 0) { @@ -36037,9 +36056,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol for (i = 0; i < this.length; i++) { var newCarry = this.words[i] & carryMask; - var c = (this.words[i] | 0) - newCarry << r; + var c = ((this.words[i] | 0) - newCarry) << r; this.words[i] = c | carry; - carry = newCarry >>> 26 - r; + carry = newCarry >>> (26 - r); } if (carry) { @@ -36063,7 +36082,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.ishln = function ishln(bits) { + BN.prototype.ishln = function ishln (bits) { // TODO(indutny): implement me assert(this.negative === 0); return this.iushln(bits); @@ -36072,18 +36091,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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) { + BN.prototype.iushrn = function iushrn (bits, hint, extended) { assert(typeof bits === 'number' && bits >= 0); var h; if (hint) { - h = (hint - hint % 26) / 26; + 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 mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r); var maskedWords = extended; h -= s; @@ -36112,7 +36131,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + this.words[i] = (carry << (26 - r)) | (word >>> r); carry = word & mask; } @@ -36129,32 +36148,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.ishrn = function ishrn(bits, hint, extended) { + 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) { + BN.prototype.shln = function shln (bits) { return this.clone().ishln(bits); }; - BN.prototype.ushln = function ushln(bits) { + BN.prototype.ushln = function ushln (bits) { return this.clone().iushln(bits); }; // Shift-right - BN.prototype.shrn = function shrn(bits) { + BN.prototype.shrn = function shrn (bits) { return this.clone().ishrn(bits); }; - BN.prototype.ushrn = function ushrn(bits) { + BN.prototype.ushrn = function ushrn (bits) { return this.clone().iushrn(bits); }; // Test if n bit is set - BN.prototype.testn = function testn(bit) { + BN.prototype.testn = function testn (bit) { assert(typeof bit === 'number' && bit >= 0); var r = bit % 26; var s = (bit - r) / 26; @@ -36170,7 +36189,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Return only lowers bits of number (in-place) - BN.prototype.imaskn = function imaskn(bits) { + BN.prototype.imaskn = function imaskn (bits) { assert(typeof bits === 'number' && bits >= 0); var r = bits % 26; var s = (bits - r) / 26; @@ -36187,7 +36206,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this.length = Math.min(s, this.length); if (r !== 0) { - var mask = 0x3ffffff ^ 0x3ffffff >>> r << r; + var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r); this.words[this.length - 1] &= mask; } @@ -36195,12 +36214,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Return only lowers bits of number - BN.prototype.maskn = function maskn(bits) { + BN.prototype.maskn = function maskn (bits) { return this.clone().imaskn(bits); }; // Add plain number `num` to `this` - BN.prototype.iaddn = function iaddn(num) { + BN.prototype.iaddn = function iaddn (num) { assert(typeof num === 'number'); assert(num < 0x4000000); if (num < 0) return this.isubn(-num); @@ -36223,7 +36242,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this._iaddn(num); }; - BN.prototype._iaddn = function _iaddn(num) { + BN.prototype._iaddn = function _iaddn (num) { this.words[0] += num; // Carry @@ -36241,7 +36260,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Subtract plain number `num` from `this` - BN.prototype.isubn = function isubn(num) { + BN.prototype.isubn = function isubn (num) { assert(typeof num === 'number'); assert(num < 0x4000000); if (num < 0) return this.iaddn(-num); @@ -36269,25 +36288,25 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.addn = function addn(num) { + BN.prototype.addn = function addn (num) { return this.clone().iaddn(num); }; - BN.prototype.subn = function subn(num) { + BN.prototype.subn = function subn (num) { return this.clone().isubn(num); }; - BN.prototype.iabs = function iabs() { + BN.prototype.iabs = function iabs () { this.negative = 0; return this; }; - BN.prototype.abs = function abs() { + BN.prototype.abs = function abs () { return this.clone().iabs(); }; - BN.prototype._ishlnsubmul = function _ishlnsubmul(num, mul, shift) { + BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) { var len = num.length + shift; var i; @@ -36299,7 +36318,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol w = (this.words[i + shift] | 0) + carry; var right = (num.words[i] | 0) * mul; w -= right & 0x3ffffff; - carry = (w >> 26) - (right / 0x4000000 | 0); + carry = (w >> 26) - ((right / 0x4000000) | 0); this.words[i + shift] = w & 0x3ffffff; } for (; i < this.length - shift; i++) { @@ -36323,7 +36342,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype._wordDiv = function _wordDiv(num, mode) { + BN.prototype._wordDiv = function _wordDiv (num, mode) { var shift = this.length - num.length; var a = this.clone(); @@ -36361,11 +36380,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } for (var j = m - 1; j >= 0; j--) { - var qj = (a.words[b.length + j] | 0) * 0x4000000 + (a.words[b.length + j - 1] | 0); + 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); + qj = Math.min((qj / bhi) | 0, 0x3ffffff); a._ishlnsubmul(b, qj, j); while (a.negative !== 0) { @@ -36400,7 +36420,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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) { + BN.prototype.divmod = function divmod (num, mode, positive) { assert(!num.isZero()); if (this.isZero()) { @@ -36496,21 +36516,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Find `this` / `num` - BN.prototype.div = function div(num) { + BN.prototype.div = function div (num) { return this.divmod(num, 'div', false).div; }; // Find `this` % `num` - BN.prototype.mod = function mod(num) { + BN.prototype.mod = function mod (num) { return this.divmod(num, 'mod', false).mod; }; - BN.prototype.umod = function umod(num) { + BN.prototype.umod = function umod (num) { return this.divmod(num, 'mod', true).mod; }; // Find Round(`this` / `num`) - BN.prototype.divRound = function divRound(num) { + BN.prototype.divRound = function divRound (num) { var dm = this.divmod(num); // Fast case - exact division @@ -36529,7 +36549,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1); }; - BN.prototype.modn = function modn(num) { + BN.prototype.modn = function modn (num) { assert(num <= 0x3ffffff); var p = (1 << 26) % num; @@ -36542,24 +36562,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // In-place division by number - BN.prototype.idivn = function idivn(num) { + 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; + this.words[i] = (w / num) | 0; carry = w % num; } return this.strip(); }; - BN.prototype.divn = function divn(num) { + BN.prototype.divn = function divn (num) { return this.clone().idivn(num); }; - BN.prototype.egcd = function egcd(p) { + BN.prototype.egcd = function egcd (p) { assert(p.negative === 0); assert(!p.isZero()); @@ -36592,7 +36612,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var xp = x.clone(); while (!x.isZero()) { - for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1) {} + 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) { @@ -36606,7 +36626,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } } - for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 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) { @@ -36641,7 +36661,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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) { + BN.prototype._invmp = function _invmp (p) { assert(p.negative === 0); assert(!p.isZero()); @@ -36660,7 +36680,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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) {} + 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) { @@ -36672,7 +36692,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } } - for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 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) { @@ -36707,7 +36727,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - BN.prototype.gcd = function gcd(num) { + BN.prototype.gcd = function gcd (num) { if (this.isZero()) return num.abs(); if (num.isZero()) return this.abs(); @@ -36747,25 +36767,25 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Invert number in the field F(num) - BN.prototype.invm = function invm(num) { + BN.prototype.invm = function invm (num) { return this.egcd(num).a.umod(num); }; - BN.prototype.isEven = function isEven() { + BN.prototype.isEven = function isEven () { return (this.words[0] & 1) === 0; }; - BN.prototype.isOdd = function isOdd() { + BN.prototype.isOdd = function isOdd () { return (this.words[0] & 1) === 1; }; // And first word and num - BN.prototype.andln = function andln(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) { + BN.prototype.bincn = function bincn (bit) { assert(typeof bit === 'number'); var r = bit % 26; var s = (bit - r) / 26; @@ -36794,11 +36814,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this; }; - BN.prototype.isZero = function isZero() { + BN.prototype.isZero = function isZero () { return this.length === 1 && this.words[0] === 0; }; - BN.prototype.cmpn = function cmpn(num) { + BN.prototype.cmpn = function cmpn (num) { var negative = num < 0; if (this.negative !== 0 && !negative) return -1; @@ -36827,7 +36847,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 1 - if `this` > `num` // 0 - if `this` == `num` // -1 - if `this` < `num` - BN.prototype.cmp = function cmp(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; @@ -36837,7 +36857,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Unsigned comparison - BN.prototype.ucmp = function ucmp(num) { + 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; @@ -36858,43 +36878,43 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - BN.prototype.gtn = function gtn(num) { + BN.prototype.gtn = function gtn (num) { return this.cmpn(num) === 1; }; - BN.prototype.gt = function gt(num) { + BN.prototype.gt = function gt (num) { return this.cmp(num) === 1; }; - BN.prototype.gten = function gten(num) { + BN.prototype.gten = function gten (num) { return this.cmpn(num) >= 0; }; - BN.prototype.gte = function gte(num) { + BN.prototype.gte = function gte (num) { return this.cmp(num) >= 0; }; - BN.prototype.ltn = function ltn(num) { + BN.prototype.ltn = function ltn (num) { return this.cmpn(num) === -1; }; - BN.prototype.lt = function lt(num) { + BN.prototype.lt = function lt (num) { return this.cmp(num) === -1; }; - BN.prototype.lten = function lten(num) { + BN.prototype.lten = function lten (num) { return this.cmpn(num) <= 0; }; - BN.prototype.lte = function lte(num) { + BN.prototype.lte = function lte (num) { return this.cmp(num) <= 0; }; - BN.prototype.eqn = function eqn(num) { + BN.prototype.eqn = function eqn (num) { return this.cmpn(num) === 0; }; - BN.prototype.eq = function eq(num) { + BN.prototype.eq = function eq (num) { return this.cmp(num) === 0; }; @@ -36902,101 +36922,101 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // A reduce context, could be using montgomery or something better, depending // on the `m` itself. // - BN.red = function red(num) { + BN.red = function red (num) { return new Red(num); }; - BN.prototype.toRed = function toRed(ctx) { + 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() { + 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) { + BN.prototype._forceRed = function _forceRed (ctx) { this.red = ctx; return this; }; - BN.prototype.forceRed = function forceRed(ctx) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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() { + 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() { + 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() { + 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() { + 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() { + 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) { + BN.prototype.redPow = function redPow (num) { assert(this.red && !num.red, 'redPow(normalNum)'); this.red._verify1(this); return this.red.pow(this, num); @@ -37011,7 +37031,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Pseudo-Mersenne prime - function MPrime(name, p) { + function MPrime (name, p) { // P = 2 ^ N - K this.name = name; this.p = new BN(p, 16); @@ -37021,13 +37041,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this.tmp = this._tmp(); } - MPrime.prototype._tmp = function _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) { + 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; @@ -37053,20 +37073,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; }; - MPrime.prototype.split = function split(input, out) { + MPrime.prototype.split = function split (input, out) { input.iushrn(this.n, 0, out); }; - MPrime.prototype.imulK = function imulK(num) { + 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'); + function K256 () { + MPrime.call( + this, + 'k256', + 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f'); } inherits(K256, MPrime); - K256.prototype.split = function split(input, output) { + K256.prototype.split = function split (input, output) { // 256 = 9 * 26 + 22 var mask = 0x3fffff; @@ -37088,7 +37111,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol for (i = 10; i < input.length; i++) { var next = input.words[i] | 0; - input.words[i - 10] = (next & mask) << 4 | prev >>> 22; + input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22); prev = next; } prev >>>= 22; @@ -37100,7 +37123,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - K256.prototype.imulK = function imulK(num) { + K256.prototype.imulK = function imulK (num) { // K = 0x1000003d1 = [ 0x40, 0x3d1 ] num.words[num.length] = 0; num.words[num.length + 1] = 0; @@ -37112,7 +37135,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var w = num.words[i] | 0; lo += w * 0x3d1; num.words[i] = lo & 0x3ffffff; - lo = w * 0x40 + (lo / 0x4000000 | 0); + lo = w * 0x40 + ((lo / 0x4000000) | 0); } // Fast length reduction @@ -37125,23 +37148,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return num; }; - function P224() { - MPrime.call(this, 'p224', 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001'); + 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'); + function P192 () { + MPrime.call( + this, + 'p192', + 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff'); } inherits(P192, MPrime); - function P25519() { + function P25519 () { // 2 ^ 255 - 19 - MPrime.call(this, '25519', '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed'); + MPrime.call( + this, + '25519', + '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed'); } inherits(P25519, MPrime); - P25519.prototype.imulK = function imulK(num) { + P25519.prototype.imulK = function imulK (num) { // K = 0x13 var carry = 0; for (var i = 0; i < num.length; i++) { @@ -37159,7 +37191,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Exported mostly for testing purposes, use plain name instead - BN._prime = function prime(name) { + BN._prime = function prime (name) { // Cached version of prime if (primes[name]) return primes[name]; @@ -37183,7 +37215,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // // Base reduction engine // - function Red(m) { + function Red (m) { if (typeof m === 'string') { var prime = BN._prime(m); this.m = prime.p; @@ -37195,22 +37227,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } } - Red.prototype._verify1 = function _verify1(a) { + 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) { + 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'); + assert(a.red && a.red === b.red, + 'red works only with red numbers'); }; - Red.prototype.imod = function imod(a) { + 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) { + Red.prototype.neg = function neg (a) { if (a.isZero()) { return a.clone(); } @@ -37218,7 +37251,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.m.sub(a)._forceRed(this); }; - Red.prototype.add = function add(a, b) { + Red.prototype.add = function add (a, b) { this._verify2(a, b); var res = a.add(b); @@ -37228,7 +37261,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res._forceRed(this); }; - Red.prototype.iadd = function iadd(a, b) { + Red.prototype.iadd = function iadd (a, b) { this._verify2(a, b); var res = a.iadd(b); @@ -37238,7 +37271,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - Red.prototype.sub = function sub(a, b) { + Red.prototype.sub = function sub (a, b) { this._verify2(a, b); var res = a.sub(b); @@ -37248,7 +37281,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res._forceRed(this); }; - Red.prototype.isub = function isub(a, b) { + Red.prototype.isub = function isub (a, b) { this._verify2(a, b); var res = a.isub(b); @@ -37258,30 +37291,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - Red.prototype.shl = function shl(a, num) { + Red.prototype.shl = function shl (a, num) { this._verify1(a); return this.imod(a.ushln(num)); }; - Red.prototype.imul = function imul(a, b) { + Red.prototype.imul = function imul (a, b) { this._verify2(a, b); return this.imod(a.imul(b)); }; - Red.prototype.mul = function mul(a, b) { + Red.prototype.mul = function mul (a, b) { this._verify2(a, b); return this.imod(a.mul(b)); }; - Red.prototype.isqr = function isqr(a) { + Red.prototype.isqr = function isqr (a) { return this.imul(a, a.clone()); }; - Red.prototype.sqr = function sqr(a) { + Red.prototype.sqr = function sqr (a) { return this.mul(a, a); }; - Red.prototype.sqrt = function sqrt(a) { + Red.prototype.sqrt = function sqrt (a) { if (a.isZero()) return a.clone(); var mod3 = this.m.andln(3); @@ -37338,7 +37371,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; }; - Red.prototype.invm = function invm(a) { + Red.prototype.invm = function invm (a) { var inv = a._invmp(this.m); if (inv.negative !== 0) { inv.negative = 0; @@ -37348,7 +37381,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - Red.prototype.pow = function pow(a, num) { + Red.prototype.pow = function pow (a, num) { if (num.isZero()) return new BN(1).toRed(this); if (num.cmpn(1) === 0) return a.clone(); @@ -37371,7 +37404,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + var bit = (word >> j) & 1; if (res !== wnd[0]) { res = this.sqr(res); } @@ -37396,13 +37429,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - Red.prototype.convertTo = function convertTo(num) { + Red.prototype.convertTo = function convertTo (num) { var r = num.umod(this.m); return r === num ? r.clone() : r; }; - Red.prototype.convertFrom = function convertFrom(num) { + Red.prototype.convertFrom = function convertFrom (num) { var res = num.clone(); res.red = null; return res; @@ -37412,16 +37445,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Montgomery method engine // - BN.mont = function mont(num) { + BN.mont = function mont (num) { return new Mont(num); }; - function Mont(m) { + function Mont (m) { Red.call(this, m); this.shift = this.m.bitLength(); if (this.shift % 26 !== 0) { - this.shift += 26 - this.shift % 26; + this.shift += 26 - (this.shift % 26); } this.r = new BN(1).iushln(this.shift); @@ -37434,17 +37467,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } inherits(Mont, Red); - Mont.prototype.convertTo = function convertTo(num) { + Mont.prototype.convertTo = function convertTo (num) { return this.imod(num.ushln(this.shift)); }; - Mont.prototype.convertFrom = function convertFrom(num) { + 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) { + Mont.prototype.imul = function imul (a, b) { if (a.isZero() || b.isZero()) { a.words[0] = 0; a.length = 1; @@ -37465,7 +37498,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res._forceRed(this); }; - Mont.prototype.mul = function mul(a, b) { + Mont.prototype.mul = function mul (a, b) { if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this); var t = a.mul(b); @@ -37481,22 +37514,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res._forceRed(this); }; - Mont.prototype.invm = function invm(a) { + 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":369}],183:[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; }; +})(typeof module === 'undefined' || module, this); +},{"buffer":383}],183:[function(require,module,exports){ var r; module.exports = function rand(len) { - if (!r) r = new Rand(null); + if (!r) + r = new Rand(null); return r.generate(len); }; @@ -37512,15 +37542,16 @@ Rand.prototype.generate = function generate(len) { // Emulate crypto API using randy Rand.prototype._rand = function _rand(n) { - if (this.rand.getBytes) return this.rand.getBytes(n); + if (this.rand.getBytes) + return this.rand.getBytes(n); var res = new Uint8Array(n); - for (var i = 0; i < res.length; i++) { + for (var i = 0; i < res.length; i++) res[i] = this.rand.getByte(); - }return res; + return res; }; -if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object') { +if (typeof self === 'object') { if (self.crypto && self.crypto.getRandomValues) { // Modern browsers Rand.prototype._rand = function _rand(n) { @@ -37536,10 +37567,10 @@ if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object') { return arr; }; - // Safari's WebWorkers do not have `crypto` - } else if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object') { + // Safari's WebWorkers do not have `crypto` + } else if (typeof window === 'object') { // Old junk - Rand.prototype._rand = function () { + Rand.prototype._rand = function() { throw new Error('Not implemented yet'); }; } @@ -37547,15 +37578,17 @@ if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object') { // Node.js or Web worker with no crypto support try { var crypto = require('crypto'); - if (typeof crypto.randomBytes !== 'function') throw new Error('Not supported'); + if (typeof crypto.randomBytes !== 'function') + throw new Error('Not supported'); Rand.prototype._rand = function _rand(n) { return crypto.randomBytes(n); }; - } catch (e) {} + } catch (e) { + } } -},{"crypto":369}],184:[function(require,module,exports){ +},{"crypto":383}],184:[function(require,module,exports){ (function (process){ 'use strict'; @@ -37570,114 +37603,109 @@ var isNode = typeof process !== 'undefined' && process.versions != null && proce exports.isBrowser = isBrowser; exports.isNode = isNode; - }).call(this,require('_process')) -},{"_process":911}],185:[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'; +},{"_process":925}],185:[function(require,module,exports){ +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; + this[hashMode] = this._finalOrDigest } else { - this.final = this._finalOrDigest; + this.final = this._finalOrDigest } if (this._final) { - this.__final = this._final; - this._final = null; + this.__final = this._final + this._final = null } - this._decoder = null; - this._encoding = null; + this._decoder = null + this._encoding = null } -inherits(CipherBase, Transform); +inherits(CipherBase, Transform) CipherBase.prototype.update = function (data, inputEnc, outputEnc) { if (typeof data === 'string') { - data = Buffer.from(data, inputEnc); + data = Buffer.from(data, inputEnc) } - var outData = this._update(data); - if (this.hashMode) return this; + var outData = this._update(data) + if (this.hashMode) return this if (outputEnc) { - outData = this._toString(outData, outputEnc); + outData = this._toString(outData, outputEnc) } - return outData; -}; + return outData +} -CipherBase.prototype.setAutoPadding = function () {}; +CipherBase.prototype.setAutoPadding = function () {} CipherBase.prototype.getAuthTag = function () { - throw new Error('trying to get auth tag in unsupported state'); -}; + 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'); -}; + 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'); -}; + throw new Error('trying to set aad in unsupported state') +} CipherBase.prototype._transform = function (data, _, next) { - var err; + var err try { if (this.hashMode) { - this._update(data); + this._update(data) } else { - this.push(this._update(data)); + this.push(this._update(data)) } } catch (e) { - err = e; + err = e } finally { - next(err); + next(err) } -}; +} CipherBase.prototype._flush = function (done) { - var err; + var err try { - this.push(this.__final()); + this.push(this.__final()) } catch (e) { - err = e; + err = e } - done(err); -}; + done(err) +} CipherBase.prototype._finalOrDigest = function (outputEnc) { - var outData = this.__final() || Buffer.alloc(0); + var outData = this.__final() || Buffer.alloc(0) if (outputEnc) { - outData = this._toString(outData, outputEnc, true); + outData = this._toString(outData, outputEnc, true) } - return outData; -}; + return outData +} CipherBase.prototype._toString = function (value, enc, fin) { if (!this._decoder) { - this._decoder = new StringDecoder(enc); - this._encoding = enc; + this._decoder = new StringDecoder(enc) + this._encoding = enc } - if (this._encoding !== enc) throw new Error('can\'t switch encodings'); + if (this._encoding !== enc) throw new Error('can\'t switch encodings') - var out = this._decoder.write(value); + var out = this._decoder.write(value) if (fin) { - out += this._decoder.end(); + out += this._decoder.end() } - return out; -}; - -module.exports = CipherBase; + return out +} -},{"inherits":247,"safe-buffer":276,"stream":954,"string_decoder":398}],186:[function(require,module,exports){ -'use strict'; +module.exports = CipherBase +},{"inherits":247,"safe-buffer":277,"stream":968,"string_decoder":412}],186:[function(require,module,exports){ /** * Slice reference. */ @@ -37693,51 +37721,50 @@ var slice = [].slice; * @api public */ -module.exports = function (obj, fn) { +module.exports = function(obj, fn){ if ('string' == typeof fn) fn = obj[fn]; if ('function' != typeof fn) throw new Error('bind() requires a function'); var args = slice.call(arguments, 2); - return function () { + return function(){ return fn.apply(obj, args.concat(slice.call(arguments))); - }; + } }; },{}],187:[function(require,module,exports){ -'use strict'; - + /** * Expose `Emitter`. - */ - -if (typeof module !== 'undefined') { - module.exports = Emitter; -} - + */ + +if (typeof module !== 'undefined') { + module.exports = Emitter; +} + /** * Initialize a new `Emitter`. * * @api public - */ - -function Emitter(obj) { - if (obj) return mixin(obj); -}; - + */ + +function Emitter(obj) { + if (obj) return mixin(obj); +}; + /** * Mixin the emitter properties. * * @param {Object} obj * @return {Object} * @api private - */ - -function mixin(obj) { - for (var key in Emitter.prototype) { - obj[key] = Emitter.prototype[key]; - } - return obj; -} - + */ + +function mixin(obj) { + for (var key in Emitter.prototype) { + obj[key] = Emitter.prototype[key]; + } + return obj; +} + /** * Listen on the given `event` with `fn`. * @@ -37745,14 +37772,16 @@ function mixin(obj) { * @param {Function} fn * @return {Emitter} * @api public - */ - -Emitter.prototype.on = Emitter.prototype.addEventListener = function (event, fn) { - this._callbacks = this._callbacks || {}; - (this._callbacks['$' + event] = this._callbacks['$' + event] || []).push(fn); - return this; -}; - + */ + +Emitter.prototype.on = +Emitter.prototype.addEventListener = function(event, fn){ + this._callbacks = this._callbacks || {}; + (this._callbacks['$' + event] = this._callbacks['$' + event] || []) + .push(fn); + return this; +}; + /** * Adds an `event` listener that will be invoked a single * time then automatically removed. @@ -37761,19 +37790,19 @@ Emitter.prototype.on = Emitter.prototype.addEventListener = function (event, fn) * @param {Function} fn * @return {Emitter} * @api public - */ - -Emitter.prototype.once = function (event, fn) { - function on() { - this.off(event, on); - fn.apply(this, arguments); - } - - on.fn = fn; - this.on(event, on); - return this; -}; - + */ + +Emitter.prototype.once = function(event, fn){ + function on() { + this.off(event, on); + fn.apply(this, arguments); + } + + on.fn = fn; + this.on(event, on); + return this; +}; + /** * Remove the given callback for `event` or all * registered callbacks. @@ -37782,103 +37811,100 @@ Emitter.prototype.once = function (event, fn) { * @param {Function} fn * @return {Emitter} * @api public - */ - -Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function (event, fn) { - this._callbacks = this._callbacks || {}; - - // all - if (0 == arguments.length) { - this._callbacks = {}; - return this; - } - - // specific event - var callbacks = this._callbacks['$' + event]; - if (!callbacks) return this; - - // remove all handlers - if (1 == arguments.length) { - delete this._callbacks['$' + event]; - return this; - } - - // remove specific handler - var cb; - for (var i = 0; i < callbacks.length; i++) { - cb = callbacks[i]; - if (cb === fn || cb.fn === fn) { - callbacks.splice(i, 1); - break; - } - } - return this; -}; - + */ + +Emitter.prototype.off = +Emitter.prototype.removeListener = +Emitter.prototype.removeAllListeners = +Emitter.prototype.removeEventListener = function(event, fn){ + this._callbacks = this._callbacks || {}; + + // all + if (0 == arguments.length) { + this._callbacks = {}; + return this; + } + + // specific event + var callbacks = this._callbacks['$' + event]; + if (!callbacks) return this; + + // remove all handlers + if (1 == arguments.length) { + delete this._callbacks['$' + event]; + return this; + } + + // remove specific handler + var cb; + for (var i = 0; i < callbacks.length; i++) { + cb = callbacks[i]; + if (cb === fn || cb.fn === fn) { + callbacks.splice(i, 1); + break; + } + } + return this; +}; + /** * Emit `event` with the given args. * * @param {String} event * @param {Mixed} ... * @return {Emitter} - */ - -Emitter.prototype.emit = function (event) { - this._callbacks = this._callbacks || {}; - var args = [].slice.call(arguments, 1), - callbacks = this._callbacks['$' + event]; - - if (callbacks) { - callbacks = callbacks.slice(0); - for (var i = 0, len = callbacks.length; i < len; ++i) { - callbacks[i].apply(this, args); - } - } - - return this; -}; - + */ + +Emitter.prototype.emit = function(event){ + this._callbacks = this._callbacks || {}; + var args = [].slice.call(arguments, 1) + , callbacks = this._callbacks['$' + event]; + + if (callbacks) { + callbacks = callbacks.slice(0); + for (var i = 0, len = callbacks.length; i < len; ++i) { + callbacks[i].apply(this, args); + } + } + + return this; +}; + /** * Return array of callbacks for `event`. * * @param {String} event * @return {Array} * @api public - */ - -Emitter.prototype.listeners = function (event) { - this._callbacks = this._callbacks || {}; - return this._callbacks['$' + event] || []; -}; - + */ + +Emitter.prototype.listeners = function(event){ + this._callbacks = this._callbacks || {}; + return this._callbacks['$' + event] || []; +}; + /** * Check if this emitter has `event` handlers. * * @param {String} event * @return {Boolean} * @api public - */ - -Emitter.prototype.hasListeners = function (event) { - return !!this.listeners(event).length; -}; + */ + +Emitter.prototype.hasListeners = function(event){ + return !! this.listeners(event).length; +}; },{}],188:[function(require,module,exports){ -"use strict"; -module.exports = function (a, b) { - var fn = function fn() {}; +module.exports = function(a, b){ + var fn = function(){}; fn.prototype = b.prototype; - a.prototype = new fn(); + a.prototype = new fn; a.prototype.constructor = a; }; - },{}],189:[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 @@ -37937,7 +37963,7 @@ function isString(arg) { exports.isString = isString; function isSymbol(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol'; + return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; @@ -37952,7 +37978,7 @@ function isRegExp(re) { exports.isRegExp = isRegExp; function isObject(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null; + return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; @@ -37962,7 +37988,7 @@ function isDate(d) { exports.isDate = isDate; function isError(e) { - return objectToString(e) === '[object Error]' || e instanceof Error; + return (objectToString(e) === '[object Error]' || e instanceof Error); } exports.isError = isError; @@ -37972,8 +37998,12 @@ function isFunction(arg) { 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'; + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; @@ -37984,44 +38014,39 @@ function objectToString(o) { } }).call(this,{"isBuffer":require("../../../../../is-buffer/index.js")}) -},{"../../../../../is-buffer/index.js":883}],190:[function(require,module,exports){ -'use strict'; - -var inherits = require('inherits'); -var MD5 = require('md5.js'); -var RIPEMD160 = require('ripemd160'); -var sha = require('sha.js'); -var Base = require('cipher-base'); +},{"../../../../../is-buffer/index.js":897}],190:[function(require,module,exports){ +'use strict' +var inherits = require('inherits') +var MD5 = require('md5.js') +var RIPEMD160 = require('ripemd160') +var sha = require('sha.js') +var Base = require('cipher-base') -function Hash(hash) { - Base.call(this, 'digest'); +function Hash (hash) { + Base.call(this, 'digest') - this._hash = hash; + this._hash = hash } -inherits(Hash, Base); +inherits(Hash, Base) Hash.prototype._update = function (data) { - this._hash.update(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 MD5(); - if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160(); - - return new Hash(sha(alg)); -}; + return this._hash.digest() +} -},{"cipher-base":185,"inherits":247,"md5.js":257,"ripemd160":274,"sha.js":284}],191:[function(require,module,exports){ -'use strict'; +module.exports = function createHash (alg) { + alg = alg.toLowerCase() + if (alg === 'md5') return new MD5() + if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160() -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; }; + return new Hash(sha(alg)) +} +},{"cipher-base":185,"inherits":247,"md5.js":257,"ripemd160":274,"sha.js":286}],191:[function(require,module,exports){ /** * Helpers. */ @@ -38047,15 +38072,18 @@ var y = d * 365.25; * @api public */ -module.exports = function (val, options) { +module.exports = function(val, options) { options = options || {}; - var type = typeof val === 'undefined' ? 'undefined' : _typeof(val); + var type = typeof val; if (type === 'string' && val.length > 0) { return parse(val); } else if (type === 'number' && isNaN(val) === false) { return options.long ? fmtLong(val) : fmtShort(val); } - throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(val)); + throw new Error( + 'val is not a non-empty string or a valid number. val=' + + JSON.stringify(val) + ); }; /** @@ -38071,7 +38099,9 @@ function parse(str) { if (str.length > 100) { return; } - var match = /^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str); + var match = /^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( + str + ); if (!match) { return; } @@ -38182,10 +38212,6 @@ function plural(ms, msAbs, n, name) { },{}],192:[function(require,module,exports){ (function (process){ -'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; }; - /* eslint-env browser */ /** @@ -38203,7 +38229,84 @@ exports.storage = localstorage(); * Colors. */ -exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33']; +exports.colors = [ + '#0000CC', + '#0000FF', + '#0033CC', + '#0033FF', + '#0066CC', + '#0066FF', + '#0099CC', + '#0099FF', + '#00CC00', + '#00CC33', + '#00CC66', + '#00CC99', + '#00CCCC', + '#00CCFF', + '#3300CC', + '#3300FF', + '#3333CC', + '#3333FF', + '#3366CC', + '#3366FF', + '#3399CC', + '#3399FF', + '#33CC00', + '#33CC33', + '#33CC66', + '#33CC99', + '#33CCCC', + '#33CCFF', + '#6600CC', + '#6600FF', + '#6633CC', + '#6633FF', + '#66CC00', + '#66CC33', + '#9900CC', + '#9900FF', + '#9933CC', + '#9933FF', + '#99CC00', + '#99CC33', + '#CC0000', + '#CC0033', + '#CC0066', + '#CC0099', + '#CC00CC', + '#CC00FF', + '#CC3300', + '#CC3333', + '#CC3366', + '#CC3399', + '#CC33CC', + '#CC33FF', + '#CC6600', + '#CC6633', + '#CC9900', + '#CC9933', + '#CCCC00', + '#CCCC33', + '#FF0000', + '#FF0033', + '#FF0066', + '#FF0099', + '#FF00CC', + '#FF00FF', + '#FF3300', + '#FF3333', + '#FF3366', + '#FF3399', + '#FF33CC', + '#FF33FF', + '#FF6600', + '#FF6633', + '#FF9900', + '#FF9933', + '#FFCC00', + '#FFCC33' +]; /** * Currently only WebKit-based Web Inspectors, Firefox >= v31, @@ -38229,14 +38332,14 @@ function useColors() { // Is webkit? http://stackoverflow.com/a/16459606/376773 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || - // Is firebug? http://stackoverflow.com/a/398120/376773 - typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || - // Double check webkit in userAgent just in case we are in a worker - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); + return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || + // Is firebug? http://stackoverflow.com/a/398120/376773 + (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || + // Is firefox >= v31? + // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || + // Double check webkit in userAgent just in case we are in a worker + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); } /** @@ -38246,21 +38349,26 @@ function useColors() { */ function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff); + args[0] = (this.useColors ? '%c' : '') + + this.namespace + + (this.useColors ? ' %c' : ' ') + + args[0] + + (this.useColors ? '%c ' : ' ') + + '+' + module.exports.humanize(this.diff); if (!this.useColors) { return; } - var c = 'color: ' + this.color; + const c = 'color: ' + this.color; args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other // arguments passed either before or after the %c, so we need to // figure out the correct index to insert the CSS into - var index = 0; - var lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, function (match) { + let index = 0; + let lastC = 0; + args[0].replace(/%[a-zA-Z%]/g, match => { if (match === '%%') { return; } @@ -38281,12 +38389,12 @@ function formatArgs(args) { * * @api public */ -function log() { - var _console; - +function log(...args) { // This hackery is required for IE8/9, where // the `console.log` function doesn't have 'apply' - return (typeof console === 'undefined' ? 'undefined' : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments); + return typeof console === 'object' && + console.log && + console.log(...args); } /** @@ -38315,13 +38423,13 @@ function save(namespaces) { * @api private */ function load() { - var r = void 0; + let r; try { r = exports.storage.getItem('debug'); - } catch (error) {} - // Swallow - // XXX (@Qix-) should we be logging these? - + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } // If debug isn't set in LS, and we're in Electron, try to load $DEBUG if (!r && typeof process !== 'undefined' && 'env' in process) { @@ -38355,7 +38463,7 @@ function localstorage() { module.exports = require('./common')(exports); -var formatters = module.exports.formatters; +const {formatters} = module.exports; /** * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. @@ -38370,8 +38478,7 @@ formatters.j = function (v) { }; }).call(this,require('_process')) -},{"./common":193,"_process":911}],193:[function(require,module,exports){ -'use strict'; +},{"./common":193,"_process":925}],193:[function(require,module,exports){ /** * This is the common logic for both the Node.js and web browser @@ -38387,40 +38494,40 @@ function setup(env) { createDebug.enabled = enabled; createDebug.humanize = require('ms'); - Object.keys(env).forEach(function (key) { + Object.keys(env).forEach(key => { createDebug[key] = env[key]; }); /** - * Active `debug` instances. - */ + * Active `debug` instances. + */ createDebug.instances = []; /** - * The currently active debug mode names, and names to skip. - */ + * The currently active debug mode names, and names to skip. + */ createDebug.names = []; createDebug.skips = []; /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ + * Map of special "%n" handling functions, for the debug "format" argument. + * + * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". + */ createDebug.formatters = {}; /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ + * Selects a color for a debug namespace + * @param {String} namespace The namespace string for the for the debug instance to be colored + * @return {Number|String} An ANSI color code for the given namespace + * @api private + */ function selectColor(namespace) { - var hash = 0; + let hash = 0; - for (var i = 0; i < namespace.length; i++) { - hash = (hash << 5) - hash + namespace.charCodeAt(i); + for (let i = 0; i < namespace.length; i++) { + hash = ((hash << 5) - hash) + namespace.charCodeAt(i); hash |= 0; // Convert to 32bit integer } @@ -38429,30 +38536,26 @@ function setup(env) { createDebug.selectColor = selectColor; /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ + * Create a debugger with the given `namespace`. + * + * @param {String} namespace + * @return {Function} + * @api public + */ function createDebug(namespace) { - var prevTime = void 0; - - function debug() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + let prevTime; + function debug(...args) { // Disabled? if (!debug.enabled) { return; } - var self = debug; + const self = debug; // Set `diff` timestamp - var curr = Number(new Date()); - var ms = curr - (prevTime || curr); + const curr = Number(new Date()); + const ms = curr - (prevTime || curr); self.diff = ms; self.prev = prevTime; self.curr = curr; @@ -38466,16 +38569,16 @@ function setup(env) { } // Apply any `formatters` transformations - var index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) { + let index = 0; + args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { // If we encounter an escaped % then don't increase the array index if (match === '%%') { return match; } index++; - var formatter = createDebug.formatters[format]; + const formatter = createDebug.formatters[format]; if (typeof formatter === 'function') { - var val = args[index]; + const val = args[index]; match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format` @@ -38488,7 +38591,7 @@ function setup(env) { // Apply env-specific formatting (colors, etc.) createDebug.formatArgs.call(self, args); - var logFn = self.log || createDebug.log; + const logFn = self.log || createDebug.log; logFn.apply(self, args); } @@ -38512,7 +38615,7 @@ function setup(env) { } function destroy() { - var index = createDebug.instances.indexOf(this); + const index = createDebug.instances.indexOf(this); if (index !== -1) { createDebug.instances.splice(index, 1); return true; @@ -38525,21 +38628,21 @@ function setup(env) { } /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ + * Enables a debug mode by namespaces. This can include modes + * separated by a colon and wildcards. + * + * @param {String} namespaces + * @api public + */ function enable(namespaces) { createDebug.save(namespaces); createDebug.names = []; createDebug.skips = []; - var i = void 0; - var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - var len = split.length; + let i; + const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); + const len = split.length; for (i = 0; i < len; i++) { if (!split[i]) { @@ -38557,34 +38660,34 @@ function setup(env) { } for (i = 0; i < createDebug.instances.length; i++) { - var instance = createDebug.instances[i]; + const instance = createDebug.instances[i]; instance.enabled = createDebug.enabled(instance.namespace); } } /** - * Disable debug output. - * - * @api public - */ + * Disable debug output. + * + * @api public + */ function disable() { createDebug.enable(''); } /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ + * Returns true if the given mode name is enabled, false otherwise. + * + * @param {String} name + * @return {Boolean} + * @api public + */ function enabled(name) { if (name[name.length - 1] === '*') { return true; } - var i = void 0; - var len = void 0; + let i; + let len; for (i = 0, len = createDebug.skips.length; i < len; i++) { if (createDebug.skips[i].test(name)) { @@ -38602,12 +38705,12 @@ function setup(env) { } /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ + * Coerce `val`. + * + * @param {Mixed} val + * @return {Mixed} + * @api private + */ function coerce(val) { if (val instanceof Error) { return val.stack || val.message; @@ -38624,8 +38727,6 @@ module.exports = setup; },{"ms":191}],194:[function(require,module,exports){ (function (process){ -'use strict'; - function detect() { if (typeof navigator !== 'undefined') { return parseUserAgent(navigator.userAgent); @@ -38658,9 +38759,9 @@ function parseUserAgent(userAgentString) { return null; } - var detected = browsers.map(function (browser) { + var detected = browsers.map(function(browser) { var match = browser.rule.exec(userAgentString); - var version = match && match[1].split(/[._]/).slice(0, 3); + var version = match && match[1].split(/[._]/).slice(0,3); if (version && version.length < 3) { version = version.concat(version.length == 1 ? [0, 0] : [0]); @@ -38685,15 +38786,65 @@ function parseUserAgent(userAgentString) { } function getBrowserRules() { - return buildRules([['aol', /AOLShield\/([0-9\._]+)/], ['edge', /Edge\/([0-9\._]+)/], ['yandexbrowser', /YaBrowser\/([0-9\._]+)/], ['vivaldi', /Vivaldi\/([0-9\.]+)/], ['kakaotalk', /KAKAOTALK\s([0-9\.]+)/], ['samsung', /SamsungBrowser\/([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/], ['facebook', /FBAV\/([0-9\.]+)/], ['instagram', /Instagram\s([0-9\.]+)/], ['ios-webview', /AppleWebKit\/([0-9\.]+).*Mobile/]]); + return buildRules([ + [ 'aol', /AOLShield\/([0-9\._]+)/ ], + [ 'edge', /Edge\/([0-9\._]+)/ ], + [ 'yandexbrowser', /YaBrowser\/([0-9\._]+)/ ], + [ 'vivaldi', /Vivaldi\/([0-9\.]+)/ ], + [ 'kakaotalk', /KAKAOTALK\s([0-9\.]+)/ ], + [ 'samsung', /SamsungBrowser\/([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/ ], + [ 'facebook', /FBAV\/([0-9\.]+)/], + [ 'instagram', /Instagram\s([0-9\.]+)/], + [ 'ios-webview', /AppleWebKit\/([0-9\.]+).*Mobile/] + ]); } function getOperatingSystemRules() { - return buildRules([['iOS', /iP(hone|od|ad)/], ['Android OS', /Android/], ['BlackBerry OS', /BlackBerry|BB10/], ['Windows Mobile', /IEMobile/], ['Amazon OS', /Kindle/], ['Windows 3.11', /Win16/], ['Windows 95', /(Windows 95)|(Win95)|(Windows_95)/], ['Windows 98', /(Windows 98)|(Win98)/], ['Windows 2000', /(Windows NT 5.0)|(Windows 2000)/], ['Windows XP', /(Windows NT 5.1)|(Windows XP)/], ['Windows Server 2003', /(Windows NT 5.2)/], ['Windows Vista', /(Windows NT 6.0)/], ['Windows 7', /(Windows NT 6.1)/], ['Windows 8', /(Windows NT 6.2)/], ['Windows 8.1', /(Windows NT 6.3)/], ['Windows 10', /(Windows NT 10.0)/], ['Windows ME', /Windows ME/], ['Open BSD', /OpenBSD/], ['Sun OS', /SunOS/], ['Linux', /(Linux)|(X11)/], ['Mac OS', /(Mac_PowerPC)|(Macintosh)/], ['QNX', /QNX/], ['BeOS', /BeOS/], ['OS/2', /OS\/2/], ['Search Bot', /(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/]]); + return buildRules([ + [ 'iOS', /iP(hone|od|ad)/ ], + [ 'Android OS', /Android/ ], + [ 'BlackBerry OS', /BlackBerry|BB10/ ], + [ 'Windows Mobile', /IEMobile/ ], + [ 'Amazon OS', /Kindle/ ], + [ 'Windows 3.11', /Win16/ ], + [ 'Windows 95', /(Windows 95)|(Win95)|(Windows_95)/ ], + [ 'Windows 98', /(Windows 98)|(Win98)/ ], + [ 'Windows 2000', /(Windows NT 5.0)|(Windows 2000)/ ], + [ 'Windows XP', /(Windows NT 5.1)|(Windows XP)/ ], + [ 'Windows Server 2003', /(Windows NT 5.2)/ ], + [ 'Windows Vista', /(Windows NT 6.0)/ ], + [ 'Windows 7', /(Windows NT 6.1)/ ], + [ 'Windows 8', /(Windows NT 6.2)/ ], + [ 'Windows 8.1', /(Windows NT 6.3)/ ], + [ 'Windows 10', /(Windows NT 10.0)/ ], + [ 'Windows ME', /Windows ME/ ], + [ 'Open BSD', /OpenBSD/ ], + [ 'Sun OS', /SunOS/ ], + [ 'Linux', /(Linux)|(X11)/ ], + [ 'Mac OS', /(Mac_PowerPC)|(Macintosh)/ ], + [ 'QNX', /QNX/ ], + [ 'BeOS', /BeOS/ ], + [ 'OS/2', /OS\/2/ ], + [ 'Search Bot', /(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/ ] + ]); } function buildRules(ruleTuples) { - return ruleTuples.map(function (tuple) { + return ruleTuples.map(function(tuple) { return { name: tuple[0], rule: tuple[1] @@ -38709,7 +38860,7 @@ module.exports = { }; }).call(this,require('_process')) -},{"_process":911}],195:[function(require,module,exports){ +},{"_process":925}],195:[function(require,module,exports){ (function (global,Buffer){ /** * Browser eccrypto implementation. @@ -38736,19 +38887,19 @@ function randomBytes(size) { } function sha512(msg) { - return subtle.digest({ name: "SHA-512" }, msg).then(function (hash) { + return subtle.digest({name: "SHA-512"}, msg).then(function(hash) { return new Buffer(new Uint8Array(hash)); }); } function getAes(op) { - return function (iv, key, data) { - var importAlgorithm = { name: "AES-CBC" }; + return function(iv, key, data) { + var importAlgorithm = {name: "AES-CBC"}; var keyp = subtle.importKey("raw", key, importAlgorithm, false, [op]); - return keyp.then(function (cryptoKey) { - var encAlgorithm = { name: "AES-CBC", iv: iv }; + return keyp.then(function(cryptoKey) { + var encAlgorithm = {name: "AES-CBC", iv: iv}; return subtle[op](encAlgorithm, cryptoKey, data); - }).then(function (result) { + }).then(function(result) { return new Buffer(new Uint8Array(result)); }); }; @@ -38758,24 +38909,24 @@ var aesCbcEncrypt = getAes("encrypt"); var aesCbcDecrypt = getAes("decrypt"); function hmacSha256Sign(key, msg) { - var algorithm = { name: "HMAC", hash: { name: "SHA-256" } }; + var algorithm = {name: "HMAC", hash: {name: "SHA-256"}}; var keyp = subtle.importKey("raw", key, algorithm, false, ["sign"]); - return keyp.then(function (cryptoKey) { + return keyp.then(function(cryptoKey) { return subtle.sign(algorithm, cryptoKey, msg); - }).then(function (sig) { + }).then(function(sig) { return new Buffer(new Uint8Array(sig)); }); } function hmacSha256Verify(key, msg, sig) { - var algorithm = { name: "HMAC", hash: { name: "SHA-256" } }; + var algorithm = {name: "HMAC", hash: {name: "SHA-256"}}; var keyp = subtle.importKey("raw", key, algorithm, false, ["verify"]); - return keyp.then(function (cryptoKey) { + return keyp.then(function(cryptoKey) { return subtle.verify(algorithm, cryptoKey, sig, msg); }); } -var getPublic = exports.getPublic = function (privateKey) { +var getPublic = exports.getPublic = function(privateKey) { // This function has sync API so we throw an error immediately. assert(privateKey.length === 32, "Bad private key"); // XXX(Kagami): `elliptic.utils.encode` returns array for every @@ -38788,17 +38939,17 @@ var getPublic = exports.getPublic = function (privateKey) { // ) and we can use only new browsers // because of the WebCryptoAPI (see // ). -exports.sign = function (privateKey, msg) { - return new Promise(function (resolve) { +exports.sign = function(privateKey, msg) { + return new Promise(function(resolve) { assert(privateKey.length === 32, "Bad private key"); assert(msg.length > 0, "Message should not be empty"); assert(msg.length <= 32, "Message is too long"); - resolve(new Buffer(ec.sign(msg, privateKey, { canonical: true }).toDER())); + resolve(new Buffer(ec.sign(msg, privateKey, {canonical: true}).toDER())); }); }; -exports.verify = function (publicKey, msg, sig) { - return new Promise(function (resolve, reject) { +exports.verify = function(publicKey, msg, sig) { + return new Promise(function(resolve, reject) { assert(publicKey.length === 65, "Bad public key"); assert(publicKey[0] === 4, "Bad public key"); assert(msg.length > 0, "Message should not be empty"); @@ -38811,8 +38962,8 @@ exports.verify = function (publicKey, msg, sig) { }); }; -var derive = exports.derive = function (privateKeyA, publicKeyB) { - return new Promise(function (resolve) { +var derive = exports.derive = function(privateKeyA, publicKeyB) { + return new Promise(function(resolve) { assert(Buffer.isBuffer(privateKeyA), "Bad input"); assert(Buffer.isBuffer(publicKeyB), "Bad input"); assert(privateKeyA.length === 32, "Bad private key"); @@ -38820,62 +38971,66 @@ var derive = exports.derive = function (privateKeyA, publicKeyB) { assert(publicKeyB[0] === 4, "Bad public key"); var keyA = ec.keyFromPrivate(privateKeyA); var keyB = ec.keyFromPublic(publicKeyB); - var Px = keyA.derive(keyB.getPublic()); // BN instance + var Px = keyA.derive(keyB.getPublic()); // BN instance resolve(new Buffer(Px.toArray())); }); }; -exports.encrypt = function (publicKeyTo, msg, opts) { +exports.encrypt = function(publicKeyTo, msg, opts) { assert(subtle, "WebCryptoAPI is not available"); opts = opts || {}; // Tmp variables to save context from flat promises; var iv, ephemPublicKey, ciphertext, macKey; - return new Promise(function (resolve) { + return new Promise(function(resolve) { var ephemPrivateKey = opts.ephemPrivateKey || randomBytes(32); ephemPublicKey = getPublic(ephemPrivateKey); resolve(derive(ephemPrivateKey, publicKeyTo)); - }).then(function (Px) { + }).then(function(Px) { return sha512(Px); - }).then(function (hash) { + }).then(function(hash) { iv = opts.iv || randomBytes(16); var encryptionKey = hash.slice(0, 32); macKey = hash.slice(32); return aesCbcEncrypt(iv, encryptionKey, msg); - }).then(function (data) { + }).then(function(data) { ciphertext = data; var dataToMac = Buffer.concat([iv, ephemPublicKey, ciphertext]); return hmacSha256Sign(macKey, dataToMac); - }).then(function (mac) { + }).then(function(mac) { return { iv: iv, ephemPublicKey: ephemPublicKey, ciphertext: ciphertext, - mac: mac + mac: mac, }; }); }; -exports.decrypt = function (privateKey, opts) { +exports.decrypt = function(privateKey, opts) { assert(subtle, "WebCryptoAPI is not available"); // Tmp variable to save context from flat promises; var encryptionKey; - return derive(privateKey, opts.ephemPublicKey).then(function (Px) { + return derive(privateKey, opts.ephemPublicKey).then(function(Px) { return sha512(Px); - }).then(function (hash) { + }).then(function(hash) { encryptionKey = hash.slice(0, 32); var macKey = hash.slice(32); - var dataToMac = Buffer.concat([opts.iv, opts.ephemPublicKey, opts.ciphertext]); + var dataToMac = Buffer.concat([ + opts.iv, + opts.ephemPublicKey, + opts.ciphertext + ]); return hmacSha256Verify(macKey, dataToMac, opts.mac); - }).then(function (macGood) { + }).then(function(macGood) { assert(macGood, "Bad MAC"); return aesCbcDecrypt(opts.iv, encryptionKey, opts.ciphertext); - }).then(function (msg) { + }).then(function(msg) { return new Buffer(new Uint8Array(msg)); }); }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer) -},{"buffer":401,"elliptic":196}],196:[function(require,module,exports){ +},{"buffer":415,"elliptic":196}],196:[function(require,module,exports){ 'use strict'; var elliptic = exports; @@ -38946,16 +39101,16 @@ BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) { var doubles = p._getDoubles(); var naf = getNAF(k, 1); - var I = (1 << doubles.step + 1) - (doubles.step % 2 === 0 ? 2 : 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--) { + for (var k = j + doubles.step - 1; k >= j; k--) nafW = (nafW << 1) + naf[k]; - }repr.push(nafW); + repr.push(nafW); } var a = this.jpoint(null, null, null); @@ -38963,7 +39118,10 @@ BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) { 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()); + if (nafW === i) + b = b.mixedAdd(doubles.points[j]); + else if (nafW === -i) + b = b.mixedAdd(doubles.points[j].neg()); } a = a.add(b); } @@ -38985,26 +39143,38 @@ BaseCurve.prototype._wnafMul = function _wnafMul(p, k) { 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--) { + for (var k = 0; i >= 0 && naf[i] === 0; i--) + k++; + if (i >= 0) k++; - }if (i >= 0) k++; acc = acc.dblp(k); - if (i < 0) break; + 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()); + 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()); + 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) { +BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, + points, + coeffs, + len, + jacobianResult) { var wndWidth = this._wnafT1; var wnd = this._wnafT2; var naf = this._wnafT3; @@ -39030,10 +39200,11 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, points, coeffs, len continue; } - var comb = [points[a], /* 1 */ - null, /* 3 */ - null, /* 5 */ - points[b] /* 7 */ + var comb = [ + points[a], /* 1 */ + null, /* 3 */ + null, /* 5 */ + points[b] /* 7 */ ]; // Try to avoid Projective points, if possible @@ -39048,15 +39219,16 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, points, coeffs, len 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 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]); @@ -39082,28 +39254,44 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, points, coeffs, len var zero = true; for (var j = 0; j < len; j++) { tmp[j] = naf[j][i] | 0; - if (tmp[j] !== 0) zero = false; + if (tmp[j] !== 0) + zero = false; } - if (!zero) break; + if (!zero) + break; k++; i--; } - if (i >= 0) k++; + if (i >= 0) + k++; acc = acc.dblp(k); - if (i < 0) break; + 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 (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); + if (p.type === 'affine') + acc = acc.mixedAdd(p); + else + acc = acc.add(p); } } // Zeroify references - for (var i = 0; i < len; i++) { + for (var i = 0; i < len; i++) wnd[i] = null; - }if (jacobianResult) return acc;else return acc.toP(); + + if (jacobianResult) + return acc; + else + return acc.toP(); }; function BasePoint(curve, type) { @@ -39113,7 +39301,7 @@ function BasePoint(curve, type) { } BaseCurve.BasePoint = BasePoint; -BasePoint.prototype.eq = function eq() /*other*/{ +BasePoint.prototype.eq = function eq(/*other*/) { throw new Error('Not implemented'); }; @@ -39127,13 +39315,19 @@ BaseCurve.prototype.decodePoint = function decodePoint(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); + 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)); + 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) { + } 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'); @@ -39147,9 +39341,10 @@ 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); + if (compact) + return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x); - return [0x04].concat(x, this.getY().toArray('be', len)); + return [ 0x04 ].concat(x, this.getY().toArray('be', len)) ; }; BasePoint.prototype.encode = function encode(enc, compact) { @@ -39157,7 +39352,8 @@ BasePoint.prototype.encode = function encode(enc, compact) { }; BasePoint.prototype.precompute = function precompute(power) { - if (this.precomputed) return this; + if (this.precomputed) + return this; var precomputed = { doubles: null, @@ -39173,23 +39369,26 @@ BasePoint.prototype.precompute = function precompute(power) { }; BasePoint.prototype._hasDoubles = function _hasDoubles(k) { - if (!this.precomputed) return false; + if (!this.precomputed) + return false; var doubles = this.precomputed.doubles; - if (!doubles) return false; + 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; + if (this.precomputed && this.precomputed.doubles) + return this.precomputed.doubles; - var doubles = [this]; + var doubles = [ this ]; var acc = this; for (var i = 0; i < power; i += step) { - for (var j = 0; j < step; j++) { + for (var j = 0; j < step; j++) acc = acc.dbl(); - }doubles.push(acc); + doubles.push(acc); } return { step: step, @@ -39198,14 +39397,15 @@ BasePoint.prototype._getDoubles = function _getDoubles(step, power) { }; BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) { - if (this.precomputed && this.precomputed.naf) return this.precomputed.naf; + if (this.precomputed && this.precomputed.naf) + return this.precomputed.naf; - var res = [this]; + var res = [ this ]; var max = (1 << wnd) - 1; var dbl = max === 1 ? null : this.dbl(); - for (var i = 1; i < max; i++) { + for (var i = 1; i < max; i++) res[i] = res[i - 1].add(dbl); - }return { + return { wnd: wnd, points: res }; @@ -39217,9 +39417,9 @@ BasePoint.prototype._getBeta = function _getBeta() { BasePoint.prototype.dblp = function dblp(k) { var r = this; - for (var i = 0; i < k; i++) { + for (var i = 0; i < k; i++) r = r.dbl(); - }return r; + return r; }; },{"../../elliptic":196,"bn.js":182}],198:[function(require,module,exports){ @@ -39255,11 +39455,17 @@ inherits(EdwardsCurve, Base); module.exports = EdwardsCurve; EdwardsCurve.prototype._mulA = function _mulA(num) { - if (this.mOneA) return num.redNeg();else return this.a.redMul(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); + if (this.oneC) + return num; + else + return this.c.redMul(num); }; // Just for compatibility with Short curve @@ -39269,7 +39475,8 @@ EdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) { EdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) { x = new BN(x, 16); - if (!x.red) x = x.toRed(this.red); + if (!x.red) + x = x.toRed(this.red); var x2 = x.redSqr(); var rhs = this.c2.redSub(this.a.redMul(x2)); @@ -39277,17 +39484,20 @@ EdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) { var y2 = rhs.redMul(lhs.redInvm()); var y = y2.redSqrt(); - if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) throw new Error('invalid point'); + 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(); + 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); + if (!y.red) + y = y.toRed(this.red); // x^2 = (y^2 - c^2) / (c^2 d y^2 - a) var y2 = y.redSqr(); @@ -39296,19 +39506,25 @@ EdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) { 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); + 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.redSqr().redSub(x2).cmp(this.zero) !== 0) + throw new Error('invalid point'); - if (x.fromRed().isOdd() !== odd) x = x.redNeg(); + if (x.fromRed().isOdd() !== odd) + x = x.redNeg(); return this.point(x, y); }; EdwardsCurve.prototype.validate = function validate(point) { - if (point.isInfinity()) return true; + if (point.isInfinity()) + return true; // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2) point.normalize(); @@ -39334,16 +39550,21 @@ function Point(curve, x, y, z, t) { 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); + 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()); + if (!this.zOne) + this.t = this.t.redMul(this.z.redInvm()); } } } @@ -39362,13 +39583,18 @@ Point.fromJSON = function fromJSON(curve, obj) { }; Point.prototype.inspect = function inspect() { - if (this.isInfinity()) return ''; - return ''; + if (this.isInfinity()) + return ''; + return ''; }; 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 || this.zOne && this.y.cmp(this.curve.c) === 0); + return this.x.cmpn(0) === 0 && + (this.y.cmp(this.z) === 0 || + (this.zOne && this.y.cmp(this.curve.c) === 0)); }; Point.prototype._extDbl = function _extDbl() { @@ -39463,10 +39689,14 @@ Point.prototype._projDbl = function _projDbl() { }; Point.prototype.dbl = function dbl() { - if (this.isInfinity()) return this; + if (this.isInfinity()) + return this; // Double in extended coordinates - if (this.curve.extended) return this._extDbl();else return this._projDbl(); + if (this.curve.extended) + return this._extDbl(); + else + return this._projDbl(); }; Point.prototype._extAdd = function _extAdd(p) { @@ -39541,39 +39771,52 @@ Point.prototype._projAdd = function _projAdd(p) { }; Point.prototype.add = function add(p) { - if (this.isInfinity()) return p; - if (p.isInfinity()) return this; + if (this.isInfinity()) + return p; + if (p.isInfinity()) + return this; - if (this.curve.extended) return this._extAdd(p);else return this._projAdd(p); + 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); + 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); + 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); + return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, true); }; Point.prototype.normalize = function normalize() { - if (this.zOne) return this; + 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); + 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()); + return this.curve.point(this.x.redNeg(), + this.y, + this.z, + this.t && this.t.redNeg()); }; Point.prototype.getX = function getX() { @@ -39587,21 +39830,26 @@ Point.prototype.getY = function getY() { }; Point.prototype.eq = function eq(other) { - return this === other || this.getX().cmp(other.getX()) === 0 && this.getY().cmp(other.getY()) === 0; + 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; + 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; + if (xc.cmp(this.curve.p) >= 0) + return false; rx.redIAdd(t); - if (this.x.cmp(rx) === 0) return true; + if (this.x.cmp(rx) === 0) + return true; } }; @@ -39659,8 +39907,10 @@ function Point(curve, x, z) { } 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); + 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); @@ -39690,8 +39940,10 @@ Point.fromJSON = function fromJSON(curve, obj) { }; Point.prototype.inspect = function inspect() { - if (this.isInfinity()) return ''; - return ''; + if (this.isInfinity()) + return ''; + return ''; }; Point.prototype.isInfinity = function isInfinity() { @@ -39753,9 +40005,10 @@ Point.prototype.mul = function mul(k) { var b = this.curve.point(null, null); // (N / 2) * Q var c = this; // Q - for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1)) { + for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1)) bits.push(t.andln(1)); - }for (var i = bits.length - 1; i >= 0; i--) { + + 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); @@ -39827,7 +40080,8 @@ 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; + 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; @@ -39856,7 +40110,7 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) { // Get basis vectors, used for balanced length-two representation var basis; if (conf.basis) { - basis = conf.basis.map(function (vec) { + basis = conf.basis.map(function(vec) { return { a: new BN(vec.a, 16), b: new BN(vec.b, 16) @@ -39885,7 +40139,7 @@ ShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) { var l1 = ntinv.redAdd(s).fromRed(); var l2 = ntinv.redSub(s).fromRed(); - return [l1, l2]; + return [ l1, l2 ]; }; ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) { @@ -39958,7 +40212,10 @@ ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) { b2 = b2.neg(); } - return [{ a: a1, b: b1 }, { a: a2, b: b2 }]; + return [ + { a: a1, b: b1 }, + { a: a2, b: b2 } + ]; }; ShortCurve.prototype._endoSplit = function _endoSplit(k) { @@ -39982,22 +40239,26 @@ ShortCurve.prototype._endoSplit = function _endoSplit(k) { ShortCurve.prototype.pointFromX = function pointFromX(x, odd) { x = new BN(x, 16); - if (!x.red) x = x.toRed(this.red); + 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'); + 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(); + if (odd && !isOdd || !odd && isOdd) + y = y.redNeg(); return this.point(x, y); }; ShortCurve.prototype.validate = function validate(point) { - if (point.inf) return true; + if (point.inf) + return true; var x = point.x; var y = point.y; @@ -40007,7 +40268,8 @@ ShortCurve.prototype.validate = function validate(point) { return y.redSqr().redISub(rhs).cmpn(0) === 0; }; -ShortCurve.prototype._endoWnafMulAdd = function _endoWnafMulAdd(points, coeffs, jacobianResult) { +ShortCurve.prototype._endoWnafMulAdd = + function _endoWnafMulAdd(points, coeffs, jacobianResult) { var npoints = this._endoWnafT1; var ncoeffs = this._endoWnafT2; for (var i = 0; i < points.length; i++) { @@ -40053,8 +40315,10 @@ function Point(curve, x, y, 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); + 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; } } @@ -40069,15 +40333,17 @@ ShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) { }; Point.prototype._getBeta = function _getBeta() { - if (!this.curve.endo) return; + if (!this.curve.endo) + return; var pre = this.precomputed; - if (pre && pre.beta) return pre.beta; + 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) { + var endoMul = function(p) { return curve.point(p.x.redMul(curve.endo.beta), p.y); }; pre.beta = beta; @@ -40097,9 +40363,10 @@ Point.prototype._getBeta = function _getBeta() { }; Point.prototype.toJSON = function toJSON() { - if (!this.precomputed) return [this.x, this.y]; + if (!this.precomputed) + return [ this.x, this.y ]; - return [this.x, this.y, this.precomputed && { + return [ this.x, this.y, this.precomputed && { doubles: this.precomputed.doubles && { step: this.precomputed.doubles.step, points: this.precomputed.doubles.points.slice(1) @@ -40108,13 +40375,15 @@ Point.prototype.toJSON = function toJSON() { 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); + if (typeof obj === 'string') + obj = JSON.parse(obj); var res = curve.point(obj[0], obj[1], red); - if (!obj[2]) return res; + if (!obj[2]) + return res; function obj2point(obj) { return curve.point(obj[0], obj[1], red); @@ -40125,19 +40394,21 @@ Point.fromJSON = function fromJSON(curve, obj, red) { beta: null, doubles: pre.doubles && { step: pre.doubles.step, - points: [res].concat(pre.doubles.points.map(obj2point)) + points: [ res ].concat(pre.doubles.points.map(obj2point)) }, naf: pre.naf && { wnd: pre.naf.wnd, - points: [res].concat(pre.naf.points.map(obj2point)) + points: [ res ].concat(pre.naf.points.map(obj2point)) } }; return res; }; Point.prototype.inspect = function inspect() { - if (this.isInfinity()) return ''; - return ''; + if (this.isInfinity()) + return ''; + return ''; }; Point.prototype.isInfinity = function isInfinity() { @@ -40146,33 +40417,41 @@ Point.prototype.isInfinity = function isInfinity() { Point.prototype.add = function add(p) { // O + P = P - if (this.inf) return p; + if (this.inf) + return p; // P + O = P - if (p.inf) return this; + if (p.inf) + return this; // P + P = 2P - if (this.eq(p)) return this.dbl(); + if (this.eq(p)) + return this.dbl(); // P + (-P) = O - if (this.neg().eq(p)) return this.curve.point(null, null); + 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); + 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()); + 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; + 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); + if (ys1.cmpn(0) === 0) + return this.curve.point(null, null); var a = this.curve.a; @@ -40196,32 +40475,46 @@ Point.prototype.getY = function getY() { 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); + 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); + 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); + 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); + 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; + 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) { + var negate = function(p) { return p.neg(); }; res.precomputed = { @@ -40239,7 +40532,8 @@ Point.prototype.neg = function neg(_precompute) { }; Point.prototype.toJ = function toJ() { - if (this.inf) return this.curve.jpoint(null, null, null); + if (this.inf) + return this.curve.jpoint(null, null, null); var res = this.curve.jpoint(this.x, this.y, this.curve.one); return res; @@ -40256,9 +40550,12 @@ function JPoint(curve, x, y, z) { 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); + 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; } @@ -40269,7 +40566,8 @@ ShortCurve.prototype.jpoint = function jpoint(x, y, z) { }; JPoint.prototype.toP = function toP() { - if (this.isInfinity()) return this.curve.point(null, null); + if (this.isInfinity()) + return this.curve.point(null, null); var zinv = this.z.redInvm(); var zinv2 = zinv.redSqr(); @@ -40285,10 +40583,12 @@ JPoint.prototype.neg = function neg() { JPoint.prototype.add = function add(p) { // O + P = P - if (this.isInfinity()) return p; + if (this.isInfinity()) + return p; // P + O = P - if (p.isInfinity()) return this; + if (p.isInfinity()) + return this; // 12M + 4S + 7A var pz2 = p.z.redSqr(); @@ -40301,7 +40601,10 @@ JPoint.prototype.add = function add(p) { 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(); + if (r.cmpn(0) !== 0) + return this.curve.jpoint(null, null, null); + else + return this.dbl(); } var h2 = h.redSqr(); @@ -40317,10 +40620,12 @@ JPoint.prototype.add = function add(p) { JPoint.prototype.mixedAdd = function mixedAdd(p) { // O + P = P - if (this.isInfinity()) return p.toJ(); + if (this.isInfinity()) + return p.toJ(); // P + O = P - if (p.isInfinity()) return this; + if (p.isInfinity()) + return this; // 8M + 3S + 7A var z2 = this.z.redSqr(); @@ -40332,7 +40637,10 @@ JPoint.prototype.mixedAdd = function mixedAdd(p) { 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(); + if (r.cmpn(0) !== 0) + return this.curve.jpoint(null, null, null); + else + return this.dbl(); } var h2 = h.redSqr(); @@ -40347,15 +40655,18 @@ JPoint.prototype.mixedAdd = function mixedAdd(p) { }; JPoint.prototype.dblp = function dblp(pow) { - if (pow === 0) return this; - if (this.isInfinity()) return this; - if (!pow) return this.dbl(); + 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++) { + for (var i = 0; i < pow; i++) r = r.dbl(); - }return r; + return r; } // 1M + 2S + 1A + N * (4S + 5M + 8A) @@ -40382,7 +40693,8 @@ JPoint.prototype.dblp = function dblp(pow) { var dny = c.redMul(t2); dny = dny.redIAdd(dny).redISub(jyd4); var nz = jyd.redMul(jz); - if (i + 1 < pow) jz4 = jz4.redMul(jyd4); + if (i + 1 < pow) + jz4 = jz4.redMul(jyd4); jx = nx; jz = nz; @@ -40393,9 +40705,15 @@ JPoint.prototype.dblp = function dblp(pow) { }; JPoint.prototype.dbl = function dbl() { - if (this.isInfinity()) return this; + if (this.isInfinity()) + return this; - if (this.curve.zeroA) return this._zeroDbl();else if (this.curve.threeA) return this._threeDbl();else return this._dbl(); + if (this.curve.zeroA) + return this._zeroDbl(); + else if (this.curve.threeA) + return this._threeDbl(); + else + return this._dbl(); }; JPoint.prototype._zeroDbl = function _zeroDbl() { @@ -40563,7 +40881,8 @@ JPoint.prototype._dbl = function _dbl() { }; JPoint.prototype.trpl = function trpl() { - if (!this.curve.zeroA) return this.dbl().add(this); + if (!this.curve.zeroA) + return this.dbl().add(this); // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl // 5M + 10S + ... @@ -40619,14 +40938,17 @@ JPoint.prototype.mul = function mul(k, kbase) { }; JPoint.prototype.eq = function eq(p) { - if (p.type === 'affine') return this.eq(p.toJ()); + if (p.type === 'affine') + return this.eq(p.toJ()); - if (this === p) return true; + 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; + 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); @@ -40637,22 +40959,28 @@ JPoint.prototype.eq = function eq(p) { 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; + 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; + if (xc.cmp(this.curve.p) >= 0) + return false; rx.redIAdd(t); - if (this.x.cmp(rx) === 0) return true; + if (this.x.cmp(rx) === 0) + return true; } }; JPoint.prototype.inspect = function inspect() { - if (this.isInfinity()) return ''; - return ''; + if (this.isInfinity()) + return ''; + return ''; }; JPoint.prototype.isInfinity = function isInfinity() { @@ -40671,7 +40999,12 @@ 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); + 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; @@ -40685,7 +41018,7 @@ function defineCurve(name, options) { Object.defineProperty(curves, name, { configurable: true, enumerable: true, - get: function get() { + get: function() { var curve = new PresetCurve(options); Object.defineProperty(curves, name, { configurable: true, @@ -40706,7 +41039,10 @@ defineCurve('p192', { 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'] + g: [ + '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012', + '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811' + ] }); defineCurve('p224', { @@ -40718,7 +41054,10 @@ defineCurve('p224', { 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'] + g: [ + 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21', + 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34' + ] }); defineCurve('p256', { @@ -40730,31 +41069,58 @@ defineCurve('p256', { 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'] + 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', + 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'] + 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', + 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'] + 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', { @@ -40766,7 +41132,9 @@ defineCurve('curve25519', { n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed', hash: hash.sha256, gRed: false, - g: ['9'] + g: [ + '9' + ] }); defineCurve('ed25519', { @@ -40780,10 +41148,12 @@ defineCurve('ed25519', { n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed', hash: hash.sha256, gRed: false, - g: ['216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a', + g: [ + '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a', - // 4/5 - '6666666666666666666666666666666666666666666666666666666666666658'] + // 4/5 + '6666666666666666666666666666666666666666666666666666666666666658' + ] }); var pre; @@ -40806,23 +41176,28 @@ defineCurve('secp256k1', { // Precomputed endomorphism beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee', lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72', - basis: [{ - a: '3086d221a7d46bcde86c90e49284eb15', - b: '-e4437ed6010e88286f547fa90abfe4c3' - }, { - a: '114ca50f7a8e2f3f657c1108d9d44cfd8', - b: '3086d221a7d46bcde86c90e49284eb15' - }], + basis: [ + { + a: '3086d221a7d46bcde86c90e49284eb15', + b: '-e4437ed6010e88286f547fa90abfe4c3' + }, + { + a: '114ca50f7a8e2f3f657c1108d9d44cfd8', + b: '3086d221a7d46bcde86c90e49284eb15' + } + ], gRed: false, - g: ['79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8', pre] + g: [ + '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', + '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8', + pre + ] }); },{"../elliptic":196,"./precomputed/secp256k1":209,"hash.js":233}],203:[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'); @@ -40833,7 +41208,8 @@ var KeyPair = require('./key'); var Signature = require('./signature'); function EC(options) { - if (!(this instanceof EC)) return new EC(options); + if (!(this instanceof EC)) + return new EC(options); // Shortcut `elliptic.ec(curve-name)` if (typeof options === 'string') { @@ -40843,7 +41219,8 @@ function EC(options) { } // Shortcut for `elliptic.ec(elliptic.curves.curveName)` - if (options instanceof elliptic.curves.PresetCurve) options = { curve: options }; + if (options instanceof elliptic.curves.PresetCurve) + options = { curve: options }; this.curve = options.curve.curve; this.n = this.curve.n; @@ -40872,7 +41249,8 @@ EC.prototype.keyFromPublic = function keyFromPublic(pub, enc) { }; EC.prototype.genKeyPair = function genKeyPair(options) { - if (!options) options = {}; + if (!options) + options = {}; // Instantiate Hmac_DRBG var drbg = new HmacDRBG({ @@ -40888,7 +41266,8 @@ EC.prototype.genKeyPair = function genKeyPair(options) { var ns2 = this.n.sub(new BN(2)); do { var priv = new BN(drbg.generate(bytes)); - if (priv.cmp(ns2) > 0) continue; + if (priv.cmp(ns2) > 0) + continue; priv.iaddn(1); return this.keyFromPrivate(priv); @@ -40897,16 +41276,21 @@ EC.prototype.genKeyPair = function genKeyPair(options) { 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; + 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') { + if (typeof enc === 'object') { options = enc; enc = null; } - if (!options) options = {}; + if (!options) + options = {}; key = this.keyFromPrivate(key, enc); msg = this._truncateToN(new BN(msg, 16)); @@ -40931,22 +41315,29 @@ EC.prototype.sign = function sign(msg, key, enc, options) { 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())); + 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; + if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0) + continue; var kp = this.g.mul(k); - if (kp.isInfinity()) continue; + if (kp.isInfinity()) + continue; var kpX = kp.getX(); var r = kpX.umod(this.n); - if (r.cmpn(0) === 0) continue; + 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; + if (s.cmpn(0) === 0) + continue; - var recoveryParam = (kp.getY().isOdd() ? 1 : 0) | (kpX.cmp(r) !== 0 ? 2 : 0); + 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) { @@ -40966,8 +41357,10 @@ EC.prototype.verify = function verify(msg, signature, key, enc) { // 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; + 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); @@ -40976,7 +41369,8 @@ EC.prototype.verify = function verify(msg, signature, key, enc) { if (!this.curve._maxwellTrick) { var p = this.g.mulAdd(u1, key.getPublic(), u2); - if (p.isInfinity()) return false; + if (p.isInfinity()) + return false; return p.getX().umod(this.n).cmp(r) === 0; } @@ -40985,7 +41379,8 @@ EC.prototype.verify = function verify(msg, signature, key, enc) { // https://git.io/vad3K var p = this.g.jmulAdd(u1, key.getPublic(), u2); - if (p.isInfinity()) return false; + 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 @@ -40993,7 +41388,7 @@ EC.prototype.verify = function verify(msg, signature, key, enc) { return p.eqXToP(r); }; -EC.prototype.recoverPubKey = function (msg, signature, j, enc) { +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); @@ -41005,10 +41400,14 @@ EC.prototype.recoverPubKey = function (msg, signature, j, enc) { // 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'); + 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); + 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); @@ -41019,9 +41418,10 @@ EC.prototype.recoverPubKey = function (msg, signature, j, enc) { return this.g.mulAdd(s1, r, s2); }; -EC.prototype.getKeyRecoveryParam = function (e, signature, Q, enc) { +EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) { signature = new Signature(signature, enc); - if (signature.recoveryParam !== null) return signature.recoveryParam; + if (signature.recoveryParam !== null) + return signature.recoveryParam; for (var i = 0; i < 4; i++) { var Qprime; @@ -41031,7 +41431,8 @@ EC.prototype.getKeyRecoveryParam = function (e, signature, Q, enc) { continue; } - if (Qprime.eq(Q)) return i; + if (Qprime.eq(Q)) + return i; } throw new Error('Unable to find valid recovery factor'); }; @@ -41050,13 +41451,16 @@ function KeyPair(ec, options) { 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); + 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; + if (pub instanceof KeyPair) + return pub; return new KeyPair(ec, { pub: pub, @@ -41065,7 +41469,8 @@ KeyPair.fromPublic = function fromPublic(ec, pub, enc) { }; KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) { - if (priv instanceof KeyPair) return priv; + if (priv instanceof KeyPair) + return priv; return new KeyPair(ec, { priv: priv, @@ -41076,9 +41481,12 @@ KeyPair.fromPrivate = function fromPrivate(ec, priv, 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' }; + 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 }; }; @@ -41090,15 +41498,20 @@ KeyPair.prototype.getPublic = function getPublic(compact, enc) { compact = null; } - if (!this.pub) this.pub = this.ec.g.mul(this.priv); + if (!this.pub) + this.pub = this.ec.g.mul(this.priv); - if (!enc) return this.pub; + 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; + if (enc === 'hex') + return this.priv.toString(16, 2); + else + return this.priv; }; KeyPair.prototype._importPrivate = function _importPrivate(key, enc) { @@ -41116,7 +41529,8 @@ KeyPair.prototype._importPublic = function _importPublic(key, enc) { // `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') { + } 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); @@ -41140,7 +41554,8 @@ KeyPair.prototype.verify = function verify(msg, signature) { }; KeyPair.prototype.inspect = function inspect() { - return ''; + return ''; }; },{"../../elliptic":196,"bn.js":182}],205:[function(require,module,exports){ @@ -41153,14 +41568,19 @@ var utils = elliptic.utils; var assert = utils.assert; function Signature(options, enc) { - if (options instanceof Signature) return options; + if (options instanceof Signature) + return options; - if (this._importDER(options, enc)) return; + 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; + if (options.recoveryParam === undefined) + this.recoveryParam = null; + else + this.recoveryParam = options.recoveryParam; } module.exports = Signature; @@ -41202,7 +41622,7 @@ Signature.prototype._importDER = function _importDER(data, enc) { return false; } var len = getLength(data, p); - if (len + p.place !== data.length) { + if ((len + p.place) !== data.length) { return false; } if (data[p.place++] !== 0x02) { @@ -41219,10 +41639,10 @@ Signature.prototype._importDER = function _importDER(data, enc) { return false; } var s = data.slice(p.place, slen + p.place); - if (r[0] === 0 && r[1] & 0x80) { + if (r[0] === 0 && (r[1] & 0x80)) { r = r.slice(1); } - if (s[0] === 0 && s[1] & 0x80) { + if (s[0] === 0 && (s[1] & 0x80)) { s = s.slice(1); } @@ -41241,7 +41661,7 @@ function constructLength(arr, len) { var octets = 1 + (Math.log(len) / Math.LN2 >>> 3); arr.push(octets | 0x80); while (--octets) { - arr.push(len >>> (octets << 3) & 0xff); + arr.push((len >>> (octets << 3)) & 0xff); } arr.push(len); } @@ -41251,9 +41671,11 @@ Signature.prototype.toDER = function toDER(enc) { var s = this.s.toArray(); // Pad values - if (r[0] & 0x80) r = [0].concat(r); + if (r[0] & 0x80) + r = [ 0 ].concat(r); // Pad values - if (s[0] & 0x80) s = [0].concat(s); + if (s[0] & 0x80) + s = [ 0 ].concat(s); r = rmPadding(r); s = rmPadding(s); @@ -41261,13 +41683,13 @@ Signature.prototype.toDER = function toDER(enc) { while (!s[0] && !(s[1] & 0x80)) { s = s.slice(1); } - var arr = [0x02]; + 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]; + var res = [ 0x30 ]; constructLength(res, backHalf.length); res = res.concat(backHalf); return utils.encode(res, enc); @@ -41287,7 +41709,8 @@ var Signature = require('./signature'); function EDDSA(curve) { assert(curve === 'ed25519', 'only tested with ed25519 so far'); - if (!(this instanceof EDDSA)) return new EDDSA(curve); + if (!(this instanceof EDDSA)) + return new EDDSA(curve); var curve = elliptic.curves[curve].curve; this.curve = curve; @@ -41312,7 +41735,8 @@ EDDSA.prototype.sign = function sign(message, 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_ = 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 }); }; @@ -41335,9 +41759,9 @@ EDDSA.prototype.verify = function verify(message, sig, pub) { EDDSA.prototype.hashInt = function hashInt() { var hash = this.hash(); - for (var i = 0; i < arguments.length; i++) { + for (var i = 0; i < arguments.length; i++) hash.update(arguments[i]); - }return utils.intFromLE(hash.digest()).umod(this.curve.n); + return utils.intFromLE(hash.digest()).umod(this.curve.n); }; EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) { @@ -41349,7 +41773,8 @@ EDDSA.prototype.keyFromSecret = function keyFromSecret(secret) { }; EDDSA.prototype.makeSignature = function makeSignature(sig) { - if (sig instanceof Signature) return sig; + if (sig instanceof Signature) + return sig; return new Signature(this, sig); }; @@ -41411,16 +41836,21 @@ var cachedProperty = utils.cachedProperty; 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); + 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; + if (pub instanceof KeyPair) + return pub; return new KeyPair(eddsa, { pub: pub }); }; KeyPair.fromSecret = function fromSecret(eddsa, secret) { - if (secret instanceof KeyPair) return secret; + if (secret instanceof KeyPair) + return secret; return new KeyPair(eddsa, { secret: secret }); }; @@ -41433,7 +41863,8 @@ cachedProperty(KeyPair, 'pubBytes', function pubBytes() { }); cachedProperty(KeyPair, 'pub', function pub() { - if (this._pubBytes) return this.eddsa.decodePoint(this._pubBytes); + if (this._pubBytes) + return this.eddsa.decodePoint(this._pubBytes); return this.eddsa.g.mul(this.priv()); }); @@ -41485,8 +41916,6 @@ module.exports = KeyPair; },{"../../elliptic":196}],208:[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; @@ -41505,7 +41934,8 @@ var parseBytes = utils.parseBytes; function Signature(eddsa, sig) { this.eddsa = eddsa; - if ((typeof sig === 'undefined' ? 'undefined' : _typeof(sig)) !== 'object') sig = parseBytes(sig); + if (typeof sig !== 'object') + sig = parseBytes(sig); if (Array.isArray(sig)) { sig = { @@ -41516,8 +41946,10 @@ function Signature(eddsa, sig) { 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; + 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; @@ -41550,16 +41982,784 @@ Signature.prototype.toHex = function toHex() { module.exports = Signature; },{"../../elliptic":196,"bn.js":182}],209:[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']] + 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']] + 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' + ] + ] } }; @@ -41580,13 +42780,16 @@ utils.encode = minUtils.encode; // Represent num in a w-NAF form function getNAF(num, w) { var naf = []; - var ws = 1 << w + 1; + 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; + if (mod > (ws >> 1) - 1) + z = (ws >> 1) - mod; + else + z = mod; k.isubn(z); } else { z = 0; @@ -41594,10 +42797,10 @@ function getNAF(num, w) { 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++) { + 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); + k.iushrn(shift); } return naf; @@ -41606,7 +42809,10 @@ utils.getNAF = getNAF; // Represent k1, k2 in a Joint Sparse Form function getJSF(k1, k2) { - var jsf = [[], []]; + var jsf = [ + [], + [] + ]; k1 = k1.clone(); k2 = k2.clone(); @@ -41615,16 +42821,21 @@ function getJSF(k1, k2) { 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 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; + var m8 = (k1.andln(7) + d1) & 7; + if ((m8 === 3 || m8 === 5) && m24 === 2) + u1 = -m14; + else + u1 = m14; } jsf[0].push(u1); @@ -41632,14 +42843,19 @@ function getJSF(k1, k2) { 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; + 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; + if (2 * d1 === u1 + 1) + d1 = 1 - d1; + if (2 * d2 === u2 + 1) + d2 = 1 - d2; k1.iushrn(1); k2.iushrn(1); } @@ -41651,13 +42867,15 @@ 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); + 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; + return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') : + bytes; } utils.parseBytes = parseBytes; @@ -41666,6 +42884,7 @@ function intFromLE(bytes) { } utils.intFromLE = intFromLE; + },{"bn.js":182,"minimalistic-assert":258,"minimalistic-crypto-utils":259}],211:[function(require,module,exports){ module.exports={ "_args": [ @@ -41762,7 +42981,6 @@ module.exports={ } },{}],212:[function(require,module,exports){ -'use strict'; module.exports = require('./socket'); @@ -41776,10 +42994,6 @@ module.exports.parser = require('engine.io-parser'); },{"./socket":213,"engine.io-parser":223}],213:[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; }; - /** * Module dependencies. */ @@ -41806,12 +43020,12 @@ module.exports = Socket; * @api public */ -function Socket(uri, opts) { +function Socket (uri, opts) { if (!(this instanceof Socket)) return new Socket(uri, opts); opts = opts || {}; - if (uri && 'object' === (typeof uri === 'undefined' ? 'undefined' : _typeof(uri))) { + if (uri && 'object' === typeof uri) { opts = uri; uri = null; } @@ -41826,7 +43040,8 @@ function Socket(uri, opts) { opts.hostname = parseuri(opts.host).host; } - this.secure = null != opts.secure ? opts.secure : global.location && 'https:' === location.protocol; + this.secure = null != opts.secure ? opts.secure + : (global.location && 'https:' === location.protocol); if (opts.hostname && !opts.port) { // if no port is specified manually, use the protocol default @@ -41834,8 +43049,11 @@ function Socket(uri, opts) { } this.agent = opts.agent || false; - this.hostname = opts.hostname || (global.location ? location.hostname : 'localhost'); - this.port = opts.port || (global.location && location.port ? location.port : this.secure ? 443 : 80); + this.hostname = opts.hostname || + (global.location ? location.hostname : 'localhost'); + this.port = opts.port || (global.location && location.port + ? location.port + : (this.secure ? 443 : 80)); this.query = opts.query || {}; if ('string' === typeof this.query) this.query = parseqs.decode(this.query); this.upgrade = false !== opts.upgrade; @@ -41855,7 +43073,7 @@ function Socket(uri, opts) { this.rememberUpgrade = opts.rememberUpgrade || false; this.binaryType = null; this.onlyBinaryUpgrades = opts.onlyBinaryUpgrades; - this.perMessageDeflate = false !== opts.perMessageDeflate ? opts.perMessageDeflate || {} : false; + this.perMessageDeflate = false !== opts.perMessageDeflate ? (opts.perMessageDeflate || {}) : false; if (true === this.perMessageDeflate) this.perMessageDeflate = {}; if (this.perMessageDeflate && null == this.perMessageDeflate.threshold) { @@ -41873,7 +43091,7 @@ function Socket(uri, opts) { this.forceNode = !!opts.forceNode; // other options for Node.js client - var freeGlobal = (typeof global === 'undefined' ? 'undefined' : _typeof(global)) === 'object' && global; + var freeGlobal = typeof global === 'object' && global; if (freeGlobal.global === freeGlobal) { if (opts.extraHeaders && Object.keys(opts.extraHeaders).length > 0) { this.extraHeaders = opts.extraHeaders; @@ -41974,13 +43192,13 @@ Socket.prototype.createTransport = function (name) { forceNode: options.forceNode || this.forceNode, localAddress: options.localAddress || this.localAddress, requestTimeout: options.requestTimeout || this.requestTimeout, - protocols: options.protocols || void 0 + protocols: options.protocols || void (0) }); return transport; }; -function clone(obj) { +function clone (obj) { var o = {}; for (var i in obj) { if (obj.hasOwnProperty(i)) { @@ -42043,13 +43261,17 @@ Socket.prototype.setTransport = function (transport) { this.transport = transport; // set up transport listeners - transport.on('drain', function () { + transport + .on('drain', function () { self.onDrain(); - }).on('packet', function (packet) { + }) + .on('packet', function (packet) { self.onPacket(packet); - }).on('error', function (e) { + }) + .on('error', function (e) { self.onError(e); - }).on('close', function () { + }) + .on('close', function () { self.onClose('transport close'); }); }; @@ -42069,7 +43291,7 @@ Socket.prototype.probe = function (name) { Socket.priorWebsocketSuccess = false; - function onTransportOpen() { + function onTransportOpen () { if (self.onlyBinaryUpgrades) { var upgradeLosesBinary = !this.supportsBinary && self.transport.supportsBinary; failed = failed || upgradeLosesBinary; @@ -42111,7 +43333,7 @@ Socket.prototype.probe = function (name) { }); } - function freezeTransport() { + function freezeTransport () { if (failed) return; // Any callback called by transport should be ignored since now @@ -42124,7 +43346,7 @@ Socket.prototype.probe = function (name) { } // Handle any error that happens while probing - function onerror(err) { + function onerror (err) { var error = new Error('probe error: ' + err); error.transport = transport.name; @@ -42135,17 +43357,17 @@ Socket.prototype.probe = function (name) { self.emit('upgradeError', error); } - function onTransportClose() { + function onTransportClose () { onerror('transport closed'); } // When the socket is closed while we're probing - function onclose() { + function onclose () { onerror('socket closed'); } // When the socket is upgraded while we're probing - function onupgrade(to) { + function onupgrade (to) { if (transport && to.name !== transport.name) { debug('"%s" works - aborting "%s"', to.name, transport.name); freezeTransport(); @@ -42153,7 +43375,7 @@ Socket.prototype.probe = function (name) { } // Remove all listeners on the transport and on self - function cleanup() { + function cleanup () { transport.removeListener('open', onTransportOpen); transport.removeListener('error', onerror); transport.removeListener('close', onTransportClose); @@ -42201,7 +43423,8 @@ Socket.prototype.onOpen = function () { */ Socket.prototype.onPacket = function (packet) { - if ('opening' === this.readyState || 'open' === this.readyState || 'closing' === this.readyState) { + if ('opening' === this.readyState || 'open' === this.readyState || + 'closing' === this.readyState) { debug('socket receive: type "%s", data "%s"', packet.type, packet.data); this.emit('packet', packet); @@ -42271,7 +43494,7 @@ Socket.prototype.onHeartbeat = function (timeout) { self.pingTimeoutTimer = setTimeout(function () { if ('closed' === self.readyState) return; self.onClose('ping timeout'); - }, timeout || self.pingInterval + self.pingTimeout); + }, timeout || (self.pingInterval + self.pingTimeout)); }; /** @@ -42332,7 +43555,8 @@ Socket.prototype.onDrain = function () { */ Socket.prototype.flush = function () { - if ('closed' !== this.readyState && this.transport.writable && !this.upgrading && this.writeBuffer.length) { + if ('closed' !== this.readyState && this.transport.writable && + !this.upgrading && this.writeBuffer.length) { debug('flushing %d packets in socket', this.writeBuffer.length); this.transport.send(this.writeBuffer); // keep track of current length of writeBuffer @@ -42352,7 +43576,8 @@ Socket.prototype.flush = function () { * @api public */ -Socket.prototype.write = Socket.prototype.send = function (msg, options, fn) { +Socket.prototype.write = +Socket.prototype.send = function (msg, options, fn) { this.sendPacket('message', msg, options, fn); return this; }; @@ -42423,19 +43648,19 @@ Socket.prototype.close = function () { } } - function close() { + function close () { self.onClose('forced close'); debug('socket closing - telling transport to close'); self.transport.close(); } - function cleanupAndClose() { + function cleanupAndClose () { self.removeListener('upgrade', cleanupAndClose); self.removeListener('upgradeError', cleanupAndClose); close(); } - function waitForUpgrade() { + function waitForUpgrade () { // wait for upgrade to finish since we can't send packets while pausing a transport self.once('upgrade', cleanupAndClose); self.once('upgradeError', cleanupAndClose); @@ -42515,8 +43740,6 @@ Socket.prototype.filterUpgrades = function (upgrades) { }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./transport":214,"./transports/index":215,"component-emitter":187,"debug":221,"engine.io-parser":223,"indexof":246,"parseqs":261,"parseuri":262}],214:[function(require,module,exports){ -'use strict'; - /** * Module dependencies. */ @@ -42537,7 +43760,7 @@ module.exports = Transport; * @api private */ -function Transport(opts) { +function Transport (opts) { this.path = opts.path; this.hostname = opts.hostname; this.port = opts.port; @@ -42677,8 +43900,6 @@ Transport.prototype.onClose = function () { },{"component-emitter":187,"engine.io-parser":223}],215:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Module dependencies */ @@ -42702,7 +43923,7 @@ exports.websocket = websocket; * @api private */ -function polling(opts) { +function polling (opts) { var xhr; var xd = false; var xs = false; @@ -42736,7 +43957,6 @@ function polling(opts) { }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./polling-jsonp":216,"./polling-xhr":217,"./websocket":219,"xmlhttprequest-ssl":220}],216:[function(require,module,exports){ (function (global){ -'use strict'; /** * Module requirements. @@ -42768,7 +43988,7 @@ var callbacks; * Noop. */ -function empty() {} +function empty () { } /** * JSONP Polling constructor. @@ -42777,7 +43997,7 @@ function empty() {} * @api public */ -function JSONPPolling(opts) { +function JSONPPolling (opts) { Polling.call(this, opts); this.query = this.query || {}; @@ -42917,12 +44137,12 @@ JSONPPolling.prototype.doWrite = function (data, fn) { this.form.action = this.uri(); - function complete() { + function complete () { initIframe(); fn(); } - function initIframe() { + function initIframe () { if (self.iframe) { try { self.form.removeChild(self.iframe); @@ -42972,8 +44192,6 @@ JSONPPolling.prototype.doWrite = function (data, fn) { }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./polling":218,"component-inherit":188}],217:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Module requirements. */ @@ -42995,7 +44213,7 @@ module.exports.Request = Request; * Empty function */ -function empty() {} +function empty () {} /** * XHR Polling constructor. @@ -43004,7 +44222,7 @@ function empty() {} * @api public */ -function XHR(opts) { +function XHR (opts) { Polling.call(this, opts); this.requestTimeout = opts.requestTimeout; this.extraHeaders = opts.extraHeaders; @@ -43018,7 +44236,8 @@ function XHR(opts) { port = isSSL ? 443 : 80; } - this.xd = opts.hostname !== global.location.hostname || port !== opts.port; + this.xd = opts.hostname !== global.location.hostname || + port !== opts.port; this.xs = opts.secure !== isSSL; } } @@ -43112,7 +44331,7 @@ XHR.prototype.doPoll = function () { * @api public */ -function Request(opts) { +function Request (opts) { this.method = opts.method || 'GET'; this.uri = opts.uri; this.xd = !!opts.xd; @@ -43378,7 +44597,7 @@ if (global.document) { } } -function unloadHandler() { +function unloadHandler () { for (var i in Request.requests) { if (Request.requests.hasOwnProperty(i)) { Request.requests[i].abort(); @@ -43388,8 +44607,6 @@ function unloadHandler() { }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./polling":218,"component-emitter":187,"component-inherit":188,"debug":221,"xmlhttprequest-ssl":220}],218:[function(require,module,exports){ -'use strict'; - /** * Module dependencies. */ @@ -43411,11 +44628,11 @@ module.exports = Polling; * Is XHR2 supported? */ -var hasXHR2 = function () { +var hasXHR2 = (function () { var XMLHttpRequest = require('xmlhttprequest-ssl'); var xhr = new XMLHttpRequest({ xdomain: false }); return null != xhr.responseType; -}(); +})(); /** * Polling interface. @@ -43424,8 +44641,8 @@ var hasXHR2 = function () { * @api private */ -function Polling(opts) { - var forceBase64 = opts && opts.forceBase64; +function Polling (opts) { + var forceBase64 = (opts && opts.forceBase64); if (!hasXHR2 || forceBase64) { this.supportsBinary = false; } @@ -43467,7 +44684,7 @@ Polling.prototype.pause = function (onPause) { this.readyState = 'pausing'; - function pause() { + function pause () { debug('paused'); self.readyState = 'paused'; onPause(); @@ -43520,7 +44737,7 @@ Polling.prototype.poll = function () { Polling.prototype.onData = function (data) { var self = this; debug('polling got data %s', data); - var callback = function callback(packet, index, total) { + var callback = function (packet, index, total) { // if its the first message we consider the transport open if ('opening' === self.readyState) { self.onOpen(); @@ -43562,7 +44779,7 @@ Polling.prototype.onData = function (data) { Polling.prototype.doClose = function () { var self = this; - function close() { + function close () { debug('writing close packet'); self.write([{ type: 'close' }]); } @@ -43589,7 +44806,7 @@ Polling.prototype.doClose = function () { Polling.prototype.write = function (packets) { var self = this; this.writable = false; - var callbackfn = function callbackfn() { + var callbackfn = function () { self.writable = true; self.emit('drain'); }; @@ -43622,7 +44839,8 @@ Polling.prototype.uri = function () { query = parseqs.encode(query); // avoid port if default for schema - if (this.port && ('https' === schema && Number(this.port) !== 443 || 'http' === schema && Number(this.port) !== 80)) { + if (this.port && (('https' === schema && Number(this.port) !== 443) || + ('http' === schema && Number(this.port) !== 80))) { port = ':' + this.port; } @@ -43635,10 +44853,8 @@ Polling.prototype.uri = function () { return schema + '://' + (ipv6 ? '[' + this.hostname + ']' : this.hostname) + port + this.path + query; }; -},{"../transport":214,"component-inherit":188,"debug":221,"engine.io-parser":223,"parseqs":261,"xmlhttprequest-ssl":220,"yeast":312}],219:[function(require,module,exports){ +},{"../transport":214,"component-inherit":188,"debug":221,"engine.io-parser":223,"parseqs":261,"xmlhttprequest-ssl":220,"yeast":326}],219:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Module dependencies. */ @@ -43654,7 +44870,7 @@ var NodeWebSocket; if (typeof window === 'undefined') { try { NodeWebSocket = require('ws'); - } catch (e) {} + } catch (e) { } } /** @@ -43681,8 +44897,8 @@ module.exports = WS; * @api public */ -function WS(opts) { - var forceBase64 = opts && opts.forceBase64; +function WS (opts) { + var forceBase64 = (opts && opts.forceBase64); if (forceBase64) { this.supportsBinary = false; } @@ -43750,7 +44966,7 @@ WS.prototype.doOpen = function () { } try { - this.ws = this.usingBrowserWebSocket ? protocols ? new WebSocket(uri, protocols) : new WebSocket(uri) : new WebSocket(uri, protocols, opts); + this.ws = this.usingBrowserWebSocket ? (protocols ? new WebSocket(uri, protocols) : new WebSocket(uri)) : new WebSocket(uri, protocols, opts); } catch (err) { return this.emit('error', err); } @@ -43843,7 +45059,7 @@ WS.prototype.write = function (packets) { })(packets[i]); } - function done() { + function done () { self.emit('flush'); // fake drain @@ -43889,7 +45105,8 @@ WS.prototype.uri = function () { var port = ''; // avoid port if default for schema - if (this.port && ('wss' === schema && Number(this.port) !== 443 || 'ws' === schema && Number(this.port) !== 80)) { + if (this.port && (('wss' === schema && Number(this.port) !== 443) || + ('ws' === schema && Number(this.port) !== 80))) { port = ':' + this.port; } @@ -43926,10 +45143,8 @@ WS.prototype.check = function () { }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../transport":214,"component-inherit":188,"debug":221,"engine.io-parser":223,"parseqs":261,"ws":369,"yeast":312}],220:[function(require,module,exports){ +},{"../transport":214,"component-inherit":188,"debug":221,"engine.io-parser":223,"parseqs":261,"ws":383,"yeast":326}],220:[function(require,module,exports){ (function (global){ -'use strict'; - // browser shim for xmlhttprequest module var hasCORS = require('has-cors'); @@ -43950,7 +45165,7 @@ module.exports = function (opts) { if ('undefined' !== typeof XMLHttpRequest && (!xdomain || hasCORS)) { return new XMLHttpRequest(); } - } catch (e) {} + } catch (e) { } // Use XDomainRequest for IE8 if enablesXDR is true // because loading bar keeps flashing when using jsonp-polling @@ -43959,22 +45174,18 @@ module.exports = function (opts) { if ('undefined' !== typeof XDomainRequest && !xscheme && enablesXDR) { return new XDomainRequest(); } - } catch (e) {} + } catch (e) { } if (!xdomain) { try { return new global[['Active'].concat('Object').join('X')]('Microsoft.XMLHTTP'); - } catch (e) {} + } catch (e) { } } }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"has-cors":231}],221:[function(require,module,exports){ (function (process){ -'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 is the web browser implementation of `debug()`. * @@ -43987,13 +45198,28 @@ exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; -exports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage(); +exports.storage = 'undefined' != typeof chrome + && 'undefined' != typeof chrome.storage + ? chrome.storage.local + : localstorage(); /** * Colors. */ -exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33']; +exports.colors = [ + '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', + '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', + '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', + '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', + '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', + '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', + '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', + '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', + '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', + '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', + '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33' +]; /** * Currently only WebKit-based Web Inspectors, Firefox >= v31, @@ -44018,21 +45244,21 @@ function useColors() { // is webkit? http://stackoverflow.com/a/16459606/376773 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || - // is firebug? http://stackoverflow.com/a/398120/376773 - typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || - // is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || - // double check webkit in userAgent just in case we are in a worker - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); + return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || + // is firebug? http://stackoverflow.com/a/398120/376773 + (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || + // is firefox >= v31? + // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || + // double check webkit in userAgent just in case we are in a worker + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); } /** * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. */ -exports.formatters.j = function (v) { +exports.formatters.j = function(v) { try { return JSON.stringify(v); } catch (err) { @@ -44040,6 +45266,7 @@ exports.formatters.j = function (v) { } }; + /** * Colorize log arguments if enabled. * @@ -44049,19 +45276,24 @@ exports.formatters.j = function (v) { function formatArgs(args) { var useColors = this.useColors; - args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff); + args[0] = (useColors ? '%c' : '') + + this.namespace + + (useColors ? ' %c' : ' ') + + args[0] + + (useColors ? '%c ' : ' ') + + '+' + exports.humanize(this.diff); if (!useColors) return; var c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); + args.splice(1, 0, c, 'color: inherit') // the final "%c" is somewhat tricky, because there could be other // arguments passed either before or after the %c, so we need to // figure out the correct index to insert the CSS into var index = 0; var lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, function (match) { + args[0].replace(/%[a-zA-Z%]/g, function(match) { if ('%%' === match) return; index++; if ('%c' === match) { @@ -44084,7 +45316,9 @@ function formatArgs(args) { function log() { // this hackery is required for IE8/9, where // the `console.log` function doesn't have 'apply' - return 'object' === (typeof console === 'undefined' ? 'undefined' : _typeof(console)) && console.log && Function.prototype.apply.call(console.log, console, arguments); + return 'object' === typeof console + && console.log + && Function.prototype.apply.call(console.log, console, arguments); } /** @@ -44101,7 +45335,7 @@ function save(namespaces) { } else { exports.storage.debug = namespaces; } - } catch (e) {} + } catch(e) {} } /** @@ -44115,7 +45349,7 @@ function load() { var r; try { r = exports.storage.debug; - } catch (e) {} + } catch(e) {} // If debug isn't set in LS, and we're in Electron, try to load $DEBUG if (!r && typeof process !== 'undefined' && 'env' in process) { @@ -44149,8 +45383,7 @@ function localstorage() { } }).call(this,require('_process')) -},{"./debug":222,"_process":911}],222:[function(require,module,exports){ -'use strict'; +},{"./debug":222,"_process":925}],222:[function(require,module,exports){ /** * This is the common logic for both the Node.js and web browser @@ -44194,11 +45427,10 @@ exports.formatters = {}; */ function selectColor(namespace) { - var hash = 0, - i; + var hash = 0, i; for (i in namespace) { - hash = (hash << 5) - hash + namespace.charCodeAt(i); + hash = ((hash << 5) - hash) + namespace.charCodeAt(i); hash |= 0; // Convert to 32bit integer } @@ -44246,7 +45478,7 @@ function createDebug(namespace) { // apply any `formatters` transformations var index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) { + args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) { // if we encounter an escaped % then don't increase the array index if (match === '%%') return match; index++; @@ -44285,7 +45517,7 @@ function createDebug(namespace) { return debug; } -function destroy() { +function destroy () { var index = exports.instances.indexOf(this); if (index !== -1) { exports.instances.splice(index, 1); @@ -44380,8 +45612,6 @@ function coerce(val) { },{"ms":260}],223:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Module dependencies. */ @@ -44431,13 +45661,13 @@ exports.protocol = 3; */ var packets = exports.packets = { - open: 0 // non-ws - , close: 1 // non-ws - , ping: 2, - pong: 3, - message: 4, - upgrade: 5, - noop: 6 + open: 0 // non-ws + , close: 1 // non-ws + , ping: 2 + , pong: 3 + , message: 4 + , upgrade: 5 + , noop: 6 }; var packetslist = keys(packets); @@ -44481,7 +45711,9 @@ exports.encodePacket = function (packet, supportsBinary, utf8encode, callback) { utf8encode = null; } - var data = packet.data === undefined ? undefined : packet.data.buffer || packet.data; + var data = (packet.data === undefined) + ? undefined + : packet.data.buffer || packet.data; if (global.ArrayBuffer && data instanceof ArrayBuffer) { return encodeArrayBuffer(packet, supportsBinary, callback); @@ -44503,6 +45735,7 @@ exports.encodePacket = function (packet, supportsBinary, utf8encode, callback) { } return callback('' + encoded); + }; function encodeBase64Object(packet, callback) { @@ -44526,7 +45759,7 @@ function encodeArrayBuffer(packet, supportsBinary, callback) { resultBuffer[0] = packets[packet.type]; for (var i = 0; i < contentArray.length; i++) { - resultBuffer[i + 1] = contentArray[i]; + resultBuffer[i+1] = contentArray[i]; } return callback(resultBuffer.buffer); @@ -44538,7 +45771,7 @@ function encodeBlobAsArrayBuffer(packet, supportsBinary, callback) { } var fr = new FileReader(); - fr.onload = function () { + fr.onload = function() { packet.data = fr.result; exports.encodePacket(packet, supportsBinary, true, callback); }; @@ -44568,11 +45801,11 @@ function encodeBlob(packet, supportsBinary, callback) { * @return {String} base64 encoded message */ -exports.encodeBase64Packet = function (packet, callback) { +exports.encodeBase64Packet = function(packet, callback) { var message = 'b' + exports.packets[packet.type]; if (Blob && packet.data instanceof global.Blob) { var fr = new FileReader(); - fr.onload = function () { + fr.onload = function() { var b64 = fr.result.split(',')[1]; callback(message + b64); }; @@ -44656,7 +45889,7 @@ function tryDecode(data) { * @return {Object} with `type` and `data` (if any) */ -exports.decodeBase64Packet = function (msg, binaryType) { +exports.decodeBase64Packet = function(msg, binaryType) { var type = packetslist[msg.charAt(0)]; if (!base64encoder) { return { type: type, data: { base64: true, data: msg.substr(1) } }; @@ -44712,12 +45945,12 @@ exports.encodePayload = function (packets, supportsBinary, callback) { } function encodeOne(packet, doneCallback) { - exports.encodePacket(packet, !isBinary ? false : supportsBinary, false, function (message) { + exports.encodePacket(packet, !isBinary ? false : supportsBinary, false, function(message) { doneCallback(null, setLengthHeader(message)); }); } - map(packets, encodeOne, function (err, results) { + map(packets, encodeOne, function(err, results) { return callback(results.join('')); }); }; @@ -44730,8 +45963,8 @@ function map(ary, each, done) { var result = new Array(ary.length); var next = after(ary.length, done); - var eachWithIndex = function eachWithIndex(i, el, cb) { - each(el, function (error, msg) { + var eachWithIndex = function(i, el, cb) { + each(el, function(error, msg) { result[i] = msg; cb(error, result); }); @@ -44766,9 +45999,7 @@ exports.decodePayload = function (data, binaryType, callback) { return callback(err, 0, 1); } - var length = '', - n, - msg; + var length = '', n, msg; for (var i = 0, l = data.length; i < l; i++) { var chr = data.charAt(i); @@ -44778,7 +46009,7 @@ exports.decodePayload = function (data, binaryType, callback) { continue; } - if (length === '' || length != (n = Number(length))) { + if (length === '' || (length != (n = Number(length)))) { // parser error - ignoring payload return callback(err, 0, 1); } @@ -44811,6 +46042,7 @@ exports.decodePayload = function (data, binaryType, callback) { // parser error - ignoring payload return callback(err, 0, 1); } + }; /** @@ -44827,21 +46059,21 @@ exports.decodePayload = function (data, binaryType, callback) { * @api private */ -exports.encodePayloadAsArrayBuffer = function (packets, callback) { +exports.encodePayloadAsArrayBuffer = function(packets, callback) { if (!packets.length) { return callback(new ArrayBuffer(0)); } function encodeOne(packet, doneCallback) { - exports.encodePacket(packet, true, true, function (data) { + exports.encodePacket(packet, true, true, function(data) { return doneCallback(null, data); }); } - map(packets, encodeOne, function (err, encodedPackets) { - var totalLength = encodedPackets.reduce(function (acc, p) { + map(packets, encodeOne, function(err, encodedPackets) { + var totalLength = encodedPackets.reduce(function(acc, p) { var len; - if (typeof p === 'string') { + if (typeof p === 'string'){ len = p.length; } else { len = p.byteLength; @@ -44852,7 +46084,7 @@ exports.encodePayloadAsArrayBuffer = function (packets, callback) { var resultArray = new Uint8Array(totalLength); var bufferIndex = 0; - encodedPackets.forEach(function (p) { + encodedPackets.forEach(function(p) { var isString = typeof p === 'string'; var ab = p; if (isString) { @@ -44863,11 +46095,9 @@ exports.encodePayloadAsArrayBuffer = function (packets, callback) { ab = view.buffer; } - if (isString) { - // not true binary + if (isString) { // not true binary resultArray[bufferIndex++] = 0; - } else { - // true binary + } else { // true binary resultArray[bufferIndex++] = 1; } @@ -44891,9 +46121,9 @@ exports.encodePayloadAsArrayBuffer = function (packets, callback) { * Encode as Blob */ -exports.encodePayloadAsBlob = function (packets, callback) { +exports.encodePayloadAsBlob = function(packets, callback) { function encodeOne(packet, doneCallback) { - exports.encodePacket(packet, true, true, function (encoded) { + exports.encodePacket(packet, true, true, function(encoded) { var binaryIdentifier = new Uint8Array(1); binaryIdentifier[0] = 1; if (typeof encoded === 'string') { @@ -44905,7 +46135,9 @@ exports.encodePayloadAsBlob = function (packets, callback) { binaryIdentifier[0] = 0; } - var len = encoded instanceof ArrayBuffer ? encoded.byteLength : encoded.size; + var len = (encoded instanceof ArrayBuffer) + ? encoded.byteLength + : encoded.size; var lenStr = len.toString(); var lengthAry = new Uint8Array(lenStr.length + 1); @@ -44921,7 +46153,7 @@ exports.encodePayloadAsBlob = function (packets, callback) { }); } - map(packets, encodeOne, function (err, results) { + map(packets, encodeOne, function(err, results) { return callback(new Blob(results)); }); }; @@ -44949,7 +46181,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) { var isString = tailArray[0] === 0; var msgLength = ''; - for (var i = 1;; i++) { + for (var i = 1; ; i++) { if (tailArray[i] === 255) break; // 310 = char length of Number.MAX_VALUE @@ -44982,14 +46214,13 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) { } var total = buffers.length; - buffers.forEach(function (buffer, i) { + buffers.forEach(function(buffer, i) { callback(exports.decodePacket(buffer, binaryType, true), i, total); }); }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./keys":224,"./utf8":225,"after":176,"arraybuffer.slice":177,"base64-arraybuffer":179,"blob":181,"has-binary2":229}],224:[function(require,module,exports){ -"use strict"; /** * Gets the keys for an object. @@ -44998,7 +46229,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) { * @api private */ -module.exports = Object.keys || function keys(obj) { +module.exports = Object.keys || function keys (obj){ var arr = []; var has = Object.prototype.hasOwnProperty; @@ -45012,22 +46243,19 @@ module.exports = Object.keys || function keys(obj) { },{}],225:[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) { +;(function(root) { // Detect free variables `exports` - var freeExports = (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) == 'object' && exports; + var freeExports = typeof exports == 'object' && exports; // Detect free variable `module` - var freeModule = (typeof module === 'undefined' ? 'undefined' : _typeof(module)) == 'object' && module && module.exports == freeExports && module; + var freeModule = 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; + var freeGlobal = typeof global == 'object' && global; if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { root = freeGlobal; } @@ -45048,8 +46276,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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 + 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 @@ -45085,7 +46312,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol function checkScalarValue(codePoint, strict) { if (codePoint >= 0xD800 && codePoint <= 0xDFFF) { if (strict) { - throw Error('Lone surrogate U+' + codePoint.toString(16).toUpperCase() + ' is not a scalar value'); + throw Error( + 'Lone surrogate U+' + codePoint.toString(16).toUpperCase() + + ' is not a scalar value' + ); } return false; } @@ -45094,32 +46324,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /*--------------------------------------------------------------------------*/ function createByte(codePoint, shift) { - return stringFromCharCode(codePoint >> shift & 0x3F | 0x80); + return stringFromCharCode(((codePoint >> shift) & 0x3F) | 0x80); } function encodeCodePoint(codePoint, strict) { - if ((codePoint & 0xFFFFFF80) == 0) { - // 1-byte sequence + 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 + if ((codePoint & 0xFFFFF800) == 0) { // 2-byte sequence + symbol = stringFromCharCode(((codePoint >> 6) & 0x1F) | 0xC0); + } + else if ((codePoint & 0xFFFF0000) == 0) { // 3-byte sequence if (!checkScalarValue(codePoint, strict)) { codePoint = 0xFFFD; } - symbol = stringFromCharCode(codePoint >> 12 & 0x0F | 0xE0); + symbol = stringFromCharCode(((codePoint >> 12) & 0x0F) | 0xE0); symbol += createByte(codePoint, 6); - } else if ((codePoint & 0xFFE00000) == 0) { - // 4-byte sequence - symbol = stringFromCharCode(codePoint >> 18 & 0x07 | 0xF0); + } + 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); + symbol += stringFromCharCode((codePoint & 0x3F) | 0x80); return symbol; } @@ -45184,7 +46412,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 2-byte sequence if ((byte1 & 0xE0) == 0xC0) { byte2 = readContinuationByte(); - codePoint = (byte1 & 0x1F) << 6 | byte2; + codePoint = ((byte1 & 0x1F) << 6) | byte2; if (codePoint >= 0x80) { return codePoint; } else { @@ -45196,7 +46424,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if ((byte1 & 0xF0) == 0xE0) { byte2 = readContinuationByte(); byte3 = readContinuationByte(); - codePoint = (byte1 & 0x0F) << 12 | byte2 << 6 | byte3; + codePoint = ((byte1 & 0x0F) << 12) | (byte2 << 6) | byte3; if (codePoint >= 0x0800) { return checkScalarValue(codePoint, strict) ? codePoint : 0xFFFD; } else { @@ -45209,7 +46437,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol byte2 = readContinuationByte(); byte3 = readContinuationByte(); byte4 = readContinuationByte(); - codePoint = (byte1 & 0x07) << 0x12 | byte2 << 0x0C | byte3 << 0x06 | byte4; + codePoint = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0C) | + (byte3 << 0x06) | byte4; if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) { return codePoint; } @@ -45246,39 +46475,35 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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 () { + 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+ + } 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- + } 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 + } else { // in Rhino or a web browser root.utf8 = utf8; } -})(undefined); + +}(this)); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],226:[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 _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 createKeccakHash = require('keccak'); var secp256k1 = require('secp256k1'); @@ -45991,13 +47216,10 @@ exports.defineProperties = function (self, fields, data) { } } }; - -},{"assert":335,"bn.js":182,"create-hash":190,"ethjs-util":227,"keccak":250,"rlp":275,"safe-buffer":276,"secp256k1":277}],227:[function(require,module,exports){ +},{"assert":349,"bn.js":182,"create-hash":190,"ethjs-util":227,"keccak":250,"rlp":275,"safe-buffer":277,"secp256k1":279}],227:[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'); @@ -46010,7 +47232,7 @@ 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.'); + throw new Error('[ethjs-util] while padding to even, value must be string, is currently ' + typeof a + ', while padToEven.'); } if (a.length % 2) { @@ -46049,7 +47271,7 @@ function intToBuffer(i) { */ 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)) + '\'.'); + throw new Error('[ethjs-util] while getting binary size, method getBinarySize requires input \'str\' to be type String, got \'' + typeof str + '\'.'); } return Buffer.byteLength(str, 'utf8'); @@ -46066,10 +47288,10 @@ function getBinarySize(str) { */ 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)) + '\''); + throw new Error('[ethjs-util] method arrayContainsArray requires input \'superset\' to be an array got type \'' + 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)) + '\''); + throw new Error('[ethjs-util] method arrayContainsArray requires input \'subset\' to be an array got type \'' + typeof subset + '\''); } return subset[Boolean(some) && 'some' || 'every'](function (value) { @@ -46159,10 +47381,10 @@ function fromAscii(stringValue) { */ 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)) + '\''); + throw new Error('[ethjs-util] method getKeys expecting type Array as \'params\' input, got \'' + 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)) + '\'.'); + throw new Error('[ethjs-util] method getKeys expecting type String for input \'key\' got \'' + typeof key + '\'.'); } var result = []; // eslint-disable-line @@ -46216,30 +47438,26 @@ module.exports = { getKeys: getKeys, isHexString: isHexString }; - }).call(this,require("buffer").Buffer) -},{"buffer":401,"is-hex-prefixed":248,"strip-hex-prefix":309}],228:[function(require,module,exports){ -'use strict'; - +},{"buffer":415,"is-hex-prefixed":248,"strip-hex-prefix":311}],228:[function(require,module,exports){ // originally pulled out of simple-peer -module.exports = function getBrowserRTC() { - if (typeof window === 'undefined') return null; +module.exports = function getBrowserRTC () { + if (typeof window === 'undefined') return null var wrtc = { - RTCPeerConnection: window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection, - RTCSessionDescription: window.RTCSessionDescription || window.mozRTCSessionDescription || window.webkitRTCSessionDescription, - RTCIceCandidate: window.RTCIceCandidate || window.mozRTCIceCandidate || window.webkitRTCIceCandidate - }; - if (!wrtc.RTCPeerConnection) return null; - return wrtc; -}; + RTCPeerConnection: window.RTCPeerConnection || window.mozRTCPeerConnection || + window.webkitRTCPeerConnection, + RTCSessionDescription: window.RTCSessionDescription || + window.mozRTCSessionDescription || window.webkitRTCSessionDescription, + RTCIceCandidate: window.RTCIceCandidate || window.mozRTCIceCandidate || + window.webkitRTCIceCandidate + } + if (!wrtc.RTCPeerConnection) return null + return wrtc +} },{}],229:[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; }; - /* global Blob File */ /* @@ -46249,8 +47467,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var isArray = require('isarray'); var toString = Object.prototype.toString; -var withNativeBlob = typeof Blob === 'function' || typeof Blob !== 'undefined' && toString.call(Blob) === '[object BlobConstructor]'; -var withNativeFile = typeof File === 'function' || typeof File !== 'undefined' && toString.call(File) === '[object FileConstructor]'; +var withNativeBlob = typeof Blob === 'function' || + typeof Blob !== 'undefined' && toString.call(Blob) === '[object BlobConstructor]'; +var withNativeFile = typeof File === 'function' || + typeof File !== 'undefined' && toString.call(File) === '[object FileConstructor]'; /** * Module exports. @@ -46267,8 +47487,8 @@ module.exports = hasBinary; * @api public */ -function hasBinary(obj) { - if (!obj || (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object') { +function hasBinary (obj) { + if (!obj || typeof obj !== 'object') { return false; } @@ -46281,7 +47501,11 @@ function hasBinary(obj) { return false; } - if (typeof Buffer === 'function' && Buffer.isBuffer && Buffer.isBuffer(obj) || typeof ArrayBuffer === 'function' && obj instanceof ArrayBuffer || withNativeBlob && obj instanceof Blob || withNativeFile && obj instanceof File) { + if ((typeof Buffer === 'function' && Buffer.isBuffer && Buffer.isBuffer(obj)) || + (typeof ArrayBuffer === 'function' && obj instanceof ArrayBuffer) || + (withNativeBlob && obj instanceof Blob) || + (withNativeFile && obj instanceof File) + ) { return true; } @@ -46300,9 +47524,7 @@ function hasBinary(obj) { } }).call(this,require("buffer").Buffer) -},{"buffer":401,"isarray":230}],230:[function(require,module,exports){ -'use strict'; - +},{"buffer":415,"isarray":230}],230:[function(require,module,exports){ var toString = {}.toString; module.exports = Array.isArray || function (arr) { @@ -46310,7 +47532,6 @@ module.exports = Array.isArray || function (arr) { }; },{}],231:[function(require,module,exports){ -'use strict'; /** * Module exports. @@ -46321,7 +47542,8 @@ module.exports = Array.isArray || function (arr) { */ try { - module.exports = typeof XMLHttpRequest !== 'undefined' && 'withCredentials' in new XMLHttpRequest(); + module.exports = typeof XMLHttpRequest !== 'undefined' && + 'withCredentials' in new XMLHttpRequest(); } catch (err) { // if XMLHttp support is disabled in IE then it will throw // when trying to create @@ -46329,107 +47551,103 @@ try { } },{}],232:[function(require,module,exports){ -'use strict'; - -var Buffer = require('safe-buffer').Buffer; -var Transform = require('stream').Transform; -var inherits = require('inherits'); +'use strict' +var Buffer = require('safe-buffer').Buffer +var Transform = require('stream').Transform +var inherits = require('inherits') -function throwIfNotStringOrBuffer(val, prefix) { +function throwIfNotStringOrBuffer (val, prefix) { if (!Buffer.isBuffer(val) && typeof val !== 'string') { - throw new TypeError(prefix + ' must be a string or a buffer'); + throw new TypeError(prefix + ' must be a string or a buffer') } } -function HashBase(blockSize) { - Transform.call(this); +function HashBase (blockSize) { + Transform.call(this) - this._block = Buffer.allocUnsafe(blockSize); - this._blockSize = blockSize; - this._blockOffset = 0; - this._length = [0, 0, 0, 0]; + this._block = Buffer.allocUnsafe(blockSize) + this._blockSize = blockSize + this._blockOffset = 0 + this._length = [0, 0, 0, 0] - this._finalized = false; + this._finalized = false } -inherits(HashBase, Transform); +inherits(HashBase, Transform) HashBase.prototype._transform = function (chunk, encoding, callback) { - var error = null; + var error = null try { - this.update(chunk, encoding); + this.update(chunk, encoding) } catch (err) { - error = err; + error = err } - callback(error); -}; + callback(error) +} HashBase.prototype._flush = function (callback) { - var error = null; + var error = null try { - this.push(this.digest()); + this.push(this.digest()) } catch (err) { - error = err; + error = err } - callback(error); -}; + 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); + 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; + 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 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; + this._length[j] += carry + carry = (this._length[j] / 0x0100000000) | 0 + if (carry > 0) this._length[j] -= 0x0100000000 * carry } - return this; -}; + return this +} HashBase.prototype._update = function () { - throw new Error('_update is not implemented'); -}; + throw new Error('_update is not implemented') +} HashBase.prototype.digest = function (encoding) { - if (this._finalized) throw new Error('Digest already called'); - this._finalized = true; + if (this._finalized) throw new Error('Digest already called') + this._finalized = true - var digest = this._digest(); - if (encoding !== undefined) digest = digest.toString(encoding); + 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; -}; + this._block.fill(0) + this._blockOffset = 0 + for (var i = 0; i < 4; ++i) this._length[i] = 0 -HashBase.prototype._digest = function () { - throw new Error('_digest is not implemented'); -}; + return digest +} -module.exports = HashBase; +HashBase.prototype._digest = function () { + throw new Error('_digest is not implemented') +} -},{"inherits":247,"safe-buffer":276,"stream":954}],233:[function(require,module,exports){ -'use strict'; +module.exports = HashBase +},{"inherits":247,"safe-buffer":277,"stream":968}],233:[function(require,module,exports){ var hash = exports; hash.utils = require('./hash/utils'); @@ -46469,7 +47687,10 @@ 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); + if (!this.pending) + this.pending = msg; + else + this.pending = this.pending.concat(msg); this.pendingTotal += msg.length; // Enough data, try updating @@ -46479,12 +47700,12 @@ BlockHash.prototype.update = function update(msg, enc) { // 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; + 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) { + for (var i = 0; i < msg.length; i += this._delta32) this._update(msg, i, i + this._delta32); - } } return this; @@ -46500,37 +47721,38 @@ BlockHash.prototype.digest = function digest(enc) { BlockHash.prototype._pad = function pad() { var len = this.pendingTotal; var bytes = this._delta8; - var k = bytes - (len + this.padLength) % bytes; + var k = bytes - ((len + this.padLength) % bytes); var res = new Array(k + this.padLength); res[0] = 0x80; - for (var i = 1; i < k; i++) { + for (var i = 1; i < k; i++) res[i] = 0; - } // Append length + + // Append length len <<= 3; if (this.endian === 'big') { - for (var t = 8; t < this.padLength; t++) { + 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++] = 0; - res[i++] = len >>> 24 & 0xff; - res[i++] = len >>> 16 & 0xff; - res[i++] = len >>> 8 & 0xff; + 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++] = (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++) { + for (t = 8; t < this.padLength; t++) res[i++] = 0; - } } return res; @@ -46543,7 +47765,8 @@ var utils = require('./utils'); var assert = require('minimalistic-assert'); function Hmac(hash, key, enc) { - if (!(this instanceof Hmac)) return new 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; @@ -46556,20 +47779,22 @@ 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(); + 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++) { + for (var i = key.length; i < this.blockSize; i++) key.push(0); - }for (i = 0; i < key.length; i++) { + + for (i = 0; i < key.length; i++) key[i] ^= 0x36; - }this.inner = new this.Hash().update(key); + this.inner = new this.Hash().update(key); // 0x36 ^ 0x5c = 0x6a - for (i = 0; i < key.length; i++) { + for (i = 0; i < key.length; i++) key[i] ^= 0x6a; - }this.outer = new this.Hash().update(key); + this.outer = new this.Hash().update(key); }; Hmac.prototype.update = function update(msg, enc) { @@ -46595,11 +47820,12 @@ var sum32_4 = utils.sum32_4; var BlockHash = common.BlockHash; function RIPEMD160() { - if (!(this instanceof RIPEMD160)) return new RIPEMD160(); + if (!(this instanceof RIPEMD160)) + return new RIPEMD160(); BlockHash.call(this); - this.h = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + this.h = [ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ]; this.endian = 'little'; } utils.inherits(RIPEMD160, BlockHash); @@ -46622,13 +47848,21 @@ RIPEMD160.prototype._update = function update(msg, start) { 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); + 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); + 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); @@ -46644,28 +47878,82 @@ RIPEMD160.prototype._update = function update(msg, start) { }; RIPEMD160.prototype._digest = function digest(enc) { - if (enc === 'hex') return utils.toHex32(this.h, 'little');else return utils.split32(this.h, 'little'); + 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); + 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; + 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]; + 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 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 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]; +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":234,"./utils":244}],237:[function(require,module,exports){ 'use strict'; @@ -46689,13 +47977,19 @@ var sum32_5 = utils.sum32_5; var ft_1 = shaCommon.ft_1; var BlockHash = common.BlockHash; -var sha1_K = [0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xCA62C1D6]; +var sha1_K = [ + 0x5A827999, 0x6ED9EBA1, + 0x8F1BBCDC, 0xCA62C1D6 +]; function SHA1() { - if (!(this instanceof SHA1)) return new SHA1(); + if (!(this instanceof SHA1)) + return new SHA1(); BlockHash.call(this); - this.h = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + this.h = [ + 0x67452301, 0xefcdab89, 0x98badcfe, + 0x10325476, 0xc3d2e1f0 ]; this.W = new Array(80); } @@ -46710,11 +48004,13 @@ SHA1.padLength = 64; SHA1.prototype._update = function _update(msg, start) { var W = this.W; - for (var i = 0; i < 16; i++) { + for (var i = 0; i < 16; i++) W[i] = msg[start + i]; - }for (; i < W.length; 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 a = this.h[0]; var b = this.h[1]; var c = this.h[2]; var d = this.h[3]; @@ -46738,7 +48034,10 @@ SHA1.prototype._update = function _update(msg, start) { }; SHA1.prototype._digest = function digest(enc) { - if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big'); + if (enc === 'hex') + return utils.toHex32(this.h, 'big'); + else + return utils.split32(this.h, 'big'); }; },{"../common":234,"../utils":244,"./common":243}],239:[function(require,module,exports){ @@ -46748,10 +48047,13 @@ var utils = require('../utils'); var SHA256 = require('./256'); function SHA224() { - if (!(this instanceof SHA224)) return new SHA224(); + if (!(this instanceof SHA224)) + return new SHA224(); SHA256.call(this); - this.h = [0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4]; + this.h = [ + 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, + 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ]; } utils.inherits(SHA224, SHA256); module.exports = SHA224; @@ -46763,9 +48065,13 @@ 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'); + if (enc === 'hex') + return utils.toHex32(this.h.slice(0, 7), 'big'); + else + return utils.split32(this.h.slice(0, 7), 'big'); }; + },{"../utils":244,"./256":240}],240:[function(require,module,exports){ 'use strict'; @@ -46786,13 +48092,34 @@ 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]; +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(); + if (!(this instanceof SHA256)) + return new SHA256(); BlockHash.call(this); - this.h = [0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19]; + this.h = [ + 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, + 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 + ]; this.k = sha256_K; this.W = new Array(64); } @@ -46807,11 +48134,12 @@ SHA256.padLength = 64; SHA256.prototype._update = function _update(msg, start) { var W = this.W; - for (var i = 0; i < 16; i++) { + for (var i = 0; i < 16; i++) W[i] = msg[start + i]; - }for (; i < W.length; 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 a = this.h[0]; var b = this.h[1]; var c = this.h[2]; var d = this.h[3]; @@ -46845,7 +48173,10 @@ SHA256.prototype._update = function _update(msg, start) { }; SHA256.prototype._digest = function digest(enc) { - if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big'); + if (enc === 'hex') + return utils.toHex32(this.h, 'big'); + else + return utils.split32(this.h, 'big'); }; },{"../common":234,"../utils":244,"./common":243,"minimalistic-assert":258}],241:[function(require,module,exports){ @@ -46856,10 +48187,19 @@ var utils = require('../utils'); var SHA512 = require('./512'); function SHA384() { - if (!(this instanceof SHA384)) return new 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]; + 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; @@ -46870,7 +48210,10 @@ 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'); + if (enc === 'hex') + return utils.toHex32(this.h.slice(0, 12), 'big'); + else + return utils.split32(this.h.slice(0, 12), 'big'); }; },{"../utils":244,"./512":242}],242:[function(require,module,exports){ @@ -46894,13 +48237,63 @@ 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]; +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(); + 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.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); } @@ -46916,20 +48309,28 @@ SHA512.prototype._prepareBlock = function _prepareBlock(msg, start) { var W = this.W; // 32 x 32bit words - for (var i = 0; i < 32; i++) { + 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 + 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_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_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_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); + 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); } }; @@ -46968,8 +48369,18 @@ SHA512.prototype._update = function _update(msg, start) { 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); + 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); @@ -47015,70 +48426,81 @@ SHA512.prototype._update = function _update(msg, start) { }; SHA512.prototype._digest = function digest(enc) { - if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big'); + 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; + 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; + 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; + 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; + 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 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; + 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 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; + 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 c2_hi = rotr64_hi(xl, xh, 9); // 41 var r = c0_hi ^ c1_hi ^ c2_hi; - if (r < 0) r += 0x100000000; + 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 c2_lo = rotr64_lo(xl, xh, 9); // 41 var r = c0_lo ^ c1_lo ^ c2_lo; - if (r < 0) r += 0x100000000; + if (r < 0) + r += 0x100000000; return r; } @@ -47088,7 +48510,8 @@ function g0_512_hi(xh, xl) { var c2_hi = shr64_hi(xh, xl, 7); var r = c0_hi ^ c1_hi ^ c2_hi; - if (r < 0) r += 0x100000000; + if (r < 0) + r += 0x100000000; return r; } @@ -47098,27 +48521,30 @@ function g0_512_lo(xh, xl) { var c2_lo = shr64_lo(xh, xl, 7); var r = c0_lo ^ c1_lo ^ c2_lo; - if (r < 0) r += 0x100000000; + 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 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; + 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 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; + if (r < 0) + r += 0x100000000; return r; } @@ -47129,19 +48555,22 @@ 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); + 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; + return (x & y) ^ ((~x) & z); } exports.ch32 = ch32; function maj32(x, y, z) { - return x & y ^ x & z ^ y & z; + return (x & y) ^ (x & z) ^ (y & z); } exports.maj32 = maj32; @@ -47161,12 +48590,12 @@ function s1_256(x) { exports.s1_256 = s1_256; function g0_256(x) { - return rotr32(x, 7) ^ rotr32(x, 18) ^ x >>> 3; + 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; + return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10); } exports.g1_256 = g1_256; @@ -47179,8 +48608,10 @@ var inherits = require('inherits'); exports.inherits = inherits; function toArray(msg, enc) { - if (Array.isArray(msg)) return msg.slice(); - if (!msg) return []; + if (Array.isArray(msg)) + return msg.slice(); + if (!msg) + return []; var res = []; if (typeof msg === 'string') { if (!enc) { @@ -47188,19 +48619,21 @@ function toArray(msg, enc) { var c = msg.charCodeAt(i); var hi = c >> 8; var lo = c & 0xff; - if (hi) res.push(hi, lo);else res.push(lo); + 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) { + 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++) { + for (i = 0; i < msg.length; i++) res[i] = msg[i] | 0; - } } return res; } @@ -47208,14 +48641,17 @@ exports.toArray = toArray; function toHex(msg) { var res = ''; - for (var i = 0; i < msg.length; i++) { + for (var i = 0; i < msg.length; i++) res += zero2(msg[i].toString(16)); - }return res; + return res; } exports.toHex = toHex; function htonl(w) { - var res = w >>> 24 | w >>> 8 & 0xff00 | w << 8 & 0xff0000 | (w & 0xff) << 24; + var res = (w >>> 24) | + ((w >>> 8) & 0xff00) | + ((w << 8) & 0xff0000) | + ((w & 0xff) << 24); return res >>> 0; } exports.htonl = htonl; @@ -47224,7 +48660,8 @@ function toHex32(msg, endian) { var res = ''; for (var i = 0; i < msg.length; i++) { var w = msg[i]; - if (endian === 'little') w = htonl(w); + if (endian === 'little') + w = htonl(w); res += zero8(w.toString(16)); } return res; @@ -47232,12 +48669,30 @@ function toHex32(msg, endian) { exports.toHex32 = toHex32; function zero2(word) { - if (word.length === 1) return '0' + word;else return 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; + 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; @@ -47247,7 +48702,10 @@ function join32(msg, start, end, endian) { 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]; + 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; @@ -47260,13 +48718,13 @@ function split32(msg, endian) { 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 + 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 + 2] = (m >>> 16) & 0xff; + res[k + 1] = (m >>> 8) & 0xff; res[k] = m & 0xff; } } @@ -47275,32 +48733,32 @@ function split32(msg, endian) { exports.split32 = split32; function rotr32(w, b) { - return w >>> b | w << 32 - b; + return (w >>> b) | (w << (32 - b)); } exports.rotr32 = rotr32; function rotl32(w, b) { - return w << b | w >>> 32 - b; + return (w << b) | (w >>> (32 - b)); } exports.rotl32 = rotl32; function sum32(a, b) { - return a + b >>> 0; + return (a + b) >>> 0; } exports.sum32 = sum32; function sum32_3(a, b, c) { - return a + b + c >>> 0; + return (a + b + c) >>> 0; } exports.sum32_3 = sum32_3; function sum32_4(a, b, c, d) { - return a + b + c + d >>> 0; + 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; + return (a + b + c + d + e) >>> 0; } exports.sum32_5 = sum32_5; @@ -47308,7 +48766,7 @@ function sum64(buf, pos, ah, al) { var bh = buf[pos]; var bl = buf[pos + 1]; - var lo = al + bl >>> 0; + var lo = (al + bl) >>> 0; var hi = (lo < al ? 1 : 0) + ah + bh; buf[pos] = hi >>> 0; buf[pos + 1] = lo; @@ -47316,7 +48774,7 @@ function sum64(buf, pos, ah, al) { exports.sum64 = sum64; function sum64_hi(ah, al, bh, bl) { - var lo = al + bl >>> 0; + var lo = (al + bl) >>> 0; var hi = (lo < al ? 1 : 0) + ah + bh; return hi >>> 0; } @@ -47331,11 +48789,11 @@ 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; + lo = (lo + bl) >>> 0; carry += lo < al ? 1 : 0; - lo = lo + cl >>> 0; + lo = (lo + cl) >>> 0; carry += lo < cl ? 1 : 0; - lo = lo + dl >>> 0; + lo = (lo + dl) >>> 0; carry += lo < dl ? 1 : 0; var hi = ah + bh + ch + dh + carry; @@ -47352,13 +48810,13 @@ 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; + lo = (lo + bl) >>> 0; carry += lo < al ? 1 : 0; - lo = lo + cl >>> 0; + lo = (lo + cl) >>> 0; carry += lo < cl ? 1 : 0; - lo = lo + dl >>> 0; + lo = (lo + dl) >>> 0; carry += lo < dl ? 1 : 0; - lo = lo + el >>> 0; + lo = (lo + el) >>> 0; carry += lo < el ? 1 : 0; var hi = ah + bh + ch + dh + eh + carry; @@ -47374,13 +48832,13 @@ function sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) { exports.sum64_5_lo = sum64_5_lo; function rotr64_hi(ah, al, num) { - var r = al << 32 - num | ah >>> 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; + var r = (ah << (32 - num)) | (al >>> num); return r >>> 0; } exports.rotr64_lo = rotr64_lo; @@ -47391,7 +48849,7 @@ function shr64_hi(ah, al, num) { exports.shr64_hi = shr64_hi; function shr64_lo(ah, al, num) { - var r = ah << 32 - num | al >>> num; + var r = (ah << (32 - num)) | (al >>> num); return r >>> 0; } exports.shr64_lo = shr64_lo; @@ -47404,7 +48862,8 @@ var utils = require('minimalistic-crypto-utils'); var assert = require('minimalistic-assert'); function HmacDRBG(options) { - if (!(this instanceof HmacDRBG)) return new HmacDRBG(options); + if (!(this instanceof HmacDRBG)) + return new HmacDRBG(options); this.hash = options.hash; this.predResist = !!options.predResist; @@ -47419,7 +48878,8 @@ function HmacDRBG(options) { 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'); + assert(entropy.length >= (this.minEntropy / 8), + 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits'); this._init(entropy, nonce, pers); } module.exports = HmacDRBG; @@ -47436,7 +48896,7 @@ HmacDRBG.prototype._init = function init(entropy, nonce, pers) { this._update(seed); this._reseed = 1; - this.reseedInterval = 0x1000000000000; // 2^48 + this.reseedInterval = 0x1000000000000; // 2^48 }; HmacDRBG.prototype._hmac = function hmac() { @@ -47444,13 +48904,21 @@ HmacDRBG.prototype._hmac = function hmac() { }; HmacDRBG.prototype._update = function update(seed) { - var kmac = this._hmac().update(this.V).update([0x00]); - if (seed) kmac = kmac.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; + if (!seed) + return; - this.K = this._hmac().update(this.V).update([0x01]).update(seed).digest(); + this.K = this._hmac() + .update(this.V) + .update([ 0x01 ]) + .update(seed) + .digest(); this.V = this._hmac().update(this.V).digest(); }; @@ -47465,14 +48933,16 @@ HmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) { entropy = utils.toArray(entropy, entropyEnc); add = utils.toArray(add, addEnc); - assert(entropy.length >= this.minEntropy / 8, 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits'); + 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'); + if (this._reseed > this.reseedInterval) + throw new Error('Reseed is required'); // Optional encoding if (typeof enc !== 'string') { @@ -47500,25 +48970,21 @@ HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) { }; },{"hash.js":233,"minimalistic-assert":258,"minimalistic-crypto-utils":259}],246:[function(require,module,exports){ -"use strict"; var indexOf = [].indexOf; -module.exports = function (arr, obj) { +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; }; - },{}],247:[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.super_ = superCtor ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, @@ -47531,19 +48997,15 @@ if (typeof Object.create === 'function') { } 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; - }; + ctor.super_ = superCtor + var TempCtor = function () {} + TempCtor.prototype = superCtor.prototype + ctor.prototype = new TempCtor() + ctor.prototype.constructor = ctor + } } },{}],248:[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 @@ -47552,486 +49014,473 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol */ 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."); + throw new Error("[is-hex-prefixed] value must be type 'string', is currently type " + (typeof str) + ", while checking isHexPrefixed."); } return str.slice(0, 2) === '0x'; -}; +} },{}],249:[function(require,module,exports){ arguments[4][230][0].apply(exports,arguments) },{"dup":230}],250:[function(require,module,exports){ -'use strict'; - -module.exports = require('./lib/api')(require('./lib/keccak')); +'use strict' +module.exports = require('./lib/api')(require('./lib/keccak')) },{"./lib/api":251,"./lib/keccak":255}],251:[function(require,module,exports){ -'use strict'; - -var createKeccak = require('./keccak'); -var createShake = require('./shake'); +'use strict' +var createKeccak = require('./keccak') +var createShake = require('./shake') module.exports = function (KeccakState) { - var Keccak = createKeccak(KeccakState); - var Shake = createShake(KeccakState); + var Keccak = createKeccak(KeccakState) + var Shake = createShake(KeccakState) return function (algorithm, options) { - var hash = typeof algorithm === 'string' ? algorithm.toLowerCase() : algorithm; + 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); + 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) - default: - throw new Error('Invald algorithm: ' + algorithm); + 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":252,"./shake":253}],252:[function(require,module,exports){ -'use strict'; - -var Buffer = require('safe-buffer').Buffer; -var Transform = require('stream').Transform; -var inherits = require('inherits'); +'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); + 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._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; + this._state = new KeccakState() + this._state.initialize(rate, capacity) + this._finalized = false } - inherits(Keccak, Transform); + inherits(Keccak, Transform) Keccak.prototype._transform = function (chunk, encoding, callback) { - var error = null; + var error = null try { - this.update(chunk, encoding); + this.update(chunk, encoding) } catch (err) { - error = err; + error = err } - callback(error); - }; + callback(error) + } Keccak.prototype._flush = function (callback) { - var error = null; + var error = null try { - this.push(this.digest()); + this.push(this.digest()) } catch (err) { - error = err; + error = err } - callback(error); - }; + 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); + 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); + this._state.absorb(data) - return this; - }; + return this + } Keccak.prototype.digest = function (encoding) { - if (this._finalized) throw new Error('Digest already called'); - this._finalized = true; + 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); + 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(); + this._resetState() - return digest; - }; + return digest + } // remove result from memory Keccak.prototype._resetState = function () { - this._state.initialize(this._rate, this._capacity); - return this; - }; + 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; + 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; -}; + return clone + } -},{"inherits":247,"safe-buffer":276,"stream":954}],253:[function(require,module,exports){ -'use strict'; + return Keccak +} -var Buffer = require('safe-buffer').Buffer; -var Transform = require('stream').Transform; -var inherits = require('inherits'); +},{"inherits":247,"safe-buffer":277,"stream":968}],253:[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); + function Shake (rate, capacity, delimitedSuffix, options) { + Transform.call(this, options) - this._rate = rate; - this._capacity = capacity; - this._delimitedSuffix = delimitedSuffix; - this._options = 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; + this._state = new KeccakState() + this._state.initialize(rate, capacity) + this._finalized = false } - inherits(Shake, Transform); + inherits(Shake, Transform) Shake.prototype._transform = function (chunk, encoding, callback) { - var error = null; + var error = null try { - this.update(chunk, encoding); + this.update(chunk, encoding) } catch (err) { - error = err; + error = err } - callback(error); - }; + callback(error) + } - Shake.prototype._flush = function () {}; + Shake.prototype._flush = function () {} Shake.prototype._read = function (size) { - this.push(this.squeeze(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); + 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); + this._state.absorb(data) - return this; - }; + return this + } Shake.prototype.squeeze = function (dataByteLength, encoding) { if (!this._finalized) { - this._finalized = true; - this._state.absorbLastFewBits(this._delimitedSuffix); + this._finalized = true + this._state.absorbLastFewBits(this._delimitedSuffix) } - var data = this._state.squeeze(dataByteLength); - if (encoding !== undefined) data = data.toString(encoding); + var data = this._state.squeeze(dataByteLength) + if (encoding !== undefined) data = data.toString(encoding) - return data; - }; + return data + } Shake.prototype._resetState = function () { - this._state.initialize(this._rate, this._capacity); - return this; - }; + 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; - }; + var clone = new Shake(this._rate, this._capacity, this._delimitedSuffix, this._options) + this._state.copy(clone._state) + clone._finalized = this._finalized - return Shake; -}; + return clone + } -},{"inherits":247,"safe-buffer":276,"stream":954}],254:[function(require,module,exports){ -'use strict'; + return Shake +} -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]; +},{"inherits":247,"safe-buffer":277,"stream":968}],254:[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; + 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; + 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; + 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]; + s[0] ^= P1600_ROUND_CONSTANTS[round * 2] + s[1] ^= P1600_ROUND_CONSTANTS[round * 2 + 1] } -}; +} },{}],255:[function(require,module,exports){ -'use strict'; - -var Buffer = require('safe-buffer').Buffer; -var keccakState = require('./keccak-state-unroll'); +'use strict' +var Buffer = require('safe-buffer').Buffer +var keccakState = require('./keccak-state-unroll') -function Keccak() { +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.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; + 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; -}; + 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; + 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; + 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; -}; + 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); + if (!this.squeezing) this.absorbLastFewBits(0x01) - var output = Buffer.alloc(length); + 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; + 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; + keccakState.p1600(this.state) + this.count = 0 } } - return output; -}; + 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; -}; + 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; +module.exports = Keccak -},{"./keccak-state-unroll":254,"safe-buffer":276}],256:[function(require,module,exports){ +},{"./keccak-state-unroll":254,"safe-buffer":277}],256:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -48052,168 +49501,166 @@ function createLogger() /* title */{ } exports.default = createLogger; - },{}],257:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var inherits = require('inherits'); -var HashBase = require('hash-base'); +'use strict' +var inherits = require('inherits') +var HashBase = require('hash-base') -var ARRAY16 = new Array(16); +var ARRAY16 = new Array(16) -function MD5() { - HashBase.call(this, 64); +function MD5 () { + HashBase.call(this, 64) // state - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; + this._a = 0x67452301 + this._b = 0xefcdab89 + this._c = 0x98badcfe + this._d = 0x10325476 } -inherits(MD5, HashBase); +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; -}; + 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; + 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, 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(); + 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; -}; + 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 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 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 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 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; +function fnI (a, b, c, d, m, k, s) { + return (rotl((a + ((c ^ (b | (~d)))) + m + k) | 0, s) + b) | 0 } -module.exports = MD5; +module.exports = MD5 }).call(this,require("buffer").Buffer) -},{"buffer":401,"hash-base":232,"inherits":247}],258:[function(require,module,exports){ -'use strict'; - +},{"buffer":415,"hash-base":232,"inherits":247}],258:[function(require,module,exports){ module.exports = assert; function assert(val, msg) { - if (!val) throw new Error(msg || 'Assertion failed'); + 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); + if (l != r) + throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r)); }; },{}],259:[function(require,module,exports){ @@ -48222,26 +49669,31 @@ assert.equal = function assertEqual(l, r, msg) { var utils = exports; function toArray(msg, enc) { - if (Array.isArray(msg)) return msg.slice(); - if (!msg) return []; + if (Array.isArray(msg)) + return msg.slice(); + if (!msg) + return []; var res = []; if (typeof msg !== 'string') { - for (var i = 0; i < msg.length; i++) { + for (var i = 0; i < msg.length; i++) res[i] = msg[i] | 0; - }return res; + 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) { + 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); + if (hi) + res.push(hi, lo); + else + res.push(lo); } } return res; @@ -48249,27 +49701,29 @@ function toArray(msg, enc) { utils.toArray = toArray; function zero2(word) { - if (word.length === 1) return '0' + word;else return 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++) { + for (var i = 0; i < msg.length; i++) res += zero2(msg[i].toString(16)); - }return res; + return res; } utils.toHex = toHex; utils.encode = function encode(arr, enc) { - if (enc === 'hex') return toHex(arr);else return arr; + if (enc === 'hex') + return toHex(arr); + else + return arr; }; },{}],260:[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; }; - /** * Helpers. */ @@ -48294,15 +49748,18 @@ var y = d * 365.25; * @api public */ -module.exports = function (val, options) { +module.exports = function(val, options) { options = options || {}; - var type = typeof val === 'undefined' ? 'undefined' : _typeof(val); + var type = typeof val; if (type === 'string' && val.length > 0) { return parse(val); } else if (type === 'number' && isNaN(val) === false) { return options.long ? fmtLong(val) : fmtShort(val); } - throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(val)); + throw new Error( + 'val is not a non-empty string or a valid number. val=' + + JSON.stringify(val) + ); }; /** @@ -48318,7 +49775,9 @@ function parse(str) { if (str.length > 100) { return; } - var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str); + var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec( + str + ); if (!match) { return; } @@ -48397,7 +49856,11 @@ function fmtShort(ms) { */ function fmtLong(ms) { - return plural(ms, d, 'day') || plural(ms, h, 'hour') || plural(ms, m, 'minute') || plural(ms, s, 'second') || ms + ' ms'; + return plural(ms, d, 'day') || + plural(ms, h, 'hour') || + plural(ms, m, 'minute') || + plural(ms, s, 'second') || + ms + ' ms'; } /** @@ -48415,95 +49878,95 @@ function plural(ms, n, name) { } },{}],261:[function(require,module,exports){ -'use strict'; - /** * Compiles a querystring * Returns string representation of the object * * @param {Object} * @api private - */ - -exports.encode = function (obj) { - var str = ''; - - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - if (str.length) str += '&'; - str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]); - } - } - - return str; -}; - + */ + +exports.encode = function (obj) { + var str = ''; + + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + if (str.length) str += '&'; + str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]); + } + } + + return str; +}; + /** * Parses a simple querystring into an object * * @param {String} qs * @api private - */ - -exports.decode = function (qs) { - var qry = {}; - var pairs = qs.split('&'); - for (var i = 0, l = pairs.length; i < l; i++) { - var pair = pairs[i].split('='); - qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]); - } - return qry; -}; + */ + +exports.decode = function(qs){ + var qry = {}; + var pairs = qs.split('&'); + for (var i = 0, l = pairs.length; i < l; i++) { + var pair = pairs[i].split('='); + qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]); + } + return qry; +}; },{}],262:[function(require,module,exports){ -'use strict'; - /** * Parses an URI * * @author Steven Levithan (MIT license) * @api private - */ - -var re = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/; - -var parts = ['source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor']; - -module.exports = function parseuri(str) { - var src = str, - b = str.indexOf('['), - e = str.indexOf(']'); - - if (b != -1 && e != -1) { - str = str.substring(0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length); - } - - var m = re.exec(str || ''), - uri = {}, - i = 14; - - while (i--) { - uri[parts[i]] = m[i] || ''; - } - - if (b != -1 && e != -1) { - uri.source = src; - uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':'); - uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/;/g, ':'); - uri.ipv6uri = true; - } - - return uri; -}; + */ + +var re = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/; + +var parts = [ + 'source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor' +]; + +module.exports = function parseuri(str) { + var src = str, + b = str.indexOf('['), + e = str.indexOf(']'); + + if (b != -1 && e != -1) { + str = str.substring(0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length); + } + + var m = re.exec(str || ''), + uri = {}, + i = 14; + + while (i--) { + uri[parts[i]] = m[i] || ''; + } + + if (b != -1 && e != -1) { + uri.source = src; + uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':'); + uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/;/g, ':'); + uri.ipv6uri = true; + } + + return uri; +}; },{}],263:[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) { +if (!process.version || + process.version.indexOf('v0.') === 0 || + process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { module.exports = { nextTick: nextTick }; } else { - module.exports = process; + module.exports = process } function nextTick(fn, arg1, arg2, arg3) { @@ -48513,78 +49976,78 @@ function nextTick(fn, arg1, arg2, arg3) { 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); - }); + 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":911}],264:[function(require,module,exports){ +},{"_process":925}],264:[function(require,module,exports){ (function (process,global){ -'use strict'; +'use strict' -function oldBrowser() { - throw new Error('Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11'); +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; +var Buffer = require('safe-buffer').Buffer +var crypto = global.crypto || global.msCrypto if (crypto && crypto.getRandomValues) { - module.exports = randomBytes; + module.exports = randomBytes } else { - module.exports = oldBrowser; + module.exports = oldBrowser } -function randomBytes(size, cb) { +function randomBytes (size, cb) { // phantomjs needs to throw - if (size > 65536) throw new Error('requested too many random bytes'); + 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); + 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); + 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); + var bytes = Buffer.from(rawBytes.buffer) if (typeof cb === 'function') { return process.nextTick(function () { - cb(null, bytes); - }); + cb(null, bytes) + }) } - return bytes; + return bytes } }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"_process":911,"safe-buffer":276}],265:[function(require,module,exports){ +},{"_process":925,"safe-buffer":277}],265:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -48669,7 +50132,7 @@ Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { // because otherwise some prototype manipulation in // userland will fail enumerable: false, - get: function get() { + get: function () { return this._writableState.highWaterMark; } }); @@ -48690,13 +50153,13 @@ function onEndNT(self) { } Object.defineProperty(Duplex.prototype, 'destroyed', { - get: function get() { + get: function () { if (this._readableState === undefined || this._writableState === undefined) { return false; } return this._readableState.destroyed && this._writableState.destroyed; }, - set: function set(value) { + set: function (value) { // we ignore the value if the stream // has not been initialized yet if (this._readableState === undefined || this._writableState === undefined) { @@ -48716,7 +50179,6 @@ Duplex.prototype._destroy = function (err, cb) { pna.nextTick(cb, err); }; - },{"./_stream_readable":267,"./_stream_writable":269,"core-util-is":189,"inherits":247,"process-nextick-args":263}],266:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // @@ -48765,7 +50227,6 @@ function PassThrough(options) { PassThrough.prototype._transform = function (chunk, encoding, cb) { cb(null, chunk); }; - },{"./_stream_transform":268,"core-util-is":189,"inherits":247}],267:[function(require,module,exports){ (function (process,global){ // Copyright Joyent, Inc. and other Node contributors. @@ -48811,7 +50272,7 @@ Readable.ReadableState = ReadableState; /**/ var EE = require('events').EventEmitter; -var EElistenerCount = function EElistenerCount(emitter, type) { +var EElistenerCount = function (emitter, type) { return emitter.listeners(type).length; }; /**/ @@ -48844,7 +50305,7 @@ var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { - debug = function debug() {}; + debug = function () {}; } /**/ @@ -48965,13 +50426,13 @@ function Readable(options) { } Object.defineProperty(Readable.prototype, 'destroyed', { - get: function get() { + get: function () { if (this._readableState === undefined) { return false; } return this._readableState.destroyed; }, - set: function set(value) { + set: function (value) { // we ignore the value if the stream // has not been initialized yet if (!this._readableState) { @@ -49651,7 +51112,7 @@ Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { // because otherwise some prototype manipulation in // userland will fail enumerable: false, - get: function get() { + get: function () { return this._readableState.highWaterMark; } }); @@ -49787,9 +51248,8 @@ function indexOf(xs, x) { } return -1; } - }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./_stream_duplex":265,"./internal/streams/BufferList":270,"./internal/streams/destroy":271,"./internal/streams/stream":272,"_process":911,"core-util-is":189,"events":861,"inherits":247,"isarray":249,"process-nextick-args":263,"safe-buffer":276,"string_decoder/":308,"util":369}],268:[function(require,module,exports){ +},{"./_stream_duplex":265,"./internal/streams/BufferList":270,"./internal/streams/destroy":271,"./internal/streams/stream":272,"_process":925,"core-util-is":189,"events":875,"inherits":247,"isarray":249,"process-nextick-args":263,"safe-buffer":277,"string_decoder/":310,"util":383}],268:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -50004,7 +51464,6 @@ function done(stream, er, data) { return stream.push(null); } - },{"./_stream_duplex":265,"core-util-is":189,"inherits":247}],269:[function(require,module,exports){ (function (process,global,setImmediate){ // Copyright Joyent, Inc. and other Node contributors. @@ -50243,7 +51702,7 @@ 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) { + value: function (object) { if (realHasInstance.call(this, object)) return true; if (this !== Writable) return false; @@ -50251,7 +51710,7 @@ if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.protot } }); } else { - realHasInstance = function realHasInstance(object) { + realHasInstance = function (object) { return object instanceof this; }; } @@ -50382,7 +51841,7 @@ Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { // because otherwise some prototype manipulation in // userland will fail enumerable: false, - get: function get() { + get: function () { return this._writableState.highWaterMark; } }); @@ -50669,13 +52128,13 @@ function onCorkedFinish(corkReq, state, err) { } Object.defineProperty(Writable.prototype, 'destroyed', { - get: function get() { + get: function () { if (this._writableState === undefined) { return false; } return this._writableState.destroyed; }, - set: function set(value) { + set: function (value) { // we ignore the value if the stream // has not been initialized yet if (!this._writableState) { @@ -50694,16 +52153,11 @@ 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 : {},require("timers").setImmediate) -},{"./_stream_duplex":265,"./internal/streams/destroy":271,"./internal/streams/stream":272,"_process":911,"core-util-is":189,"inherits":247,"process-nextick-args":263,"safe-buffer":276,"timers":958,"util-deprecate":311}],270:[function(require,module,exports){ +},{"./_stream_duplex":265,"./internal/streams/destroy":271,"./internal/streams/stream":272,"_process":925,"core-util-is":189,"inherits":247,"process-nextick-args":263,"safe-buffer":277,"timers":972,"util-deprecate":313}],270:[function(require,module,exports){ 'use strict'; -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Buffer = require('safe-buffer').Buffer; var util = require('util'); @@ -50780,8 +52234,7 @@ if (util && util.inspect && util.inspect.custom) { return this.constructor.name + ' ' + obj; }; } - -},{"safe-buffer":276,"util":369}],271:[function(require,module,exports){ +},{"safe-buffer":277,"util":383}],271:[function(require,module,exports){ 'use strict'; /**/ @@ -50856,15 +52309,10 @@ module.exports = { destroy: destroy, undestroy: undestroy }; - },{"process-nextick-args":263}],272:[function(require,module,exports){ -'use strict'; - module.exports = require('events').EventEmitter; -},{"events":861}],273:[function(require,module,exports){ -'use strict'; - +},{"events":875}],273:[function(require,module,exports){ exports = module.exports = require('./lib/_stream_readable.js'); exports.Stream = exports; exports.Readable = exports; @@ -50874,153 +52322,173 @@ exports.Transform = require('./lib/_stream_transform.js'); exports.PassThrough = require('./lib/_stream_passthrough.js'); },{"./lib/_stream_duplex.js":265,"./lib/_stream_passthrough.js":266,"./lib/_stream_readable.js":267,"./lib/_stream_transform.js":268,"./lib/_stream_writable.js":269}],274:[function(require,module,exports){ -'use strict'; - -var Buffer = require('buffer').Buffer; -var inherits = require('inherits'); -var HashBase = require('hash-base'); - -var ARRAY16 = new Array(16); - -var zl = [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]; +'use strict' +var Buffer = require('buffer').Buffer +var inherits = require('inherits') +var HashBase = require('hash-base') + +var ARRAY16 = new Array(16) + +var zl = [ + 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 zr = [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 zr = [ + 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 sl = [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 sl = [ + 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 sr = [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]; +var sr = [ + 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 +] -var hl = [0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e]; -var hr = [0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000]; +var hl = [0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e] +var hr = [0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000] -function RIPEMD160() { - HashBase.call(this, 64); +function RIPEMD160 () { + HashBase.call(this, 64) // state - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; - this._e = 0xc3d2e1f0; + this._a = 0x67452301 + this._b = 0xefcdab89 + this._c = 0x98badcfe + this._d = 0x10325476 + this._e = 0xc3d2e1f0 } -inherits(RIPEMD160, HashBase); +inherits(RIPEMD160, HashBase) RIPEMD160.prototype._update = function () { - var words = ARRAY16; - for (var j = 0; j < 16; ++j) { - words[j] = this._block.readInt32LE(j * 4); - }var al = this._a | 0; - var bl = this._b | 0; - var cl = this._c | 0; - var dl = this._d | 0; - var el = this._e | 0; - - var ar = this._a | 0; - var br = this._b | 0; - var cr = this._c | 0; - var dr = this._d | 0; - var er = this._e | 0; + var words = ARRAY16 + for (var j = 0; j < 16; ++j) words[j] = this._block.readInt32LE(j * 4) + + var al = this._a | 0 + var bl = this._b | 0 + var cl = this._c | 0 + var dl = this._d | 0 + var el = this._e | 0 + + var ar = this._a | 0 + var br = this._b | 0 + var cr = this._c | 0 + var dr = this._d | 0 + var er = this._e | 0 // computation for (var i = 0; i < 80; i += 1) { - var tl; - var tr; + var tl + var tr if (i < 16) { - tl = fn1(al, bl, cl, dl, el, words[zl[i]], hl[0], sl[i]); - tr = fn5(ar, br, cr, dr, er, words[zr[i]], hr[0], sr[i]); + tl = fn1(al, bl, cl, dl, el, words[zl[i]], hl[0], sl[i]) + tr = fn5(ar, br, cr, dr, er, words[zr[i]], hr[0], sr[i]) } else if (i < 32) { - tl = fn2(al, bl, cl, dl, el, words[zl[i]], hl[1], sl[i]); - tr = fn4(ar, br, cr, dr, er, words[zr[i]], hr[1], sr[i]); + tl = fn2(al, bl, cl, dl, el, words[zl[i]], hl[1], sl[i]) + tr = fn4(ar, br, cr, dr, er, words[zr[i]], hr[1], sr[i]) } else if (i < 48) { - tl = fn3(al, bl, cl, dl, el, words[zl[i]], hl[2], sl[i]); - tr = fn3(ar, br, cr, dr, er, words[zr[i]], hr[2], sr[i]); + tl = fn3(al, bl, cl, dl, el, words[zl[i]], hl[2], sl[i]) + tr = fn3(ar, br, cr, dr, er, words[zr[i]], hr[2], sr[i]) } else if (i < 64) { - tl = fn4(al, bl, cl, dl, el, words[zl[i]], hl[3], sl[i]); - tr = fn2(ar, br, cr, dr, er, words[zr[i]], hr[3], sr[i]); - } else { - // if (i<80) { - tl = fn5(al, bl, cl, dl, el, words[zl[i]], hl[4], sl[i]); - tr = fn1(ar, br, cr, dr, er, words[zr[i]], hr[4], sr[i]); + tl = fn4(al, bl, cl, dl, el, words[zl[i]], hl[3], sl[i]) + tr = fn2(ar, br, cr, dr, er, words[zr[i]], hr[3], sr[i]) + } else { // if (i<80) { + tl = fn5(al, bl, cl, dl, el, words[zl[i]], hl[4], sl[i]) + tr = fn1(ar, br, cr, dr, er, words[zr[i]], hr[4], sr[i]) } - al = el; - el = dl; - dl = rotl(cl, 10); - cl = bl; - bl = tl; + al = el + el = dl + dl = rotl(cl, 10) + cl = bl + bl = tl - ar = er; - er = dr; - dr = rotl(cr, 10); - cr = br; - br = tr; + ar = er + er = dr + dr = rotl(cr, 10) + cr = br + br = tr } // update 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; -}; + 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; + 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, 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(); + 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 = Buffer.alloc ? Buffer.alloc(20) : 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; + var buffer = Buffer.alloc ? Buffer.alloc(20) : 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 fn1(a, b, c, d, e, m, k, s) { - return rotl(a + (b ^ c ^ d) + m + k | 0, s) + e | 0; +function rotl (x, n) { + return (x << n) | (x >>> (32 - n)) } -function fn2(a, b, c, d, e, m, k, s) { - return rotl(a + (b & c | ~b & d) + m + k | 0, s) + e | 0; +function fn1 (a, b, c, d, e, m, k, s) { + return (rotl((a + (b ^ c ^ 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 fn2 (a, b, c, d, e, m, k, s) { + return (rotl((a + ((b & c) | ((~b) & 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 fn3 (a, b, c, d, e, m, k, s) { + return (rotl((a + ((b | (~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; +function fn4 (a, b, c, d, e, m, k, s) { + return (rotl((a + ((b & d) | (c & (~d))) + m + k) | 0, s) + e) | 0 } -module.exports = RIPEMD160; +function fn5 (a, b, c, d, e, m, k, s) { + return (rotl((a + (b ^ (c | (~d))) + m + k) | 0, s) + e) | 0 +} -},{"buffer":401,"hash-base":232,"inherits":247}],275:[function(require,module,exports){ -'use strict'; +module.exports = RIPEMD160 -var assert = require('assert'); -var Buffer = require('safe-buffer').Buffer; +},{"buffer":415,"hash-base":232,"inherits":247}],275:[function(require,module,exports){ +const assert = require('assert') +const Buffer = require('safe-buffer').Buffer /** * 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 @@ -51030,38 +52498,38 @@ var Buffer = require('safe-buffer').Buffer; **/ exports.encode = function (input) { if (input instanceof Array) { - var output = []; + var output = [] for (var i = 0; i < input.length; i++) { - output.push(exports.encode(input[i])); + output.push(exports.encode(input[i])) } - var buf = Buffer.concat(output); - return Buffer.concat([encodeLength(buf.length, 192), buf]); + var buf = Buffer.concat(output) + return Buffer.concat([encodeLength(buf.length, 192), buf]) } else { - input = toBuffer(input); + input = toBuffer(input) if (input.length === 1 && input[0] < 128) { - return input; + return input } else { - return Buffer.concat([encodeLength(input.length, 128), input]); + return Buffer.concat([encodeLength(input.length, 128), input]) } } -}; +} -function safeParseInt(v, base) { +function safeParseInt (v, base) { if (v.slice(0, 2) === '00') { - throw new Error('invalid RLP: extra zeros'); + throw (new Error('invalid RLP: extra zeros')) } - return parseInt(v, base); + return parseInt(v, base) } -function encodeLength(len, offset) { +function encodeLength (len, offset) { if (len < 56) { - return Buffer.from([len + offset]); + return Buffer.from([len + offset]) } else { - var hexLength = intToHex(len); - var lLength = hexLength.length / 2; - var firstByte = intToHex(offset + 55 + lLength); - return Buffer.from(firstByte + hexLength, 'hex'); + var hexLength = intToHex(len) + var lLength = hexLength.length / 2 + var firstByte = intToHex(offset + 55 + lLength) + return Buffer.from(firstByte + hexLength, 'hex') } } @@ -51072,1891 +52540,4527 @@ function encodeLength(len, offset) { **/ exports.decode = function (input, stream) { if (!input || input.length === 0) { - return Buffer.from([]); + return Buffer.from([]) } - input = toBuffer(input); - var decoded = _decode(input); + input = toBuffer(input) + var decoded = _decode(input) if (stream) { - return decoded; + return decoded } - assert.equal(decoded.remainder.length, 0, 'invalid remainder'); - return decoded.data; -}; + assert.equal(decoded.remainder.length, 0, 'invalid remainder') + return decoded.data +} exports.getLength = function (input) { if (!input || input.length === 0) { - return Buffer.from([]); + return Buffer.from([]) } - input = toBuffer(input); - var firstByte = input[0]; + input = toBuffer(input) + var firstByte = input[0] if (firstByte <= 0x7f) { - return input.length; + return input.length } else if (firstByte <= 0xb7) { - return firstByte - 0x7f; + return firstByte - 0x7f } else if (firstByte <= 0xbf) { - return firstByte - 0xb6; + return firstByte - 0xb6 } else if (firstByte <= 0xf7) { // a list between 0-55 bytes long - return firstByte - 0xbf; + 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; + 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]; +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; + length = firstByte - 0x7f // set 0x80 null to 0 if (firstByte === 0x80) { - data = Buffer.from([]); + data = Buffer.from([]) } else { - data = input.slice(1, length); + data = input.slice(1, length) } if (length === 2 && data[0] < 0x80) { - throw new Error('invalid rlp encoding: byte must be less 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); + 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'); + 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); + length = firstByte - 0xbf + innerRemainder = input.slice(1, length) while (innerRemainder.length) { - d = _decode(innerRemainder); - decoded.push(d.data); - innerRemainder = d.remainder; + 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; + 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'); + throw new Error('invalid rlp: total length is larger than the data') } - innerRemainder = input.slice(llength, totalLength); + innerRemainder = input.slice(llength, totalLength) if (innerRemainder.length === 0) { - throw new Error('invalid rlp, List has a invalid length'); + throw new Error('invalid rlp, List has a invalid length') } while (innerRemainder.length) { - d = _decode(innerRemainder); - decoded.push(d.data); - innerRemainder = d.remainder; + 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'; +function isHexPrefixed (str) { + return str.slice(0, 2) === '0x' } // Removes 0x from a given String -function stripHexPrefix(str) { +function stripHexPrefix (str) { if (typeof str !== 'string') { - return str; + return str } - return isHexPrefixed(str) ? str.slice(2) : str; + return isHexPrefixed(str) ? str.slice(2) : str } -function intToHex(i) { - var hex = i.toString(16); +function intToHex (i) { + var hex = i.toString(16) if (hex.length % 2) { - hex = '0' + hex; + hex = '0' + hex } - return hex; + return hex } -function padToEven(a) { - if (a.length % 2) a = '0' + a; - return a; +function padToEven (a) { + if (a.length % 2) a = '0' + a + return a } -function intToBuffer(i) { - var hex = intToHex(i); - return Buffer.from(hex, 'hex'); +function intToBuffer (i) { + var hex = intToHex(i) + return Buffer.from(hex, 'hex') } -function toBuffer(v) { +function toBuffer (v) { if (!Buffer.isBuffer(v)) { if (typeof v === 'string') { if (isHexPrefixed(v)) { - v = Buffer.from(padToEven(stripHexPrefix(v)), 'hex'); + v = Buffer.from(padToEven(stripHexPrefix(v)), 'hex') } else { - v = Buffer.from(v); + v = Buffer.from(v) } } else if (typeof v === 'number') { if (!v) { - v = Buffer.from([]); + v = Buffer.from([]) } else { - v = intToBuffer(v); + v = intToBuffer(v) } } else if (v === null || v === undefined) { - v = Buffer.from([]); + v = Buffer.from([]) } else if (v.toArray) { // converts a BN to a Buffer - v = Buffer.from(v.toArray()); + v = Buffer.from(v.toArray()) } else { - throw new Error('invalid type'); + throw new Error('invalid type') } } - return v; + return v } -},{"assert":335,"safe-buffer":276}],276:[function(require,module,exports){ +},{"assert":349,"safe-buffer":277}],276:[function(require,module,exports){ +/* + * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ 'use strict'; -/* eslint-disable node/no-deprecated-api */ -var buffer = require('buffer'); -var Buffer = buffer.Buffer; +var SDPUtils = require('sdp'); -// 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 fixStatsType(stat) { + return { + inboundrtp: 'inbound-rtp', + outboundrtp: 'outbound-rtp', + candidatepair: 'candidate-pair', + localcandidate: 'local-candidate', + remotecandidate: 'remote-candidate' + }[stat.type] || stat.type; +} + +function writeMediaSection(transceiver, caps, type, stream, dtlsRole) { + var sdp = SDPUtils.writeRtpDescription(transceiver.kind, caps); + + // Map ICE parameters (ufrag, pwd) to SDP. + sdp += SDPUtils.writeIceParameters( + transceiver.iceGatherer.getLocalParameters()); + + // Map DTLS parameters to SDP. + sdp += SDPUtils.writeDtlsParameters( + transceiver.dtlsTransport.getLocalParameters(), + type === 'offer' ? 'actpass' : dtlsRole || 'active'); + + sdp += 'a=mid:' + transceiver.mid + '\r\n'; + + if (transceiver.rtpSender && transceiver.rtpReceiver) { + sdp += 'a=sendrecv\r\n'; + } else if (transceiver.rtpSender) { + sdp += 'a=sendonly\r\n'; + } else if (transceiver.rtpReceiver) { + sdp += 'a=recvonly\r\n'; + } else { + sdp += 'a=inactive\r\n'; + } + + if (transceiver.rtpSender) { + var trackId = transceiver.rtpSender._initialTrackId || + transceiver.rtpSender.track.id; + transceiver.rtpSender._initialTrackId = trackId; + // spec. + var msid = 'msid:' + (stream ? stream.id : '-') + ' ' + + trackId + '\r\n'; + sdp += 'a=' + msid; + // for Chrome. Legacy should no longer be required. + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc + + ' ' + msid; + + // RTX + if (transceiver.sendEncodingParameters[0].rtx) { + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + + ' ' + msid; + sdp += 'a=ssrc-group:FID ' + + transceiver.sendEncodingParameters[0].ssrc + ' ' + + transceiver.sendEncodingParameters[0].rtx.ssrc + + '\r\n'; + } + } + // FIXME: this should be written by writeRtpDescription. + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc + + ' cname:' + SDPUtils.localCName + '\r\n'; + if (transceiver.rtpSender && transceiver.sendEncodingParameters[0].rtx) { + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + + ' cname:' + SDPUtils.localCName + '\r\n'; + } + return sdp; +} + +// Edge does not like +// 1) stun: filtered after 14393 unless ?transport=udp is present +// 2) turn: that does not have all of turn:host:port?transport=udp +// 3) turn: with ipv6 addresses +// 4) turn: occurring muliple times +function filterIceServers(iceServers, edgeVersion) { + var hasTurn = false; + iceServers = JSON.parse(JSON.stringify(iceServers)); + return iceServers.filter(function(server) { + if (server && (server.urls || server.url)) { + var urls = server.urls || server.url; + if (server.url && !server.urls) { + console.warn('RTCIceServer.url is deprecated! Use urls instead.'); + } + var isString = typeof urls === 'string'; + if (isString) { + urls = [urls]; + } + urls = urls.filter(function(url) { + var validTurn = url.indexOf('turn:') === 0 && + url.indexOf('transport=udp') !== -1 && + url.indexOf('turn:[') === -1 && + !hasTurn; -function SafeBuffer(arg, encodingOrOffset, length) { - return Buffer(arg, encodingOrOffset, length); -} + if (validTurn) { + hasTurn = true; + return true; + } + return url.indexOf('stun:') === 0 && edgeVersion >= 14393 && + url.indexOf('?transport=udp') === -1; + }); -// Copy static methods from Buffer -copyProps(Buffer, SafeBuffer); + delete server.url; + server.urls = isString ? urls[0] : urls; + return !!urls.length; + } + }); +} -SafeBuffer.from = function (arg, encodingOrOffset, length) { - if (typeof arg === 'number') { - throw new TypeError('Argument must not be a number'); - } - return Buffer(arg, encodingOrOffset, length); -}; +// Determines the intersection of local and remote capabilities. +function getCommonCapabilities(localCapabilities, remoteCapabilities) { + var commonCapabilities = { + codecs: [], + headerExtensions: [], + fecMechanisms: [] + }; -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); + var findCodecByPayloadType = function(pt, codecs) { + pt = parseInt(pt, 10); + for (var i = 0; i < codecs.length; i++) { + if (codecs[i].payloadType === pt || + codecs[i].preferredPayloadType === pt) { + return codecs[i]; + } } - } 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); -}; + var rtxCapabilityMatches = function(lRtx, rRtx, lCodecs, rCodecs) { + var lCodec = findCodecByPayloadType(lRtx.parameters.apt, lCodecs); + var rCodec = findCodecByPayloadType(rRtx.parameters.apt, rCodecs); + return lCodec && rCodec && + lCodec.name.toLowerCase() === rCodec.name.toLowerCase(); + }; -SafeBuffer.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number'); - } - return buffer.SlowBuffer(size); -}; + localCapabilities.codecs.forEach(function(lCodec) { + for (var i = 0; i < remoteCapabilities.codecs.length; i++) { + var rCodec = remoteCapabilities.codecs[i]; + if (lCodec.name.toLowerCase() === rCodec.name.toLowerCase() && + lCodec.clockRate === rCodec.clockRate) { + if (lCodec.name.toLowerCase() === 'rtx' && + lCodec.parameters && rCodec.parameters.apt) { + // for RTX we need to find the local rtx that has a apt + // which points to the same local codec as the remote one. + if (!rtxCapabilityMatches(lCodec, rCodec, + localCapabilities.codecs, remoteCapabilities.codecs)) { + continue; + } + } + rCodec = JSON.parse(JSON.stringify(rCodec)); // deepcopy + // number of channels is the highest common number of channels + rCodec.numChannels = Math.min(lCodec.numChannels, + rCodec.numChannels); + // push rCodec so we reply with offerer payload type + commonCapabilities.codecs.push(rCodec); + + // determine common feedback mechanisms + rCodec.rtcpFeedback = rCodec.rtcpFeedback.filter(function(fb) { + for (var j = 0; j < lCodec.rtcpFeedback.length; j++) { + if (lCodec.rtcpFeedback[j].type === fb.type && + lCodec.rtcpFeedback[j].parameter === fb.parameter) { + return true; + } + } + return false; + }); + // FIXME: also need to determine .parameters + // see https://github.com/openpeer/ortc/issues/569 + break; + } + } + }); -},{"buffer":401}],277:[function(require,module,exports){ -'use strict'; + localCapabilities.headerExtensions.forEach(function(lHeaderExtension) { + for (var i = 0; i < remoteCapabilities.headerExtensions.length; + i++) { + var rHeaderExtension = remoteCapabilities.headerExtensions[i]; + if (lHeaderExtension.uri === rHeaderExtension.uri) { + commonCapabilities.headerExtensions.push(rHeaderExtension); + break; + } + } + }); -module.exports = require('./lib')(require('./lib/elliptic')); + // FIXME: fecMechanisms + return commonCapabilities; +} -},{"./lib":281,"./lib/elliptic":280}],278:[function(require,module,exports){ -(function (Buffer){ -'use strict'; +// is action=setLocalDescription with type allowed in signalingState +function isActionAllowedInSignalingState(action, type, signalingState) { + return { + offer: { + setLocalDescription: ['stable', 'have-local-offer'], + setRemoteDescription: ['stable', 'have-remote-offer'] + }, + answer: { + setLocalDescription: ['have-remote-offer', 'have-local-pranswer'], + setRemoteDescription: ['have-local-offer', 'have-remote-pranswer'] + } + }[type][action].indexOf(signalingState) !== -1; +} + +function maybeAddCandidate(iceTransport, candidate) { + // Edge's internal representation adds some fields therefore + // not all fieldѕ are taken into account. + var alreadyAdded = iceTransport.getRemoteCandidates() + .find(function(remoteCandidate) { + return candidate.foundation === remoteCandidate.foundation && + candidate.ip === remoteCandidate.ip && + candidate.port === remoteCandidate.port && + candidate.priority === remoteCandidate.priority && + candidate.protocol === remoteCandidate.protocol && + candidate.type === remoteCandidate.type; + }); + if (!alreadyAdded) { + iceTransport.addRemoteCandidate(candidate); + } + return !alreadyAdded; +} + + +function makeError(name, description) { + var e = new Error(description); + e.name = name; + // legacy error codes from https://heycam.github.io/webidl/#idl-DOMException-error-names + e.code = { + NotSupportedError: 9, + InvalidStateError: 11, + InvalidAccessError: 15, + TypeError: undefined, + OperationError: undefined + }[name]; + return e; +} + +module.exports = function(window, edgeVersion) { + // https://w3c.github.io/mediacapture-main/#mediastream + // Helper function to add the track to the stream and + // dispatch the event ourselves. + function addTrackToStreamAndFireEvent(track, stream) { + stream.addTrack(track); + stream.dispatchEvent(new window.MediaStreamTrackEvent('addtrack', + {track: track})); + } + + function removeTrackFromStreamAndFireEvent(track, stream) { + stream.removeTrack(track); + stream.dispatchEvent(new window.MediaStreamTrackEvent('removetrack', + {track: track})); + } + + function fireAddTrack(pc, track, receiver, streams) { + var trackEvent = new Event('track'); + trackEvent.track = track; + trackEvent.receiver = receiver; + trackEvent.transceiver = {receiver: receiver}; + trackEvent.streams = streams; + window.setTimeout(function() { + pc._dispatchEvent('track', trackEvent); + }); + } -var toString = Object.prototype.toString; + var RTCPeerConnection = function(config) { + var pc = this; -// TypeError -exports.isArray = function (value, message) { - if (!Array.isArray(value)) throw TypeError(message); -}; + var _eventTarget = document.createDocumentFragment(); + ['addEventListener', 'removeEventListener', 'dispatchEvent'] + .forEach(function(method) { + pc[method] = _eventTarget[method].bind(_eventTarget); + }); -exports.isBoolean = function (value, message) { - if (toString.call(value) !== '[object Boolean]') throw TypeError(message); -}; + this.canTrickleIceCandidates = null; -exports.isBuffer = function (value, message) { - if (!Buffer.isBuffer(value)) throw TypeError(message); -}; + this.needNegotiation = false; -exports.isFunction = function (value, message) { - if (toString.call(value) !== '[object Function]') throw TypeError(message); -}; + this.localStreams = []; + this.remoteStreams = []; -exports.isNumber = function (value, message) { - if (toString.call(value) !== '[object Number]') throw TypeError(message); -}; + this._localDescription = null; + this._remoteDescription = null; -exports.isObject = function (value, message) { - if (toString.call(value) !== '[object Object]') throw TypeError(message); -}; + this.signalingState = 'stable'; + this.iceConnectionState = 'new'; + this.connectionState = 'new'; + this.iceGatheringState = 'new'; -// RangeError -exports.isBufferLength = function (buffer, length, message) { - if (buffer.length !== length) throw RangeError(message); -}; + config = JSON.parse(JSON.stringify(config || {})); -exports.isBufferLength2 = function (buffer, length1, length2, message) { - if (buffer.length !== length1 && buffer.length !== length2) throw RangeError(message); -}; + this.usingBundle = config.bundlePolicy === 'max-bundle'; + if (config.rtcpMuxPolicy === 'negotiate') { + throw(makeError('NotSupportedError', + 'rtcpMuxPolicy \'negotiate\' is not supported')); + } else if (!config.rtcpMuxPolicy) { + config.rtcpMuxPolicy = 'require'; + } -exports.isLengthGTZero = function (value, message) { - if (value.length === 0) throw RangeError(message); -}; + switch (config.iceTransportPolicy) { + case 'all': + case 'relay': + break; + default: + config.iceTransportPolicy = 'all'; + break; + } -exports.isNumberInInterval = function (number, x, y, message) { - if (number <= x || number >= y) throw RangeError(message); -}; + switch (config.bundlePolicy) { + case 'balanced': + case 'max-compat': + case 'max-bundle': + break; + default: + config.bundlePolicy = 'balanced'; + break; + } -}).call(this,{"isBuffer":require("../../../../../is-buffer/index.js")}) -},{"../../../../../is-buffer/index.js":883}],279:[function(require,module,exports){ -'use strict'; + config.iceServers = filterIceServers(config.iceServers || [], edgeVersion); -var Buffer = require('safe-buffer').Buffer; -var bip66 = require('bip66'); + this._iceGatherers = []; + if (config.iceCandidatePoolSize) { + for (var i = config.iceCandidatePoolSize; i > 0; i--) { + this._iceGatherers.push(new window.RTCIceGatherer({ + iceServers: config.iceServers, + gatherPolicy: config.iceTransportPolicy + })); + } + } else { + config.iceCandidatePoolSize = 0; + } -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]); + this._config = config; -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]); + // per-track iceGathers, iceTransports, dtlsTransports, rtpSenders, ... + // everything that is needed to describe a SDP m-line. + this.transceivers = []; -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; -}; + this._sdpSessionId = SDPUtils.generateSessionId(); + this._sdpSessionVersion = 0; -exports.privateKeyImport = function (privateKey) { - var length = privateKey.length; + this._dtlsRole = undefined; // role for a=setup to use in answers. - // sequence header - var index = 0; - if (length < index + 1 || privateKey[index] !== 0x30) return; - index += 1; + this._isClosed = false; + }; - // sequence length constructor - if (length < index + 1 || !(privateKey[index] & 0x80)) return; + Object.defineProperty(RTCPeerConnection.prototype, 'localDescription', { + configurable: true, + get: function() { + return this._localDescription; + } + }); + Object.defineProperty(RTCPeerConnection.prototype, 'remoteDescription', { + configurable: true, + get: function() { + return this._remoteDescription; + } + }); - var lenb = privateKey[index] & 0x7f; - index += 1; - if (lenb < 1 || lenb > 2) return; - if (length < index + lenb) return; + // set up event handlers on prototype + RTCPeerConnection.prototype.onicecandidate = null; + RTCPeerConnection.prototype.onaddstream = null; + RTCPeerConnection.prototype.ontrack = null; + RTCPeerConnection.prototype.onremovestream = null; + RTCPeerConnection.prototype.onsignalingstatechange = null; + RTCPeerConnection.prototype.oniceconnectionstatechange = null; + RTCPeerConnection.prototype.onconnectionstatechange = null; + RTCPeerConnection.prototype.onicegatheringstatechange = null; + RTCPeerConnection.prototype.onnegotiationneeded = null; + RTCPeerConnection.prototype.ondatachannel = null; + + RTCPeerConnection.prototype._dispatchEvent = function(name, event) { + if (this._isClosed) { + return; + } + this.dispatchEvent(event); + if (typeof this['on' + name] === 'function') { + this['on' + name](event); + } + }; - // sequence length - var len = privateKey[index + lenb - 1] | (lenb > 1 ? privateKey[index + lenb - 2] << 8 : 0); - index += lenb; - if (length < index + len) return; + RTCPeerConnection.prototype._emitGatheringStateChange = function() { + var event = new Event('icegatheringstatechange'); + this._dispatchEvent('icegatheringstatechange', event); + }; - // sequence element 0: version number (=1) - if (length < index + 3 || privateKey[index] !== 0x02 || privateKey[index + 1] !== 0x01 || privateKey[index + 2] !== 0x01) { - return; - } - index += 3; + RTCPeerConnection.prototype.getConfiguration = function() { + return this._config; + }; - // 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; - } + RTCPeerConnection.prototype.getLocalStreams = function() { + return this.localStreams; + }; - return privateKey.slice(index + 2, index + 2 + privateKey[index + 1]); -}; + RTCPeerConnection.prototype.getRemoteStreams = function() { + return this.remoteStreams; + }; -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) {} + // internal helper to create a transceiver object. + // (which is not yet the same as the WebRTC 1.0 transceiver) + RTCPeerConnection.prototype._createTransceiver = function(kind, doNotAdd) { + var hasBundleTransport = this.transceivers.length > 0; + var transceiver = { + track: null, + iceGatherer: null, + iceTransport: null, + dtlsTransport: null, + localCapabilities: null, + remoteCapabilities: null, + rtpSender: null, + rtpReceiver: null, + kind: kind, + mid: null, + sendEncodingParameters: null, + recvEncodingParameters: null, + stream: null, + associatedRemoteMediaStreams: [], + wantReceive: true + }; + if (this.usingBundle && hasBundleTransport) { + transceiver.iceTransport = this.transceivers[0].iceTransport; + transceiver.dtlsTransport = this.transceivers[0].dtlsTransport; + } else { + var transports = this._createIceAndDtlsTransports(); + transceiver.iceTransport = transports.iceTransport; + transceiver.dtlsTransport = transports.dtlsTransport; + } + if (!doNotAdd) { + this.transceivers.push(transceiver); + } + return transceiver; + }; - 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) {} + RTCPeerConnection.prototype.addTrack = function(track, stream) { + if (this._isClosed) { + throw makeError('InvalidStateError', + 'Attempted to call addTrack on a closed peerconnection.'); + } - return bip66.encode(r.slice(posR), s.slice(posS)); -}; + var alreadyExists = this.transceivers.find(function(s) { + return s.track === track; + }); -exports.signatureImport = function (sig) { - var r = Buffer.alloc(32, 0); - var s = Buffer.alloc(32, 0); + if (alreadyExists) { + throw makeError('InvalidAccessError', 'Track already exists.'); + } - 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; - } + var transceiver; + for (var i = 0; i < this.transceivers.length; i++) { + if (!this.transceivers[i].track && + this.transceivers[i].kind === track.kind) { + transceiver = this.transceivers[i]; + } + } + if (!transceiver) { + transceiver = this._createTransceiver(track.kind); + } - sigObj.r.copy(r, 32 - sigObj.r.length); - sigObj.s.copy(s, 32 - sigObj.s.length); + this._maybeFireNegotiationNeeded(); - return { r: r, s: s }; -}; + if (this.localStreams.indexOf(stream) === -1) { + this.localStreams.push(stream); + } -exports.signatureImportLax = function (sig) { - var r = Buffer.alloc(32, 0); - var s = Buffer.alloc(32, 0); + transceiver.track = track; + transceiver.stream = stream; + transceiver.rtpSender = new window.RTCRtpSender(track, + transceiver.dtlsTransport); + return transceiver.rtpSender; + }; - var length = sig.length; - var index = 0; + RTCPeerConnection.prototype.addStream = function(stream) { + var pc = this; + if (edgeVersion >= 15025) { + stream.getTracks().forEach(function(track) { + pc.addTrack(track, stream); + }); + } else { + // Clone is necessary for local demos mostly, attaching directly + // to two different senders does not work (build 10547). + // Fixed in 15025 (or earlier) + var clonedStream = stream.clone(); + stream.getTracks().forEach(function(track, idx) { + var clonedTrack = clonedStream.getTracks()[idx]; + track.addEventListener('enabled', function(event) { + clonedTrack.enabled = event.enabled; + }); + }); + clonedStream.getTracks().forEach(function(track) { + pc.addTrack(track, clonedStream); + }); + } + }; - // sequence tag byte - if (sig[index++] !== 0x30) return; + RTCPeerConnection.prototype.removeTrack = function(sender) { + if (this._isClosed) { + throw makeError('InvalidStateError', + 'Attempted to call removeTrack on a closed peerconnection.'); + } - // sequence length byte - var lenbyte = sig[index++]; - if (lenbyte & 0x80) { - index += lenbyte - 0x80; - if (index > length) return; - } + if (!(sender instanceof window.RTCRtpSender)) { + throw new TypeError('Argument 1 of RTCPeerConnection.removeTrack ' + + 'does not implement interface RTCRtpSender.'); + } - // sequence tag byte for r - if (sig[index++] !== 0x02) return; + var transceiver = this.transceivers.find(function(t) { + return t.rtpSender === sender; + }); - // 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 (!transceiver) { + throw makeError('InvalidAccessError', + 'Sender was not created by this connection.'); } - } - if (rlen > length - index) return; - var rindex = index; - index += rlen; + var stream = transceiver.stream; - // sequence tag byte for s - if (sig[index++] !== 0x02) return; + transceiver.rtpSender.stop(); + transceiver.rtpSender = null; + transceiver.track = null; + transceiver.stream = null; - // 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]; + // remove the stream from the set of local streams + var localStreams = this.transceivers.map(function(t) { + return t.stream; + }); + if (localStreams.indexOf(stream) === -1 && + this.localStreams.indexOf(stream) > -1) { + this.localStreams.splice(this.localStreams.indexOf(stream), 1); } - } - 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); + this._maybeFireNegotiationNeeded(); + }; - // 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); + RTCPeerConnection.prototype.removeStream = function(stream) { + var pc = this; + stream.getTracks().forEach(function(track) { + var sender = pc.getSenders().find(function(s) { + return s.track === track; + }); + if (sender) { + pc.removeTrack(sender); + } + }); + }; - return { r: r, s: s }; -}; + RTCPeerConnection.prototype.getSenders = function() { + return this.transceivers.filter(function(transceiver) { + return !!transceiver.rtpSender; + }) + .map(function(transceiver) { + return transceiver.rtpSender; + }); + }; -},{"bip66":180,"safe-buffer":276}],280:[function(require,module,exports){ -'use strict'; + RTCPeerConnection.prototype.getReceivers = function() { + return this.transceivers.filter(function(transceiver) { + return !!transceiver.rtpReceiver; + }) + .map(function(transceiver) { + return transceiver.rtpReceiver; + }); + }; -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'); + RTCPeerConnection.prototype._createIceGatherer = function(sdpMLineIndex, + usingBundle) { + var pc = this; + if (usingBundle && sdpMLineIndex > 0) { + return this.transceivers[0].iceGatherer; + } else if (this._iceGatherers.length) { + return this._iceGatherers.shift(); + } + var iceGatherer = new window.RTCIceGatherer({ + iceServers: this._config.iceServers, + gatherPolicy: this._config.iceTransportPolicy + }); + Object.defineProperty(iceGatherer, 'state', + {value: 'new', writable: true} + ); -var ec = new EC('secp256k1'); -var ecparams = ec.curve; + this.transceivers[sdpMLineIndex].bufferedCandidateEvents = []; + this.transceivers[sdpMLineIndex].bufferCandidates = function(event) { + var end = !event.candidate || Object.keys(event.candidate).length === 0; + // polyfill since RTCIceGatherer.state is not implemented in + // Edge 10547 yet. + iceGatherer.state = end ? 'completed' : 'gathering'; + if (pc.transceivers[sdpMLineIndex].bufferedCandidateEvents !== null) { + pc.transceivers[sdpMLineIndex].bufferedCandidateEvents.push(event); + } + }; + iceGatherer.addEventListener('localcandidate', + this.transceivers[sdpMLineIndex].bufferCandidates); + return iceGatherer; + }; -function loadCompressedPublicKey(first, xBuffer) { - var x = new BN(xBuffer); + // start gathering from an RTCIceGatherer. + RTCPeerConnection.prototype._gather = function(mid, sdpMLineIndex) { + var pc = this; + var iceGatherer = this.transceivers[sdpMLineIndex].iceGatherer; + if (iceGatherer.onlocalcandidate) { + return; + } + var bufferedCandidateEvents = + this.transceivers[sdpMLineIndex].bufferedCandidateEvents; + this.transceivers[sdpMLineIndex].bufferedCandidateEvents = null; + iceGatherer.removeEventListener('localcandidate', + this.transceivers[sdpMLineIndex].bufferCandidates); + iceGatherer.onlocalcandidate = function(evt) { + if (pc.usingBundle && sdpMLineIndex > 0) { + // if we know that we use bundle we can drop candidates with + // ѕdpMLineIndex > 0. If we don't do this then our state gets + // confused since we dispose the extra ice gatherer. + return; + } + var event = new Event('icecandidate'); + event.candidate = {sdpMid: mid, sdpMLineIndex: sdpMLineIndex}; - // overflow - if (x.cmp(ecparams.p) >= 0) return null; - x = x.toRed(ecparams.red); + var cand = evt.candidate; + // Edge emits an empty object for RTCIceCandidateComplete‥ + var end = !cand || Object.keys(cand).length === 0; + if (end) { + // polyfill since RTCIceGatherer.state is not implemented in + // Edge 10547 yet. + if (iceGatherer.state === 'new' || iceGatherer.state === 'gathering') { + iceGatherer.state = 'completed'; + } + } else { + if (iceGatherer.state === 'new') { + iceGatherer.state = 'gathering'; + } + // RTCIceCandidate doesn't have a component, needs to be added + cand.component = 1; + // also the usernameFragment. TODO: update SDP to take both variants. + cand.ufrag = iceGatherer.getLocalParameters().usernameFragment; - // compute corresponding Y - var y = x.redSqr().redIMul(x).redIAdd(ecparams.b).redSqrt(); - if (first === 0x03 !== y.isOdd()) y = y.redNeg(); + var serializedCandidate = SDPUtils.writeCandidate(cand); + event.candidate = Object.assign(event.candidate, + SDPUtils.parseCandidate(serializedCandidate)); - return ec.keyPair({ pub: { x: x, y: y } }); -} + event.candidate.candidate = serializedCandidate; + event.candidate.toJSON = function() { + return { + candidate: event.candidate.candidate, + sdpMid: event.candidate.sdpMid, + sdpMLineIndex: event.candidate.sdpMLineIndex, + usernameFragment: event.candidate.usernameFragment + }; + }; + } -function loadUncompressedPublicKey(first, xBuffer, yBuffer) { - var x = new BN(xBuffer); - var y = new BN(yBuffer); + // update local description. + var sections = SDPUtils.getMediaSections(pc._localDescription.sdp); + if (!end) { + sections[event.candidate.sdpMLineIndex] += + 'a=' + event.candidate.candidate + '\r\n'; + } else { + sections[event.candidate.sdpMLineIndex] += + 'a=end-of-candidates\r\n'; + } + pc._localDescription.sdp = + SDPUtils.getDescription(pc._localDescription.sdp) + + sections.join(''); + var complete = pc.transceivers.every(function(transceiver) { + return transceiver.iceGatherer && + transceiver.iceGatherer.state === 'completed'; + }); - // overflow - if (x.cmp(ecparams.p) >= 0 || y.cmp(ecparams.p) >= 0) return null; + if (pc.iceGatheringState !== 'gathering') { + pc.iceGatheringState = 'gathering'; + pc._emitGatheringStateChange(); + } - x = x.toRed(ecparams.red); - y = y.toRed(ecparams.red); + // Emit candidate. Also emit null candidate when all gatherers are + // complete. + if (!end) { + pc._dispatchEvent('icecandidate', event); + } + if (complete) { + pc._dispatchEvent('icecandidate', new Event('icecandidate')); + pc.iceGatheringState = 'complete'; + pc._emitGatheringStateChange(); + } + }; - // is odd flag - if ((first === 0x06 || first === 0x07) && y.isOdd() !== (first === 0x07)) return null; + // emit already gathered candidates. + window.setTimeout(function() { + bufferedCandidateEvents.forEach(function(e) { + iceGatherer.onlocalcandidate(e); + }); + }, 0); + }; - // x*x*x + b = y*y - var x3 = x.redSqr().redIMul(x); - if (!y.redSqr().redISub(x3.redIAdd(ecparams.b)).isZero()) return null; + // Create ICE transport and DTLS transport. + RTCPeerConnection.prototype._createIceAndDtlsTransports = function() { + var pc = this; + var iceTransport = new window.RTCIceTransport(null); + iceTransport.onicestatechange = function() { + pc._updateIceConnectionState(); + pc._updateConnectionState(); + }; - return ec.keyPair({ pub: { x: x, y: y } }); -} + var dtlsTransport = new window.RTCDtlsTransport(iceTransport); + dtlsTransport.ondtlsstatechange = function() { + pc._updateConnectionState(); + }; + dtlsTransport.onerror = function() { + // onerror does not set state to failed by itself. + Object.defineProperty(dtlsTransport, 'state', + {value: 'failed', writable: true}); + pc._updateConnectionState(); + }; -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; - } -} + return { + iceTransport: iceTransport, + dtlsTransport: dtlsTransport + }; + }; + + // Destroy ICE gatherer, ICE transport and DTLS transport. + // Without triggering the callbacks. + RTCPeerConnection.prototype._disposeIceAndDtlsTransports = function( + sdpMLineIndex) { + var iceGatherer = this.transceivers[sdpMLineIndex].iceGatherer; + if (iceGatherer) { + delete iceGatherer.onlocalcandidate; + delete this.transceivers[sdpMLineIndex].iceGatherer; + } + var iceTransport = this.transceivers[sdpMLineIndex].iceTransport; + if (iceTransport) { + delete iceTransport.onicestatechange; + delete this.transceivers[sdpMLineIndex].iceTransport; + } + var dtlsTransport = this.transceivers[sdpMLineIndex].dtlsTransport; + if (dtlsTransport) { + delete dtlsTransport.ondtlsstatechange; + delete dtlsTransport.onerror; + delete this.transceivers[sdpMLineIndex].dtlsTransport; + } + }; + + // Start the RTP Sender and Receiver for a transceiver. + RTCPeerConnection.prototype._transceive = function(transceiver, + send, recv) { + var params = getCommonCapabilities(transceiver.localCapabilities, + transceiver.remoteCapabilities); + if (send && transceiver.rtpSender) { + params.encodings = transceiver.sendEncodingParameters; + params.rtcp = { + cname: SDPUtils.localCName, + compound: transceiver.rtcpParameters.compound + }; + if (transceiver.recvEncodingParameters.length) { + params.rtcp.ssrc = transceiver.recvEncodingParameters[0].ssrc; + } + transceiver.rtpSender.send(params); + } + if (recv && transceiver.rtpReceiver && params.codecs.length > 0) { + // remove RTX field in Edge 14942 + if (transceiver.kind === 'video' + && transceiver.recvEncodingParameters + && edgeVersion < 15019) { + transceiver.recvEncodingParameters.forEach(function(p) { + delete p.rtx; + }); + } + if (transceiver.recvEncodingParameters.length) { + params.encodings = transceiver.recvEncodingParameters; + } else { + params.encodings = [{}]; + } + params.rtcp = { + compound: transceiver.rtcpParameters.compound + }; + if (transceiver.rtcpParameters.cname) { + params.rtcp.cname = transceiver.rtcpParameters.cname; + } + if (transceiver.sendEncodingParameters.length) { + params.rtcp.ssrc = transceiver.sendEncodingParameters[0].ssrc; + } + transceiver.rtpReceiver.receive(params); + } + }; -exports.privateKeyVerify = function (privateKey) { - var bn = new BN(privateKey); - return bn.cmp(ecparams.n) < 0 && !bn.isZero(); -}; + RTCPeerConnection.prototype.setLocalDescription = function(description) { + var pc = this; -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); + // Note: pranswer is not supported. + if (['offer', 'answer'].indexOf(description.type) === -1) { + return Promise.reject(makeError('TypeError', + 'Unsupported type "' + description.type + '"')); + } - return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true)); -}; + if (!isActionAllowedInSignalingState('setLocalDescription', + description.type, pc.signalingState) || pc._isClosed) { + return Promise.reject(makeError('InvalidStateError', + 'Can not set local ' + description.type + + ' in state ' + pc.signalingState)); + } -exports.privateKeyNegate = function (privateKey) { - var bn = new BN(privateKey); - return bn.isZero() ? Buffer.alloc(32) : ecparams.n.sub(bn).umod(ecparams.n).toArrayLike(Buffer, 'be', 32); -}; + var sections; + var sessionpart; + if (description.type === 'offer') { + // VERY limited support for SDP munging. Limited to: + // * changing the order of codecs + sections = SDPUtils.splitSections(description.sdp); + sessionpart = sections.shift(); + sections.forEach(function(mediaSection, sdpMLineIndex) { + var caps = SDPUtils.parseRtpParameters(mediaSection); + pc.transceivers[sdpMLineIndex].localCapabilities = caps; + }); -exports.privateKeyModInverse = function (privateKey) { - var bn = new BN(privateKey); - if (bn.cmp(ecparams.n) >= 0 || bn.isZero()) throw new Error(messages.EC_PRIVATE_KEY_RANGE_INVALID); + pc.transceivers.forEach(function(transceiver, sdpMLineIndex) { + pc._gather(transceiver.mid, sdpMLineIndex); + }); + } else if (description.type === 'answer') { + sections = SDPUtils.splitSections(pc._remoteDescription.sdp); + sessionpart = sections.shift(); + var isIceLite = SDPUtils.matchPrefix(sessionpart, + 'a=ice-lite').length > 0; + sections.forEach(function(mediaSection, sdpMLineIndex) { + var transceiver = pc.transceivers[sdpMLineIndex]; + var iceGatherer = transceiver.iceGatherer; + var iceTransport = transceiver.iceTransport; + var dtlsTransport = transceiver.dtlsTransport; + var localCapabilities = transceiver.localCapabilities; + var remoteCapabilities = transceiver.remoteCapabilities; + + // treat bundle-only as not-rejected. + var rejected = SDPUtils.isRejected(mediaSection) && + SDPUtils.matchPrefix(mediaSection, 'a=bundle-only').length === 0; + + if (!rejected && !transceiver.rejected) { + var remoteIceParameters = SDPUtils.getIceParameters( + mediaSection, sessionpart); + var remoteDtlsParameters = SDPUtils.getDtlsParameters( + mediaSection, sessionpart); + if (isIceLite) { + remoteDtlsParameters.role = 'server'; + } - return bn.invm(ecparams.n).toArrayLike(Buffer, 'be', 32); -}; + if (!pc.usingBundle || sdpMLineIndex === 0) { + pc._gather(transceiver.mid, sdpMLineIndex); + if (iceTransport.state === 'new') { + iceTransport.start(iceGatherer, remoteIceParameters, + isIceLite ? 'controlling' : 'controlled'); + } + if (dtlsTransport.state === 'new') { + dtlsTransport.start(remoteDtlsParameters); + } + } -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); + // Calculate intersection of capabilities. + var params = getCommonCapabilities(localCapabilities, + remoteCapabilities); - 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); + // Start the RTCRtpSender. The RTCRtpReceiver for this + // transceiver has already been started in setRemoteDescription. + pc._transceive(transceiver, + params.codecs.length > 0, + false); + } + }); + } - return bn.toArrayLike(Buffer, 'be', 32); -}; + pc._localDescription = { + type: description.type, + sdp: description.sdp + }; + if (description.type === 'offer') { + pc._updateSignalingState('have-local-offer'); + } else { + pc._updateSignalingState('stable'); + } -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); + return Promise.resolve(); + }; - bn.imul(new BN(privateKey)); - if (bn.cmp(ecparams.n)) bn = bn.umod(ecparams.n); + RTCPeerConnection.prototype.setRemoteDescription = function(description) { + var pc = this; - return bn.toArrayLike(Buffer, 'be', 32); -}; + // Note: pranswer is not supported. + if (['offer', 'answer'].indexOf(description.type) === -1) { + return Promise.reject(makeError('TypeError', + 'Unsupported type "' + description.type + '"')); + } -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); + if (!isActionAllowedInSignalingState('setRemoteDescription', + description.type, pc.signalingState) || pc._isClosed) { + return Promise.reject(makeError('InvalidStateError', + 'Can not set remote ' + description.type + + ' in state ' + pc.signalingState)); + } - return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true)); -}; + var streams = {}; + pc.remoteStreams.forEach(function(stream) { + streams[stream.id] = stream; + }); + var receiverList = []; + var sections = SDPUtils.splitSections(description.sdp); + var sessionpart = sections.shift(); + var isIceLite = SDPUtils.matchPrefix(sessionpart, + 'a=ice-lite').length > 0; + var usingBundle = SDPUtils.matchPrefix(sessionpart, + 'a=group:BUNDLE ').length > 0; + pc.usingBundle = usingBundle; + var iceOptions = SDPUtils.matchPrefix(sessionpart, + 'a=ice-options:')[0]; + if (iceOptions) { + pc.canTrickleIceCandidates = iceOptions.substr(14).split(' ') + .indexOf('trickle') >= 0; + } else { + pc.canTrickleIceCandidates = false; + } + + sections.forEach(function(mediaSection, sdpMLineIndex) { + var lines = SDPUtils.splitLines(mediaSection); + var kind = SDPUtils.getKind(mediaSection); + // treat bundle-only as not-rejected. + var rejected = SDPUtils.isRejected(mediaSection) && + SDPUtils.matchPrefix(mediaSection, 'a=bundle-only').length === 0; + var protocol = lines[0].substr(2).split(' ')[2]; + + var direction = SDPUtils.getDirection(mediaSection, sessionpart); + var remoteMsid = SDPUtils.parseMsid(mediaSection); + + var mid = SDPUtils.getMid(mediaSection) || SDPUtils.generateIdentifier(); + + // Reject datachannels which are not implemented yet. + if (rejected || (kind === 'application' && (protocol === 'DTLS/SCTP' || + protocol === 'UDP/DTLS/SCTP'))) { + // TODO: this is dangerous in the case where a non-rejected m-line + // becomes rejected. + pc.transceivers[sdpMLineIndex] = { + mid: mid, + kind: kind, + protocol: protocol, + rejected: true + }; + return; + } -exports.publicKeyConvert = function (publicKey, compressed) { - var pair = loadPublicKey(publicKey); - if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL); + if (!rejected && pc.transceivers[sdpMLineIndex] && + pc.transceivers[sdpMLineIndex].rejected) { + // recycle a rejected transceiver. + pc.transceivers[sdpMLineIndex] = pc._createTransceiver(kind, true); + } + + var transceiver; + var iceGatherer; + var iceTransport; + var dtlsTransport; + var rtpReceiver; + var sendEncodingParameters; + var recvEncodingParameters; + var localCapabilities; + + var track; + // FIXME: ensure the mediaSection has rtcp-mux set. + var remoteCapabilities = SDPUtils.parseRtpParameters(mediaSection); + var remoteIceParameters; + var remoteDtlsParameters; + if (!rejected) { + remoteIceParameters = SDPUtils.getIceParameters(mediaSection, + sessionpart); + remoteDtlsParameters = SDPUtils.getDtlsParameters(mediaSection, + sessionpart); + remoteDtlsParameters.role = 'client'; + } + recvEncodingParameters = + SDPUtils.parseRtpEncodingParameters(mediaSection); + + var rtcpParameters = SDPUtils.parseRtcpParameters(mediaSection); + + var isComplete = SDPUtils.matchPrefix(mediaSection, + 'a=end-of-candidates', sessionpart).length > 0; + var cands = SDPUtils.matchPrefix(mediaSection, 'a=candidate:') + .map(function(cand) { + return SDPUtils.parseCandidate(cand); + }) + .filter(function(cand) { + return cand.component === 1; + }); - return Buffer.from(pair.getPublic(compressed, true)); -}; + // Check if we can use BUNDLE and dispose transports. + if ((description.type === 'offer' || description.type === 'answer') && + !rejected && usingBundle && sdpMLineIndex > 0 && + pc.transceivers[sdpMLineIndex]) { + pc._disposeIceAndDtlsTransports(sdpMLineIndex); + pc.transceivers[sdpMLineIndex].iceGatherer = + pc.transceivers[0].iceGatherer; + pc.transceivers[sdpMLineIndex].iceTransport = + pc.transceivers[0].iceTransport; + pc.transceivers[sdpMLineIndex].dtlsTransport = + pc.transceivers[0].dtlsTransport; + if (pc.transceivers[sdpMLineIndex].rtpSender) { + pc.transceivers[sdpMLineIndex].rtpSender.setTransport( + pc.transceivers[0].dtlsTransport); + } + if (pc.transceivers[sdpMLineIndex].rtpReceiver) { + pc.transceivers[sdpMLineIndex].rtpReceiver.setTransport( + pc.transceivers[0].dtlsTransport); + } + } + if (description.type === 'offer' && !rejected) { + transceiver = pc.transceivers[sdpMLineIndex] || + pc._createTransceiver(kind); + transceiver.mid = mid; + + if (!transceiver.iceGatherer) { + transceiver.iceGatherer = pc._createIceGatherer(sdpMLineIndex, + usingBundle); + } + + if (cands.length && transceiver.iceTransport.state === 'new') { + if (isComplete && (!usingBundle || sdpMLineIndex === 0)) { + transceiver.iceTransport.setRemoteCandidates(cands); + } else { + cands.forEach(function(candidate) { + maybeAddCandidate(transceiver.iceTransport, candidate); + }); + } + } -exports.publicKeyVerify = function (publicKey) { - return loadPublicKey(publicKey) !== null; -}; + localCapabilities = window.RTCRtpReceiver.getCapabilities(kind); -exports.publicKeyTweakAdd = function (publicKey, tweak, compressed) { - var pair = loadPublicKey(publicKey); - if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL); + // filter RTX until additional stuff needed for RTX is implemented + // in adapter.js + if (edgeVersion < 15019) { + localCapabilities.codecs = localCapabilities.codecs.filter( + function(codec) { + return codec.name !== 'rtx'; + }); + } - tweak = new BN(tweak); - if (tweak.cmp(ecparams.n) >= 0) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL); + sendEncodingParameters = transceiver.sendEncodingParameters || [{ + ssrc: (2 * sdpMLineIndex + 2) * 1001 + }]; + + // TODO: rewrite to use http://w3c.github.io/webrtc-pc/#set-associated-remote-streams + var isNewTrack = false; + if (direction === 'sendrecv' || direction === 'sendonly') { + isNewTrack = !transceiver.rtpReceiver; + rtpReceiver = transceiver.rtpReceiver || + new window.RTCRtpReceiver(transceiver.dtlsTransport, kind); + + if (isNewTrack) { + var stream; + track = rtpReceiver.track; + // FIXME: does not work with Plan B. + if (remoteMsid && remoteMsid.stream === '-') { + // no-op. a stream id of '-' means: no associated stream. + } else if (remoteMsid) { + if (!streams[remoteMsid.stream]) { + streams[remoteMsid.stream] = new window.MediaStream(); + Object.defineProperty(streams[remoteMsid.stream], 'id', { + get: function() { + return remoteMsid.stream; + } + }); + } + Object.defineProperty(track, 'id', { + get: function() { + return remoteMsid.track; + } + }); + stream = streams[remoteMsid.stream]; + } else { + if (!streams.default) { + streams.default = new window.MediaStream(); + } + stream = streams.default; + } + if (stream) { + addTrackToStreamAndFireEvent(track, stream); + transceiver.associatedRemoteMediaStreams.push(stream); + } + receiverList.push([track, rtpReceiver, stream]); + } + } else if (transceiver.rtpReceiver && transceiver.rtpReceiver.track) { + transceiver.associatedRemoteMediaStreams.forEach(function(s) { + var nativeTrack = s.getTracks().find(function(t) { + return t.id === transceiver.rtpReceiver.track.id; + }); + if (nativeTrack) { + removeTrackFromStreamAndFireEvent(nativeTrack, s); + } + }); + transceiver.associatedRemoteMediaStreams = []; + } + + transceiver.localCapabilities = localCapabilities; + transceiver.remoteCapabilities = remoteCapabilities; + transceiver.rtpReceiver = rtpReceiver; + transceiver.rtcpParameters = rtcpParameters; + transceiver.sendEncodingParameters = sendEncodingParameters; + transceiver.recvEncodingParameters = recvEncodingParameters; + + // Start the RTCRtpReceiver now. The RTPSender is started in + // setLocalDescription. + pc._transceive(pc.transceivers[sdpMLineIndex], + false, + isNewTrack); + } else if (description.type === 'answer' && !rejected) { + transceiver = pc.transceivers[sdpMLineIndex]; + iceGatherer = transceiver.iceGatherer; + iceTransport = transceiver.iceTransport; + dtlsTransport = transceiver.dtlsTransport; + rtpReceiver = transceiver.rtpReceiver; + sendEncodingParameters = transceiver.sendEncodingParameters; + localCapabilities = transceiver.localCapabilities; + + pc.transceivers[sdpMLineIndex].recvEncodingParameters = + recvEncodingParameters; + pc.transceivers[sdpMLineIndex].remoteCapabilities = + remoteCapabilities; + pc.transceivers[sdpMLineIndex].rtcpParameters = rtcpParameters; + + if (cands.length && iceTransport.state === 'new') { + if ((isIceLite || isComplete) && + (!usingBundle || sdpMLineIndex === 0)) { + iceTransport.setRemoteCandidates(cands); + } else { + cands.forEach(function(candidate) { + maybeAddCandidate(transceiver.iceTransport, candidate); + }); + } + } - return Buffer.from(ecparams.g.mul(tweak).add(pair.pub).encode(true, compressed)); -}; + if (!usingBundle || sdpMLineIndex === 0) { + if (iceTransport.state === 'new') { + iceTransport.start(iceGatherer, remoteIceParameters, + 'controlling'); + } + if (dtlsTransport.state === 'new') { + dtlsTransport.start(remoteDtlsParameters); + } + } -exports.publicKeyTweakMul = function (publicKey, tweak, compressed) { - var pair = loadPublicKey(publicKey); - if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL); + // If the offer contained RTX but the answer did not, + // remove RTX from sendEncodingParameters. + var commonCapabilities = getCommonCapabilities( + transceiver.localCapabilities, + transceiver.remoteCapabilities); - tweak = new BN(tweak); - if (tweak.cmp(ecparams.n) >= 0 || tweak.isZero()) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_MUL_FAIL); + var hasRtx = commonCapabilities.codecs.filter(function(c) { + return c.name.toLowerCase() === 'rtx'; + }).length; + if (!hasRtx && transceiver.sendEncodingParameters[0].rtx) { + delete transceiver.sendEncodingParameters[0].rtx; + } - return Buffer.from(pair.pub.mul(tweak).encode(true, compressed)); -}; + pc._transceive(transceiver, + direction === 'sendrecv' || direction === 'recvonly', + direction === 'sendrecv' || direction === 'sendonly'); -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); - } + // TODO: rewrite to use http://w3c.github.io/webrtc-pc/#set-associated-remote-streams + if (rtpReceiver && + (direction === 'sendrecv' || direction === 'sendonly')) { + track = rtpReceiver.track; + if (remoteMsid) { + if (!streams[remoteMsid.stream]) { + streams[remoteMsid.stream] = new window.MediaStream(); + } + addTrackToStreamAndFireEvent(track, streams[remoteMsid.stream]); + receiverList.push([track, rtpReceiver, streams[remoteMsid.stream]]); + } else { + if (!streams.default) { + streams.default = new window.MediaStream(); + } + addTrackToStreamAndFireEvent(track, streams.default); + receiverList.push([track, rtpReceiver, streams.default]); + } + } else { + // FIXME: actually the receiver should be created later. + delete transceiver.rtpReceiver; + } + } + }); - 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); + if (pc._dtlsRole === undefined) { + pc._dtlsRole = description.type === 'offer' ? 'active' : 'passive'; + } - return Buffer.from(point.encode(true, compressed)); -}; + pc._remoteDescription = { + type: description.type, + sdp: description.sdp + }; + if (description.type === 'offer') { + pc._updateSignalingState('have-remote-offer'); + } else { + pc._updateSignalingState('stable'); + } + Object.keys(streams).forEach(function(sid) { + var stream = streams[sid]; + if (stream.getTracks().length) { + if (pc.remoteStreams.indexOf(stream) === -1) { + pc.remoteStreams.push(stream); + var event = new Event('addstream'); + event.stream = stream; + window.setTimeout(function() { + pc._dispatchEvent('addstream', event); + }); + } -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); + receiverList.forEach(function(item) { + var track = item[0]; + var receiver = item[1]; + if (stream.id !== item[2].id) { + return; + } + fireAddTrack(pc, track, receiver, [stream]); + }); + } + }); + receiverList.forEach(function(item) { + if (item[2]) { + return; + } + fireAddTrack(pc, item[0], item[1], []); + }); - var result = Buffer.from(signature); - if (s.cmp(ec.nh) === 1) ecparams.n.sub(s).toArrayLike(Buffer, 'be', 32).copy(result, 32); + // check whether addIceCandidate({}) was called within four seconds after + // setRemoteDescription. + window.setTimeout(function() { + if (!(pc && pc.transceivers)) { + return; + } + pc.transceivers.forEach(function(transceiver) { + if (transceiver.iceTransport && + transceiver.iceTransport.state === 'new' && + transceiver.iceTransport.getRemoteCandidates().length > 0) { + console.warn('Timeout for addRemoteCandidate. Consider sending ' + + 'an end-of-candidates notification'); + transceiver.iceTransport.addRemoteCandidate({}); + } + }); + }, 4000); - return result; -}; + return Promise.resolve(); + }; -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); + RTCPeerConnection.prototype.close = function() { + this.transceivers.forEach(function(transceiver) { + /* not yet + if (transceiver.iceGatherer) { + transceiver.iceGatherer.close(); + } + */ + if (transceiver.iceTransport) { + transceiver.iceTransport.stop(); + } + if (transceiver.dtlsTransport) { + transceiver.dtlsTransport.stop(); + } + if (transceiver.rtpSender) { + transceiver.rtpSender.stop(); + } + if (transceiver.rtpReceiver) { + transceiver.rtpReceiver.stop(); + } + }); + // FIXME: clean up tracks, local streams, remote streams, etc + this._isClosed = true; + this._updateSignalingState('closed'); + }; - return { r: r, s: s }; -}; + // Update the signaling state. + RTCPeerConnection.prototype._updateSignalingState = function(newState) { + this.signalingState = newState; + var event = new Event('signalingstatechange'); + this._dispatchEvent('signalingstatechange', event); + }; -exports.signatureImport = function (sigObj) { - var r = new BN(sigObj.r); - if (r.cmp(ecparams.n) >= 0) r = new BN(0); + // Determine whether to fire the negotiationneeded event. + RTCPeerConnection.prototype._maybeFireNegotiationNeeded = function() { + var pc = this; + if (this.signalingState !== 'stable' || this.needNegotiation === true) { + return; + } + this.needNegotiation = true; + window.setTimeout(function() { + if (pc.needNegotiation) { + pc.needNegotiation = false; + var event = new Event('negotiationneeded'); + pc._dispatchEvent('negotiationneeded', event); + } + }, 0); + }; - var s = new BN(sigObj.s); - if (s.cmp(ecparams.n) >= 0) s = new BN(0); + // Update the ice connection state. + RTCPeerConnection.prototype._updateIceConnectionState = function() { + var newState; + var states = { + 'new': 0, + closed: 0, + checking: 0, + connected: 0, + completed: 0, + disconnected: 0, + failed: 0 + }; + this.transceivers.forEach(function(transceiver) { + states[transceiver.iceTransport.state]++; + }); - return Buffer.concat([r.toArrayLike(Buffer, 'be', 32), s.toArrayLike(Buffer, 'be', 32)]); -}; + newState = 'new'; + if (states.failed > 0) { + newState = 'failed'; + } else if (states.checking > 0) { + newState = 'checking'; + } else if (states.disconnected > 0) { + newState = 'disconnected'; + } else if (states.new > 0) { + newState = 'new'; + } else if (states.connected > 0) { + newState = 'connected'; + } else if (states.completed > 0) { + newState = 'completed'; + } + + if (newState !== this.iceConnectionState) { + this.iceConnectionState = newState; + var event = new Event('iceconnectionstatechange'); + this._dispatchEvent('iceconnectionstatechange', event); + } + }; + + // Update the connection state. + RTCPeerConnection.prototype._updateConnectionState = function() { + var newState; + var states = { + 'new': 0, + closed: 0, + connecting: 0, + connected: 0, + completed: 0, + disconnected: 0, + failed: 0 + }; + this.transceivers.forEach(function(transceiver) { + states[transceiver.iceTransport.state]++; + states[transceiver.dtlsTransport.state]++; + }); + // ICETransport.completed and connected are the same for this purpose. + states.connected += states.completed; + + newState = 'new'; + if (states.failed > 0) { + newState = 'failed'; + } else if (states.connecting > 0) { + newState = 'connecting'; + } else if (states.disconnected > 0) { + newState = 'disconnected'; + } else if (states.new > 0) { + newState = 'new'; + } else if (states.connected > 0) { + newState = 'connected'; + } + + if (newState !== this.connectionState) { + this.connectionState = newState; + var event = new Event('connectionstatechange'); + this._dispatchEvent('connectionstatechange', event); + } + }; + + RTCPeerConnection.prototype.createOffer = function() { + var pc = this; + + if (pc._isClosed) { + return Promise.reject(makeError('InvalidStateError', + 'Can not call createOffer after close')); + } + + var numAudioTracks = pc.transceivers.filter(function(t) { + return t.kind === 'audio'; + }).length; + var numVideoTracks = pc.transceivers.filter(function(t) { + return t.kind === 'video'; + }).length; + + // Determine number of audio and video tracks we need to send/recv. + var offerOptions = arguments[0]; + if (offerOptions) { + // Reject Chrome legacy constraints. + if (offerOptions.mandatory || offerOptions.optional) { + throw new TypeError( + 'Legacy mandatory/optional constraints not supported.'); + } + if (offerOptions.offerToReceiveAudio !== undefined) { + if (offerOptions.offerToReceiveAudio === true) { + numAudioTracks = 1; + } else if (offerOptions.offerToReceiveAudio === false) { + numAudioTracks = 0; + } else { + numAudioTracks = offerOptions.offerToReceiveAudio; + } + } + if (offerOptions.offerToReceiveVideo !== undefined) { + if (offerOptions.offerToReceiveVideo === true) { + numVideoTracks = 1; + } else if (offerOptions.offerToReceiveVideo === false) { + numVideoTracks = 0; + } else { + numVideoTracks = offerOptions.offerToReceiveVideo; + } + } + } -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); + pc.transceivers.forEach(function(transceiver) { + if (transceiver.kind === 'audio') { + numAudioTracks--; + if (numAudioTracks < 0) { + transceiver.wantReceive = false; + } + } else if (transceiver.kind === 'video') { + numVideoTracks--; + if (numVideoTracks < 0) { + transceiver.wantReceive = false; + } + } + }); - return new BN(nonce); - }; - } + // Create M-lines for recvonly streams. + while (numAudioTracks > 0 || numVideoTracks > 0) { + if (numAudioTracks > 0) { + pc._createTransceiver('audio'); + numAudioTracks--; + } + if (numVideoTracks > 0) { + pc._createTransceiver('video'); + numVideoTracks--; + } + } - var d = new BN(privateKey); - if (d.cmp(ecparams.n) >= 0 || d.isZero()) throw new Error(messages.ECDSA_SIGN_FAIL); + var sdp = SDPUtils.writeSessionBoilerplate(pc._sdpSessionId, + pc._sdpSessionVersion++); + pc.transceivers.forEach(function(transceiver, sdpMLineIndex) { + // For each track, create an ice gatherer, ice transport, + // dtls transport, potentially rtpsender and rtpreceiver. + var track = transceiver.track; + var kind = transceiver.kind; + var mid = transceiver.mid || SDPUtils.generateIdentifier(); + transceiver.mid = mid; - 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 - }; -}; + if (!transceiver.iceGatherer) { + transceiver.iceGatherer = pc._createIceGatherer(sdpMLineIndex, + pc.usingBundle); + } -exports.verify = function (message, signature, publicKey) { - var sigObj = { r: signature.slice(0, 32), s: signature.slice(32, 64) }; + var localCapabilities = window.RTCRtpSender.getCapabilities(kind); + // filter RTX until additional stuff needed for RTX is implemented + // in adapter.js + if (edgeVersion < 15019) { + localCapabilities.codecs = localCapabilities.codecs.filter( + function(codec) { + return codec.name !== 'rtx'; + }); + } + localCapabilities.codecs.forEach(function(codec) { + // work around https://bugs.chromium.org/p/webrtc/issues/detail?id=6552 + // by adding level-asymmetry-allowed=1 + if (codec.name === 'H264' && + codec.parameters['level-asymmetry-allowed'] === undefined) { + codec.parameters['level-asymmetry-allowed'] = '1'; + } + + // for subsequent offers, we might have to re-use the payload + // type of the last offer. + if (transceiver.remoteCapabilities && + transceiver.remoteCapabilities.codecs) { + transceiver.remoteCapabilities.codecs.forEach(function(remoteCodec) { + if (codec.name.toLowerCase() === remoteCodec.name.toLowerCase() && + codec.clockRate === remoteCodec.clockRate) { + codec.preferredPayloadType = remoteCodec.payloadType; + } + }); + } + }); + localCapabilities.headerExtensions.forEach(function(hdrExt) { + var remoteExtensions = transceiver.remoteCapabilities && + transceiver.remoteCapabilities.headerExtensions || []; + remoteExtensions.forEach(function(rHdrExt) { + if (hdrExt.uri === rHdrExt.uri) { + hdrExt.id = rHdrExt.id; + } + }); + }); - 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; + // generate an ssrc now, to be used later in rtpSender.send + var sendEncodingParameters = transceiver.sendEncodingParameters || [{ + ssrc: (2 * sdpMLineIndex + 1) * 1001 + }]; + if (track) { + // add RTX + if (edgeVersion >= 15019 && kind === 'video' && + !sendEncodingParameters[0].rtx) { + sendEncodingParameters[0].rtx = { + ssrc: sendEncodingParameters[0].ssrc + 1 + }; + } + } - var pair = loadPublicKey(publicKey); - if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL); + if (transceiver.wantReceive) { + transceiver.rtpReceiver = new window.RTCRtpReceiver( + transceiver.dtlsTransport, kind); + } - return ec.verify(message, sigObj, { x: pair.pub.x, y: pair.pub.y }); -}; + transceiver.localCapabilities = localCapabilities; + transceiver.sendEncodingParameters = sendEncodingParameters; + }); -exports.recover = function (message, signature, recovery, compressed) { - var sigObj = { r: signature.slice(0, 32), s: signature.slice(32, 64) }; + // always offer BUNDLE and dispose on return if not supported. + if (pc._config.bundlePolicy !== 'max-compat') { + sdp += 'a=group:BUNDLE ' + pc.transceivers.map(function(t) { + return t.mid; + }).join(' ') + '\r\n'; + } + sdp += 'a=ice-options:trickle\r\n'; - 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); + pc.transceivers.forEach(function(transceiver, sdpMLineIndex) { + sdp += writeMediaSection(transceiver, transceiver.localCapabilities, + 'offer', transceiver.stream, pc._dtlsRole); + sdp += 'a=rtcp-rsize\r\n'; - try { - if (sigr.isZero() || sigs.isZero()) throw new Error(); + if (transceiver.iceGatherer && pc.iceGatheringState !== 'new' && + (sdpMLineIndex === 0 || !pc.usingBundle)) { + transceiver.iceGatherer.getLocalCandidates().forEach(function(cand) { + cand.component = 1; + sdp += 'a=' + SDPUtils.writeCandidate(cand) + '\r\n'; + }); - var point = ec.recoverPubKey(message, sigObj, recovery); - return Buffer.from(point.encode(true, compressed)); - } catch (err) { - throw new Error(messages.ECDSA_RECOVER_FAIL); - } -}; + if (transceiver.iceGatherer.state === 'completed') { + sdp += 'a=end-of-candidates\r\n'; + } + } + }); -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 desc = new window.RTCSessionDescription({ + type: 'offer', + sdp: sdp + }); + return Promise.resolve(desc); + }; - var scalar = new BN(privateKey); - if (scalar.cmp(ecparams.n) >= 0 || scalar.isZero()) throw new Error(messages.ECDH_FAIL); + RTCPeerConnection.prototype.createAnswer = function() { + var pc = this; - return Buffer.from(pair.pub.mul(scalar).encode(true, compressed)); -}; + if (pc._isClosed) { + return Promise.reject(makeError('InvalidStateError', + 'Can not call createAnswer after close')); + } -},{"../messages.json":282,"bn.js":182,"create-hash":190,"elliptic":196,"safe-buffer":276}],281:[function(require,module,exports){ -'use strict'; + if (!(pc.signalingState === 'have-remote-offer' || + pc.signalingState === 'have-local-pranswer')) { + return Promise.reject(makeError('InvalidStateError', + 'Can not call createAnswer in signalingState ' + pc.signalingState)); + } -var assert = require('./assert'); -var der = require('./der'); -var messages = require('./messages.json'); + var sdp = SDPUtils.writeSessionBoilerplate(pc._sdpSessionId, + pc._sdpSessionVersion++); + if (pc.usingBundle) { + sdp += 'a=group:BUNDLE ' + pc.transceivers.map(function(t) { + return t.mid; + }).join(' ') + '\r\n'; + } + sdp += 'a=ice-options:trickle\r\n'; -function initCompressedValue(value, defaultValue) { - if (value === undefined) return defaultValue; + var mediaSectionsInOffer = SDPUtils.getMediaSections( + pc._remoteDescription.sdp).length; + pc.transceivers.forEach(function(transceiver, sdpMLineIndex) { + if (sdpMLineIndex + 1 > mediaSectionsInOffer) { + return; + } + if (transceiver.rejected) { + if (transceiver.kind === 'application') { + if (transceiver.protocol === 'DTLS/SCTP') { // legacy fmt + sdp += 'm=application 0 DTLS/SCTP 5000\r\n'; + } else { + sdp += 'm=application 0 ' + transceiver.protocol + + ' webrtc-datachannel\r\n'; + } + } else if (transceiver.kind === 'audio') { + sdp += 'm=audio 0 UDP/TLS/RTP/SAVPF 0\r\n' + + 'a=rtpmap:0 PCMU/8000\r\n'; + } else if (transceiver.kind === 'video') { + sdp += 'm=video 0 UDP/TLS/RTP/SAVPF 120\r\n' + + 'a=rtpmap:120 VP8/90000\r\n'; + } + sdp += 'c=IN IP4 0.0.0.0\r\n' + + 'a=inactive\r\n' + + 'a=mid:' + transceiver.mid + '\r\n'; + return; + } - assert.isBoolean(value, messages.COMPRESSED_TYPE_INVALID); - return value; -} + // FIXME: look at direction. + if (transceiver.stream) { + var localTrack; + if (transceiver.kind === 'audio') { + localTrack = transceiver.stream.getAudioTracks()[0]; + } else if (transceiver.kind === 'video') { + localTrack = transceiver.stream.getVideoTracks()[0]; + } + if (localTrack) { + // add RTX + if (edgeVersion >= 15019 && transceiver.kind === 'video' && + !transceiver.sendEncodingParameters[0].rtx) { + transceiver.sendEncodingParameters[0].rtx = { + ssrc: transceiver.sendEncodingParameters[0].ssrc + 1 + }; + } + } + } -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); - }, + // Calculate intersection of capabilities. + var commonCapabilities = getCommonCapabilities( + transceiver.localCapabilities, + transceiver.remoteCapabilities); - privateKeyExport: function privateKeyExport(privateKey, compressed) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); + var hasRtx = commonCapabilities.codecs.filter(function(c) { + return c.name.toLowerCase() === 'rtx'; + }).length; + if (!hasRtx && transceiver.sendEncodingParameters[0].rtx) { + delete transceiver.sendEncodingParameters[0].rtx; + } - compressed = initCompressedValue(compressed, true); - var publicKey = secp256k1.privateKeyExport(privateKey, compressed); + sdp += writeMediaSection(transceiver, commonCapabilities, + 'answer', transceiver.stream, pc._dtlsRole); + if (transceiver.rtcpParameters && + transceiver.rtcpParameters.reducedSize) { + sdp += 'a=rtcp-rsize\r\n'; + } + }); - return der.privateKeyExport(privateKey, publicKey, compressed); - }, + var desc = new window.RTCSessionDescription({ + type: 'answer', + sdp: sdp + }); + return Promise.resolve(desc); + }; - privateKeyImport: function privateKeyImport(privateKey) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); + RTCPeerConnection.prototype.addIceCandidate = function(candidate) { + var pc = this; + var sections; + if (candidate && !(candidate.sdpMLineIndex !== undefined || + candidate.sdpMid)) { + return Promise.reject(new TypeError('sdpMLineIndex or sdpMid required')); + } - privateKey = der.privateKeyImport(privateKey); - if (privateKey && privateKey.length === 32 && secp256k1.privateKeyVerify(privateKey)) return privateKey; + // TODO: needs to go into ops queue. + return new Promise(function(resolve, reject) { + if (!pc._remoteDescription) { + return reject(makeError('InvalidStateError', + 'Can not add ICE candidate without a remote description')); + } else if (!candidate || candidate.candidate === '') { + for (var j = 0; j < pc.transceivers.length; j++) { + if (pc.transceivers[j].rejected) { + continue; + } + pc.transceivers[j].iceTransport.addRemoteCandidate({}); + sections = SDPUtils.getMediaSections(pc._remoteDescription.sdp); + sections[j] += 'a=end-of-candidates\r\n'; + pc._remoteDescription.sdp = + SDPUtils.getDescription(pc._remoteDescription.sdp) + + sections.join(''); + if (pc.usingBundle) { + break; + } + } + } else { + var sdpMLineIndex = candidate.sdpMLineIndex; + if (candidate.sdpMid) { + for (var i = 0; i < pc.transceivers.length; i++) { + if (pc.transceivers[i].mid === candidate.sdpMid) { + sdpMLineIndex = i; + break; + } + } + } + var transceiver = pc.transceivers[sdpMLineIndex]; + if (transceiver) { + if (transceiver.rejected) { + return resolve(); + } + var cand = Object.keys(candidate.candidate).length > 0 ? + SDPUtils.parseCandidate(candidate.candidate) : {}; + // Ignore Chrome's invalid candidates since Edge does not like them. + if (cand.protocol === 'tcp' && (cand.port === 0 || cand.port === 9)) { + return resolve(); + } + // Ignore RTCP candidates, we assume RTCP-MUX. + if (cand.component && cand.component !== 1) { + return resolve(); + } + // when using bundle, avoid adding candidates to the wrong + // ice transport. And avoid adding candidates added in the SDP. + if (sdpMLineIndex === 0 || (sdpMLineIndex > 0 && + transceiver.iceTransport !== pc.transceivers[0].iceTransport)) { + if (!maybeAddCandidate(transceiver.iceTransport, cand)) { + return reject(makeError('OperationError', + 'Can not add ICE candidate')); + } + } - throw new Error(messages.EC_PRIVATE_KEY_IMPORT_DER_FAIL); - }, + // update the remoteDescription. + var candidateString = candidate.candidate.trim(); + if (candidateString.indexOf('a=') === 0) { + candidateString = candidateString.substr(2); + } + sections = SDPUtils.getMediaSections(pc._remoteDescription.sdp); + sections[sdpMLineIndex] += 'a=' + + (cand.type ? candidateString : 'end-of-candidates') + + '\r\n'; + pc._remoteDescription.sdp = + SDPUtils.getDescription(pc._remoteDescription.sdp) + + sections.join(''); + } else { + return reject(makeError('OperationError', + 'Can not add ICE candidate')); + } + } + resolve(); + }); + }; - privateKeyNegate: function privateKeyNegate(privateKey) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); + RTCPeerConnection.prototype.getStats = function(selector) { + if (selector && selector instanceof window.MediaStreamTrack) { + var senderOrReceiver = null; + this.transceivers.forEach(function(transceiver) { + if (transceiver.rtpSender && + transceiver.rtpSender.track === selector) { + senderOrReceiver = transceiver.rtpSender; + } else if (transceiver.rtpReceiver && + transceiver.rtpReceiver.track === selector) { + senderOrReceiver = transceiver.rtpReceiver; + } + }); + if (!senderOrReceiver) { + throw makeError('InvalidAccessError', 'Invalid selector.'); + } + return senderOrReceiver.getStats(); + } - return secp256k1.privateKeyNegate(privateKey); - }, + var promises = []; + this.transceivers.forEach(function(transceiver) { + ['rtpSender', 'rtpReceiver', 'iceGatherer', 'iceTransport', + 'dtlsTransport'].forEach(function(method) { + if (transceiver[method]) { + promises.push(transceiver[method].getStats()); + } + }); + }); + return Promise.all(promises).then(function(allStats) { + var results = new Map(); + allStats.forEach(function(stats) { + stats.forEach(function(stat) { + results.set(stat.id, stat); + }); + }); + return results; + }); + }; - privateKeyModInverse: function privateKeyModInverse(privateKey) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); + // fix low-level stat names and return Map instead of object. + var ortcObjects = ['RTCRtpSender', 'RTCRtpReceiver', 'RTCIceGatherer', + 'RTCIceTransport', 'RTCDtlsTransport']; + ortcObjects.forEach(function(ortcObjectName) { + var obj = window[ortcObjectName]; + if (obj && obj.prototype && obj.prototype.getStats) { + var nativeGetstats = obj.prototype.getStats; + obj.prototype.getStats = function() { + return nativeGetstats.apply(this) + .then(function(nativeStats) { + var mapStats = new Map(); + Object.keys(nativeStats).forEach(function(id) { + nativeStats[id].type = fixStatsType(nativeStats[id]); + mapStats.set(id, nativeStats[id]); + }); + return mapStats; + }); + }; + } + }); - return secp256k1.privateKeyModInverse(privateKey); - }, + // legacy callback shims. Should be moved to adapter.js some days. + var methods = ['createOffer', 'createAnswer']; + methods.forEach(function(method) { + var nativeMethod = RTCPeerConnection.prototype[method]; + RTCPeerConnection.prototype[method] = function() { + var args = arguments; + if (typeof args[0] === 'function' || + typeof args[1] === 'function') { // legacy + return nativeMethod.apply(this, [arguments[2]]) + .then(function(description) { + if (typeof args[0] === 'function') { + args[0].apply(null, [description]); + } + }, function(error) { + if (typeof args[1] === 'function') { + args[1].apply(null, [error]); + } + }); + } + return nativeMethod.apply(this, arguments); + }; + }); - privateKeyTweakAdd: function privateKeyTweakAdd(privateKey, tweak) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); + methods = ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate']; + methods.forEach(function(method) { + var nativeMethod = RTCPeerConnection.prototype[method]; + RTCPeerConnection.prototype[method] = function() { + var args = arguments; + if (typeof args[1] === 'function' || + typeof args[2] === 'function') { // legacy + return nativeMethod.apply(this, arguments) + .then(function() { + if (typeof args[1] === 'function') { + args[1].apply(null); + } + }, function(error) { + if (typeof args[2] === 'function') { + args[2].apply(null, [error]); + } + }); + } + return nativeMethod.apply(this, arguments); + }; + }); - assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID); - assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID); + // getStats is special. It doesn't have a spec legacy method yet we support + // getStats(something, cb) without error callbacks. + ['getStats'].forEach(function(method) { + var nativeMethod = RTCPeerConnection.prototype[method]; + RTCPeerConnection.prototype[method] = function() { + var args = arguments; + if (typeof args[1] === 'function') { + return nativeMethod.apply(this, arguments) + .then(function() { + if (typeof args[1] === 'function') { + args[1].apply(null); + } + }); + } + return nativeMethod.apply(this, arguments); + }; + }); - return secp256k1.privateKeyTweakAdd(privateKey, tweak); - }, + return RTCPeerConnection; +}; - privateKeyTweakMul: function privateKeyTweakMul(privateKey, tweak) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +},{"sdp":278}],277:[function(require,module,exports){ +/* eslint-disable node/no-deprecated-api */ +var buffer = require('buffer') +var Buffer = buffer.Buffer - assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID); - assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID); +// 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 +} - return secp256k1.privateKeyTweakMul(privateKey, tweak); - }, +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} - publicKeyCreate: function publicKeyCreate(privateKey, compressed) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) - compressed = initCompressedValue(compressed, true); +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} - return secp256k1.publicKeyCreate(privateKey, compressed); - }, +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 +} - 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); +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) +} - compressed = initCompressedValue(compressed, true); +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} - return secp256k1.publicKeyConvert(publicKey, compressed); - }, +},{"buffer":415}],278:[function(require,module,exports){ + /* eslint-env node */ +'use strict'; - publicKeyVerify: function publicKeyVerify(publicKey) { - assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID); - return secp256k1.publicKeyVerify(publicKey); - }, +// SDP helpers. +var SDPUtils = {}; - 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); +// Generate an alphanumeric identifier for cname or mids. +// TODO: use UUIDs instead? https://gist.github.com/jed/982883 +SDPUtils.generateIdentifier = function() { + return Math.random().toString(36).substr(2, 10); +}; - assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID); - assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID); +// The RTCP CNAME used by all peerconnections from the same JS. +SDPUtils.localCName = SDPUtils.generateIdentifier(); - compressed = initCompressedValue(compressed, true); +// Splits SDP into lines, dealing with both CRLF and LF. +SDPUtils.splitLines = function(blob) { + return blob.trim().split('\n').map(function(line) { + return line.trim(); + }); +}; +// Splits SDP into sessionpart and mediasections. Ensures CRLF. +SDPUtils.splitSections = function(blob) { + var parts = blob.split('\nm='); + return parts.map(function(part, index) { + return (index > 0 ? 'm=' + part : part).trim() + '\r\n'; + }); +}; - return secp256k1.publicKeyTweakAdd(publicKey, tweak, compressed); - }, +// returns the session description. +SDPUtils.getDescription = function(blob) { + var sections = SDPUtils.splitSections(blob); + return sections && sections[0]; +}; - 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); +// returns the individual media sections. +SDPUtils.getMediaSections = function(blob) { + var sections = SDPUtils.splitSections(blob); + sections.shift(); + return sections; +}; - assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID); - assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID); +// Returns lines that start with a certain prefix. +SDPUtils.matchPrefix = function(blob, prefix) { + return SDPUtils.splitLines(blob).filter(function(line) { + return line.indexOf(prefix) === 0; + }); +}; - compressed = initCompressedValue(compressed, true); +// Parses an ICE candidate line. Sample input: +// candidate:702786350 2 udp 41819902 8.8.8.8 60769 typ relay raddr 8.8.8.8 +// rport 55996" +SDPUtils.parseCandidate = function(line) { + var parts; + // Parse both variants. + if (line.indexOf('a=candidate:') === 0) { + parts = line.substring(12).split(' '); + } else { + parts = line.substring(10).split(' '); + } - return secp256k1.publicKeyTweakMul(publicKey, tweak, compressed); - }, + var candidate = { + foundation: parts[0], + component: parseInt(parts[1], 10), + protocol: parts[2].toLowerCase(), + priority: parseInt(parts[3], 10), + ip: parts[4], + address: parts[4], // address is an alias for ip. + port: parseInt(parts[5], 10), + // skip parts[6] == 'typ' + type: parts[7] + }; - 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); - } + for (var i = 8; i < parts.length; i += 2) { + switch (parts[i]) { + case 'raddr': + candidate.relatedAddress = parts[i + 1]; + break; + case 'rport': + candidate.relatedPort = parseInt(parts[i + 1], 10); + break; + case 'tcptype': + candidate.tcpType = parts[i + 1]; + break; + case 'ufrag': + candidate.ufrag = parts[i + 1]; // for backward compability. + candidate.usernameFragment = parts[i + 1]; + break; + default: // extension handling, in particular ufrag + candidate[parts[i]] = parts[i + 1]; + break; + } + } + return candidate; +}; - compressed = initCompressedValue(compressed, true); +// Translates a candidate object into SDP candidate attribute. +SDPUtils.writeCandidate = function(candidate) { + var sdp = []; + sdp.push(candidate.foundation); + sdp.push(candidate.component); + sdp.push(candidate.protocol.toUpperCase()); + sdp.push(candidate.priority); + sdp.push(candidate.address || candidate.ip); + sdp.push(candidate.port); - return secp256k1.publicKeyCombine(publicKeys, compressed); - }, + var type = candidate.type; + sdp.push('typ'); + sdp.push(type); + if (type !== 'host' && candidate.relatedAddress && + candidate.relatedPort) { + sdp.push('raddr'); + sdp.push(candidate.relatedAddress); + sdp.push('rport'); + sdp.push(candidate.relatedPort); + } + if (candidate.tcpType && candidate.protocol.toLowerCase() === 'tcp') { + sdp.push('tcptype'); + sdp.push(candidate.tcpType); + } + if (candidate.usernameFragment || candidate.ufrag) { + sdp.push('ufrag'); + sdp.push(candidate.usernameFragment || candidate.ufrag); + } + return 'candidate:' + sdp.join(' '); +}; - signatureNormalize: function signatureNormalize(signature) { - assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID); +// Parses an ice-options line, returns an array of option tags. +// a=ice-options:foo bar +SDPUtils.parseIceOptions = function(line) { + return line.substr(14).split(' '); +}; - return secp256k1.signatureNormalize(signature); - }, +// Parses an rtpmap line, returns RTCRtpCoddecParameters. Sample input: +// a=rtpmap:111 opus/48000/2 +SDPUtils.parseRtpMap = function(line) { + var parts = line.substr(9).split(' '); + var parsed = { + payloadType: parseInt(parts.shift(), 10) // was: id + }; - signatureExport: function signatureExport(signature) { - assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID); + parts = parts[0].split('/'); - var sigObj = secp256k1.signatureExport(signature); - return der.signatureExport(sigObj); - }, + parsed.name = parts[0]; + parsed.clockRate = parseInt(parts[1], 10); // was: clockrate + parsed.channels = parts.length === 3 ? parseInt(parts[2], 10) : 1; + // legacy alias, got renamed back to channels in ORTC. + parsed.numChannels = parsed.channels; + return parsed; +}; - signatureImport: function signatureImport(sig) { - assert.isBuffer(sig, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isLengthGTZero(sig, messages.ECDSA_SIGNATURE_LENGTH_INVALID); +// Generate an a=rtpmap line from RTCRtpCodecCapability or +// RTCRtpCodecParameters. +SDPUtils.writeRtpMap = function(codec) { + var pt = codec.payloadType; + if (codec.preferredPayloadType !== undefined) { + pt = codec.preferredPayloadType; + } + var channels = codec.channels || codec.numChannels || 1; + return 'a=rtpmap:' + pt + ' ' + codec.name + '/' + codec.clockRate + + (channels !== 1 ? '/' + channels : '') + '\r\n'; +}; - var sigObj = der.signatureImport(sig); - if (sigObj) return secp256k1.signatureImport(sigObj); +// Parses an a=extmap line (headerextension from RFC 5285). Sample input: +// a=extmap:2 urn:ietf:params:rtp-hdrext:toffset +// a=extmap:2/sendonly urn:ietf:params:rtp-hdrext:toffset +SDPUtils.parseExtmap = function(line) { + var parts = line.substr(9).split(' '); + return { + id: parseInt(parts[0], 10), + direction: parts[0].indexOf('/') > 0 ? parts[0].split('/')[1] : 'sendrecv', + uri: parts[1] + }; +}; + +// Generates a=extmap line from RTCRtpHeaderExtensionParameters or +// RTCRtpHeaderExtension. +SDPUtils.writeExtmap = function(headerExtension) { + return 'a=extmap:' + (headerExtension.id || headerExtension.preferredId) + + (headerExtension.direction && headerExtension.direction !== 'sendrecv' + ? '/' + headerExtension.direction + : '') + + ' ' + headerExtension.uri + '\r\n'; +}; + +// Parses an ftmp line, returns dictionary. Sample input: +// a=fmtp:96 vbr=on;cng=on +// Also deals with vbr=on; cng=on +SDPUtils.parseFmtp = function(line) { + var parsed = {}; + var kv; + var parts = line.substr(line.indexOf(' ') + 1).split(';'); + for (var j = 0; j < parts.length; j++) { + kv = parts[j].trim().split('='); + parsed[kv[0].trim()] = kv[1]; + } + return parsed; +}; + +// Generates an a=ftmp line from RTCRtpCodecCapability or RTCRtpCodecParameters. +SDPUtils.writeFmtp = function(codec) { + var line = ''; + var pt = codec.payloadType; + if (codec.preferredPayloadType !== undefined) { + pt = codec.preferredPayloadType; + } + if (codec.parameters && Object.keys(codec.parameters).length) { + var params = []; + Object.keys(codec.parameters).forEach(function(param) { + if (codec.parameters[param]) { + params.push(param + '=' + codec.parameters[param]); + } else { + params.push(param); + } + }); + line += 'a=fmtp:' + pt + ' ' + params.join(';') + '\r\n'; + } + return line; +}; - throw new Error(messages.ECDSA_SIGNATURE_PARSE_DER_FAIL); - }, +// Parses an rtcp-fb line, returns RTCPRtcpFeedback object. Sample input: +// a=rtcp-fb:98 nack rpsi +SDPUtils.parseRtcpFb = function(line) { + var parts = line.substr(line.indexOf(' ') + 1).split(' '); + return { + type: parts.shift(), + parameter: parts.join(' ') + }; +}; +// Generate a=rtcp-fb lines from RTCRtpCodecCapability or RTCRtpCodecParameters. +SDPUtils.writeRtcpFb = function(codec) { + var lines = ''; + var pt = codec.payloadType; + if (codec.preferredPayloadType !== undefined) { + pt = codec.preferredPayloadType; + } + if (codec.rtcpFeedback && codec.rtcpFeedback.length) { + // FIXME: special handling for trr-int? + codec.rtcpFeedback.forEach(function(fb) { + lines += 'a=rtcp-fb:' + pt + ' ' + fb.type + + (fb.parameter && fb.parameter.length ? ' ' + fb.parameter : '') + + '\r\n'; + }); + } + return lines; +}; - signatureImportLax: function signatureImportLax(sig) { - assert.isBuffer(sig, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isLengthGTZero(sig, messages.ECDSA_SIGNATURE_LENGTH_INVALID); +// Parses an RFC 5576 ssrc media attribute. Sample input: +// a=ssrc:3735928559 cname:something +SDPUtils.parseSsrcMedia = function(line) { + var sp = line.indexOf(' '); + var parts = { + ssrc: parseInt(line.substr(7, sp - 7), 10) + }; + var colon = line.indexOf(':', sp); + if (colon > -1) { + parts.attribute = line.substr(sp + 1, colon - sp - 1); + parts.value = line.substr(colon + 1); + } else { + parts.attribute = line.substr(sp + 1); + } + return parts; +}; - var sigObj = der.signatureImportLax(sig); - if (sigObj) return secp256k1.signatureImport(sigObj); +SDPUtils.parseSsrcGroup = function(line) { + var parts = line.substr(13).split(' '); + return { + semantics: parts.shift(), + ssrcs: parts.map(function(ssrc) { + return parseInt(ssrc, 10); + }) + }; +}; - throw new Error(messages.ECDSA_SIGNATURE_PARSE_DER_FAIL); - }, +// Extracts the MID (RFC 5888) from a media section. +// returns the MID or undefined if no mid line was found. +SDPUtils.getMid = function(mediaSection) { + var mid = SDPUtils.matchPrefix(mediaSection, 'a=mid:')[0]; + if (mid) { + return mid.substr(6); + } +}; - sign: function sign(message, privateKey, options) { - assert.isBuffer(message, messages.MSG32_TYPE_INVALID); - assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID); +SDPUtils.parseFingerprint = function(line) { + var parts = line.substr(14).split(' '); + return { + algorithm: parts[0].toLowerCase(), // algorithm is case-sensitive in Edge. + value: parts[1] + }; +}; - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +// Extracts DTLS parameters from SDP media section or sessionpart. +// FIXME: for consistency with other functions this should only +// get the fingerprint line as input. See also getIceParameters. +SDPUtils.getDtlsParameters = function(mediaSection, sessionpart) { + var lines = SDPUtils.matchPrefix(mediaSection + sessionpart, + 'a=fingerprint:'); + // Note: a=setup line is ignored since we use the 'auto' role. + // Note2: 'algorithm' is not case sensitive except in Edge. + return { + role: 'auto', + fingerprints: lines.map(SDPUtils.parseFingerprint) + }; +}; - var data = null; - var noncefn = null; - if (options !== undefined) { - assert.isObject(options, messages.OPTIONS_TYPE_INVALID); +// Serializes DTLS parameters to SDP. +SDPUtils.writeDtlsParameters = function(params, setupType) { + var sdp = 'a=setup:' + setupType + '\r\n'; + params.fingerprints.forEach(function(fp) { + sdp += 'a=fingerprint:' + fp.algorithm + ' ' + fp.value + '\r\n'; + }); + return sdp; +}; +// Parses ICE information from SDP media section or sessionpart. +// FIXME: for consistency with other functions this should only +// get the ice-ufrag and ice-pwd lines as input. +SDPUtils.getIceParameters = function(mediaSection, sessionpart) { + var lines = SDPUtils.splitLines(mediaSection); + // Search in session part, too. + lines = lines.concat(SDPUtils.splitLines(sessionpart)); + var iceParameters = { + usernameFragment: lines.filter(function(line) { + return line.indexOf('a=ice-ufrag:') === 0; + })[0].substr(12), + password: lines.filter(function(line) { + return line.indexOf('a=ice-pwd:') === 0; + })[0].substr(10) + }; + return iceParameters; +}; + +// Serializes ICE parameters to SDP. +SDPUtils.writeIceParameters = function(params) { + return 'a=ice-ufrag:' + params.usernameFragment + '\r\n' + + 'a=ice-pwd:' + params.password + '\r\n'; +}; + +// Parses the SDP media section and returns RTCRtpParameters. +SDPUtils.parseRtpParameters = function(mediaSection) { + var description = { + codecs: [], + headerExtensions: [], + fecMechanisms: [], + rtcp: [] + }; + var lines = SDPUtils.splitLines(mediaSection); + var mline = lines[0].split(' '); + for (var i = 3; i < mline.length; i++) { // find all codecs from mline[3..] + var pt = mline[i]; + var rtpmapline = SDPUtils.matchPrefix( + mediaSection, 'a=rtpmap:' + pt + ' ')[0]; + if (rtpmapline) { + var codec = SDPUtils.parseRtpMap(rtpmapline); + var fmtps = SDPUtils.matchPrefix( + mediaSection, 'a=fmtp:' + pt + ' '); + // Only the first a=fmtp: is considered. + codec.parameters = fmtps.length ? SDPUtils.parseFmtp(fmtps[0]) : {}; + codec.rtcpFeedback = SDPUtils.matchPrefix( + mediaSection, 'a=rtcp-fb:' + pt + ' ') + .map(SDPUtils.parseRtcpFb); + description.codecs.push(codec); + // parse FEC mechanisms from rtpmap lines. + switch (codec.name.toUpperCase()) { + case 'RED': + case 'ULPFEC': + description.fecMechanisms.push(codec.name.toUpperCase()); + break; + default: // only RED and ULPFEC are recognized as FEC mechanisms. + break; + } + } + } + SDPUtils.matchPrefix(mediaSection, 'a=extmap:').forEach(function(line) { + description.headerExtensions.push(SDPUtils.parseExtmap(line)); + }); + // FIXME: parse rtcp. + return description; +}; + +// Generates parts of the SDP media section describing the capabilities / +// parameters. +SDPUtils.writeRtpDescription = function(kind, caps) { + var sdp = ''; + + // Build the mline. + sdp += 'm=' + kind + ' '; + sdp += caps.codecs.length > 0 ? '9' : '0'; // reject if no codecs. + sdp += ' UDP/TLS/RTP/SAVPF '; + sdp += caps.codecs.map(function(codec) { + if (codec.preferredPayloadType !== undefined) { + return codec.preferredPayloadType; + } + return codec.payloadType; + }).join(' ') + '\r\n'; + + sdp += 'c=IN IP4 0.0.0.0\r\n'; + sdp += 'a=rtcp:9 IN IP4 0.0.0.0\r\n'; + + // Add a=rtpmap lines for each codec. Also fmtp and rtcp-fb. + caps.codecs.forEach(function(codec) { + sdp += SDPUtils.writeRtpMap(codec); + sdp += SDPUtils.writeFmtp(codec); + sdp += SDPUtils.writeRtcpFb(codec); + }); + var maxptime = 0; + caps.codecs.forEach(function(codec) { + if (codec.maxptime > maxptime) { + maxptime = codec.maxptime; + } + }); + if (maxptime > 0) { + sdp += 'a=maxptime:' + maxptime + '\r\n'; + } + sdp += 'a=rtcp-mux\r\n'; - 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 (caps.headerExtensions) { + caps.headerExtensions.forEach(function(extension) { + sdp += SDPUtils.writeExtmap(extension); + }); + } + // FIXME: write fecMechanisms. + return sdp; +}; + +// Parses the SDP media section and returns an array of +// RTCRtpEncodingParameters. +SDPUtils.parseRtpEncodingParameters = function(mediaSection) { + var encodingParameters = []; + var description = SDPUtils.parseRtpParameters(mediaSection); + var hasRed = description.fecMechanisms.indexOf('RED') !== -1; + var hasUlpfec = description.fecMechanisms.indexOf('ULPFEC') !== -1; + + // filter a=ssrc:... cname:, ignore PlanB-msid + var ssrcs = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') + .map(function(line) { + return SDPUtils.parseSsrcMedia(line); + }) + .filter(function(parts) { + return parts.attribute === 'cname'; + }); + var primarySsrc = ssrcs.length > 0 && ssrcs[0].ssrc; + var secondarySsrc; + + var flows = SDPUtils.matchPrefix(mediaSection, 'a=ssrc-group:FID') + .map(function(line) { + var parts = line.substr(17).split(' '); + return parts.map(function(part) { + return parseInt(part, 10); + }); + }); + if (flows.length > 0 && flows[0].length > 1 && flows[0][0] === primarySsrc) { + secondarySsrc = flows[0][1]; + } - if (options.noncefn !== undefined) { - assert.isFunction(options.noncefn, messages.OPTIONS_NONCEFN_TYPE_INVALID); - noncefn = options.noncefn; - } + description.codecs.forEach(function(codec) { + if (codec.name.toUpperCase() === 'RTX' && codec.parameters.apt) { + var encParam = { + ssrc: primarySsrc, + codecPayloadType: parseInt(codec.parameters.apt, 10) + }; + if (primarySsrc && secondarySsrc) { + encParam.rtx = {ssrc: secondarySsrc}; + } + encodingParameters.push(encParam); + if (hasRed) { + encParam = JSON.parse(JSON.stringify(encParam)); + encParam.fec = { + ssrc: primarySsrc, + mechanism: hasUlpfec ? 'red+ulpfec' : 'red' + }; + encodingParameters.push(encParam); } + } + }); + if (encodingParameters.length === 0 && primarySsrc) { + encodingParameters.push({ + ssrc: primarySsrc + }); + } - return secp256k1.sign(message, privateKey, noncefn, data); - }, + // we support both b=AS and b=TIAS but interpret AS as TIAS. + var bandwidth = SDPUtils.matchPrefix(mediaSection, 'b='); + if (bandwidth.length) { + if (bandwidth[0].indexOf('b=TIAS:') === 0) { + bandwidth = parseInt(bandwidth[0].substr(7), 10); + } else if (bandwidth[0].indexOf('b=AS:') === 0) { + // use formula from JSEP to convert b=AS to TIAS value. + bandwidth = parseInt(bandwidth[0].substr(5), 10) * 1000 * 0.95 + - (50 * 40 * 8); + } else { + bandwidth = undefined; + } + encodingParameters.forEach(function(params) { + params.maxBitrate = bandwidth; + }); + } + return encodingParameters; +}; + +// parses http://draft.ortc.org/#rtcrtcpparameters* +SDPUtils.parseRtcpParameters = function(mediaSection) { + var rtcpParameters = {}; + + // Gets the first SSRC. Note tha with RTX there might be multiple + // SSRCs. + var remoteSsrc = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') + .map(function(line) { + return SDPUtils.parseSsrcMedia(line); + }) + .filter(function(obj) { + return obj.attribute === 'cname'; + })[0]; + if (remoteSsrc) { + rtcpParameters.cname = remoteSsrc.value; + rtcpParameters.ssrc = remoteSsrc.ssrc; + } + + // Edge uses the compound attribute instead of reducedSize + // compound is !reducedSize + var rsize = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-rsize'); + rtcpParameters.reducedSize = rsize.length > 0; + rtcpParameters.compound = rsize.length === 0; + + // parses the rtcp-mux attrіbute. + // Note that Edge does not support unmuxed RTCP. + var mux = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-mux'); + rtcpParameters.mux = mux.length > 0; + + return rtcpParameters; +}; + +// parses either a=msid: or a=ssrc:... msid lines and returns +// the id of the MediaStream and MediaStreamTrack. +SDPUtils.parseMsid = function(mediaSection) { + var parts; + var spec = SDPUtils.matchPrefix(mediaSection, 'a=msid:'); + if (spec.length === 1) { + parts = spec[0].substr(7).split(' '); + return {stream: parts[0], track: parts[1]}; + } + var planB = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') + .map(function(line) { + return SDPUtils.parseSsrcMedia(line); + }) + .filter(function(msidParts) { + return msidParts.attribute === 'msid'; + }); + if (planB.length > 0) { + parts = planB[0].value.split(' '); + return {stream: parts[0], track: parts[1]}; + } +}; + +// Generate a session ID for SDP. +// https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-20#section-5.2.1 +// recommends using a cryptographically random +ve 64-bit value +// but right now this should be acceptable and within the right range +SDPUtils.generateSessionId = function() { + return Math.random().toString().substr(2, 21); +}; + +// Write boilder plate for start of SDP +// sessId argument is optional - if not supplied it will +// be generated randomly +// sessVersion is optional and defaults to 2 +// sessUser is optional and defaults to 'thisisadapterortc' +SDPUtils.writeSessionBoilerplate = function(sessId, sessVer, sessUser) { + var sessionId; + var version = sessVer !== undefined ? sessVer : 2; + if (sessId) { + sessionId = sessId; + } else { + sessionId = SDPUtils.generateSessionId(); + } + var user = sessUser || 'thisisadapterortc'; + // FIXME: sess-id should be an NTP timestamp. + return 'v=0\r\n' + + 'o=' + user + ' ' + sessionId + ' ' + version + + ' IN IP4 127.0.0.1\r\n' + + 's=-\r\n' + + 't=0 0\r\n'; +}; + +SDPUtils.writeMediaSection = function(transceiver, caps, type, stream) { + var sdp = SDPUtils.writeRtpDescription(transceiver.kind, caps); + + // Map ICE parameters (ufrag, pwd) to SDP. + sdp += SDPUtils.writeIceParameters( + transceiver.iceGatherer.getLocalParameters()); + + // Map DTLS parameters to SDP. + sdp += SDPUtils.writeDtlsParameters( + transceiver.dtlsTransport.getLocalParameters(), + type === 'offer' ? 'actpass' : 'active'); + + sdp += 'a=mid:' + transceiver.mid + '\r\n'; + + if (transceiver.direction) { + sdp += 'a=' + transceiver.direction + '\r\n'; + } else if (transceiver.rtpSender && transceiver.rtpReceiver) { + sdp += 'a=sendrecv\r\n'; + } else if (transceiver.rtpSender) { + sdp += 'a=sendonly\r\n'; + } else if (transceiver.rtpReceiver) { + sdp += 'a=recvonly\r\n'; + } else { + sdp += 'a=inactive\r\n'; + } - verify: function verify(message, signature, publicKey) { - assert.isBuffer(message, messages.MSG32_TYPE_INVALID); - assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID); + if (transceiver.rtpSender) { + // spec. + var msid = 'msid:' + stream.id + ' ' + + transceiver.rtpSender.track.id + '\r\n'; + sdp += 'a=' + msid; - assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID); + // for Chrome. + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc + + ' ' + msid; + if (transceiver.sendEncodingParameters[0].rtx) { + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + + ' ' + msid; + sdp += 'a=ssrc-group:FID ' + + transceiver.sendEncodingParameters[0].ssrc + ' ' + + transceiver.sendEncodingParameters[0].rtx.ssrc + + '\r\n'; + } + } + // FIXME: this should be written by writeRtpDescription. + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc + + ' cname:' + SDPUtils.localCName + '\r\n'; + if (transceiver.rtpSender && transceiver.sendEncodingParameters[0].rtx) { + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + + ' cname:' + SDPUtils.localCName + '\r\n'; + } + return sdp; +}; - assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID); - assert.isBufferLength2(publicKey, 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID); +// Gets the direction from the mediaSection or the sessionpart. +SDPUtils.getDirection = function(mediaSection, sessionpart) { + // Look for sendrecv, sendonly, recvonly, inactive, default to sendrecv. + var lines = SDPUtils.splitLines(mediaSection); + for (var i = 0; i < lines.length; i++) { + switch (lines[i]) { + case 'a=sendrecv': + case 'a=sendonly': + case 'a=recvonly': + case 'a=inactive': + return lines[i].substr(2); + default: + // FIXME: What should happen here? + } + } + if (sessionpart) { + return SDPUtils.getDirection(sessionpart); + } + return 'sendrecv'; +}; - return secp256k1.verify(message, signature, publicKey); - }, +SDPUtils.getKind = function(mediaSection) { + var lines = SDPUtils.splitLines(mediaSection); + var mline = lines[0].split(' '); + return mline[0].substr(2); +}; - recover: function recover(message, signature, recovery, compressed) { - assert.isBuffer(message, messages.MSG32_TYPE_INVALID); - assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID); +SDPUtils.isRejected = function(mediaSection) { + return mediaSection.split(' ', 2)[1] === '0'; +}; - assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID); +SDPUtils.parseMLine = function(mediaSection) { + var lines = SDPUtils.splitLines(mediaSection); + var parts = lines[0].substr(2).split(' '); + return { + kind: parts[0], + port: parseInt(parts[1], 10), + protocol: parts[2], + fmt: parts.slice(3).join(' ') + }; +}; - assert.isNumber(recovery, messages.RECOVERY_ID_TYPE_INVALID); - assert.isNumberInInterval(recovery, -1, 4, messages.RECOVERY_ID_VALUE_INVALID); +SDPUtils.parseOLine = function(mediaSection) { + var line = SDPUtils.matchPrefix(mediaSection, 'o=')[0]; + var parts = line.substr(2).split(' '); + return { + username: parts[0], + sessionId: parts[1], + sessionVersion: parseInt(parts[2], 10), + netType: parts[3], + addressType: parts[4], + address: parts[5] + }; +}; - compressed = initCompressedValue(compressed, true); +// a very naive interpretation of a valid SDP. +SDPUtils.isValidSDP = function(blob) { + if (typeof blob !== 'string' || blob.length === 0) { + return false; + } + var lines = SDPUtils.splitLines(blob); + for (var i = 0; i < lines.length; i++) { + if (lines[i].length < 2 || lines[i].charAt(1) !== '=') { + return false; + } + // TODO: check the modifier a bit more. + } + return true; +}; - return secp256k1.recover(message, signature, recovery, compressed); - }, +// Expose public methods. +if (typeof module === 'object') { + module.exports = SDPUtils; +} - 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); +},{}],279:[function(require,module,exports){ +'use strict' +module.exports = require('./lib')(require('./lib/elliptic')) - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +},{"./lib":283,"./lib/elliptic":282}],280:[function(require,module,exports){ +(function (Buffer){ +'use strict' +var toString = Object.prototype.toString - return secp256k1.ecdh(publicKey, privateKey); - }, +// TypeError +exports.isArray = function (value, message) { + if (!Array.isArray(value)) throw TypeError(message) +} - 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); +exports.isBoolean = function (value, message) { + if (toString.call(value) !== '[object Boolean]') throw TypeError(message) +} - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +exports.isBuffer = function (value, message) { + if (!Buffer.isBuffer(value)) throw TypeError(message) +} - compressed = initCompressedValue(compressed, true); +exports.isFunction = function (value, message) { + if (toString.call(value) !== '[object Function]') throw TypeError(message) +} - return secp256k1.ecdhUnsafe(publicKey, privateKey, compressed); - } - }; -}; +exports.isNumber = function (value, message) { + if (toString.call(value) !== '[object Number]') throw TypeError(message) +} -},{"./assert":278,"./der":279,"./messages.json":282}],282:[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_RANGE_INVALID": "private key range 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" +exports.isObject = function (value, message) { + if (toString.call(value) !== '[object Object]') throw TypeError(message) } -},{}],283:[function(require,module,exports){ -'use strict'; +// RangeError +exports.isBufferLength = function (buffer, length, message) { + if (buffer.length !== length) throw RangeError(message) +} -var Buffer = require('safe-buffer').Buffer; +exports.isBufferLength2 = function (buffer, length1, length2, message) { + if (buffer.length !== length1 && buffer.length !== length2) throw RangeError(message) +} -// prototype class for hash functions -function Hash(blockSize, finalSize) { - this._block = Buffer.alloc(blockSize); - this._finalSize = finalSize; - this._blockSize = blockSize; - this._len = 0; +exports.isLengthGTZero = function (value, message) { + if (value.length === 0) throw RangeError(message) } -Hash.prototype.update = function (data, enc) { - if (typeof data === 'string') { - enc = enc || 'utf8'; - data = Buffer.from(data, enc); - } +exports.isNumberInInterval = function (number, x, y, message) { + if (number <= x || number >= y) throw RangeError(message) +} - var block = this._block; - var blockSize = this._blockSize; - var length = data.length; - var accum = this._len; +}).call(this,{"isBuffer":require("../../../../../is-buffer/index.js")}) +},{"../../../../../is-buffer/index.js":897}],281:[function(require,module,exports){ +'use strict' +var Buffer = require('safe-buffer').Buffer +var bip66 = require('bip66') - for (var offset = 0; offset < length;) { - var assigned = accum % blockSize; - var remainder = Math.min(length - offset, blockSize - assigned); +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 +]) - for (var i = 0; i < remainder; i++) { - block[assigned + i] = data[offset + i]; - } +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 +]) - accum += remainder; - offset += remainder; +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 +} - if (accum % blockSize === 0) { - this._update(block); - } - } +exports.privateKeyImport = function (privateKey) { + var length = privateKey.length - this._len += length; - return this; -}; + // sequence header + var index = 0 + if (length < index + 1 || privateKey[index] !== 0x30) return + index += 1 -Hash.prototype.digest = function (enc) { - var rem = this._len % this._blockSize; + // sequence length constructor + if (length < index + 1 || !(privateKey[index] & 0x80)) return - this._block[rem] = 0x80; + var lenb = privateKey[index] & 0x7f + index += 1 + if (lenb < 1 || lenb > 2) return + if (length < index + lenb) return - // 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); + // sequence length + var len = privateKey[index + lenb - 1] | (lenb > 1 ? privateKey[index + lenb - 2] << 8 : 0) + index += lenb + if (length < index + len) return - if (rem >= this._finalSize) { - this._update(this._block); - this._block.fill(0); + // sequence element 0: version number (=1) + if (length < index + 3 || + privateKey[index] !== 0x02 || + privateKey[index + 1] !== 0x01 || + privateKey[index + 2] !== 0x01) { + return } + index += 3 - var bits = this._len * 8; - - // uint32 - if (bits <= 0xffffffff) { - this._block.writeUInt32BE(bits, this._blockSize - 4); - - // uint64 - } else { - var lowBits = (bits & 0xffffffff) >>> 0; - var highBits = (bits - lowBits) / 0x100000000; - - this._block.writeUInt32BE(highBits, this._blockSize - 8); - this._block.writeUInt32BE(lowBits, this._blockSize - 4); + // 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 } - 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; + return privateKey.slice(index + 2, index + 2 + privateKey[index + 1]) +} -},{"safe-buffer":276}],284:[function(require,module,exports){ -'use strict'; +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 _exports = module.exports = function SHA(algorithm) { - algorithm = algorithm.toLowerCase(); + 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); - var Algorithm = _exports[algorithm]; - if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)'); + return bip66.encode(r.slice(posR), s.slice(posS)) +} - return new Algorithm(); -}; +exports.signatureImport = function (sig) { + var r = Buffer.alloc(32, 0) + var s = Buffer.alloc(32, 0) -_exports.sha = require('./sha'); -_exports.sha1 = require('./sha1'); -_exports.sha224 = require('./sha224'); -_exports.sha256 = require('./sha256'); -_exports.sha384 = require('./sha384'); -_exports.sha512 = require('./sha512'); + 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 + } -},{"./sha":285,"./sha1":286,"./sha224":287,"./sha256":288,"./sha384":289,"./sha512":290}],285:[function(require,module,exports){ -'use strict'; + sigObj.r.copy(r, 32 - sigObj.r.length) + sigObj.s.copy(s, 32 - sigObj.s.length) -/* - * 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. - */ + return { r: r, s: s } +} -var inherits = require('inherits'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; +exports.signatureImportLax = function (sig) { + var r = Buffer.alloc(32, 0) + var s = Buffer.alloc(32, 0) -var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0]; + var length = sig.length + var index = 0 -var W = new Array(80); + // sequence tag byte + if (sig[index++] !== 0x30) return -function Sha() { - this.init(); - this._w = W; + // sequence length byte + var lenbyte = sig[index++] + if (lenbyte & 0x80) { + index += lenbyte - 0x80 + if (index > length) return + } - Hash.call(this, 64, 56); -} + // sequence tag byte for r + if (sig[index++] !== 0x02) return -inherits(Sha, Hash); + // 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 -Sha.prototype.init = function () { - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; - this._e = 0xc3d2e1f0; + // sequence tag byte for s + if (sig[index++] !== 0x02) return - return this; -}; + // 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 -function rotl5(num) { - return num << 5 | num >>> 27; -} + // 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) -function rotl30(num) { - return num << 30 | num >>> 2; -} + // 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) -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; + return { r: r, s: s } } -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; - } +},{"bip66":180,"safe-buffer":277}],282:[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 - 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; -}; +var messages = require('../messages.json') -Sha.prototype._hash = function () { - var H = Buffer.allocUnsafe(20); +var ec = new EC('secp256k1') +var ecparams = ec.curve - 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); +function loadCompressedPublicKey (first, xBuffer) { + var x = new BN(xBuffer) - return H; -}; + // overflow + if (x.cmp(ecparams.p) >= 0) return null + x = x.toRed(ecparams.red) -module.exports = Sha; + // compute corresponding Y + var y = x.redSqr().redIMul(x).redIAdd(ecparams.b).redSqrt() + if ((first === 0x03) !== y.isOdd()) y = y.redNeg() -},{"./hash":283,"inherits":247,"safe-buffer":276}],286:[function(require,module,exports){ -'use strict'; + return ec.keyPair({ pub: { x: x, y: y } }) +} -/* - * 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. - */ +function loadUncompressedPublicKey (first, xBuffer, yBuffer) { + var x = new BN(xBuffer) + var y = new BN(yBuffer) -var inherits = require('inherits'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; + // overflow + if (x.cmp(ecparams.p) >= 0 || y.cmp(ecparams.p) >= 0) return null -var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0]; + x = x.toRed(ecparams.red) + y = y.toRed(ecparams.red) -var W = new Array(80); + // is odd flag + if ((first === 0x06 || first === 0x07) && y.isOdd() !== (first === 0x07)) return null -function Sha1() { - this.init(); - this._w = W; + // x*x*x + b = y*y + var x3 = x.redSqr().redIMul(x) + if (!y.redSqr().redISub(x3.redIAdd(ecparams.b)).isZero()) return null - Hash.call(this, 64, 56); + return ec.keyPair({ pub: { x: x, y: y } }) } -inherits(Sha1, Hash); +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 + } +} -Sha1.prototype.init = function () { - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; - this._e = 0xc3d2e1f0; +exports.privateKeyVerify = function (privateKey) { + var bn = new BN(privateKey) + return bn.cmp(ecparams.n) < 0 && !bn.isZero() +} - return this; -}; +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) -function rotl1(num) { - return num << 1 | num >>> 31; + return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true)) } -function rotl5(num) { - return num << 5 | num >>> 27; +exports.privateKeyNegate = function (privateKey) { + var bn = new BN(privateKey) + return bn.isZero() ? Buffer.alloc(32) : ecparams.n.sub(bn).umod(ecparams.n).toArrayLike(Buffer, 'be', 32) } -function rotl30(num) { - return num << 30 | num >>> 2; -} +exports.privateKeyModInverse = function (privateKey) { + var bn = new BN(privateKey) + if (bn.cmp(ecparams.n) >= 0 || bn.isZero()) throw new Error(messages.EC_PRIVATE_KEY_RANGE_INVALID) -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; + return bn.invm(ecparams.n).toArrayLike(Buffer, 'be', 32) } -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; +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) - e = d; - d = c; - c = rotl30(b); - b = a; - a = t; - } + 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) - 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; -}; + return bn.toArrayLike(Buffer, 'be', 32) +} -Sha1.prototype._hash = function () { - var H = Buffer.allocUnsafe(20); +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) - 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); + bn.imul(new BN(privateKey)) + if (bn.cmp(ecparams.n)) bn = bn.umod(ecparams.n) - return H; -}; + return bn.toArrayLike(Buffer, 'be', 32) +} -module.exports = Sha1; +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) -},{"./hash":283,"inherits":247,"safe-buffer":276}],287:[function(require,module,exports){ -'use strict'; + return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true)) +} -/** - * 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 - * - */ +exports.publicKeyConvert = function (publicKey, compressed) { + var pair = loadPublicKey(publicKey) + if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL) -var inherits = require('inherits'); -var Sha256 = require('./sha256'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; + return Buffer.from(pair.getPublic(compressed, true)) +} -var W = new Array(64); +exports.publicKeyVerify = function (publicKey) { + return loadPublicKey(publicKey) !== null +} -function Sha224() { - this.init(); +exports.publicKeyTweakAdd = function (publicKey, tweak, compressed) { + var pair = loadPublicKey(publicKey) + if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL) - this._w = W; // new Array(64) + tweak = new BN(tweak) + if (tweak.cmp(ecparams.n) >= 0) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL) - Hash.call(this, 64, 56); + return Buffer.from(ecparams.g.mul(tweak).add(pair.pub).encode(true, compressed)) } -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; +exports.publicKeyTweakMul = function (publicKey, tweak, compressed) { + var pair = loadPublicKey(publicKey) + if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL) - return this; -}; + tweak = new BN(tweak) + if (tweak.cmp(ecparams.n) >= 0 || tweak.isZero()) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_MUL_FAIL) -Sha224.prototype._hash = function () { - var H = Buffer.allocUnsafe(28); + return Buffer.from(pair.pub.mul(tweak).encode(true, compressed)) +} - 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); +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) + } - return H; -}; + 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) -module.exports = Sha224; + return Buffer.from(point.encode(true, compressed)) +} -},{"./hash":283,"./sha256":288,"inherits":247,"safe-buffer":276}],288:[function(require,module,exports){ -'use strict'; +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) -/** - * 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 result = Buffer.from(signature) + if (s.cmp(ec.nh) === 1) ecparams.n.sub(s).toArrayLike(Buffer, 'be', 32).copy(result, 32) -var inherits = require('inherits'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; + return result +} -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]; +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) -var W = new Array(64); + return { r: r, s: s } +} -function Sha256() { - this.init(); +exports.signatureImport = function (sigObj) { + var r = new BN(sigObj.r) + if (r.cmp(ecparams.n) >= 0) r = new BN(0) - this._w = W; // new Array(64) + var s = new BN(sigObj.s) + if (s.cmp(ecparams.n) >= 0) s = new BN(0) - Hash.call(this, 64, 56); + return Buffer.concat([ + r.toArrayLike(Buffer, 'be', 32), + s.toArrayLike(Buffer, 'be', 32) + ]) } -inherits(Sha256, Hash); +exports.sign = function (message, privateKey, noncefn, data) { + if (typeof noncefn === 'function') { + var getNonce = noncefn + noncefn = function (counter) { + var nonce = getNonce(message, privateKey, null, data, counter) + if (!Buffer.isBuffer(nonce) || nonce.length !== 32) throw new Error(messages.ECDSA_SIGN_FAIL) -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 new BN(nonce) + } + } - return this; -}; + var d = new BN(privateKey) + if (d.cmp(ecparams.n) >= 0 || d.isZero()) throw new Error(messages.ECDSA_SIGN_FAIL) -function ch(x, y, z) { - return z ^ x & (y ^ z); + 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 + } } -function maj(x, y, z) { - return x & y | z & (x | y); +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}) } -function sigma0(x) { - return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10); +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) + } } -function sigma1(x) { - return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7); +exports.ecdh = function (publicKey, privateKey) { + var shared = exports.ecdhUnsafe(publicKey, privateKey, true) + return createHash('sha256').update(shared).digest() } -function gamma0(x) { - return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ x >>> 3; +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)) } -function gamma1(x) { - return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ x >>> 10; +},{"../messages.json":284,"bn.js":182,"create-hash":190,"elliptic":196,"safe-buffer":277}],283:[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 } -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; +module.exports = function (secp256k1) { + return { + privateKeyVerify: function (privateKey) { + assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID) + return privateKey.length === 32 && secp256k1.privateKeyVerify(privateKey) + }, - h = g; - g = f; - f = e; - e = d + T1 | 0; - d = c; - c = b; - b = a; - a = T1 + T2 | 0; + privateKeyExport: function (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 (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) + }, + + privateKeyNegate: function (privateKey) { + assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID) + assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID) + + return secp256k1.privateKeyNegate(privateKey) + }, + + privateKeyModInverse: function (privateKey) { + assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID) + assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID) + + return secp256k1.privateKeyModInverse(privateKey) + }, + + privateKeyTweakAdd: function (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 (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 (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 (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 (publicKey) { + assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID) + return secp256k1.publicKeyVerify(publicKey) + }, + + publicKeyTweakAdd: function (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 (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 (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 (signature) { + assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID) + assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID) + + return secp256k1.signatureNormalize(signature) + }, + + signatureExport: function (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 (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 (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 (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 (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 (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 (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 (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) + } } +} - 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; -}; +},{"./assert":280,"./der":281,"./messages.json":284}],284:[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_RANGE_INVALID": "private key range 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" +} -Sha256.prototype._hash = function () { - var H = Buffer.allocUnsafe(32); +},{}],285:[function(require,module,exports){ +var Buffer = require('safe-buffer').Buffer - 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); +// prototype class for hash functions +function Hash (blockSize, finalSize) { + this._block = Buffer.alloc(blockSize) + this._finalSize = finalSize + this._blockSize = blockSize + this._len = 0 +} - return H; -}; +Hash.prototype.update = function (data, enc) { + if (typeof data === 'string') { + enc = enc || 'utf8' + data = Buffer.from(data, enc) + } -module.exports = Sha256; + var block = this._block + var blockSize = this._blockSize + var length = data.length + var accum = this._len -},{"./hash":283,"inherits":247,"safe-buffer":276}],289:[function(require,module,exports){ -'use strict'; + for (var offset = 0; offset < length;) { + var assigned = accum % blockSize + var remainder = Math.min(length - offset, blockSize - assigned) -var inherits = require('inherits'); -var SHA512 = require('./sha512'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; + for (var i = 0; i < remainder; i++) { + block[assigned + i] = data[offset + i] + } -var W = new Array(160); + accum += remainder + offset += remainder -function Sha384() { - this.init(); - this._w = W; + if ((accum % blockSize) === 0) { + this._update(block) + } + } - Hash.call(this, 128, 112); + this._len += length + return this } -inherits(Sha384, SHA512); +Hash.prototype.digest = function (enc) { + var rem = this._len % this._blockSize -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; + this._block[rem] = 0x80 - return this; -}; + // 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) -Sha384.prototype._hash = function () { - var H = Buffer.allocUnsafe(48); + 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) >>> 0 + var highBits = (bits - lowBits) / 0x100000000 - function writeInt64BE(h, l, offset) { - H.writeInt32BE(h, offset); - H.writeInt32BE(l, offset + 4); + this._block.writeUInt32BE(highBits, this._blockSize - 8) + this._block.writeUInt32BE(lowBits, this._blockSize - 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); + this._update(this._block) + var hash = this._hash() - return H; -}; + return enc ? hash.toString(enc) : hash +} -module.exports = Sha384; +Hash.prototype._update = function () { + throw new Error('_update must be implemented by subclass') +} -},{"./hash":283,"./sha512":290,"inherits":247,"safe-buffer":276}],290:[function(require,module,exports){ -'use strict'; +module.exports = Hash -var inherits = require('inherits'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; +},{"safe-buffer":277}],286:[function(require,module,exports){ +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":287,"./sha1":288,"./sha224":289,"./sha256":290,"./sha384":291,"./sha512":292}],287:[function(require,module,exports){ +/* + * 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":285,"inherits":247,"safe-buffer":277}],288:[function(require,module,exports){ +/* + * 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":285,"inherits":247,"safe-buffer":277}],289:[function(require,module,exports){ +/** + * 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":285,"./sha256":290,"inherits":247,"safe-buffer":277}],290:[function(require,module,exports){ +/** + * 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) -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]; + return H +} + +module.exports = Sha256 + +},{"./hash":285,"inherits":247,"safe-buffer":277}],291:[function(require,module,exports){ +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) -var W = new Array(160); +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":285,"./sha512":292,"inherits":247,"safe-buffer":277}],292:[function(require,module,exports){ +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; +function Sha512 () { + this.init() + this._w = W - Hash.call(this, 128, 112); + Hash.call(this, 128, 112) } -inherits(Sha512, Hash); +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; + this._ah = 0x6a09e667 + this._bh = 0xbb67ae85 + this._ch = 0x3c6ef372 + this._dh = 0xa54ff53a + this._eh = 0x510e527f + this._fh = 0x9b05688c + this._gh = 0x1f83d9ab + this._hh = 0x5be0cd19 - return this; -}; + this._al = 0xf3bcc908 + this._bl = 0x84caa73b + this._cl = 0xfe94f82b + this._dl = 0x5f1d36f1 + this._el = 0xade682d1 + this._fl = 0x2b3e6c1f + this._gl = 0xfb41bd6b + this._hl = 0x137e2179 -function Ch(x, y, z) { - return z ^ x & (y ^ z); + return this } -function maj(x, y, z) { - return x & y | z & (x | y); +function Ch (x, y, z) { + return z ^ (x & (y ^ z)) } -function sigma0(x, xl) { - return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25); +function maj (x, y, z) { + return (x & y) | (z & (x | y)) } -function sigma1(x, xl) { - return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23); +function sigma0 (x, xl) { + return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25) } -function Gamma0(x, xl) { - return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ x >>> 7; +function sigma1 (x, xl) { + return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23) } -function Gamma0l(x, xl) { - return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25); +function Gamma0 (x, xl) { + return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7) } -function Gamma1(x, xl) { - return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ x >>> 6; +function Gamma0l (x, xl) { + return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25) } -function Gamma1l(x, xl) { - return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26); +function Gamma1 (x, xl) { + return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6) } -function getCarry(a, b) { - return a >>> 0 < b >>> 0 ? 1 : 0; +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; + 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); + 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); + 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); + 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 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 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; + 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; + W[i] = Wih + W[i + 1] = Wil } for (var j = 0; j < 160; j += 2) { - Wih = W[j]; - Wil = W[j + 1]; + Wih = W[j] + Wil = W[j + 1] - var majh = maj(ah, bh, ch); - var majl = maj(al, bl, cl); + 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); + 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 Kih = K[j] + var Kil = K[j + 1] - var chh = Ch(eh, fh, gh); - var chl = Ch(el, fl, gl); + 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; + 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; -}; + 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); + var H = Buffer.allocUnsafe(64) - function writeInt64BE(h, l, offset) { - H.writeInt32BE(h, offset); - H.writeInt32BE(l, offset + 4); + 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); + 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; -}; + return H +} -module.exports = Sha512; +module.exports = Sha512 -},{"./hash":283,"inherits":247,"safe-buffer":276}],291:[function(require,module,exports){ +},{"./hash":285,"inherits":247,"safe-buffer":277}],293:[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; }; - -module.exports = Peer; +module.exports = Peer -var debug = require('debug')('simple-peer'); -var getBrowserRTC = require('get-browser-rtc'); -var inherits = require('inherits'); -var randombytes = require('randombytes'); -var stream = require('readable-stream'); +var debug = require('debug')('simple-peer') +var getBrowserRTC = require('get-browser-rtc') +var inherits = require('inherits') +var randombytes = require('randombytes') +var stream = require('readable-stream') -var MAX_BUFFERED_AMOUNT = 64 * 1024; +var MAX_BUFFERED_AMOUNT = 64 * 1024 -inherits(Peer, stream.Duplex); +inherits(Peer, stream.Duplex) /** * WebRTC peer connection. Same API as node core `net.Socket`, plus a few extra methods. * Duplex stream. * @param {Object} opts */ -function Peer(opts) { - var self = this; - if (!(self instanceof Peer)) return new Peer(opts); +function Peer (opts) { + var self = this + if (!(self instanceof Peer)) return new Peer(opts) - self._id = randombytes(4).toString('hex').slice(0, 7); - self._debug('new peer %o', opts); + self._id = randombytes(4).toString('hex').slice(0, 7) + self._debug('new peer %o', opts) opts = Object.assign({ allowHalfOpen: false - }, opts); + }, opts) - stream.Duplex.call(self, opts); + stream.Duplex.call(self, opts) - self.channelName = opts.initiator ? opts.channelName || randombytes(20).toString('hex') : null; + self.channelName = opts.initiator + ? opts.channelName || randombytes(20).toString('hex') + : null // Needed by _transformConstraints, so set this early - self._isChromium = typeof window !== 'undefined' && !!window.webkitRTCPeerConnection; - - self.initiator = opts.initiator || false; - self.channelConfig = opts.channelConfig || Peer.channelConfig; - self.config = opts.config || Peer.config; - self.constraints = self._transformConstraints(opts.constraints || Peer.constraints); - self.offerConstraints = self._transformConstraints(opts.offerConstraints || {}); - self.answerConstraints = self._transformConstraints(opts.answerConstraints || {}); - self.sdpTransform = opts.sdpTransform || function (sdp) { - return sdp; - }; - self.streams = opts.streams || (opts.stream ? [opts.stream] : []); // support old "stream" option - self.trickle = opts.trickle !== undefined ? opts.trickle : true; - - self.destroyed = false; - self.connected = false; - - self.remoteAddress = undefined; - self.remoteFamily = undefined; - self.remotePort = undefined; - self.localAddress = undefined; - self.localPort = undefined; - - self._wrtc = opts.wrtc && _typeof(opts.wrtc) === 'object' ? opts.wrtc : getBrowserRTC(); + self._isChromium = typeof window !== 'undefined' && !!window.webkitRTCPeerConnection + + self.initiator = opts.initiator || false + self.channelConfig = opts.channelConfig || Peer.channelConfig + self.config = opts.config || Peer.config + self.constraints = self._transformConstraints(opts.constraints || Peer.constraints) + self.offerConstraints = self._transformConstraints(opts.offerConstraints || {}) + self.answerConstraints = self._transformConstraints(opts.answerConstraints || {}) + self.sdpTransform = opts.sdpTransform || function (sdp) { return sdp } + self.streams = opts.streams || (opts.stream ? [opts.stream] : []) // support old "stream" option + self.trickle = opts.trickle !== undefined ? opts.trickle : true + + self.destroyed = false + self.connected = false + + self.remoteAddress = undefined + self.remoteFamily = undefined + self.remotePort = undefined + self.localAddress = undefined + self.localPort = undefined + + self._wrtc = (opts.wrtc && typeof opts.wrtc === 'object') + ? opts.wrtc + : getBrowserRTC() if (!self._wrtc) { if (typeof window === 'undefined') { - throw makeError('No WebRTC support: Specify `opts.wrtc` option in this environment', 'ERR_WEBRTC_SUPPORT'); + throw makeError('No WebRTC support: Specify `opts.wrtc` option in this environment', 'ERR_WEBRTC_SUPPORT') } else { - throw makeError('No WebRTC support: Not a supported browser', 'ERR_WEBRTC_SUPPORT'); + throw makeError('No WebRTC support: Not a supported browser', 'ERR_WEBRTC_SUPPORT') } } - self._pcReady = false; - self._channelReady = false; - self._iceComplete = false; // ice candidate trickle done (got null candidate) - self._channel = null; - self._pendingCandidates = []; + self._pcReady = false + self._channelReady = false + self._iceComplete = false // ice candidate trickle done (got null candidate) + self._channel = null + self._pendingCandidates = [] - self._isNegotiating = false; // is this peer waiting for negotiation to complete? - self._batchedNegotiation = false; // batch synchronous negotiations - self._queuedNegotiation = false; // is there a queued negotiation request? - self._sendersAwaitingStable = []; - self._senderMap = new WeakMap(); + self._isNegotiating = false // is this peer waiting for negotiation to complete? + self._batchedNegotiation = false // batch synchronous negotiations + self._queuedNegotiation = false // is there a queued negotiation request? + self._sendersAwaitingStable = [] + self._senderMap = new WeakMap() - self._remoteTracks = []; - self._remoteStreams = []; + self._remoteTracks = [] + self._remoteStreams = [] - self._chunk = null; - self._cb = null; - self._interval = null; + self._chunk = null + self._cb = null + self._interval = null - self._pc = new self._wrtc.RTCPeerConnection(self.config, self.constraints); + self._pc = new (self._wrtc.RTCPeerConnection)(self.config, self.constraints) // We prefer feature detection whenever possible, but sometimes that's not // possible for certain implementations. - self._isReactNativeWebrtc = typeof self._pc._peerConnectionId === 'number'; + self._isReactNativeWebrtc = typeof self._pc._peerConnectionId === 'number' self._pc.oniceconnectionstatechange = function () { - self._onIceStateChange(); - }; + self._onIceStateChange() + } self._pc.onicegatheringstatechange = function () { - self._onIceStateChange(); - }; + self._onIceStateChange() + } self._pc.onsignalingstatechange = function () { - self._onSignalingStateChange(); - }; + self._onSignalingStateChange() + } self._pc.onicecandidate = function (event) { - self._onIceCandidate(event); - }; + self._onIceCandidate(event) + } // Other spec events, unused by this implementation: // - onconnectionstatechange @@ -52967,35 +57071,35 @@ function Peer(opts) { if (self.initiator) { self._setupData({ channel: self._pc.createDataChannel(self.channelName, self.channelConfig) - }); + }) } else { self._pc.ondatachannel = function (event) { - self._setupData(event); - }; + self._setupData(event) + } } if ('addTrack' in self._pc) { if (self.streams) { self.streams.forEach(function (stream) { - self.addStream(stream); - }); + self.addStream(stream) + }) } self._pc.ontrack = function (event) { - self._onTrack(event); - }; + self._onTrack(event) + } } if (self.initiator) { - self._needsNegotiation(); + self._needsNegotiation() } self._onFinishBound = function () { - self._onFinish(); - }; - self.once('finish', self._onFinishBound); + self._onFinish() + } + self.once('finish', self._onFinishBound) } -Peer.WEBRTC_SUPPORT = !!getBrowserRTC(); +Peer.WEBRTC_SUPPORT = !!getBrowserRTC() /** * Expose config, constraints, and data channel config for overriding all Peer @@ -53003,98 +57107,102 @@ Peer.WEBRTC_SUPPORT = !!getBrowserRTC(); * when constructing a Peer. */ Peer.config = { - iceServers: [{ - urls: 'stun:stun.l.google.com:19302' - }, { - urls: 'stun:global.stun.twilio.com:3478?transport=udp' - }] -}; -Peer.constraints = {}; -Peer.channelConfig = {}; + iceServers: [ + { + urls: 'stun:stun.l.google.com:19302' + }, + { + urls: 'stun:global.stun.twilio.com:3478?transport=udp' + } + ] +} +Peer.constraints = {} +Peer.channelConfig = {} Object.defineProperty(Peer.prototype, 'bufferSize', { - get: function get() { - var self = this; - return self._channel && self._channel.bufferedAmount || 0; + get: function () { + var self = this + return (self._channel && self._channel.bufferedAmount) || 0 } -}); +}) Peer.prototype.address = function () { - var self = this; - return { port: self.localPort, family: 'IPv4', address: self.localAddress }; -}; + var self = this + return { port: self.localPort, family: 'IPv4', address: self.localAddress } +} Peer.prototype.signal = function (data) { - var self = this; - if (self.destroyed) throw makeError('cannot signal after peer is destroyed', 'ERR_SIGNALING'); + var self = this + if (self.destroyed) throw makeError('cannot signal after peer is destroyed', 'ERR_SIGNALING') if (typeof data === 'string') { try { - data = JSON.parse(data); + data = JSON.parse(data) } catch (err) { - data = {}; + data = {} } } - self._debug('signal()'); + self._debug('signal()') if (data.renegotiate) { - self._debug('got request to renegotiate'); - self._needsNegotiation(); + self._debug('got request to renegotiate') + self._needsNegotiation() } if (data.candidate) { - if (self._pc.remoteDescription && self._pc.remoteDescription.type) self._addIceCandidate(data.candidate);else self._pendingCandidates.push(data.candidate); + if (self._pc.remoteDescription && self._pc.remoteDescription.type) self._addIceCandidate(data.candidate) + else self._pendingCandidates.push(data.candidate) } if (data.sdp) { - self._pc.setRemoteDescription(new self._wrtc.RTCSessionDescription(data), function () { - if (self.destroyed) return; + self._pc.setRemoteDescription(new (self._wrtc.RTCSessionDescription)(data), function () { + if (self.destroyed) return self._pendingCandidates.forEach(function (candidate) { - self._addIceCandidate(candidate); - }); - self._pendingCandidates = []; + self._addIceCandidate(candidate) + }) + self._pendingCandidates = [] - if (self._pc.remoteDescription.type === 'offer') self._createAnswer(); - }, function (err) { - self.destroy(makeError(err, 'ERR_SET_REMOTE_DESCRIPTION')); - }); + if (self._pc.remoteDescription.type === 'offer') self._createAnswer() + }, function (err) { self.destroy(makeError(err, 'ERR_SET_REMOTE_DESCRIPTION')) }) } if (!data.sdp && !data.candidate && !data.renegotiate) { - self.destroy(makeError('signal() called with invalid signal data', 'ERR_SIGNALING')); + self.destroy(makeError('signal() called with invalid signal data', 'ERR_SIGNALING')) } -}; +} Peer.prototype._addIceCandidate = function (candidate) { - var self = this; + var self = this try { - self._pc.addIceCandidate(new self._wrtc.RTCIceCandidate(candidate), noop, function (err) { - self.destroy(makeError(err, 'ERR_ADD_ICE_CANDIDATE')); - }); + self._pc.addIceCandidate( + new self._wrtc.RTCIceCandidate(candidate), + noop, + function (err) { self.destroy(makeError(err, 'ERR_ADD_ICE_CANDIDATE')) } + ) } catch (err) { - self.destroy(makeError('error adding candidate: ' + err.message, 'ERR_ADD_ICE_CANDIDATE')); + self.destroy(makeError('error adding candidate: ' + err.message, 'ERR_ADD_ICE_CANDIDATE')) } -}; +} /** * Send text/binary data to the remote peer. * @param {ArrayBufferView|ArrayBuffer|Buffer|string|Blob} chunk */ Peer.prototype.send = function (chunk) { - var self = this; - self._channel.send(chunk); -}; + var self = this + self._channel.send(chunk) +} /** * Add a MediaStream to the connection. * @param {MediaStream} stream */ Peer.prototype.addStream = function (stream) { - var self = this; + var self = this - self._debug('addStream()'); + self._debug('addStream()') stream.getTracks().forEach(function (track) { - self.addTrack(track, stream); - }); -}; + self.addTrack(track, stream) + }) +} /** * Add a MediaStreamTrack to the connection. @@ -53102,16 +57210,16 @@ Peer.prototype.addStream = function (stream) { * @param {MediaStream} stream */ Peer.prototype.addTrack = function (track, stream) { - var self = this; + var self = this - self._debug('addTrack()'); + self._debug('addTrack()') - var sender = self._pc.addTrack(track, stream); - var submap = self._senderMap.get(track) || new WeakMap(); // nested WeakMaps map [track, stream] to sender - submap.set(stream, sender); - self._senderMap.set(track, submap); - self._needsNegotiation(); -}; + var sender = self._pc.addTrack(track, stream) + var submap = self._senderMap.get(track) || new WeakMap() // nested WeakMaps map [track, stream] to sender + submap.set(stream, sender) + self._senderMap.set(track, submap) + self._needsNegotiation() +} /** * Remove a MediaStreamTrack from the connection. @@ -53119,530 +57227,530 @@ Peer.prototype.addTrack = function (track, stream) { * @param {MediaStream} stream */ Peer.prototype.removeTrack = function (track, stream) { - var self = this; + var self = this - self._debug('removeSender()'); + self._debug('removeSender()') - var submap = self._senderMap.get(track); - var sender = submap ? submap.get(stream) : null; + var submap = self._senderMap.get(track) + var sender = submap ? submap.get(stream) : null if (!sender) { - self.destroy(new Error('Cannot remove track that was never added.')); + self.destroy(new Error('Cannot remove track that was never added.')) } try { - self._pc.removeTrack(sender); + self._pc.removeTrack(sender) } catch (err) { if (err.name === 'NS_ERROR_UNEXPECTED') { - self._sendersAwaitingStable.push(sender); // HACK: Firefox must wait until (signalingState === stable) https://bugzilla.mozilla.org/show_bug.cgi?id=1133874 + self._sendersAwaitingStable.push(sender) // HACK: Firefox must wait until (signalingState === stable) https://bugzilla.mozilla.org/show_bug.cgi?id=1133874 } else { - self.destroy(err); + self.destroy(err) } } -}; +} /** * Remove a MediaStream from the connection. * @param {MediaStream} stream */ Peer.prototype.removeStream = function (stream) { - var self = this; + var self = this - self._debug('removeSenders()'); + self._debug('removeSenders()') stream.getTracks().forEach(function (track) { - self.removeTrack(track, stream); - }); -}; + self.removeTrack(track, stream) + }) +} Peer.prototype._needsNegotiation = function () { - var self = this; + var self = this - self._debug('_needsNegotiation'); - if (self._batchedNegotiation) return; // batch synchronous renegotiations - self._batchedNegotiation = true; + self._debug('_needsNegotiation') + if (self._batchedNegotiation) return // batch synchronous renegotiations + self._batchedNegotiation = true setTimeout(function () { - self._batchedNegotiation = false; - self._debug('starting batched negotiation'); - self.negotiate(); - }, 0); -}; + self._batchedNegotiation = false + self._debug('starting batched negotiation') + self.negotiate() + }, 0) +} Peer.prototype.negotiate = function () { - var self = this; + var self = this if (self.initiator) { if (self._isNegotiating) { - self._queuedNegotiation = true; - self._debug('already negotiating, queueing'); + self._queuedNegotiation = true + self._debug('already negotiating, queueing') } else { - self._debug('start negotiation'); - self._createOffer(); + self._debug('start negotiation') + self._createOffer() } } else { - self._debug('requesting negotiation from initiator'); + self._debug('requesting negotiation from initiator') self.emit('signal', { // request initiator to renegotiate renegotiate: true - }); + }) } - self._isNegotiating = true; -}; + self._isNegotiating = true +} // TODO: Delete this method once readable-stream is updated to contain a default // implementation of destroy() that automatically calls _destroy() // See: https://github.com/nodejs/readable-stream/issues/283 Peer.prototype.destroy = function (err) { - var self = this; - self._destroy(err, function () {}); -}; + var self = this + self._destroy(err, function () {}) +} Peer.prototype._destroy = function (err, cb) { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return - self._debug('destroy (error: %s)', err && (err.message || err)); + self._debug('destroy (error: %s)', err && (err.message || err)) - self.readable = self.writable = false; + self.readable = self.writable = false - if (!self._readableState.ended) self.push(null); - if (!self._writableState.finished) self.end(); + if (!self._readableState.ended) self.push(null) + if (!self._writableState.finished) self.end() - self.destroyed = true; - self.connected = false; - self._pcReady = false; - self._channelReady = false; - self._remoteTracks = null; - self._remoteStreams = null; - self._senderMap = null; + self.destroyed = true + self.connected = false + self._pcReady = false + self._channelReady = false + self._remoteTracks = null + self._remoteStreams = null + self._senderMap = null - clearInterval(self._interval); - self._interval = null; - self._chunk = null; - self._cb = null; + clearInterval(self._interval) + self._interval = null + self._chunk = null + self._cb = null - if (self._onFinishBound) self.removeListener('finish', self._onFinishBound); - self._onFinishBound = null; + if (self._onFinishBound) self.removeListener('finish', self._onFinishBound) + self._onFinishBound = null if (self._channel) { try { - self._channel.close(); + self._channel.close() } catch (err) {} - self._channel.onmessage = null; - self._channel.onopen = null; - self._channel.onclose = null; - self._channel.onerror = null; + self._channel.onmessage = null + self._channel.onopen = null + self._channel.onclose = null + self._channel.onerror = null } if (self._pc) { try { - self._pc.close(); + self._pc.close() } catch (err) {} - self._pc.oniceconnectionstatechange = null; - self._pc.onicegatheringstatechange = null; - self._pc.onsignalingstatechange = null; - self._pc.onicecandidate = null; + self._pc.oniceconnectionstatechange = null + self._pc.onicegatheringstatechange = null + self._pc.onsignalingstatechange = null + self._pc.onicecandidate = null if ('addTrack' in self._pc) { - self._pc.ontrack = null; + self._pc.ontrack = null } - self._pc.ondatachannel = null; + self._pc.ondatachannel = null } - self._pc = null; - self._channel = null; + self._pc = null + self._channel = null - if (err) self.emit('error', err); - self.emit('close'); - cb(); -}; + if (err) self.emit('error', err) + self.emit('close') + cb() +} Peer.prototype._setupData = function (event) { - var self = this; + var self = this if (!event.channel) { // In some situations `pc.createDataChannel()` returns `undefined` (in wrtc), // which is invalid behavior. Handle it gracefully. // See: https://github.com/feross/simple-peer/issues/163 - return self.destroy(makeError('Data channel event is missing `channel` property', 'ERR_DATA_CHANNEL')); + return self.destroy(makeError('Data channel event is missing `channel` property', 'ERR_DATA_CHANNEL')) } - self._channel = event.channel; - self._channel.binaryType = 'arraybuffer'; + self._channel = event.channel + self._channel.binaryType = 'arraybuffer' if (typeof self._channel.bufferedAmountLowThreshold === 'number') { - self._channel.bufferedAmountLowThreshold = MAX_BUFFERED_AMOUNT; + self._channel.bufferedAmountLowThreshold = MAX_BUFFERED_AMOUNT } - self.channelName = self._channel.label; + self.channelName = self._channel.label self._channel.onmessage = function (event) { - self._onChannelMessage(event); - }; + self._onChannelMessage(event) + } self._channel.onbufferedamountlow = function () { - self._onChannelBufferedAmountLow(); - }; + self._onChannelBufferedAmountLow() + } self._channel.onopen = function () { - self._onChannelOpen(); - }; + self._onChannelOpen() + } self._channel.onclose = function () { - self._onChannelClose(); - }; + self._onChannelClose() + } self._channel.onerror = function (err) { - self.destroy(makeError(err, 'ERR_DATA_CHANNEL')); - }; -}; + self.destroy(makeError(err, 'ERR_DATA_CHANNEL')) + } +} -Peer.prototype._read = function () {}; +Peer.prototype._read = function () {} Peer.prototype._write = function (chunk, encoding, cb) { - var self = this; - if (self.destroyed) return cb(makeError('cannot write after peer is destroyed', 'ERR_DATA_CHANNEL')); + var self = this + if (self.destroyed) return cb(makeError('cannot write after peer is destroyed', 'ERR_DATA_CHANNEL')) if (self.connected) { try { - self.send(chunk); + self.send(chunk) } catch (err) { - return self.destroy(makeError(err, 'ERR_DATA_CHANNEL')); + return self.destroy(makeError(err, 'ERR_DATA_CHANNEL')) } if (self._channel.bufferedAmount > MAX_BUFFERED_AMOUNT) { - self._debug('start backpressure: bufferedAmount %d', self._channel.bufferedAmount); - self._cb = cb; + self._debug('start backpressure: bufferedAmount %d', self._channel.bufferedAmount) + self._cb = cb } else { - cb(null); + cb(null) } } else { - self._debug('write before connect'); - self._chunk = chunk; - self._cb = cb; + self._debug('write before connect') + self._chunk = chunk + self._cb = cb } -}; +} // When stream finishes writing, close socket. Half open connections are not // supported. Peer.prototype._onFinish = function () { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return if (self.connected) { - destroySoon(); + destroySoon() } else { - self.once('connect', destroySoon); + self.once('connect', destroySoon) } // Wait a bit before destroying so the socket flushes. // TODO: is there a more reliable way to accomplish this? - function destroySoon() { + function destroySoon () { setTimeout(function () { - self.destroy(); - }, 1000); + self.destroy() + }, 1000) } -}; +} Peer.prototype._createOffer = function () { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return self._pc.createOffer(function (offer) { - if (self.destroyed) return; - offer.sdp = self.sdpTransform(offer.sdp); - self._pc.setLocalDescription(offer, onSuccess, onError); + if (self.destroyed) return + offer.sdp = self.sdpTransform(offer.sdp) + self._pc.setLocalDescription(offer, onSuccess, onError) - function onSuccess() { - self._debug('createOffer success'); - if (self.destroyed) return; - if (self.trickle || self._iceComplete) sendOffer();else self.once('_iceComplete', sendOffer); // wait for candidates + function onSuccess () { + self._debug('createOffer success') + if (self.destroyed) return + if (self.trickle || self._iceComplete) sendOffer() + else self.once('_iceComplete', sendOffer) // wait for candidates } - function onError(err) { - self.destroy(makeError(err, 'ERR_SET_LOCAL_DESCRIPTION')); + function onError (err) { + self.destroy(makeError(err, 'ERR_SET_LOCAL_DESCRIPTION')) } - function sendOffer() { - var signal = self._pc.localDescription || offer; - self._debug('signal'); + function sendOffer () { + var signal = self._pc.localDescription || offer + self._debug('signal') self.emit('signal', { type: signal.type, sdp: signal.sdp - }); + }) } - }, function (err) { - self.destroy(makeError(err, 'ERR_CREATE_OFFER')); - }, self.offerConstraints); -}; + }, function (err) { self.destroy(makeError(err, 'ERR_CREATE_OFFER')) }, self.offerConstraints) +} Peer.prototype._createAnswer = function () { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return self._pc.createAnswer(function (answer) { - if (self.destroyed) return; - answer.sdp = self.sdpTransform(answer.sdp); - self._pc.setLocalDescription(answer, onSuccess, onError); + if (self.destroyed) return + answer.sdp = self.sdpTransform(answer.sdp) + self._pc.setLocalDescription(answer, onSuccess, onError) - function onSuccess() { - if (self.destroyed) return; - if (self.trickle || self._iceComplete) sendAnswer();else self.once('_iceComplete', sendAnswer); + function onSuccess () { + if (self.destroyed) return + if (self.trickle || self._iceComplete) sendAnswer() + else self.once('_iceComplete', sendAnswer) } - function onError(err) { - self.destroy(makeError(err, 'ERR_SET_LOCAL_DESCRIPTION')); + function onError (err) { + self.destroy(makeError(err, 'ERR_SET_LOCAL_DESCRIPTION')) } - function sendAnswer() { - var signal = self._pc.localDescription || answer; - self._debug('signal'); + function sendAnswer () { + var signal = self._pc.localDescription || answer + self._debug('signal') self.emit('signal', { type: signal.type, sdp: signal.sdp - }); + }) } - }, function (err) { - self.destroy(makeError(err, 'ERR_CREATE_ANSWER')); - }, self.answerConstraints); -}; + }, function (err) { self.destroy(makeError(err, 'ERR_CREATE_ANSWER')) }, self.answerConstraints) +} Peer.prototype._onIceStateChange = function () { - var self = this; - if (self.destroyed) return; - var iceConnectionState = self._pc.iceConnectionState; - var iceGatheringState = self._pc.iceGatheringState; - - self._debug('iceStateChange (connection: %s) (gathering: %s)', iceConnectionState, iceGatheringState); - self.emit('iceStateChange', iceConnectionState, iceGatheringState); + var self = this + if (self.destroyed) return + var iceConnectionState = self._pc.iceConnectionState + var iceGatheringState = self._pc.iceGatheringState + + self._debug( + 'iceStateChange (connection: %s) (gathering: %s)', + iceConnectionState, + iceGatheringState + ) + self.emit('iceStateChange', iceConnectionState, iceGatheringState) if (iceConnectionState === 'connected' || iceConnectionState === 'completed') { - self._pcReady = true; - self._maybeReady(); + self._pcReady = true + self._maybeReady() } if (iceConnectionState === 'failed') { - self.destroy(makeError('Ice connection failed.', 'ERR_ICE_CONNECTION_FAILURE')); + self.destroy(makeError('Ice connection failed.', 'ERR_ICE_CONNECTION_FAILURE')) } if (iceConnectionState === 'closed') { - self.destroy(new Error('Ice connection closed.')); + self.destroy(new Error('Ice connection closed.')) } -}; +} Peer.prototype.getStats = function (cb) { - var self = this; + var self = this // Promise-based getStats() (standard) if (self._pc.getStats.length === 0) { self._pc.getStats().then(function (res) { - var reports = []; + var reports = [] res.forEach(function (report) { - reports.push(report); - }); - cb(null, reports); - }, function (err) { - cb(err); - }); + reports.push(report) + }) + cb(null, reports) + }, function (err) { cb(err) }) - // Two-parameter callback-based getStats() (deprecated, former standard) + // Two-parameter callback-based getStats() (deprecated, former standard) } else if (self._isReactNativeWebrtc) { self._pc.getStats(null, function (res) { - var reports = []; + var reports = [] res.forEach(function (report) { - reports.push(report); - }); - cb(null, reports); - }, function (err) { - cb(err); - }); + reports.push(report) + }) + cb(null, reports) + }, function (err) { cb(err) }) - // Single-parameter callback-based getStats() (non-standard) + // Single-parameter callback-based getStats() (non-standard) } else if (self._pc.getStats.length > 0) { self._pc.getStats(function (res) { // If we destroy connection in `connect` callback this code might happen to run when actual connection is already closed - if (self.destroyed) return; + if (self.destroyed) return - var reports = []; + var reports = [] res.result().forEach(function (result) { - var report = {}; + var report = {} result.names().forEach(function (name) { - report[name] = result.stat(name); - }); - report.id = result.id; - report.type = result.type; - report.timestamp = result.timestamp; - reports.push(report); - }); - cb(null, reports); - }, function (err) { - cb(err); - }); - - // Unknown browser, skip getStats() since it's anyone's guess which style of - // getStats() they implement. + report[name] = result.stat(name) + }) + report.id = result.id + report.type = result.type + report.timestamp = result.timestamp + reports.push(report) + }) + cb(null, reports) + }, function (err) { cb(err) }) + + // Unknown browser, skip getStats() since it's anyone's guess which style of + // getStats() they implement. } else { - cb(null, []); + cb(null, []) } -}; +} Peer.prototype._maybeReady = function () { - var self = this; - self._debug('maybeReady pc %s channel %s', self._pcReady, self._channelReady); - if (self.connected || self._connecting || !self._pcReady || !self._channelReady) return; + var self = this + self._debug('maybeReady pc %s channel %s', self._pcReady, self._channelReady) + if (self.connected || self._connecting || !self._pcReady || !self._channelReady) return - self._connecting = true; + self._connecting = true // HACK: We can't rely on order here, for details see https://github.com/js-platform/node-webrtc/issues/339 - function findCandidatePair() { - if (self.destroyed) return; + function findCandidatePair () { + if (self.destroyed) return self.getStats(function (err, items) { - if (self.destroyed) return; + if (self.destroyed) return // Treat getStats error as non-fatal. It's not essential. - if (err) items = []; + if (err) items = [] - var remoteCandidates = {}; - var localCandidates = {}; - var candidatePairs = {}; - var foundSelectedCandidatePair = false; + var remoteCandidates = {} + var localCandidates = {} + var candidatePairs = {} + var foundSelectedCandidatePair = false items.forEach(function (item) { // TODO: Once all browsers support the hyphenated stats report types, remove // the non-hypenated ones if (item.type === 'remotecandidate' || item.type === 'remote-candidate') { - remoteCandidates[item.id] = item; + remoteCandidates[item.id] = item } if (item.type === 'localcandidate' || item.type === 'local-candidate') { - localCandidates[item.id] = item; + localCandidates[item.id] = item } if (item.type === 'candidatepair' || item.type === 'candidate-pair') { - candidatePairs[item.id] = item; + candidatePairs[item.id] = item } - }); + }) items.forEach(function (item) { // Spec-compliant if (item.type === 'transport' && item.selectedCandidatePairId) { - setSelectedCandidatePair(candidatePairs[item.selectedCandidatePairId]); + setSelectedCandidatePair(candidatePairs[item.selectedCandidatePairId]) } // Old implementations - if (item.type === 'googCandidatePair' && item.googActiveConnection === 'true' || (item.type === 'candidatepair' || item.type === 'candidate-pair') && item.selected) { - setSelectedCandidatePair(item); + if ( + (item.type === 'googCandidatePair' && item.googActiveConnection === 'true') || + ((item.type === 'candidatepair' || item.type === 'candidate-pair') && item.selected) + ) { + setSelectedCandidatePair(item) } - }); + }) - function setSelectedCandidatePair(selectedCandidatePair) { - foundSelectedCandidatePair = true; + function setSelectedCandidatePair (selectedCandidatePair) { + foundSelectedCandidatePair = true - var local = localCandidates[selectedCandidatePair.localCandidateId]; + var local = localCandidates[selectedCandidatePair.localCandidateId] if (local && local.ip) { // Spec - self.localAddress = local.ip; - self.localPort = Number(local.port); + self.localAddress = local.ip + self.localPort = Number(local.port) } else if (local && local.ipAddress) { // Firefox - self.localAddress = local.ipAddress; - self.localPort = Number(local.portNumber); + self.localAddress = local.ipAddress + self.localPort = Number(local.portNumber) } else if (typeof selectedCandidatePair.googLocalAddress === 'string') { // TODO: remove this once Chrome 58 is released - local = selectedCandidatePair.googLocalAddress.split(':'); - self.localAddress = local[0]; - self.localPort = Number(local[1]); + local = selectedCandidatePair.googLocalAddress.split(':') + self.localAddress = local[0] + self.localPort = Number(local[1]) } - var remote = remoteCandidates[selectedCandidatePair.remoteCandidateId]; + var remote = remoteCandidates[selectedCandidatePair.remoteCandidateId] if (remote && remote.ip) { // Spec - self.remoteAddress = remote.ip; - self.remotePort = Number(remote.port); + self.remoteAddress = remote.ip + self.remotePort = Number(remote.port) } else if (remote && remote.ipAddress) { // Firefox - self.remoteAddress = remote.ipAddress; - self.remotePort = Number(remote.portNumber); + self.remoteAddress = remote.ipAddress + self.remotePort = Number(remote.portNumber) } else if (typeof selectedCandidatePair.googRemoteAddress === 'string') { // TODO: remove this once Chrome 58 is released - remote = selectedCandidatePair.googRemoteAddress.split(':'); - self.remoteAddress = remote[0]; - self.remotePort = Number(remote[1]); + remote = selectedCandidatePair.googRemoteAddress.split(':') + self.remoteAddress = remote[0] + self.remotePort = Number(remote[1]) } - self.remoteFamily = 'IPv4'; + self.remoteFamily = 'IPv4' - self._debug('connect local: %s:%s remote: %s:%s', self.localAddress, self.localPort, self.remoteAddress, self.remotePort); + self._debug( + 'connect local: %s:%s remote: %s:%s', + self.localAddress, self.localPort, self.remoteAddress, self.remotePort + ) } // Ignore candidate pair selection in browsers like Safari 11 that do not have any local or remote candidates // But wait until at least 1 candidate pair is available if (!foundSelectedCandidatePair && (!Object.keys(candidatePairs).length || Object.keys(localCandidates).length)) { - setTimeout(findCandidatePair, 100); - return; + setTimeout(findCandidatePair, 100) + return } else { - self._connecting = false; - self.connected = true; + self._connecting = false + self.connected = true } if (self._chunk) { try { - self.send(self._chunk); + self.send(self._chunk) } catch (err) { - return self.destroy(makeError(err, 'ERR_DATA_CHANNEL')); + return self.destroy(makeError(err, 'ERR_DATA_CHANNEL')) } - self._chunk = null; - self._debug('sent chunk from "write before connect"'); + self._chunk = null + self._debug('sent chunk from "write before connect"') - var cb = self._cb; - self._cb = null; - cb(null); + var cb = self._cb + self._cb = null + cb(null) } // If `bufferedAmountLowThreshold` and 'onbufferedamountlow' are unsupported, // fallback to using setInterval to implement backpressure. if (typeof self._channel.bufferedAmountLowThreshold !== 'number') { - self._interval = setInterval(function () { - self._onInterval(); - }, 150); - if (self._interval.unref) self._interval.unref(); + self._interval = setInterval(function () { self._onInterval() }, 150) + if (self._interval.unref) self._interval.unref() } - self._debug('connect'); - self.emit('connect'); - }); + self._debug('connect') + self.emit('connect') + }) } - findCandidatePair(); -}; + findCandidatePair() +} Peer.prototype._onInterval = function () { - var self = this; + var self = this if (!self._cb || !self._channel || self._channel.bufferedAmount > MAX_BUFFERED_AMOUNT) { - return; + return } - self._onChannelBufferedAmountLow(); -}; + self._onChannelBufferedAmountLow() +} Peer.prototype._onSignalingStateChange = function () { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return if (self._pc.signalingState === 'stable') { - self._isNegotiating = false; + self._isNegotiating = false // HACK: Firefox doesn't yet support removing tracks when signalingState !== 'stable' - self._debug('flushing sender queue', self._sendersAwaitingStable); + self._debug('flushing sender queue', self._sendersAwaitingStable) self._sendersAwaitingStable.forEach(function (sender) { - self.removeTrack(sender); - self._queuedNegotiation = true; - }); - self._sendersAwaitingStable = []; + self.removeTrack(sender) + self._queuedNegotiation = true + }) + self._sendersAwaitingStable = [] if (self._queuedNegotiation) { - self._debug('flushing negotiation queue'); - self._queuedNegotiation = false; - self._needsNegotiation(); // negotiate again + self._debug('flushing negotiation queue') + self._queuedNegotiation = false + self._needsNegotiation() // negotiate again } - self._debug('negotiate'); - self.emit('negotiate'); + self._debug('negotiate') + self.emit('negotiate') } - self._debug('signalingStateChange %s', self._pc.signalingState); - self.emit('signalingStateChange', self._pc.signalingState); -}; + self._debug('signalingStateChange %s', self._pc.signalingState) + self.emit('signalingStateChange', self._pc.signalingState) +} Peer.prototype._onIceCandidate = function (event) { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return if (event.candidate && self.trickle) { self.emit('signal', { candidate: { @@ -53650,151 +57758,139 @@ Peer.prototype._onIceCandidate = function (event) { sdpMLineIndex: event.candidate.sdpMLineIndex, sdpMid: event.candidate.sdpMid } - }); + }) } else if (!event.candidate) { - self._iceComplete = true; - self.emit('_iceComplete'); + self._iceComplete = true + self.emit('_iceComplete') } -}; +} Peer.prototype._onChannelMessage = function (event) { - var self = this; - if (self.destroyed) return; - var data = event.data; - if (data instanceof ArrayBuffer) data = Buffer.from(data); - self.push(data); -}; + var self = this + if (self.destroyed) return + var data = event.data + if (data instanceof ArrayBuffer) data = Buffer.from(data) + self.push(data) +} Peer.prototype._onChannelBufferedAmountLow = function () { - var self = this; - if (self.destroyed || !self._cb) return; - self._debug('ending backpressure: bufferedAmount %d', self._channel.bufferedAmount); - var cb = self._cb; - self._cb = null; - cb(null); -}; + var self = this + if (self.destroyed || !self._cb) return + self._debug('ending backpressure: bufferedAmount %d', self._channel.bufferedAmount) + var cb = self._cb + self._cb = null + cb(null) +} Peer.prototype._onChannelOpen = function () { - var self = this; - if (self.connected || self.destroyed) return; - self._debug('on channel open'); - self._channelReady = true; - self._maybeReady(); -}; + var self = this + if (self.connected || self.destroyed) return + self._debug('on channel open') + self._channelReady = true + self._maybeReady() +} Peer.prototype._onChannelClose = function () { - var self = this; - if (self.destroyed) return; - self._debug('on channel close'); - self.destroy(); -}; + var self = this + if (self.destroyed) return + self._debug('on channel close') + self.destroy() +} Peer.prototype._onTrack = function (event) { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return event.streams.forEach(function (eventStream) { - self._debug('on track'); - self.emit('track', event.track, eventStream); + self._debug('on track') + self.emit('track', event.track, eventStream) self._remoteTracks.push({ track: event.track, stream: eventStream - }); + }) if (self._remoteStreams.some(function (remoteStream) { - return remoteStream.id === eventStream.id; - })) return; // Only fire one 'stream' event, even though there may be multiple tracks per stream + return remoteStream.id === eventStream.id + })) return // Only fire one 'stream' event, even though there may be multiple tracks per stream - self._remoteStreams.push(eventStream); + self._remoteStreams.push(eventStream) setTimeout(function () { - self.emit('stream', eventStream); // ensure all tracks have been added - }, 0); - }); -}; + self.emit('stream', eventStream) // ensure all tracks have been added + }, 0) + }) +} Peer.prototype._debug = function () { - var self = this; - var args = [].slice.call(arguments); - args[0] = '[' + self._id + '] ' + args[0]; - debug.apply(null, args); -}; + var self = this + var args = [].slice.call(arguments) + args[0] = '[' + self._id + '] ' + args[0] + debug.apply(null, args) +} // Transform constraints objects into the new format (unless Chromium) // TODO: This can be removed when Chromium supports the new format Peer.prototype._transformConstraints = function (constraints) { - var self = this; + var self = this if (Object.keys(constraints).length === 0) { - return constraints; + return constraints } if ((constraints.mandatory || constraints.optional) && !self._isChromium) { // convert to new format // Merge mandatory and optional objects, prioritizing mandatory - var newConstraints = Object.assign({}, constraints.optional, constraints.mandatory); + var newConstraints = Object.assign({}, constraints.optional, constraints.mandatory) // fix casing if (newConstraints.OfferToReceiveVideo !== undefined) { - newConstraints.offerToReceiveVideo = newConstraints.OfferToReceiveVideo; - delete newConstraints['OfferToReceiveVideo']; + newConstraints.offerToReceiveVideo = newConstraints.OfferToReceiveVideo + delete newConstraints['OfferToReceiveVideo'] } if (newConstraints.OfferToReceiveAudio !== undefined) { - newConstraints.offerToReceiveAudio = newConstraints.OfferToReceiveAudio; - delete newConstraints['OfferToReceiveAudio']; + newConstraints.offerToReceiveAudio = newConstraints.OfferToReceiveAudio + delete newConstraints['OfferToReceiveAudio'] } - return newConstraints; + return newConstraints } else if (!constraints.mandatory && !constraints.optional && self._isChromium) { // convert to old format // fix casing if (constraints.offerToReceiveVideo !== undefined) { - constraints.OfferToReceiveVideo = constraints.offerToReceiveVideo; - delete constraints['offerToReceiveVideo']; + constraints.OfferToReceiveVideo = constraints.offerToReceiveVideo + delete constraints['offerToReceiveVideo'] } if (constraints.offerToReceiveAudio !== undefined) { - constraints.OfferToReceiveAudio = constraints.offerToReceiveAudio; - delete constraints['offerToReceiveAudio']; + constraints.OfferToReceiveAudio = constraints.offerToReceiveAudio + delete constraints['offerToReceiveAudio'] } return { mandatory: constraints // NOTE: All constraints are upgraded to mandatory - }; + } } - return constraints; -}; + return constraints +} -function makeError(message, code) { - var err = new Error(message); - err.code = code; - return err; +function makeError (message, code) { + var err = new Error(message) + err.code = code + return err } -function noop() {} +function noop () {} }).call(this,require("buffer").Buffer) -},{"buffer":401,"debug":292,"get-browser-rtc":228,"inherits":247,"randombytes":264,"readable-stream":273}],292:[function(require,module,exports){ +},{"buffer":415,"debug":294,"get-browser-rtc":228,"inherits":247,"randombytes":264,"readable-stream":273}],294:[function(require,module,exports){ (function (process){ "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; }; - -function _typeof(obj) { - if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj === "undefined" ? "undefined" : _typeof2(obj); - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof2(obj); - }; - }return _typeof(obj); -} +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /* eslint-env browser */ @@ -53848,6 +57944,7 @@ function useColors() { * @api public */ + function formatArgs(args) { args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff); @@ -53884,6 +57981,7 @@ function formatArgs(args) { * @api public */ + function log() { var _console; @@ -53898,6 +57996,7 @@ function log() { * @api private */ + function save(namespaces) { try { if (namespaces) { @@ -53916,6 +58015,7 @@ function save(namespaces) { * @api private */ + function load() { var r; @@ -53943,6 +58043,7 @@ function load() { * @api private */ + function localstorage() { try { // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context @@ -53967,15 +58068,15 @@ formatters.j = function (v) { } }; + }).call(this,require('_process')) -},{"./common":293,"_process":911}],293:[function(require,module,exports){ +},{"./common":295,"_process":925}],295:[function(require,module,exports){ "use strict"; /** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ - function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; @@ -54126,6 +58227,7 @@ function setup(env) { * @api public */ + function enable(namespaces) { createDebug.save(namespaces); createDebug.names = []; @@ -54160,6 +58262,7 @@ function setup(env) { * @api public */ + function disable() { createDebug.enable(''); } @@ -54171,6 +58274,7 @@ function setup(env) { * @api public */ + function enabled(name) { if (name[name.length - 1] === '*') { return true; @@ -54201,6 +58305,7 @@ function setup(env) { * @api private */ + function coerce(val) { if (val instanceof Error) { return val.stack || val.message; @@ -54215,12 +58320,10 @@ function setup(env) { module.exports = setup; -},{"ms":294}],294:[function(require,module,exports){ -arguments[4][191][0].apply(exports,arguments) -},{"dup":191}],295:[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; }; +},{"ms":296}],296:[function(require,module,exports){ +arguments[4][191][0].apply(exports,arguments) +},{"dup":191}],297:[function(require,module,exports){ /** * Module dependencies. @@ -54256,8 +58359,8 @@ var cache = exports.managers = {}; * @api public */ -function lookup(uri, opts) { - if ((typeof uri === 'undefined' ? 'undefined' : _typeof(uri)) === 'object') { +function lookup (uri, opts) { + if (typeof uri === 'object') { opts = uri; uri = undefined; } @@ -54269,7 +58372,8 @@ function lookup(uri, opts) { var id = parsed.id; var path = parsed.path; var sameNamespace = cache[id] && path in cache[id].nsps; - var newConnection = opts.forceNew || opts['force new connection'] || false === opts.multiplex || sameNamespace; + var newConnection = opts.forceNew || opts['force new connection'] || + false === opts.multiplex || sameNamespace; var io; @@ -54315,10 +58419,7 @@ exports.connect = lookup; exports.Manager = require('./manager'); exports.Socket = require('./socket'); -},{"./manager":296,"./socket":298,"./url":299,"debug":300,"socket.io-parser":303}],296:[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; }; +},{"./manager":298,"./socket":300,"./url":301,"debug":302,"socket.io-parser":305}],298:[function(require,module,exports){ /** * Module dependencies. @@ -54354,9 +58455,9 @@ module.exports = Manager; * @api public */ -function Manager(uri, opts) { +function Manager (uri, opts) { if (!(this instanceof Manager)) return new Manager(uri, opts); - if (uri && 'object' === (typeof uri === 'undefined' ? 'undefined' : _typeof(uri))) { + if (uri && ('object' === typeof uri)) { opts = uri; uri = undefined; } @@ -54428,7 +58529,7 @@ Manager.prototype.updateSocketIds = function () { */ Manager.prototype.generateId = function (nsp) { - return (nsp === '/' ? '' : nsp + '#') + this.engine.id; + return (nsp === '/' ? '' : (nsp + '#')) + this.engine.id; }; /** @@ -54538,7 +58639,8 @@ Manager.prototype.maybeReconnectOnOpen = function () { * @api public */ -Manager.prototype.open = Manager.prototype.connect = function (fn, opts) { +Manager.prototype.open = +Manager.prototype.connect = function (fn, opts) { debug('readyState %s', this.readyState); if (~this.readyState.indexOf('open')) return this; @@ -54586,7 +58688,7 @@ Manager.prototype.open = Manager.prototype.connect = function (fn, opts) { }, timeout); this.subs.push({ - destroy: function destroy() { + destroy: function () { clearTimeout(timer); } }); @@ -54700,7 +58802,7 @@ Manager.prototype.socket = function (nsp, opts) { } } - function onConnecting() { + function onConnecting () { if (!~indexOf(self.connecting, socket)) { self.connecting.push(socket); } @@ -54745,8 +58847,7 @@ Manager.prototype.packet = function (packet) { self.encoding = false; self.processPacketQueue(); }); - } else { - // add packet to the queue + } else { // add packet to the queue self.packetBuffer.push(packet); } }; @@ -54793,7 +58894,8 @@ Manager.prototype.cleanup = function () { * @api private */ -Manager.prototype.close = Manager.prototype.disconnect = function () { +Manager.prototype.close = +Manager.prototype.disconnect = function () { debug('disconnect'); this.skipReconnect = true; this.reconnecting = false; @@ -54871,7 +58973,7 @@ Manager.prototype.reconnect = function () { }, delay); this.subs.push({ - destroy: function destroy() { + destroy: function () { clearTimeout(timer); } }); @@ -54892,8 +58994,7 @@ Manager.prototype.onreconnect = function () { this.emitAll('reconnect', attempt); }; -},{"./on":297,"./socket":298,"backo2":178,"component-bind":186,"component-emitter":187,"debug":300,"engine.io-client":212,"indexof":246,"socket.io-parser":303}],297:[function(require,module,exports){ -"use strict"; +},{"./on":299,"./socket":300,"backo2":178,"component-bind":186,"component-emitter":187,"debug":302,"engine.io-client":212,"indexof":246,"socket.io-parser":305}],299:[function(require,module,exports){ /** * Module exports. @@ -54910,19 +59011,16 @@ module.exports = on; * @api public */ -function on(obj, ev, fn) { +function on (obj, ev, fn) { obj.on(ev, fn); return { - destroy: function destroy() { + destroy: function () { obj.removeListener(ev, fn); } }; } -},{}],298:[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; }; +},{}],300:[function(require,module,exports){ /** * Module dependencies. @@ -54978,7 +59076,7 @@ var emit = Emitter.prototype.emit; * @api public */ -function Socket(io, nsp, opts) { +function Socket (io, nsp, opts) { this.io = io; this.nsp = nsp; this.json = this; // compat @@ -55011,7 +59109,11 @@ Socket.prototype.subEvents = function () { if (this.subs) return; var io = this.io; - this.subs = [on(io, 'open', bind(this, 'onopen')), on(io, 'packet', bind(this, 'onpacket')), on(io, 'close', bind(this, 'onclose'))]; + this.subs = [ + on(io, 'open', bind(this, 'onopen')), + on(io, 'packet', bind(this, 'onpacket')), + on(io, 'close', bind(this, 'onclose')) + ]; }; /** @@ -55020,7 +59122,8 @@ Socket.prototype.subEvents = function () { * @api public */ -Socket.prototype.open = Socket.prototype.connect = function () { +Socket.prototype.open = +Socket.prototype.connect = function () { if (this.connected) return this; this.subEvents(); @@ -55110,11 +59213,11 @@ Socket.prototype.onopen = function () { // write connect packet if necessary if ('/' !== this.nsp) { if (this.query) { - var query = _typeof(this.query) === 'object' ? parseqs.encode(this.query) : this.query; + var query = typeof this.query === 'object' ? parseqs.encode(this.query) : this.query; debug('sending connect packet with query %s', query); - this.packet({ type: parser.CONNECT, query: query }); + this.packet({type: parser.CONNECT, query: query}); } else { - this.packet({ type: parser.CONNECT }); + this.packet({type: parser.CONNECT}); } } }; @@ -55314,7 +59417,8 @@ Socket.prototype.destroy = function () { * @api public */ -Socket.prototype.close = Socket.prototype.disconnect = function () { +Socket.prototype.close = +Socket.prototype.disconnect = function () { if (this.connected) { debug('performing disconnect (%s)', this.nsp); this.packet({ type: parser.DISCONNECT }); @@ -55356,9 +59460,8 @@ Socket.prototype.binary = function (binary) { return this; }; -},{"./on":297,"component-bind":186,"component-emitter":187,"debug":300,"has-binary2":229,"parseqs":261,"socket.io-parser":303,"to-array":310}],299:[function(require,module,exports){ +},{"./on":299,"component-bind":186,"component-emitter":187,"debug":302,"has-binary2":229,"parseqs":261,"socket.io-parser":305,"to-array":312}],301:[function(require,module,exports){ (function (global){ -'use strict'; /** * Module dependencies. @@ -55382,7 +59485,7 @@ module.exports = url; * @api public */ -function url(uri, loc) { +function url (uri, loc) { var obj = uri; // default to window.location @@ -55430,22 +59533,18 @@ function url(uri, loc) { // define unique id obj.id = obj.protocol + '://' + host + ':' + obj.port; // define href - obj.href = obj.protocol + '://' + host + (loc && loc.port === obj.port ? '' : ':' + obj.port); + obj.href = obj.protocol + '://' + host + (loc && loc.port === obj.port ? '' : (':' + obj.port)); return obj; } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"debug":300,"parseuri":262}],300:[function(require,module,exports){ +},{"debug":302,"parseuri":262}],302:[function(require,module,exports){ arguments[4][221][0].apply(exports,arguments) -},{"./debug":301,"_process":911,"dup":221}],301:[function(require,module,exports){ +},{"./debug":303,"_process":925,"dup":221}],303:[function(require,module,exports){ arguments[4][222][0].apply(exports,arguments) -},{"dup":222,"ms":260}],302:[function(require,module,exports){ +},{"dup":222,"ms":260}],304:[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; }; - /*global Blob,File*/ /** @@ -55468,13 +59567,13 @@ var withNativeFile = typeof global.File === 'function' || toString.call(global.F * @api public */ -exports.deconstructPacket = function (packet) { +exports.deconstructPacket = function(packet) { var buffers = []; var packetData = packet.data; var pack = packet; pack.data = _deconstructPacket(packetData, buffers); pack.attachments = buffers.length; // number of binary 'attachments' - return { packet: pack, buffers: buffers }; + return {packet: pack, buffers: buffers}; }; function _deconstructPacket(data, buffers) { @@ -55490,7 +59589,7 @@ function _deconstructPacket(data, buffers) { newData[i] = _deconstructPacket(data[i], buffers); } return newData; - } else if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object' && !(data instanceof Date)) { + } else if (typeof data === 'object' && !(data instanceof Date)) { var newData = {}; for (var key in data) { newData[key] = _deconstructPacket(data[key], buffers); @@ -55509,7 +59608,7 @@ function _deconstructPacket(data, buffers) { * @api public */ -exports.reconstructPacket = function (packet, buffers) { +exports.reconstructPacket = function(packet, buffers) { packet.data = _reconstructPacket(packet.data, buffers); packet.attachments = undefined; // no longer useful return packet; @@ -55524,7 +59623,7 @@ function _reconstructPacket(data, buffers) { for (var i = 0; i < data.length; i++) { data[i] = _reconstructPacket(data[i], buffers); } - } else if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object') { + } else if (typeof data === 'object') { for (var key in data) { data[key] = _reconstructPacket(data[key], buffers); } @@ -55543,38 +59642,37 @@ function _reconstructPacket(data, buffers) { * @api private */ -exports.removeBlobs = function (data, callback) { +exports.removeBlobs = function(data, callback) { function _removeBlobs(obj, curKey, containingObject) { if (!obj) return obj; // convert any blob - if (withNativeBlob && obj instanceof Blob || withNativeFile && obj instanceof File) { + if ((withNativeBlob && obj instanceof Blob) || + (withNativeFile && obj instanceof File)) { pendingBlobs++; // async filereader var fileReader = new FileReader(); - fileReader.onload = function () { - // this.result == arraybuffer + fileReader.onload = function() { // this.result == arraybuffer if (containingObject) { containingObject[curKey] = this.result; - } else { + } + else { bloblessData = this.result; } // if nothing pending its callback time - if (! --pendingBlobs) { + if(! --pendingBlobs) { callback(bloblessData); } }; fileReader.readAsArrayBuffer(obj); // blob -> arraybuffer - } else if (isArray(obj)) { - // handle array + } else if (isArray(obj)) { // handle array for (var i = 0; i < obj.length; i++) { _removeBlobs(obj[i], i, obj); } - } else if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !isBuf(obj)) { - // and object + } else if (typeof obj === 'object' && !isBuf(obj)) { // and object for (var key in obj) { _removeBlobs(obj[key], key, obj); } @@ -55590,8 +59688,7 @@ exports.removeBlobs = function (data, callback) { }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./is-buffer":304,"isarray":307}],303:[function(require,module,exports){ -'use strict'; +},{"./is-buffer":306,"isarray":309}],305:[function(require,module,exports){ /** * Module dependencies. @@ -55617,7 +59714,15 @@ exports.protocol = 4; * @api public */ -exports.types = ['CONNECT', 'DISCONNECT', 'EVENT', 'ACK', 'ERROR', 'BINARY_EVENT', 'BINARY_ACK']; +exports.types = [ + 'CONNECT', + 'DISCONNECT', + 'EVENT', + 'ACK', + 'ERROR', + 'BINARY_EVENT', + 'BINARY_ACK' +]; /** * Packet type `connect`. @@ -55711,7 +59816,7 @@ var ERROR_PACKET = exports.ERROR + '"encode error"'; * @api public */ -Encoder.prototype.encode = function (obj, callback) { +Encoder.prototype.encode = function(obj, callback){ debug('encoding packet %j', obj); if (exports.BINARY_EVENT === obj.type || exports.BINARY_ACK === obj.type) { @@ -55768,7 +59873,7 @@ function encodeAsString(obj) { function tryStringify(str) { try { return JSON.stringify(str); - } catch (e) { + } catch(e){ return false; } } @@ -55822,35 +59927,33 @@ Emitter(Decoder.prototype); * @api public */ -Decoder.prototype.add = function (obj) { +Decoder.prototype.add = function(obj) { var packet; if (typeof obj === 'string') { packet = decodeString(obj); - if (exports.BINARY_EVENT === packet.type || exports.BINARY_ACK === packet.type) { - // binary packet's json + if (exports.BINARY_EVENT === packet.type || exports.BINARY_ACK === packet.type) { // binary packet's json this.reconstructor = new BinaryReconstructor(packet); // no attachments, labeled binary but no binary data to follow if (this.reconstructor.reconPack.attachments === 0) { this.emit('decoded', packet); } - } else { - // non-binary full packet + } else { // non-binary full packet this.emit('decoded', packet); } - } else if (isBuf(obj) || obj.base64) { - // raw binary data + } + else if (isBuf(obj) || obj.base64) { // raw binary data if (!this.reconstructor) { throw new Error('got binary data when not reconstructing a packet'); } else { packet = this.reconstructor.takeBinaryData(obj); - if (packet) { - // received final buffer + if (packet) { // received final buffer this.reconstructor = null; this.emit('decoded', packet); } } - } else { + } + else { throw new Error('Unknown type: ' + obj); } }; @@ -55934,7 +60037,7 @@ function decodeString(str) { function tryParse(str) { try { return JSON.parse(str); - } catch (e) { + } catch(e){ return false; } } @@ -55945,7 +60048,7 @@ function tryParse(str) { * @api public */ -Decoder.prototype.destroy = function () { +Decoder.prototype.destroy = function() { if (this.reconstructor) { this.reconstructor.finishedReconstruction(); } @@ -55976,10 +60079,9 @@ function BinaryReconstructor(packet) { * @api private */ -BinaryReconstructor.prototype.takeBinaryData = function (binData) { +BinaryReconstructor.prototype.takeBinaryData = function(binData) { this.buffers.push(binData); - if (this.buffers.length === this.reconPack.attachments) { - // done with buffer list + if (this.buffers.length === this.reconPack.attachments) { // done with buffer list var packet = binary.reconstructPacket(this.reconPack, this.buffers); this.finishedReconstruction(); return packet; @@ -55993,7 +60095,7 @@ BinaryReconstructor.prototype.takeBinaryData = function (binData) { * @api private */ -BinaryReconstructor.prototype.finishedReconstruction = function () { +BinaryReconstructor.prototype.finishedReconstruction = function() { this.reconPack = null; this.buffers = []; }; @@ -56005,24 +60107,21 @@ function error(msg) { }; } -},{"./binary":302,"./is-buffer":304,"component-emitter":187,"debug":305,"isarray":307}],304:[function(require,module,exports){ +},{"./binary":304,"./is-buffer":306,"component-emitter":187,"debug":307,"isarray":309}],306:[function(require,module,exports){ (function (global){ -'use strict'; module.exports = isBuf; var withNativeBuffer = typeof global.Buffer === 'function' && typeof global.Buffer.isBuffer === 'function'; var withNativeArrayBuffer = typeof global.ArrayBuffer === 'function'; -var isView = function () { +var isView = (function () { if (withNativeArrayBuffer && typeof global.ArrayBuffer.isView === 'function') { return global.ArrayBuffer.isView; } else { - return function (obj) { - return obj.buffer instanceof global.ArrayBuffer; - }; + return function (obj) { return obj.buffer instanceof global.ArrayBuffer; }; } -}(); +})(); /** * Returns true if obj is a buffer or an arraybuffer. @@ -56031,17 +60130,18 @@ var isView = function () { */ function isBuf(obj) { - return withNativeBuffer && global.Buffer.isBuffer(obj) || withNativeArrayBuffer && (obj instanceof global.ArrayBuffer || isView(obj)); + return (withNativeBuffer && global.Buffer.isBuffer(obj)) || + (withNativeArrayBuffer && (obj instanceof global.ArrayBuffer || isView(obj))); } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],305:[function(require,module,exports){ +},{}],307:[function(require,module,exports){ arguments[4][221][0].apply(exports,arguments) -},{"./debug":306,"_process":911,"dup":221}],306:[function(require,module,exports){ +},{"./debug":308,"_process":925,"dup":221}],308:[function(require,module,exports){ arguments[4][222][0].apply(exports,arguments) -},{"dup":222,"ms":260}],307:[function(require,module,exports){ +},{"dup":222,"ms":260}],309:[function(require,module,exports){ arguments[4][230][0].apply(exports,arguments) -},{"dup":230}],308:[function(require,module,exports){ +},{"dup":230}],310:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -56225,17 +60325,17 @@ function utf8CheckIncomplete(self, buf, i) { function utf8CheckExtraBytes(self, buf, p) { if ((buf[0] & 0xC0) !== 0x80) { self.lastNeed = 0; - return '\uFFFD'; + return '\ufffd'; } if (self.lastNeed > 1 && buf.length > 1) { if ((buf[1] & 0xC0) !== 0x80) { self.lastNeed = 1; - return '\uFFFD'; + return '\ufffd'; } if (self.lastNeed > 2 && buf.length > 2) { if ((buf[2] & 0xC0) !== 0x80) { self.lastNeed = 2; - return '\uFFFD'; + return '\ufffd'; } } } @@ -56270,7 +60370,7 @@ function utf8Text(buf, i) { // character. function utf8End(buf) { var r = buf && buf.length ? this.write(buf) : ''; - if (this.lastNeed) return r + '\uFFFD'; + if (this.lastNeed) return r + '\ufffd'; return r; } @@ -56338,10 +60438,7 @@ function simpleWrite(buf) { function simpleEnd(buf) { return buf && buf.length ? this.write(buf) : ''; } - -},{"safe-buffer":276}],309:[function(require,module,exports){ -'use strict'; - +},{"safe-buffer":277}],311:[function(require,module,exports){ var isHexPrefixed = require('is-hex-prefixed'); /** @@ -56355,28 +60452,25 @@ module.exports = function stripHexPrefix(str) { } return isHexPrefixed(str) ? str.slice(2) : str; -}; - -},{"is-hex-prefixed":248}],310:[function(require,module,exports){ -"use strict"; +} -module.exports = toArray; +},{"is-hex-prefixed":248}],312:[function(require,module,exports){ +module.exports = toArray function toArray(list, index) { - var array = []; + var array = [] - index = index || 0; + index = index || 0 for (var i = index || 0; i < list.length; i++) { - array[i - index] = list[i]; + array[i - index] = list[i] } - return array; + return array } -},{}],311:[function(require,module,exports){ +},{}],313:[function(require,module,exports){ (function (global){ -'use strict'; /** * Module exports. @@ -56402,7 +60496,7 @@ module.exports = deprecate; * @api public */ -function deprecate(fn, msg) { +function deprecate (fn, msg) { if (config('noDeprecation')) { return fn; } @@ -56433,7 +60527,7 @@ function deprecate(fn, msg) { * @api private */ -function config(name) { +function config (name) { // accessing global.localStorage can trigger a DOMException in sandboxed iframes try { if (!global.localStorage) return false; @@ -56446,49741 +60540,53619 @@ function config(name) { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],312:[function(require,module,exports){ -'use strict'; - -var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split(''), - length = 64, - map = {}, - seed = 0, - i = 0, - prev; - -/** - * Return a string representing the specified number. +},{}],314:[function(require,module,exports){ +(function (global){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * - * @param {Number} num The number to convert. - * @returns {String} The string representation of the number. - * @api public + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. */ -function encode(num) { - var encoded = ''; + /* eslint-env node */ - do { - encoded = alphabet[num % length] + encoded; - num = Math.floor(num / length); - } while (num > 0); +'use strict'; - return encoded; -} +var adapterFactory = require('./adapter_factory.js'); +module.exports = adapterFactory({window: global.window}); -/** - * Return the integer value specified by the given string. +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{"./adapter_factory.js":315}],315:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * - * @param {String} str The string to convert. - * @returns {Number} The integer value represented by the string. - * @api public + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. */ -function decode(str) { - var decoded = 0; + /* eslint-env node */ - for (i = 0; i < str.length; i++) { - decoded = decoded * length + map[str.charAt(i)]; - } +'use strict'; - return decoded; -} +var utils = require('./utils'); +// Shimming starts here. +module.exports = function(dependencies, opts) { + var window = dependencies && dependencies.window; + + var options = { + shimChrome: true, + shimFirefox: true, + shimEdge: true, + shimSafari: true, + }; + + for (var key in opts) { + if (hasOwnProperty.call(opts, key)) { + options[key] = opts[key]; + } + } + + // Utils. + var logging = utils.log; + var browserDetails = utils.detectBrowser(window); + + // Uncomment the line below if you want logging to occur, including logging + // for the switch statement below. Can also be turned on in the browser via + // adapter.disableLog(false), but then logging from the switch statement below + // will not appear. + // require('./utils').disableLog(false); + + // Browser shims. + var chromeShim = require('./chrome/chrome_shim') || null; + var edgeShim = require('./edge/edge_shim') || null; + var firefoxShim = require('./firefox/firefox_shim') || null; + var safariShim = require('./safari/safari_shim') || null; + var commonShim = require('./common_shim') || null; + + // Export to the adapter global object visible in the browser. + var adapter = { + browserDetails: browserDetails, + commonShim: commonShim, + extractVersion: utils.extractVersion, + disableLog: utils.disableLog, + disableWarnings: utils.disableWarnings + }; + + // Shim browser if found. + switch (browserDetails.browser) { + case 'chrome': + if (!chromeShim || !chromeShim.shimPeerConnection || + !options.shimChrome) { + logging('Chrome shim is not included in this adapter release.'); + return adapter; + } + logging('adapter.js shimming chrome.'); + // Export to the adapter global object visible in the browser. + adapter.browserShim = chromeShim; + commonShim.shimCreateObjectURL(window); + + chromeShim.shimGetUserMedia(window); + chromeShim.shimMediaStream(window); + chromeShim.shimSourceObject(window); + chromeShim.shimPeerConnection(window); + chromeShim.shimOnTrack(window); + chromeShim.shimAddTrackRemoveTrack(window); + chromeShim.shimGetSendersWithDtmf(window); + chromeShim.shimSenderReceiverGetStats(window); + chromeShim.fixNegotiationNeeded(window); + + commonShim.shimRTCIceCandidate(window); + commonShim.shimMaxMessageSize(window); + commonShim.shimSendThrowTypeError(window); + break; + case 'firefox': + if (!firefoxShim || !firefoxShim.shimPeerConnection || + !options.shimFirefox) { + logging('Firefox shim is not included in this adapter release.'); + return adapter; + } + logging('adapter.js shimming firefox.'); + // Export to the adapter global object visible in the browser. + adapter.browserShim = firefoxShim; + commonShim.shimCreateObjectURL(window); + + firefoxShim.shimGetUserMedia(window); + firefoxShim.shimSourceObject(window); + firefoxShim.shimPeerConnection(window); + firefoxShim.shimOnTrack(window); + firefoxShim.shimRemoveStream(window); + firefoxShim.shimSenderGetStats(window); + firefoxShim.shimReceiverGetStats(window); + firefoxShim.shimRTCDataChannel(window); + + commonShim.shimRTCIceCandidate(window); + commonShim.shimMaxMessageSize(window); + commonShim.shimSendThrowTypeError(window); + break; + case 'edge': + if (!edgeShim || !edgeShim.shimPeerConnection || !options.shimEdge) { + logging('MS edge shim is not included in this adapter release.'); + return adapter; + } + logging('adapter.js shimming edge.'); + // Export to the adapter global object visible in the browser. + adapter.browserShim = edgeShim; + commonShim.shimCreateObjectURL(window); -/** - * Yeast: A tiny growing id generator. - * - * @returns {String} A unique id. - * @api public - */ -function yeast() { - var now = encode(+new Date()); + edgeShim.shimGetUserMedia(window); + edgeShim.shimPeerConnection(window); + edgeShim.shimReplaceTrack(window); - if (now !== prev) return seed = 0, prev = now; - return now + '.' + encode(seed++); -} + // the edge shim implements the full RTCIceCandidate object. -// -// Map each character to its index. -// -for (; i < length; i++) { - map[alphabet[i]] = i; -} // -// Expose the `yeast`, `encode` and `decode` functions. -// -yeast.encode = encode; -yeast.decode = decode; -module.exports = yeast; + commonShim.shimMaxMessageSize(window); + commonShim.shimSendThrowTypeError(window); + break; + case 'safari': + if (!safariShim || !options.shimSafari) { + logging('Safari shim is not included in this adapter release.'); + return adapter; + } + logging('adapter.js shimming safari.'); + // Export to the adapter global object visible in the browser. + adapter.browserShim = safariShim; + commonShim.shimCreateObjectURL(window); + + safariShim.shimRTCIceServerUrls(window); + safariShim.shimCreateOfferLegacy(window); + safariShim.shimCallbacksAPI(window); + safariShim.shimLocalStreamsAPI(window); + safariShim.shimRemoteStreamsAPI(window); + safariShim.shimTrackEventTransceiver(window); + safariShim.shimGetUserMedia(window); + + commonShim.shimRTCIceCandidate(window); + commonShim.shimMaxMessageSize(window); + commonShim.shimSendThrowTypeError(window); + break; + default: + logging('Unsupported browser!'); + break; + } -},{}],313:[function(require,module,exports){ -'use strict'; + return adapter; +}; -/** - * @license AngularJS v1.7.5 - * (c) 2010-2018 Google, Inc. http://angularjs.org - * License: MIT +},{"./chrome/chrome_shim":316,"./common_shim":318,"./edge/edge_shim":319,"./firefox/firefox_shim":322,"./safari/safari_shim":324,"./utils":325}],316:[function(require,module,exports){ + +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. */ -(function (window, angular) { - 'use strict'; + /* eslint-env node */ +'use strict'; +var utils = require('../utils.js'); +var logging = utils.log; - 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'; +/* iterates the stats graph recursively. */ +function walkStats(stats, base, resultSet) { + if (!base || resultSet.has(base.id)) { + return; } + resultSet.set(base.id, base); + Object.keys(base).forEach(function(name) { + if (name.endsWith('Id')) { + walkStats(stats, stats.get(base[name]), resultSet); + } else if (name.endsWith('Ids')) { + base[name].forEach(function(id) { + walkStats(stats, stats.get(id), resultSet); + }); + } + }); +} - if (window.onanimationend === undefined && window.onwebkitanimationend !== undefined) { - CSS_PREFIX = '-webkit-'; - ANIMATION_PROP = 'WebkitAnimation'; - ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend'; - } else { - ANIMATION_PROP = 'animation'; - ANIMATIONEND_EVENT = 'animationend'; +/* filter getStats for a sender/receiver track. */ +function filterStats(result, track, outbound) { + var streamStatsType = outbound ? 'outbound-rtp' : 'inbound-rtp'; + var filteredResult = new Map(); + if (track === null) { + return filteredResult; } + var trackStats = []; + result.forEach(function(value) { + if (value.type === 'track' && + value.trackIdentifier === track.id) { + trackStats.push(value); + } + }); + trackStats.forEach(function(trackStat) { + result.forEach(function(stats) { + if (stats.type === streamStatsType && stats.trackId === trackStat.id) { + walkStats(result, stats, filteredResult); + } + }); + }); + return filteredResult; +} - 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; +module.exports = { + shimGetUserMedia: require('./getusermedia'), + shimMediaStream: function(window) { + window.MediaStream = window.MediaStream || window.webkitMediaStream; + }, - 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; + shimOnTrack: function(window) { + if (typeof window === 'object' && window.RTCPeerConnection && !('ontrack' in + window.RTCPeerConnection.prototype)) { + Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', { + get: function() { + return this._ontrack; + }, + set: function(f) { + if (this._ontrack) { + this.removeEventListener('track', this._ontrack); + } + this.addEventListener('track', this._ontrack = f); + }, + enumerable: true, + configurable: true + }); + var origSetRemoteDescription = + window.RTCPeerConnection.prototype.setRemoteDescription; + window.RTCPeerConnection.prototype.setRemoteDescription = function() { + var pc = this; + if (!pc._ontrackpoly) { + pc._ontrackpoly = function(e) { + // onaddstream does not fire when a track is added to an existing + // stream. But stream.onaddtrack is implemented so we use that. + e.stream.addEventListener('addtrack', function(te) { + var receiver; + if (window.RTCPeerConnection.prototype.getReceivers) { + receiver = pc.getReceivers().find(function(r) { + return r.track && r.track.id === te.track.id; + }); + } else { + receiver = {track: te.track}; + } - var ngMinErr = angular.$$minErr('ng'); - function assertArg(arg, name, reason) { - if (!arg) { - throw ngMinErr('areq', 'Argument \'{0}\' is {1}', name || '?', reason || 'required'); + var event = new Event('track'); + event.track = te.track; + event.receiver = receiver; + event.transceiver = {receiver: receiver}; + event.streams = [e.stream]; + pc.dispatchEvent(event); + }); + e.stream.getTracks().forEach(function(track) { + var receiver; + if (window.RTCPeerConnection.prototype.getReceivers) { + receiver = pc.getReceivers().find(function(r) { + return r.track && r.track.id === track.id; + }); + } else { + receiver = {track: track}; + } + var event = new Event('track'); + event.track = track; + event.receiver = receiver; + event.transceiver = {receiver: receiver}; + event.streams = [e.stream]; + pc.dispatchEvent(event); + }); + }; + pc.addEventListener('addstream', pc._ontrackpoly); + } + return origSetRemoteDescription.apply(pc, arguments); + }; + } else { + // even if RTCRtpTransceiver is in window, it is only used and + // emitted in unified-plan. Unfortunately this means we need + // to unconditionally wrap the event. + utils.wrapPeerConnectionEvent(window, 'track', function(e) { + if (!e.transceiver) { + Object.defineProperty(e, 'transceiver', + {value: {receiver: e.receiver}}); + } + return e; + }); } - 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; - } + shimGetSendersWithDtmf: function(window) { + // Overrides addTrack/removeTrack, depends on shimAddTrackRemoveTrack. + if (typeof window === 'object' && window.RTCPeerConnection && + !('getSenders' in window.RTCPeerConnection.prototype) && + 'createDTMFSender' in window.RTCPeerConnection.prototype) { + var shimSenderWithDtmf = function(pc, track) { + return { + track: track, + get dtmf() { + if (this._dtmf === undefined) { + if (track.kind === 'audio') { + this._dtmf = pc.createDTMFSender(track); + } else { + this._dtmf = null; + } + } + return this._dtmf; + }, + _pc: pc + }; + }; - function packageStyles(options) { - var styles = {}; - if (options && (options.to || options.from)) { - styles.to = options.to; - styles.from = options.from; - } - return styles; - } + // augment addTrack when getSenders is not available. + if (!window.RTCPeerConnection.prototype.getSenders) { + window.RTCPeerConnection.prototype.getSenders = function() { + this._senders = this._senders || []; + return this._senders.slice(); // return a copy of the internal state. + }; + var origAddTrack = window.RTCPeerConnection.prototype.addTrack; + window.RTCPeerConnection.prototype.addTrack = function(track, stream) { + var pc = this; + var sender = origAddTrack.apply(pc, arguments); + if (!sender) { + sender = shimSenderWithDtmf(pc, track); + pc._senders.push(sender); + } + return sender; + }; - 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; + var origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack; + window.RTCPeerConnection.prototype.removeTrack = function(sender) { + var pc = this; + origRemoveTrack.apply(pc, arguments); + var idx = pc._senders.indexOf(sender); + if (idx !== -1) { + pc._senders.splice(idx, 1); + } + }; } - }); - return className; - } - - function removeFromArray(arr, val) { - var index = arr.indexOf(val); - if (val >= 0) { - arr.splice(index, 1); - } - } + var origAddStream = window.RTCPeerConnection.prototype.addStream; + window.RTCPeerConnection.prototype.addStream = function(stream) { + var pc = this; + pc._senders = pc._senders || []; + origAddStream.apply(pc, [stream]); + stream.getTracks().forEach(function(track) { + pc._senders.push(shimSenderWithDtmf(pc, track)); + }); + }; - function stripCommentsFromElement(element) { - if (element instanceof jqLite) { - switch (element.length) { - case 0: - return element; + var origRemoveStream = window.RTCPeerConnection.prototype.removeStream; + window.RTCPeerConnection.prototype.removeStream = function(stream) { + var pc = this; + pc._senders = pc._senders || []; + origRemoveStream.apply(pc, [stream]); - 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; + stream.getTracks().forEach(function(track) { + var sender = pc._senders.find(function(s) { + return s.track === track; + }); + if (sender) { + pc._senders.splice(pc._senders.indexOf(sender), 1); // remove sender } - break; + }); + }; + } else if (typeof window === 'object' && window.RTCPeerConnection && + 'getSenders' in window.RTCPeerConnection.prototype && + 'createDTMFSender' in window.RTCPeerConnection.prototype && + window.RTCRtpSender && + !('dtmf' in window.RTCRtpSender.prototype)) { + var origGetSenders = window.RTCPeerConnection.prototype.getSenders; + window.RTCPeerConnection.prototype.getSenders = function() { + var pc = this; + var senders = origGetSenders.apply(pc, []); + senders.forEach(function(sender) { + sender._pc = pc; + }); + return senders; + }; - default: - return jqLite(extractElementNode(element)); - } + Object.defineProperty(window.RTCRtpSender.prototype, 'dtmf', { + get: function() { + if (this._dtmf === undefined) { + if (this.track.kind === 'audio') { + this._dtmf = this._pc.createDTMFSender(this.track); + } else { + this._dtmf = null; + } + } + return this._dtmf; + } + }); } + }, - if (element.nodeType === ELEMENT_NODE) { - return jqLite(element); + shimSenderReceiverGetStats: function(window) { + if (!(typeof window === 'object' && window.RTCPeerConnection && + window.RTCRtpSender && window.RTCRtpReceiver)) { + return; } - } - 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; + // shim sender stats. + if (!('getStats' in window.RTCRtpSender.prototype)) { + var origGetSenders = window.RTCPeerConnection.prototype.getSenders; + if (origGetSenders) { + window.RTCPeerConnection.prototype.getSenders = function() { + var pc = this; + var senders = origGetSenders.apply(pc, []); + senders.forEach(function(sender) { + sender._pc = pc; + }); + return senders; + }; } - } - } - - 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; + var origAddTrack = window.RTCPeerConnection.prototype.addTrack; + if (origAddTrack) { + window.RTCPeerConnection.prototype.addTrack = function() { + var sender = origAddTrack.apply(this, arguments); + sender._pc = this; + return sender; + }; } - }; - } - - function prepareAnimationOptions(options) { - options = options || {}; - if (!options.$$prepared) { - var domOperation = options.domOperation || noop; - options.domOperation = function () { - options.$$domOperationFired = true; - domOperation(); - domOperation = noop; + window.RTCRtpSender.prototype.getStats = function() { + var sender = this; + return this._pc.getStats().then(function(result) { + /* Note: this will include stats of all senders that + * send a track with the same id as sender.track as + * it is not possible to identify the RTCRtpSender. + */ + return filterStats(result, sender.track, true); + }); }; - 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; + // shim receiver stats. + if (!('getStats' in window.RTCRtpReceiver.prototype)) { + var origGetReceivers = window.RTCPeerConnection.prototype.getReceivers; + if (origGetReceivers) { + window.RTCPeerConnection.prototype.getReceivers = function() { + var pc = this; + var receivers = origGetReceivers.apply(pc, []); + receivers.forEach(function(receiver) { + receiver._pc = pc; + }); + return receivers; + }; + } + utils.wrapPeerConnectionEvent(window, 'track', function(e) { + e.receiver._pc = e.srcElement; + return e; + }); + window.RTCRtpReceiver.prototype.getStats = function() { + var receiver = this; + return this._pc.getStats().then(function(result) { + return filterStats(result, receiver.track, false); + }); + }; } - } - function applyAnimationToStyles(element, options) { - if (options.to) { - element.css(options.to); - options.to = null; + if (!('getStats' in window.RTCRtpSender.prototype && + 'getStats' in window.RTCRtpReceiver.prototype)) { + return; } - } - - 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; - } + // shim RTCPeerConnection.getStats(track). + var origGetStats = window.RTCPeerConnection.prototype.getStats; + window.RTCPeerConnection.prototype.getStats = function() { + var pc = this; + if (arguments.length > 0 && + arguments[0] instanceof window.MediaStreamTrack) { + var track = arguments[0]; + var sender; + var receiver; + var err; + pc.getSenders().forEach(function(s) { + if (s.track === track) { + if (sender) { + err = true; + } else { + sender = s; + } + } + }); + pc.getReceivers().forEach(function(r) { + if (r.track === track) { + if (receiver) { + err = true; + } else { + receiver = r; + } + } + return r.track === track; + }); + if (err || (sender && receiver)) { + return Promise.reject(new DOMException( + 'There are more than one sender or receiver for the track.', + 'InvalidAccessError')); + } else if (sender) { + return sender.getStats(); + } else if (receiver) { + return receiver.getStats(); + } + return Promise.reject(new DOMException( + 'There is no sender or receiver for the track.', + 'InvalidAccessError')); + } + return origGetStats.apply(pc, arguments); + }; + }, - // noop is basically when there is no callback; otherwise something has been set - var realDomOperation = target.domOperation !== noop ? target.domOperation : null; + shimSourceObject: function(window) { + var URL = window && window.URL; - extend(target, newOptions); + if (typeof window === 'object') { + if (window.HTMLMediaElement && + !('srcObject' in window.HTMLMediaElement.prototype)) { + // Shim the srcObject property, once, when HTMLMediaElement is found. + Object.defineProperty(window.HTMLMediaElement.prototype, 'srcObject', { + get: function() { + return this._srcObject; + }, + set: function(stream) { + var self = this; + // Use _srcObject as a private property for this shim + this._srcObject = stream; + if (this.src) { + URL.revokeObjectURL(this.src); + } - // 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 (!stream) { + this.src = ''; + return undefined; + } + this.src = URL.createObjectURL(stream); + // We need to recreate the blob url when a track is added or + // removed. Doing it manually since we want to avoid a recursion. + stream.addEventListener('addtrack', function() { + if (self.src) { + URL.revokeObjectURL(self.src); + } + self.src = URL.createObjectURL(stream); + }); + stream.addEventListener('removetrack', function() { + if (self.src) { + URL.revokeObjectURL(self.src); + } + self.src = URL.createObjectURL(stream); + }); + } + }); + } } + }, - if (classes.addClass) { - target.addClass = classes.addClass; - } else { - target.addClass = null; - } + shimAddTrackRemoveTrackWithNative: function(window) { + // shim addTrack/removeTrack with native variants in order to make + // the interactions with legacy getLocalStreams behave as in other browsers. + // Keeps a mapping stream.id => [stream, rtpsenders...] + window.RTCPeerConnection.prototype.getLocalStreams = function() { + var pc = this; + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; + return Object.keys(this._shimmedLocalStreams).map(function(streamId) { + return pc._shimmedLocalStreams[streamId][0]; + }); + }; - if (classes.removeClass) { - target.removeClass = classes.removeClass; - } else { - target.removeClass = null; - } + var origAddTrack = window.RTCPeerConnection.prototype.addTrack; + window.RTCPeerConnection.prototype.addTrack = function(track, stream) { + if (!stream) { + return origAddTrack.apply(this, arguments); + } + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; - oldAnimation.addClass = target.addClass; - oldAnimation.removeClass = target.removeClass; + var sender = origAddTrack.apply(this, arguments); + if (!this._shimmedLocalStreams[stream.id]) { + this._shimmedLocalStreams[stream.id] = [stream, sender]; + } else if (this._shimmedLocalStreams[stream.id].indexOf(sender) === -1) { + this._shimmedLocalStreams[stream.id].push(sender); + } + return sender; + }; - return target; - } + var origAddStream = window.RTCPeerConnection.prototype.addStream; + window.RTCPeerConnection.prototype.addStream = function(stream) { + var pc = this; + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; - function resolveElementClasses(existing, toAdd, toRemove) { - var ADD_CLASS = 1; - var REMOVE_CLASS = -1; + stream.getTracks().forEach(function(track) { + var alreadyExists = pc.getSenders().find(function(s) { + return s.track === track; + }); + if (alreadyExists) { + throw new DOMException('Track already exists.', + 'InvalidAccessError'); + } + }); + var existingSenders = pc.getSenders(); + origAddStream.apply(this, arguments); + var newSenders = pc.getSenders().filter(function(newSender) { + return existingSenders.indexOf(newSender) === -1; + }); + this._shimmedLocalStreams[stream.id] = [stream].concat(newSenders); + }; - var flags = {}; - existing = splitClassesToLookup(existing); + var origRemoveStream = window.RTCPeerConnection.prototype.removeStream; + window.RTCPeerConnection.prototype.removeStream = function(stream) { + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; + delete this._shimmedLocalStreams[stream.id]; + return origRemoveStream.apply(this, arguments); + }; - toAdd = splitClassesToLookup(toAdd); - forEach(toAdd, function (value, key) { - flags[key] = ADD_CLASS; - }); + var origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack; + window.RTCPeerConnection.prototype.removeTrack = function(sender) { + var pc = this; + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; + if (sender) { + Object.keys(this._shimmedLocalStreams).forEach(function(streamId) { + var idx = pc._shimmedLocalStreams[streamId].indexOf(sender); + if (idx !== -1) { + pc._shimmedLocalStreams[streamId].splice(idx, 1); + } + if (pc._shimmedLocalStreams[streamId].length === 1) { + delete pc._shimmedLocalStreams[streamId]; + } + }); + } + return origRemoveTrack.apply(this, arguments); + }; + }, - toRemove = splitClassesToLookup(toRemove); - forEach(toRemove, function (value, key) { - flags[key] = flags[key] === ADD_CLASS ? null : REMOVE_CLASS; - }); + shimAddTrackRemoveTrack: function(window) { + var browserDetails = utils.detectBrowser(window); + // shim addTrack and removeTrack. + if (window.RTCPeerConnection.prototype.addTrack && + browserDetails.version >= 65) { + return this.shimAddTrackRemoveTrackWithNative(window); + } - var classes = { - addClass: '', - removeClass: '' + // also shim pc.getLocalStreams when addTrack is shimmed + // to return the original streams. + var origGetLocalStreams = window.RTCPeerConnection.prototype + .getLocalStreams; + window.RTCPeerConnection.prototype.getLocalStreams = function() { + var pc = this; + var nativeStreams = origGetLocalStreams.apply(this); + pc._reverseStreams = pc._reverseStreams || {}; + return nativeStreams.map(function(stream) { + return pc._reverseStreams[stream.id]; + }); }; - 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] += ' '; + var origAddStream = window.RTCPeerConnection.prototype.addStream; + window.RTCPeerConnection.prototype.addStream = function(stream) { + var pc = this; + pc._streams = pc._streams || {}; + pc._reverseStreams = pc._reverseStreams || {}; + + stream.getTracks().forEach(function(track) { + var alreadyExists = pc.getSenders().find(function(s) { + return s.track === track; + }); + if (alreadyExists) { + throw new DOMException('Track already exists.', + 'InvalidAccessError'); } - classes[prop] += klass; + }); + // Add identity mapping for consistency with addTrack. + // Unless this is being used with a stream from addTrack. + if (!pc._reverseStreams[stream.id]) { + var newStream = new window.MediaStream(stream.getTracks()); + pc._streams[stream.id] = newStream; + pc._reverseStreams[newStream.id] = stream; + stream = newStream; + } + origAddStream.apply(pc, [stream]); + }; + + var origRemoveStream = window.RTCPeerConnection.prototype.removeStream; + window.RTCPeerConnection.prototype.removeStream = function(stream) { + var pc = this; + pc._streams = pc._streams || {}; + pc._reverseStreams = pc._reverseStreams || {}; + + origRemoveStream.apply(pc, [(pc._streams[stream.id] || stream)]); + delete pc._reverseStreams[(pc._streams[stream.id] ? + pc._streams[stream.id].id : stream.id)]; + delete pc._streams[stream.id]; + }; + + window.RTCPeerConnection.prototype.addTrack = function(track, stream) { + var pc = this; + if (pc.signalingState === 'closed') { + throw new DOMException( + 'The RTCPeerConnection\'s signalingState is \'closed\'.', + 'InvalidStateError'); + } + var streams = [].slice.call(arguments, 1); + if (streams.length !== 1 || + !streams[0].getTracks().find(function(t) { + return t === track; + })) { + // this is not fully correct but all we can manage without + // [[associated MediaStreams]] internal slot. + throw new DOMException( + 'The adapter.js addTrack polyfill only supports a single ' + + ' stream which is associated with the specified track.', + 'NotSupportedError'); + } + + var alreadyExists = pc.getSenders().find(function(s) { + return s.track === track; + }); + if (alreadyExists) { + throw new DOMException('Track already exists.', + 'InvalidAccessError'); + } + + pc._streams = pc._streams || {}; + pc._reverseStreams = pc._reverseStreams || {}; + var oldStream = pc._streams[stream.id]; + if (oldStream) { + // this is using odd Chrome behaviour, use with caution: + // https://bugs.chromium.org/p/webrtc/issues/detail?id=7815 + // Note: we rely on the high-level addTrack/dtmf shim to + // create the sender with a dtmf sender. + oldStream.addTrack(track); + + // Trigger ONN async. + Promise.resolve().then(function() { + pc.dispatchEvent(new Event('negotiationneeded')); + }); + } else { + var newStream = new window.MediaStream([track]); + pc._streams[stream.id] = newStream; + pc._reverseStreams[newStream.id] = stream; + pc.addStream(newStream); } + return pc.getSenders().find(function(s) { + return s.track === track; + }); + }; + + // replace the internal stream id with the external one and + // vice versa. + function replaceInternalStreamId(pc, description) { + var sdp = description.sdp; + Object.keys(pc._reverseStreams || []).forEach(function(internalId) { + var externalStream = pc._reverseStreams[internalId]; + var internalStream = pc._streams[externalStream.id]; + sdp = sdp.replace(new RegExp(internalStream.id, 'g'), + externalStream.id); + }); + return new RTCSessionDescription({ + type: description.type, + sdp: sdp + }); + } + function replaceExternalStreamId(pc, description) { + var sdp = description.sdp; + Object.keys(pc._reverseStreams || []).forEach(function(internalId) { + var externalStream = pc._reverseStreams[internalId]; + var internalStream = pc._streams[externalStream.id]; + sdp = sdp.replace(new RegExp(externalStream.id, 'g'), + internalStream.id); + }); + return new RTCSessionDescription({ + type: description.type, + sdp: sdp + }); + } + ['createOffer', 'createAnswer'].forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + var pc = this; + var args = arguments; + var isLegacyCall = arguments.length && + typeof arguments[0] === 'function'; + if (isLegacyCall) { + return nativeMethod.apply(pc, [ + function(description) { + var desc = replaceInternalStreamId(pc, description); + args[0].apply(null, [desc]); + }, + function(err) { + if (args[1]) { + args[1].apply(null, err); + } + }, arguments[2] + ]); + } + return nativeMethod.apply(pc, arguments) + .then(function(description) { + return replaceInternalStreamId(pc, description); + }); + }; }); - function splitClassesToLookup(classes) { - if (isString(classes)) { - classes = classes.split(' '); + var origSetLocalDescription = + window.RTCPeerConnection.prototype.setLocalDescription; + window.RTCPeerConnection.prototype.setLocalDescription = function() { + var pc = this; + if (!arguments.length || !arguments[0].type) { + return origSetLocalDescription.apply(pc, arguments); } + arguments[0] = replaceExternalStreamId(pc, arguments[0]); + return origSetLocalDescription.apply(pc, arguments); + }; - 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; + // TODO: mangle getStats: https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamstats-streamidentifier + + var origLocalDescription = Object.getOwnPropertyDescriptor( + window.RTCPeerConnection.prototype, 'localDescription'); + Object.defineProperty(window.RTCPeerConnection.prototype, + 'localDescription', { + get: function() { + var pc = this; + var description = origLocalDescription.get.apply(this); + if (description.type === '') { + return description; + } + return replaceInternalStreamId(pc, description); + } + }); + + window.RTCPeerConnection.prototype.removeTrack = function(sender) { + var pc = this; + if (pc.signalingState === 'closed') { + throw new DOMException( + 'The RTCPeerConnection\'s signalingState is \'closed\'.', + 'InvalidStateError'); + } + // We can not yet check for sender instanceof RTCRtpSender + // since we shim RTPSender. So we check if sender._pc is set. + if (!sender._pc) { + throw new DOMException('Argument 1 of RTCPeerConnection.removeTrack ' + + 'does not implement interface RTCRtpSender.', 'TypeError'); + } + var isLocal = sender._pc === pc; + if (!isLocal) { + throw new DOMException('Sender was not created by this connection.', + 'InvalidAccessError'); + } + + // Search for the native stream the senders track belongs to. + pc._streams = pc._streams || {}; + var stream; + Object.keys(pc._streams).forEach(function(streamid) { + var hasTrack = pc._streams[streamid].getTracks().find(function(track) { + return sender.track === track; + }); + if (hasTrack) { + stream = pc._streams[streamid]; } }); - return obj; - } - return classes; - } + if (stream) { + if (stream.getTracks().length === 1) { + // if this is the last track of the stream, remove the stream. This + // takes care of any shimmed _senders. + pc.removeStream(pc._reverseStreams[stream.id]); + } else { + // relying on the same odd chrome behaviour as above. + stream.removeTrack(sender.track); + } + pc.dispatchEvent(new Event('negotiationneeded')); + } + }; + }, - function getDomNode(element) { - return element instanceof jqLite ? element[0] : element; - } + shimPeerConnection: function(window) { + var browserDetails = utils.detectBrowser(window); - function applyGeneratedPreparationClasses($$jqLite, 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); - } - } + // The RTCPeerConnection object. + if (!window.RTCPeerConnection && window.webkitRTCPeerConnection) { + window.RTCPeerConnection = function(pcConfig, pcConstraints) { + // Translate iceTransportPolicy to iceTransports, + // see https://code.google.com/p/webrtc/issues/detail?id=4869 + // this was fixed in M56 along with unprefixing RTCPeerConnection. + logging('PeerConnection'); + if (pcConfig && pcConfig.iceTransportPolicy) { + pcConfig.iceTransports = pcConfig.iceTransportPolicy; + } - function clearGeneratedClasses(element, options) { - if (options.preparationClasses) { - element.removeClass(options.preparationClasses); - options.preparationClasses = null; - } - if (options.activeClasses) { - element.removeClass(options.activeClasses); - options.activeClasses = null; + return new window.webkitRTCPeerConnection(pcConfig, pcConstraints); + }; + window.RTCPeerConnection.prototype = + window.webkitRTCPeerConnection.prototype; + // wrap static methods. Currently just generateCertificate. + if (window.webkitRTCPeerConnection.generateCertificate) { + Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', { + get: function() { + return window.webkitRTCPeerConnection.generateCertificate; + } + }); + } } - } - 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]; - } + var origGetStats = window.RTCPeerConnection.prototype.getStats; + window.RTCPeerConnection.prototype.getStats = function(selector, + successCallback, errorCallback) { + var pc = this; + var args = arguments; - function blockKeyframeAnimations(node, applyBlock) { - var value = applyBlock ? 'paused' : ''; - var key = ANIMATION_PROP + ANIMATION_PLAYSTATE_KEY; - applyInlineStyle(node, [key, value]); - return [key, value]; - } + // If selector is a function then we are in the old style stats so just + // pass back the original getStats format to avoid breaking old users. + if (arguments.length > 0 && typeof selector === 'function') { + return origGetStats.apply(this, arguments); + } - function applyInlineStyle(node, styleTuple) { - var prop = styleTuple[0]; - var value = styleTuple[1]; - node.style[prop] = value; - } + // When spec-style getStats is supported, return those when called with + // either no arguments or the selector argument is null. + if (origGetStats.length === 0 && (arguments.length === 0 || + typeof arguments[0] !== 'function')) { + return origGetStats.apply(this, []); + } - function concatWithSpace(a, b) { - if (!a) return b; - if (!b) return a; - return a + ' ' + b; - } + var fixChromeStats_ = function(response) { + var standardReport = {}; + var reports = response.result(); + reports.forEach(function(report) { + var standardStats = { + id: report.id, + timestamp: report.timestamp, + type: { + localcandidate: 'local-candidate', + remotecandidate: 'remote-candidate' + }[report.type] || report.type + }; + report.names().forEach(function(name) { + standardStats[name] = report.stat(name); + }); + standardReport[standardStats.id] = standardStats; + }); - var $$rAFSchedulerFactory = ['$$rAF', function ($$rAF) { - var queue, cancelFn; + return standardReport; + }; - 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(); - } + // shim getStats with maplike support + var makeMapStats = function(stats) { + return new Map(Object.keys(stats).map(function(key) { + return [key, stats[key]]; + })); + }; - queue = scheduler.queue = []; + if (arguments.length >= 2) { + var successCallbackWrapper_ = function(response) { + args[1](makeMapStats(fixChromeStats_(response))); + }; - /* 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(); + return origGetStats.apply(this, [successCallbackWrapper_, + arguments[0]]); + } + + // promise-support + return new Promise(function(resolve, reject) { + origGetStats.apply(pc, [ + function(response) { + resolve(makeMapStats(fixChromeStats_(response))); + }, reject]); + }).then(successCallback, errorCallback); + }; + + // add promise support -- natively available in Chrome 51 + if (browserDetails.version < 51) { + ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'] + .forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + var args = arguments; + var pc = this; + var promise = new Promise(function(resolve, reject) { + nativeMethod.apply(pc, [args[0], resolve, reject]); + }); + if (args.length < 2) { + return promise; + } + return promise.then(function() { + args[1].apply(null, []); + }, + function(err) { + if (args.length >= 3) { + args[2].apply(null, [err]); + } + }); + }; + }); + } - cancelFn = $$rAF(function () { - cancelFn = null; - fn(); - nextTick(); + // promise support for createOffer and createAnswer. Available (without + // bugs) since M52: crbug/619289 + if (browserDetails.version < 52) { + ['createOffer', 'createAnswer'].forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + var pc = this; + if (arguments.length < 1 || (arguments.length === 1 && + typeof arguments[0] === 'object')) { + var opts = arguments.length === 1 ? arguments[0] : undefined; + return new Promise(function(resolve, reject) { + nativeMethod.apply(pc, [resolve, reject, opts]); + }); + } + return nativeMethod.apply(this, arguments); + }; }); - }; - - return scheduler; + } - function nextTick() { - if (!queue.length) return; + // shim implicit creation of RTCSessionDescription/RTCIceCandidate + ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'] + .forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + arguments[0] = new ((method === 'addIceCandidate') ? + window.RTCIceCandidate : + window.RTCSessionDescription)(arguments[0]); + return nativeMethod.apply(this, arguments); + }; + }); - var items = queue.shift(); - for (var i = 0; i < items.length; i++) { - items[i](); + // support for addIceCandidate(null or undefined) + var nativeAddIceCandidate = + window.RTCPeerConnection.prototype.addIceCandidate; + window.RTCPeerConnection.prototype.addIceCandidate = function() { + if (!arguments[0]) { + if (arguments[1]) { + arguments[1].apply(null); + } + return Promise.resolve(); } + return nativeAddIceCandidate.apply(this, arguments); + }; + }, - if (!cancelFn) { - $$rAF(function () { - if (!cancelFn) nextTick(); - }); + fixNegotiationNeeded: function(window) { + utils.wrapPeerConnectionEvent(window, 'negotiationneeded', function(e) { + var pc = e.target; + if (pc.signalingState !== 'stable') { + return; } + return e; + }); + }, + + shimGetDisplayMedia: function(window, getSourceId) { + if ('getDisplayMedia' in window.navigator) { + return; } - }]; + // getSourceId is a function that returns a promise resolving with + // the sourceId of the screen/window/tab to be shared. + if (typeof getSourceId !== 'function') { + console.error('shimGetDisplayMedia: getSourceId argument is not ' + + 'a function'); + return; + } + navigator.getDisplayMedia = function(constraints) { + return getSourceId(constraints) + .then(function(sourceId) { + constraints.video = { + mandatory: { + chromeMediaSource: 'desktop', + chromeMediaSourceId: sourceId, + maxFrameRate: constraints.video.frameRate || 3 + } + }; + if (constraints.video) { + if (constraints.video.height) { + constraints.video.maxWidth = constraints.video.width; + } + if (constraints.video.width) { + constraints.video.maxHeight = constraints.video.height; + } + } + return navigator.mediaDevices.getUserMedia(constraints); + }); + }; + } +}; - /** - * @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 - * - -
- - -
-
-
- List of items: -
Item {{item}}
-
-
-
-
- - - .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); +},{"../utils.js":325,"./getusermedia":317}],317:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; +var utils = require('../utils.js'); +var logging = utils.log; + +// Expose public methods. +module.exports = function(window) { + var browserDetails = utils.detectBrowser(window); + var navigator = window && window.navigator; + + var constraintsToChrome_ = function(c) { + if (typeof c !== 'object' || c.mandatory || c.optional) { + return c; + } + var cc = {}; + Object.keys(c).forEach(function(key) { + if (key === 'require' || key === 'advanced' || key === 'mediaSource') { + return; + } + var r = (typeof c[key] === 'object') ? c[key] : {ideal: c[key]}; + if (r.exact !== undefined && typeof r.exact === 'number') { + r.min = r.max = r.exact; + } + var oldname_ = function(prefix, name) { + if (prefix) { + return prefix + name.charAt(0).toUpperCase() + name.slice(1); } - - - angular.module('ngAnimateChildren', ['ngAnimate']) - .controller('MainController', function MainController() { - this.animateChildren = false; - this.enterElement = false; - }); - -
- */ - 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); + return (name === 'deviceId') ? 'sourceId' : name; + }; + if (r.ideal !== undefined) { + cc.optional = cc.optional || []; + var oc = {}; + if (typeof r.ideal === 'number') { + oc[oldname_('min', key)] = r.ideal; + cc.optional.push(oc); + oc = {}; + oc[oldname_('max', key)] = r.ideal; + cc.optional.push(oc); } 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); + oc[oldname_('', key)] = r.ideal; + cc.optional.push(oc); } + } + if (r.exact !== undefined && typeof r.exact !== 'number') { + cc.mandatory = cc.mandatory || {}; + cc.mandatory[oldname_('', key)] = r.exact; + } else { + ['min', 'max'].forEach(function(mix) { + if (r[mix] !== undefined) { + cc.mandatory = cc.mandatory || {}; + cc.mandatory[oldname_(mix, key)] = r[mix]; + } + }); + } + }); + if (c.advanced) { + cc.optional = (cc.optional || []).concat(c.advanced); + } + return cc; + }; - function setData(value) { - value = value === 'on' || value === 'true'; - element.data(NG_ANIMATE_CHILDREN_DATA, value); + var shimConstraints_ = function(constraints, func) { + if (browserDetails.version >= 61) { + return func(constraints); + } + constraints = JSON.parse(JSON.stringify(constraints)); + if (constraints && typeof constraints.audio === 'object') { + var remap = function(obj, a, b) { + if (a in obj && !(b in obj)) { + obj[b] = obj[a]; + delete obj[a]; + } + }; + constraints = JSON.parse(JSON.stringify(constraints)); + remap(constraints.audio, 'autoGainControl', 'googAutoGainControl'); + remap(constraints.audio, 'noiseSuppression', 'googNoiseSuppression'); + constraints.audio = constraintsToChrome_(constraints.audio); + } + if (constraints && typeof constraints.video === 'object') { + // Shim facingMode for mobile & surface pro. + var face = constraints.video.facingMode; + face = face && ((typeof face === 'object') ? face : {ideal: face}); + var getSupportedFacingModeLies = browserDetails.version < 66; + + if ((face && (face.exact === 'user' || face.exact === 'environment' || + face.ideal === 'user' || face.ideal === 'environment')) && + !(navigator.mediaDevices.getSupportedConstraints && + navigator.mediaDevices.getSupportedConstraints().facingMode && + !getSupportedFacingModeLies)) { + delete constraints.video.facingMode; + var matches; + if (face.exact === 'environment' || face.ideal === 'environment') { + matches = ['back', 'rear']; + } else if (face.exact === 'user' || face.ideal === 'user') { + matches = ['front']; + } + if (matches) { + // Look for matches in label, or use last cam for back (typical). + return navigator.mediaDevices.enumerateDevices() + .then(function(devices) { + devices = devices.filter(function(d) { + return d.kind === 'videoinput'; + }); + var dev = devices.find(function(d) { + return matches.some(function(match) { + return d.label.toLowerCase().indexOf(match) !== -1; + }); + }); + if (!dev && devices.length && matches.indexOf('back') !== -1) { + dev = devices[devices.length - 1]; // more likely the back cam + } + if (dev) { + constraints.video.deviceId = face.exact ? {exact: dev.deviceId} : + {ideal: dev.deviceId}; + } + constraints.video = constraintsToChrome_(constraints.video); + logging('chrome: ' + JSON.stringify(constraints)); + return func(constraints); + }); } } - }; - }]; - - /* exported $AnimateCssProvider */ - - var ANIMATE_TIMER_KEY = '$$animateCss'; + constraints.video = constraintsToChrome_(constraints.video); + } + logging('chrome: ' + JSON.stringify(constraints)); + return func(constraints); + }; - /** - * @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 AngularJS. 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 - * - *
- * This element will go BOOM - *
- * - * ``` - * - * 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 - * /* 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 */ - * .red { background:red; } - * .large-text { font-size:20px; } - * - * /* we can also use a keyframe animation and $animateCss will make it work alongside the transition */ - * .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 + var shimError_ = function(e) { + if (browserDetails.version >= 64) { + return e; + } + return { + name: { + PermissionDeniedError: 'NotAllowedError', + PermissionDismissedError: 'NotAllowedError', + InvalidStateError: 'NotAllowedError', + DevicesNotFoundError: 'NotFoundError', + ConstraintNotSatisfiedError: 'OverconstrainedError', + TrackStartError: 'NotReadableError', + MediaDeviceFailedDueToShutdown: 'NotAllowedError', + MediaDeviceKillSwitchOn: 'NotAllowedError', + TabCaptureError: 'AbortError', + ScreenCaptureError: 'AbortError', + DeviceCaptureError: 'AbortError' + }[e.name] || e.name, + message: e.message, + constraint: e.constraint || e.constraintName, + toString: function() { + return this.name + (this.message && ': ') + this.message; + } + }; + }; + + var getUserMedia_ = function(constraints, onSuccess, onError) { + shimConstraints_(constraints, function(c) { + navigator.webkitGetUserMedia(c, onSuccess, function(e) { + if (onError) { + onError(shimError_(e)); + } + }); + }); }; - 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); - } + navigator.getUserMedia = getUserMedia_; - // 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; - } + // Returns the result of getUserMedia as a Promise. + var getUserMediaPromise_ = function(constraints) { + return new Promise(function(resolve, reject) { + navigator.getUserMedia(constraints, resolve, reject); }); + }; - 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); + if (!navigator.mediaDevices) { + navigator.mediaDevices = { + getUserMedia: getUserMediaPromise_, + enumerateDevices: function() { + return new Promise(function(resolve) { + var kinds = {audio: 'audioinput', video: 'videoinput'}; + return window.MediaStreamTrack.getSources(function(devices) { + resolve(devices.map(function(device) { + return {label: device.label, + kind: kinds[device.kind], + deviceId: device.id, + groupId: ''}; + })); + }); + }); + }, + getSupportedConstraints: function() { + return { + deviceId: true, echoCancellation: true, facingMode: true, + frameRate: true, height: true, width: true + }; } - value = parseFloat(value) || 0; - maxValue = maxValue ? Math.max(value, maxValue) : value; - }); - return maxValue; + }; } - function truthyTimingValue(val) { - return val === 0 || val != null; + // A shim for getUserMedia method on the mediaDevices object. + // TODO(KaptenJansson) remove once implemented in Chrome stable. + if (!navigator.mediaDevices.getUserMedia) { + navigator.mediaDevices.getUserMedia = function(constraints) { + return getUserMediaPromise_(constraints); + }; + } else { + // Even though Chrome 45 has navigator.mediaDevices and a getUserMedia + // function which returns a Promise, it does not accept spec-style + // constraints. + var origGetUserMedia = navigator.mediaDevices.getUserMedia. + bind(navigator.mediaDevices); + navigator.mediaDevices.getUserMedia = function(cs) { + return shimConstraints_(cs, function(c) { + return origGetUserMedia(c).then(function(stream) { + if (c.audio && !stream.getAudioTracks().length || + c.video && !stream.getVideoTracks().length) { + stream.getTracks().forEach(function(track) { + track.stop(); + }); + throw new DOMException('', 'NotFoundError'); + } + return stream; + }, function(e) { + return Promise.reject(shimError_(e)); + }); + }); + }; } - function getCssTransitionDurationStyle(duration, applyOnlyDuration) { - var style = TRANSITION_PROP; - var value = duration + 's'; - if (applyOnlyDuration) { - style += DURATION_KEY; - } else { - value += ' linear all'; - } - return [style, value]; - } - - // 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); - }); + // Dummy devicechange event methods. + // TODO(KaptenJansson) remove once implemented in Chrome stable. + if (typeof navigator.mediaDevices.addEventListener === 'undefined') { + navigator.mediaDevices.addEventListener = function() { + logging('Dummy mediaDevices.addEventListener called.'); + }; } + if (typeof navigator.mediaDevices.removeEventListener === 'undefined') { + navigator.mediaDevices.removeEventListener = function() { + logging('Dummy mediaDevices.removeEventListener called.'); + }; + } +}; - var $AnimateCssProvider = ['$animateProvider', /** @this */function ($animateProvider) { - - this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout', '$$animateCache', '$$forceReflow', '$sniffer', '$$rAFScheduler', '$$animateQueue', function ($window, $$jqLite, $$AnimateRunner, $timeout, $$animateCache, $$forceReflow, $sniffer, $$rAFScheduler, $$animateQueue) { - - var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); - - function computeCachedCssStyles(node, className, cacheKey, allowNoDuration, properties) { - var timings = $$animateCache.get(cacheKey); - - if (!timings) { - timings = computeCssStyles($window, node, properties); - if (timings.animationIterationCount === 'infinite') { - timings.animationIterationCount = 1; - } - } +},{"../utils.js":325}],318:[function(require,module,exports){ +/* + * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - // if a css animation has no duration we - // should mark that so that repeated addClass/removeClass calls are skipped - var hasDuration = allowNoDuration || timings.transitionDuration > 0 || timings.animationDuration > 0; +var SDPUtils = require('sdp'); +var utils = require('./utils'); - // 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. - $$animateCache.put(cacheKey, timings, hasDuration); +module.exports = { + shimRTCIceCandidate: function(window) { + // foundation is arbitrarily chosen as an indicator for full support for + // https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface + if (!window.RTCIceCandidate || (window.RTCIceCandidate && 'foundation' in + window.RTCIceCandidate.prototype)) { + return; + } - return timings; + var NativeRTCIceCandidate = window.RTCIceCandidate; + window.RTCIceCandidate = function(args) { + // Remove the a= which shouldn't be part of the candidate string. + if (typeof args === 'object' && args.candidate && + args.candidate.indexOf('a=') === 0) { + args = JSON.parse(JSON.stringify(args)); + args.candidate = args.candidate.substr(2); } - function computeCachedCssStaggerStyles(node, className, cacheKey, properties) { - var stagger; - var staggerCacheKey = 'stagger-' + cacheKey; - - // 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 ($$animateCache.count(cacheKey) > 0) { - stagger = $$animateCache.get(staggerCacheKey); - - 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); + if (args.candidate && args.candidate.length) { + // Augment the native candidate with the parsed fields. + var nativeCandidate = new NativeRTCIceCandidate(args); + var parsedCandidate = SDPUtils.parseCandidate(args.candidate); + var augmentedCandidate = Object.assign(nativeCandidate, + parsedCandidate); - $$jqLite.removeClass(node, staggerClassName); - - $$animateCache.put(staggerCacheKey, stagger, true); - } - } - - return stagger || {}; + // Add a serializer that does not serialize the extra attributes. + augmentedCandidate.toJSON = function() { + return { + candidate: augmentedCandidate.candidate, + sdpMid: augmentedCandidate.sdpMid, + sdpMLineIndex: augmentedCandidate.sdpMLineIndex, + usernameFragment: augmentedCandidate.usernameFragment, + }; + }; + return augmentedCandidate; } + return new NativeRTCIceCandidate(args); + }; + window.RTCIceCandidate.prototype = NativeRTCIceCandidate.prototype; - var rafWaitQueue = []; - function waitUntilQuiet(callback) { - rafWaitQueue.push(callback); - $$rAFScheduler.waitUntilQuiet(function () { - $$animateCache.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; + // Hook up the augmented candidate in onicecandidate and + // addEventListener('icecandidate', ...) + utils.wrapPeerConnectionEvent(window, 'icecandidate', function(e) { + if (e.candidate) { + Object.defineProperty(e, 'candidate', { + value: new window.RTCIceCandidate(e.candidate), + writable: 'false' }); } + return e; + }); + }, - function computeTimings(node, className, cacheKey, allowNoDuration) { - var timings = computeCachedCssStyles(node, className, cacheKey, allowNoDuration, 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); + // shimCreateObjectURL must be called before shimSourceObject to avoid loop. - return timings; - } + shimCreateObjectURL: function(window) { + var URL = window && window.URL; - 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)); - } + if (!(typeof window === 'object' && window.HTMLMediaElement && + 'srcObject' in window.HTMLMediaElement.prototype && + URL.createObjectURL && URL.revokeObjectURL)) { + // Only shim CreateObjectURL using srcObject if srcObject exists. + return undefined; + } - var restoreStyles = {}; - var node = getDomNode(element); - if (!node || !node.parentNode || !$$animateQueue.enabled()) { - return closeAndReturnNoopAnimator(); - } + var nativeCreateObjectURL = URL.createObjectURL.bind(URL); + var nativeRevokeObjectURL = URL.revokeObjectURL.bind(URL); + var streams = new Map(), newId = 0; - 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 = []; + URL.createObjectURL = function(stream) { + if ('getTracks' in stream) { + var url = 'polyblob:' + (++newId); + streams.set(url, stream); + utils.deprecated('URL.createObjectURL(stream)', + 'elem.srcObject = stream'); + return url; + } + return nativeCreateObjectURL(stream); + }; + URL.revokeObjectURL = function(url) { + nativeRevokeObjectURL(url); + streams.delete(url); + }; - if (options.duration === 0 || !$sniffer.animations && !$sniffer.transitions) { - return closeAndReturnNoopAnimator(); - } + var dsc = Object.getOwnPropertyDescriptor(window.HTMLMediaElement.prototype, + 'src'); + Object.defineProperty(window.HTMLMediaElement.prototype, 'src', { + get: function() { + return dsc.get.apply(this); + }, + set: function(url) { + this.srcObject = streams.get(url) || null; + return dsc.set.apply(this, [url]); + } + }); - var method = options.event && isArray(options.event) ? options.event.join(' ') : options.event; + var nativeSetAttribute = window.HTMLMediaElement.prototype.setAttribute; + window.HTMLMediaElement.prototype.setAttribute = function() { + if (arguments.length === 2 && + ('' + arguments[0]).toLowerCase() === 'src') { + this.srcObject = streams.get(arguments[1]) || null; + } + return nativeSetAttribute.apply(this, arguments); + }; + }, - var isStructural = method && options.structural; - var structuralClassName = ''; - var addRemoveClassName = ''; + shimMaxMessageSize: function(window) { + if (window.RTCSctpTransport || !window.RTCPeerConnection) { + return; + } + var browserDetails = utils.detectBrowser(window); - if (isStructural) { - structuralClassName = pendClasses(method, EVENT_CLASS_PREFIX, true); - } else if (method) { - structuralClassName = method; + if (!('sctp' in window.RTCPeerConnection.prototype)) { + Object.defineProperty(window.RTCPeerConnection.prototype, 'sctp', { + get: function() { + return typeof this._sctp === 'undefined' ? null : this._sctp; } + }); + } - if (options.addClass) { - addRemoveClassName += pendClasses(options.addClass, ADD_CLASS_SUFFIX); - } + var sctpInDescription = function(description) { + var sections = SDPUtils.splitSections(description.sdp); + sections.shift(); + return sections.some(function(mediaSection) { + var mLine = SDPUtils.parseMLine(mediaSection); + return mLine && mLine.kind === 'application' + && mLine.protocol.indexOf('SCTP') !== -1; + }); + }; - if (options.removeClass) { - if (addRemoveClassName.length) { - addRemoveClassName += ' '; + var getRemoteFirefoxVersion = function(description) { + // TODO: Is there a better solution for detecting Firefox? + var match = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/); + if (match === null || match.length < 2) { + return -1; + } + var version = parseInt(match[1], 10); + // Test for NaN (yes, this is ugly) + return version !== version ? -1 : version; + }; + + var getCanSendMaxMessageSize = function(remoteIsFirefox) { + // Every implementation we know can send at least 64 KiB. + // Note: Although Chrome is technically able to send up to 256 KiB, the + // data does not reach the other peer reliably. + // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=8419 + var canSendMaxMessageSize = 65536; + if (browserDetails.browser === 'firefox') { + if (browserDetails.version < 57) { + if (remoteIsFirefox === -1) { + // FF < 57 will send in 16 KiB chunks using the deprecated PPID + // fragmentation. + canSendMaxMessageSize = 16384; + } else { + // However, other FF (and RAWRTC) can reassemble PPID-fragmented + // messages. Thus, supporting ~2 GiB when sending. + canSendMaxMessageSize = 2147483637; } - 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 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 stagger, - cacheKey = $$animateCache.cacheKey(node, method, options.addClass, options.removeClass); - if ($$animateCache.containsCachedAnimationWithoutDuration(cacheKey)) { - preparationClasses = null; - return closeAndReturnNoopAnimator(); - } - - if (options.stagger > 0) { - var staggerVal = parseFloat(options.stagger); - stagger = { - transitionDelay: staggerVal, - animationDelay: staggerVal, - transitionDuration: 0, - animationDuration: 0 - }; + } else if (browserDetails.version < 60) { + // Currently, all FF >= 57 will reset the remote maximum message size + // to the default value when a data channel is created at a later + // stage. :( + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831 + canSendMaxMessageSize = + browserDetails.version === 57 ? 65535 : 65536; } else { - stagger = computeCachedCssStaggerStyles(node, preparationClasses, cacheKey, DETECT_STAGGER_CSS_PROPERTIES); - } - - if (!options.$$skipPreparationClasses) { - $$jqLite.addClass(element, preparationClasses); + // FF >= 60 supports sending ~2 GiB + canSendMaxMessageSize = 2147483637; } + } + return canSendMaxMessageSize; + }; - var applyOnlyDuration; + var getMaxMessageSize = function(description, remoteIsFirefox) { + // Note: 65536 bytes is the default value from the SDP spec. Also, + // every implementation we know supports receiving 65536 bytes. + var maxMessageSize = 65536; - if (options.transitionStyle) { - var transitionStyle = [TRANSITION_PROP, options.transitionStyle]; - applyInlineStyle(node, transitionStyle); - temporaryStyles.push(transitionStyle); - } + // FF 57 has a slightly incorrect default remote max message size, so + // we need to adjust it here to avoid a failure when sending. + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1425697 + if (browserDetails.browser === 'firefox' + && browserDetails.version === 57) { + maxMessageSize = 65535; + } - if (options.duration >= 0) { - applyOnlyDuration = node.style[TRANSITION_PROP].length > 0; - var durationStyle = getCssTransitionDurationStyle(options.duration, applyOnlyDuration); + var match = SDPUtils.matchPrefix(description.sdp, 'a=max-message-size:'); + if (match.length > 0) { + maxMessageSize = parseInt(match[0].substr(19), 10); + } else if (browserDetails.browser === 'firefox' && + remoteIsFirefox !== -1) { + // If the maximum message size is not present in the remote SDP and + // both local and remote are Firefox, the remote peer can receive + // ~2 GiB. + maxMessageSize = 2147483637; + } + return maxMessageSize; + }; - // we set the duration so that it will be picked up by getComputedStyle later - applyInlineStyle(node, durationStyle); - temporaryStyles.push(durationStyle); - } + var origSetRemoteDescription = + window.RTCPeerConnection.prototype.setRemoteDescription; + window.RTCPeerConnection.prototype.setRemoteDescription = function() { + var pc = this; + pc._sctp = null; - if (options.keyframeStyle) { - var keyframeStyle = [ANIMATION_PROP, options.keyframeStyle]; - applyInlineStyle(node, keyframeStyle); - temporaryStyles.push(keyframeStyle); - } + if (sctpInDescription(arguments[0])) { + // Check if the remote is FF. + var isFirefox = getRemoteFirefoxVersion(arguments[0]); - var itemIndex = stagger ? options.staggerIndex >= 0 ? options.staggerIndex : $$animateCache.count(cacheKey) : 0; + // Get the maximum message size the local peer is capable of sending + var canSendMMS = getCanSendMaxMessageSize(isFirefox); - var isFirst = itemIndex === 0; + // Get the maximum message size of the remote peer. + var remoteMMS = getMaxMessageSize(arguments[0], isFirefox); - // 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); + // Determine final maximum message size + var maxMessageSize; + if (canSendMMS === 0 && remoteMMS === 0) { + maxMessageSize = Number.POSITIVE_INFINITY; + } else if (canSendMMS === 0 || remoteMMS === 0) { + maxMessageSize = Math.max(canSendMMS, remoteMMS); + } else { + maxMessageSize = Math.min(canSendMMS, remoteMMS); } - var timings = computeTimings(node, fullClassName, cacheKey, !isStructural); - 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; + // Create a dummy RTCSctpTransport object and the 'maxMessageSize' + // attribute. + var sctp = {}; + Object.defineProperty(sctp, 'maxMessageSize', { + get: function() { + return maxMessageSize; + } + }); + pc._sctp = sctp; + } - if (flags.applyTransitionDuration || flags.applyAnimationDuration) { - maxDuration = options.duration ? parseFloat(options.duration) : maxDuration; + return origSetRemoteDescription.apply(pc, arguments); + }; + }, - if (flags.applyTransitionDuration) { - flags.hasTransitions = true; - timings.transitionDuration = maxDuration; - applyOnlyDuration = node.style[TRANSITION_PROP + PROPERTY_KEY].length > 0; - temporaryStyles.push(getCssTransitionDurationStyle(maxDuration, applyOnlyDuration)); - } + shimSendThrowTypeError: function(window) { + if (!(window.RTCPeerConnection && + 'createDataChannel' in window.RTCPeerConnection.prototype)) { + return; + } - if (flags.applyAnimationDuration) { - flags.hasAnimations = true; - timings.animationDuration = maxDuration; - temporaryStyles.push(getCssKeyframeDurationStyle(maxDuration)); - } - } + // Note: Although Firefox >= 57 has a native implementation, the maximum + // message size can be reset for all data channels at a later stage. + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831 - if (maxDuration === 0 && !flags.recalculateTimingStyles) { - return closeAndReturnNoopAnimator(); + function wrapDcSend(dc, pc) { + var origDataChannelSend = dc.send; + dc.send = function() { + var data = arguments[0]; + var length = data.length || data.size || data.byteLength; + if (dc.readyState === 'open' && + pc.sctp && length > pc.sctp.maxMessageSize) { + throw new TypeError('Message too large (can send a maximum of ' + + pc.sctp.maxMessageSize + ' bytes)'); } + return origDataChannelSend.apply(dc, arguments); + }; + } + var origCreateDataChannel = + window.RTCPeerConnection.prototype.createDataChannel; + window.RTCPeerConnection.prototype.createDataChannel = function() { + var pc = this; + var dataChannel = origCreateDataChannel.apply(pc, arguments); + wrapDcSend(dataChannel, pc); + return dataChannel; + }; + utils.wrapPeerConnectionEvent(window, 'datachannel', function(e) { + wrapDcSend(e.channel, e.target); + return e; + }); + } +}; - var activeClasses = pendClasses(preparationClasses, ACTIVE_CLASS_SUFFIX); +},{"./utils":325,"sdp":278}],319:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - 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); - } +var utils = require('../utils'); +var filterIceServers = require('./filtericeservers'); +var shimRTCPeerConnection = require('rtcpeerconnection-shim'); - if (flags.applyTransitionDelay) { - temporaryStyles.push(getCssDelayStyle(delayStyle)); +module.exports = { + shimGetUserMedia: require('./getusermedia'), + shimPeerConnection: function(window) { + var browserDetails = utils.detectBrowser(window); + + if (window.RTCIceGatherer) { + if (!window.RTCIceCandidate) { + window.RTCIceCandidate = function(args) { + return args; + }; + } + if (!window.RTCSessionDescription) { + window.RTCSessionDescription = function(args) { + return args; + }; + } + // this adds an additional event listener to MediaStrackTrack that signals + // when a tracks enabled property was changed. Workaround for a bug in + // addStream, see below. No longer required in 15025+ + if (browserDetails.version < 15025) { + var origMSTEnabled = Object.getOwnPropertyDescriptor( + window.MediaStreamTrack.prototype, 'enabled'); + Object.defineProperty(window.MediaStreamTrack.prototype, 'enabled', { + set: function(value) { + origMSTEnabled.set.call(this, value); + var ev = new Event('enabled'); + ev.enabled = value; + this.dispatchEvent(ev); } + }); + } + } - if (flags.applyAnimationDelay) { - temporaryStyles.push(getCssDelayStyle(delayStyle, true)); + // ORTC defines the DTMF sender a bit different. + // https://github.com/w3c/ortc/issues/714 + if (window.RTCRtpSender && !('dtmf' in window.RTCRtpSender.prototype)) { + Object.defineProperty(window.RTCRtpSender.prototype, 'dtmf', { + get: function() { + if (this._dtmf === undefined) { + if (this.track.kind === 'audio') { + this._dtmf = new window.RTCDtmfSender(this); + } else if (this.track.kind === 'video') { + this._dtmf = null; + } } + return this._dtmf; } + }); + } + // Edge currently only implements the RTCDtmfSender, not the + // RTCDTMFSender alias. See http://draft.ortc.org/#rtcdtmfsender2* + if (window.RTCDtmfSender && !window.RTCDTMFSender) { + window.RTCDTMFSender = window.RTCDtmfSender; + } - // 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; - } + var RTCPeerConnectionShim = shimRTCPeerConnection(window, + browserDetails.version); + window.RTCPeerConnection = function(config) { + if (config && config.iceServers) { + config.iceServers = filterIceServers(config.iceServers); + } + return new RTCPeerConnectionShim(config); + }; + window.RTCPeerConnection.prototype = RTCPeerConnectionShim.prototype; + }, + shimReplaceTrack: function(window) { + // ORTC has replaceTrack -- https://github.com/w3c/ortc/issues/614 + if (window.RTCRtpSender && + !('replaceTrack' in window.RTCRtpSender.prototype)) { + window.RTCRtpSender.prototype.replaceTrack = + window.RTCRtpSender.prototype.setTrack; + } + } +}; - 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; - } +},{"../utils":325,"./filtericeservers":320,"./getusermedia":321,"rtcpeerconnection-shim":276}],320:[function(require,module,exports){ +/* + * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - if (options.from) { - if (options.cleanupStyles) { - registerRestorableStyles(restoreStyles, node, Object.keys(options.from)); - } - applyAnimationFromStyles(element, options); - } +var utils = require('../utils'); +// Edge does not like +// 1) stun: filtered after 14393 unless ?transport=udp is present +// 2) turn: that does not have all of turn:host:port?transport=udp +// 3) turn: with ipv6 addresses +// 4) turn: occurring muliple times +module.exports = function(iceServers, edgeVersion) { + var hasTurn = false; + iceServers = JSON.parse(JSON.stringify(iceServers)); + return iceServers.filter(function(server) { + if (server && (server.urls || server.url)) { + var urls = server.urls || server.url; + if (server.url && !server.urls) { + utils.deprecated('RTCIceServer.url', 'RTCIceServer.urls'); + } + var isString = typeof urls === 'string'; + if (isString) { + urls = [urls]; + } + urls = urls.filter(function(url) { + var validTurn = url.indexOf('turn:') === 0 && + url.indexOf('transport=udp') !== -1 && + url.indexOf('turn:[') === -1 && + !hasTurn; - if (flags.blockTransition || flags.blockKeyframeAnimation) { - applyBlocking(maxDuration); - } else if (!options.skipBlocking) { - blockTransitions(node, false); + if (validTurn) { + hasTurn = true; + return true; } + return url.indexOf('stun:') === 0 && edgeVersion >= 14393 && + url.indexOf('?transport=udp') === -1; + }); - // 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 - }; + delete server.url; + server.urls = isString ? urls[0] : urls; + return !!urls.length; + } + }); +}; - runner = new $$AnimateRunner(runnerHost); +},{"../utils":325}],321:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - waitUntilQuiet(_start); +// Expose public methods. +module.exports = function(window) { + var navigator = window && window.navigator; - // 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; - } - }; + var shimError_ = function(e) { + return { + name: {PermissionDeniedError: 'NotAllowedError'}[e.name] || e.name, + message: e.message, + constraint: e.constraint, + toString: function() { + return this.name; + } + }; + }; - function endFn() { - close(); - } + // getUserMedia error shim. + var origGetUserMedia = navigator.mediaDevices.getUserMedia. + bind(navigator.mediaDevices); + navigator.mediaDevices.getUserMedia = function(c) { + return origGetUserMedia(c).catch(function(e) { + return Promise.reject(shimError_(e)); + }); + }; +}; - function cancelFn() { - close(true); - } +},{}],322:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - 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; +var utils = require('../utils'); - if (preparationClasses && !options.$$skipPreparationClasses) { - $$jqLite.removeClass(element, preparationClasses); +module.exports = { + shimGetUserMedia: require('./getusermedia'), + shimOnTrack: function(window) { + if (typeof window === 'object' && window.RTCPeerConnection && !('ontrack' in + window.RTCPeerConnection.prototype)) { + Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', { + get: function() { + return this._ontrack; + }, + set: function(f) { + if (this._ontrack) { + this.removeEventListener('track', this._ontrack); + this.removeEventListener('addstream', this._ontrackpoly); } + this.addEventListener('track', this._ontrack = f); + this.addEventListener('addstream', this._ontrackpoly = function(e) { + e.stream.getTracks().forEach(function(track) { + var event = new Event('track'); + event.track = track; + event.receiver = {track: track}; + event.transceiver = {receiver: event.receiver}; + event.streams = [e.stream]; + this.dispatchEvent(event); + }.bind(this)); + }.bind(this)); + }, + enumerable: true, + configurable: true + }); + } + if (typeof window === 'object' && window.RTCTrackEvent && + ('receiver' in window.RTCTrackEvent.prototype) && + !('transceiver' in window.RTCTrackEvent.prototype)) { + Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', { + get: function() { + return {receiver: this.receiver}; + } + }); + } + }, - if (activeClasses) { - $$jqLite.removeClass(element, activeClasses); + shimSourceObject: function(window) { + // Firefox has supported mozSrcObject since FF22, unprefixed in 42. + if (typeof window === 'object') { + if (window.HTMLMediaElement && + !('srcObject' in window.HTMLMediaElement.prototype)) { + // Shim the srcObject property, once, when HTMLMediaElement is found. + Object.defineProperty(window.HTMLMediaElement.prototype, 'srcObject', { + get: function() { + return this.mozSrcObject; + }, + set: function(stream) { + this.mozSrcObject = stream; } + }); + } + } + }, - 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); + shimPeerConnection: function(window) { + var browserDetails = utils.detectBrowser(window); - if (Object.keys(restoreStyles).length) { - forEach(restoreStyles, function (value, prop) { - if (value) { - node.style.setProperty(prop, value); + if (typeof window !== 'object' || !(window.RTCPeerConnection || + window.mozRTCPeerConnection)) { + return; // probably media.peerconnection.enabled=false in about:config + } + // The RTCPeerConnection object. + if (!window.RTCPeerConnection) { + window.RTCPeerConnection = function(pcConfig, pcConstraints) { + if (browserDetails.version < 38) { + // .urls is not supported in FF < 38. + // create RTCIceServers with a single url. + if (pcConfig && pcConfig.iceServers) { + var newIceServers = []; + for (var i = 0; i < pcConfig.iceServers.length; i++) { + var server = pcConfig.iceServers[i]; + if (server.hasOwnProperty('urls')) { + for (var j = 0; j < server.urls.length; j++) { + var newServer = { + url: server.urls[j] + }; + if (server.urls[j].indexOf('turn') === 0) { + newServer.username = server.username; + newServer.credential = server.credential; + } + newIceServers.push(newServer); + } } else { - node.style.removeProperty(prop); + newIceServers.push(pcConfig.iceServers[i]); } - }); - } - - // 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); + } + pcConfig.iceServers = newIceServers; } } - - function applyBlocking(duration) { - if (flags.blockTransition) { - blockTransitions(node, duration); - } - - if (flags.blockKeyframeAnimation) { - blockKeyframeAnimations(node, !!duration); + return new window.mozRTCPeerConnection(pcConfig, pcConstraints); + }; + window.RTCPeerConnection.prototype = + window.mozRTCPeerConnection.prototype; + + // wrap static methods. Currently just generateCertificate. + if (window.mozRTCPeerConnection.generateCertificate) { + Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', { + get: function() { + return window.mozRTCPeerConnection.generateCertificate; } - } - - function closeAndReturnNoopAnimator() { - runner = new $$AnimateRunner({ - end: endFn, - cancel: cancelFn - }); + }); + } - // should flush the cache animation - waitUntilQuiet(noop); - close(); + window.RTCSessionDescription = window.mozRTCSessionDescription; + window.RTCIceCandidate = window.mozRTCIceCandidate; + } - return { - $$willAnimate: false, - start: function start() { - return runner; - }, - end: endFn + // shim away need for obsolete RTCIceCandidate/RTCSessionDescription. + ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'] + .forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + arguments[0] = new ((method === 'addIceCandidate') ? + window.RTCIceCandidate : + window.RTCSessionDescription)(arguments[0]); + return nativeMethod.apply(this, arguments); }; - } - - 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(); - } + // support for addIceCandidate(null or undefined) + var nativeAddIceCandidate = + window.RTCPeerConnection.prototype.addIceCandidate; + window.RTCPeerConnection.prototype.addIceCandidate = function() { + if (!arguments[0]) { + if (arguments[1]) { + arguments[1].apply(null); } + return Promise.resolve(); + } + return nativeAddIceCandidate.apply(this, arguments); + }; - 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(); - } - }; + // shim getStats with maplike support + var makeMapStats = function(stats) { + var map = new Map(); + Object.keys(stats).forEach(function(key) { + map.set(key, stats[key]); + map[key] = stats[key]; + }); + return map; + }; - // 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(); + var modernStatsTypes = { + inboundrtp: 'inbound-rtp', + outboundrtp: 'outbound-rtp', + candidatepair: 'candidate-pair', + localcandidate: 'local-candidate', + remotecandidate: 'remote-candidate' + }; + + var nativeGetStats = window.RTCPeerConnection.prototype.getStats; + window.RTCPeerConnection.prototype.getStats = function( + selector, + onSucc, + onErr + ) { + return nativeGetStats.apply(this, [selector || null]) + .then(function(stats) { + if (browserDetails.version < 48) { + stats = makeMapStats(stats); } - - // 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 = $$animateCache.cacheKey(node, method, options.addClass, options.removeClass); - - timings = computeTimings(node, fullClassName, cacheKey, false); - relativeDelay = timings.maxDelay; - maxDelay = Math.max(relativeDelay, 0); - maxDuration = timings.maxDuration; - - if (maxDuration === 0) { - close(); - return; + if (browserDetails.version < 53 && !onSucc) { + // Shim only promise getStats with spec-hyphens in type names + // Leave callback version alone; misc old uses of forEach before Map + try { + stats.forEach(function(stat) { + stat.type = modernStatsTypes[stat.type] || stat.type; + }); + } catch (e) { + if (e.name !== 'TypeError') { + throw e; } - - flags.hasTransitions = timings.transitionDuration > 0; - flags.hasAnimations = timings.animationDuration > 0; + // Avoid TypeError: "type" is read-only, in old versions. 34-43ish + stats.forEach(function(stat, i) { + stats.set(i, Object.assign({}, stat, { + type: modernStatsTypes[stat.type] || stat.type + })); + }); } + } + return stats; + }) + .then(onSucc, onErr); + }; + }, - if (flags.applyAnimationDelay) { - relativeDelay = typeof options.delay !== 'boolean' && truthyTimingValue(options.delay) ? parseFloat(options.delay) : relativeDelay; + shimSenderGetStats: function(window) { + if (!(typeof window === 'object' && window.RTCPeerConnection && + window.RTCRtpSender)) { + return; + } + if (window.RTCRtpSender && 'getStats' in window.RTCRtpSender.prototype) { + return; + } + var origGetSenders = window.RTCPeerConnection.prototype.getSenders; + if (origGetSenders) { + window.RTCPeerConnection.prototype.getSenders = function() { + var pc = this; + var senders = origGetSenders.apply(pc, []); + senders.forEach(function(sender) { + sender._pc = pc; + }); + return senders; + }; + } - maxDelay = Math.max(relativeDelay, 0); - timings.animationDelay = relativeDelay; - delayStyle = getCssDelayStyle(relativeDelay, true); - temporaryStyles.push(delayStyle); - node.style[delayStyle[0]] = delayStyle[1]; - } + var origAddTrack = window.RTCPeerConnection.prototype.addTrack; + if (origAddTrack) { + window.RTCPeerConnection.prototype.addTrack = function() { + var sender = origAddTrack.apply(this, arguments); + sender._pc = this; + return sender; + }; + } + window.RTCRtpSender.prototype.getStats = function() { + return this.track ? this._pc.getStats(this.track) : + Promise.resolve(new Map()); + }; + }, - maxDelayTime = maxDelay * ONE_SECOND; - maxDurationTime = maxDuration * ONE_SECOND; + shimReceiverGetStats: function(window) { + if (!(typeof window === 'object' && window.RTCPeerConnection && + window.RTCRtpSender)) { + return; + } + if (window.RTCRtpSender && 'getStats' in window.RTCRtpReceiver.prototype) { + return; + } + var origGetReceivers = window.RTCPeerConnection.prototype.getReceivers; + if (origGetReceivers) { + window.RTCPeerConnection.prototype.getReceivers = function() { + var pc = this; + var receivers = origGetReceivers.apply(pc, []); + receivers.forEach(function(receiver) { + receiver._pc = pc; + }); + return receivers; + }; + } + utils.wrapPeerConnectionEvent(window, 'track', function(e) { + e.receiver._pc = e.srcElement; + return e; + }); + window.RTCRtpReceiver.prototype.getStats = function() { + return this._pc.getStats(this.track); + }; + }, - 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; - } - } + shimRemoveStream: function(window) { + if (!window.RTCPeerConnection || + 'removeStream' in window.RTCPeerConnection.prototype) { + return; + } + window.RTCPeerConnection.prototype.removeStream = function(stream) { + var pc = this; + utils.deprecated('removeStream', 'removeTrack'); + this.getSenders().forEach(function(sender) { + if (sender.track && stream.getTracks().indexOf(sender.track) !== -1) { + pc.removeTrack(sender); + } + }); + }; + }, - if (timings.transitionDuration) { - events.push(TRANSITIONEND_EVENT); - } + shimRTCDataChannel: function(window) { + // rename DataChannel to RTCDataChannel (native fix in FF60): + // https://bugzilla.mozilla.org/show_bug.cgi?id=1173851 + if (window.DataChannel && !window.RTCDataChannel) { + window.RTCDataChannel = window.DataChannel; + } + }, - if (timings.animationDuration) { - events.push(ANIMATIONEND_EVENT); - } + shimGetDisplayMedia: function(window, preferredMediaSource) { + if ('getDisplayMedia' in window.navigator) { + return; + } + navigator.getDisplayMedia = function(constraints) { + if (!(constraints && constraints.video)) { + var err = new DOMException('getDisplayMedia without video ' + + 'constraints is undefined'); + err.name = 'NotFoundError'; + // from https://heycam.github.io/webidl/#idl-DOMException-error-names + err.code = 8; + return Promise.reject(err); + } + if (constraints.video === true) { + constraints.video = {mediaSource: preferredMediaSource}; + } else { + constraints.video.mediaSource = preferredMediaSource; + } + return navigator.mediaDevices.getUserMedia(constraints); + }; + } +}; - 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); - } - } +},{"../utils":325,"./getusermedia":323}],323:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - if (setupFallbackTimer) { - var timer = $timeout(onAnimationExpired, timerTime, false); - animationsData[0] = { - timer: timer, - expectedEndTime: endTime - }; - animationsData.push(close); - element.data(ANIMATE_TIMER_KEY, animationsData); - } +var utils = require('../utils'); +var logging = utils.log; - if (events.length) { - element.on(events.join(' '), onAnimationProgress); - } +// Expose public methods. +module.exports = function(window) { + var browserDetails = utils.detectBrowser(window); + var navigator = window && window.navigator; + var MediaStreamTrack = window && window.MediaStreamTrack; - if (options.to) { - if (options.cleanupStyles) { - registerRestorableStyles(restoreStyles, node, Object.keys(options.to)); - } - applyAnimationToStyles(element, options); - } + var shimError_ = function(e) { + return { + name: { + InternalError: 'NotReadableError', + NotSupportedError: 'TypeError', + PermissionDeniedError: 'NotAllowedError', + SecurityError: 'NotAllowedError' + }[e.name] || e.name, + message: { + 'The operation is insecure.': 'The request is not allowed by the ' + + 'user agent or the platform in the current context.' + }[e.message] || e.message, + constraint: e.constraint, + toString: function() { + return this.name + (this.message && ': ') + this.message; + } + }; + }; + + // getUserMedia constraints shim. + var getUserMedia_ = function(constraints, onSuccess, onError) { + var constraintsToFF37_ = function(c) { + if (typeof c !== 'object' || c.require) { + return c; + } + var require = []; + Object.keys(c).forEach(function(key) { + if (key === 'require' || key === 'advanced' || key === 'mediaSource') { + return; + } + var r = c[key] = (typeof c[key] === 'object') ? + c[key] : {ideal: c[key]}; + if (r.min !== undefined || + r.max !== undefined || r.exact !== undefined) { + require.push(key); + } + if (r.exact !== undefined) { + if (typeof r.exact === 'number') { + r. min = r.max = r.exact; + } else { + c[key] = r.exact; } - - 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); - } + delete r.exact; + } + if (r.ideal !== undefined) { + c.advanced = c.advanced || []; + var oc = {}; + if (typeof r.ideal === 'number') { + oc[key] = {min: r.ideal, max: r.ideal}; + } else { + oc[key] = r.ideal; + } + c.advanced.push(oc); + delete r.ideal; + if (!Object.keys(r).length) { + delete c[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; + }); + if (require.length) { + c.require = require; + } + return c; + }; + constraints = JSON.parse(JSON.stringify(constraints)); + if (browserDetails.version < 38) { + logging('spec: ' + JSON.stringify(constraints)); + if (constraints.audio) { + constraints.audio = constraintsToFF37_(constraints.audio); + } + if (constraints.video) { + constraints.video = constraintsToFF37_(constraints.video); + } + logging('ff37: ' + JSON.stringify(constraints)); } + return navigator.mozGetUserMedia(constraints, onSuccess, function(e) { + onError(shimError_(e)); + }); + }; - 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); + // Returns the result of getUserMedia as a Promise. + var getUserMediaPromise_ = function(constraints) { + return new Promise(function(resolve, reject) { + getUserMedia_(constraints, resolve, reject); + }); + }; - return function initDriverFn(animationDetails) { - return animationDetails.from && animationDetails.to ? prepareFromToAnchorAnimation(animationDetails.from, animationDetails.to, animationDetails.classes, animationDetails.anchors) : prepareRegularAnimation(animationDetails); + // Shim for mediaDevices on older versions. + if (!navigator.mediaDevices) { + navigator.mediaDevices = {getUserMedia: getUserMediaPromise_, + addEventListener: function() { }, + removeEventListener: function() { } + }; + } + navigator.mediaDevices.enumerateDevices = + navigator.mediaDevices.enumerateDevices || function() { + return new Promise(function(resolve) { + var infos = [ + {kind: 'audioinput', deviceId: 'default', label: '', groupId: ''}, + {kind: 'videoinput', deviceId: 'default', label: '', groupId: ''} + ]; + resolve(infos); + }); }; - function filterCssClasses(classes) { - //remove all the `ng-` stuff - return classes.replace(/\bng-\S+\b/g, ''); + if (browserDetails.version < 41) { + // Work around http://bugzil.la/1169665 + var orgEnumerateDevices = + navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices); + navigator.mediaDevices.enumerateDevices = function() { + return orgEnumerateDevices().then(undefined, function(e) { + if (e.name === 'NotFoundError') { + return []; + } + throw e; + }); + }; + } + if (browserDetails.version < 49) { + var origGetUserMedia = navigator.mediaDevices.getUserMedia. + bind(navigator.mediaDevices); + navigator.mediaDevices.getUserMedia = function(c) { + return origGetUserMedia(c).then(function(stream) { + // Work around https://bugzil.la/802326 + if (c.audio && !stream.getAudioTracks().length || + c.video && !stream.getVideoTracks().length) { + stream.getTracks().forEach(function(track) { + track.stop(); + }); + throw new DOMException('The object can not be found here.', + 'NotFoundError'); + } + return stream; + }, function(e) { + return Promise.reject(shimError_(e)); + }); + }; + } + if (!(browserDetails.version > 55 && + 'autoGainControl' in navigator.mediaDevices.getSupportedConstraints())) { + var remap = function(obj, a, b) { + if (a in obj && !(b in obj)) { + obj[b] = obj[a]; + delete obj[a]; } + }; - 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(' '); + var nativeGetUserMedia = navigator.mediaDevices.getUserMedia. + bind(navigator.mediaDevices); + navigator.mediaDevices.getUserMedia = function(c) { + if (typeof c === 'object' && typeof c.audio === 'object') { + c = JSON.parse(JSON.stringify(c)); + remap(c.audio, 'autoGainControl', 'mozAutoGainControl'); + remap(c.audio, 'noiseSuppression', 'mozNoiseSuppression'); } + return nativeGetUserMedia(c); + }; - 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); + if (MediaStreamTrack && MediaStreamTrack.prototype.getSettings) { + var nativeGetSettings = MediaStreamTrack.prototype.getSettings; + MediaStreamTrack.prototype.getSettings = function() { + var obj = nativeGetSettings.apply(this, arguments); + remap(obj, 'mozAutoGainControl', 'autoGainControl'); + remap(obj, 'mozNoiseSuppression', 'noiseSuppression'); + return obj; + }; + } - clone.addClass(NG_ANIMATE_ANCHOR_CLASS_NAME); + if (MediaStreamTrack && MediaStreamTrack.prototype.applyConstraints) { + var nativeApplyConstraints = MediaStreamTrack.prototype.applyConstraints; + MediaStreamTrack.prototype.applyConstraints = function(c) { + if (this.kind === 'audio' && typeof c === 'object') { + c = JSON.parse(JSON.stringify(c)); + remap(c, 'autoGainControl', 'mozAutoGainControl'); + remap(c, 'noiseSuppression', 'mozNoiseSuppression'); + } + return nativeApplyConstraints.apply(this, [c]); + }; + } + } + navigator.getUserMedia = function(constraints, onSuccess, onError) { + if (browserDetails.version < 44) { + return getUserMedia_(constraints, onSuccess, onError); + } + // Replace Firefox 44+'s deprecation warning with unprefixed version. + utils.deprecated('navigator.getUserMedia', + 'navigator.mediaDevices.getUserMedia'); + navigator.mediaDevices.getUserMedia(constraints).then(onSuccess, onError); + }; +}; - rootBodyElement.append(clone); +},{"../utils":325}],324:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ +'use strict'; +var utils = require('../utils'); - var animatorIn, - animatorOut = prepareOutAnimation(); +module.exports = { + shimLocalStreamsAPI: function(window) { + if (typeof window !== 'object' || !window.RTCPeerConnection) { + return; + } + if (!('getLocalStreams' in window.RTCPeerConnection.prototype)) { + window.RTCPeerConnection.prototype.getLocalStreams = function() { + if (!this._localStreams) { + this._localStreams = []; + } + return this._localStreams; + }; + } + if (!('getStreamById' in window.RTCPeerConnection.prototype)) { + window.RTCPeerConnection.prototype.getStreamById = function(id) { + var result = null; + if (this._localStreams) { + this._localStreams.forEach(function(stream) { + if (stream.id === id) { + result = stream; + } + }); + } + if (this._remoteStreams) { + this._remoteStreams.forEach(function(stream) { + if (stream.id === id) { + result = stream; + } + }); + } + return result; + }; + } + if (!('addStream' in window.RTCPeerConnection.prototype)) { + var _addTrack = window.RTCPeerConnection.prototype.addTrack; + window.RTCPeerConnection.prototype.addStream = function(stream) { + if (!this._localStreams) { + this._localStreams = []; + } + if (this._localStreams.indexOf(stream) === -1) { + this._localStreams.push(stream); + } + var pc = this; + stream.getTracks().forEach(function(track) { + _addTrack.call(pc, track, stream); + }); + }; - // 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(); + window.RTCPeerConnection.prototype.addTrack = function(track, stream) { + if (stream) { + if (!this._localStreams) { + this._localStreams = [stream]; + } else if (this._localStreams.indexOf(stream) === -1) { + this._localStreams.push(stream); } } - - 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(); - } - } + return _addTrack.call(this, track, stream); + }; + } + if (!('removeStream' in window.RTCPeerConnection.prototype)) { + window.RTCPeerConnection.prototype.removeStream = function(stream) { + if (!this._localStreams) { + this._localStreams = []; + } + var index = this._localStreams.indexOf(stream); + if (index === -1) { + return; + } + this._localStreams.splice(index, 1); + var pc = this; + var tracks = stream.getTracks(); + this.getSenders().forEach(function(sender) { + if (tracks.indexOf(sender.track) !== -1) { + pc.removeTrack(sender); } - }; - - 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; + }); + }; + } + }, + shimRemoteStreamsAPI: function(window) { + if (typeof window !== 'object' || !window.RTCPeerConnection) { + return; + } + if (!('getRemoteStreams' in window.RTCPeerConnection.prototype)) { + window.RTCPeerConnection.prototype.getRemoteStreams = function() { + return this._remoteStreams ? this._remoteStreams : []; + }; + } + if (!('onaddstream' in window.RTCPeerConnection.prototype)) { + Object.defineProperty(window.RTCPeerConnection.prototype, 'onaddstream', { + get: function() { + return this._onaddstream; + }, + set: function(f) { + if (this._onaddstream) { + this.removeEventListener('addstream', this._onaddstream); + } + this.addEventListener('addstream', this._onaddstream = f); } - - function prepareOutAnimation() { - var animator = $animateCss(clone, { - addClass: NG_OUT_ANCHOR_CLASS_NAME, - delay: true, - from: calculateAnchorStyles(outAnchor) + }); + var origSetRemoteDescription = + window.RTCPeerConnection.prototype.setRemoteDescription; + window.RTCPeerConnection.prototype.setRemoteDescription = function() { + var pc = this; + if (!this._onaddstreampoly) { + this.addEventListener('track', this._onaddstreampoly = function(e) { + e.streams.forEach(function(stream) { + if (!pc._remoteStreams) { + pc._remoteStreams = []; + } + if (pc._remoteStreams.indexOf(stream) >= 0) { + return; + } + pc._remoteStreams.push(stream); + var event = new Event('addstream'); + event.stream = stream; + pc.dispatchEvent(event); + }); }); - - // read the comment within `prepareRegularAnimation` to understand - // why this check is necessary - return animator.$$willAnimate ? animator : null; - } - - function getClassVal(element) { - return element.attr('class') || ''; } + return origSetRemoteDescription.apply(pc, arguments); + }; + } + }, + shimCallbacksAPI: function(window) { + if (typeof window !== 'object' || !window.RTCPeerConnection) { + return; + } + var prototype = window.RTCPeerConnection.prototype; + var createOffer = prototype.createOffer; + var createAnswer = prototype.createAnswer; + var setLocalDescription = prototype.setLocalDescription; + var setRemoteDescription = prototype.setRemoteDescription; + var addIceCandidate = prototype.addIceCandidate; + + prototype.createOffer = function(successCallback, failureCallback) { + var options = (arguments.length >= 2) ? arguments[2] : arguments[0]; + var promise = createOffer.apply(this, [options]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; - function prepareInAnimation() { - var endingClasses = filterCssClasses(getClassVal(inAnchor)); - var toAdd = getUniqueValues(endingClasses, startingClasses); - var toRemove = getUniqueValues(startingClasses, endingClasses); + prototype.createAnswer = function(successCallback, failureCallback) { + var options = (arguments.length >= 2) ? arguments[2] : arguments[0]; + var promise = createAnswer.apply(this, [options]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; - var animator = $animateCss(clone, { - to: calculateAnchorStyles(inAnchor), - addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd, - removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove, - delay: true - }); + var withCallback = function(description, successCallback, failureCallback) { + var promise = setLocalDescription.apply(this, [description]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; + prototype.setLocalDescription = withCallback; - // read the comment within `prepareRegularAnimation` to understand - // why this check is necessary - return animator.$$willAnimate ? animator : null; - } + withCallback = function(description, successCallback, failureCallback) { + var promise = setRemoteDescription.apply(this, [description]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; + prototype.setRemoteDescription = withCallback; - function end() { - clone.remove(); - outAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); - inAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); + withCallback = function(candidate, successCallback, failureCallback) { + var promise = addIceCandidate.apply(this, [candidate]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; + prototype.addIceCandidate = withCallback; + }, + shimGetUserMedia: function(window) { + var navigator = window && window.navigator; + + if (!navigator.getUserMedia) { + if (navigator.webkitGetUserMedia) { + navigator.getUserMedia = navigator.webkitGetUserMedia.bind(navigator); + } else if (navigator.mediaDevices && + navigator.mediaDevices.getUserMedia) { + navigator.getUserMedia = function(constraints, cb, errcb) { + navigator.mediaDevices.getUserMedia(constraints) + .then(cb, errcb); + }.bind(navigator); + } + } + }, + shimRTCIceServerUrls: function(window) { + // migrate from non-spec RTCIceServer.url to RTCIceServer.urls + var OrigPeerConnection = window.RTCPeerConnection; + window.RTCPeerConnection = function(pcConfig, pcConstraints) { + if (pcConfig && pcConfig.iceServers) { + var newIceServers = []; + for (var i = 0; i < pcConfig.iceServers.length; i++) { + var server = pcConfig.iceServers[i]; + if (!server.hasOwnProperty('urls') && + server.hasOwnProperty('url')) { + utils.deprecated('RTCIceServer.url', 'RTCIceServer.urls'); + server = JSON.parse(JSON.stringify(server)); + server.urls = server.url; + delete server.url; + newIceServers.push(server); + } else { + newIceServers.push(pcConfig.iceServers[i]); + } } + pcConfig.iceServers = newIceServers; } + return new OrigPeerConnection(pcConfig, pcConstraints); + }; + window.RTCPeerConnection.prototype = OrigPeerConnection.prototype; + // wrap static methods. Currently just generateCertificate. + if ('generateCertificate' in window.RTCPeerConnection) { + Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', { + get: function() { + return OrigPeerConnection.generateCertificate; + } + }); + } + }, + shimTrackEventTransceiver: function(window) { + // Add event.transceiver member over deprecated event.receiver + if (typeof window === 'object' && window.RTCPeerConnection && + ('receiver' in window.RTCTrackEvent.prototype) && + // can't check 'transceiver' in window.RTCTrackEvent.prototype, as it is + // defined for some reason even when window.RTCTransceiver is not. + !window.RTCTransceiver) { + Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', { + get: function() { + return {receiver: this.receiver}; + } + }); + } + }, - 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); - } + shimCreateOfferLegacy: function(window) { + var origCreateOffer = window.RTCPeerConnection.prototype.createOffer; + window.RTCPeerConnection.prototype.createOffer = function(offerOptions) { + var pc = this; + if (offerOptions) { + if (typeof offerOptions.offerToReceiveAudio !== 'undefined') { + // support bit values + offerOptions.offerToReceiveAudio = !!offerOptions.offerToReceiveAudio; + } + var audioTransceiver = pc.getTransceivers().find(function(transceiver) { + return transceiver.sender.track && + transceiver.sender.track.kind === 'audio'; }); - - // 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()); + if (offerOptions.offerToReceiveAudio === false && audioTransceiver) { + if (audioTransceiver.direction === 'sendrecv') { + if (audioTransceiver.setDirection) { + audioTransceiver.setDirection('sendonly'); + } else { + audioTransceiver.direction = 'sendonly'; } - - 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(); - }); + } else if (audioTransceiver.direction === 'recvonly') { + if (audioTransceiver.setDirection) { + audioTransceiver.setDirection('inactive'); + } else { + audioTransceiver.direction = 'inactive'; } } - }; - } - - function prepareRegularAnimation(animationDetails) { - var element = animationDetails.element; - var options = animationDetails.options || {}; + } else if (offerOptions.offerToReceiveAudio === true && + !audioTransceiver) { + pc.addTransceiver('audio'); + } - 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; + if (typeof offerOptions.offerToReceiveVideo !== 'undefined') { + // support bit values + offerOptions.offerToReceiveVideo = !!offerOptions.offerToReceiveVideo; + } + var videoTransceiver = pc.getTransceivers().find(function(transceiver) { + return transceiver.sender.track && + transceiver.sender.track.kind === 'video'; + }); + if (offerOptions.offerToReceiveVideo === false && videoTransceiver) { + if (videoTransceiver.direction === 'sendrecv') { + videoTransceiver.setDirection('sendonly'); + } else if (videoTransceiver.direction === 'recvonly') { + videoTransceiver.setDirection('inactive'); } + } else if (offerOptions.offerToReceiveVideo === true && + !videoTransceiver) { + pc.addTransceiver('video'); } + } + return origCreateOffer.apply(pc, arguments); + }; + } +}; - // 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); - } +},{"../utils":325}],325:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - var animator = $animateCss(element, options); +var logDisabled_ = true; +var deprecationWarnings_ = true; - // 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; - } - }]; - }]; +/** + * Extract browser version out of the provided user agent string. + * + * @param {!string} uastring userAgent string. + * @param {!string} expr Regular expression used as match criteria. + * @param {!number} pos position in the version string to be returned. + * @return {!number} browser version. + */ +function extractVersion(uastring, expr, pos) { + var match = uastring.match(expr); + return match && match.length >= pos && parseInt(match[pos], 10); +} - // TODO(matsko): use caching here to speed things up for detection - // TODO(matsko): add documentation - // by the time... +// Wraps the peerconnection event eventNameToWrap in a function +// which returns the modified event object (or false to prevent +// the event). +function wrapPeerConnectionEvent(window, eventNameToWrap, wrapper) { + if (!window.RTCPeerConnection) { + return; + } + var proto = window.RTCPeerConnection.prototype; + var nativeAddEventListener = proto.addEventListener; + proto.addEventListener = function(nativeEventName, cb) { + if (nativeEventName !== eventNameToWrap) { + return nativeAddEventListener.apply(this, arguments); + } + var wrappedCallback = function(e) { + var modifiedEvent = wrapper(e); + if (modifiedEvent) { + cb(modifiedEvent); + } + }; + this._eventMap = this._eventMap || {}; + this._eventMap[cb] = wrappedCallback; + return nativeAddEventListener.apply(this, [nativeEventName, + wrappedCallback]); + }; - var $$AnimateJsProvider = ['$animateProvider', /** @this */function ($animateProvider) { - this.$get = ['$injector', '$$AnimateRunner', '$$jqLite', function ($injector, $$AnimateRunner, $$jqLite) { + var nativeRemoveEventListener = proto.removeEventListener; + proto.removeEventListener = function(nativeEventName, cb) { + if (nativeEventName !== eventNameToWrap || !this._eventMap + || !this._eventMap[cb]) { + return nativeRemoveEventListener.apply(this, arguments); + } + var unwrappedCb = this._eventMap[cb]; + delete this._eventMap[cb]; + return nativeRemoveEventListener.apply(this, [nativeEventName, + unwrappedCb]); + }; - var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); - // $animateJs(element, 'enter'); - return function (element, event, classes, options) { - var animationClosed = false; + Object.defineProperty(proto, 'on' + eventNameToWrap, { + get: function() { + return this['_on' + eventNameToWrap]; + }, + set: function(cb) { + if (this['_on' + eventNameToWrap]) { + this.removeEventListener(eventNameToWrap, + this['_on' + eventNameToWrap]); + delete this['_on' + eventNameToWrap]; + } + if (cb) { + this.addEventListener(eventNameToWrap, + this['_on' + eventNameToWrap] = cb); + } + }, + enumerable: true, + configurable: true + }); +} - // 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; - } +// Utility methods. +module.exports = { + extractVersion: extractVersion, + wrapPeerConnectionEvent: wrapPeerConnectionEvent, + disableLog: function(bool) { + if (typeof bool !== 'boolean') { + return new Error('Argument type: ' + typeof bool + + '. Please use a boolean.'); + } + logDisabled_ = bool; + return (bool) ? 'adapter.js logging disabled' : + 'adapter.js logging enabled'; + }, - options = prepareAnimationOptions(options); - if (!classes) { - classes = element.attr('class') || ''; - if (options.addClass) { - classes += ' ' + options.addClass; - } - if (options.removeClass) { - classes += ' ' + options.removeClass; - } - } + /** + * Disable or enable deprecation warnings + * @param {!boolean} bool set to true to disable warnings. + */ + disableWarnings: function(bool) { + if (typeof bool !== 'boolean') { + return new Error('Argument type: ' + typeof bool + + '. Please use a boolean.'); + } + deprecationWarnings_ = !bool; + return 'adapter.js deprecation warnings ' + (bool ? 'disabled' : 'enabled'); + }, - 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; - } + log: function() { + if (typeof window === 'object') { + if (logDisabled_) { + return; + } + if (typeof console !== 'undefined' && typeof console.log === 'function') { + console.log.apply(console, arguments); + } + } + }, - if (event !== 'enter' && event !== 'move') { - before = packageAnimations(element, event, options, animations, beforeFn); - } - after = packageAnimations(element, event, options, animations, afterFn); - } + /** + * Shows a deprecation warning suggesting the modern and spec-compatible API. + */ + deprecated: function(oldMethod, newMethod) { + if (!deprecationWarnings_) { + return; + } + console.warn(oldMethod + ' is deprecated, please use ' + newMethod + + ' instead.'); + }, - // no matching animations - if (!before && !after) return; + /** + * Browser detector. + * + * @return {object} result containing browser and version + * properties. + */ + detectBrowser: function(window) { + var navigator = window && window.navigator; - function applyOptions() { - options.domOperation(); - applyAnimationClasses(element, options); - } + // Returned result object. + var result = {}; + result.browser = null; + result.version = null; - function close() { - animationClosed = true; - applyOptions(); - applyAnimationStyles(element, options); - } + // Fail early if it's not a browser + if (typeof window === 'undefined' || !window.navigator) { + result.browser = 'Not a browser.'; + return result; + } - var runner; + if (navigator.mozGetUserMedia) { // Firefox. + result.browser = 'firefox'; + result.version = extractVersion(navigator.userAgent, + /Firefox\/(\d+)\./, 1); + } else if (navigator.webkitGetUserMedia) { + // Chrome, Chromium, Webview, Opera. + // Version matches Chrome/WebRTC version. + result.browser = 'chrome'; + result.version = extractVersion(navigator.userAgent, + /Chrom(e|ium)\/(\d+)\./, 2); + } else if (navigator.mediaDevices && + navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)) { // Edge. + result.browser = 'edge'; + result.version = extractVersion(navigator.userAgent, + /Edge\/(\d+).(\d+)$/, 2); + } else if (window.RTCPeerConnection && + navigator.userAgent.match(/AppleWebKit\/(\d+)\./)) { // Safari. + result.browser = 'safari'; + result.version = extractVersion(navigator.userAgent, + /AppleWebKit\/(\d+)\./, 1); + } else { // Default fallthrough: not supported. + result.browser = 'Not a supported browser.'; + return result; + } - 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; - } + return result; + } +}; - runner = new $$AnimateRunner(); - var closeActiveAnimations; - var chain = []; +},{}],326:[function(require,module,exports){ +'use strict'; - if (before) { - chain.push(function (fn) { - closeActiveAnimations = before(fn); - }); - } +var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split('') + , length = 64 + , map = {} + , seed = 0 + , i = 0 + , prev; - if (chain.length) { - chain.push(function (fn) { - applyOptions(); - fn(true); - }); - } else { - applyOptions(); - } +/** + * Return a string representing the specified number. + * + * @param {Number} num The number to convert. + * @returns {String} The string representation of the number. + * @api public + */ +function encode(num) { + var encoded = ''; - if (after) { - chain.push(function (fn) { - closeActiveAnimations = after(fn); - }); - } + do { + encoded = alphabet[num % length] + encoded; + num = Math.floor(num / length); + } while (num > 0); - runner.setHost({ - end: function end() { - endAnimations(); - }, - cancel: function cancel() { - endAnimations(true); - } - }); + return encoded; +} - $$AnimateRunner.chain(chain, onComplete); - return runner; +/** + * Return the integer value specified by the given string. + * + * @param {String} str The string to convert. + * @returns {Number} The integer value represented by the string. + * @api public + */ +function decode(str) { + var decoded = 0; - function onComplete(success) { - close(success); - runner.complete(success); - } + for (i = 0; i < str.length; i++) { + decoded = decoded * length + map[str.charAt(i)]; + } - function endAnimations(cancelled) { - if (!animationClosed) { - (closeActiveAnimations || noop)(cancelled); - onComplete(cancelled); - } - } - } - }; + return decoded; +} - function executeAnimationFn(fn, element, event, options, onDone) { - var args; - switch (event) { - case 'animate': - args = [element, options.from, options.to, onDone]; - break; +/** + * Yeast: A tiny growing id generator. + * + * @returns {String} A unique id. + * @api public + */ +function yeast() { + var now = encode(+new Date()); - case 'setClass': - args = [element, classesToAdd, classesToRemove, onDone]; - break; + if (now !== prev) return seed = 0, prev = now; + return now +'.'+ encode(seed++); +} - case 'addClass': - args = [element, classesToAdd, onDone]; - break; +// +// Map each character to its index. +// +for (; i < length; i++) map[alphabet[i]] = i; - case 'removeClass': - args = [element, classesToRemove, onDone]; - break; +// +// Expose the `yeast`, `encode` and `decode` functions. +// +yeast.encode = encode; +yeast.decode = decode; +module.exports = yeast; - default: - args = [element, onDone]; - break; - } +},{}],327:[function(require,module,exports){ +/** + * @license AngularJS v1.7.5 + * (c) 2010-2018 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'; +} - args.push(options); +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; +} - var value = fn.apply(fn, args); - if (value) { - if (isFunction(value.start)) { - value = value.start(); - } +function removeFromArray(arr, val) { + var index = arr.indexOf(val); + if (val >= 0) { + arr.splice(index, 1); + } +} - if (value instanceof $$AnimateRunner) { - value.done(onDone); - } else if (isFunction(value)) { - // optional onEnd / onCancel callback - return value; - } - } +function stripCommentsFromElement(element) { + if (element instanceof jqLite) { + switch (element.length) { + case 0: + return element; - return noop; + 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; - 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; + default: + return jqLite(extractElementNode(element)); + } + } - var resolved = false; - var onAnimationComplete = function onAnimationComplete(rejected) { - if (!resolved) { - resolved = true; - (endProgressCb || noop)(rejected); - runner.complete(!rejected); - } - }; + if (element.nodeType === ELEMENT_NODE) { + return jqLite(element); + } +} - runner = new $$AnimateRunner({ - end: function end() { - onAnimationComplete(); - }, - cancel: function cancel() { - onAnimationComplete(true); - } - }); +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; + } + } +} - endProgressCb = executeAnimationFn(animation, element, event, options, function (result) { - var cancelled = result === false; - onAnimationComplete(cancelled); - }); +function $$addClass($$jqLite, element, className) { + forEach(element, function(elm) { + $$jqLite.addClass(elm, className); + }); +} - return runner; - }); - }); +function $$removeClass($$jqLite, element, className) { + forEach(element, function(elm) { + $$jqLite.removeClass(elm, className); + }); +} - return operations; - } +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 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'); - } +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; +} - if (a) { - operations = operations.concat(a); - } - if (b) { - operations = operations.concat(b); - } - } +function applyAnimationStyles(element, options) { + applyAnimationFromStyles(element, options); + applyAnimationToStyles(element, options); +} - if (operations.length === 0) return; +function applyAnimationFromStyles(element, options) { + if (options.from) { + element.css(options.from); + options.from = null; + } +} - // TODO(matsko): add documentation - return function startAnimation(callback) { - var runners = []; - if (operations.length) { - forEach(operations, function (animateFn) { - runners.push(animateFn()); - }); - } +function applyAnimationToStyles(element, options) { + if (options.to) { + element.css(options.to); + options.to = null; + } +} - if (runners.length) { - $$AnimateRunner.all(runners, callback); - } else { - callback(); - } +function mergeAnimationDetails(element, oldAnimation, newAnimation) { + var target = oldAnimation.options || {}; + var newOptions = newAnimation.options || {}; - return function endFn(reject) { - forEach(runners, function (runner) { - if (reject) { - runner.cancel(); - } else { - runner.end(); - } - }); - }; - }; - } - }; + var toAdd = (target.addClass || '') + ' ' + (newOptions.addClass || ''); + var toRemove = (target.removeClass || '') + ' ' + (newOptions.removeClass || ''); + var classes = resolveElementClasses(element.attr('class'), toAdd, toRemove); - 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; - } - }]; - }]; + if (newOptions.preparationClasses) { + target.preparationClasses = concatWithSpace(newOptions.preparationClasses, target.preparationClasses); + delete newOptions.preparationClasses; + } - 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; + // noop is basically when there is no callback; otherwise something has been set + var realDomOperation = target.domOperation !== noop ? target.domOperation : null; - return { - start: function start() { - var animationRunners = []; + extend(target, newOptions); - if (fromAnimation) { - animationRunners.push(fromAnimation.start()); - } + // 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 (toAnimation) { - animationRunners.push(toAnimation.start()); - } + if (classes.addClass) { + target.addClass = classes.addClass; + } else { + target.addClass = null; + } - $$AnimateRunner.all(animationRunners, done); + if (classes.removeClass) { + target.removeClass = classes.removeClass; + } else { + target.removeClass = null; + } - var runner = new $$AnimateRunner({ - end: endFnFactory(), - cancel: endFnFactory() - }); + oldAnimation.addClass = target.addClass; + oldAnimation.removeClass = target.removeClass; - return runner; + return target; +} - function endFnFactory() { - return function () { - forEach(animationRunners, function (runner) { - // at this point we cannot cancel animations for groups just yet. 1.5+ - runner.end(); - }); - }; - } +function resolveElementClasses(existing, toAdd, toRemove) { + var ADD_CLASS = 1; + var REMOVE_CLASS = -1; - function done(status) { - runner.complete(status); - } - } - }; - } else { - return prepareAnimation(animationDetails); - } - }; + var flags = {}; + existing = splitClassesToLookup(existing); - 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); - } - }]; - }]; + toAdd = splitClassesToLookup(toAdd); + forEach(toAdd, function(value, key) { + flags[key] = ADD_CLASS; + }); - 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 = ' '; + toRemove = splitClassesToLookup(toRemove); + forEach(toRemove, function(value, key) { + flags[key] = flags[key] === ADD_CLASS ? null : REMOVE_CLASS; + }); - var rules = this.rules = { - skip: [], - cancel: [], - join: [] - }; + var classes = { + addClass: '', + removeClass: '' + }; - function getEventData(options) { - return { - addClass: options.addClass, - removeClass: options.removeClass, - from: options.from, - to: options.to - }; + 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]; } - - function makeTruthyCssClassMap(classString) { - if (!classString) { - return null; + if (allow) { + if (classes[prop].length) { + classes[prop] += ' '; } + classes[prop] += klass; + } + }); - var keys = classString.split(ONE_SPACE); - var map = Object.create(null); - - forEach(keys, function (key) { - map[key] = true; - }); - return map; + function splitClassesToLookup(classes) { + if (isString(classes)) { + classes = classes.split(' '); } - function hasMatchingClasses(newClassString, currentClassString) { - if (newClassString && currentClassString) { - var currentClassMap = makeTruthyCssClassMap(currentClassString); - return newClassString.split(ONE_SPACE).some(function (className) { - return currentClassMap[className]; - }); + 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; + } - function isAllowed(ruleType, currentAnimation, previousAnimation) { - return rules[ruleType].some(function (fn) { - return fn(currentAnimation, previousAnimation); - }); - } + return classes; +} - function hasAnimationClasses(animation, and) { - var a = (animation.addClass || '').length > 0; - var b = (animation.removeClass || '').length > 0; - return and ? a && b : a || b; - } +function getDomNode(element) { + return (element instanceof jqLite) ? element[0] : element; +} - 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); - }); +function applyGeneratedPreparationClasses($$jqLite, 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); + } +} - 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); - }); +function clearGeneratedClasses(element, options) { + if (options.preparationClasses) { + element.removeClass(options.preparationClasses); + options.preparationClasses = null; + } + if (options.activeClasses) { + element.removeClass(options.activeClasses); + options.activeClasses = null; + } +} - 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; - }); +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]; +} - 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; - }); +function blockKeyframeAnimations(node, applyBlock) { + var value = applyBlock ? 'paused' : ''; + var key = ANIMATION_PROP + ANIMATION_PLAYSTATE_KEY; + applyInlineStyle(node, [key, value]); + return [key, value]; +} - rules.cancel.push(function (newAnimation, currentAnimation) { - // there can never be two structural animations running at the same time - return currentAnimation.structural && newAnimation.structural; - }); +function applyInlineStyle(node, styleTuple) { + var prop = styleTuple[0]; + var value = styleTuple[1]; + node.style[prop] = value; +} - 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; - }); +function concatWithSpace(a,b) { + if (!a) return b; + if (!b) return a; + return a + ' ' + b; +} - 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 +var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) { + var queue, cancelFn; - if (currentAnimation.structural) return false; + 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(); + } - var nA = newAnimation.addClass; - var nR = newAnimation.removeClass; - var cA = currentAnimation.addClass; - var cR = currentAnimation.removeClass; + queue = scheduler.queue = []; - // early detection to save the global CPU shortage :) - if (isUndefined(nA) && isUndefined(nR) || isUndefined(cA) && isUndefined(cR)) { - return false; - } + /* 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(); - return hasMatchingClasses(nA, cR) || hasMatchingClasses(nR, cA); + cancelFn = $$rAF(function() { + cancelFn = null; + fn(); + nextTick(); }); + }; - 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 removeFromDisabledElementsLookup(evt) { - disabledElementsLookup.delete(evt.target); - } + return scheduler; - 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(); - }); - } - }; - } + function nextTick() { + if (!queue.length) return; - // 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(); + var items = queue.shift(); + for (var i = 0; i < items.length; i++) { + items[i](); + } - // 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; - } - }); - }); + if (!cancelFn) { + $$rAF(function() { + if (!cancelFn) nextTick(); }); + } + } +}]; - 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; - }; +/** + * @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 + * + +
+ + +
+
+
+ List of items: +
Item {{item}}
+
+
+
+
+ - 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); - }; + .container.ng-enter, + .container.ng-leave { + transition: all ease 1.5s; + } - var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + .container.ng-enter, + .container.ng-leave-active { + opacity: 0; + } - function normalizeAnimationDetails(element, animation) { - return mergeAnimationDetails(element, animation, {}); + .container.ng-leave, + .container.ng-enter-active { + opacity: 1; } - // 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); - }; + .item { + background: firebrick; + color: #FFF; + margin-bottom: 10px; + } - 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); - } - }); - } + .item.ng-enter, + .item.ng-leave { + transition: transform 1.5s ease; + } - return matches; + .item.ng-enter { + transform: translateX(50px); } - 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; + .item.ng-enter-active { + transform: translateX(0); + } + + + angular.module('ngAnimateChildren', ['ngAnimate']) + .controller('MainController', function MainController() { + this.animateChildren = false; + this.enterElement = false; }); + +
+ */ +var $$AnimateChildrenDirective = ['$interpolate', function($interpolate) { + return { + link: function(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 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); - } + function setData(value) { + value = value === 'on' || value === 'true'; + element.data(NG_ANIMATE_CHILDREN_DATA, value); } + } + }; +}]; - 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); - }, +/* exported $AnimateCssProvider */ - 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); - }, +var ANIMATE_TIMER_KEY = '$$animateCss'; - push: function push(element, event, options, domOperation) { - options = options || {}; - options.domOperation = domOperation; - return queueAnimation(element, event, options); - }, +/** + * @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 AngularJS. 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 + * + *
+ * This element will go BOOM + *
+ * + * ``` + * + * 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 + * /* 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 */ + * .red { background:red; } + * .large-text { font-size:20px; } + * + * /* we can also use a keyframe animation and $animateCss will make it work alongside the transition */ + * .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; - // this method has four signatures: - // () - global getter - // (bool) - global setter - // (element) - element getter - // (element, bool) - element setter - enabled: function enabled(element, bool) { - var argCount = arguments.length; - - if (argCount === 0) { - // () - Global getter - bool = !!animationsEnabled; - } else { - var hasElement = isElement(element); +var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3; +var CLOSING_TIME_BUFFER = 1.5; - if (!hasElement) { - // (bool) - Global setter - bool = animationsEnabled = !!element; - } else { - var node = getDomNode(element); +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 +}; - if (argCount === 1) { - // (element) - Element getter - bool = !disabledElementsLookup.get(node); - } else { - // (element, bool) - Element setter - if (!disabledElementsLookup.has(node)) { - // The element is added to the map for the first time. - // Create a listener to remove it on `$destroy` (to avoid memory leak). - jqLite(element).on('$destroy', removeFromDisabledElementsLookup); - } - disabledElementsLookup.set(node, !bool); - } - } - } +var DETECT_STAGGER_CSS_PROPERTIES = { + transitionDuration: TRANSITION_DURATION_PROP, + transitionDelay: TRANSITION_DELAY_PROP, + animationDuration: ANIMATION_DURATION_PROP, + animationDelay: ANIMATION_DELAY_PROP +}; - return bool; - } - }; +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']; +} - return $animate; +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); - 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); + // only numerical-based values have a negative sign or digit as the first value + if (c === '-' || c === '+' || c >= 0) { + val = parseMaxTime(val); + } - var element = stripCommentsFromElement(originalElement); - var node = getDomNode(element); - var parentNode = node && node.parentNode; + // 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; + } + }); - options = prepareAnimationOptions(options); + return styles; +} - // we create a fake runner with a working promise. - // These methods will become available after the digest has passed - var runner = new $$AnimateRunner(); +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; +} - // this is used to trigger callbacks in postDigest mode - var runInNextPostDigestOrNow = postDigestTaskFactory(); +function truthyTimingValue(val) { + return val === 0 || val != null; +} - if (isArray(options.addClass)) { - options.addClass = options.addClass.join(' '); - } +function getCssTransitionDurationStyle(duration, applyOnlyDuration) { + var style = TRANSITION_PROP; + var value = duration + 's'; + if (applyOnlyDuration) { + style += DURATION_KEY; + } else { + value += ' linear all'; + } + return [style, value]; +} + +// 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); + }); +} - if (options.addClass && !isString(options.addClass)) { - options.addClass = null; - } +var $AnimateCssProvider = ['$animateProvider', /** @this */ function($animateProvider) { - if (isArray(options.removeClass)) { - options.removeClass = options.removeClass.join(' '); - } + this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout', '$$animateCache', + '$$forceReflow', '$sniffer', '$$rAFScheduler', '$$animateQueue', + function($window, $$jqLite, $$AnimateRunner, $timeout, $$animateCache, + $$forceReflow, $sniffer, $$rAFScheduler, $$animateQueue) { - if (options.removeClass && !isString(options.removeClass)) { - options.removeClass = null; - } + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); - if (options.from && !isObject(options.from)) { - options.from = null; - } + function computeCachedCssStyles(node, className, cacheKey, allowNoDuration, properties) { + var timings = $$animateCache.get(cacheKey); - if (options.to && !isObject(options.to)) { - options.to = null; + if (!timings) { + timings = computeCssStyles($window, node, properties); + if (timings.animationIterationCount === 'infinite') { + timings.animationIterationCount = 1; } + } - // 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; - } + // if a css animation has no duration we + // should mark that so that repeated addClass/removeClass calls are skipped + var hasDuration = allowNoDuration || (timings.transitionDuration > 0 || timings.animationDuration > 0); + + // 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. + $$animateCache.put(cacheKey, timings, hasDuration); + + return timings; + } + + function computeCachedCssStaggerStyles(node, className, cacheKey, properties) { + var stagger; + var staggerCacheKey = 'stagger-' + cacheKey; + + // 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 ($$animateCache.count(cacheKey) > 0) { + stagger = $$animateCache.get(staggerCacheKey); + + if (!stagger) { + var staggerClassName = pendClasses(className, '-stagger'); + + $$jqLite.addClass(node, staggerClassName); - var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0; + stagger = computeCssStyles($window, node, properties); - var documentHidden = $$isDocumentHidden(); + // 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); - // 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; + $$jqLite.removeClass(node, staggerClassName); - // 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); + $$animateCache.put(staggerCacheKey, stagger, true); } + } - if (skipAnimations) { - // Callbacks should fire even if the document is hidden (regression fix for issue #14120) - if (documentHidden) notifyProgress(runner, event, 'start', getEventData(options)); - close(); - if (documentHidden) notifyProgress(runner, event, 'close', getEventData(options)); - return runner; + return stagger || {}; + } + + var rafWaitQueue = []; + function waitUntilQuiet(callback) { + rafWaitQueue.push(callback); + $$rAFScheduler.waitUntilQuiet(function() { + $$animateCache.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, allowNoDuration) { + var timings = computeCachedCssStyles(node, className, cacheKey, allowNoDuration, 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 (isStructural) { - closeChildAnimations(node); + 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 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 stagger, cacheKey = $$animateCache.cacheKey(node, method, options.addClass, options.removeClass); + if ($$animateCache.containsCachedAnimationWithoutDuration(cacheKey)) { + preparationClasses = null; + return closeAndReturnNoopAnimator(); + } - var newAnimation = { - structural: isStructural, - element: element, - event: event, - addClass: options.addClass, - removeClass: options.removeClass, - close: close, - options: options, - runner: runner + if (options.stagger > 0) { + var staggerVal = parseFloat(options.stagger); + stagger = { + transitionDelay: staggerVal, + animationDelay: staggerVal, + transitionDuration: 0, + animationDuration: 0 }; + } else { + stagger = computeCachedCssStaggerStyles(node, preparationClasses, cacheKey, DETECT_STAGGER_CSS_PROPERTIES); + } - 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); + if (!options.$$skipPreparationClasses) { + $$jqLite.addClass(element, preparationClasses); + } - 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($$jqLite, element, isStructural ? event : null, options); + var applyOnlyDuration; - event = newAnimation.event = existingAnimation.event; - options = mergeAnimationDetails(element, existingAnimation, newAnimation); + if (options.transitionStyle) { + var transitionStyle = [TRANSITION_PROP, options.transitionStyle]; + applyInlineStyle(node, transitionStyle); + temporaryStyles.push(transitionStyle); + } - //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); + 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 + : $$animateCache.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, !isStructural); + 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)); } - // 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 (flags.applyAnimationDuration) { + flags.hasAnimations = true; + timings.animationDuration = maxDuration; + temporaryStyles.push(getCssKeyframeDurationStyle(maxDuration)); } + } - if (!isValidAnimation) { - close(); - clearElementAnimationState(node); - return runner; + if (maxDuration === 0 && !flags.recalculateTimingStyles) { + return closeAndReturnNoopAnimator(); + } + + var activeClasses = pendClasses(preparationClasses, ACTIVE_CLASS_SUFFIX); + + 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); } - // the counter keeps track of cancelled animations - var counter = (existingAnimation.counter || 0) + 1; - newAnimation.counter = counter; + if (flags.applyTransitionDelay) { + temporaryStyles.push(getCssDelayStyle(delayStyle)); + } - markElementAnimationState(node, PRE_DIGEST_STATE, newAnimation); + if (flags.applyAnimationDelay) { + temporaryStyles.push(getCssDelayStyle(delayStyle, true)); + } + } - $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. + // 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; + } - element = stripCommentsFromElement(originalElement); + 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; + } - 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 (options.from) { + if (options.cleanupStyles) { + registerRestorableStyles(restoreStyles, node, Object.keys(options.from)); + } + applyAnimationFromStyles(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(); - } + if (flags.blockTransition || flags.blockKeyframeAnimation) { + applyBlocking(maxDuration); + } else if (!options.skipBlocking) { + blockTransitions(node, false); + } - // 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); - } + // TODO(matsko): for 1.5 change this code to have an animator object for better debugging + return { + $$willAnimate: true, + end: endFn, + start: function() { + if (animationClosed) return; - 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; + } + }; - // 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; + function endFn() { + close(); + } - markElementAnimationState(node, RUNNING_STATE); - var realRunner = $$animation(element, event, animationDetails.options); + function cancelFn() { + close(true); + } - // this will update the runner's flow-control events based on - // the `realRunner` object. - runner.setHost(realRunner); - notifyProgress(runner, event, 'start', getEventData(options)); + 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; - realRunner.done(function (status) { - close(!status); - var animationDetails = activeAnimationsLookup.get(node); - if (animationDetails && animationDetails.counter === counter) { - clearElementAnimationState(node); - } - notifyProgress(runner, event, 'close', getEventData(options)); - }); + if (preparationClasses && !options.$$skipPreparationClasses) { + $$jqLite.removeClass(element, preparationClasses); + } + + if (activeClasses) { + $$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]] = ''; }); - return runner; + applyAnimationClasses(element, options); + applyAnimationStyles(element, options); - 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); - }); + if (Object.keys(restoreStyles).length) { + forEach(restoreStyles, function(value, prop) { + if (value) { + node.style.setProperty(prop, value); } else { - cleanupEventListeners(phase, node); + node.style.removeProperty(prop); } }); - runner.progress(event, phase, data); } - function close(reject) { - clearGeneratedClasses(element, options); - applyAnimationClasses(element, options); - applyAnimationStyles(element, options); - options.domOperation(); - runner.complete(!reject); + // 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 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 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() { + return runner; + }, + end: endFn + }; } - function clearElementAnimationState(node) { - node.removeAttribute(NG_ANIMATE_ATTR_NAME); - activeAnimationsLookup.delete(node); + 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(); + } } - /** - * 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); + function start() { + if (animationClosed) return; + if (!node.parentNode) { + close(); + return; + } - var bodyNodeDetected = node === bodyNode || node.nodeName === 'HTML'; - var rootNodeDetected = node === rootNode; - var parentAnimationDetected = false; - var elementDisabled = disabledElementsLookup.get(node); - var animateChildren; + // 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(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(); + } + }; - var parentHost = jqLite.data(node, NG_ANIMATE_PIN_DATA); - if (parentHost) { - parentNode = getDomNode(parentHost); + // 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(); } - while (parentNode) { - if (!rootNodeDetected) { - // AngularJS 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; + // 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 = $$animateCache.cacheKey(node, method, options.addClass, options.removeClass); + + timings = computeTimings(node, fullClassName, cacheKey, false); + 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 (parentNode.nodeType !== ELEMENT_NODE) { - // no point in inspecting the #document element - break; + 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]; } - 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; + 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; } - parentAnimationDetected = details.structural; } - if (isUndefined(animateChildren) || animateChildren === true) { - var value = jqLite.data(parentNode, NG_ANIMATE_CHILDREN_DATA); - if (isDefined(value)) { - animateChildren = value; - } + if (timings.transitionDuration) { + events.push(TRANSITIONEND_EVENT); + } + + if (timings.animationDuration) { + events.push(ANIMATIONEND_EVENT); } - // there is no need to continue traversing at this point - if (parentAnimationDetected && animateChildren === false) break; + 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 (!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 (setupFallbackTimer) { + var timer = $timeout(onAnimationExpired, timerTime, false); + animationsData[0] = { + timer: timer, + expectedEndTime: endTime + }; + animationsData.push(close); + element.data(ANIMATE_TIMER_KEY, animationsData); } - 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 (events.length) { + element.on(events.join(' '), onAnimationProgress); } - 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; + if (options.to) { + if (options.cleanupStyles) { + registerRestorableStyles(restoreStyles, node, Object.keys(options.to)); } + applyAnimationToStyles(element, options); } - - parentNode = parentNode.parentNode; } - var allowAnimation = (!parentAnimationDetected || animateChildren) && elementDisabled !== true; - return allowAnimation && rootNodeDetected && bodyNodeDetected; + 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); + } + } } + }; + }]; +}]; - function markElementAnimationState(node, state, details) { - details = details || {}; - details.state = state; +var $$AnimateCssDriverProvider = ['$$animationProvider', /** @this */ function($$animationProvider) { + $$animationProvider.drivers.push('$$animateCssDriver'); - node.setAttribute(NG_ANIMATE_ATTR_NAME, state); + var NG_ANIMATE_SHIM_CLASS_NAME = 'ng-animate-shim'; + var NG_ANIMATE_ANCHOR_CLASS_NAME = 'ng-anchor'; - var oldValue = activeAnimationsLookup.get(node); - var newValue = oldValue ? extend(oldValue, details) : details; - activeAnimationsLookup.set(node, newValue); - } - }]; - }]; + var NG_OUT_ANCHOR_CLASS_NAME = 'ng-anchor-out'; + var NG_IN_ANCHOR_CLASS_NAME = 'ng-anchor-in'; - /** @this */ - var $$AnimateCacheProvider = function $$AnimateCacheProvider() { + function isDocumentFragment(node) { + return node.parentNode && node.parentNode.nodeType === 11; + } - var KEY = '$$ngAnimateParentKey'; - var parentCounter = 0; - var cache = Object.create(null); + this.$get = ['$animateCss', '$rootScope', '$$AnimateRunner', '$rootElement', '$sniffer', '$$jqLite', '$document', + function($animateCss, $rootScope, $$AnimateRunner, $rootElement, $sniffer, $$jqLite, $document) { - this.$get = [function () { - return { - cacheKey: function cacheKey(node, method, addClass, removeClass) { - var parentNode = node.parentNode; - var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter); - var parts = [parentID, method, node.getAttribute('class')]; - if (addClass) { - parts.push(addClass); - } - if (removeClass) { - parts.push(removeClass); - } - return parts.join(' '); - }, + // only browsers that support these properties can render animations + if (!$sniffer.animations && !$sniffer.transitions) return noop; - containsCachedAnimationWithoutDuration: function containsCachedAnimationWithoutDuration(key) { - var entry = cache[key]; + var bodyNode = $document[0].body; + var rootNode = getDomNode($rootElement); - // nothing cached, so go ahead and animate - // otherwise it should be a valid animation - return entry && !entry.isValid || false; - }, + 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 + ); - flush: function flush() { - cache = Object.create(null); - }, + return function initDriverFn(animationDetails) { + return animationDetails.from && animationDetails.to + ? prepareFromToAnchorAnimation(animationDetails.from, + animationDetails.to, + animationDetails.classes, + animationDetails.anchors) + : prepareRegularAnimation(animationDetails); + }; - count: function count(key) { - var entry = cache[key]; - return entry ? entry.total : 0; - }, + function filterCssClasses(classes) { + //remove all the `ng-` stuff + return classes.replace(/\bng-\S+\b/g, ''); + } - get: function get(key) { - var entry = cache[key]; - return entry && entry.value; - }, + 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(' '); + } - put: function put(key, value, isValid) { - if (!cache[key]) { - cache[key] = { total: 1, value: value, isValid: isValid }; - } else { - cache[key].total++; - cache[key].value = value; + 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() { + 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(); + } } } }; - }]; - }; - /* exported $$AnimationProvider */ + function calculateAnchorStyles(anchor) { + var styles = {}; - var $$AnimationProvider = ['$animateProvider', /** @this */function ($animateProvider) { - var NG_ANIMATE_REF_ATTR = 'ng-animate-ref'; + var coords = getDomNode(anchor).getBoundingClientRect(); - var drivers = this.drivers = []; + // 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; + } - var RUNNER_STORAGE_KEY = '$$animationRunner'; - var PREPARE_CLASSES_KEY = '$$animatePrepareClasses'; + function prepareOutAnimation() { + var animator = $animateCss(clone, { + addClass: NG_OUT_ANCHOR_CLASS_NAME, + delay: true, + from: calculateAnchorStyles(outAnchor) + }); - function setRunner(element, runner) { - element.data(RUNNER_STORAGE_KEY, runner); - } + // read the comment within `prepareRegularAnimation` to understand + // why this check is necessary + return animator.$$willAnimate ? animator : null; + } - function removeRunner(element) { - element.removeData(RUNNER_STORAGE_KEY); - } + function getClassVal(element) { + return element.attr('class') || ''; + } - function getRunner(element) { - return element.data(RUNNER_STORAGE_KEY); - } + function prepareInAnimation() { + var endingClasses = filterCssClasses(getClassVal(inAnchor)); + var toAdd = getUniqueValues(endingClasses, startingClasses); + var toRemove = getUniqueValues(startingClasses, endingClasses); - this.$get = ['$$jqLite', '$rootScope', '$injector', '$$AnimateRunner', '$$Map', '$$rAFScheduler', '$$animateCache', function ($$jqLite, $rootScope, $injector, $$AnimateRunner, $$Map, $$rAFScheduler, $$animateCache) { + var animator = $animateCss(clone, { + to: calculateAnchorStyles(inAnchor), + addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd, + removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove, + delay: true + }); - var animationQueue = []; - var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + // read the comment within `prepareRegularAnimation` to understand + // why this check is necessary + return animator.$$willAnimate ? animator : null; + } - function sortAnimations(animations) { - var tree = { children: [] }; - var i, - lookup = new $$Map(); + function end() { + clone.remove(); + outAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); + inAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); + } + } - // 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, - element: animation.element, - fn: animation.fn, - children: [] - }); - } + function prepareFromToAnchorAnimation(from, to, classes, anchors) { + var fromAnimation = prepareRegularAnimation(from, noop); + var toAnimation = prepareRegularAnimation(to, noop); - for (i = 0; i < animations.length; i++) { - processNode(animations[i]); + 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); } + }); - return flatten(tree); + // no point in doing anything when there are no elements to animate + if (!fromAnimation && !toAnimation && anchorAnimations.length === 0) return; - function processNode(entry) { - if (entry.processed) return entry; - entry.processed = true; + return { + start: function() { + var animationRunners = []; - var elementNode = entry.domNode; - var parentNode = elementNode.parentNode; - lookup.set(elementNode, entry); + if (fromAnimation) { + animationRunners.push(fromAnimation.start()); + } - var parentEntry; - while (parentNode) { - parentEntry = lookup.get(parentNode); - if (parentEntry) { - if (!parentEntry.processed) { - parentEntry = processNode(parentEntry); - } - break; - } - parentNode = parentNode.parentNode; + if (toAnimation) { + animationRunners.push(toAnimation.start()); } - (parentEntry || tree).children.push(entry); - return entry; - } + forEach(anchorAnimations, function(animation) { + animationRunners.push(animation.start()); + }); - function flatten(tree) { - var result = []; - var queue = []; - var i; + var runner = new $$AnimateRunner({ + end: endFn, + cancel: endFn // CSS-driven animations cannot be cancelled, only ended + }); - for (i = 0; i < tree.children.length; i++) { - queue.push(tree.children[i]); - } + $$AnimateRunner.all(animationRunners, function(status) { + runner.complete(status); + }); - 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); - entry.children.forEach(function (childEntry) { - nextLevelEntries++; - queue.push(childEntry); + return runner; + + function endFn() { + forEach(animationRunners, function(runner) { + runner.end(); }); - remainingLevelEntries--; } + } + }; + } - if (row.length) { - result.push(row); - } + function prepareRegularAnimation(animationDetails) { + var element = animationDetails.element; + var options = animationDetails.options || {}; + + if (animationDetails.structural) { + options.event = animationDetails.event; + options.structural = true; + options.applyClassesEarly = true; - return result; + // 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; } } - // 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; + // 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); + } - // 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); - } - }); + var animator = $animateCss(element, options); - if (!drivers.length) { - close(); - return runner; - } + // 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; + } + }]; +}]; - var classes = mergeClasses(element.attr('class'), mergeClasses(options.addClass, options.removeClass)); - var tempClasses = options.tempClasses; - if (tempClasses) { - classes += ' ' + tempClasses; - options.tempClasses = null; - } +// TODO(matsko): use caching here to speed things up for detection +// TODO(matsko): add documentation +// by the time... - if (isStructural) { - element.data(PREPARE_CLASSES_KEY, 'ng-' + event + PREPARE_CLASS_SUFFIX); - } +var $$AnimateJsProvider = ['$animateProvider', /** @this */ function($animateProvider) { + this.$get = ['$injector', '$$AnimateRunner', '$$jqLite', + function($injector, $$AnimateRunner, $$jqLite) { - setRunner(element, runner); + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + // $animateJs(element, 'enter'); + return function(element, event, classes, options) { + var animationClosed = false; - 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 - }); + // 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; + } - 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(); - } - }); + options = prepareAnimationOptions(options); + if (!classes) { + classes = element.attr('class') || ''; + if (options.addClass) { + classes += ' ' + options.addClass; + } + if (options.removeClass) { + classes += ' ' + options.removeClass; + } + } - // now any future animations will be in another postDigest - animationQueue.length = 0; + var classesToAdd = options.addClass; + var classesToRemove = options.removeClass; - var groupedAnimations = groupAnimations(animations); - var toBeSortedAnimations = []; + // 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; + } - forEach(groupedAnimations, function (animationEntry) { - var element = animationEntry.from ? animationEntry.from.element : animationEntry.element; - var extraClasses = options.addClass; + if (event !== 'enter' && event !== 'move') { + before = packageAnimations(element, event, options, animations, beforeFn); + } + after = packageAnimations(element, event, options, animations, afterFn); + } - extraClasses = (extraClasses ? extraClasses + ' ' : '') + NG_ANIMATE_CLASSNAME; - var cacheKey = $$animateCache.cacheKey(element[0], animationEntry.event, extraClasses, options.removeClass); + // no matching animations + if (!before && !after) return; - toBeSortedAnimations.push({ - element: element, - domNode: getDomNode(element), - fn: function triggerAnimationStart() { - var startAnimationFn, - closeFn = animationEntry.close; + function applyOptions() { + options.domOperation(); + applyAnimationClasses(element, options); + } - // in the event that we've cached the animation status for this element - // and it's in fact an invalid animation (something that has duration = 0) - // then we should skip all the heavy work from here on - if ($$animateCache.containsCachedAnimationWithoutDuration(cacheKey)) { - closeFn(); - return; - } + function close() { + animationClosed = true; + applyOptions(); + applyAnimationStyles(element, options); + } - // 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 runner; + + return { + $$willAnimate: true, + end: function() { + if (runner) { + runner.end(); + } else { + close(); + runner = new $$AnimateRunner(); + runner.complete(true); + } + return runner; + }, + start: function() { + if (runner) { + return runner; + } - // 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; + runner = new $$AnimateRunner(); + var closeActiveAnimations; + var chain = []; - if (getRunner(targetElement)) { - var operation = invokeFirstDriver(animationEntry); - if (operation) { - startAnimationFn = operation.start; - } - } + if (before) { + chain.push(function(fn) { + closeActiveAnimations = before(fn); + }); + } - if (!startAnimationFn) { - closeFn(); - } else { - var animationRunner = startAnimationFn(); - animationRunner.done(function (status) { - closeFn(!status); - }); - updateAnimationRunners(animationEntry, animationRunner); - } - } + if (chain.length) { + chain.push(function(fn) { + applyOptions(); + fn(true); }); - }); + } else { + applyOptions(); + } - // 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. - var finalAnimations = sortAnimations(toBeSortedAnimations); - for (var i = 0; i < finalAnimations.length; i++) { - var innerArray = finalAnimations[i]; - for (var j = 0; j < innerArray.length; j++) { - var entry = innerArray[j]; - var element = entry.element; - - // the RAFScheduler code only uses functions - finalAnimations[i][j] = entry.fn; - - // the first row of elements shouldn't have a prepare-class added to them - // since the elements are at the top of the animation hierarchy and they - // will be applied without a RAF having to pass... - if (i === 0) { - element.removeData(PREPARE_CLASSES_KEY); - continue; - } + if (after) { + chain.push(function(fn) { + closeActiveAnimations = after(fn); + }); + } - var prepareClassName = element.data(PREPARE_CLASSES_KEY); - if (prepareClassName) { - $$jqLite.addClass(element, prepareClassName); - } + runner.setHost({ + end: function() { + endAnimations(); + }, + cancel: function() { + endAnimations(true); } - } + }); - $$rAFScheduler(finalAnimations); - }); + $$AnimateRunner.chain(chain, onComplete); + return runner; - return runner; + function onComplete(success) { + close(success); + runner.complete(success); + } - // 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); + function endAnimations(cancelled) { + if (!animationClosed) { + (closeActiveAnimations || noop)(cancelled); + onComplete(cancelled); } - }); - 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); - } - }); + function executeAnimationFn(fn, element, event, options, onDone) { + var args; + switch (event) { + case 'animate': + args = [element, options.from, options.to, onDone]; + break; - 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; - } + case 'setClass': + args = [element, classesToAdd, classesToRemove, onDone]; + break; - 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 - }; + case 'addClass': + args = [element, classesToAdd, onDone]; + break; - // 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); - } - } + case 'removeClass': + args = [element, classesToRemove, onDone]; + break; - anchorGroups[lookupKey].anchors.push({ - 'out': from.element, 'in': to.element - }); - }); + default: + args = [element, onDone]; + break; + } + + args.push(options); - return preparedAnimations; + 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; + } } - function cssClassesIntersection(a, b) { - a = a.split(' '); - b = b.split(' '); - var matches = []; + return noop; + } - for (var i = 0; i < a.length; i++) { - var aa = a[i]; - if (aa.substring(0, 3) === 'ng-') continue; + function groupEventedAnimations(element, event, options, animations, fnName) { + var operations = []; + forEach(animations, function(ani) { + var animation = ani[fnName]; + if (!animation) return; - for (var j = 0; j < b.length; j++) { - if (aa === b[j]) { - matches.push(aa); - break; + // note that all of these animations will run in parallel + operations.push(function() { + var runner; + var endProgressCb; + + var resolved = false; + var onAnimationComplete = function(rejected) { + if (!resolved) { + resolved = true; + (endProgressCb || noop)(rejected); + runner.complete(!rejected); } - } - } + }; - return matches.join(' '); - } + runner = new $$AnimateRunner({ + end: function() { + onAnimationComplete(); + }, + cancel: function() { + onAnimationComplete(true); + } + }); - 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; - } - } - } + endProgressCb = executeAnimationFn(animation, element, event, options, function(result) { + var cancelled = result === false; + onAnimationComplete(cancelled); + }); - function beforeStart() { - tempClasses = (tempClasses ? tempClasses + ' ' : '') + NG_ANIMATE_CLASSNAME; - $$jqLite.addClass(element, tempClasses); + return runner; + }); + }); - var prepareClassName = element.data(PREPARE_CLASSES_KEY); - if (prepareClassName) { - $$jqLite.removeClass(element, prepareClassName); - prepareClassName = null; - } - } + return operations; + } - function updateAnimationRunners(animation, newRunner) { - if (animation.from && animation.to) { - update(animation.from.element); - update(animation.to.element); - } else { - update(animation.element); + 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'); } - function update(element) { - var runner = getRunner(element); - if (runner) runner.setHost(newRunner); + if (a) { + operations = operations.concat(a); } - } - - function handleDestroyedElement() { - var runner = getRunner(element); - if (runner && (event !== 'leave' || !options.$$domOperationFired)) { - runner.end(); + if (b) { + operations = operations.concat(b); } } - function close(rejected) { - element.off('$destroy', handleDestroyedElement); - removeRunner(element); - - applyAnimationClasses(element, options); - applyAnimationStyles(element, options); - options.domOperation(); + if (operations.length === 0) return; - if (tempClasses) { - $$jqLite.removeClass(element, tempClasses); + // TODO(matsko): add documentation + return function startAnimation(callback) { + var runners = []; + if (operations.length) { + forEach(operations, function(animateFn) { + runners.push(animateFn()); + }); } - runner.complete(!rejected); - } - }; - }]; - }]; + if (runners.length) { + $$AnimateRunner.all(runners, callback); + } else { + callback(); + } - /** - * @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 - * - * - *
- *
- * {{ number }} - *
- *
- *
- * - * 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]; - * }; - * }]); - * - * - * .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; } - * - *
- */ - var ngAnimateSwapDirective = ['$animate', function ($animate) { - 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) { - $transclude(function (clone, childScope) { - previousElement = clone; - previousScope = childScope; - $animate.enter(clone, null, $element); + return function endFn(reject) { + forEach(runners, function(runner) { + if (reject) { + runner.cancel(); + } else { + runner.end(); + } }); - } - }); + }; + }; } }; - }]; - /** - * @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 AngularJS 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:form#animations form / ngForm} | add and remove ({@link ng.directive:form#css-classes various classes}) | - * | {@link ngAnimate.directive:ngAnimateSwap#animations ngAnimateSwap} | enter and leave | - * | {@link ng.directive:ngClass#animations ngClass / {{class}​}} | add and remove | - * | {@link ng.directive:ngClassEven#animations ngClassEven} | add and remove | - * | {@link ng.directive:ngClassOdd#animations ngClassOdd} | add and remove | - * | {@link ng.directive:ngHide#animations ngHide} | add and remove (the `ng-hide` class) | - * | {@link ng.directive:ngIf#animations ngIf} | enter and leave | - * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave | - * | {@link module:ngMessages#animations ngMessage / ngMessageExp} | enter and leave | - * | {@link module:ngMessages#animations ngMessages} | add and remove (the `ng-active`/`ng-inactive` classes) | - * | {@link ng.directive:ngModel#animations ngModel} | add and remove ({@link ng.directive:ngModel#css-classes various classes}) | - * | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave, and move | - * | {@link ng.directive:ngShow#animations ngShow} | add and remove (the `ng-hide` class) | - * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave | - * | {@link ngRoute.directive:ngView#animations ngView} | enter and leave | - * - * (More information can be found by visiting the documentation associated with each directive.) - * - * For a full breakdown of the steps involved during each animation event, refer to the - * {@link ng.$animate `$animate` API docs}. - * - * ## 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 AngularJS 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 - *
- * Fade me in out - *
- * - * - * ``` - * - * Notice the CSS class **fade**? We can now create the CSS transition code that references this class: - * - * ```css - * /* The starting CSS styles for the enter animation */ - * .fade.ng-enter { - * transition:0.5s linear all; - * opacity:0; - * } - * - * /* The finishing CSS styles for the enter animation */ - * .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 - * /* now the element will fade out before it is removed from the DOM */ - * .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 - * /* there is no need to define anything inside of the destination - * CSS class since the keyframe will take charge of the animation */ - * .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 - *
- * Show and hide me - *
- * - * - * - * ``` - * - * 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 - *
- * Highlight this box - *
- * - * - * - * ``` - * - * 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 { - * /* standard transition code */ - * transition: 1s linear all; - * opacity:0; - * } - * .my-animation.ng-enter-stagger { - * /* this will have a 100ms delay between each successive leave animation */ - * transition-delay: 0.1s; - * - * /* As of 1.4.4, this must always be set: it signals ngAnimate - * to not accidentally inherit a delay property from another CSS class */ - * transition-duration: 0s; - * - * /* if you are using animations instead of transitions you should configure as follows: - * animation-delay: 0.1s; - * animation-duration: 0s; */ - * } - * .my-animation.ng-enter.ng-enter-active { - * /* standard transition styles */ - * 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 - *
- *
- *
- *
- *
- * ``` - * - * 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; - * } - * ``` - * - * ### Animating between value changes - * - * Sometimes you need to animate between different expression states, whose values - * don't necessary need to be known or referenced in CSS styles. - * Unless possible with another {@link ngAnimate#directive-support "animation aware" directive}, - * that specific use case can always be covered with {@link ngAnimate.directive:ngAnimateSwap} as - * can be seen in {@link ngAnimate.directive:ngAnimateSwap#examples this example}. - * - * Note that {@link ngAnimate.directive:ngAnimateSwap} is a *structural directive*, which means it - * creates a new instance of the element (including any other/child directives it may have) and - * links it to a new scope every time *swap* happens. In some cases this might not be desirable - * (e.g. for performance reasons, or when you wish to retain internal state on the original - * element instance). - * - * ## 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 - *
- * {{ item }} - *
- * ``` - * - * 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 AngularJS - * // 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 - *
- * this box is moody - *
- * - * - * - * ``` - * - * ```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 AngularJS, - * 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 - *
- * Slide in and out - *
- * ``` - * - * ```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 - * /* the transition tells ngAnimate to make the animation happen */ - * .slide.ng-enter { transition:0.5s linear all; } - * - * /* this extra CSS class will be absorbed into the transition - * since the $animateCss code is adding the class */ - * .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 - * - *
- *
- * - * - * - * - * - * - * - * - * ``` - * - * 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 { - * /* this animation will last for 1 second since there are - * two phases to the animation (an `in` and an `out` phase) */ - * 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; - * - * /* the scale will be applied during the out animation, - * but will be animated away when the in animation runs */ - * transform: scale(1.2); - * } - * - * .banner.ng-anchor-in { - * transition: 1s linear all; - * } - * ``` - * - * - * - * - * ### Anchoring Demo - * - - - Home -
-
-
-
-
- - 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; - }]); - - -

Welcome to the home page

-

Please click on an element

- - {{ record.title }} - -
- -
- {{ profile.title }} -
-
- - .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; + 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; } - .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; - } - -
- * - * ### 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 `` 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 AngularJS 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 - * Hi there - * ``` - * - * ```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 - * /* normally we would create a CSS class to reference on the element */ - * 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 AngularJS 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 AngularJS 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 AngularJS 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.7.5' }).directive('ngAnimateSwap', ngAnimateSwapDirective).directive('ngAnimateChildren', $$AnimateChildrenDirective).factory('$$rAFScheduler', $$rAFSchedulerFactory).provider('$$animateQueue', $$AnimateQueueProvider).provider('$$animateCache', $$AnimateCacheProvider).provider('$$animation', $$AnimationProvider).provider('$animateCss', $AnimateCssProvider).provider('$$animateCssDriver', $$AnimateCssDriverProvider).provider('$$animateJs', $$AnimateJsProvider).provider('$$animateJsDriver', $$AnimateJsDriverProvider); -})(window, window.angular); + } + return matches; + } + }]; +}]; -},{}],314:[function(require,module,exports){ -'use strict'; +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; -require('./angular-animate'); -module.exports = 'ngAnimate'; + return { + start: function() { + var animationRunners = []; -},{"./angular-animate":313}],315:[function(require,module,exports){ -'use strict'; + if (fromAnimation) { + animationRunners.push(fromAnimation.start()); + } -/** - * @license AngularJS v1.7.5 - * (c) 2010-2018 Google, Inc. http://angularjs.org - * License: MIT - */ -(function (window, angular) { - 'use strict'; + if (toAnimation) { + animationRunners.push(toAnimation.start()); + } - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * 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 isArray; - var isDefined; - var lowercase; - var noop; - var nodeContains; - var htmlParser; - var htmlSanitizeWriter; + $$AnimateRunner.all(animationRunners, done); - /** - * @ngdoc module - * @name ngSanitize - * @description - * - * The `ngSanitize` module provides functionality to sanitize HTML. - * - * See {@link ngSanitize.$sanitize `$sanitize`} for usage. - */ + var runner = new $$AnimateRunner({ + end: endFnFactory(), + cancel: endFnFactory() + }); - /** - * @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 a 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 $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 - - - -
- Snippet: - - - - - - - - - - - - - - - - - - - - - - - - - -
DirectiveHowSourceRendered
ng-bind-htmlAutomatically uses $sanitize
<div ng-bind-html="snippet">
</div>
ng-bind-htmlBypass $sanitize by explicitly trusting the dangerous value -
<div ng-bind-html="deliberatelyTrustDangerousSnippet()">
-  </div>
-
ng-bindAutomatically escapes
<div ng-bind="snippet">
</div>
-
-
- - it('should sanitize the html snippet by default', function() { - expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')). - toBe('

an html\nclick here\nsnippet

'); - }); - - it('should inline raw snippet if bound to a trusted value', function() { - expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')). - toBe("

an html\n" + - "click here\n" + - "snippet

"); - }); - - it('should escape snippet without any filter', function() { - expect(element(by.css('#bind-default div')).getAttribute('innerHTML')). - toBe("<p style=\"color:blue\">an html\n" + - "<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" + - "snippet</p>"); - }); - - it('should update', function() { - element(by.model('snippet')).clear(); - element(by.model('snippet')).sendKeys('new text'); - expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')). - toBe('new text'); - expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')).toBe( - 'new text'); - expect(element(by.css('#bind-default div')).getAttribute('innerHTML')).toBe( - "new <b onclick=\"alert(1)\">text</b>"); - }); -
-
- */ + return runner; - /** - * @ngdoc provider - * @name $sanitizeProvider - * @this - * - * @description - * Creates and configures {@link $sanitize} instance. - */ - function $SanitizeProvider() { - var hasBeenInstantiated = false; - var svgEnabled = false; - - this.$get = ['$$sanitizeUri', function ($$sanitizeUri) { - hasBeenInstantiated = true; - 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(''); - }; - }]; + function endFnFactory() { + return function() { + forEach(animationRunners, function(runner) { + // at this point we cannot cancel animations for groups just yet. 1.5+ + runner.end(); + }); + }; + } - /** - * @ngdoc method - * @name $sanitizeProvider#enableSvg - * @kind function - * - * @description - * Enables a subset of svg to be supported by the sanitizer. - * - *
- *

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.

- * - *

To protect against these, explicitly setup `overflow: hidden` css rule for all potential svg - * tags within the sanitized content:

- * - *
- * - *

-     *   .rootOfTheIncludedContent svg {
-     *     overflow: hidden !important;
-     *   }
-     *   
- *
- * - * @param {boolean=} flag Enable or disable SVG support in the sanitizer. - * @returns {boolean|$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; + function done(status) { + runner.complete(status); + } + } + }; } else { - return svgEnabled; - } - }; - - /** - * @ngdoc method - * @name $sanitizeProvider#addValidElements - * @kind function - * - * @description - * Extends the built-in lists of valid HTML/SVG elements, i.e. elements that are considered safe - * and are not stripped off during sanitization. You can extend the following lists of elements: - * - * - `htmlElements`: A list of elements (tag names) to extend the current list of safe HTML - * elements. HTML elements considered safe will not be removed during sanitization. All other - * elements will be stripped off. - * - * - `htmlVoidElements`: This is similar to `htmlElements`, but marks the elements as - * "void elements" (similar to HTML - * [void elements](https://rawgit.com/w3c/html/html5.1-2/single-page.html#void-elements)). These - * elements have no end tag and cannot have content. - * - * - `svgElements`: This is similar to `htmlElements`, but for SVG elements. This list is only - * taken into account if SVG is {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for - * `$sanitize`. - * - *
- * This method must be called during the {@link angular.Module#config config} phase. Once the - * `$sanitize` service has been instantiated, this method has no effect. - *
- * - *
- * Keep in mind that extending the built-in lists of elements may expose your app to XSS or - * other vulnerabilities. Be very mindful of the elements you add. - *
- * - * @param {Array|Object} elements - A list of valid HTML elements or an object with one or - * more of the following properties: - * - **htmlElements** - `{Array}` - A list of elements to extend the current list of - * HTML elements. - * - **htmlVoidElements** - `{Array}` - A list of elements to extend the current list of - * void HTML elements; i.e. elements that do not have an end tag. - * - **svgElements** - `{Array}` - A list of elements to extend the current list of SVG - * elements. The list of SVG elements is only taken into account if SVG is - * {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for `$sanitize`. - * - * Passing an array (`[...]`) is equivalent to passing `{htmlElements: [...]}`. - * - * @return {$sanitizeProvider} Returns self for chaining. - */ - this.addValidElements = function (elements) { - if (!hasBeenInstantiated) { - if (isArray(elements)) { - elements = { htmlElements: elements }; - } - - addElementsTo(svgElements, elements.svgElements); - addElementsTo(voidElements, elements.htmlVoidElements); - addElementsTo(validElements, elements.htmlVoidElements); - addElementsTo(validElements, elements.htmlElements); - } - - return this; - }; - - /** - * @ngdoc method - * @name $sanitizeProvider#addValidAttrs - * @kind function - * - * @description - * Extends the built-in list of valid attributes, i.e. attributes that are considered safe and are - * not stripped off during sanitization. - * - * **Note**: - * The new attributes will not be treated as URI attributes, which means their values will not be - * sanitized as URIs using `$compileProvider`'s - * {@link ng.$compileProvider#aHrefSanitizationWhitelist aHrefSanitizationWhitelist} and - * {@link ng.$compileProvider#imgSrcSanitizationWhitelist imgSrcSanitizationWhitelist}. - * - *
- * This method must be called during the {@link angular.Module#config config} phase. Once the - * `$sanitize` service has been instantiated, this method has no effect. - *
- * - *
- * Keep in mind that extending the built-in list of attributes may expose your app to XSS or - * other vulnerabilities. Be very mindful of the attributes you add. - *
- * - * @param {Array} attrs - A list of valid attributes. - * - * @returns {$sanitizeProvider} Returns self for chaining. - */ - this.addValidAttrs = function (attrs) { - if (!hasBeenInstantiated) { - extend(validAttrs, arrayToMap(attrs, true)); + return prepareAnimation(animationDetails); } - return this; }; - ////////////////////////////////////////////////////////////////////////////////////////////////// - // Private stuff - ////////////////////////////////////////////////////////////////////////////////////////////////// + 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); + } + }]; +}]; - bind = angular.bind; - extend = angular.extend; - forEach = angular.forEach; - isArray = angular.isArray; - isDefined = angular.isDefined; - lowercase = angular.$$lowercase; - noop = angular.noop; +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 = ' '; - htmlParser = htmlParserImpl; - htmlSanitizeWriter = htmlSanitizeWriterImpl; + var rules = this.rules = { + skip: [], + cancel: [], + join: [] + }; - nodeContains = window.Node.prototype.contains || /** @this */function (arg) { - // eslint-disable-next-line no-bitwise - return !!(this.compareDocumentPosition(arg) & 16); + function getEventData(options) { + return { + addClass: options.addClass, + removeClass: options.removeClass, + from: options.from, + to: options.to }; + } - // 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; + function makeTruthyCssClassMap(classString) { + if (!classString) { + return null; + } - // Good source of info about elements and attributes - // http://dev.w3.org/html5/spec/Overview.html#semantics - // http://simon.html5.org/html-elements + var keys = classString.split(ONE_SPACE); + var map = Object.create(null); - // Safe Void Elements - HTML5 - // http://dev.w3.org/html5/spec/Overview.html#void-elements - var voidElements = stringToMap('area,br,col,hr,img,wbr'); + forEach(keys, function(key) { + map[key] = true; + }); + return map; + } - // Elements that you can, intentionally, leave open (and which close themselves) - // http://dev.w3.org/html5/spec/Overview.html#optional-tags - var optionalEndTagBlockElements = stringToMap('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr'), - optionalEndTagInlineElements = stringToMap('rp,rt'), - optionalEndTagElements = extend({}, optionalEndTagInlineElements, optionalEndTagBlockElements); + function hasMatchingClasses(newClassString, currentClassString) { + if (newClassString && currentClassString) { + var currentClassMap = makeTruthyCssClassMap(currentClassString); + return newClassString.split(ONE_SPACE).some(function(className) { + return currentClassMap[className]; + }); + } + } - // Safe Block Elements - HTML5 - var blockElements = extend({}, optionalEndTagBlockElements, stringToMap('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')); + function isAllowed(ruleType, currentAnimation, previousAnimation) { + return rules[ruleType].some(function(fn) { + return fn(currentAnimation, previousAnimation); + }); + } - // Inline Elements - HTML5 - var inlineElements = extend({}, optionalEndTagInlineElements, stringToMap('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')); + function hasAnimationClasses(animation, and) { + var a = (animation.addClass || '').length > 0; + var b = (animation.removeClass || '').length > 0; + return and ? a && b : a || b; + } - // 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 = stringToMap('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'); + 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); + }); - // Blocked Elements (will be stripped) - var blockedElements = stringToMap('script,style'); + 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); + }); - var validElements = extend({}, voidElements, blockElements, inlineElements, optionalEndTagElements); + 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; + }); - //Attributes that have href and hence need to be sanitized - var uriAttrs = stringToMap('background,cite,href,longdesc,src,xlink:href,xml:base'); + 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; + }); - var htmlAttrs = stringToMap('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'); + rules.cancel.push(function(newAnimation, currentAnimation) { + // there can never be two structural animations running at the same time + return currentAnimation.structural && newAnimation.structural; + }); - // SVG attributes (without "id" and "name" attributes) - // https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes - var svgAttrs = stringToMap('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); + 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; + }); - var validAttrs = extend({}, uriAttrs, svgAttrs, htmlAttrs); + 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 - function stringToMap(str, lowercaseKeys) { - return arrayToMap(str.split(','), lowercaseKeys); - } + if (currentAnimation.structural) return false; - function arrayToMap(items, lowercaseKeys) { - var obj = {}, - i; - for (i = 0; i < items.length; i++) { - obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true; - } - return obj; - } + var nA = newAnimation.addClass; + var nR = newAnimation.removeClass; + var cA = currentAnimation.addClass; + var cR = currentAnimation.removeClass; - function addElementsTo(elementsMap, newElements) { - if (newElements && newElements.length) { - extend(elementsMap, arrayToMap(newElements)); - } + // early detection to save the global CPU shortage :) + if ((isUndefined(nA) && isUndefined(nR)) || (isUndefined(cA) && isUndefined(cR))) { + return false; } - /** - * 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'); + return hasMatchingClasses(nA, cR) || hasMatchingClasses(nR, cA); + }); - // Check for the Safari 10.1 bug - which allows JS to run inside the SVG G element - inertBodyElement.innerHTML = ''; - if (!inertBodyElement.querySelector('svg')) { - return getInertBodyElement_XHR; - } else { - // Check for the Firefox bug - which prevents the inner img JS from being sanitized - inertBodyElement.innerHTML = '

'; - if (inertBodyElement.querySelector('svg img')) { - return getInertBodyElement_DOMParser; + 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 removeFromDisabledElementsLookup(evt) { + disabledElementsLookup.delete(evt.target); + } + + 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 { - return getInertBodyElement_InertDocument; + $rootScope.$$postDigest(function() { + postDigestCalled = true; + fn(); + }); } - } + }; + } - 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 `` do not get hoisted to the `` tag. - html = '' + 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; - } + // 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(); - 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 `` do not get hoisted to the `` tag. - html = '' + html; - try { - var body = new window.DOMParser().parseFromString(html, 'text/html').body; - body.firstChild.remove(); - return body; - } catch (e) { - return undefined; - } + // 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; + } + }); + }); } + ); - function getInertBodyElement_InertDocument(html) { - inertBodyElement.innerHTML = html; - - // Support: IE 9-11 only - // strip custom-namespaced attributes on IE<=11 - if (document.documentMode) { - stripCustomNsAttrs(inertBodyElement); - } + var callbackRegistry = Object.create(null); - return inertBodyElement; - } - }(window, window.document); + // 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() { return true; }; - /** - * @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 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 inertBodyElement = getInertBodyElement(html); - if (!inertBodyElement) return ''; + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); - //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; - } + function normalizeAnimationDetails(element, animation) { + return mergeAnimationDetails(element, animation, {}); + } - 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()); - } - } + // 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); } - } - node = nextNode; + }); } - while (node = inertBodyElement.firstChild) { - inertBodyElement.removeChild(node); - } + return matches; } - function attrToMap(attrs) { - var map = {}; - for (var i = 0, ii = attrs.length; i < ii; i++) { - var attr = attrs[i]; - map[attr.name] = attr.value; + 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); } - 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, '&').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, '>'); - } + var $animate = { + on: function(event, container, callback) { + var node = extractElementNode(container); + callbackRegistry[event] = callbackRegistry[event] || []; + callbackRegistry[event].push({ + node: node, + callback: callback + }); - /** - * 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(''); - } - // eslint-disable-next-line eqeqeq - if (tag == ignoreCurrentElement) { - ignoreCurrentElement = false; - } - }, - chars: function chars(_chars) { - if (!ignoreCurrentElement) { - out(encodeEntities(_chars)); + // 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); } - } - }; - } + }); + }, - /** - * 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--; - } + off: function(event, container, callback) { + if (arguments.length === 1 && !isString(arguments[0])) { + container = arguments[0]; + for (var eventType in callbackRegistry) { + callbackRegistry[eventType] = filterFromRegistry(callbackRegistry[eventType], container); } - } - var nextNode = node.firstChild; - if (nextNode) { - stripCustomNsAttrs(nextNode); + return; } - 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; - } - } + var entries = callbackRegistry[event]; + if (!entries) return; - function sanitizeText(chars) { - var buf = []; - var writer = htmlSanitizeWriter(buf, noop); - writer.chars(chars); - return buf.join(''); - } + callbackRegistry[event] = arguments.length === 1 + ? null + : filterFromRegistry(entries, container, callback); + }, - // define ngSanitize module and register $sanitize service - angular.module('ngSanitize', []).provider('$sanitize', $SanitizeProvider).info({ angularVersion: '1.7.5' }); + pin: function(element, parentElement) { + assertArg(isElement(element), 'element', 'not an element'); + assertArg(isElement(parentElement), 'parentElement', 'not an element'); + element.data(NG_ANIMATE_PIN_DATA, parentElement); + }, - /** - * @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 - - * - * @example - - -

- Snippet: - - - - - - - - - - - - - - - - - - - - - - - - - - -
FilterSourceRendered
linky filter -
<div ng-bind-html="snippet | linky">
</div>
-
-
-
linky target -
<div ng-bind-html="snippetWithSingleURL | linky:'_blank'">
</div>
-
-
-
linky custom attributes -
<div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}">
</div>
-
-
-
no filter
<div ng-bind="snippet">
</div>
- - - 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/'; - }]); - - - 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'); - }); - - - */ - 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 {}; - }; + push: function(element, event, options, domOperation) { + options = options || {}; + options.domOperation = domOperation; + return queueAnimation(element, event, options); + }, - 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)); - } + // this method has four signatures: + // () - global getter + // (bool) - global setter + // (element) - element getter + // (element, bool) - element setter + enabled: function(element, bool) { + var argCount = arguments.length; + + if (argCount === 0) { + // () - Global getter + bool = !!animationsEnabled; + } else { + var hasElement = isElement(element); - function addLink(url, text) { - var key, - linkAttributes = attributesFn(url); - html.push(''); - addText(text); - html.push(''); + return bool; } }; - }]); -})(window, window.angular); -},{}],316:[function(require,module,exports){ -'use strict'; - -require('./angular-sanitize'); -module.exports = 'ngSanitize'; + return $animate; -},{"./angular-sanitize":315}],317:[function(require,module,exports){ -'use strict'; + 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 _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 element = stripCommentsFromElement(originalElement); + var node = getDomNode(element); + var parentNode = node && node.parentNode; -/*! - * angular-translate - v2.18.1 - 2018-05-19 - * - * Copyright (c) 2018 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 () { + options = prepareAnimationOptions(options); - $translateMissingTranslationHandlerLog.$inject = ['$log']; - angular.module('pascalprecht.translate') + // we create a fake runner with a working promise. + // These methods will become available after the digest has passed + var runner = new $$AnimateRunner(); - /** - * @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); + // this is used to trigger callbacks in postDigest mode + var runInNextPostDigestOrNow = postDigestTaskFactory(); - function $translateMissingTranslationHandlerLog($log) { + if (isArray(options.addClass)) { + options.addClass = options.addClass.join(' '); + } - 'use strict'; + if (options.addClass && !isString(options.addClass)) { + options.addClass = null; + } - return function (translationId) { - $log.warn('Translation for ' + translationId + ' doesn\'t exist'); - }; - } + if (isArray(options.removeClass)) { + options.removeClass = options.removeClass.join(' '); + } - $translateMissingTranslationHandlerLog.displayName = '$translateMissingTranslationHandlerLog'; - return 'pascalprecht.translate'; -}); + if (options.removeClass && !isString(options.removeClass)) { + options.removeClass = null; + } -},{}],318:[function(require,module,exports){ -'use strict'; + if (options.from && !isObject(options.from)) { + options.from = null; + } -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; }; + if (options.to && !isObject(options.to)) { + options.to = null; + } -/*! - * angular-translate - v2.18.1 - 2018-05-19 - * - * Copyright (c) 2018 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 () { + // 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; + } - /** - * @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) { + var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0; - 'use strict'; + var documentHidden = $$isDocumentHidden(); - var key = $translate.storageKey(), - storage = $translate.storage(); + // 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; - 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()); + // 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); } - }; - fallbackFromIncorrectStorageValue.displayName = 'fallbackFromIncorrectStorageValue'; + if (skipAnimations) { + // Callbacks should fire even if the document is hidden (regression fix for issue #14120) + if (documentHidden) notifyProgress(runner, event, 'start', getEventData(options)); + close(); + if (documentHidden) notifyProgress(runner, event, 'close', getEventData(options)); + return runner; + } - if (storage) { - if (!storage.get(key)) { - fallbackFromIncorrectStorageValue(); - } else { - $translate.use(storage.get(key))['catch'](fallbackFromIncorrectStorageValue); + if (isStructural) { + closeChildAnimations(node); } - } else if (angular.isString($translate.preferredLanguage())) { - $translate.use($translate.preferredLanguage()); - } - } - runTranslate.displayName = 'runTranslate'; + var newAnimation = { + structural: isStructural, + element: element, + event: event, + addClass: options.addClass, + removeClass: options.removeClass, + close: close, + options: options, + runner: runner + }; - /** - * @ngdoc object - * @name pascalprecht.translate.$translateSanitizationProvider - * - * @description - * - * Configurations for $translateSanitization - */ - angular.module('pascalprecht.translate').provider('$translateSanitization', $translateSanitizationProvider); + 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($$jqLite, element, isStructural ? event : null, options); - function $translateSanitizationProvider() { + event = newAnimation.event = existingAnimation.event; + options = mergeAnimationDetails(element, existingAnimation, newAnimation); - 'use strict'; + //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); + } - var $sanitize, - $sce, - currentStrategy = null, - // TODO change to either 'sanitize', 'escape' or ['sanitize', 'escapeParameters'] in 3.0. - hasConfiguredStrategy = false, - hasShownNoStrategyConfiguredWarning = false, - strategies; + // 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); + } - /** - * 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} - */ + if (!isValidAnimation) { + close(); + clearElementAnimationState(node); + return runner; + } - /** - * @ngdoc property - * @name strategies - * @propertyOf pascalprecht.translate.$translateSanitizationProvider - * - * @description - * Following strategies are built-in: - *
- *
sanitize
- *
Sanitizes HTML in the translation text using $sanitize
- *
escape
- *
Escapes HTML in the translation
- *
sanitizeParameters
- *
Sanitizes HTML in the values of the interpolation parameters using $sanitize
- *
escapeParameters
- *
Escapes HTML in the values of the interpolation parameters
- *
escaped
- *
Support legacy strategy name 'escaped' for backwards compatibility (will be removed in 3.0)
- *
- * - */ + // 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); + } - 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); + // 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; } - 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; - }; + // 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; - /** - * @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; - }; + markElementAnimationState(node, RUNNING_STATE); + var realRunner = $$animation(element, event, animationDetails.options); - /** - * @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; - }; + // this will update the runner's flow-control events based on + // the `realRunner` object. + runner.setHost(realRunner); + notifyProgress(runner, event, 'start', getEventData(options)); - /** - * @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); + realRunner.done(function(status) { + close(!status); + var animationDetails = activeAnimationsLookup.get(node); + if (animationDetails && animationDetails.counter === counter) { + clearElementAnimationState(node); + } + notifyProgress(runner, event, 'close', getEventData(options)); + }); + }); + + 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 { - throw new Error('pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: \'' + selectedStrategy + '\''); + cleanupEventListeners(phase, node); } }); - return value; - }; + runner.progress(event, phase, data); + } - // 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; + 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; + } } - }; + }); + } - if ($injector.has('$sanitize')) { - $sanitize = $injector.get('$sanitize'); - } - if ($injector.has('$sce')) { - $sce = $injector.get('$sce'); + 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); } - 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), + while (parentNode) { + if (!rootNodeDetected) { + // AngularJS 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); + } - /** - * @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 (parentNode.nodeType !== ELEMENT_NODE) { + // no point in inspecting the #document element + break; + } - if (!strategy && strategy !== null) { - strategy = currentStrategy; - } + 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 (!strategy) { - return value; + 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 (!context) { - context = 'service'; + if (isUndefined(animateChildren) || animateChildren === true) { + var value = jqLite.data(parentNode, NG_ANIMATE_CHILDREN_DATA); + if (isDefined(value)) { + animateChildren = value; } - - var selectedStrategies = angular.isArray(strategy) ? strategy : [strategy]; - return applyStrategies(value, mode, context, selectedStrategies); } - }; - }]; - - var htmlEscapeValue = function htmlEscapeValue(value) { - var element = angular.element('
'); - 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); - }; + // there is no need to continue traversing at this point + if (parentAnimationDetected && animateChildren === false) break; - var htmlTrustValue = function htmlTrustValue(value) { - if (!$sce) { - throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sce service.'); - } - return $sce.trustAsHtml(value); - }; + 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); + } - var mapInterpolationParameters = function mapInterpolationParameters(value, iteratee, stack) { - if (angular.isDate(value)) { - return value; - } else if (angular.isObject(value)) { - var result = angular.isArray(value) ? [] : {}; + 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 (!stack) { - stack = []; - } else { - if (stack.indexOf(value) > -1) { - throw new Error('pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object'); + 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; } } - stack.push(value); - angular.forEach(value, function (propertyValue, propertyKey) { + parentNode = parentNode.parentNode; + } - /* Skipping function properties. */ - if (angular.isFunction(propertyValue)) { - return; - } + var allowAnimation = (!parentAnimationDetected || animateChildren) && elementDisabled !== true; + return allowAnimation && rootNodeDetected && bodyNodeDetected; + } - result[propertyKey] = mapInterpolationParameters(propertyValue, iteratee, stack); - }); - stack.splice(-1, 1); // remove last + function markElementAnimationState(node, state, details) { + details = details || {}; + details.state = state; - 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; - } - }; - } + node.setAttribute(NG_ANIMATE_ATTR_NAME, state); - /** - * @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); + var oldValue = activeAnimationsLookup.get(node); + var newValue = oldValue + ? extend(oldValue, details) + : details; + activeAnimationsLookup.set(node, newValue); + } + }]; +}]; - function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvider, pascalprechtTranslateOverrider) { +/** @this */ +var $$AnimateCacheProvider = function() { - 'use strict'; + var KEY = '$$ngAnimateParentKey'; + var parentCounter = 0; + var cache = Object.create(null); - 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; + this.$get = [function() { + return { + cacheKey: function(node, method, addClass, removeClass) { + var parentNode = node.parentNode; + var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter); + var parts = [parentID, method, node.getAttribute('class')]; + if (addClass) { + parts.push(addClass); + } + if (removeClass) { + parts.push(removeClass); + } + return parts.join(' '); }, - 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; - } + containsCachedAnimationWithoutDuration: function(key) { + var entry = cache[key]; - return parts.join('-'); + // nothing cached, so go ahead and animate + // otherwise it should be a valid animation + return (entry && !entry.isValid) || false; }, - 'iso639-1': function iso6391(tag) { - var temp = (tag || '').split('_').join('-'); - var parts = temp.split('-'); - return parts[0].toLowerCase(); - } - }; - var version = '2.18.1'; + flush: function() { + cache = Object.create(null); + }, - // tries to determine the browsers language - var getFirstBrowserLanguage = function getFirstBrowserLanguage() { + count: function(key) { + var entry = cache[key]; + return entry ? entry.total : 0; + }, - // internal purpose only - if (angular.isFunction(pascalprechtTranslateOverrider.getLocale)) { - return pascalprechtTranslateOverrider.getLocale(); - } + get: function(key) { + var entry = cache[key]; + return entry && entry.value; + }, - 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; - } + put: function(key, value, isValid) { + if (!cache[key]) { + cache[key] = { total: 1, value: value, isValid: isValid }; + } else { + cache[key].total++; + cache[key].value = value; } } + }; + }]; +}; - // 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; - } - } +/* exported $$AnimationProvider */ - return null; - }; - getFirstBrowserLanguage.displayName = 'angular-translate/service: getFirstBrowserLanguage'; +var $$AnimationProvider = ['$animateProvider', /** @this */ function($animateProvider) { + var NG_ANIMATE_REF_ATTR = 'ng-animate-ref'; - // 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'; + var drivers = this.drivers = []; - /** - * @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; - }; + var RUNNER_STORAGE_KEY = '$$animationRunner'; + var PREPARE_CLASSES_KEY = '$$animatePrepareClasses'; - /** - * @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, ''); - }; + function setRunner(element, runner) { + element.data(RUNNER_STORAGE_KEY, runner); + } - /** - * @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; - }; + function removeRunner(element) { + element.removeData(RUNNER_STORAGE_KEY); + } - var negotiateLocale = function negotiateLocale(preferred) { - if (!preferred) { - return; - } + function getRunner(element) { + return element.data(RUNNER_STORAGE_KEY); + } - var avail = [], - locale = lowercase(preferred), - i = 0, - n = $availableLanguageKeys.length; + this.$get = ['$$jqLite', '$rootScope', '$injector', '$$AnimateRunner', '$$Map', '$$rAFScheduler', '$$animateCache', + function($$jqLite, $rootScope, $injector, $$AnimateRunner, $$Map, $$rAFScheduler, $$animateCache) { - for (; i < n; i++) { - avail.push(lowercase($availableLanguageKeys[i])); + 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, + element: animation.element, + fn: animation.fn, + children: [] + }); } - // Check for an exact match in our list of available keys - i = indexOf(avail, locale); - if (i > -1) { - return $availableLanguageKeys[i]; + for (i = 0; i < animations.length; i++) { + processNode(animations[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); + return flatten(tree); - 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; - } + 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; } - } - - // Check for a language code without region - var parts = preferred.split('_'); - if (parts.length > 1 && indexOf(avail, lowercase(parts[0])) > -1) { - return parts[0]; + (parentEntry || tree).children.push(entry); + return entry; } - // If everything fails, return undefined. - return; - }; + function flatten(tree) { + var result = []; + var queue = []; + var i; - /** - * @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. - * - *
-     *  // register translation table for language: 'de_DE'
-     *  $translateProvider.translations('de_DE', {
-     *    'GREETING': 'Hallo Welt!'
-     *  });
-     *
-     *  // register another one
-     *  $translateProvider.translations('en_US', {
-     *    'GREETING': 'Hello world!'
-     *  });
-     * 
- * - * 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) { + for (i = 0; i < tree.children.length; i++) { + queue.push(tree.children[i]); + } - if (!langKey && !translationTable) { - return $translationTable; - } + var remainingLevelEntries = queue.length; + var nextLevelEntries = 0; + var row = []; - if (langKey && !translationTable) { - if (angular.isString(langKey)) { - return $translationTable[langKey]; + 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); + entry.children.forEach(function(childEntry) { + nextLevelEntries++; + queue.push(childEntry); + }); + remainingLevelEntries--; } - } else { - if (!angular.isObject($translationTable[langKey])) { - $translationTable[langKey] = {}; + + if (row.length) { + result.push(row); } - angular.extend($translationTable[langKey], flatObject(translationTable)); + + return result; } - return this; - }; + } - this.translations = translations; + // 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; - /** - * @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; - }; + // 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() { close(); }, + cancel: function() { close(true); } + }); - /** - * @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; + if (!drivers.length) { + close(); + return runner; } - $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 = []; + var classes = mergeClasses(element.attr('class'), mergeClasses(options.addClass, options.removeClass)); + var tempClasses = options.tempClasses; + if (tempClasses) { + classes += ' ' + tempClasses; + options.tempClasses = null; } - if (!result) { - result = {}; + + if (isStructural) { + element.data(PREPARE_CLASSES_KEY, 'ng-' + event + PREPARE_CLASS_SUFFIX); } - 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; + + setRunner(element, runner); + + 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(); } - 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: - *
-     *  app.config(function ($translateProvider) {
-     *    $translateProvider.useMissingTranslationHandler('customHandler');
-     *  });
-     *
-     *  app.factory('customHandler', function (dep1, dep2) {
-     *    return function (translationId) {
-     *      // something with translationId and dep1 and dep2
-     *    };
-     *  });
-     * 
- * - * @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: - *
-     *  app.config(function ($translateProvider) {
-     *    $translateProvider.usePostCompiling(true);
-     *  });
-     * 
- * - * @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: - *
-     *  app.config(function ($translateProvider) {
-     *    $translateProvider.forceAsyncReload(true);
-     *  });
-     * 
- * - * @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()}. - * - *
-     * $translateProvider
-     *   .uniformLanguageTag('bcp47')
-     *   .determinePreferredLanguage()
-     * 
- * - * 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; - }; + // now any future animations will be in another postDigest + animationQueue.length = 0; - /** - * @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: - *
-     *  app.config(function ($translateProvider) {
-     *    $translateProvider.keepContent(true);
-     *  });
-     * 
- * - * @param {boolean} value - valid values are true or false - */ - this.keepContent = function (value) { - $keepContent = !!value; - return this; - }; + var groupedAnimations = groupAnimations(animations); + var toBeSortedAnimations = []; - /** - * @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. - * - *
-     *  $translate('HEADLINE_TEXT').then(function (translation) {
-     *    $scope.translatedText = translation;
-     *  });
-     * 
- * - * @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); - } + forEach(groupedAnimations, function(animationEntry) { + var element = animationEntry.from ? animationEntry.from.element : animationEntry.element; + var extraClasses = options.addClass; - var deferred = $q.defer(); + extraClasses = (extraClasses ? (extraClasses + ' ') : '') + NG_ANIMATE_CLASSNAME; + var cacheKey = $$animateCache.cacheKey(element[0], animationEntry.event, extraClasses, options.removeClass); - // trim off any whitespace - if (translationId) { - translationId = trim.apply(translationId); - } + toBeSortedAnimations.push({ + element: element, + domNode: getDomNode(element), + fn: function triggerAnimationStart() { + var startAnimationFn, closeFn = animationEntry.close; - var promiseToWaitFor = function () { - var promise = langPromises[uses] || langPromises[$preferredLanguage]; + // in the event that we've cached the animation status for this element + // and it's in fact an invalid animation (something that has duration = 0) + // then we should skip all the heavy work from here on + if ($$animateCache.containsCachedAnimationWithoutDuration(cacheKey)) { + closeFn(); + return; + } - fallbackIndex = 0; + // 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(); + + // 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 ($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); + if (!startAnimationFn) { + closeFn(); + } else { + var animationRunner = startAnimationFn(); + animationRunner.done(function(status) { + closeFn(!status); + }); + updateAnimationRunners(animationEntry, animationRunner); } } - } - 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; + // 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. + var finalAnimations = sortAnimations(toBeSortedAnimations); + for (var i = 0; i < finalAnimations.length; i++) { + var innerArray = finalAnimations[i]; + for (var j = 0; j < innerArray.length; j++) { + var entry = innerArray[j]; + var element = entry.element; + + // the RAFScheduler code only uses functions + finalAnimations[i][j] = entry.fn; + + // the first row of elements shouldn't have a prepare-class added to them + // since the elements are at the top of the animation hierarchy and they + // will be applied without a RAF having to pass... + if (i === 0) { + element.removeData(PREPARE_CLASSES_KEY); + continue; } - 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 prepareClassName = element.data(PREPARE_CLASSES_KEY); + if (prepareClassName) { + $$jqLite.addClass(element, prepareClassName); + } + } } - 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); - } + $$rAFScheduler(finalAnimations); + }); - var loaderOptions = angular.extend({}, $loaderOptions, { - key: key, - $http: angular.extend({}, { - cache: cache - }, $loaderOptions.$http) + 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); + } }); - - 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)); + 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 { - angular.extend(translationTable, flatObject(data)); + preparedAnimations.push(animation); } - 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; - }; + 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; + } - if ($storageFactory) { - Storage = $injector.get($storageFactory); + 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() { + fromAnimation.beforeStart(); + toAnimation.beforeStart(); + }, + close: function() { + fromAnimation.close(); + toAnimation.close(); + }, + classes: cssClassesIntersection(fromAnimation.classes, toAnimation.classes), + from: fromAnimation, + to: toAnimation, + anchors: [] // TODO(matsko): change to reference nodes + }; - if (!Storage.get || !Storage.put) { - throw new Error('Couldn\'t use storage \'' + $storageFactory + '\', missing get() or put() method!'); - } - } + // 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); + } + } - // 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'; + anchorGroups[lookupKey].anchors.push({ + 'out': from.element, 'in': to.element + }); + }); - angular.forEach($interpolatorFactories, eachInterpolationFactory); + return preparedAnimations; } - /** - * @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; - }; + function cssClassesIntersection(a,b) { + a = a.split(' '); + b = b.split(' '); + var matches = []; - /** - * @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); + for (var i = 0; i < a.length; i++) { + var aa = a[i]; + if (aa.substring(0,3) === 'ng-') continue; - deferred.resolve(interpolatedValue); + for (var j = 0; j < b.length; j++) { + if (aa === b[j]) { + matches.push(aa); + break; } - 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]; + return matches.join(' '); + } - 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); + 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; } - Interpolator.setLocale($uses); } + } - return result; - }; + function beforeStart() { + tempClasses = (tempClasses ? (tempClasses + ' ') : '') + NG_ANIMATE_CLASSNAME; + $$jqLite.addClass(element, tempClasses); - /** - * @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; + var prepareClassName = element.data(PREPARE_CLASSES_KEY); + if (prepareClassName) { + $$jqLite.removeClass(element, prepareClassName); + prepareClassName = null; } - }; - - /** - * @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); - }); + function updateAnimationRunners(animation, newRunner) { + if (animation.from && animation.to) { + update(animation.from.element); + update(animation.to.element); } 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); + update(animation.element); + } - // 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)); - } - } + function update(element) { + var runner = getRunner(element); + if (runner) runner.setHost(newRunner); } - 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); - } + function handleDestroyedElement() { + var runner = getRunner(element); + if (runner && (event !== 'leave' || !options.$$domOperationFired)) { + runner.end(); } - 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); - }; + function close(rejected) { + element.off('$destroy', handleDestroyedElement); + removeRunner(element); - /** - * 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); - }; + applyAnimationClasses(element, options); + applyAnimationStyles(element, options); + options.domOperation(); - var determineTranslation = function determineTranslation(translationId, interpolateParams, interpolationId, defaultTranslationText, uses, sanitizeStrategy) { + if (tempClasses) { + $$jqLite.removeClass(element, tempClasses); + } + + runner.complete(!rejected); + } + }; + }]; +}]; - var deferred = $q.defer(); +/** + * @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 + * + * + *
+ *
+ * {{ number }} + *
+ *
+ *
+ * + * 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]; + * }; + * }]); + * + * + * .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; } + * + *
+ */ +var ngAnimateSwapDirective = ['$animate', function($animate) { + return { + restrict: 'A', + transclude: 'element', + terminal: true, + priority: 600, // we use 600 here to ensure that the directive is caught before others + link: function(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) { + $transclude(function(clone, childScope) { + previousElement = clone; + previousScope = childScope; + $animate.enter(clone, null, $element); + }); + } + }); + } + }; +}]; - var table = uses ? $translationTable[uses] : $translationTable, - Interpolator = interpolationId ? interpolatorHashMap[interpolationId] : defaultInterpolator; +/** + * @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 AngularJS 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:form#animations form / ngForm} | add and remove ({@link ng.directive:form#css-classes various classes}) | + * | {@link ngAnimate.directive:ngAnimateSwap#animations ngAnimateSwap} | enter and leave | + * | {@link ng.directive:ngClass#animations ngClass / {{class}​}} | add and remove | + * | {@link ng.directive:ngClassEven#animations ngClassEven} | add and remove | + * | {@link ng.directive:ngClassOdd#animations ngClassOdd} | add and remove | + * | {@link ng.directive:ngHide#animations ngHide} | add and remove (the `ng-hide` class) | + * | {@link ng.directive:ngIf#animations ngIf} | enter and leave | + * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave | + * | {@link module:ngMessages#animations ngMessage / ngMessageExp} | enter and leave | + * | {@link module:ngMessages#animations ngMessages} | add and remove (the `ng-active`/`ng-inactive` classes) | + * | {@link ng.directive:ngModel#animations ngModel} | add and remove ({@link ng.directive:ngModel#css-classes various classes}) | + * | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave, and move | + * | {@link ng.directive:ngShow#animations ngShow} | add and remove (the `ng-hide` class) | + * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave | + * | {@link ngRoute.directive:ngView#animations ngView} | enter and leave | + * + * (More information can be found by visiting the documentation associated with each directive.) + * + * For a full breakdown of the steps involved during each animation event, refer to the + * {@link ng.$animate `$animate` API docs}. + * + * ## 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 AngularJS 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 + *
+ * Fade me in out + *
+ * + * + * ``` + * + * Notice the CSS class **fade**? We can now create the CSS transition code that references this class: + * + * ```css + * /* The starting CSS styles for the enter animation */ + * .fade.ng-enter { + * transition:0.5s linear all; + * opacity:0; + * } + * + * /* The finishing CSS styles for the enter animation */ + * .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 + * /* now the element will fade out before it is removed from the DOM */ + * .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 + * /* there is no need to define anything inside of the destination + * CSS class since the keyframe will take charge of the animation */ + * .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 + *
+ * Show and hide me + *
+ * + * + * + * ``` + * + * 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 + *
+ * Highlight this box + *
+ * + * + * + * ``` + * + * 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 { + * /* standard transition code */ + * transition: 1s linear all; + * opacity:0; + * } + * .my-animation.ng-enter-stagger { + * /* this will have a 100ms delay between each successive leave animation */ + * transition-delay: 0.1s; + * + * /* As of 1.4.4, this must always be set: it signals ngAnimate + * to not accidentally inherit a delay property from another CSS class */ + * transition-duration: 0s; + * + * /* if you are using animations instead of transitions you should configure as follows: + * animation-delay: 0.1s; + * animation-duration: 0s; */ + * } + * .my-animation.ng-enter.ng-enter-active { + * /* standard transition styles */ + * 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 + *
+ *
+ *
+ *
+ *
+ * ``` + * + * 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; + * } + * ``` + * + * ### Animating between value changes + * + * Sometimes you need to animate between different expression states, whose values + * don't necessary need to be known or referenced in CSS styles. + * Unless possible with another {@link ngAnimate#directive-support "animation aware" directive}, + * that specific use case can always be covered with {@link ngAnimate.directive:ngAnimateSwap} as + * can be seen in {@link ngAnimate.directive:ngAnimateSwap#examples this example}. + * + * Note that {@link ngAnimate.directive:ngAnimateSwap} is a *structural directive*, which means it + * creates a new instance of the element (including any other/child directives it may have) and + * links it to a new scope every time *swap* happens. In some cases this might not be desirable + * (e.g. for performance reasons, or when you wish to retain internal state on the original + * element instance). + * + * ## 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 + *
+ * {{ item }} + *
+ * ``` + * + * 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 AngularJS + * // 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 + *
+ * this box is moody + *
+ * + * + * + * ``` + * + * ```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 AngularJS, + * 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 + *
+ * Slide in and out + *
+ * ``` + * + * ```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 + * /* the transition tells ngAnimate to make the animation happen */ + * .slide.ng-enter { transition:0.5s linear all; } + * + * /* this extra CSS class will be absorbed into the transition + * since the $animateCss code is adding the class */ + * .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 + * + *
+ *
+ * + * + * + * + * + * + * + * + * ``` + * + * 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 { + * /* this animation will last for 1 second since there are + * two phases to the animation (an `in` and an `out` phase) */ + * 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; + * + * /* the scale will be applied during the out animation, + * but will be animated away when the in animation runs */ + * transform: scale(1.2); + * } + * + * .banner.ng-anchor-in { + * transition: 1s linear all; + * } + * ``` + * + * + * + * + * ### Anchoring Demo + * + + + Home +
+
+
+
+
+ + 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; + }]); + + +

Welcome to the home page

+

Please click on an element

+ + {{ record.title }} + +
+ +
+ {{ profile.title }} +
+
+ + .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; + } + +
+ * + * ### 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 `` 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 AngularJS 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 + * Hi there + * ``` + * + * ```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 + * /* normally we would create a CSS class to reference on the element */ + * 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 AngularJS 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 AngularJS 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 AngularJS 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.7.5' }) + .directive('ngAnimateSwap', ngAnimateSwapDirective) + + .directive('ngAnimateChildren', $$AnimateChildrenDirective) + .factory('$$rAFScheduler', $$rAFSchedulerFactory) + + .provider('$$animateQueue', $$AnimateQueueProvider) + .provider('$$animateCache', $$AnimateCacheProvider) + .provider('$$animation', $$AnimationProvider) + + .provider('$animateCss', $AnimateCssProvider) + .provider('$$animateCssDriver', $$AnimateCssDriverProvider) + + .provider('$$animateJs', $$AnimateJsProvider) + .provider('$$animateJsDriver', $$AnimateJsDriverProvider); - // 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) === '@:') { +})(window, window.angular); - $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); - } +},{}],328:[function(require,module,exports){ +require('./angular-animate'); +module.exports = 'ngAnimate'; - // 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; - }; +},{"./angular-animate":327}],329:[function(require,module,exports){ +/** + * @license AngularJS v1.7.5 + * (c) 2010-2018 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 isArray; +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. + */ - var determineTranslationInstant = function determineTranslationInstant(translationId, interpolateParams, interpolationId, uses, sanitizeStrategy) { +/** + * @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 a 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 $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 + + + +
+ Snippet: + + + + + + + + + + + + + + + + + + + + + + + + + +
DirectiveHowSourceRendered
ng-bind-htmlAutomatically uses $sanitize
<div ng-bind-html="snippet">
</div>
ng-bind-htmlBypass $sanitize by explicitly trusting the dangerous value +
<div ng-bind-html="deliberatelyTrustDangerousSnippet()">
+</div>
+
ng-bindAutomatically escapes
<div ng-bind="snippet">
</div>
+
+
+ + it('should sanitize the html snippet by default', function() { + expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')). + toBe('

an html\nclick here\nsnippet

'); + }); - var result, - table = uses ? $translationTable[uses] : $translationTable, - Interpolator = defaultInterpolator; + it('should inline raw snippet if bound to a trusted value', function() { + expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')). + toBe("

an html\n" + + "click here\n" + + "snippet

"); + }); - // if the interpolation id exists use custom interpolator - if (interpolatorHashMap && Object.prototype.hasOwnProperty.call(interpolatorHashMap, interpolationId)) { - Interpolator = interpolatorHashMap[interpolationId]; - } + it('should escape snippet without any filter', function() { + expect(element(by.css('#bind-default div')).getAttribute('innerHTML')). + toBe("<p style=\"color:blue\">an html\n" + + "<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" + + "snippet</p>"); + }); - // 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]; + it('should update', function() { + element(by.model('snippet')).clear(); + element(by.model('snippet')).sendKeys('new text'); + expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')). + toBe('new text'); + expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')).toBe( + 'new text'); + expect(element(by.css('#bind-default div')).getAttribute('innerHTML')).toBe( + "new <b onclick=\"alert(1)\">text</b>"); + }); +
+
+ */ - // 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); - } - } +/** + * @ngdoc provider + * @name $sanitizeProvider + * @this + * + * @description + * Creates and configures {@link $sanitize} instance. + */ +function $SanitizeProvider() { + var hasBeenInstantiated = false; + var svgEnabled = false; + + this.$get = ['$$sanitizeUri', function($$sanitizeUri) { + hasBeenInstantiated = true; + 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(''); + }; + }]; - return result; - }; - var clearNextLangAndPromise = function clearNextLangAndPromise(key) { - if ($nextLang === key) { - $nextLang = undefined; - } - langPromises[key] = undefined; - }; + /** + * @ngdoc method + * @name $sanitizeProvider#enableSvg + * @kind function + * + * @description + * Enables a subset of svg to be supported by the sanitizer. + * + *
+ *

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.

+ * + *

To protect against these, explicitly setup `overflow: hidden` css rule for all potential svg + * tags within the sanitized content:

+ * + *
+ * + *

+   *   .rootOfTheIncludedContent svg {
+   *     overflow: hidden !important;
+   *   }
+   *   
+ *
+ * + * @param {boolean=} flag Enable or disable SVG support in the sanitizer. + * @returns {boolean|$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; + } + }; - var applyPostProcessing = function applyPostProcessing(translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy) { - var fn = postProcessFn; - if (fn) { + /** + * @ngdoc method + * @name $sanitizeProvider#addValidElements + * @kind function + * + * @description + * Extends the built-in lists of valid HTML/SVG elements, i.e. elements that are considered safe + * and are not stripped off during sanitization. You can extend the following lists of elements: + * + * - `htmlElements`: A list of elements (tag names) to extend the current list of safe HTML + * elements. HTML elements considered safe will not be removed during sanitization. All other + * elements will be stripped off. + * + * - `htmlVoidElements`: This is similar to `htmlElements`, but marks the elements as + * "void elements" (similar to HTML + * [void elements](https://rawgit.com/w3c/html/html5.1-2/single-page.html#void-elements)). These + * elements have no end tag and cannot have content. + * + * - `svgElements`: This is similar to `htmlElements`, but for SVG elements. This list is only + * taken into account if SVG is {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for + * `$sanitize`. + * + *
+ * This method must be called during the {@link angular.Module#config config} phase. Once the + * `$sanitize` service has been instantiated, this method has no effect. + *
+ * + *
+ * Keep in mind that extending the built-in lists of elements may expose your app to XSS or + * other vulnerabilities. Be very mindful of the elements you add. + *
+ * + * @param {Array|Object} elements - A list of valid HTML elements or an object with one or + * more of the following properties: + * - **htmlElements** - `{Array}` - A list of elements to extend the current list of + * HTML elements. + * - **htmlVoidElements** - `{Array}` - A list of elements to extend the current list of + * void HTML elements; i.e. elements that do not have an end tag. + * - **svgElements** - `{Array}` - A list of elements to extend the current list of SVG + * elements. The list of SVG elements is only taken into account if SVG is + * {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for `$sanitize`. + * + * Passing an array (`[...]`) is equivalent to passing `{htmlElements: [...]}`. + * + * @return {$sanitizeProvider} Returns self for chaining. + */ + this.addValidElements = function(elements) { + if (!hasBeenInstantiated) { + if (isArray(elements)) { + elements = {htmlElements: elements}; + } - if (typeof fn === 'string') { - // getting on-demand instance - fn = $injector.get(fn); - } - if (fn) { - return fn(translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy); - } - } + addElementsTo(svgElements, elements.svgElements); + addElementsTo(voidElements, elements.htmlVoidElements); + addElementsTo(validElements, elements.htmlVoidElements); + addElementsTo(validElements, elements.htmlElements); + } - return resolvedTranslation; - }; + return this; + }; - 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 method + * @name $sanitizeProvider#addValidAttrs + * @kind function + * + * @description + * Extends the built-in list of valid attributes, i.e. attributes that are considered safe and are + * not stripped off during sanitization. + * + * **Note**: + * The new attributes will not be treated as URI attributes, which means their values will not be + * sanitized as URIs using `$compileProvider`'s + * {@link ng.$compileProvider#aHrefSanitizationWhitelist aHrefSanitizationWhitelist} and + * {@link ng.$compileProvider#imgSrcSanitizationWhitelist imgSrcSanitizationWhitelist}. + * + *
+ * This method must be called during the {@link angular.Module#config config} phase. Once the + * `$sanitize` service has been instantiated, this method has no effect. + *
+ * + *
+ * Keep in mind that extending the built-in list of attributes may expose your app to XSS or + * other vulnerabilities. Be very mindful of the attributes you add. + *
+ * + * @param {Array} attrs - A list of valid attributes. + * + * @returns {$sanitizeProvider} Returns self for chaining. + */ + this.addValidAttrs = function(attrs) { + if (!hasBeenInstantiated) { + extend(validAttrs, arrayToMap(attrs, true)); + } + return this; + }; - /** - * @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; - }; + ////////////////////////////////////////////////////////////////////////////////////////////////// + // Private stuff + ////////////////////////////////////////////////////////////////////////////////////////////////// - /** - * @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; - }; + bind = angular.bind; + extend = angular.extend; + forEach = angular.forEach; + isArray = angular.isArray; + isDefined = angular.isDefined; + lowercase = angular.$$lowercase; + noop = angular.noop; - /** - * @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; - } - }; + htmlParser = htmlParserImpl; + htmlSanitizeWriter = htmlSanitizeWriterImpl; - /** - * @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; - } - } - } - }; + nodeContains = window.Node.prototype.contains || /** @this */ function(arg) { + // eslint-disable-next-line no-bitwise + return !!(this.compareDocumentPosition(arg) & 16); + }; - /** - * @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; - }; + // 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; - /** - * @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; + // 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 = stringToMap('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 = stringToMap('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr'), + optionalEndTagInlineElements = stringToMap('rp,rt'), + optionalEndTagElements = extend({}, + optionalEndTagInlineElements, + optionalEndTagBlockElements); + + // Safe Block Elements - HTML5 + var blockElements = extend({}, optionalEndTagBlockElements, stringToMap('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, stringToMap('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 = stringToMap('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 = stringToMap('script,style'); + + var validElements = extend({}, + voidElements, + blockElements, + inlineElements, + optionalEndTagElements); + + //Attributes that have href and hence need to be sanitized + var uriAttrs = stringToMap('background,cite,href,longdesc,src,xlink:href,xml:base'); + + var htmlAttrs = stringToMap('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 = stringToMap('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 stringToMap(str, lowercaseKeys) { + return arrayToMap(str.split(','), lowercaseKeys); + } + + function arrayToMap(items, lowercaseKeys) { + var obj = {}, i; + for (i = 0; i < items.length; i++) { + obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true; + } + return obj; + } - /** - * @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; - } + function addElementsTo(elementsMap, newElements) { + if (newElements && newElements.length) { + extend(elementsMap, arrayToMap(newElements)); + } + } - var deferred = $q.defer(); - deferred.promise.then(null, angular.noop); // AJS "Possibly unhandled rejection" + /** + * 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'); - $rootScope.$emit('$translateChangeStart', { language: key }); + // Check for the Safari 10.1 bug - which allows JS to run inside the SVG G element + inertBodyElement.innerHTML = ''; + if (!inertBodyElement.querySelector('svg')) { + return getInertBodyElement_XHR; + } else { + // Check for the Firefox bug - which prevents the inner img JS from being sanitized + inertBodyElement.innerHTML = '

'; + if (inertBodyElement.querySelector('svg img')) { + return getInertBodyElement_DOMParser; + } else { + return getInertBodyElement_InertDocument; + } + } - // 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); - } + 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 `` do not get hoisted to the `` tag. + html = '' + 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; + } - if (aliasedKey) { - key = aliasedKey; - } + 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 `` do not get hoisted to the `` tag. + html = '' + html; + try { + var body = new window.DOMParser().parseFromString(html, 'text/html').body; + body.firstChild.remove(); + return body; + } catch (e) { + return undefined; + } + } - // 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); - } + function getInertBodyElement_InertDocument(html) { + inertBodyElement.innerHTML = html; - return deferred.promise; - }; + // Support: IE 9-11 only + // strip custom-namespaced attributes on IE<=11 + if (document.documentMode) { + stripCustomNsAttrs(inertBodyElement); + } - /** - * @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(); - }; + return inertBodyElement; + } + })(window, window.document); - /** - * @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(); - }; + /** + * @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; + } - /** - * @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; - }; + var inertBodyElement = getInertBodyElement(html); + if (!inertBodyElement) return ''; - /** - * @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; - }; + //mXSS protection + var mXSSAttempts = 5; + do { + if (mXSSAttempts === 0) { + throw $sanitizeMinErr('uinput', 'Failed to sanitize html because the input is unstable'); + } + mXSSAttempts--; - /** - * @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; - }; + // trigger mXSS if it is going to happen by reading and writing the innerHTML + html = inertBodyElement.innerHTML; + inertBodyElement = getInertBodyElement(html); + } while (html !== inertBodyElement.innerHTML); - /** - * @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!'); + 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; + } - $rootScope.$emit('$translateRefreshStart', { language: langKey }); + while ((node = inertBodyElement.firstChild)) { + inertBodyElement.removeChild(node); + } + } - var deferred = $q.defer(), - updatedLanguages = {}; + 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; + } - //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]; - } + /** + * 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, '&'). + 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, '>'); + } + + /** + * 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(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('"'); } - } - if ($uses) { - useLanguage($uses); - } - }, - //handle rejection to appease the $q validation - angular.noop)['finally'](function () { - $rootScope.$emit('$translateRefreshEnd', { language: langKey }); - }); + }); + out('>'); + } + }, + end: function(tag) { + tag = lowercase(tag); + if (!ignoreCurrentElement && validElements[tag] === true && voidElements[tag] !== true) { + out(''); + } + // eslint-disable-next-line eqeqeq + if (tag == ignoreCurrentElement) { + ignoreCurrentElement = false; + } + }, + chars: function(chars) { + if (!ignoreCurrentElement) { + out(encodeEntities(chars)); + } + } + }; + } - 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); + + /** + * 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--; } - $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; - }; + var nextNode = node.firstChild; + if (nextNode) { + stripCustomNsAttrs(nextNode); + } - /** - * @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) { + node = getNonDescendant('nextSibling', node); + } + } - // 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; + 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; + } +} - // Detect undefined and null values to shorten the execution and prevent exceptions - if (translationId === null || angular.isUndefined(translationId)) { - return translationId; - } +function sanitizeText(chars) { + var buf = []; + var writer = htmlSanitizeWriter(buf, noop); + writer.chars(chars); + return buf.join(''); +} - // 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; - } +// define ngSanitize module and register $sanitize service +angular.module('ngSanitize', []) + .provider('$sanitize', $SanitizeProvider) + .info({ angularVersion: '1.7.5' }); - // We discarded unacceptable values. So we just need to verify if translationId is empty String - if (angular.isString(translationId) && translationId.length < 1) { - return translationId; - } +/** + * @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 + + * + * @example + + +

+ Snippet: + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilterSourceRendered
linky filter +
<div ng-bind-html="snippet | linky">
</div>
+
+
+
linky target +
<div ng-bind-html="snippetWithSingleURL | linky:'_blank'">
</div>
+
+
+
linky custom attributes +
<div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}">
</div>
+
+
+
no filter
<div ng-bind="snippet">
</div>
+ + + 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/'; + }]); + + + 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); + }); - // trim off any whitespace - if (translationId) { - translationId = trim.apply(translationId); - } + 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); + }); - 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; - } - } + 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.'); + }); - 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); - } + 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'); + }); - if ($missingTranslationHandlerFactory && !pendingLoader && missingTranslationHandlerTranslation) { - result = missingTranslationHandlerTranslation; - } - } - } + 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'); + }); + + + */ +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; - return result; - }; + var linkyMinErr = angular.$$minErr('linky'); + var isDefined = angular.isDefined; + var isFunction = angular.isFunction; + var isObject = angular.isObject; + var isString = angular.isString; - /** - * @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; - }; + return function(text, target, attributes) { + if (text == null || text === '') return text; + if (!isString(text)) throw linkyMinErr('notstring', 'Expected string but received: {0}', text); - /** - * @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; - }; + var attributesFn = + isFunction(attributes) ? attributes : + isObject(attributes) ? function getAttributesObject() {return attributes;} : + function getEmptyAttributesObject() {return {};}; - // internal purpose only - $translate.directivePriority = function () { - return directivePriority; - }; + 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)); + } - // internal purpose only - $translate.statefulFilter = function () { - return statefulFilter; - }; + function addLink(url, text) { + var key, linkAttributes = attributesFn(url); + html.push(''); + addText(text); + html.push(''); + } + }; +}]); - /** - * @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; - }; +})(window, window.angular); - /** - * @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; - }; +},{}],330:[function(require,module,exports){ +require('./angular-sanitize'); +module.exports = 'ngSanitize'; - // 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; - }); +},{"./angular-sanitize":329}],331:[function(require,module,exports){ +/*! + * angular-translate - v2.18.1 - 2018-05-19 + * + * Copyright (c) 2018 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 === '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(); + } +}(this, function () { - if ($loaderFactory) { +$translateMissingTranslationHandlerLog.$inject = ['$log']; +angular.module('pascalprecht.translate') - // 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()); - } - } +/** + * @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); - // 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() }); - } +function $translateMissingTranslationHandlerLog ($log) { - return $translate; - }]; + 'use strict'; + + return function (translationId) { + $log.warn('Translation for ' + translationId + ' doesn\'t exist'); + }; +} + +$translateMissingTranslationHandlerLog.displayName = '$translateMissingTranslationHandlerLog'; +return 'pascalprecht.translate'; + +})); + +},{}],332:[function(require,module,exports){ +/*! + * angular-translate - v2.18.1 - 2018-05-19 + * + * Copyright (c) 2018 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 === '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(); } +}(this, function () { - $translate.displayName = 'displayName'; +/** + * @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) { - /** - * @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); + 'use strict'; - function $translateDefaultInterpolation($interpolate, $translateSanitization) { + var key = $translate.storageKey(), + storage = $translate.storage(); - 'use strict'; + var fallbackFromIncorrectStorageValue = function () { + 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()); + } + }; - var $translateInterpolator = {}, - $locale, - $identifier = 'default'; + fallbackFromIncorrectStorageValue.displayName = 'fallbackFromIncorrectStorageValue'; - /** - * @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; - }; + 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()); + } +} - /** - * @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; - }; +runTranslate.displayName = 'runTranslate'; - /** - * @deprecated will be removed in 3.0 - * @see {@link pascalprecht.translate.$translateSanitization} - */ - $translateInterpolator.useSanitizeValueStrategy = function (value) { - $translateSanitization.useStrategy(value); - return this; - }; +/** + * @ngdoc object + * @name pascalprecht.translate.$translateSanitizationProvider + * + * @description + * + * Configurations for $translateSanitization + */ +angular.module('pascalprecht.translate').provider('$translateSanitization', $translateSanitizationProvider); - /** - * @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 = ''; - } +function $translateSanitizationProvider () { - return interpolatedText; - }; + 'use strict'; - return $translateInterpolator; - } + var $sanitize, + $sce, + currentStrategy = null, // TODO change to either 'sanitize', 'escape' or ['sanitize', 'escapeParameters'] in 3.0. + hasConfiguredStrategy = false, + hasShownNoStrategyConfiguredWarning = false, + strategies; - $translateDefaultInterpolation.displayName = '$translateDefaultInterpolation'; + /** + * 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: + *
+ *
sanitize
+ *
Sanitizes HTML in the translation text using $sanitize
+ *
escape
+ *
Escapes HTML in the translation
+ *
sanitizeParameters
+ *
Sanitizes HTML in the values of the interpolation parameters using $sanitize
+ *
escapeParameters
+ *
Escapes HTML in the values of the interpolation parameters
+ *
escaped
+ *
Support legacy strategy name 'escaped' for backwards compatibility (will be removed in 3.0)
+ *
+ * + */ - angular.module('pascalprecht.translate').constant('$STORAGE_KEY', 'NG_TRANSLATE_LANG_KEY'); + strategies = { + sanitize: function (value, mode/*, context*/) { + if (mode === 'text') { + value = htmlSanitizeValue(value); + } + return value; + }, + escape: function (value, mode/*, context*/) { + if (mode === 'text') { + value = htmlEscapeValue(value); + } + return value; + }, + sanitizeParameters: function (value, mode/*, context*/) { + if (mode === 'params') { + value = mapInterpolationParameters(value, htmlSanitizeValue); + } + return value; + }, + escapeParameters: function (value, mode/*, context*/) { + if (mode === 'params') { + value = mapInterpolationParameters(value, htmlEscapeValue); + } + return value; + }, + sce: function (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 (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; - angular.module('pascalprecht.translate') /** - * @ngdoc directive - * @name pascalprecht.translate.directive:translate - * @requires $interpolate, - * @requires $compile, - * @requires $parse, - * @requires $rootScope - * @restrict AE + * @ngdoc function + * @name pascalprecht.translate.$translateSanitizationProvider#addStrategy + * @methodOf pascalprecht.translate.$translateSanitizationProvider * * @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} + * Adds a sanitization strategy to the list of known strategies. * - * @example - - -
- -

-          
TRANSLATION_ID
-

-          

-          
{{translationId}}
-

-          
WITH_VALUES
-

-          
WITH_VALUES
-

-          

-  
-        
-
- - 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 - }; - }); - - - it('should translate', function () { - inject(function ($rootScope, $compile) { - $rootScope.translationId = 'TRANSLATION_ID'; - - element = $compile('

')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('Hello there!'); - - element = $compile('

')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('Hello there!'); - - element = $compile('

TRANSLATION_ID

')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('Hello there!'); - - element = $compile('

{{translationId}}

')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('Hello there!'); - - element = $compile('

')($rootScope); - $rootScope.$digest(); - expect(element.attr('title')).toBe('Hello there!'); - - element = $compile('

')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('The interpolation key is camel cased: Hello'); - }); - }); -
-
+ * @param {string} strategyName - unique key for a strategy + * @param {StrategyFunction} strategyFunction - strategy function + * @returns {object} this */ - .directive('translate', translateDirective); - function translateDirective($translate, $interpolate, $compile, $parse, $rootScope) { + this.addStrategy = function (strategyName, strategyFunction) { + strategies[strategyName] = strategyFunction; + return this; + }; - 'use strict'; + /** + * @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; + }; - /** - * @name trim - * @private - * - * @description - * trim polyfill - * - * @returns {string} The string stripped of whitespace from both ends - */ + /** + * @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; + }; - var trim = function trim() { - return this.toString().replace(/^\s+|\s+$/g, ''); + /** + * @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 (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; }; - /** - * @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; + // TODO: should be removed in 3.0 + var showNoStrategyConfiguredWarning = function () { + 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 { - restrict: 'AE', - scope: true, - priority: $translate.directivePriority(), - compile: function compile(tElement, tAttr) { + /** + * @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), - var translateValuesExist = tAttr.translateValues ? tAttr.translateValues : undefined; + /** + * @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 (value, mode, strategy, context) { + if (!currentStrategy) { + showNoStrategyConfiguredWarning(); + } - var translateInterpolation = tAttr.translateInterpolation ? tAttr.translateInterpolation : undefined; + if (!strategy && strategy !== null) { + strategy = currentStrategy; + } - var translateSanitizeStrategyExist = tAttr.translateSanitizeStrategy ? tAttr.translateSanitizeStrategy : undefined; + if (!strategy) { + return value; + } - var translateValueExist = tElement[0].outerHTML.match(/translate-value-+/i); + if (!context) { + context = 'service'; + } - var interpolateRegExp = '^(.*)(' + $interpolate.startSymbol() + '.*' + $interpolate.endSymbol() + ')(.*)', - watcherRegExp = '^(.*)' + $interpolate.startSymbol() + '(.*)' + $interpolate.endSymbol() + '(.*)'; + var selectedStrategies = angular.isArray(strategy) ? strategy : [strategy]; + return applyStrategies(value, mode, context, selectedStrategies); + } + }; + }]; - return function linkFn(scope, iElement, iAttr) { + var htmlEscapeValue = function (value) { + var element = angular.element('
'); + element.text(value); // not chainable, see #1044 + return element.html(); + }; - scope.interpolateParams = {}; - scope.preText = ''; - scope.postText = ''; - scope.translateNamespace = getTranslateNamespace(scope); - var translationIds = {}; + var htmlSanitizeValue = function (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 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]; - } - } - } - }; + var htmlTrustValue = function (value) { + if (!$sce) { + throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sce service.'); + } + return $sce.trustAsHtml(value); + }; - // 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) { + var mapInterpolationParameters = function (value, iteratee, stack) { + if (angular.isDate(value)) { + return value; + } else if (angular.isObject(value)) { + var result = angular.isArray(value) ? [] : {}; - // Remove any old watcher - if (angular.isFunction(observeElementTranslation._unwatchOld)) { - observeElementTranslation._unwatchOld(); - observeElementTranslation._unwatchOld = undefined; - } + if (!stack) { + stack = []; + } else { + if (stack.indexOf(value) > -1) { + throw new Error('pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object'); + } + } - 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(); - }; + stack.push(value); + angular.forEach(value, function (propertyValue, propertyKey) { - var observeAttributeTranslation = function observeAttributeTranslation(translateAttr) { - iAttr.$observe(translateAttr, function (translationId) { - translationIds[translateAttr] = translationId; - updateTranslations(); - }); - }; + /* Skipping function properties. */ + if (angular.isFunction(propertyValue)) { + return; + } - // initial setup with values - initInterpolationParams(scope.interpolateParams, iAttr, tAttr); + result[propertyKey] = mapInterpolationParameters(propertyValue, iteratee, stack); + }); + stack.splice(-1, 1); // remove last - var firstAttributeChangedEvent = true; - iAttr.$observe('translate', function (translationId) { - if (typeof translationId === 'undefined') { - // case of element "xyz" - observeElementTranslation(''); - } else { - // case of regular attribute - if (translationId !== '' || !firstAttributeChangedEvent) { - translationIds.translate = translationId; - updateTranslations(); - } - } - firstAttributeChangedEvent = false; - }); + 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; + } + }; +} - for (var translateAttr in iAttr) { - if (iAttr.hasOwnProperty(translateAttr) && translateAttr.substr(0, 13) === 'translateAttr' && translateAttr.length > 13) { - observeAttributeTranslation(translateAttr); - } - } +/** + * @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); - iAttr.$observe('translateDefault', function (value) { - scope.defaultText = value; - updateTranslations(); - }); +function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvider, pascalprechtTranslateOverrider) { - if (translateSanitizeStrategyExist) { - iAttr.$observe('translateSanitizeStrategy', function (value) { - scope.sanitizeStrategy = $parse(value)(scope.$parent); - updateTranslations(); - }); - } + 'use strict'; - if (translateValuesExist) { - iAttr.$observe('translateValues', function (interpolateParams) { - if (interpolateParams) { - scope.$parent.$watch(function () { - angular.extend(scope.interpolateParams, $parse(interpolateParams)(scope.$parent)); - }); - } - }); - } + 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 (tag) { + return (tag || '').split('-').join('_'); + }, + java : function (tag) { + var temp = (tag || '').split('-').join('_'); + var parts = temp.split('_'); + return parts.length > 1 ? (parts[0].toLowerCase() + '_' + parts[1].toUpperCase()) : temp; + }, + bcp47 : function (tag) { + var temp = (tag || '').split('_').join('-'); + var parts = temp.split('-'); - 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); - } + 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; + } - // 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); - } - } - }; + return parts.join('-'); + }, + 'iso639-1' : function (tag) { + var temp = (tag || '').split('_').join('-'); + var parts = temp.split('-'); + return parts[0].toLowerCase(); + } + }; - // 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 version = '2.18.1'; - 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); - } - }; + // tries to determine the browsers language + var getFirstBrowserLanguage = function () { - if (translateValuesExist || translateValueExist || iAttr.translateDefault) { - scope.$watch('interpolateParams', updateTranslations, true); - } + // internal purpose only + if (angular.isFunction(pascalprechtTranslateOverrider.getLocale)) { + return pascalprechtTranslateOverrider.getLocale(); + } - // Replaced watcher on translateLanguage with event listener - scope.$on('translateLanguageChanged', updateTranslations); + var nav = $windowProvider.$get().navigator, + browserLanguagePropertyKeys = ['language', 'browserLanguage', 'systemLanguage', 'userLanguage'], + i, + language; - // Ensures the text will be refreshed after the current language was changed - // w/ $translate.use(...) - var unbind = $rootScope.$on('$translateChangeSuccess', updateTranslations); + // 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; + } + } + } - // 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); - }; + // 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; } - }; - } + } - /** - * Returns the scope's namespace. - * @private - * @param scope - * @returns {string} - */ - function getTranslateNamespace(scope) { - 'use strict'; + return null; + }; + getFirstBrowserLanguage.displayName = 'angular-translate/service: getFirstBrowserLanguage'; - if (scope.translateNamespace) { - return scope.translateNamespace; - } - if (scope.$parent) { - return getTranslateNamespace(scope.$parent); + // tries to determine the browsers locale + var getLocale = function () { + var locale = getFirstBrowserLanguage() || ''; + if (languageTagResolver[uniformLanguageTagResolver]) { + locale = languageTagResolver[uniformLanguageTagResolver](locale); } - } - - translateDirective.displayName = 'translateDirective'; + return locale; + }; + getLocale.displayName = 'angular-translate/service: getLocale'; - angular.module('pascalprecht.translate') /** - * @ngdoc directive - * @name pascalprecht.translate.directive:translate-attr - * @restrict A + * @name indexOf + * @private * * @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. + * indexOf polyfill. Kinda sorta. * - * @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 + * @param {array} array Array to search in. + * @param {string} searchElement Element to search for. * - * @example - - -
- - - -
-
- - 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 - }; - }); - - - it('should translate', function () { - inject(function ($rootScope, $compile) { - $rootScope.translationId = 'TRANSLATION_ID'; - - element = $compile('')($rootScope); - $rootScope.$digest(); - expect(element.attr('placeholder)).toBe('Hello there!'); - expect(element.attr('title)).toBe('The following value is dynamic: 5'); - }); - }); - -
+ * @returns {int} Index of search element. */ - .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); + var indexOf = function (array, searchElement) { + for (var i = 0, len = array.length; i < len; i++) { + if (array[i] === searchElement) { + return i; } - }; - } - - 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'; + return -1; + }; - 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. + * @name trim + * @private * - * The class name is defined in - * {@link pascalprecht.translate.$translateProvider#cloakClassName $translate.cloakClassName()}. + * @description + * trim polyfill * - * @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. + * @returns {string} The string stripped of whitespace from both ends */ - .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'; + var trim = function () { + return this.toString().replace(/^\s+|\s+$/g, ''); + }; - angular.module('pascalprecht.translate') /** - * @ngdoc directive - * @name pascalprecht.translate.directive:translateNamespace - * @restrict A + * @name lowercase + * @private * * @description - * Translates given translation id either through attribute or DOM content. - * Internally it uses `translate` filter to translate translation id. It is possible to - * pass an optional `translate-values` object literal as string into translation id. + * Return the lowercase string only if the type is string * - * @param {string=} translate namespace name which could be either string or interpolated string. - * - * @example - - -
- -
-

.HEADERS.TITLE

-

.HEADERS.WELCOME

-
- -
-

.TITLE

-

.WELCOME

-
- -
-
- - 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'); - - }); - - -
+ * @returns {string} The string all in lowercase */ - .directive('translateNamespace', translateNamespaceDirective); + var lowercase = function (string) { + return angular.isString(string) ? string.toLowerCase() : string; + }; - function translateNamespaceDirective() { + var negotiateLocale = function (preferred) { + if (!preferred) { + return; + } - 'use strict'; + var avail = [], + locale = lowercase(preferred), + i = 0, + n = $availableLanguageKeys.length; - return { - restrict: 'A', - scope: true, - compile: function compile() { - return { - pre: function pre(scope, iElement, iAttrs) { - scope.translateNamespace = _getTranslateNamespace(scope); + for (; i < n; i++) { + avail.push(lowercase($availableLanguageKeys[i])); + } - if (scope.translateNamespace && iAttrs.translateNamespace.charAt(0) === '.') { - scope.translateNamespace += iAttrs.translateNamespace; - } else { - scope.translateNamespace = iAttrs.translateNamespace; + // 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; } } - }; + } } - }; - } + } - /** - * Returns the scope's namespace. - * @private - * @param scope - * @returns {string} - */ - function _getTranslateNamespace(scope) { - 'use strict'; + // Check for a language code without region + var parts = preferred.split('_'); - if (scope.translateNamespace) { - return scope.translateNamespace; - } - if (scope.$parent) { - return _getTranslateNamespace(scope.$parent); + if (parts.length > 1 && indexOf(avail, lowercase(parts[0])) > -1) { + return parts[0]; } - } - translateNamespaceDirective.displayName = 'translateNamespaceDirective'; + // If everything fails, return undefined. + return; + }; - angular.module('pascalprecht.translate') /** - * @ngdoc directive - * @name pascalprecht.translate.directive:translateLanguage - * @restrict A + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#translations + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Forces the language to the directives in the underlying scope. + * Registers a new translation table for specific language key. * - * @param {string=} translate language that will be negotiated. + * To register a translation table for specific language, pass a defined language + * key as first parameter. * - * @example - - -
- -
-

HELLO

-
- -
-

HELLO

-
- -
-
- - angular.module('ngView', ['pascalprecht.translate']) - - .config(function ($translateProvider) { - - $translateProvider - .translations('en',{ - 'HELLO': 'Hello world!' - }) - .translations('de',{ - 'HELLO': 'Hallo Welt!' - }) - .preferredLanguage('en'); - - }); - - -
- */ - .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 + *
+   *  // register translation table for language: 'de_DE'
+   *  $translateProvider.translations('de_DE', {
+   *    'GREETING': 'Hallo Welt!'
+   *  });
    *
-   * @description
-   * Uses `$translate` service to translate contents. Accepts interpolate parameters
-   * to pass dynamized values though translation.
+   *  // register another one
+   *  $translateProvider.translations('en_US', {
+   *    'GREETING': 'Hello world!'
+   *  });
+   * 
* - * @param {string} translationId A translation id to be translated. - * @param {*=} interpolateParams Optional object literal (as hash or string) to pass values into translation. + * 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. * - * @returns {string} Translated text. + * 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. * - * @example - - -
- -
{{ 'TRANSLATION_ID' | translate }}
-
{{ translationId | translate }}
-
{{ 'WITH_VALUES' | translate:'{value: 5}' }}
-
{{ 'WITH_VALUES' | translate:values }}
- -
-
- - 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 - }; - }); - -
*/ - .filter('translate', translateFilterFactory); - - function translateFilterFactory($parse, $translate) { + var translations = function (langKey, translationTable) { - 'use strict'; + if (!langKey && !translationTable) { + return $translationTable; + } - 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); + if (langKey && !translationTable) { + if (angular.isString(langKey)) { + return $translationTable[langKey]; } - - return $translate.instant(translationId, interpolateParams, interpolation, forceLanguage); - }; - - if ($translate.statefulFilter()) { - translateFilter.$stateful = true; + } else { + if (!angular.isObject($translationTable[langKey])) { + $translationTable[langKey] = {}; + } + angular.extend($translationTable[langKey], flatObject(translationTable)); } + return this; + }; - return translateFilter; - } - - translateFilterFactory.displayName = 'translateFilterFactory'; - - angular.module('pascalprecht.translate') + this.translations = translations; /** - * @ngdoc object - * @name pascalprecht.translate.$translationCache - * @requires $cacheFactory + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#cloakClassName + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * Let's you change the class name for `translate-cloak` directive. + * Default class name is `translate-cloak`. + * + * @param {string} name translate-cloak class name */ - .factory('$translationCache', $translationCache); - - function $translationCache($cacheFactory) { - - 'use strict'; - - return $cacheFactory('translations'); - } - - $translationCache.displayName = '$translationCache'; - return 'pascalprecht.translate'; -}); - -},{}],319:[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.7.5 - * (c) 2010-2018 Google, Inc. http://angularjs.org - * License: MIT - */ -(function (window) { - 'use strict'; - - /* exported - minErrConfig, - errorHandlingConfig, - isValidObjectMaxDepth - */ - - var minErrConfig = { - objectMaxDepth: 5, - urlErrorParamsEnabled: true + this.cloakClassName = function (name) { + if (!name) { + return $cloakClassName; + } + $cloakClassName = name; + return this; }; /** * @ngdoc function - * @name angular.errorHandlingConfig - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#nestedObjectDelimeter + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * Let's you change the delimiter for namespaced translations. + * Default delimiter is `.`. * - * 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 - * - * * `urlErrorParamsEnabled` **{Boolean}** - Specifies wether the generated error url will - * contain the parameters of the thrown error. Disabling the parameters can be useful if the - * generated error url is very long. - * - * Default: true. When used without argument, it returns the current value. + * @param {string} delimiter namespace separator */ - function errorHandlingConfig(config) { - if (isObject(config)) { - if (isDefined(config.objectMaxDepth)) { - minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN; - } - if (isDefined(config.urlErrorParamsEnabled) && isBoolean(config.urlErrorParamsEnabled)) { - minErrConfig.urlErrorParamsEnabled = config.urlErrorParamsEnabled; - } - } else { - return minErrConfig; + this.nestedObjectDelimeter = function (delimiter) { + if (!delimiter) { + return $nestedObjectDelimeter; } - } + $nestedObjectDelimeter = delimiter; + return this; + }; /** + * @name flatObject * @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 - * AngularJS. 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 + * @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 (data, path, result, prevKey) { + var key, keyWithPath, keyWithShortPath, val; - function minErr(module, ErrorConstructor) { - ErrorConstructor = ErrorConstructor || Error; - - var url = 'https://errors.angularjs.org/1.7.5/'; - var regex = url.replace('.', '\\.') + '[\\s\\S]*'; - var errRegExp = new RegExp(regex, 'g'); - - 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; - - // A minErr message has two parts: the message itself and the url that contains the - // encoded message. - // The message's parameters can contain other error messages which also include error urls. - // To prevent the messages from getting too long, we strip the error urls from the parameters. - - message += template.replace(/\{\d+\}/g, function (match) { - var index = +match.slice(1, -1); - - if (index < templateArgs.length) { - return templateArgs[index].replace(errRegExp, ''); - } - - return match; - }); - - message += '\n' + url + (module ? module + '/' : '') + code; - - if (minErrConfig.urlErrorParamsEnabled) { - for (i = 0, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') { - message += paramPrefix + 'p' + i + '=' + encodeURIComponent(templateArgs[i]); + 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 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, - 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, - addDateMinutes, - 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 - */ - - //////////////////////////////////// + } + return result; + }; + flatObject.displayName = 'flatObject'; /** - * @ngdoc module - * @name ng - * @module ng - * @installation - * @description + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#addInterpolation + * @methodOf pascalprecht.translate.$translateProvider * - * 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. + * @description + * Adds interpolation services to angular-translate, so it can manage them. * + * @param {object} factory Interpolation service factory */ - - 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; + this.addInterpolation = function (factory) { + $interpolatorFactories.push(factory); + return this; + }; /** - * @private + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useMessageFormatInterpolation + * @methodOf pascalprecht.translate.$translateProvider * - * @description Converts the specified string to lowercase. - * @param {string} string String to be converted to lowercase. - * @returns {string} Lowercased string. + * @description + * Tells angular-translate to use interpolation functionality of messageformat.js. + * This is useful when having high level pluralization and gender selection. */ - var lowercase = function lowercase(string) { - return isString(string) ? string.toLowerCase() : string; + this.useMessageFormatInterpolation = function () { + return this.useInterpolation('$translateMessageFormatInterpolation'); }; /** - * @private + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useInterpolation + * @methodOf pascalprecht.translate.$translateProvider * - * @description Converts the specified string to uppercase. - * @param {string} string String to be converted to uppercase. - * @returns {string} Uppercased string. + * @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. */ - var uppercase = function uppercase(string) { - return isString(string) ? string.toUpperCase() : string; + this.useInterpolation = function (factory) { + $interpolationFactory = factory; + return this; }; - 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 ...) + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useSanitizeStrategy + * @methodOf pascalprecht.translate.$translateProvider + * + * @description + * Simply sets a sanitation strategy type. + * + * @param {string} value Strategy type. */ - 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 || typeof obj.item === 'function'); - } + this.useSanitizeValueStrategy = function (value) { + $translateSanitizationProvider.useStrategy(value); + return this; + }; /** * @ngdoc function - * @name angular.forEach - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#preferredLanguage + * @methodOf pascalprecht.translate.$translateProvider * * @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`. + * 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. */ - - 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); - } - } - } + this.preferredLanguage = function (langKey) { + if (langKey) { + setupPreferredLanguage(langKey); + return this; } - 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 $preferredLanguage; + }; + var setupPreferredLanguage = function (langKey) { + if (langKey) { + $preferredLanguage = langKey; } - return keys; - } - + return $preferredLanguage; + }; /** - * when using forEach the params are value, key, but it is often useful to have key, value. - * @param {function(string, *)} iteratorFn - * @returns {function(*, string)} + * @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. */ - function reverseParams(iteratorFn) { - return function (value, key) { - iteratorFn(key, value); - }; - } + this.translationNotFoundIndicator = function (indicator) { + this.translationNotFoundIndicatorLeft(indicator); + this.translationNotFoundIndicatorRight(indicator); + return this; + }; /** - * A consistent way of creating unique IDs in angular. + * ngdoc function + * @name pascalprecht.translate.$translateProvider#translationNotFoundIndicatorLeft + * @methodOf pascalprecht.translate.$translateProvider * - * 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 + * @description + * Sets an indicator which is used when a translation isn't found left to the + * translation id. * - * @returns {number} an unique alpha-numeric string + * @param {string} indicator An indicator. */ - function nextUid() { - return ++uid; - } + this.translationNotFoundIndicatorLeft = function (indicator) { + if (!indicator) { + return $notFoundIndicatorLeft; + } + $notFoundIndicatorLeft = indicator; + return this; + }; /** - * Set or clear the hashkey for an object. - * @param obj object - * @param h the hashkey (!truthy to delete the hashkey) + * 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. */ - 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; - } - } + this.translationNotFoundIndicatorRight = function (indicator) { + if (!indicator) { + return $notFoundIndicatorRight; } - - setHashKey(dst, h); - return dst; - } + $notFoundIndicatorRight = indicator; + return this; + }; /** * @ngdoc function - * @name angular.extend - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#fallbackLanguage + * @methodOf pascalprecht.translate.$translateProvider * * @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)`. + * 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**. * - * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use - * {@link angular.merge} for this. + * @param {string||array} langKey A language key. * - * @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); - } + this.fallbackLanguage = function (langKey) { + fallbackStack(langKey); + return this; + }; - function toInt(str) { - return parseInt(str, 10); - } + var fallbackStack = function (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); + } - var isNumberNaN = Number.isNaN || function isNumberNaN(num) { - // eslint-disable-next-line no-self-compare - return num !== num; + return this; + } else { + if ($fallbackWasString) { + return $fallbackLanguage[0]; + } else { + return $fallbackLanguage; + } + } }; - function inherit(parent, extra) { - return extend(Object.create(parent), extra); - } - /** * @ngdoc function - * @name angular.noop - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#use + * @methodOf pascalprecht.translate.$translateProvider * * @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); - } - ``` + * 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. */ - function noop() {} - noop.$inject = []; + 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 angular.identity - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#resolveClientLocale + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * 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 */ - function identity($) { - return $; - } - identity.$inject = []; - - function valueFn(value) { - return function valueRef() { - return value; - }; - } - - function hasCustomToString(obj) { - return isFunction(obj.toString) && obj.toString !== toString; - } + this.resolveClientLocale = function () { + return getLocale(); + }; /** * @ngdoc function - * @name angular.isUndefined - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#storageKey + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is undefined. + * Tells the module which key must represent the choosed language by a user in the storage. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is undefined. + * @param {string} key A key for the storage. */ - function isUndefined(value) { - return typeof value === 'undefined'; - } + var storageKey = function (key) { + if (!key) { + if ($storagePrefix) { + return $storagePrefix + $storageKey; + } + return $storageKey; + } + $storageKey = key; + return this; + }; + + this.storageKey = storageKey; /** * @ngdoc function - * @name angular.isDefined - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useUrlLoader + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is defined. + * Tells angular-translate to use `$translateUrlLoader` extension service as loader. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is defined. + * @param {string} url Url + * @param {Object=} options Optional configuration object */ - function isDefined(value) { - return typeof value !== 'undefined'; - } + this.useUrlLoader = function (url, options) { + return this.useLoader('$translateUrlLoader', angular.extend({url : url}, options)); + }; /** * @ngdoc function - * @name angular.isObject - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useStaticFilesLoader + * @methodOf pascalprecht.translate.$translateProvider * * @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 + * Tells angular-translate to use `$translateStaticFilesLoader` extension service as loader. * - * @returns {boolean} True if `value` is an `Object` with a null prototype + * @param {Object=} options Optional configuration object */ - function isBlankObject(value) { - return value !== null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !getPrototypeOf(value); - } + this.useStaticFilesLoader = function (options) { + return this.useLoader('$translateStaticFilesLoader', options); + }; /** * @ngdoc function - * @name angular.isString - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useLoader + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is a `String`. + * Tells angular-translate to use any other service as loader. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a `String`. + * @param {string} loaderFactory Factory name to use + * @param {Object=} options Optional configuration object */ - function isString(value) { - return typeof value === 'string'; - } + this.useLoader = function (loaderFactory, options) { + $loaderFactory = loaderFactory; + $loaderOptions = options || {}; + return this; + }; /** * @ngdoc function - * @name angular.isNumber - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useLocalStorage + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * Tells angular-translate to use `$translateLocalStorage` service as storage layer. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a `Number`. */ - function isNumber(value) { - return typeof value === 'number'; - } + this.useLocalStorage = function () { + return this.useStorage('$translateLocalStorage'); + }; /** * @ngdoc function - * @name angular.isDate - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useCookieStorage + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a value is a date. - * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a `Date`. + * Tells angular-translate to use `$translateCookieStorage` service as storage layer. */ - function isDate(value) { - return toString.call(value) === '[object Date]'; - } + this.useCookieStorage = function () { + return this.useStorage('$translateCookieStorage'); + }; /** * @ngdoc function - * @name angular.isArray - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useStorage + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is an `Array`. - * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is an `Array`. + * Tells angular-translate to use custom service as storage layer. */ - function isArray(arr) { - return Array.isArray(arr) || arr instanceof Array; - } + this.useStorage = function (storageFactory) { + $storageFactory = storageFactory; + return this; + }; /** + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#storagePrefix + * @methodOf pascalprecht.translate.$translateProvider + * * @description - * Determines if a reference is an `Error`. - * Loosely based on https://www.npmjs.com/package/iserror + * Sets prefix for storage key. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is an `Error`. + * @param {string} prefix Storage key prefix */ - 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; + this.storagePrefix = function (prefix) { + if (!prefix) { + return prefix; } - } + $storagePrefix = prefix; + return this; + }; /** * @ngdoc function - * @name angular.isFunction - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useMissingTranslationHandlerLog + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is a `Function`. + * Tells angular-translate to use built-in log handler when trying to translate + * a translation Id which doesn't exist. * - * @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. + * This is actually a shortcut method for `useMissingTranslationHandler()`. * - * @private - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a `RegExp`. */ - function isRegExp(value) { - return toString.call(value) === '[object RegExp]'; - } + this.useMissingTranslationHandlerLog = function () { + return this.useMissingTranslationHandler('$translateMissingTranslationHandlerLog'); + }; /** - * Checks if `obj` is a window object. + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useMissingTranslationHandler + * @methodOf pascalprecht.translate.$translateProvider * - * @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(/([-()[\]{}+?*.$^|,:# + * app.config(function ($translateProvider) { + * $translateProvider.useMissingTranslationHandler('customHandler'); + * }); + * + * app.factory('customHandler', function (dep1, dep2) { + * return function (translationId) { + * // something with translationId and dep1 and dep2 + * }; + * }); + * + * + * @param {string} factory Factory name + */ + this.useMissingTranslationHandler = function (factory) { + $missingTranslationHandlerFactory = factory; + return this; }; /** * @ngdoc function - * @name angular.isElement - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#usePostCompiling + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is a DOM element (or wrapped jQuery element). + * If post compiling is enabled, all translated values will be processed + * again with AngularJS' $compile. + * + * Example: + *
+   *  app.config(function ($translateProvider) {
+   *    $translateProvider.usePostCompiling(true);
+   *  });
+   * 
* - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element). + * @param {string} factory Factory name */ - 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. - } + this.usePostCompiling = function (value) { + $postCompilingEnabled = !(!value); + return this; + }; /** - * @param str 'key1,key2,...' - * @returns {object} in the form of {key1:true, key2:true, ...} + * @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: + *
+   *  app.config(function ($translateProvider) {
+   *    $translateProvider.forceAsyncReload(true);
+   *  });
+   * 
+ * + * @param {boolean} value - valid values are true or false */ - 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; - } + this.forceAsyncReload = function (value) { + $forceAsyncReloadEnabled = !(!value); + return this; + }; /** * @ngdoc function - * @name angular.copy - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#uniformLanguageTag + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Creates a deep copy of `source`, which should be an object or an array. + * Tells angular-translate which language tag should be used as a result when determining + * the current browser language. * - * * 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. + * This setting must be set before invoking {@link pascalprecht.translate.$translateProvider#methods_determinePreferredLanguage determinePreferredLanguage()}. * - *
+ *
+   * $translateProvider
+   *   .uniformLanguageTag('bcp47')
+   *   .determinePreferredLanguage()
+   * 
* - *
- * Only enumerable properties are taken into account. Non-enumerable properties (both on `source` - * and on `destination`) will be ignored. - *
+ * 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 * - * @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. + * See also: + * * http://en.wikipedia.org/wiki/IETF_language_tag + * * http://www.w3.org/International/core/langtags/ + * * http://tools.ietf.org/html/bcp47 * - * @example - - -
-
-
-
- Gender: -
- - -
-
form = {{user | json}}
-
leader = {{leader | json}}
-
-
- - // 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(); - }]); - -
+ * @param {string|object} options - options (or standard) + * @param {string} options.standard - valid values are 'default', 'bcp47', 'java' */ - 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); + this.uniformLanguageTag = function (options) { - return needsRecurse ? copyRecurse(source, destination, maxDepth) : destination; + if (!options) { + options = {}; + } else if (angular.isString(options)) { + options = { + standard : options + }; } - 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()); + uniformLanguageTagResolver = options.standard; - 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; - } + return this; + }; /** * @ngdoc function - * @name angular.equals - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#determinePreferredLanguage + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * 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. * - * Scope and DOMWindow objects are being compared only by identify (`===`). + * The `getLocale()` returns a language key in the format `[lang]_[country]` or + * `[lang]` depending on what the browser provides. * - * @param {*} o1 Object or value to compare. - * @param {*} o2 Object or value to compare. - * @returns {boolean} True if arguments are equal. + * Use this method at your own risk, since not all browsers return a valid + * locale (see {@link pascalprecht.translate.$translateProvider#methods_uniformLanguageTag uniformLanguageTag()}). * - * @example - - -
-
-

User 1

- Name: - Age: - -

User 2

- Name: - Age: - -
-
- -
- User 1:
{{user1 | json}}
- User 2:
{{user2 | json}}
- Equal:
{{result}}
-
-
-
- - angular.module('equalsExample', []).controller('ExampleController', ['$scope', function($scope) { - $scope.user1 = {}; - $scope.user2 = {}; - $scope.compare = function() { - $scope.result = angular.equals($scope.user1, $scope.user2); - }; - }]); - -
+ * @param {Function=} fn Function to determine a browser's locale */ - 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; - } + this.determinePreferredLanguage = function (fn) { - var csp = function csp() { - if (!isDefined(csp.rules)) { + var locale = (fn && angular.isFunction(fn)) ? fn() : getLocale(); - 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 - }; - } + if (!$availableLanguageKeys.length) { + $preferredLanguage = locale; + } else { + $preferredLanguage = negotiateLocale(locale) || locale; } - return csp.rules; + return this; + }; - function noUnsafeEval() { - try { - // eslint-disable-next-line no-new, no-new-func - new Function(''); - return false; - } catch (e) { - return true; + /** + * @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 directive - * @module ng - * @name ngJq + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useLoaderCache + * @methodOf pascalprecht.translate.$translateProvider * - * @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). + * 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}) * - * Since AngularJS 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 - - - ... - ... - - ``` - * @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 - - - ... - ... - - ``` + * @param {object} cache boolean, string or cache-object */ - 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; - } + 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 jq.name_ = name; + return this; }; - 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 + * @name pascalprecht.translate.$translateProvider#directivePriority + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * 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 */ - 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); - }; + this.directivePriority = function (priority) { + if (priority === undefined) { + // getter + return directivePriority; } 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'; + // setter with chaining + directivePriority = priority; + return this; } - - return val; - } + }; /** * @ngdoc function - * @name angular.toJson - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#statefulFilter + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be - * stripped since AngularJS 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; - * } - * }; - * ``` + * 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. * - * See https://github.com/angular/angular.js/pull/14221 for more information. + * @param {boolean} state - defines the state of the filter */ - function toJson(obj, pretty) { - if (isUndefined(obj)) return undefined; - if (!isNumber(pretty)) { - pretty = pretty ? 2 : null; + this.statefulFilter = function (state) { + if (state === undefined) { + // getter + return statefulFilter; + } else { + // setter with chaining + statefulFilter = state; + return this; } - return JSON.stringify(obj, toJsonReplacer, pretty); - } + }; /** * @ngdoc function - * @name angular.fromJson - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#postProcess + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Deserializes a JSON string. + * The post processor will be intercept right after the translation result. It can modify the result. * - * @param {string} json JSON string to deserialize. - * @returns {Object|Array|string|number} Deserialized JSON string. + * @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 */ - 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('
').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); + this.postProcess = function (fn) { + if (fn) { + postProcessFn = fn; + } else { + postProcessFn = undefined; } - } - - ///////////////////////////////////////////////// + return this; + }; /** - * Tries to decode the URI component without throwing an exception. + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#keepContent + * @methodOf pascalprecht.translate.$translateProvider * - * @private - * @param str value potential URI component to check. - * @returns {boolean} True if `value` can be decoded - * with the decodeURIComponent function. + * @description + * If keepContent is set to true than translate directive will always use innerHTML + * as a default translation + * + * Example: + *
+   *  app.config(function ($translateProvider) {
+   *    $translateProvider.keepContent(true);
+   *  });
+   * 
+ * + * @param {boolean} value - valid values are true or false */ - function tryDecodeURIComponent(value) { - try { - return decodeURIComponent(value); - } catch (e) { - // Ignore any invalid uri component. - } - } + this.keepContent = function (value) { + $keepContent = !(!value); + return this; + }; /** - * Parses an escaped url query string into key-value pairs. - * @returns {Object.} + * @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. + * + *
+   *  $translate('HEADLINE_TEXT').then(function (translation) {
+   *    $scope.translatedText = translation;
+   *  });
+   * 
+ * + * @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 */ - 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]; + 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 (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 (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 (translationId) { + var deferred = $q.defer(); + var regardless = function (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); } - }); - 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('&') : ''; - } + var deferred = $q.defer(); - /** - * 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, '+'); - } + // trim off any whitespace + if (translationId) { + translationId = trim.apply(translationId); + } - /** - * 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 promiseToWaitFor = (function () { + var promise = langPromises[uses] || langPromises[$preferredLanguage]; - var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-']; + fallbackIndex = 0; - 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; - } + 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]; - function allowAutoBootstrap(document) { - var script = document.currentScript; + 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; - if (!script) { - // Support: IE 9-11 only - // IE does not have `document.currentScript` - return true; - } + // but we can make sure to ALWAYS fallback to preferred language at least + if (indexOf($fallbackLanguage, $preferredLanguage) < 0) { + $fallbackLanguage.push($preferredLanguage); + } + } + } + return promise; + }()); - // 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; - } + 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 () { + // $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'; - var attributes = script.attributes; - var srcs = [attributes.getNamedItem('src'), attributes.getNamedItem('href'), attributes.getNamedItem('xlink:href')]; + promiseToWaitFor['finally'](promiseResolved)['catch'](angular.noop); // we don't care about errors here, already handled + } + return deferred.promise; + }; - return srcs.every(function (src) { - if (!src) { - return true; + /** + * @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 (translationId) { + // applying notFoundIndicators + if ($notFoundIndicatorLeft) { + translationId = [$notFoundIndicatorLeft, translationId].join(' '); } - if (!src.value) { - return false; + if ($notFoundIndicatorRight) { + translationId = [translationId, $notFoundIndicatorRight].join(' '); } + return translationId; + }; - var link = document.createElement('a'); - link.href = src.value; + /** + * @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 (key) { + $uses = key; - 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; + // make sure to store new language key before triggering success event + if ($storageFactory) { + Storage.put($translate.storageKey(), $uses); } - }); - } - // Cached as it has to run during loading so that document.currentScript is available. - var isAutoBootstrapAllowed = allowAutoBootstrap(window.document); + $rootScope.$emit('$translateChangeSuccess', {language : key}); - /** - * @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 `` or `` 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. - * - - -
- I can add: {{a}} + {{b}} = {{ a+b }} -
-
- - angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) { - $scope.a = 1; - $scope.b = 2; - }); - -
- * - * @example - * - * ### With `ngStrictDi` - * - * Using `ngStrictDi`, you would see something like this: - * - - -
-
- I can add: {{a}} + {{b}} = {{ a+b }} - -

This renders because the controller does not fail to - instantiate, by using explicit annotation style (see - script.js for details) -

-
- -
- Name:
- Hello, {{name}}! - -

This renders because the controller does not fail to - instantiate, by using explicit annotation style - (see script.js for details) -

-
- -
- I can add: {{a}} + {{b}} = {{ a+b }} - -

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. -

-
-
-
- - 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']; - - - 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; - } - -
- */ - function angularInit(element, bootstrap) { - var appElement, - module, - config = {}; + // inform default interpolator + defaultInterpolator.setLocale($uses); - // The element `element` has priority over any other element. - forEach(ngAttrPrefixes, function (prefix) { - var name = prefix + 'app'; + var eachInterpolator = function (interpolator, id) { + interpolatorHashMap[id].setLocale($uses); + }; + eachInterpolator.displayName = 'eachInterpolatorLocaleSetter'; - if (!appElement && element.hasAttribute && element.hasAttribute(name)) { - appElement = element; - module = element.getAttribute(name); - } - }); - forEach(ngAttrPrefixes, function (prefix) { - var name = prefix + 'app'; - var candidate; + // inform all others too! + angular.forEach(interpolatorHashMap, eachInterpolator); + $rootScope.$emit('$translateChangeEnd', {language : key}); + }; - if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\:') + ']'))) { - appElement = candidate; - module = candidate.getAttribute(name); - } - }); - if (appElement) { - if (!isAutoBootstrapAllowed) { - try { - window.console.error('AngularJS: disabling automatic bootstrap. - * - * - * - * ``` - * - * @param {DOMElement} element DOM element which is the root of AngularJS application. - * @param {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); + var deferred = $q.defer(); + + $rootScope.$emit('$translateLoadingStart', {language : key}); + pendingLoader = true; - 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(//, '>')); + var cache = loaderCache; + if (typeof(cache) === 'string') { + // getting on-demand instance of loader + cache = $injector.get(cache); } - modules = modules || []; - modules.unshift(['$provide', function ($provide) { - $provide.value('$rootElement', element); - }]); + var loaderOptions = angular.extend({}, $loaderOptions, { + key : key, + $http : angular.extend({}, { + cache : cache + }, $loaderOptions.$http) + }); - if (config.debugInfoEnabled) { - // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`. - modules.push(['$compileProvider', function ($compileProvider) { - $compileProvider.debugInfoEnabled(true); - }]); - } + var onLoaderSuccess = function (data) { + var translationTable = {}; + $rootScope.$emit('$translateLoadingSuccess', {language : key}); - 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); + 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 }); - }]); - return injector; - }; - - var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/; - var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/; + $rootScope.$emit('$translateLoadingEnd', {language : key}); + }; + onLoaderSuccess.displayName = 'onLoaderSuccess'; - if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) { - config.debugInfoEnabled = true; - window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, ''); - } + var onLoaderError = function (key) { + $rootScope.$emit('$translateLoadingError', {language : key}); + deferred.reject(key); + $rootScope.$emit('$translateLoadingEnd', {language : key}); + }; + onLoaderError.displayName = 'onLoaderError'; - if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) { - return doBootstrap(); - } + $injector.get($loaderFactory)(loaderOptions) + .then(onLoaderSuccess, onLoaderError); - window.name = window.name.replace(NG_DEFER_BOOTSTRAP, ''); - angular.resumeBootstrap = function (extraModules) { - forEach(extraModules, function (module) { - modules.push(module); - }); - return doBootstrap(); + return deferred.promise; }; - 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(); - } + if ($storageFactory) { + Storage = $injector.get($storageFactory); - /** - * @name angular.getTestability - * @module ng - * @description - * Get the testability service for the instance of AngularJS on the given - * element. - * @param {DOMElement} element DOM element which is the root of AngularJS application. - */ - function getTestability(rootElement) { - var injector = angular.element(rootElement).injector(); - if (!injector) { - throw ngMinErr('test', 'no injector found for element argument to getTestability'); + if (!Storage.get || !Storage.put) { + throw new Error('Couldn\'t use storage \'' + $storageFactory + '\', missing get() or put() method!'); + } } - 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; - } + // if we have additional interpolations that were added via + // $translateProvider.addInterpolation(), we have to map'em + if ($interpolatorFactories.length) { + var eachInterpolationFactory = function (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'; - // 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. - // AngularJS 1.2+ requires jQuery 1.7+ for on()/off() support. - // AngularJS 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 - }); - } else { - jqLite = JQLite; + angular.forEach($interpolatorFactories, eachInterpolationFactory); } - // All nodes removed from the DOM via various jqLite/jQuery APIs like .remove() - // are passed through jqLite/jQuery.cleanData. Monkey-patch this method to fire - // the $destroy event on all removed nodes. - originalCleanData = jqLite.cleanData; - jqLite.cleanData = function (elems) { - var events; - for (var i = 0, elem; (elem = elems[i]) != null; i++) { - events = (jqLite._data(elem) || {}).events; - if (events && events.$destroy) { - jqLite(elem).triggerHandler('$destroy'); - } + /** + * @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 (langKey) { + var deferred = $q.defer(); + if (Object.prototype.hasOwnProperty.call($translationTable, langKey)) { + deferred.resolve($translationTable[langKey]); + } else if (langPromises[langKey]) { + var onResolve = function (data) { + translations(data.key, data.table); + deferred.resolve(data.table); + }; + onResolve.displayName = 'translationTableResolver'; + langPromises[langKey].then(onResolve, deferred.reject); + } else { + deferred.reject(); } - originalCleanData(elems); + return deferred.promise; }; - angular.element = jqLite; + /** + * @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 (langKey, translationId, interpolateParams, Interpolator, sanitizeStrategy) { + var deferred = $q.defer(); - // Prevent double-proxying. - bindJQueryFired = true; - } + var onResolve = function (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); - /** - * 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; - } + deferred.resolve(interpolatedValue); - function assertArgFn(arg, name, acceptArrayAnnotation) { - if (acceptArrayAnnotation && isArray(arg)) { - arg = arg[arg.length - 1]; - } + } + Interpolator.setLocale($uses); + } else { + deferred.reject(); + } + }; + onResolve.displayName = 'fallbackTranslationResolver'; - 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; - } + getTranslationTable(langKey).then(onResolve, deferred.reject); - /** - * 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 deferred.promise; + }; - /** - * 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; + /** + * @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 (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); + } - 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 result; + }; - /** - * 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); + /** + * @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 (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; } - } - - 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); - } + /** + * @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 (fallbackLanguageIndex, translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy) { + var deferred = $q.defer(); - 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(); + 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 { - 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; + var missingTranslationHandlerTranslation = translateByHandler(translationId, interpolateParams, defaultTranslationText); - /** - * @ngdoc type - * @name angular.Module - * @module ng - * @description - * - * Interface for configuring AngularJS {@link angular.module modules}. - */ + // 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; + }; - function setupModuleLoader(window) { + /** + * @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 (fallbackLanguageIndex, translationId, interpolateParams, Interpolator, sanitizeStrategy) { + var result; - var $injectorMinErr = minErr('$injector'); - var ngMinErr = minErr('ng'); + 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; + }; - function ensure(obj, name, factory) { - return obj[name] || (obj[name] = factory()); - } + /** + * 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 (translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy) { + // Start with the fallbackLanguage with index 0 + return resolveForFallbackLanguage((startFallbackIteration > 0 ? startFallbackIteration : fallbackIndex), translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy); + }; - var angular = ensure(window, 'angular', Object); + /** + * Translates with the usage of the fallback languages. + * + * @param translationId + * @param interpolateParams + * @param Interpolator + * @param sanitizeStrategy + * @returns {String} translation + */ + var fallbackTranslationInstant = function (translationId, interpolateParams, Interpolator, sanitizeStrategy) { + // Start with the fallbackLanguage with index 0 + return resolveForFallbackLanguageInstant((startFallbackIteration > 0 ? startFallbackIteration : fallbackIndex), translationId, interpolateParams, Interpolator, sanitizeStrategy); + }; - // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap - angular.$$minErr = angular.$$minErr || minErr; + var determineTranslation = function (translationId, interpolateParams, interpolationId, defaultTranslationText, uses, sanitizeStrategy) { - return ensure(angular, 'module', function () { - /** @type {Object.} */ - var modules = {}; + var deferred = $q.defer(); - /** - * @ngdoc function - * @name angular.module - * @module ng - * @description - * - * The `angular.module` is a global place for creating, registering and retrieving AngularJS - * modules. - * All modules (AngularJS 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.=} 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 table = uses ? $translationTable[uses] : $translationTable, + Interpolator = (interpolationId) ? interpolatorHashMap[interpolationId] : defaultInterpolator; - var _info = {}; + // 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]; - var assertNotHasOwnProperty = function assertNotHasOwnProperty(name, context) { - if (name === 'hasOwnProperty') { - throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context); - } - }; + // If using link, rerun $translate with linked translationId and return it + if (translation.substr(0, 2) === '@:') { - assertNotHasOwnProperty(name, 'module'); - if (requires && modules.hasOwnProperty(name)) { - modules[name] = null; + $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); } - 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); + } 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); } - - /** @type {!Array.>} */ - var invokeQueue = []; - - /** @type {!Array.} */ - var configBlocks = []; - - /** @type {!Array.} */ - 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 AngularJS expression identifier - * @param {Function} filterFactory Factory function for creating new instance of filter. - * @description - * See {@link ng.$filterProvider#register $filterProvider.register()}. - * - *
- * **Note:** Filter names must be valid AngularJS {@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`). - *
- */ - 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|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), - * 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}) - * - * @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 configure services by injecting their - * {@link angular.Module#provider `providers`}, e.g. for adding routes to the - * {@link ngRoute.$routeProvider $routeProvider}. - * - * Note that you can only inject {@link angular.Module#provider `providers`} and - * {@link angular.Module#constant `constants`} into this function. - * - * 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); + } else { + if (defaultTranslationText) { + deferred.resolve(defaultTranslationText); + } else { + deferred.reject(applyNotFoundIndicators(translationId)); } + } + } + return deferred.promise; + }; - 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; - }; - } + var determineTranslationInstant = function (translationId, interpolateParams, interpolationId, uses, sanitizeStrategy) { - /** - * @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; - }; - } - }); - }; - }); - } + var result, table = uses ? $translationTable[uses] : $translationTable, + Interpolator = defaultInterpolator; - /* global shallowCopy: true */ + // if the interpolation id exists use custom interpolator + if (interpolatorHashMap && Object.prototype.hasOwnProperty.call(interpolatorHashMap, interpolationId)) { + Interpolator = interpolatorHashMap[interpolationId]; + } - /** - * 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 || []; + // 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]; - for (var i = 0, ii = src.length; i < ii; i++) { - dst[i] = src[i]; - } - } else if (isObject(src)) { - dst = dst || {}; + // 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); + } - for (var key in src) { - if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) { - dst[key] = src[key]; + // 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 dst || src; - } - - /* exported toDebugString */ + return result; + }; - function serializeObject(obj, maxDepth) { - var seen = []; + var clearNextLangAndPromise = function (key) { + if ($nextLang === key) { + $nextLang = undefined; + } + langPromises[key] = undefined; + }; - // 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)) { + var applyPostProcessing = function (translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy) { + var fn = postProcessFn; - if (seen.indexOf(val) >= 0) return '...'; + if (fn) { - seen.push(val); + if (typeof(fn) === 'string') { + // getting on-demand instance + fn = $injector.get(fn); + } + if (fn) { + return fn(translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy); + } } - 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, - ngRefDirective, - 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, - $$IntervalFactoryProvider, - $IntervalProvider, - $HttpProvider, - $HttpParamSerializerProvider, - $HttpParamSerializerJQLikeProvider, - $HttpBackendProvider, - $xhrFactoryProvider, - $jsonpCallbacksProvider, - $LocationProvider, - $LogProvider, - $$MapProvider, - $ParseProvider, - $RootScopeProvider, - $QProvider, - $$QProvider, - $$SanitizeUriProvider, - $SceProvider, - $SceDelegateProvider, - $SnifferProvider, - $$TaskTrackerFactoryProvider, - $TemplateCacheProvider, - $TemplateRequestProvider, - $$TestabilityProvider, - $TimeoutProvider, - $$RAFProvider, - $WindowProvider, - $$jqLiteProvider, - $$CookieReaderProvider - */ + return resolvedTranslation; + }; - /** - * @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.7.5', - major: 1, - minor: 7, - dot: 5, - codeName: 'anti-prettification' - }; - - 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, - 'callbacks': { $$counter: 0 }, - 'getTestability': getTestability, - 'reloadWithDebugInfo': reloadWithDebugInfo, - '$$minErr': minErr, - '$$csp': csp, - '$$encodeUriSegment': encodeUriSegment, - '$$encodeUriQuery': encodeUriQuery, - '$$lowercase': lowercase, - '$$stringify': stringify, - '$$uppercase': uppercase - }); + var loadTranslationsIfMissing = function (key) { + if (!$translationTable[key] && $loaderFactory && !langPromises[key]) { + langPromises[key] = loadAsync(key).then(function (translation) { + translations(translation.key, translation.table); + return translation; + }); + } + }; - angularModule = setupModuleLoader(window); + /** + * @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; + }; - 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, - ngRef: ngRefDirective, - 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, - $$intervalFactory: $$IntervalFactoryProvider, - $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, - $$taskTrackerFactory: $$TaskTrackerFactoryProvider, - $templateCache: $TemplateCacheProvider, - $templateRequest: $TemplateRequestProvider, - $$testability: $$TestabilityProvider, - $timeout: $TimeoutProvider, - $window: $WindowProvider, - $$rAF: $$RAFProvider, - $$jqLite: $$jqLiteProvider, - $$Map: $$MapProvider, - $$cookieReader: $$CookieReaderProvider - }); - }]).info({ angularVersion: '1.7.5' }); - } + /** + * @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; + }; - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * 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? * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + /** + * @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; + }; - /* global - JQLitePrototype: true, - BOOLEAN_ATTR: true, - ALIASED_ATTR: true - */ + /** + * @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; + } - ////////////////////////////////// - //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 AngularJS's built-in subset of jQuery, called "jQuery lite" or **jqLite**. - * - * jqLite is a tiny, API-compatible subset of jQuery that allows - * AngularJS 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. - * - *
**Note:** All element references in AngularJS 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.
- * - *
**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()`.
- * - * ## AngularJS'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/) - Contrary to jQuery, this doesn't clone elements - * so will not work correctly when invoked on a jqLite object containing more than one DOM node - * - [`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 - * AngularJS 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. - */ + /** + * @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; + } + } - 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]] || {}; - }; + /** + * @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; + }; - function jqNextId() { - return ++jqId; - } + /** + * @ngdoc function + * @name pascalprecht.translate.$translate#storage + * @methodOf pascalprecht.translate.$translate + * + * @description + * Returns registered storage. + * + * @return {object} Storage + */ + $translate.storage = function () { + return Storage; + }; - var DASH_LOWERCASE_REGEXP = /-([a-z])/g; - var MS_HACK_REGEXP = /^-ms-/; - var MOUSE_EVENT_MAP = { mouseleave: 'mouseout', mouseenter: 'mouseover' }; - var jqLiteMinErr = minErr('jqLite'); + /** + * @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; - /** - * 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-')); - } + /** + * @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; + } - function fnCamelCaseReplace(all, letter) { - return letter.toUpperCase(); - } + var deferred = $q.defer(); + deferred.promise.then(null, angular.noop); // AJS "Possibly unhandled rejection" - /** - * Converts kebab-case to camelCase. - * @param name Name to normalize - */ - function kebabToCamel(name) { - return name.replace(DASH_LOWERCASE_REGEXP, fnCamelCaseReplace); - } + $rootScope.$emit('$translateChangeStart', {language : key}); - 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; + // 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); + } - var wrapMap = { - 'option': [1, ''], + if (aliasedKey) { + key = aliasedKey; + } - 'thead': [1, '', '
'], - 'col': [2, '', '
'], - 'tr': [2, '', '
'], - 'td': [3, '', '
'], - '_default': [0, '', ''] - }; + // 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); + } - wrapMap.optgroup = wrapMap.option; - wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; - wrapMap.th = wrapMap.td; + return deferred.promise; + }; - function jqLiteIsTextNode(html) { - return !HTML_REGEXP.test(html); - } + /** + * @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(); + }; - 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; - } + /** + * @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(); + }; - function jqLiteHasData(node) { - for (var key in jqCache[node.ng339]) { - return true; - } - return false; - } + /** + * @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; + }; - function jqLiteBuildFragment(html, context) { - var tmp, - tag, - wrap, - fragment = context.createDocumentFragment(), - nodes = [], - i; + /** + * @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; + }; - 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>') + wrap[2]; + /** + * @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; + }; - // Descend through wrappers to the right content - i = wrap[0]; - while (i--) { - tmp = tmp.lastChild; + /** + * @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!'); } - nodes = concat(nodes, tmp.childNodes); + $rootScope.$emit('$translateRefreshStart', {language : langKey}); - tmp = fragment.firstChild; - tmp.textContent = ''; - } - - // Remove wrapper from fragment - fragment.textContent = ''; - fragment.innerHTML = ''; // Clear inner HTML - forEach(nodes, function (node) { - fragment.appendChild(node); - }); + var deferred = $q.defer(), updatedLanguages = {}; - return fragment; - } + //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; + } - function jqLiteParseHTML(html, context) { - context = context || window.document; - var parsed; + //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 (parsed = SINGLE_TAG_REGEXP.exec(html)) { - return [context.createElement(parsed[1])]; - } + 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); - if (parsed = jqLiteBuildFragment(html, context)) { - return parsed.childNodes; - } + } else if ($translationTable[langKey]) { + //just refresh the specified language cache + loadNewData(langKey).then(deferred.resolve, deferred.reject); - return []; - } + } else { + deferred.reject(); + } - function jqLiteWrapNode(node, wrapper) { - var parent = node.parentNode; + return deferred.promise; + }; - if (parent) { - parent.replaceChild(wrapper, node); - } + /** + * @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) { - wrapper.appendChild(node); - } + // 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; - // 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); - }; + // Detect undefined and null values to shorten the execution and prevent exceptions + if (translationId === null || angular.isUndefined(translationId)) { + return translationId; + } - ///////////////////////////////////////////// - function JQLite(element) { - if (element instanceof JQLite) { - return element; - } + // Check forceLanguage is present + if (forceLanguage) { + loadTranslationsIfMissing(forceLanguage); + } - var argIsString; + // 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; + } - 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'); + // We discarded unacceptable values. So we just need to verify if translationId is empty String + if (angular.isString(translationId) && translationId.length < 1) { + return translationId; } - return new JQLite(element); - } - if (argIsString) { - jqLiteAddNodes(this, jqLiteParseHTML(element)); - } else if (isFunction(element)) { - jqLiteReady(element); - } else { - jqLiteAddNodes(this, element); - } - } + // trim off any whitespace + if (translationId) { + translationId = trim.apply(translationId); + } - function jqLiteClone(element) { - return element.cloneNode(true); - } + 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; + } + } - function jqLiteDealoc(element, onlyDescendants) { - if (!onlyDescendants && jqLiteAcceptsData(element)) jqLite.cleanData([element]); + 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); - if (element.querySelectorAll) { - jqLite.cleanData(element.querySelectorAll('*')); - } - } + // 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); + } - function isEmptyObject(obj) { - var name; + if ($missingTranslationHandlerFactory && !pendingLoader && missingTranslationHandlerTranslation) { + result = missingTranslationHandlerTranslation; + } + } + } - for (name in obj) { - return false; - } - return true; - } + return result; + }; - function removeIfEmptyData(element) { - var expandoId = element.ng339; - var expandoStore = expandoId && jqCache[expandoId]; + /** + * @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; + }; - var events = expandoStore && expandoStore.events; - var data = expandoStore && expandoStore.data; + /** + * @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; + }; - if ((!data || isEmptyObject(data)) && (!events || isEmptyObject(events))) { - delete jqCache[expandoId]; - element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it - } - } + // internal purpose only + $translate.directivePriority = function () { + return directivePriority; + }; - function jqLiteOff(element, type, fn, unsupported) { - if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument'); + // internal purpose only + $translate.statefulFilter = function () { + return statefulFilter; + }; - var expandoStore = jqLiteExpandoStore(element); - var events = expandoStore && expandoStore.events; - var handle = expandoStore && expandoStore.handle; + /** + * @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; + }; - if (!handle) return; //no listeners registered + var $onReadyDeferred = $q.defer(); + $onReadyDeferred.promise.then(function () { + $isReady = true; + }); - if (!type) { - for (type in events) { - if (type !== '$destroy') { - element.removeEventListener(type, handle); - } - delete events[type]; + /** + * @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); } - } 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]); - } - }); - } - - removeIfEmptyData(element); - } - - function jqLiteRemoveData(element, name) { - var expandoId = element.ng339; - var expandoStore = expandoId && jqCache[expandoId]; - - if (expandoStore) { - if (name) { - delete expandoStore.data[name]; + if ($isReady) { + deferred.resolve(); } else { - expandoStore.data = {}; + $onReadyDeferred.promise.then(deferred.resolve); } + return deferred.promise; + }; - removeIfEmptyData(element); - } - } - - function jqLiteExpandoStore(element, createIfNecessary) { - var expandoId = element.ng339, - expandoStore = expandoId && jqCache[expandoId]; + /** + * @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; + }; - if (createIfNecessary && !expandoStore) { - element.ng339 = expandoId = jqNextId(); - expandoStore = jqCache[expandoId] = { events: {}, data: {}, handle: undefined }; - } + /** + * @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; + }; - return expandoStore; - } + // 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; + }); - function jqLiteData(element, key, value) { - if (jqLiteAcceptsData(element)) { - var prop; + if ($loaderFactory) { - var isSimpleSetter = isDefined(value); - var isSimpleGetter = !isSimpleSetter && key && !isObject(key); - var massGetter = !key; - var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter); - var data = expandoStore && expandoStore.data; + // 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()); + } + } - 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]; - } + // 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 (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()}); } - } - function jqLiteHasClass(element, selector) { - if (!element.getAttribute) return false; - return (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' ').indexOf(' ' + selector + ' ') > -1; - } + return $translate; + }]; +} - function jqLiteRemoveClass(element, cssClasses) { - if (cssClasses && element.setAttribute) { - var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' '); - var newClasses = existingClasses; +$translate.displayName = 'displayName'; - forEach(cssClasses.split(' '), function (cssClass) { - cssClass = trim(cssClass); - newClasses = newClasses.replace(' ' + cssClass + ' ', ' '); - }); +/** + * @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); - if (newClasses !== existingClasses) { - element.setAttribute('class', trim(newClasses)); - } - } - } +function $translateDefaultInterpolation ($interpolate, $translateSanitization) { - function jqLiteAddClass(element, cssClasses) { - if (cssClasses && element.setAttribute) { - var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' '); - var newClasses = existingClasses; + 'use strict'; - forEach(cssClasses.split(' '), function (cssClass) { - cssClass = trim(cssClass); - if (newClasses.indexOf(' ' + cssClass + ' ') === -1) { - newClasses += cssClass + ' '; - } - }); + var $translateInterpolator = {}, + $locale, + $identifier = 'default'; - if (newClasses !== existingClasses) { - element.setAttribute('class', trim(newClasses)); - } + /** + * @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 = ''; } - } - function jqLiteAddNodes(root, elements) { - // THIS CODE IS VERY HOT. Don't make changes without benchmarking. + return interpolatedText; + }; - if (elements) { + return $translateInterpolator; +} - // if a Node (the most common case) - if (elements.nodeType) { - root[root.length++] = elements; - } else { - var length = elements.length; +$translateDefaultInterpolation.displayName = '$translateDefaultInterpolation'; - // 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; - } - } - } - } +angular.module('pascalprecht.translate').constant('$STORAGE_KEY', 'NG_TRANSLATE_LANG_KEY'); - function jqLiteController(element, name) { - return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller'); - } +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 + + +
+ +

+        
TRANSLATION_ID
+

+        

+        
{{translationId}}
+

+        
WITH_VALUES
+

+        
WITH_VALUES
+

+        

 
-  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];
+      
+
+ + angular.module('ngView', ['pascalprecht.translate']) - while (element) { - for (var i = 0, ii = names.length; i < ii; i++) { - if (isDefined(value = jqLite.data(element, names[i]))) return value; - } + .config(function ($translateProvider) { - // 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; - } - } + $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'); - 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); - } + angular.module('ngView').controller('TranslateCtrl', function ($scope) { + $scope.translationId = 'TRANSLATION_ID'; - 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); - } - } + $scope.values = { + value: 78 + }; + }); + + + it('should translate', function () { + inject(function ($rootScope, $compile) { + $rootScope.translationId = 'TRANSLATION_ID'; - function jqLiteReady(fn) { - function trigger() { - window.document.removeEventListener('DOMContentLoaded', trigger); - window.removeEventListener('load', trigger); - fn(); - } + element = $compile('

')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('Hello there!'); - // 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. + element = $compile('

')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('Hello there!'); - // Works for modern browsers and IE9 - window.document.addEventListener('DOMContentLoaded', trigger); + element = $compile('

TRANSLATION_ID

')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('Hello there!'); - // Fallback to window.onload for others - window.addEventListener('load', trigger); - } - } + element = $compile('

{{translationId}}

')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('Hello there!'); + + element = $compile('

')($rootScope); + $rootScope.$digest(); + expect(element.attr('title')).toBe('Hello there!'); - ////////////////////////////////////////// - // Functions which are declared directly. - ////////////////////////////////////////// - var JQLitePrototype = JQLite.prototype = { - ready: jqLiteReady, - toString: function toString() { - var value = []; - forEach(this, function (e) { - value.push('' + e); + element = $compile('

')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('The interpolation key is camel cased: Hello'); + }); }); - return '[' + value.join(', ') + ']'; - }, +
+
+ */ +.directive('translate', translateDirective); +function translateDirective($translate, $interpolate, $compile, $parse, $rootScope) { - eq: function eq(index) { - return index >= 0 ? jqLite(this[index]) : jqLite(this[this.length + index]); - }, + 'use strict'; - length: 0, - push: push, - sort: [].sort, - splice: [].splice + /** + * @name trim + * @private + * + * @description + * trim polyfill + * + * @returns {string} The string stripped of whitespace from both ends + */ + var trim = function() { + return this.toString().replace(/^\s+|\s+$/g, ''); }; - ////////////////////////////////////////// - // 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' + /** + * @name lowercase + * @private + * + * @description + * Return the lowercase string only if the type is string + * + * @returns {string} The string all in lowercase + */ + var lowercase = function (string) { + return angular.isString(string) ? string.toLowerCase() : string; }; - 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]); - jqLiteOff(nodes[i]); - } - } - }, function (fn, name) { - JQLite[name] = fn; - }); + return { + restrict: 'AE', + scope: true, + priority: $translate.directivePriority(), + compile: function (tElement, tAttr) { - forEach({ - data: jqLiteData, - inheritedData: jqLiteInheritedData, + var translateValuesExist = (tAttr.translateValues) ? + tAttr.translateValues : undefined; - 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']); - }, + var translateInterpolation = (tAttr.translateInterpolation) ? + tAttr.translateInterpolation : undefined; - 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'); - }, + var translateSanitizeStrategyExist = (tAttr.translateSanitizeStrategy) ? + tAttr.translateSanitizeStrategy : undefined; - controller: jqLiteController, + var translateValueExist = tElement[0].outerHTML.match(/translate-value-+/i); - injector: function injector(element) { - return jqLiteInheritedData(element, '$injector'); - }, + var interpolateRegExp = '^(.*)(' + $interpolate.startSymbol() + '.*' + $interpolate.endSymbol() + ')(.*)', + watcherRegExp = '^(.*)' + $interpolate.startSymbol() + '(.*)' + $interpolate.endSymbol() + '(.*)'; - removeAttr: function removeAttr(element, name) { - element.removeAttribute(name); - }, + return function linkFn(scope, iElement, iAttr) { - hasClass: jqLiteHasClass, + scope.interpolateParams = {}; + scope.preText = ''; + scope.postText = ''; + scope.translateNamespace = getTranslateNamespace(scope); + var translationIds = {}; - css: function css(element, name, value) { - name = cssKebabToCamel(name); + var initInterpolationParams = function (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]; + } + } + } + }; - if (isDefined(value)) { - element.style[name] = value; - } else { - return element.style[name]; - } - }, + // 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 (translationId) { - 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; - } + // Remove any old watcher + if (angular.isFunction(observeElementTranslation._unwatchOld)) { + observeElementTranslation._unwatchOld(); + observeElementTranslation._unwatchOld = undefined; + } - var lowercasedName = lowercase(name); - var isBooleanAttr = BOOLEAN_ATTR[lowercasedName]; + 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(); + }; - if (isDefined(value)) { - // setter + var observeAttributeTranslation = function (translateAttr) { + iAttr.$observe(translateAttr, function (translationId) { + translationIds[translateAttr] = translationId; + updateTranslations(); + }); + }; - if (value === null || value === false && isBooleanAttr) { - element.removeAttribute(name); - } else { - element.setAttribute(name, isBooleanAttr ? lowercasedName : value); - } - } else { - // getter + // initial setup with values + initInterpolationParams(scope.interpolateParams, iAttr, tAttr); - ret = element.getAttribute(name); + var firstAttributeChangedEvent = true; + iAttr.$observe('translate', function (translationId) { + if (typeof translationId === 'undefined') { + // case of element "xyz" + observeElementTranslation(''); + } else { + // case of regular attribute + if (translationId !== '' || !firstAttributeChangedEvent) { + translationIds.translate = translationId; + updateTranslations(); + } + } + firstAttributeChangedEvent = false; + }); - if (isBooleanAttr && ret !== null) { - ret = lowercasedName; + for (var translateAttr in iAttr) { + if (iAttr.hasOwnProperty(translateAttr) && translateAttr.substr(0, 13) === 'translateAttr' && translateAttr.length > 13) { + observeAttributeTranslation(translateAttr); + } } - // 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; + iAttr.$observe('translateDefault', function (value) { + scope.defaultText = value; + updateTranslations(); + }); - function getText(element, value) { - if (isUndefined(value)) { - var nodeType = element.nodeType; - return nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT ? element.textContent : ''; + if (translateSanitizeStrategyExist) { + iAttr.$observe('translateSanitizeStrategy', function (value) { + scope.sanitizeStrategy = $parse(value)(scope.$parent); + updateTranslations(); + }); } - 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); + if (translateValuesExist) { + iAttr.$observe('translateValues', function (interpolateParams) { + if (interpolateParams) { + scope.$parent.$watch(function () { + angular.extend(scope.interpolateParams, $parse(interpolateParams)(scope.$parent)); + }); } }); - 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]); - } + if (translateValueExist) { + var observeValueAttribute = function (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); } } - // 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; + // Master update function + var updateTranslations = function () { + for (var key in translationIds) { + if (translationIds.hasOwnProperty(key) && translationIds[key] !== undefined) { + updateTranslation(key, translationIds[key], scope, scope.interpolateParams, scope.defaultText, scope.translateNamespace); + } + } + }; - if (isUndefined(event.immediatePropagationStopped)) { - var originalStopImmediatePropagation = event.stopImmediatePropagation; - event.stopImmediatePropagation = function () { - event.immediatePropagationStopped = true; + // Put translation processing function outside loop + var updateTranslation = function(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; + } - if (event.stopPropagation) { - event.stopPropagation(); + $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); } + }; - if (originalStopImmediatePropagation) { - originalStopImmediatePropagation.call(event); + var applyTranslation = function (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); } }; - } - event.isImmediatePropagationStopped = function () { - return event.immediatePropagationStopped === true; - }; + if (translateValuesExist || translateValueExist || iAttr.translateDefault) { + scope.$watch('interpolateParams', updateTranslations, true); + } - // Some events have special handlers that wrap the real handler - var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper; + // Replaced watcher on translateLanguage with event listener + scope.$on('translateLanguageChanged', updateTranslations); - // Copy event handlers in case event handlers array is modified during execution. - if (eventFnsLength > 1) { - eventFns = shallowCopy(eventFns); - } + // Ensures the text will be refreshed after the current language was changed + // w/ $translate.use(...) + var unbind = $rootScope.$on('$translateChangeSuccess', updateTranslations); - for (var i = 0; i < eventFnsLength; i++) { - if (!event.isImmediatePropagationStopped()) { - handlerWrapper(element, event, eventFns[i]); + // 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); + }; + } + }; +} - // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all - // events on `element` - eventHandler.elem = element; - return eventHandler; +/** + * Returns the scope's namespace. + * @private + * @param scope + * @returns {string} + */ +function getTranslateNamespace(scope) { + 'use strict'; + if (scope.translateNamespace) { + return scope.translateNamespace; } - - function defaultHandlerWrapper(element, event, handler) { - handler.call(element, event); + if (scope.$parent) { + return getTranslateNamespace(scope.$parent); } +} - 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); - } - } +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 + + +
- ////////////////////////////////////////// - // 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'); +
+
+ + angular.module('ngView', ['pascalprecht.translate']) - // Do not add event handlers to non-elements because they will not be cleaned up. - if (!jqLiteAcceptsData(element)) { - return; - } + .config(function ($translateProvider) { - var expandoStore = jqLiteExpandoStore(element, true); - var events = expandoStore.events; - var handle = expandoStore.handle; + $translateProvider.translations('en',{ + 'TRANSLATION_ID': 'Hello there!', + 'WITH_VALUES': 'The following value is dynamic: {{value}}', + }).preferredLanguage('en'); - 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; + angular.module('ngView').controller('TranslateCtrl', function ($scope) { + $scope.translationId = 'TRANSLATION_ID'; - var addHandler = function addHandler(type, specialHandlerWrapper, noEventListener) { - var eventFns = events[type]; + $scope.values = { + value: 78 + }; + }); + + + it('should translate', function () { + inject(function ($rootScope, $compile) { + $rootScope.translationId = 'TRANSLATION_ID'; + + element = $compile('')($rootScope); + $rootScope.$digest(); + expect(element.attr('placeholder)).toBe('Hello there!'); + expect(element.attr('title)).toBe('The following value is dynamic: 5'); + }); + }); + +
+ */ +.directive('translateAttr', translateAttrDirective); +function translateAttrDirective($translate, $rootScope) { - if (!eventFns) { - eventFns = events[type] = []; - eventFns.specialHandlerWrapper = specialHandlerWrapper; - if (type !== '$destroy' && !noEventListener) { - element.addEventListener(type, handle); + '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 () { + 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); + }); + }); - eventFns.push(fn); + // Removing unused attributes that were previously used + angular.forEach(previousAttributes, function (flag, attributeName) { + if (!translateAttr[attributeName]) { + element.removeAttr(attributeName); + delete previousAttributes[attributeName]; + } + }); }; - while (i--) { - type = types[i]; - if (MOUSE_EVENT_MAP[type]) { - addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper); - addHandler(type, undefined, true); - } else { - addHandler(type); - } + // 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); } - }, - off: jqLiteOff, + // Replaced watcher on translateLanguage with event listener + scope.$on('translateLanguageChanged', updateTranslations); - one: function one(element, type, fn) { - element = jqLite(element); + // Ensures the text will be refreshed after the current language was changed + // w/ $translate.use(...) + var unbind = $rootScope.$on('$translateChangeSuccess', updateTranslations); - //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); - }, + 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) { - 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); + 'use strict'; + + return { + compile : function (tElement) { + var applyCloak = function (element) { + element.addClass($translate.cloakClassName()); + }, + removeCloak = function (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 { - parent.replaceChild(node, element); + $translate.onReady(iRemoveCloak); } - index = node; - }); - }, + }; + } + }; +} - children: function children(element) { - var children = []; - forEach(element.childNodes, function (element) { - if (element.nodeType === NODE_TYPE_ELEMENT) { - children.push(element); - } - }); - return children; - }, +translateCloakDirective.displayName = 'translateCloakDirective'; - contents: function contents(element) { - return element.contentDocument || element.childNodes || []; - }, +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 is 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 + + +
- append: function append(element, node) { - var nodeType = element.nodeType; - if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return; +
+

.HEADERS.TITLE

+

.HEADERS.WELCOME

+
- node = new JQLite(node); +
+

.TITLE

+

.WELCOME

+
- for (var i = 0, ii = node.length; i < ii; i++) { - var child = node[i]; - element.appendChild(child); - } - }, +
+
+ + angular.module('ngView', ['pascalprecht.translate']) - 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); - }); - } - }, + .config(function ($translateProvider) { - wrap: function wrap(element, wrapNode) { - jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]); - }, + $translateProvider.translations('en',{ + 'TRANSLATION_ID': 'Hello there!', + 'CONTENT': { + 'HEADERS': { + TITLE: 'Title' + } + }, + 'CONTENT.HEADERS.WELCOME': 'Welcome' + }).preferredLanguage('en'); - remove: jqLiteRemove, + }); - detach: function detach(element) { - jqLiteRemove(element, true); - }, + +
+ */ +.directive('translateNamespace', translateNamespaceDirective); - after: function after(element, newElement) { - var index = element, - parent = element.parentNode; +function translateNamespaceDirective() { - if (parent) { - newElement = new JQLite(newElement); + 'use strict'; - for (var i = 0, ii = newElement.length; i < ii; i++) { - var node = newElement[i]; - parent.insertBefore(node, index.nextSibling); - index = node; + return { + restrict: 'A', + scope: true, + compile: function () { + return { + pre: function (scope, iElement, iAttrs) { + scope.translateNamespace = _getTranslateNamespace(scope); + + if (scope.translateNamespace && iAttrs.translateNamespace.charAt(0) === '.') { + scope.translateNamespace += iAttrs.translateNamespace; + } else { + scope.translateNamespace = iAttrs.translateNamespace; + } } - } - }, + }; + } + }; +} - addClass: jqLiteAddClass, - removeClass: jqLiteRemoveClass, +/** + * 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); + } +} - 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); - }); - } - }, +translateNamespaceDirective.displayName = 'translateNamespaceDirective'; - parent: function parent(element) { - var parent = element.parentNode; - return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null; - }, +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 + + +
- next: function next(element) { - return element.nextElementSibling; - }, +
+

HELLO

+
- find: function find(element, selector) { - if (element.getElementsByTagName) { - return element.getElementsByTagName(selector); - } else { - return []; - } - }, +
+

HELLO

+
- clone: jqLiteClone, +
+
+ + angular.module('ngView', ['pascalprecht.translate']) - triggerHandler: function triggerHandler(element, event, extraParameters) { + .config(function ($translateProvider) { - var dummyEvent, eventFnsCopy, handlerArgs; - var eventName = event.type || event; - var expandoStore = jqLiteExpandoStore(element); - var events = expandoStore && expandoStore.events; - var eventFns = events && events[eventName]; + $translateProvider + .translations('en',{ + 'HELLO': 'Hello world!' + }) + .translations('de',{ + 'HELLO': 'Hallo Welt!' + }) + .preferredLanguage('en'); - 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); - } + +
+ */ +.directive('translateLanguage', translateLanguageDirective); - // Copy event handlers in case event handlers array is modified during execution. - eventFnsCopy = shallowCopy(eventFns); - handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent]; +function translateLanguageDirective() { - forEach(eventFnsCopy, function (fn) { - if (!dummyEvent.isImmediatePropagationStopped()) { - fn.apply(element, handlerArgs); - } + 'use strict'; + + return { + restrict: 'A', + scope: true, + compile: function () { + return function linkFn(scope, iElement, iAttrs) { + + iAttrs.$observe('translateLanguage', function (newTranslateLanguage) { + scope.translateLanguage = newTranslateLanguage; }); - } + + scope.$watch('translateLanguage', function(){ + scope.$broadcast('translateLanguageChanged'); + }); + }; } - }, 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; - }; - }); +translateLanguageDirective.displayName = 'translateLanguageDirective'; - // 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); - } - }); - }; - } +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 + + +
- /** - * 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; +
{{ 'TRANSLATION_ID' | translate }}
+
{{ translationId | translate }}
+
{{ 'WITH_VALUES' | translate:'{value: 5}' }}
+
{{ 'WITH_VALUES' | translate:values }}
- if (key) { - if (typeof key === 'function') { - key = obj.$$hashKey(); - } - return key; - } +
+
+ + angular.module('ngView', ['pascalprecht.translate']) - 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; - } + .config(function ($translateProvider) { - return key; - } + $translateProvider.translations('en', { + 'TRANSLATION_ID': 'Hello there!', + 'WITH_VALUES': 'The following value is dynamic: {{value}}' + }); + $translateProvider.preferredLanguage('en'); - // 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) { - 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]; - } - }, - has: function has(key) { - key = this._transformKey(key); - var idx = this._idx(key); - return idx !== -1; - }, - 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; - } - }; + angular.module('ngView').controller('TranslateCtrl', function ($scope) { + $scope.translationId = 'TRANSLATION_ID'; - // 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; + $scope.values = { + value: 78 + }; + }); + +
+ */ +.filter('translate', translateFilterFactory); - var $$MapProvider = [/** @this */function () { - this.$get = [function () { - return NgMap; - }]; - }]; +function translateFilterFactory($parse, $translate) { - /** - * @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.} 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 AngularJS app - * from outside AngularJS. 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 = $('
{{content.label}}
'); - * $(document.body).append($div); - * - * angular.element(document).injector().invoke(function($compile) { - * var scope = angular.element($div).scope(); - * $compile($div)(scope); - * }); - * ``` - */ + 'use strict'; - /** - * @ngdoc module - * @name auto - * @installation - * @description - * - * Implicit module which gets automatically added to each {@link auto.$injector $injector}. - */ + var translateFilter = function (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); + } - 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'); + return $translate.instant(translationId, interpolateParams, interpolation, forceLanguage); + }; - function stringifyFn(fn) { - return Function.prototype.toString.call(fn); + if ($translate.statefulFilter()) { + translateFilter.$stateful = true; } - function extractArgs(fn) { - var fnText = stringifyFn(fn).replace(STRIP_COMMENTS, ''), - args = fnText.match(ARROW_ARG) || fnText.match(FN_ARGS); - return args; - } + return translateFilter; +} - 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'; - } +translateFilterFactory.displayName = 'translateFilterFactory'; - function annotate(fn, strictDi, name) { - var $inject, argDecl, last; +angular.module('pascalprecht.translate') - 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 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) { - /** - * @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. - */ + 'use strict'; - /** - * @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.** - */ + return $cacheFactory('translations'); +} - /** - * @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. - */ +$translationCache.displayName = '$translationCache'; +return 'pascalprecht.translate'; - /** - * @ngdoc method - * @name $injector#invoke - * - * @description - * Invoke the method and supply the method arguments from the `$injector`. - * - * @param {Function|Array.} 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. - */ +},{}],333:[function(require,module,exports){ +/** + * @license AngularJS v1.7.5 + * (c) 2010-2018 Google, Inc. http://angularjs.org + * License: MIT + */ +(function(window) {'use strict'; - /** - * @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`. - */ +/* exported + minErrConfig, + errorHandlingConfig, + isValidObjectMaxDepth +*/ - /** - * @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.} 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.} 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=} 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} - */ +var minErrConfig = { + objectMaxDepth: 5, + urlErrorParamsEnabled: true +}; - /** - * @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 AngularJS **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 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 + * + * * `urlErrorParamsEnabled` **{Boolean}** - Specifies wether the generated error url will + * contain the parameters of the thrown error. Disabling the parameters can be useful if the + * generated error url is very long. + * + * Default: true. When used without argument, it returns the current value. + */ +function errorHandlingConfig(config) { + if (isObject(config)) { + if (isDefined(config.objectMaxDepth)) { + minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN; + } + if (isDefined(config.urlErrorParamsEnabled) && isBoolean(config.urlErrorParamsEnabled)) { + minErrConfig.urlErrorParamsEnabled = config.urlErrorParamsEnabled; + } + } else { + return minErrConfig; + } +} - /** - * @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. - * - * It is possible to inject other providers into the provider function, - * but the injected provider must have been defined before the one that requires it. - * - * @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 }); - * })); - * }); - * ``` - */ +/** + * @private + * @param {Number} maxDepth + * @return {boolean} + */ +function isValidObjectMaxDepth(maxDepth) { + return isNumber(maxDepth) && maxDepth > 0; +} - /** - * @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.} $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.} 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(); - * }]); - * ``` - */ +/** + * @description + * + * This object provides a utility for producing rich Error messages within + * AngularJS. 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 + */ - /** - * @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 AngularJS {@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; - * }); - * ``` - */ +function minErr(module, ErrorConstructor) { + ErrorConstructor = ErrorConstructor || Error; - /** - * @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 AngularJS {@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; - * }); - * ``` - */ + var url = 'https://errors.angularjs.org/1.7.5/'; + var regex = url.replace('.', '\\.') + '[\\s\\S]*'; + var errRegExp = new RegExp(regex, 'g'); - /** - * @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.} 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; - * }]); - * ``` - */ + 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; - 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); - }); + // A minErr message has two parts: the message itself and the url that contains the + // encoded message. + // The message's parameters can contain other error messages which also include error urls. + // To prevent the messages from getting too long, we strip the error urls from the parameters. - instanceInjector.loadNewModules = function (mods) { - forEach(loadModules(mods), function (fn) { - if (fn) instanceInjector.invoke(fn); - }); - }; + message += template.replace(/\{\d+\}/g, function(match) { + var index = +match.slice(1, -1); - return instanceInjector; + if (index < templateArgs.length) { + return templateArgs[index].replace(errRegExp, ''); + } - //////////////////////////////////// - // $provider - //////////////////////////////////// + return match; + }); - function supportObject(delegate) { - return function (key, value) { - if (isObject(key)) { - forEach(key, reverseParams(delegate)); - } else { - return delegate(key, value); - } - }; - } + message += '\n' + url + (module ? module + '/' : '') + code; - 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); + if (minErrConfig.urlErrorParamsEnabled) { + for (i = 0, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') { + message += paramPrefix + 'p' + i + '=' + encodeURIComponent(templateArgs[i]); } - 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; - } - ); - } + return new ErrorConstructor(message); + }; +} - function factory(name, factoryFn, enforce) { - return provider(name, { - $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn - }); - } +/* 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, + 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, + addDateMinutes, + 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 +*/ - function service(name, constructor) { - return factory(name, ['$injector', function ($injector) { - return $injector.instantiate(constructor); - }]); - } +//////////////////////////////////// - function value(name, val) { - return factory(name, valueFn(val), false); - } +/** + * @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. + * + */ - function constant(name, value) { - assertNotHasOwnProperty(name, 'constant'); - providerCache[name] = value; - instanceCache[name] = value; - } +var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/; - function decorator(serviceName, decorFn) { - var origProvider = providerInjector.get(serviceName + providerSuffix), - orig$get = origProvider.$get; +// 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'; - 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]); - } - } +var hasOwnProperty = Object.prototype.hasOwnProperty; - 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; - } +/** + * @private + * + * @description Converts the specified string to lowercase. + * @param {string} string String to be converted to lowercase. + * @returns {string} Lowercased string. + */ +var lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;}; - //////////////////////////////////// - // internal Injector - //////////////////////////////////// +/** + * @private + * + * @description Converts the specified string to uppercase. + * @param {string} string String to be converted to uppercase. + * @returns {string} Uppercased string. + */ +var uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;}; + + +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; - function createInternalInjector(cache, factory) { +// 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; - 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); +/** + * @private + * @param {*} obj + * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments, + * String ...) + */ +function isArrayLike(obj) { - 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)); + // `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 || 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); } - 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; + } else if (isArray(obj) || isArrayLike(obj)) { + var isPrimitive = typeof obj !== 'object'; + for (key = 0, length = obj.length; key < length; key++) { + if (isPrimitive || key in obj) { + iterator.call(context, obj[key], key, obj); } - var result = func.$$ngIsClass; - if (!isBoolean(result)) { - result = func.$$ngIsClass = /^class\b/.test(stringifyFn(func)); + } + } 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); } - return result; } - - function invoke(fn, self, locals, serviceName) { - if (typeof locals === 'string') { - serviceName = locals; - locals = null; + } 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; +} - var args = injectionArgs(fn, locals, serviceName); - if (isArray(fn)) { - fn = fn[fn.length - 1]; - } +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; +} - 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))(); - } +/** + * 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);}; +} - return { - invoke: invoke, - instantiate: instantiate, - get: getService, - annotate: createInjector.$$annotate, - has: function has(name) { - return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name); +/** + * 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; + } } } - createInjector.$$annotate = annotate; + setHashKey(dst, h); + return dst; +} - /** - * @ngdoc provider - * @name $anchorScrollProvider - * @this - * - * @description - * Use `$anchorScrollProvider` to disable automatic scrolling whenever - * {@link ng.$location#hash $location.hash()} changes. - */ - function $AnchorScrollProvider() { +/** + * @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); +} - 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.
- * 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 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); +} - /** - * @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.

- * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return - * a number representing the offset (in pixels).

- * - **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.
- * **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. - * - *
- *
- * In order for `yOffset` to work properly, scrolling should take place on the document's root and - * not some child element. - *
- * - * @example - - -
- Go to bottom - You're at the bottom! -
-
- - 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(); - }; - }]); - - - #scrollArea { - height: 280px; - overflow: auto; - } - #bottom { - display: block; - margin-top: 2000px; - } - -
- * - *
- * 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 - - - -
- Anchor {{x}} of 5 -
-
- - 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(); - } - }; - } - ]); - - - 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; - } - -
- */ - 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; - } +function toInt(str) { + return parseInt(str, 10); +} - return offset; - } +var isNumberNaN = Number.isNaN || function isNumberNaN(num) { + // eslint-disable-next-line no-self-compare + return num !== num; +}; - function scrollTo(elem) { - if (elem) { - elem.scrollIntoView(); - var offset = getYOffset(); +function inherit(parent, extra) { + return extend(Object.create(parent), extra); +} - 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); - } - } +/** + * @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 = []; - 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); +/** + * @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); + }; - // element with given id - else if (elm = document.getElementById(hash)) scrollTo(elm); + // E.g. + function getResult(fn, input) { + return (fn || angular.identity)(input); + }; - // first anchor with given name :-D - else if (elm = getFirstAnchor(document.getElementsByName(hash))) scrollTo(elm); + 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 = []; - // 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; +function valueFn(value) {return function valueRef() {return value;};} - jqLiteDocumentLoaded(function () { - $rootScope.$evalAsync(scroll); - }); - }); - } +function hasCustomToString(obj) { + return isFunction(obj.toString) && obj.toString !== toString; +} - return scroll; - }]; - } - var $animateMinErr = minErr('$animate'); - var ELEMENT_NODE = 1; - var NG_ANIMATE_CLASSNAME = 'ng-animate'; +/** + * @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';} - 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; - } - } - } +/** + * @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';} - 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; - } +/** + * @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 === 'object'; +} - // 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; - }; +/** + * 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 === 'object' && !getPrototypeOf(value); +} - // 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(); - } +/** + * @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';} - 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); - } +/** + * @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';} - 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; - } - }; +/** + * @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]'; +} - 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; - } +/** + * @ngdoc function + * @name angular.isArray + * @module ng + * @kind function + * + * @description + * Determines if a reference is an `Array`. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is an `Array`. + */ +function isArray(arr) { + return Array.isArray(arr) || arr instanceof Array; +} - function addRemoveClassesPostDigest(element, add, remove) { - var data = postDigestQueue.get(element) || {}; +/** + * @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; + } +} - var classesAdded = updateData(data, add, true); - var classesRemoved = updateData(data, remove, false); +/** + * @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';} - if (classesAdded || classesRemoved) { - postDigestQueue.set(element, data); - postDigestElements.push(element); +/** + * 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]'; +} - 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; +/** + * 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; +} - 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); - } +function isScope(obj) { + return obj && obj.$evalAsync && obj.$watch; +} - 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. - * - *
- * **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. - *
- * - * **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; - } +function isFile(obj) { + return toString.call(obj) === '[object File]'; +} - 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; - }; +function isFormData(obj) { + return toString.call(obj) === '[object FormData]'; +} - 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 +function isBlob(obj) { + return toString.call(obj) === '[object Blob]'; +} - /** - * - * @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 - * } - * ); - * ``` - * - *
- * **Note**: Generally, the events that are fired correspond 1:1 to `$animate` method names, - * e.g. {@link ng.$animate#addClass addClass()} will fire `addClass`, and {@link ng.ngClass} - * will fire `addClass` if classes are added, and `removeClass` if classes are removed. - * However, there are two exceptions: - * - *
    - *
  • if both an {@link ng.$animate#addClass addClass()} and a - * {@link ng.$animate#removeClass removeClass()} action are performed during the same - * animation, the event fired will be `setClass`. This is true even for `ngClass`.
  • - *
  • an {@link ng.$animate#animate animate()} call that adds and removes classes will fire - * the `setClass` event, but if it either removes or adds classes, - * it will fire `animate` instead.
  • - *
- * - *
- * - * @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). - * * `data` - an object with these properties: - * * addClass - `{string|null}` - space-separated CSS classes to add to the element - * * removeClass - `{string|null}` - space-separated CSS classes to remove from the element - * * from - `{Object|null}` - CSS properties & values at the beginning of the animation - * * to - `{Object|null}` - CSS properties & values at the end of the animation - * - * Note that the callback does not trigger a scope digest. Wrap your call into a - * {@link $rootScope.Scope#$apply scope.$apply} to propagate changes to the scope. - */ - 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, +function isBoolean(value) { + return typeof value === 'boolean'; +} - /** - * @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 AngularJS 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 `` 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, +function isPromiseLike(obj) { + return obj && isFunction(obj.then); +} - /** - * @ngdoc method - * @name $animate#cancel - * @kind function - * @description Cancels the provided animation and applies the end state of the animation. - * Note that this does not cancel the underlying operation, e.g. the setting of classes or - * adding the element to the DOM. - * - * @param {animationRunner} animationRunner An animation runner returned by an $animate function. - * - * @example - - - angular.module('animationExample', ['ngAnimate']).component('cancelExample', { - templateUrl: 'template.html', - controller: function($element, $animate) { - this.runner = null; - this.addClass = function() { - this.runner = $animate.addClass($element.find('div'), 'red'); - var ctrl = this; - this.runner.finally(function() { - ctrl.runner = null; - }); - }; - this.removeClass = function() { - this.runner = $animate.removeClass($element.find('div'), 'red'); - var ctrl = this; - this.runner.finally(function() { - ctrl.runner = null; - }); - }; - this.cancel = function() { - $animate.cancel(this.runner); - }; - } - }); - - -

- - -
- -
-

CSS-Animated Text
-

-
- - - - - .red-add, .red-remove { - transition: all 4s cubic-bezier(0.250, 0.460, 0.450, 0.940); - } - .red, - .red-add.red-add-active { - color: #FF0000; - font-size: 40px; - } - .red-remove.red-remove-active { - font-size: 10px; - color: black; - } - -
- */ - cancel: function cancel(runner) { - if (runner.cancel) { - runner.cancel(); - } - }, - /** - * - * @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 {Runner} the animation runner - */ - 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)); - }, +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)); +} - /** - * - * @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 {Runner} the animation runner - */ - 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)); - }, +function isArrayBuffer(obj) { + return toString.call(obj) === '[object ArrayBuffer]'; +} - /** - * @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 {Runner} the animation runner - */ - 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: - * - * - **removeClass** - `{string}` - space-separated CSS classes to remove from element - * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to` - * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` - * - * @return {Runner} animationRunner the animation runner - */ - addClass: function addClass(element, className, options) { - options = prepareAnimateOptions(options); - options.addClass = mergeClasses(options.addclass, className); - return $$animateQueue.push(element, 'addClass', options); - }, +var trim = function(value) { + return isString(value) ? value.trim() : value; +}; - /** - * @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` - * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` - * - * @return {Runner} the animation runner - */ - removeClass: function removeClass(element, className, options) { - options = prepareAnimateOptions(options); - options.removeClass = mergeClasses(options.removeClass, className); - return $$animateQueue.push(element, 'removeClass', options); - }, +// 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(s) { + return s + .replace(/([-()[\]{}+?*.$^|,:# 1) return; - $$rAF(function () { - for (var i = 0; i < waitQueue.length; i++) { - waitQueue[i](); - } - waitQueue = []; - }); - } +function nodeName_(element) { + return lowercase(element.nodeName || (element[0] && element[0].nodeName)); +} - return function () { - var passed = false; - waitForTick(function () { - passed = true; - }); - return function (callback) { - if (passed) { - callback(); - } else { - waitForTick(callback); - } - }; - }; - }]; - }; +function includes(array, obj) { + return Array.prototype.indexOf.call(array, obj) !== -1; +} - var $$AnimateRunnerFactoryProvider = /** @this */function $$AnimateRunnerFactoryProvider() { - this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$$isDocumentHidden', '$timeout', function ($q, $sniffer, $$animateAsyncRun, $$isDocumentHidden, $timeout) { +function arrayRemove(array, value) { + var index = array.indexOf(value); + if (index >= 0) { + array.splice(index, 1); + } + return index; +} - var INITIAL_STATE = 0; - var DONE_PENDING_STATE = 1; - var DONE_COMPLETE_STATE = 2; +/** + * @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. + * + *
+ * + *
+ * Only enumerable properties are taken into account. Non-enumerable properties (both on `source` + * and on `destination`) will be ignored. + *
+ * + * @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 + + +
+
+
+
+ Gender: +
+ + +
+
form = {{user | json}}
+
leader = {{leader | json}}
+
+
+ + // Module: copyExample + angular. + module('copyExample', []). + controller('ExampleController', ['$scope', function($scope) { + $scope.leader = {}; - AnimateRunner.chain = function (chain, callback) { - var index = 0; + $scope.reset = function() { + // Example with 1 argument + $scope.user = angular.copy($scope.leader); + }; - next(); - function next() { - if (index === chain.length) { - callback(true); - return; - } + $scope.update = function(user) { + // Example with 2 arguments + angular.copy(user, $scope.leader); + }; - chain[index](function (response) { - if (response === false) { - callback(false); - return; - } - index++; - next(); - }); - } - }; + $scope.reset(); + }]); + +
+ */ +function copy(source, destination, maxDepth) { + var stackSource = []; + var stackDest = []; + maxDepth = isValidObjectMaxDepth(maxDepth) ? maxDepth : NaN; - AnimateRunner.all = function (runners, callback) { - var count = 0; - var status = true; - forEach(runners, function (runner) { - runner.done(onProgress); - }); + 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.'); + } - function onProgress(response) { - status = status && response; - if (++count === runners.length) { - callback(status); - } + // Empty the destination object + if (isArray(destination)) { + destination.length = 0; + } else { + forEach(destination, function(value, key) { + if (key !== '$$hashKey') { + delete destination[key]; } - }; + }); + } - function AnimateRunner(host) { - this.setHost(host); + stackSource.push(source); + stackDest.push(destination); + return copyRecurse(source, destination, maxDepth); + } - var rafTick = $$animateAsyncRun(); - var timeoutTick = function timeoutTick(fn) { - $timeout(fn, 0, false); - }; + return copyElement(source, maxDepth); - this._doneCallbacks = []; - this._tick = function (fn) { - if ($$isDocumentHidden()) { - timeoutTick(fn); - } else { - rafTick(fn); - } - }; - this._state = 0; + 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; + } - AnimateRunner.prototype = { - setHost: function setHost(host) { - this.host = host || {}; - }, + function copyElement(source, maxDepth) { + // Simple values + if (!isObject(source)) { + return source; + } - done: function done(fn) { - if (this._state === DONE_COMPLETE_STATE) { - fn(); - } else { - this._doneCallbacks.push(fn); - } - }, + // Already copied values + var index = stackSource.indexOf(source); + if (index !== -1) { + return stackDest[index]; + } - progress: noop, + if (isWindow(source) || isScope(source)) { + throw ngMinErr('cpws', + 'Can\'t copy! Making copies of Window or Scope instances is not supported.'); + } - 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; - }, + var needsRecurse = false; + var destination = copyType(source); - then: function then(resolveHandler, rejectHandler) { - return this.getPromise().then(resolveHandler, rejectHandler); - }, + if (destination === undefined) { + destination = isArray(source) ? [] : Object.create(getPrototypeOf(source)); + needsRecurse = true; + } - 'catch': function _catch(handler) { - return this.getPromise()['catch'](handler); - }, + stackSource.push(source); + stackDest.push(destination); - 'finally': function _finally(handler) { - return this.getPromise()['finally'](handler); - }, + return needsRecurse + ? copyRecurse(source, destination, maxDepth) + : destination; + } - pause: function pause() { - if (this.host.pause) { - this.host.pause(); - } - }, + 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); - resume: function resume() { - if (this.host.resume) { - this.host.resume(); - } - }, + 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); - end: function end() { - if (this.host.end) { - this.host.end(); - } - this._resolve(true); - }, + case '[object Boolean]': + case '[object Number]': + case '[object String]': + case '[object Date]': + return new source.constructor(source.valueOf()); - cancel: function cancel() { - if (this.host.cancel) { - this.host.cancel(); - } - this._resolve(false); - }, + case '[object RegExp]': + var re = new RegExp(source.source, source.toString().match(/[^/]*$/)[0]); + re.lastIndex = source.lastIndex; + return re; - complete: function complete(response) { - var self = this; - if (self._state === INITIAL_STATE) { - self._state = DONE_PENDING_STATE; - self._tick(function () { - self._resolve(response); - }); - } - }, + case '[object Blob]': + return new source.constructor([source], {type: source.type}); + } - _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; - } - } - }; + if (isFunction(source.cloneNode)) { + return source.cloneNode(true); + } + } +} - return AnimateRunner; - }]; - }; - /* exported $CoreAnimateCssProvider */ +// eslint-disable-next-line no-self-compare +function simpleCompare(a, b) { return a === b || (a !== a && b !== b); } - /** - * @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; - } +/** + * @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 + + +
+
+

User 1

+ Name: + Age: - var closed, - runner = new $$AnimateRunner(); - return { - start: run, - end: run - }; +

User 2

+ Name: + Age: - 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; - } +
+
+ +
+ User 1:
{{user1 | json}}
+ User 2:
{{user2 | json}}
+ Equal:
{{result}}
+
+
+
+ + angular.module('equalsExample', []).controller('ExampleController', ['$scope', function($scope) { + $scope.user1 = {}; + $scope.user2 = {}; + $scope.compare = function() { + $scope.result = angular.equals($scope.user1, $scope.user2); + }; + }]); + +
+ */ +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, t2 = 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() { + 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 + }; + } + } - /* global getHash: true, stripHash: false */ + return csp.rules; - function getHash(url) { - var index = url.indexOf('#'); - return index === -1 ? '' : url.substr(index); + function noUnsafeEval() { + try { + // eslint-disable-next-line no-new, no-new-func + new Function(''); + return false; + } catch (e) { + return true; + } } +}; - function trimEmptyHash(url) { - return url.replace(/#$/, ''); +/** + * @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 AngularJS 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 + + + ... + ... + + ``` + * @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 + + + ... + ... + + ``` + */ +var jq = function() { + 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; + } } - /** - * ! 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, $$taskTrackerFactory) { - var self = this, - location = window.location, - history = window.history, - setTimeout = window.setTimeout, - clearTimeout = window.clearTimeout, - pendingDeferIds = {}, - taskTracker = $$taskTrackerFactory($log); - - self.isMock = false; - - ////////////////////////////////////////////////////////////// - // Task-tracking API - ////////////////////////////////////////////////////////////// - - // TODO(vojta): remove this temporary api - self.$$completeOutstandingRequest = taskTracker.completeTask; - self.$$incOutstandingRequestCount = taskTracker.incTaskCount; - - // TODO(vojta): prefix this method with $$ ? - self.notifyWhenNoOutstandingRequests = taskTracker.notifyWhenNoPendingTasks; - - ////////////////////////////////////////////////////////////// - // 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). - } - }; + return (jq.name_ = name); +}; - cacheState(); +function concat(array1, array2, index) { + return array1.concat(slice.call(array2, index)); +} - /** - * @name $browser#url - * - * @description - * GETTER: - * Without any argument, this method just returns current value of `location.href` (with a - * trailing `#` stripped of if the hash is empty). - * - * 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 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; - } +function sliceArgs(args, startIndex) { + return slice.call(args, startIndex || 0); +} - // 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(); +/** + * @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 AngularJS 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('
').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.} + */ +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 { - 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; + obj[key] = [obj[key],val]; } - 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). - return trimEmptyHash(pendingLocation || location.href); } - }; + } + }); + return obj; +} - /** - * @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; - }; +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 urlChangeListeners = [], - urlChangeInit = false; + var link = document.createElement('a'); + link.href = src.value; - function cacheStateAndFireUrlChange() { - pendingLocation = null; - fireStateOrUrlChange(); + 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 `` or `` 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. + * + + +
+ I can add: {{a}} + {{b}} = {{ a+b }} +
+
+ + angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) { + $scope.a = 1; + $scope.b = 2; + }); + +
+ * + * @example + * + * ### With `ngStrictDi` + * + * Using `ngStrictDi`, you would see something like this: + * + + +
+
+ I can add: {{a}} + {{b}} = {{ a+b }} + +

This renders because the controller does not fail to + instantiate, by using explicit annotation style (see + script.js for details) +

+
+ +
+ Name:
+ Hello, {{name}}! + +

This renders because the controller does not fail to + instantiate, by using explicit annotation style + (see script.js for details) +

+
+ +
+ I can add: {{a}} + {{b}} = {{ a+b }} + +

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. +

+
+
+
+ + 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']; + + + 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; + } + +
+ */ +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'; - // 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; + if (!appElement && element.hasAttribute && element.hasAttribute(name)) { + appElement = element; + module = element.getAttribute(name); + } + }); + forEach(ngAttrPrefixes, function(prefix) { + var name = prefix + 'app'; + var candidate; - // Prevent callbacks fo fire twice if both hashchange & popstate were fired. - if (equals(cachedState, lastCachedState)) { - cachedState = lastCachedState; + if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\:') + ']'))) { + appElement = candidate; + module = candidate.getAttribute(name); + } + }); + if (appElement) { + if (!isAutoBootstrapAllowed) { + try { + window.console.error('AngularJS: disabling automatic bootstrap. + * + * + * + * ``` + * + * @param {DOMElement} element DOM element which is the root of AngularJS application. + * @param {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() { + 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(//,'>')); + } + + 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); + }]); } - function fireStateOrUrlChange() { - var prevLastHistoryState = lastHistoryState; - cacheState(); + 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 (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { - return; + 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 AngularJS on the given + * element. + * @param {DOMElement} element DOM element which is the root of AngularJS 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. + // AngularJS 1.2+ requires jQuery 1.7+ for on()/off() support. + // AngularJS 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 + }); + } else { + jqLite = JQLite; + } + + // All nodes removed from the DOM via various jqLite/jQuery APIs like .remove() + // are passed through jqLite/jQuery.cleanData. Monkey-patch this method to fire + // the $destroy event on all removed nodes. + originalCleanData = jqLite.cleanData; + jqLite.cleanData = function(elems) { + var events; + for (var i = 0, elem; (elem = elems[i]) != null; i++) { + events = (jqLite._data(elem) || {}).events; + if (events && events.$destroy) { + jqLite(elem).triggerHandler('$destroy'); } + } + originalCleanData(elems); + }; - lastBrowserUrl = self.url(); - lastHistoryState = cachedState; - forEach(urlChangeListeners, function (listener) { - listener(self.url(), cachedState); - }); + 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 === 'object' ? arg.constructor.name || 'Object' : 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; +} - /** - * @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 AngularJS: - * - 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 AngularJS 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); +/** + * 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); +} - urlChangeInit = true; +function stringify(value) { + if (value == null) { // null || undefined + return ''; + } + switch (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); } + } - urlChangeListeners.push(callback); - return callback; - }; + return value; +} - /** - * @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); - }; +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; - /** - * Checks whether the url has changed outside of AngularJS. - * 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; +/** + * @ngdoc type + * @name angular.Module + * @module ng + * @description + * + * Interface for configuring AngularJS {@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; - ////////////////////////////////////////////////////////////// - // Misc API - ////////////////////////////////////////////////////////////// + return ensure(angular, 'module', function() { + /** @type {Object.} */ + var modules = {}; /** - * @name $browser#baseHref - * + * @ngdoc function + * @name angular.module + * @module ng * @description - * Returns current - * (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] Number of milliseconds to defer the function execution. - * @param {string=} [taskType=DEFAULT_TASK_TYPE] The type of task that is deferred. - * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`. + * The `angular.module` is a global place for creating, registering and retrieving AngularJS + * modules. + * All modules (AngularJS core or 3rd party) that should be available to an application must be + * registered using this mechanism. * - * @description - * Executes a fn asynchronously via `setTimeout(fn, delay)`. + * 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('!'); + * }]); + * ``` * - * 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()`. + * 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.=} 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. */ - self.defer = function (fn, delay, taskType) { - var timeoutId; + return function module(name, requires, configFn) { - delay = delay || 0; - taskType = taskType || taskTracker.DEFAULT_TASK_TYPE; + var info = {}; - taskTracker.incTaskCount(taskType); - timeoutId = setTimeout(function () { - delete pendingDeferIds[timeoutId]; - taskTracker.completeTask(fn, taskType); - }, delay); - pendingDeferIds[timeoutId] = taskType; - - return timeoutId; - }; + var assertNotHasOwnProperty = function(name, context) { + if (name === 'hasOwnProperty') { + throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context); + } + }; - /** - * @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.hasOwnProperty(deferId)) { - var taskType = pendingDeferIds[deferId]; - delete pendingDeferIds[deferId]; - clearTimeout(deferId); - taskTracker.completeTask(noop, taskType); - return true; + assertNotHasOwnProperty(name, 'module'); + if (requires && modules.hasOwnProperty(name)) { + modules[name] = null; } - return false; - }; - } - - /** @this */ - function $BrowserProvider() { - this.$get = ['$window', '$log', '$sniffer', '$document', '$$taskTrackerFactory', function ($window, $log, $sniffer, $document, $$taskTrackerFactory) { - return new Browser($window, $document, $log, $sniffer, $$taskTrackerFactory); - }]; - } + 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); + } - /** - * @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 - - -
- - - - -

Cached Values

-
- - : - -
- -

Cache Info

-
- - : - -
-
-
- - 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); - }; - }]); - - - p { - margin: 10px 0 3px; - } - -
- */ - function $CacheFactoryProvider() { + /** @type {!Array.>} */ + var invokeQueue = []; - this.$get = function () { - var caches = {}; + /** @type {!Array.} */ + var configBlocks = []; - function cacheFactory(cacheId, options) { - if (cacheId in caches) { - throw minErr('$cacheFactory')('iid', 'CacheId \'{0}\' is already taken!', cacheId); - } + /** @type {!Array.} */ + var runBlocks = []; - var size = 0, - stats = extend({}, options, { id: cacheId }), - data = createMap(), - capacity = options && options.capacity || Number.MAX_VALUE, - lruHash = createMap(), - freshEnd = null, - staleEnd = null; + var config = invokeLater('$injector', 'invoke', 'push', configBlocks); - /** - * @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] = { + /** @type {angular.Module} */ + var moduleInstance = { + // Private state + _invokeQueue: invokeQueue, + _configBlocks: configBlocks, + _runBlocks: runBlocks, /** * @ngdoc method - * @name $cacheFactory.Cache#put - * @kind function + * @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 - * 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. + * 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' }); + * ``` * - * It will not insert undefined values into the cache. + * The version could then be read back out by accessing the module elsewhere: * - * @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. + * ``` + * 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; + * ``` */ - 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); + info: function(value) { + if (isDefined(value)) { + if (!isObject(value)) throw ngMinErr('aobj', 'Argument \'{0}\' must be an object', 'value'); + info = value; + return this; } - - return value; + return info; }, /** - * @ngdoc method - * @name $cacheFactory.Cache#get - * @kind function + * @ngdoc property + * @name angular.Module#requires + * @module ng * * @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. + * Holds the list of modules which the injector will load before the current module is + * loaded. */ - get: function get(key) { - if (capacity < Number.MAX_VALUE) { - var lruEntry = lruHash[key]; - - if (!lruEntry) return; - - refresh(lruEntry); - } - - return data[key]; - }, + requires: requires, /** - * @ngdoc method - * @name $cacheFactory.Cache#remove - * @kind function + * @ngdoc property + * @name angular.Module#name + * @module ng * * @description - * Removes an entry from the {@link $cacheFactory.Cache Cache} object. - * - * @param {string} key the key of the entry to be removed + * Name of the module. */ - remove: function remove(key) { - if (capacity < Number.MAX_VALUE) { - var lruEntry = lruHash[key]; - - if (!lruEntry) return; + name: name, - 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 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 $cacheFactory.Cache#removeAll - * @kind function - * + * @name angular.Module#factory + * @module ng + * @param {string} name service name + * @param {Function} providerFunction Function for creating new instance of the service. * @description - * Clears the cache object of any entries. + * See {@link auto.$provide#factory $provide.factory()}. */ - removeAll: function removeAll() { - data = createMap(); - size = 0; - lruHash = createMap(); - freshEnd = staleEnd = null; - }, + factory: invokeLaterAndSetModuleName('$provide', 'factory'), /** * @ngdoc method - * @name $cacheFactory.Cache#destroy - * @kind function - * + * @name angular.Module#service + * @module ng + * @param {string} name service name + * @param {Function} constructor A constructor function that will be instantiated. * @description - * Destroys the {@link $cacheFactory.Cache Cache} object entirely, - * removing it from the {@link $cacheFactory $cacheFactory} set. + * See {@link auto.$provide#service $provide.service()}. */ - destroy: function destroy() { - data = null; - stats = null; - lruHash = null; - delete caches[cacheId]; - }, + service: invokeLaterAndSetModuleName('$provide', 'service'), /** * @ngdoc method - * @name $cacheFactory.Cache#info - * @kind function - * + * @name angular.Module#value + * @module ng + * @param {string} name service name + * @param {*} object Service instance object. * @description - * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}. - * - * @returns {object} an object with the following properties: - *
    - *
  • **id**: the id of the cache instance
  • - *
  • **size**: the number of entries kept in the cache instance
  • - *
  • **...**: any additional properties from the options object when creating the - * cache.
  • - *
+ * See {@link auto.$provide#value $provide.value()}. */ - info: function info() { - return extend({}, stats, { size: size }); - } - }; + value: invokeLater('$provide', 'value'), - /** - * 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; - } + /** + * @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'), - link(entry.n, entry.p); - link(entry, freshEnd); - freshEnd = entry; - freshEnd.n = null; - } + /** + * @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 AngularJS expression identifier + * @param {Function} filterFactory Factory function for creating new instance of filter. + * @description + * See {@link ng.$filterProvider#register $filterProvider.register()}. + * + *
+ * **Note:** Filter names must be valid AngularJS {@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`). + *
+ */ + 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|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), + * 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}) + * + * @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 configure services by injecting their + * {@link angular.Module#provider `providers`}, e.g. for adding routes to the + * {@link ngRoute.$routeProvider $routeProvider}. + * + * Note that you can only inject {@link angular.Module#provider `providers`} and + * {@link angular.Module#constant `constants`} into this function. + * + * 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(block) { + runBlocks.push(block); + return this; + } + }; + + if (configFn) { + config(configFn); } + return moduleInstance; + /** - * bidirectionally links two entries of the LRU linked list + * @param {string} provider + * @param {string} method + * @param {String=} insertMethod + * @returns {angular.Module} */ - 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 - } + 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]; } + } + } - /** - * @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; - }; + 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, + ngRefDirective, + 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, + $$IntervalFactoryProvider, + $IntervalProvider, + $HttpProvider, + $HttpParamSerializerProvider, + $HttpParamSerializerJQLikeProvider, + $HttpBackendProvider, + $xhrFactoryProvider, + $jsonpCallbacksProvider, + $LocationProvider, + $LogProvider, + $$MapProvider, + $ParseProvider, + $RootScopeProvider, + $QProvider, + $$QProvider, + $$SanitizeUriProvider, + $SceProvider, + $SceDelegateProvider, + $SnifferProvider, + $$TaskTrackerFactoryProvider, + $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.7.5', + major: 1, + minor: 7, + dot: 5, + codeName: 'anti-prettification' +}; + + +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, + 'callbacks': {$$counter: 0}, + 'getTestability': getTestability, + 'reloadWithDebugInfo': reloadWithDebugInfo, + '$$minErr': minErr, + '$$csp': csp, + '$$encodeUriSegment': encodeUriSegment, + '$$encodeUriQuery': encodeUriQuery, + '$$lowercase': lowercase, + '$$stringify': stringify, + '$$uppercase': uppercase + }); + + 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, + ngRef: ngRefDirective, + 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, + $$intervalFactory: $$IntervalFactoryProvider, + $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, + $$taskTrackerFactory: $$TaskTrackerFactoryProvider, + $templateCache: $TemplateCacheProvider, + $templateRequest: $TemplateRequestProvider, + $$testability: $$TestabilityProvider, + $timeout: $TimeoutProvider, + $window: $WindowProvider, + $$rAF: $$RAFProvider, + $$jqLite: $$jqLiteProvider, + $$Map: $$MapProvider, + $$cookieReader: $$CookieReaderProvider + }); + } + ]) + .info({ angularVersion: '1.7.5' }); +} + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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 AngularJS's built-in subset of jQuery, called "jQuery lite" or **jqLite**. + * + * jqLite is a tiny, API-compatible subset of jQuery that allows + * AngularJS 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. + * + *
**Note:** All element references in AngularJS 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.
+ * + *
**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()`.
+ * + * ## AngularJS'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/) - Contrary to jQuery, this doesn't clone elements + * so will not work correctly when invoked on a jqLite object containing more than one DOM node + * - [`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 + * AngularJS 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, ''], + + 'thead': [1, '', '
'], + 'col': [2, '', '
'], + 'tr': [2, '', '
'], + 'td': [3, '', '
'], + '_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>') + 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); +} - /** - * @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; +// 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 isEmptyObject(obj) { + var name; + + for (name in obj) { + return false; + } + return true; +} + +function removeIfEmptyData(element) { + var expandoId = element.ng339; + var expandoStore = expandoId && jqCache[expandoId]; + + var events = expandoStore && expandoStore.events; + var data = expandoStore && expandoStore.data; + + if ((!data || isEmptyObject(data)) && (!events || isEmptyObject(events))) { + delete jqCache[expandoId]; + element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it + } +} + +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(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]); + } + }); } - /** - * @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 - * - * ``` - * - * **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'); - }]; + removeIfEmptyData(element); +} + +function jqLiteRemoveData(element, name) { + var expandoId = element.ng339; + var expandoStore = expandoId && jqCache[expandoId]; + + if (expandoStore) { + if (name) { + delete expandoStore.data[name]; + } else { + expandoStore.data = {}; + } + + removeIfEmptyData(element); } +} - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * 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) - */ +function jqLiteExpandoStore(element, createIfNecessary) { + var expandoId = element.ng339, + expandoStore = expandoId && jqCache[expandoId]; - /** - * @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}. - * - *
- * **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}. - *
- * - * ## 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). - * - *
- * **Best Practice:** It's recommended to use the "directive definition object" form. - *
- * - * 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}: '
', // 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; - * }); - * ``` - * - *
- * **Note:** Any unspecified options will use the default value. You can see the default values below. - *
- * - * 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 AngularJS 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 & 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 AngularJS'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 life-cycle hooks in the new Angular - * The new Angular also uses life-cycle hooks for its components. While the AngularJS life-cycle hooks are similar there are - * some differences that you should be aware of, especially when it comes to moving your code from AngularJS to Angular: - * - * * AngularJS hooks are prefixed with `$`, such as `$onInit`. Angular hooks are prefixed with `ng`, such as `ngOnInit`. - * * AngularJS hooks can be defined on the controller prototype or added to the controller inside its constructor. - * In Angular 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 AngularJS than you would to - * `ngDoCheck` in Angular. - * * 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 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. - * - * - * - * angular.module('do-check-module', []) - * .component('app', { - * template: - * 'Month: ' + - * 'Date: {{ $ctrl.date }}' + - * '', - * controller: function() { - * this.date = new Date(); - * this.month = this.date.getMonth(); - * this.updateDate = function() { - * this.date.setMonth(this.month); - * }; - * } - * }) - * .component('test', { - * bindings: { date: '<' }, - * template: - * '
{{ $ctrl.log | json }}
', - * 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; - * } - * }; - * } - * }); - *
- * - * - * - *
- * - * 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) - * - * - * - *
- * - * - *
{{ items }}
- * - *
- *
- * - * angular.module('do-check-module', []) - * .component('test', { - * bindings: { items: '<' }, - * template: - * '
{{ $ctrl.log | json }}
', - * 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); - * } - * }; - * } - * }); - *
- *
- * - * - * ### 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 `` 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 `` 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. 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 `` and directive definition of - * `scope: { localModel:'` 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})`. - * - * All 4 kinds of bindings (`@`, `=`, `<`, and `&`) can be made optional by adding `?` to the expression. - * The marker must come after the mode and before the attribute name. - * See the {@link error/$compile/iscp Invalid Isolate Scope Definition error} for definition examples. - * This is useful to refine the interface directives provide. - * One subtle difference between optional and non-optional happens **when the binding attribute is not - * set**: - * - the binding is optional: the property will not be defined - * - the binding is not optional: the property is defined - * - * ```js - *app.directive('testDir', function() { - return { - scope: { - notoptional: '=', - optional: '=?', - }, - bindToController: true, - controller: function() { - this.$onInit = function() { - console.log(this.hasOwnProperty('notoptional')) // true - console.log(this.hasOwnProperty('optional')) // false + 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]; } } } - }) - *``` - * - * - * ##### Combining directives with different scope defintions - * - * 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. - * - * 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 ``). - * * 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): `` - * * `A` - Attribute (default): `
` - * * `C` - Class: `
` - * * `M` - Comment: `` - * - * - * #### `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 `` and ``. - * - * * `html` - All root nodes in the template are HTML. Root nodes may also be - * top-level elements such as `` or ``. - * * `svg` - The root nodes in the template are SVG elements (excluding ``). - * * `math` - The root nodes in the template are MathML elements (excluding ``). - * - * 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 `
{{delete_str}}
`. - * * 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` - *
- * **Note:** `replace` is deprecated in AngularJS and has been removed in the new Angular (v2+). - *
- * - * 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)` - * - *
- * **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. - *
- - *
- * **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. - *
- * - *
- * **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. - *
- - * 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. - * - *
- * **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}. - *
- * - * 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 `` 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. - * - *
- * 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. - *
- * - * 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. - * - *
- * **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. - *
- * - * 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(); - * ``` - * - *
- * **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. - *
- * - * 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 - *
- *
- *
- *
- *
- *
- * ``` - * - * 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 - * - *
- * **Note**: Typically directives are registered with `module.directive`. The example below is - * to illustrate how `$compile` works. - *
- * - - - -
-
-
-
-
-
- - it('should auto compile', function() { - var textarea = $('textarea'); - var output = $('div[compile]'); - // The initial state reads 'Hello AngularJS'. - expect(output.getText()).toBe('Hello AngularJS'); - textarea.clear(); - textarea.sendKeys('{{name}}!'); - expect(output.getText()).toBe('AngularJS!'); - }); - -
- - * - * - * @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. - * - *
- * **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. - *
- * - * @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:
`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 - * AngularJS 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('

{{total}}

')(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('

{{total}}

'), - * 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 AngularJS 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. - - * @knownIssue - - ### Issues with `replace: true` - * - *
- * **Note**: {@link $compile#-replace- `replace: true`} is deprecated and not recommended to use, - * mainly due to the issues listed here. It has been completely removed in the new Angular. - *
- * - * #### Attribute values are not merged - * - * When a `replace` directive encounters the same attribute on the original and the replace node, - * it will simply deduplicate the attribute and join the values with a space or with a `;` in case of - * the `style` attribute. - * ```html - * Original Node: - * Replace Template: - * Result: - * ``` - * - * That means attributes that contain AngularJS expressions will not be merged correctly, e.g. - * {@link ngShow} or {@link ngClass} will cause a {@link $parse} error: - * - * ```html - * Original Node: - * Replace Template: - * Result: - * ``` - * - * See issue [#5695](https://github.com/angular/angular.js/issues/5695). - * - * #### Directives are not deduplicated before compilation - * - * When the original node and the replace template declare the same directive(s), they will be - * {@link guide/compiler#double-compilation-and-how-to-avoid-it compiled twice} because the compiler - * does not deduplicate them. In many cases, this is not noticable, but e.g. {@link ngModel} will - * attach `$formatters` and `$parsers` twice. - * - * See issue [#2573](https://github.com/angular/angular.js/issues/2573). - * - * #### `transclude: element` in the replace template root can have unexpected effects - * - * When the replace template has a directive at the root node that uses - * {@link $compile#-transclude- `transclude: element`}, e.g. - * {@link ngIf} or {@link ngRepeat}, the DOM structure or scope inheritance can be incorrect. - * See the following issues: - * - * - Incorrect scope on replaced element: - * [#9837](https://github.com/angular/angular.js/issues/9837) - * - Different DOM between `template` and `templateUrl`: - * [#10612](https://github.com/angular/angular.js/issues/14326) - * - */ + } + } +} + +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() { + var value = []; + forEach(this, function(e) { value.push('' + e);}); + return '[' + value.join(', ') + ']'; + }, + + eq: function(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]); + jqLiteOff(nodes[i]); + } + } +}, function(fn, name) { + JQLite[name] = fn; +}); + +forEach({ + data: jqLiteData, + inheritedData: jqLiteInheritedData, + + scope: function(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(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(element) { + return jqLiteInheritedData(element, '$injector'); + }, + + removeAttr: function(element, name) { + element.removeAttribute(name); + }, + + hasClass: jqLiteHasClass, + + css: function(element, name, value) { + name = cssKebabToCamel(name); + + if (isDefined(value)) { + element.style[name] = value; + } else { + return element.style[name]; + } + }, + + attr: function(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(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(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(element, value) { + if (isUndefined(value)) { + return element.innerHTML; + } + jqLiteDealoc(element, true); + element.innerHTML = value; + }, + empty: jqLiteEmpty +}, function(fn, name) { /** - * @ngdoc directive - * @name ngProp - * @restrict A - * @element ANY - * - * @usage - * - * ```html - * - * - * ``` - * - * or with uppercase letters in property (e.g. "propName"): - * - * - * ```html - * - * - * ``` - * - * - * @description - * The `ngProp` directive binds an expression to a DOM element property. - * `ngProp` allows writing to arbitrary properties by including - * the property name in the attribute, e.g. `ng-prop-value="'my value'"` binds 'my value' to - * the `value` property. - * - * Usually, it's not necessary to write to properties in AngularJS, as the built-in directives - * handle the most common use cases (instead of the above example, you would use {@link ngValue}). - * - * However, [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) - * often use custom properties to hold data, and `ngProp` can be used to provide input to these - * custom elements. - * - * ## Binding to camelCase properties - * - * Since HTML attributes are case-insensitive, camelCase properties like `innerHTML` must be escaped. - * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so - * `innerHTML` must be written as `ng-prop-inner_h_t_m_l="expression"` (Note that this is just an - * example, and for binding HTML {@link ngBindHtml} should be used. - * - * ## Security - * - * Binding expressions to arbitrary properties poses a security risk, as properties like `innerHTML` - * can insert potentially dangerous HTML into the application, e.g. script tags that execute - * malicious code. - * For this reason, `ngProp` applies Strict Contextual Escaping with the {@link ng.$sce $sce service}. - * This means vulnerable properties require their content to be "trusted", based on the - * context of the property. For example, the `innerHTML` is in the `HTML` context, and the - * `iframe.src` property is in the `RESOURCE_URL` context, which requires that values written to - * this property are trusted as a `RESOURCE_URL`. - * - * This can be set explicitly by calling $sce.trustAs(type, value) on the value that is - * trusted before passing it to the `ng-prop-*` directive. There are exist shorthand methods for - * each context type in the form of {@link ng.$sce#trustAsResourceUrl $sce.trustAsResourceUrl()} et al. - * - * In some cases you can also rely upon automatic sanitization of untrusted values - see below. - * - * Based on the context, other options may exist to mark a value as trusted / configure the behavior - * of {@link ng.$sce}. For example, to restrict the `RESOURCE_URL` context to specific origins, use - * the {@link $sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist()} - * and {@link $sceDelegateProvider#resourceUrlBlacklist resourceUrlBlacklist()}. - * - * {@link ng.$sce#what-trusted-context-types-are-supported- Find out more about the different context types}. - * - * ### HTML Sanitization - * - * By default, `$sce` will throw an error if it detects untrusted HTML content, and will not bind the - * content. - * However, if you include the {@link ngSanitize ngSanitize module}, it will try to sanitize the - * potentially dangerous HTML, e.g. strip non-whitelisted tags and attributes when binding to - * `innerHTML`. - * - * @example - * ### Binding to different contexts - * - * - * - * angular.module('exampleNgProp', []) - * .component('main', { - * templateUrl: 'main.html', - * controller: function($sce) { - * this.safeContent = 'Safe content'; - * this.unsafeContent = ''; - * this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent); - * } - * }); - * - * - *
- *
- * Binding to a property without security context: - *
- * innerText (safeContent) - *
- * - *
- * "Safe" content that requires a security context will throw because the contents could potentially be dangerous ... - *
- * innerHTML (safeContent) - *
- * - *
- * ... so that actually dangerous content cannot be executed: - *
- * innerHTML (unsafeContent) - *
- * - *
- * ... but unsafe Content that has been trusted explicitly works - only do this if you are 100% sure! - *
- * innerHTML (trustedUnsafeContent) - *
- *
- *
- * - *
- *
- * - * .prop-unit { - * margin-bottom: 10px; - * } - * - * .prop-binding { - * min-height: 30px; - * border: 1px solid blue; - * } - * - * .prop-note { - * font-family: Monospace; - * } - * - *
- * - * - * @example - * ### Binding to innerHTML with ngSanitize - * - * - * - * angular.module('exampleNgProp', ['ngSanitize']) - * .component('main', { - * templateUrl: 'main.html', - * controller: function($sce) { - * this.safeContent = 'Safe content'; - * this.unsafeContent = ''; - * this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent); - * } - * }); - * - * - *
- *
- * "Safe" content will be sanitized ... - *
- * innerHTML (safeContent) - *
- * - *
- * ... as will dangerous content: - *
- * innerHTML (unsafeContent) - *
- * - *
- * ... and content that has been trusted explicitly works the same as without ngSanitize: - *
- * innerHTML (trustedUnsafeContent) - *
- *
- *
- * - *
- *
- * - * .prop-unit { - * margin-bottom: 10px; - * } - * - * .prop-binding { - * min-height: 30px; - * border: 1px solid blue; - * } - * - * .prop-note { - * font-family: Monospace; - * } - * - *
- * + * 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; + } + }; +}); - /** @ngdoc directive - * @name ngOn - * @restrict A - * @element ANY - * - * @usage - * - * ```html - * - * - * ``` - * - * or with uppercase letters in property (e.g. "eventName"): - * - * - * ```html - * - * - * ``` - * - * @description - * The `ngOn` directive adds an event listener to a DOM element via - * {@link angular.element angular.element().on()}, and evaluates an expression when the event is - * fired. - * `ngOn` allows adding listeners for arbitrary events by including - * the event name in the attribute, e.g. `ng-on-drop="onDrop()"` executes the 'onDrop()' expression - * when the `drop` event is fired. - * - * AngularJS provides specific directives for many events, such as {@link ngClick}, so in most - * cases it is not necessary to use `ngOn`. However, AngularJS does not support all events - * (e.g. the `drop` event in the example above), and new events might be introduced in later DOM - * standards. - * - * Another use-case for `ngOn` is listening to - * [custom events](https://developer.mozilla.org/docs/Web/Guide/Events/Creating_and_triggering_events) - * fired by - * [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements). - * - * ## Binding to camelCase properties - * - * Since HTML attributes are case-insensitive, camelCase properties like `myEvent` must be escaped. - * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so - * `myEvent` must be written as `ng-on-my_event="expression"`. - * - * @example - * ### Bind to built-in DOM events - * - * - * - * angular.module('exampleNgOn', []) - * .component('main', { - * templateUrl: 'main.html', - * controller: function() { - * this.clickCount = 0; - * this.mouseoverCount = 0; - * - * this.loadingState = 0; - * } - * }); - * - * - *
- * This is equivalent to `ngClick` and `ngMouseover`:
- *
- * clickCount: {{$ctrl.clickCount}}
- * mouseover: {{$ctrl.mouseoverCount}} - * - *
- * - * For the `error` and `load` event on images no built-in AngularJS directives exist:
- *
- *
- * Image is loading - * Image load error - * Image loaded successfully - *
- *
- *
- * - *
- *
- *
- * - * - * @example - * ### Bind to custom DOM events - * - * - * - * angular.module('exampleNgOn', []) - * .component('main', { - * templateUrl: 'main.html', - * controller: function() { - * this.eventLog = ''; - * - * this.listener = function($event) { - * this.eventLog = 'Event with type "' + $event.type + '" fired at ' + $event.detail; - * }; - * } - * }) - * .component('childComponent', { - * templateUrl: 'child.html', - * controller: function($element) { - * this.fireEvent = function() { - * var event = new CustomEvent('customtype', { detail: new Date()}); - * - * $element[0].dispatchEvent(event); - * }; - * } - * }); - * - * - *
- * Event log: {{$ctrl.eventLog}} - *
- * - - * - * - *
- *
- *
+function createEventHandler(element, events) { + var eventHandler = function(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(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(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(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(element) { + var children = []; + forEach(element.childNodes, function(element) { + if (element.nodeType === NODE_TYPE_ELEMENT) { + children.push(element); + } + }); + return children; + }, + + contents: function(element) { + return element.contentDocument || element.childNodes || []; + }, + + append: function(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(element, node) { + if (element.nodeType === NODE_TYPE_ELEMENT) { + var index = element.firstChild; + forEach(new JQLite(node), function(child) { + element.insertBefore(child, index); + }); + } + }, + + wrap: function(element, wrapNode) { + jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]); + }, + + remove: jqLiteRemove, + + detach: function(element) { + jqLiteRemove(element, true); + }, + + after: function(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(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(element) { + var parent = element.parentNode; + return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null; + }, + + next: function(element) { + return element.nextElementSibling; + }, + + find: function(element, selector) { + if (element.getElementsByTagName) { + return element.getElementsByTagName(selector); + } else { + return []; + } + }, + + clone: jqLiteClone, + + triggerHandler: function(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() { this.defaultPrevented = true; }, + isDefaultPrevented: function() { return this.defaultPrevented === true; }, + stopImmediatePropagation: function() { this.immediatePropagationStopped = true; }, + isImmediatePropagationStopped: function() { 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(node, classes) { + if (node.attr) node = node[0]; + return jqLiteHasClass(node, classes); + }, + addClass: function(node, classes) { + if (node.attr) node = node[0]; + return jqLiteAddClass(node, classes); + }, + removeClass: function(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; + 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(key) { + if (key !== this._lastKey) { + this._lastKey = key; + this._lastIndex = this._keys.indexOf(key); + } + return this._lastIndex; + }, + _transformKey: function(key) { + return isNumberNaN(key) ? nanKey : key; + }, + get: function(key) { + key = this._transformKey(key); + var idx = this._idx(key); + if (idx !== -1) { + return this._values[idx]; + } + }, + has: function(key) { + key = this._transformKey(key); + var idx = this._idx(key); + return idx !== -1; + }, + set: function(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(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; + } +}; - var $compileMinErr = minErr('$compile'); +// 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; - function UNINITIALIZED_VALUE() {} - var _UNINITIALIZED_VALUE = new UNINITIALIZED_VALUE(); +var $$MapProvider = [/** @this */function() { + this.$get = [function() { + return NgMap; + }]; +}]; - /** - * @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*([\w$]*)$/; - - var bindings = createMap(); - - forEach(scope, function (definition, scopeName) { - definition = definition.trim(); - - if (definition in bindingCache) { - bindings[scopeName] = bindingCache[definition]; - return; - } - var match = definition.match(LOCAL_REGEXP); +/** + * @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.} 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 AngularJS app + * from outside AngularJS. 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 = $('
{{content.label}}
'); + * $(document.body).append($div); + * + * angular.element(document).injector().invoke(function($compile) { + * var scope = angular.element($div).scope(); + * $compile($div)(scope); + * }); + * ``` + */ - 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]; - } - }); +/** + * @ngdoc module + * @name auto + * @installation + * @description + * + * Implicit module which gets automatically added to each {@link auto.$injector $injector}. + */ - return bindings; - } +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 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); +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); + }); + }); } - 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; + 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; +} - 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; +/** + * @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. + */ - 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; - }); - } +/** + * @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.** + */ - 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); - } +/** + * @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. + */ - return restrict || 'EA'; - } +/** + * @ngdoc method + * @name $injector#invoke + * + * @description + * Invoke the method and supply the method arguments from the `$injector`. + * + * @param {Function|Array.} 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 $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. ngBind which - * will match as ng-bind), 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 $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 $compileProvider#component - * @module ng - * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), - * 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=}` - 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: '
My name is {{$ctrl.name}}
', - * controller: function() { - * this.name = 'shahar'; - * } - * }); - * - * myMod.component('myComp', { - * template: '
My name is {{$ctrl.name}}
', - * 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}. - * - *
- * 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; - } +/** + * @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`. + */ - var controller = options.controller || function () {}; +/** + * @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.} 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.} 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=} 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} + */ - 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 - }; +/** + * @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 AngularJS **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. + */ - // Copy annotations (starting with $) over to the DDO - forEach(options, function (val, key) { - if (key.charAt(0) === '$') ddo[key] = val; - }); +/** + * @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. + * + * It is possible to inject other providers into the provider function, + * but the injected provider must have been defined before the one that requires it. + * + * @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 - return ddo; - } + * @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.} $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.} 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(); + * }]); + * ``` + */ - // 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 AngularJS 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; - } - }); +/** + * @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 AngularJS {@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; + * }); + * ``` + */ - factory.$inject = ['$injector']; - return this.directive(name, factory); - }; +/** + * @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 AngularJS {@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 $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; +/** + * @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.} 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 $$sanitizeUriProvider.imgSrcSanitizationWhitelist(); + return delegate(key, value); } }; + } - /** - * @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. ``. - * - * 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; + 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 debugInfoEnabled; + return result; }; + } - /** - * @ngdoc method - * @name $compileProvider#strictComponentBindingsEnabled - * - * @param {boolean=} enabled update the strictComponentBindingsEnabled state if provided, - * otherwise 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 the strict component bindings check. If enabled, the - * compiler will enforce that all scope / controller bindings of a - * {@link $compileProvider#directive directive} / {@link $compileProvider#component component} - * that are not set as optional with `?`, must be provided when the directive is instantiated. - * If not provided, the compiler will throw the - * {@link error/$compile/missingattr $compile:missingattr error}. - * - * The default value is false. - */ - var strictComponentBindingsEnabled = false; - this.strictComponentBindingsEnabled = function (enabled) { - if (isDefined(enabled)) { - strictComponentBindingsEnabled = enabled; - return this; - } - return strictComponentBindingsEnabled; + 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}); }; + } - 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; + //////////////////////////////////// + // 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]); + } } - 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; + 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 commentDirectivesEnabledConfig; - }; + }); + return runBlocks; + } - 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; + //////////////////////////////////// + // 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(); + } } - return cssClassDirectivesEnabledConfig; - }; + } - /** - * The security context of DOM Properties. - * @private - */ - var PROP_CONTEXTS = createMap(); - /** - * @ngdoc method - * @name $compileProvider#addPropertySecurityContext - * @description - * - * Defines the security context for DOM properties bound by ng-prop-*. - * - * @param {string} elementName The element name or '*' to match any element. - * @param {string} propertyName The DOM property name. - * @param {string} ctx The {@link $sce} security context in which this value is safe for use, e.g. `$sce.URL` - * @returns {object} `this` for chaining - */ - this.addPropertySecurityContext = function (elementName, propertyName, ctx) { - var key = elementName.toLowerCase() + '|' + propertyName.toLowerCase(); + function injectionArgs(fn, locals, serviceName) { + var args = [], + $inject = createInjector.$$annotate(fn, strictDi, serviceName); - if (key in PROP_CONTEXTS && PROP_CONTEXTS[key] !== ctx) { - throw $compileMinErr('ctxoverride', 'Property context \'{0}.{1}\' already set to \'{2}\', cannot override to \'{3}\'.', elementName, propertyName, PROP_CONTEXTS[key], ctx); + 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; + } - PROP_CONTEXTS[key] = ctx; - return this; - }; + 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)) { + result = func.$$ngIsClass = /^class\b/.test(stringifyFn(func)); + } + return result; + } - /* Default property contexts. - * - * Copy of https://github.com/angular/angular/blob/6.0.6/packages/compiler/src/schema/dom_security_schema.ts#L31-L58 - * Changing: - * - SecurityContext.* => SCE_CONTEXTS/$sce.* - * - STYLE => CSS - * - various URL => MEDIA_URL - * - *|formAction, form|action URL => RESOURCE_URL (like the attribute) - */ - (function registerNativePropertyContexts() { - function registerContext(ctx, values) { - forEach(values, function (v) { - PROP_CONTEXTS[v.toLowerCase()] = ctx; - }); + function invoke(fn, self, locals, serviceName) { + if (typeof locals === 'string') { + serviceName = locals; + locals = null; } - registerContext(SCE_CONTEXTS.HTML, ['iframe|srcdoc', '*|innerHTML', '*|outerHTML']); - registerContext(SCE_CONTEXTS.CSS, ['*|style']); - registerContext(SCE_CONTEXTS.URL, ['area|href', 'area|ping', 'a|href', 'a|ping', 'blockquote|cite', 'body|background', 'del|cite', 'input|src', 'ins|cite', 'q|cite']); - registerContext(SCE_CONTEXTS.MEDIA_URL, ['audio|src', 'img|src', 'img|srcset', 'source|src', 'source|srcset', 'track|src', 'video|src', 'video|poster']); - registerContext(SCE_CONTEXTS.RESOURCE_URL, ['*|formAction', 'applet|code', 'applet|codebase', 'base|href', 'embed|src', 'frame|src', 'form|action', 'head|profile', 'html|manifest', 'iframe|src', 'link|href', 'media|src', 'object|codebase', 'object|data', 'script|src']); - })(); + var args = injectionArgs(fn, locals, serviceName); + if (isArray(fn)) { + fn = fn[fn.length - 1]; + } - this.$get = ['$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse', '$controller', '$rootScope', '$sce', '$animate', function ($injector, $interpolate, $exceptionHandler, $templateRequest, $parse, $controller, $rootScope, $sce, $animate) { + 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))(); + } + } - var SIMPLE_ATTR_NAME = /^\w/; - var specialAttrHolder = window.document.createElement('div'); - var commentDirectivesEnabled = commentDirectivesEnabledConfig; - var cssClassDirectivesEnabled = cssClassDirectivesEnabledConfig; + 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))(); + } - 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 () { - for (var i = 0, ii = onChangesQueue.length; i < ii; ++i) { - try { - onChangesQueue[i](); - } catch (e) { - $exceptionHandler(e); - } - } - // Reset the queue to trigger a new schedule next time there is a change - onChangesQueue = undefined; - }); - } finally { - onChangesTtl++; - } + return { + invoke: invoke, + instantiate: instantiate, + get: getService, + annotate: createInjector.$$annotate, + has: function(name) { + return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name); } + }; + } +} - function sanitizeSrcset(value, invokeType) { - if (!value) { - return value; - } - if (!isString(value)) { - throw $compileMinErr('srcset', 'Can\'t pass trusted values to `{0}`: "{1}"', invokeType, value.toString()); - } +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() { - // Such values are a bit too complex to handle automatically inside $sce. - // Instead, we sanitize each of the URIs individually, which works, even dynamically. + var autoScrollingEnabled = true; - // It's not possible to work around this using `$sce.trustAsMediaUrl`. - // If you want to programmatically set explicitly trusted unsafe URLs, you should use - // `$sce.trustAsHtml` on the whole `img` tag and inject it into the DOM using the - // `ng-bind-html` directive. + /** + * @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.
+ * 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.

+ * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return + * a number representing the offset (in pixels).

+ * - **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.
+ * **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. + * + *
+ *
+ * In order for `yOffset` to work properly, scrolling should take place on the document's root and + * not some child element. + *
+ * + * @example + + +
+ Go to bottom + You're at the bottom! +
+
+ + 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(); + }; + }]); + + + #scrollArea { + height: 280px; + overflow: auto; + } + + #bottom { + display: block; + margin-top: 2000px; + } + +
+ * + *
+ * 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 + + + +
+ Anchor {{x}} of 5 +
+
+ + 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(); + } + }; + } + ]); + + + body { + padding-top: 50px; + } + + .anchor { + border: 2px dashed DarkOrchid; + padding: 10px 10px 200px 10px; + } - var result = ''; + .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; + } + +
+ */ + 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; + } - // 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 : /(,)/; + function getYOffset() { - // split srcset into tuple of uri and descriptor except for the last item - var rawUris = trimmedSrcset.split(pattern); + var offset = scroll.yOffset; - // 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 += $sce.getTrustedMediaUrl(trim(rawUris[innerIdx])); - // add the descriptor - result += ' ' + trim(rawUris[innerIdx + 1]); + 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; + } - // split the last item into uri and descriptor - var lastTuple = trim(rawUris[i * 2]).split(/\s/); + function scrollTo(elem) { + if (elem) { + elem.scrollIntoView(); - // sanitize the last uri - result += $sce.getTrustedMediaUrl(trim(lastTuple[0])); + var offset = getYOffset(); - // and add the last descriptor if any - if (lastTuple.length === 2) { - result += ' ' + trim(lastTuple[1]); + 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); } - return result; + } else { + $window.scrollTo(0, 0); } + } - function Attributes(element, attributesToCopy) { - if (attributesToCopy) { - var keys = Object.keys(attributesToCopy); - var i, l, key; + function scroll(hash) { + // Allow numeric hashes + hash = isString(hash) ? hash : isNumber(hash) ? hash.toString() : $location.hash(); + var elm; - for (i = 0, l = keys.length; i < l; i++) { - key = keys[i]; - this[key] = attributesToCopy[key]; - } - } else { - this.$attr = {}; - } + // empty hash, scroll to the top of the page + if (!hash) scrollTo(null); - this.$$element = element; - } + // element with given id + else if ((elm = document.getElementById(hash))) scrollTo(elm); - 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, + // first anchor with given name :-D + else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm); - /** - * @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); - } - }, + // no element and hash === 'top', scroll to the top of the page + else if (hash === 'top') scrollTo(null); + } - /** - * @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); - } - }, + // 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; - /** - * @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); - } + jqLiteDocumentLoaded(function() { + $rootScope.$evalAsync(scroll); + }); + }); + } - var toRemove = tokenDifference(oldClasses, newClasses); - if (toRemove && toRemove.length) { - $animate.removeClass(this.$$element, toRemove); - } - }, + return scroll; + }]; +} - /** - * 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; - } +var $animateMinErr = minErr('$animate'); +var ELEMENT_NODE = 1; +var NG_ANIMATE_CLASSNAME = 'ng-animate'; - this[key] = value; +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; +} - // 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, '-'); - } - } +function extractElementNode(element) { + for (var i = 0; i < element.length; i++) { + var elm = element[i]; + if (elm.nodeType === ELEMENT_NODE) { + return elm; + } + } +} - nodeName = nodeName_(this.$$element); +function splitClasses(classes) { + if (isString(classes)) { + classes = classes.split(' '); + } - // Sanitize img[srcset] values. - if (nodeName === 'img' && key === 'srcset') { - this[key] = value = sanitizeSrcset(value, '$set(\'srcset\', value)'); - } + // 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 (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); - } - } - } +// 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 + : {}; +} - // fire observers - var $$observers = this.$$observers; - if ($$observers) { - forEach($$observers[observer], function (fn) { - try { - fn(value); - } catch (e) { - $exceptionHandler(e); - } - }); - } - }, +var $$CoreAnimateJsProvider = /** @this */ function() { + this.$get = noop; +}; - /** - * @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]); - } - }); +// this is prefixed with Core since it conflicts with +// the animateQueueProvider defined in ngAnimate/animateQueue.js +var $$CoreAnimateQueueProvider = /** @this */ function() { + var postDigestQueue = new NgMap(); + var postDigestElements = []; - return function () { - arrayRemove(listeners, fn); - }; + this.$get = ['$$AnimateRunner', '$rootScope', + function($$AnimateRunner, $rootScope) { + return { + enabled: noop, + on: noop, + off: noop, + pin: noop, + + push: function(element, event, options, domOperation) { + if (domOperation) { + domOperation(); } - }; - 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 = ''; - 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); - } + options = options || {}; + if (options.from) { + element.css(options.from); + } + if (options.to) { + element.css(options.to); + } - 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. + if (options.addClass || options.removeClass) { + addRemoveClassesPostDigest(element, options.addClass, options.removeClass); } - } - var startSymbol = $interpolate.startSymbol(), - endSymbol = $interpolate.endSymbol(), - denormalizeTemplate = startSymbol === '{{' && endSymbol === '}}' ? identity : function denormalizeTemplate(template) { - return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol); - }, - NG_PREFIX_BINDING = /^ng(Attr|Prop|On)([A-Z].*)$/; - var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/; + var runner = new $$AnimateRunner(); - compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) { - var bindings = $element.data('$binding') || []; + // since there are no animations to run the runner needs to be + // notified that the animation call is complete. + runner.complete(); + return runner; + } + }; - if (isArray(binding)) { - bindings = bindings.concat(binding); - } else { - bindings.push(binding); - } - $element.data('$binding', bindings); - } : noop; + 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; + } + } + }); - compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) { - safeAddClass($element, 'ng-binding'); - } : noop; + forEach(element, function(elm) { + if (toAdd) { + jqLiteAddClass(elm, toAdd); + } + if (toRemove) { + jqLiteRemoveClass(elm, toRemove); + } + }); + postDigestQueue.delete(element); + } + }); + postDigestElements.length = 0; + } - 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; + function addRemoveClassesPostDigest(element, add, remove) { + var data = postDigestQueue.get(element) || {}; - compile.$$createComment = function (directiveName, comment) { - var content = ''; - if (debugInfoEnabled) { - content = ' ' + (directiveName || '') + ': '; - if (comment) content += comment + ' '; - } - return window.document.createComment(content); - }; + var classesAdded = updateData(data, add, true); + var classesRemoved = updateData(data, remove, false); - return compile; + if (classesAdded || classesRemoved) { - //================================ + postDigestQueue.set(element, data); + postDigestElements.push(element); - 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); + if (postDigestElements.length === 1) { + $rootScope.$$postDigest(handleCSSClassChanges); } - 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; - } +/** + * @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; - 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('
').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; - } + this.$$registeredAnimations = Object.create(null); - if (transcludeControllers) { - for (var controllerName in transcludeControllers) { - $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance); - } - } + /** + * @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); + }; - compile.$$addScopeInfo($linkNode, scope); + /** + * @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. + * + *
+ * **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. + *
+ * + * **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; + } - if (cloneConnectFn) cloneConnectFn($linkNode, scope); - if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn); + return customFilter; + }; - if (!cloneConnectFn) { - $compileNodes = compositeLinkFn = null; - } - return $linkNode; - }; + /** + * @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; + }; - 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'; + 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 /** - * 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. + * @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 + * } + * ); + * ``` + * + *
+ * **Note**: Generally, the events that are fired correspond 1:1 to `$animate` method names, + * e.g. {@link ng.$animate#addClass addClass()} will fire `addClass`, and {@link ng.ngClass} + * will fire `addClass` if classes are added, and `removeClass` if classes are removed. + * However, there are two exceptions: + * + *
    + *
  • if both an {@link ng.$animate#addClass addClass()} and a + * {@link ng.$animate#removeClass removeClass()} action are performed during the same + * animation, the event fired will be `setClass`. This is true even for `ngClass`.
  • + *
  • an {@link ng.$animate#animate animate()} call that adds and removes classes will fire + * the `setClass` event, but if it either removes or adds classes, + * it will fire `animate` instead.
  • + *
+ * + *
+ * + * @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). + * * `data` - an object with these properties: + * * addClass - `{string|null}` - space-separated CSS classes to add to the element + * * removeClass - `{string|null}` - space-separated CSS classes to remove from the element + * * from - `{Object|null}` - CSS properties & values at the beginning of the animation + * * to - `{Object|null}` - CSS properties & values at the end of the animation + * + * Note that the callback does not trigger a scope digest. Wrap your call into a + * {@link $rootScope.Scope#$apply scope.$apply} to propagate changes to the scope. */ - 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); - } + 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, - // 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); + /** + * @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 AngularJS 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 `` 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, - nodeLinkFn = directives.length ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement, null, [], [], previousCompileContext) : null; + /** + * + * @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, - if (nodeLinkFn && nodeLinkFn.scope) { - compile.$$addScopeClass(attrs.$$element); - } + /** + * @ngdoc method + * @name $animate#cancel + * @kind function + * @description Cancels the provided animation and applies the end state of the animation. + * Note that this does not cancel the underlying operation, e.g. the setting of classes or + * adding the element to the DOM. + * + * @param {animationRunner} animationRunner An animation runner returned by an $animate function. + * + * @example + + + angular.module('animationExample', ['ngAnimate']).component('cancelExample', { + templateUrl: 'template.html', + controller: function($element, $animate) { + this.runner = null; + + this.addClass = function() { + this.runner = $animate.addClass($element.find('div'), 'red'); + var ctrl = this; + this.runner.finally(function() { + ctrl.runner = null; + }); + }; - childLinkFn = nodeLinkFn && nodeLinkFn.terminal || !(childNodes = nodeList[i].childNodes) || !childNodes.length ? null : compileNodes(childNodes, nodeLinkFn ? (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement) && nodeLinkFn.transclude : transcludeFn); + this.removeClass = function() { + this.runner = $animate.removeClass($element.find('div'), 'red'); + var ctrl = this; + this.runner.finally(function() { + ctrl.runner = null; + }); + }; - if (nodeLinkFn || childLinkFn) { - linkFns.push(i, nodeLinkFn, childLinkFn); - linkFnFound = true; - nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn; - } + this.cancel = function() { + $animate.cancel(this.runner); + }; + } + }); + + +

+ + +
+ +
+

CSS-Animated Text
+

+
+ + + + + .red-add, .red-remove { + transition: all 4s cubic-bezier(0.250, 0.460, 0.450, 0.940); + } + + .red, + .red-add.red-add-active { + color: #FF0000; + font-size: 40px; + } + + .red-remove.red-remove-active { + font-size: 10px; + color: black; + } - //use the previous context only for the first element in the virtual group - previousCompileContext = null; + +
+ */ + cancel: function(runner) { + if (runner.cancel) { + runner.cancel(); } + }, - // return a linking function if we have found anything, null otherwise - return linkFnFound ? compositeLinkFn : null; + /** + * + * @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 {Runner} the animation runner + */ + enter: function(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)); + }, - function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) { - var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn; - var stableNodeList; + /** + * + * @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 {Runner} the animation runner + */ + move: function(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)); + }, - 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); + /** + * @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 {Runner} the animation runner + */ + leave: function(element, options) { + return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() { + element.remove(); + }); + }, - // 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; - } + /** + * @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: + * + * - **removeClass** - `{string}` - space-separated CSS classes to remove from element + * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to` + * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` + * + * @return {Runner} animationRunner the animation runner + */ + addClass: function(element, className, options) { + options = prepareAnimateOptions(options); + options.addClass = mergeClasses(options.addclass, className); + return $$animateQueue.push(element, 'addClass', options); + }, - for (i = 0, ii = linkFns.length; i < ii;) { - node = stableNodeList[linkFns[i++]]; - nodeLinkFn = linkFns[i++]; - childLinkFn = linkFns[i++]; + /** + * @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` + * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` + * + * @return {Runner} the animation runner + */ + removeClass: function(element, className, options) { + options = prepareAnimateOptions(options); + options.removeClass = mergeClasses(options.removeClass, className); + return $$animateQueue.push(element, 'removeClass', options); + }, - if (nodeLinkFn) { - if (nodeLinkFn.scope) { - childScope = scope.$new(); - compile.$$addScopeInfo(jqLite(node), childScope); - } else { - childScope = scope; - } + /** + * @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 + * - **removeClass** - `{string}` - space-separated CSS classes to remove from element + * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to` + * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` + * + * @return {Runner} the animation runner + */ + setClass: function(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); + }, - 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; - } + /** + * @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 {Runner} the animation runner + */ + animate: function(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; - nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn); - } else if (childLinkFn) { - childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn); - } - } - } + className = className || 'ng-inline-animate'; + options.tempClasses = mergeClasses(options.tempClasses, className); + return $$animateQueue.push(element, 'animate', options); } + }; + }]; +}]; - function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { - var node = nodeList[idx]; - var parent = node.parentNode; - var sibling; +var $$AnimateAsyncRunFactoryProvider = /** @this */ function() { + this.$get = ['$$rAF', function($$rAF) { + var waitQueue = []; - if (node.nodeType !== NODE_TYPE_TEXT) { - return; + function waitForTick(fn) { + waitQueue.push(fn); + if (waitQueue.length > 1) return; + $$rAF(function() { + for (var i = 0; i < waitQueue.length; i++) { + waitQueue[i](); } + waitQueue = []; + }); + } - 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); - } + return function() { + var passed = false; + waitForTick(function() { + passed = true; + }); + return function(callback) { + if (passed) { + callback(); + } else { + waitForTick(callback); } - } + }; + }; + }]; +}; - function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { - function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { +var $$AnimateRunnerFactoryProvider = /** @this */ function() { + this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$$isDocumentHidden', '$timeout', + function($q, $sniffer, $$animateAsyncRun, $$isDocumentHidden, $timeout) { - if (!transcludedScope) { - transcludedScope = scope.$new(false, containingScope); - transcludedScope.$$transcluded = true; - } + var INITIAL_STATE = 0; + var DONE_PENDING_STATE = 1; + var DONE_COMPLETE_STATE = 2; - return transcludeFn(transcludedScope, cloneFn, { - parentBoundTranscludeFn: previousBoundTranscludeFn, - transcludeControllers: controllers, - futureParentElement: futureParentElement - }); - } + AnimateRunner.chain = function(chain, callback) { + var index = 0; - // 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; - } + next(); + function next() { + if (index === chain.length) { + callback(true); + return; } - return boundTranscludeFn; + chain[index](function(response) { + if (response === false) { + callback(false); + return; + } + index++; + next(); + }); } + }; - /** - * 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; + AnimateRunner.all = function(runners, callback) { + var count = 0; + var status = true; + forEach(runners, function(runner) { + runner.done(onProgress); + }); - switch (nodeType) { - case NODE_TYPE_ELEMENT: - /* Element */ + function onProgress(response) { + status = status && response; + if (++count === runners.length) { + callback(status); + } + } + }; - nodeName = nodeName_(node); + function AnimateRunner(host) { + this.setHost(host); - // use the node name: - addDirective(directives, directiveNormalize(nodeName), 'E', maxPriority, ignoreDirective); + var rafTick = $$animateAsyncRun(); + var timeoutTick = function(fn) { + $timeout(fn, 0, false); + }; - // iterate over the attributes - for (var attr, name, nName, value, ngPrefixMatch, nAttrs = node.attributes, j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) { - var attrStartName = false; - var attrEndName = false; + this._doneCallbacks = []; + this._tick = function(fn) { + if ($$isDocumentHidden()) { + timeoutTick(fn); + } else { + rafTick(fn); + } + }; + this._state = 0; + } - var isNgAttr = false, - isNgProp = false, - isNgEvent = false; - var multiElementMatch; + AnimateRunner.prototype = { + setHost: function(host) { + this.host = host || {}; + }, - attr = nAttrs[j]; - name = attr.name; - value = attr.value; + done: function(fn) { + if (this._state === DONE_COMPLETE_STATE) { + fn(); + } else { + this._doneCallbacks.push(fn); + } + }, - nName = directiveNormalize(name.toLowerCase()); + progress: noop, - // Support ng-attr-*, ng-prop-* and ng-on-* - if (ngPrefixMatch = nName.match(NG_PREFIX_BINDING)) { - isNgAttr = ngPrefixMatch[1] === 'Attr'; - isNgProp = ngPrefixMatch[1] === 'Prop'; - isNgEvent = ngPrefixMatch[1] === 'On'; + getPromise: function() { + 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; + }, - // Normalize the non-prefixed name - name = name.replace(PREFIX_REGEXP, '').toLowerCase().substr(4 + ngPrefixMatch[1].length).replace(/_(.)/g, function (match, letter) { - return letter.toUpperCase(); - }); + then: function(resolveHandler, rejectHandler) { + return this.getPromise().then(resolveHandler, rejectHandler); + }, - // Support *-start / *-end multi element directives - } else if ((multiElementMatch = nName.match(MULTI_ELEMENT_DIR_RE)) && directiveIsMultiElement(multiElementMatch[1])) { - attrStartName = name; - attrEndName = name.substr(0, name.length - 5) + 'end'; - name = name.substr(0, name.length - 6); - } + 'catch': function(handler) { + return this.getPromise()['catch'](handler); + }, - if (isNgProp || isNgEvent) { - attrs[nName] = value; - attrsMap[nName] = attr.name; + 'finally': function(handler) { + return this.getPromise()['finally'](handler); + }, - if (isNgProp) { - addPropertyDirective(node, directives, nName, name); - } else { - addEventDirective(directives, nName, name); - } - } else { - // Update nName for cases where a prefix was removed - // NOTE: the .toLowerCase() is unnecessary and causes https://github.com/angular/angular.js/issues/16624 for ng-attr-* - 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 - } - } + pause: function() { + if (this.host.pause) { + this.host.pause(); + } + }, - addAttrInterpolateDirective(node, directives, value, nName, isNgAttr); - addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName, attrEndName); - } - } + resume: function() { + if (this.host.resume) { + this.host.resume(); + } + }, - 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'); - } + end: function() { + if (this.host.end) { + this.host.end(); + } + this._resolve(true); + }, - // 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; + cancel: function() { + if (this.host.cancel) { + this.host.cancel(); } + this._resolve(false); + }, - directives.sort(byPriority); - return directives; - } + complete: function(response) { + var self = this; + if (self._state === INITIAL_STATE) { + self._state = DONE_PENDING_STATE; + self._tick(function() { + self._resolve(response); + }); + } + }, - 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.) + _resolve: function(response) { + if (this._state !== DONE_COMPLETE_STATE) { + forEach(this._doneCallbacks, function(fn) { + fn(response); + }); + this._doneCallbacks.length = 0; + this._state = DONE_COMPLETE_STATE; } } + }; - /** - * 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 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() { + this.$get = ['$$rAF', '$q', '$$AnimateRunner', function($$rAF, $q, $$AnimateRunner) { - return jqLite(nodes); + 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); } - /** - * 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); - }; + // 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; } - /** - * 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 (options.from) { + element.css(options.from); + options.from = null; + } - if (eager) { - return compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext); - } - return (/** @this */function lazyCompilation() { - if (!compiled) { - compiled = compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext); + var closed, runner = new $$AnimateRunner(); + return { + start: run, + end: run + }; - // 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); + function run() { + $$rAF(function() { + applyAnimationContents(); + if (!closed) { + runner.complete(); } - ); + closed = true; + }); + return runner; } - /** - * 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.} preLinkFns - * @param {Array.} 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; + 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; + } + } + }; + }]; +}; - // collect multiblock sections - if (attrStart) { - $compileNode = groupScan(compileNode, attrStart, attrEnd); - } - $template = undefined; +/* global getHash: true, stripHash: false */ - if (terminalPriority > directive.priority) { - break; // prevent further processing of directives - } +function getHash(url) { + var index = url.indexOf('#'); + return index === -1 ? '' : url.substr(index); +} - directiveValue = directive.scope; +function trimEmptyHash(url) { + return url.replace(/#$/, ''); +} + +/** + * ! 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, $$taskTrackerFactory) { + var self = this, + location = window.location, + history = window.history, + setTimeout = window.setTimeout, + clearTimeout = window.clearTimeout, + pendingDeferIds = {}, + taskTracker = $$taskTrackerFactory($log); + + self.isMock = false; + + ////////////////////////////////////////////////////////////// + // Task-tracking API + ////////////////////////////////////////////////////////////// + + // TODO(vojta): remove this temporary api + self.$$completeOutstandingRequest = taskTracker.completeTask; + self.$$incOutstandingRequestCount = taskTracker.incTaskCount; + + // TODO(vojta): prefix this method with $$ ? + self.notifyWhenNoOutstandingRequests = taskTracker.notifyWhenNoPendingTasks; + + ////////////////////////////////////////////////////////////// + // 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). + } + }; - if (directiveValue) { + cacheState(); - // 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); - } - } + /** + * @name $browser#url + * + * @description + * GETTER: + * Without any argument, this method just returns current value of `location.href` (with a + * trailing `#` stripped of if the hash is empty). + * + * 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 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). + return trimEmptyHash(pendingLocation || location.href); + } + }; - newScopeDirective = newScopeDirective || directive; - } + /** + * @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; + }; - directiveName = directive.name; + var urlChangeListeners = [], + urlChangeInit = false; - // 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; + function cacheStateAndFireUrlChange() { + pendingLocation = null; + fireStateOrUrlChange(); + } - for (var scanningIndex = i + 1; candidateDirective = directives[scanningIndex++];) { - if (candidateDirective.transclude && !candidateDirective.$$tlb || candidateDirective.replace && (candidateDirective.templateUrl || candidateDirective.template)) { - mightHaveMultipleTransclusionError = true; - break; - } - } + // 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; - didScanForMultipleTransclusion = true; - } + // Prevent callbacks fo fire twice if both hashchange & popstate were fired. + if (equals(cachedState, lastCachedState)) { + cachedState = lastCachedState; + } - if (!directive.templateUrl && directive.controller) { - controllerDirectives = controllerDirectives || createMap(); - assertNoDuplicate('\'' + directiveName + '\' controller', controllerDirectives[directiveName], directive, $compileNode); - controllerDirectives[directiveName] = directive; - } + lastCachedState = cachedState; + lastHistoryState = cachedState; + } - directiveValue = directive.transclude; + function fireStateOrUrlChange() { + var prevLastHistoryState = lastHistoryState; + cacheState(); - if (directiveValue) { - hasTranscludeDirective = true; + if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { + return; + } - // 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; - } + lastBrowserUrl = self.url(); + lastHistoryState = cachedState; + forEach(urlChangeListeners, function(listener) { + listener(self.url(), cachedState); + }); + } - 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); - - 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 { + /** + * @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 AngularJS: + * - 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 AngularJS 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 - var slots = createMap(); + // html5 history api - popstate event + if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange); + // hashchange event + jqLite(window).on('hashchange', cacheStateAndFireUrlChange); - if (!isObject(directiveValue)) { - $template = jqLite(jqLiteClone(compileNode)).contents(); - } else { + urlChangeInit = true; + } - // We have transclusion slots, - // collect them up, compile them and store their transclusion functions - $template = window.document.createDocumentFragment(); + urlChangeListeners.push(callback); + return callback; + }; - var slotMap = createMap(); - var filledSlots = createMap(); + /** + * @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); + }; - // 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; + /** + * Checks whether the url has changed outside of AngularJS. + * 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; - slotMap[elementSelector] = slotName; + ////////////////////////////////////////////////////////////// + // Misc API + ////////////////////////////////////////////////////////////// - // 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; + /** + * @name $browser#baseHref + * + * @description + * Returns current + * (always relative - without domain) + * + * @returns {string} The current base href + */ + self.baseHref = function() { + var href = baseElement.attr('href'); + return href ? href.replace(/^(https?:)?\/\/[^/]*/, '') : ''; + }; - // 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; - }); + /** + * @name $browser#defer + * @param {function()} fn A function, who's execution should be deferred. + * @param {number=} [delay=0] Number of milliseconds to defer the function execution. + * @param {string=} [taskType=DEFAULT_TASK_TYPE] The type of task that is deferred. + * @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, taskType) { + var timeoutId; - // 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] || window.document.createDocumentFragment(); - slots[slotName].appendChild(node); - } else { - $template.appendChild(node); - } - }); + delay = delay || 0; + taskType = taskType || taskTracker.DEFAULT_TASK_TYPE; - // 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); - } - }); + taskTracker.incTaskCount(taskType); + timeoutId = setTimeout(function() { + delete pendingDeferIds[timeoutId]; + taskTracker.completeTask(fn, taskType); + }, delay); + pendingDeferIds[timeoutId] = taskType; - for (var slotName in slots) { - if (slots[slotName]) { - // Only define a transclusion function if the slot was filled - var slotCompileNodes = jqLite(slots[slotName].childNodes); - slots[slotName] = compilationGenerator(mightHaveMultipleTransclusionError, slotCompileNodes, transcludeFn); - } - } + return timeoutId; + }; - $template = jqLite($template.childNodes); - } - $compileNode.empty(); // clear contents - childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, undefined, undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope }); - childTranscludeFn.$$slots = slots; - } - } + /** + * @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.hasOwnProperty(deferId)) { + var taskType = pendingDeferIds[deferId]; + delete pendingDeferIds[deferId]; + clearTimeout(deferId); + taskTracker.completeTask(noop, taskType); + return true; + } + return false; + }; - if (directive.template) { - hasTemplate = true; - assertNoDuplicate('template', templateDirective, directive, $compileNode); - templateDirective = directive; +} - directiveValue = isFunction(directive.template) ? directive.template($compileNode, templateAttrs) : directive.template; +/** @this */ +function $BrowserProvider() { + this.$get = ['$window', '$log', '$sniffer', '$document', '$$taskTrackerFactory', + function($window, $log, $sniffer, $document, $$taskTrackerFactory) { + return new Browser($window, $document, $log, $sniffer, $$taskTrackerFactory); + }]; +} - directiveValue = denormalizeTemplate(directiveValue); +/** + * @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 + + +
+ + + + +

Cached Values

+
+ + : + +
- if (directive.replace) { - replaceDirective = directive; - if (jqLiteIsTextNode(directiveValue)) { - $template = []; - } else { - $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue))); - } - compileNode = $template[0]; +

Cache Info

+
+ + : + +
+
+
+ + 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); + }; + }]); + + + p { + margin: 10px 0 3px; + } + +
+ */ +function $CacheFactoryProvider() { - if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) { - throw $compileMinErr('tplrt', 'Template for directive \'{0}\' must have exactly one root element. {1}', directiveName, ''); - } + this.$get = function() { + var caches = {}; - replaceWith(jqCollection, $compileNode, compileNode); + function cacheFactory(cacheId, options) { + if (cacheId in caches) { + throw minErr('$cacheFactory')('iid', 'CacheId \'{0}\' is already taken!', cacheId); + } - var newTemplateAttrs = { $attr: {} }; + var size = 0, + stats = extend({}, options, {id: cacheId}), + data = createMap(), + capacity = (options && options.capacity) || Number.MAX_VALUE, + lruHash = createMap(), + freshEnd = null, + staleEnd = null; - // 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)); + /** + * @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] = { - 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); + /** + * @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(key, value) { + if (isUndefined(value)) return; + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key] || (lruHash[key] = {key: key}); - ii = directives.length; - } else { - $compileNode.html(directiveValue); - } + refresh(lruEntry); } - 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 (!(key in data)) size++; + data[key] = value; - if (directive.terminal) { - nodeLinkFn.terminal = true; - terminalPriority = Math.max(terminalPriority, directive.priority); + if (size > capacity) { + this.remove(staleEnd.key); } - } - nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true; - nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective; - nodeLinkFn.templateOnThisElement = hasTemplate; - nodeLinkFn.transclude = childTranscludeFn; - - previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective; + return value; + }, - // might be normal or delayed nodeLinkFn depending on if templateUrl is present - return nodeLinkFn; + /** + * @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(key) { + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key]; - //////////////////// + if (!lruEntry) return; - 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); + refresh(lruEntry); } - } - function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) { - var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element, attrs, scopeBindingInfo; + return data[key]; + }, - 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; - } + /** + * @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(key) { + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key]; - 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 (!lruEntry) return; - if (controllerDirectives) { - elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective); - } + if (lruEntry === freshEnd) freshEnd = lruEntry.p; + if (lruEntry === staleEnd) staleEnd = lruEntry.n; + link(lruEntry.n,lruEntry.p); - 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); - } + delete lruHash[key]; } - // Initialize bindToController bindings - for (var name in elementControllers) { - var controllerDirective = controllerDirectives[name]; - var controller = elementControllers[name]; - var bindings = controllerDirective.$$bindings.bindToController; + if (!(key in data)) return; - controller.instance = controller(); - $element.data('$' + controllerDirective.name + 'Controller', controller.instance); - controller.bindingInfo = initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective); - } + delete data[key]; + size--; + }, - // 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(); - }); - } - }); + /** + * @ngdoc method + * @name $cacheFactory.Cache#removeAll + * @kind function + * + * @description + * Clears the cache object of any entries. + */ + removeAll: function() { + data = createMap(); + size = 0; + lruHash = createMap(); + freshEnd = staleEnd = null; + }, - // 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); - } + /** + * @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() { + data = null; + stats = null; + lruHash = null; + delete caches[cacheId]; + }, - // 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(); - } - }); + /** + * @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: + *
    + *
  • **id**: the id of the cache instance
  • + *
  • **size**: the number of entries kept in the cache instance
  • + *
  • **...**: any additional properties from the options object when creating the + * cache.
  • + *
+ */ + info: function() { + return extend({}, stats, {size: size}); + } + }); - // 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); - } + /** + * 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; } } - 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; - } + /** + * 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 + } + } + } - if (!value) { - var dataName = '$' + name + 'Controller'; - if (inheritType === '^^' && $element[0] && $element[0].nodeType === NODE_TYPE_DOCUMENT) { - // inheritedData() uses the documentElement when it finds the document, so we would - // require from the element itself. - value = null; - } else { - value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName); - } - } + /** + * @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; + }; - 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; - } + /** + * @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]; + }; - 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]; - } + return cacheFactory; + }; +} - var controllerInstance = $controller(controller, locals, true, directive.controllerAs); +/** + * @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 + * + * ``` + * + * **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'); + }]; +} - // 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; - } +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - // 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 }); - } - } +/* ! 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) + */ - /** - * 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; - } - } +/** + * @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}. + * + *
+ * **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}. + *
+ * + * ## 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). + * + *
+ * **Best Practice:** It's recommended to use the "directive definition object" form. + *
+ * + * 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}: '
', // 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; + * }); + * ``` + * + *
+ * **Note:** Any unspecified options will use the default value. You can see the default values below. + *
+ * + * 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 AngularJS 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 & 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 AngularJS'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 life-cycle hooks in the new Angular + * The new Angular also uses life-cycle hooks for its components. While the AngularJS life-cycle hooks are similar there are + * some differences that you should be aware of, especially when it comes to moving your code from AngularJS to Angular: + * + * * AngularJS hooks are prefixed with `$`, such as `$onInit`. Angular hooks are prefixed with `ng`, such as `ngOnInit`. + * * AngularJS hooks can be defined on the controller prototype or added to the controller inside its constructor. + * In Angular 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 AngularJS than you would to + * `ngDoCheck` in Angular. + * * 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 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. + * + * + * + * angular.module('do-check-module', []) + * .component('app', { + * template: + * 'Month: ' + + * 'Date: {{ $ctrl.date }}' + + * '', + * controller: function() { + * this.date = new Date(); + * this.month = this.date.getMonth(); + * this.updateDate = function() { + * this.date.setMonth(this.month); + * }; + * } + * }) + * .component('test', { + * bindings: { date: '<' }, + * template: + * '
{{ $ctrl.log | json }}
', + * 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; + * } + * }; + * } + * }); + *
+ * + * + * + *
+ * + * 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) + * + * + * + *
+ * + * + *
{{ items }}
+ * + *
+ *
+ * + * angular.module('do-check-module', []) + * .component('test', { + * bindings: { items: '<' }, + * template: + * '
{{ $ctrl.log | json }}
', + * 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); + * } + * }; + * } + * }); + *
+ *
+ * + * + * ### 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 `` 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 `` 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. 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 `` and directive definition of + * `scope: { localModel:'` 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})`. + * + * All 4 kinds of bindings (`@`, `=`, `<`, and `&`) can be made optional by adding `?` to the expression. + * The marker must come after the mode and before the attribute name. + * See the {@link error/$compile/iscp Invalid Isolate Scope Definition error} for definition examples. + * This is useful to refine the interface directives provide. + * One subtle difference between optional and non-optional happens **when the binding attribute is not + * set**: + * - the binding is optional: the property will not be defined + * - the binding is not optional: the property is defined + * + * ```js + *app.directive('testDir', function() { + return { + scope: { + notoptional: '=', + optional: '=?', + }, + bindToController: true, + controller: function() { + this.$onInit = function() { + console.log(this.hasOwnProperty('notoptional')) // true + console.log(this.hasOwnProperty('optional')) // false } - return false; } + } + }) + *``` + * + * + * ##### Combining directives with different scope defintions + * + * 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. + * + * 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 ``). + * * 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): `` + * * `A` - Attribute (default): `
` + * * `C` - Class: `
` + * * `M` - Comment: `` + * + * + * #### `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 `` and ``. + * + * * `html` - All root nodes in the template are HTML. Root nodes may also be + * top-level elements such as `` or ``. + * * `svg` - The root nodes in the template are SVG elements (excluding ``). + * * `math` - The root nodes in the template are MathML elements (excluding ``). + * + * 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 `
{{delete_str}}
`. + * * 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` + *
+ * **Note:** `replace` is deprecated in AngularJS and has been removed in the new Angular (v2+). + *
+ * + * 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)` + * + *
+ * **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. + *
+ + *
+ * **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. + *
+ * + *
+ * **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. + *
- /** - * 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]; + * 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. + * + *
+ * **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}. + *
+ * + * 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 `` 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. + * + *
+ * 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. + *
+ * + * 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. + * + *
+ * **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. + *
+ * + * 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(); + * ``` + * + *
+ * **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. + *
+ * + * 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 + *
+ *
+ *
+ *
+ *
+ *
+ * ``` + * + * 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 + * + *
+ * **Note**: Typically directives are registered with `module.directive`. The example below is + * to illustrate how `$compile` works. + *
+ * + + + +
+
+
+
+
+
+ + it('should auto compile', function() { + var textarea = $('textarea'); + var output = $('div[compile]'); + // The initial state reads 'Hello AngularJS'. + expect(output.getText()).toBe('Hello AngularJS'); + textarea.clear(); + textarea.sendKeys('{{name}}!'); + expect(output.getText()).toBe('AngularJS!'); + }); + +
- if (beforeTemplateLinkNode !== beforeTemplateCompileNode) { - var oldClasses = beforeTemplateLinkNode.className; + * + * + * @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. + * + *
+ * **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. + *
+ * + * @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:
`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 + * AngularJS 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('

{{total}}

')(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('

{{total}}

'), + * 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 AngularJS 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. - if (!(previousCompileContext.hasElementTranscludeDirective && origAsyncDirective.replace)) { - // it was cloned therefore we have to clone as well. - linkNode = jqLiteClone(compileNode); - } - replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode); + * @knownIssue - // 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); - } - }); + ### Issues with `replace: true` + * + *
+ * **Note**: {@link $compile#-replace- `replace: true`} is deprecated and not recommended to use, + * mainly due to the issues listed here. It has been completely removed in the new Angular. + *
+ * + * #### Attribute values are not merged + * + * When a `replace` directive encounters the same attribute on the original and the replace node, + * it will simply deduplicate the attribute and join the values with a space or with a `;` in case of + * the `style` attribute. + * ```html + * Original Node: + * Replace Template: + * Result: + * ``` + * + * That means attributes that contain AngularJS expressions will not be merged correctly, e.g. + * {@link ngShow} or {@link ngClass} will cause a {@link $parse} error: + * + * ```html + * Original Node: + * Replace Template: + * Result: + * ``` + * + * See issue [#5695](https://github.com/angular/angular.js/issues/5695). + * + * #### Directives are not deduplicated before compilation + * + * When the original node and the replace template declare the same directive(s), they will be + * {@link guide/compiler#double-compilation-and-how-to-avoid-it compiled twice} because the compiler + * does not deduplicate them. In many cases, this is not noticable, but e.g. {@link ngModel} will + * attach `$formatters` and `$parsers` twice. + * + * See issue [#2573](https://github.com/angular/angular.js/issues/2573). + * + * #### `transclude: element` in the replace template root can have unexpected effects + * + * When the replace template has a directive at the root node that uses + * {@link $compile#-transclude- `transclude: element`}, e.g. + * {@link ngIf} or {@link ngRepeat}, the DOM structure or scope inheritance can be incorrect. + * See the following issues: + * + * - Incorrect scope on replaced element: + * [#9837](https://github.com/angular/angular.js/issues/9837) + * - Different DOM between `template` and `templateUrl`: + * [#10612](https://github.com/angular/angular.js/issues/14326) + * + */ - 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); - } - }; - } +/** + * @ngdoc directive + * @name ngProp + * @restrict A + * @element ANY + * + * @usage + * + * ```html + * + * + * ``` + * + * or with uppercase letters in property (e.g. "propName"): + * + * + * ```html + * + * + * ``` + * + * + * @description + * The `ngProp` directive binds an expression to a DOM element property. + * `ngProp` allows writing to arbitrary properties by including + * the property name in the attribute, e.g. `ng-prop-value="'my value'"` binds 'my value' to + * the `value` property. + * + * Usually, it's not necessary to write to properties in AngularJS, as the built-in directives + * handle the most common use cases (instead of the above example, you would use {@link ngValue}). + * + * However, [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) + * often use custom properties to hold data, and `ngProp` can be used to provide input to these + * custom elements. + * + * ## Binding to camelCase properties + * + * Since HTML attributes are case-insensitive, camelCase properties like `innerHTML` must be escaped. + * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so + * `innerHTML` must be written as `ng-prop-inner_h_t_m_l="expression"` (Note that this is just an + * example, and for binding HTML {@link ngBindHtml} should be used. + * + * ## Security + * + * Binding expressions to arbitrary properties poses a security risk, as properties like `innerHTML` + * can insert potentially dangerous HTML into the application, e.g. script tags that execute + * malicious code. + * For this reason, `ngProp` applies Strict Contextual Escaping with the {@link ng.$sce $sce service}. + * This means vulnerable properties require their content to be "trusted", based on the + * context of the property. For example, the `innerHTML` is in the `HTML` context, and the + * `iframe.src` property is in the `RESOURCE_URL` context, which requires that values written to + * this property are trusted as a `RESOURCE_URL`. + * + * This can be set explicitly by calling $sce.trustAs(type, value) on the value that is + * trusted before passing it to the `ng-prop-*` directive. There are exist shorthand methods for + * each context type in the form of {@link ng.$sce#trustAsResourceUrl $sce.trustAsResourceUrl()} et al. + * + * In some cases you can also rely upon automatic sanitization of untrusted values - see below. + * + * Based on the context, other options may exist to mark a value as trusted / configure the behavior + * of {@link ng.$sce}. For example, to restrict the `RESOURCE_URL` context to specific origins, use + * the {@link $sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist()} + * and {@link $sceDelegateProvider#resourceUrlBlacklist resourceUrlBlacklist()}. + * + * {@link ng.$sce#what-trusted-context-types-are-supported- Find out more about the different context types}. + * + * ### HTML Sanitization + * + * By default, `$sce` will throw an error if it detects untrusted HTML content, and will not bind the + * content. + * However, if you include the {@link ngSanitize ngSanitize module}, it will try to sanitize the + * potentially dangerous HTML, e.g. strip non-whitelisted tags and attributes when binding to + * `innerHTML`. + * + * @example + * ### Binding to different contexts + * + * + * + * angular.module('exampleNgProp', []) + * .component('main', { + * templateUrl: 'main.html', + * controller: function($sce) { + * this.safeContent = 'Safe content'; + * this.unsafeContent = ''; + * this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent); + * } + * }); + * + * + *
+ *
+ * Binding to a property without security context: + *
+ * innerText (safeContent) + *
+ * + *
+ * "Safe" content that requires a security context will throw because the contents could potentially be dangerous ... + *
+ * innerHTML (safeContent) + *
+ * + *
+ * ... so that actually dangerous content cannot be executed: + *
+ * innerHTML (unsafeContent) + *
+ * + *
+ * ... but unsafe Content that has been trusted explicitly works - only do this if you are 100% sure! + *
+ * innerHTML (trustedUnsafeContent) + *
+ *
+ *
+ * + *
+ *
+ * + * .prop-unit { + * margin-bottom: 10px; + * } + * + * .prop-binding { + * min-height: 30px; + * border: 1px solid blue; + * } + * + * .prop-note { + * font-family: Monospace; + * } + * + *
+ * + * + * @example + * ### Binding to innerHTML with ngSanitize + * + * + * + * angular.module('exampleNgProp', ['ngSanitize']) + * .component('main', { + * templateUrl: 'main.html', + * controller: function($sce) { + * this.safeContent = 'Safe content'; + * this.unsafeContent = ''; + * this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent); + * } + * }); + * + * + *
+ *
+ * "Safe" content will be sanitized ... + *
+ * innerHTML (safeContent) + *
+ * + *
+ * ... as will dangerous content: + *
+ * innerHTML (unsafeContent) + *
+ * + *
+ * ... and content that has been trusted explicitly works the same as without ngSanitize: + *
+ * innerHTML (trustedUnsafeContent) + *
+ *
+ *
+ * + *
+ *
+ * + * .prop-unit { + * margin-bottom: 10px; + * } + * + * .prop-binding { + * min-height: 30px; + * border: 1px solid blue; + * } + * + * .prop-note { + * font-family: Monospace; + * } + * + *
+ * + */ - /** - * 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; +/** @ngdoc directive + * @name ngOn + * @restrict A + * @element ANY + * + * @usage + * + * ```html + * + * + * ``` + * + * or with uppercase letters in property (e.g. "eventName"): + * + * + * ```html + * + * + * ``` + * + * @description + * The `ngOn` directive adds an event listener to a DOM element via + * {@link angular.element angular.element().on()}, and evaluates an expression when the event is + * fired. + * `ngOn` allows adding listeners for arbitrary events by including + * the event name in the attribute, e.g. `ng-on-drop="onDrop()"` executes the 'onDrop()' expression + * when the `drop` event is fired. + * + * AngularJS provides specific directives for many events, such as {@link ngClick}, so in most + * cases it is not necessary to use `ngOn`. However, AngularJS does not support all events + * (e.g. the `drop` event in the example above), and new events might be introduced in later DOM + * standards. + * + * Another use-case for `ngOn` is listening to + * [custom events](https://developer.mozilla.org/docs/Web/Guide/Events/Creating_and_triggering_events) + * fired by + * [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements). + * + * ## Binding to camelCase properties + * + * Since HTML attributes are case-insensitive, camelCase properties like `myEvent` must be escaped. + * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so + * `myEvent` must be written as `ng-on-my_event="expression"`. + * + * @example + * ### Bind to built-in DOM events + * + * + * + * angular.module('exampleNgOn', []) + * .component('main', { + * templateUrl: 'main.html', + * controller: function() { + * this.clickCount = 0; + * this.mouseoverCount = 0; + * + * this.loadingState = 0; + * } + * }); + * + * + *
+ * This is equivalent to `ngClick` and `ngMouseover`:
+ *
+ * clickCount: {{$ctrl.clickCount}}
+ * mouseover: {{$ctrl.mouseoverCount}} + * + *
+ * + * For the `error` and `load` event on images no built-in AngularJS directives exist:
+ *
+ *
+ * Image is loading + * Image load error + * Image loaded successfully + *
+ *
+ *
+ * + *
+ *
+ *
+ * + * + * @example + * ### Bind to custom DOM events + * + * + * + * angular.module('exampleNgOn', []) + * .component('main', { + * templateUrl: 'main.html', + * controller: function() { + * this.eventLog = ''; + * + * this.listener = function($event) { + * this.eventLog = 'Event with type "' + $event.type + '" fired at ' + $event.detail; + * }; + * } + * }) + * .component('childComponent', { + * templateUrl: 'child.html', + * controller: function($element) { + * this.fireEvent = function() { + * var event = new CustomEvent('customtype', { detail: new Date()}); + * + * $element[0].dispatchEvent(event); + * }; + * } + * }); + * + * + *
+ * Event log: {{$ctrl.eventLog}} + *
+ * + + * + * + *
+ *
+ *
+ */ + +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*([\w$]*)$/; + + var bindings = createMap(); + + forEach(scope, function(definition, scopeName) { + definition = definition.trim(); + + if (definition in bindingCache) { + bindings[scopeName] = bindingCache[definition]; + return; } + var match = definition.match(LOCAL_REGEXP); - 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)); - } + 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]; } + }); - 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; - }); - }; - } - }); - } - } + return bindings; + } - function wrapTemplate(type, template) { - type = lowercase(type || 'html'); - switch (type) { - case 'svg': - case 'math': - var wrapper = window.document.createElement('div'); - wrapper.innerHTML = '<' + type + '>' + template + ''; - return wrapper.childNodes[0].childNodes; - default: - return template; - } + 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 getTrustedAttrContext(nodeName, attrNormalizedName) { - if (attrNormalizedName === 'srcdoc') { - return $sce.HTML; - } - // All nodes with src attributes require a RESOURCE_URL value, except for - // img and various html5 media nodes, which require the MEDIA_URL context. - if (attrNormalizedName === 'src' || attrNormalizedName === 'ngSrc') { - if (['img', 'video', 'audio', 'source', 'track'].indexOf(nodeName) === -1) { - return $sce.RESOURCE_URL; - } - return $sce.MEDIA_URL; - } else if (attrNormalizedName === 'xlinkHref') { - // Some xlink:href are okay, most aren't - if (nodeName === 'image') return $sce.MEDIA_URL; - if (nodeName === 'a') return $sce.URL; - return $sce.RESOURCE_URL; - } else if ( - // Formaction - nodeName === 'form' && attrNormalizedName === 'action' || - // If relative URLs can go where they are not expected to, then - // all sorts of trust issues can arise. - nodeName === 'base' && attrNormalizedName === 'href' || - // links can be stylesheets or imports, which can run script in the current origin - nodeName === 'link' && attrNormalizedName === 'href') { - return $sce.RESOURCE_URL; - } else if (nodeName === 'a' && (attrNormalizedName === 'href' || attrNormalizedName === 'ngHref')) { - return $sce.URL; - } - } + 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 getTrustedPropContext(nodeName, propNormalizedName) { - var prop = propNormalizedName.toLowerCase(); - return PROP_CONTEXTS[nodeName + '|' + prop] || PROP_CONTEXTS['*|' + prop]; - } + function getDirectiveRequire(directive) { + var require = directive.require || (directive.controller && directive.name); - function sanitizeSrcsetPropertyValue(value) { - return sanitizeSrcset($sce.valueOf(value), 'ng-prop-srcset'); - } - function addPropertyDirective(node, directives, attrName, propName) { - if (EVENT_HANDLER_ATTR_REGEXP.test(propName)) { - throw $compileMinErr('nodomevents', 'Property bindings for HTML DOM event properties are disallowed'); - } + 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; + }); + } - var nodeName = nodeName_(node); - var trustedContext = getTrustedPropContext(nodeName, propName); + return require; + } - var sanitizer = identity; - // Sanitize img[srcset] + source[srcset] values. - if (propName === 'srcset' && (nodeName === 'img' || nodeName === 'source')) { - sanitizer = sanitizeSrcsetPropertyValue; - } else if (trustedContext) { - sanitizer = $sce.getTrusted.bind($sce, trustedContext); - } + function getDirectiveRestrict(restrict, name) { + if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) { + throw $compileMinErr('badrestrict', + 'Restrict property \'{0}\' of directive \'{1}\' is invalid', + restrict, + name); + } - directives.push({ - priority: 100, - compile: function ngPropCompileFn(_, attr) { - var ngPropGetter = $parse(attr[attrName]); - var ngPropWatch = $parse(attr[attrName], function sceValueOf(val) { - // Unwrap the value to compare the actual inner safe value, not the wrapper object. - return $sce.valueOf(val); - }); + return restrict || 'EA'; + } - return { - pre: function ngPropPreLinkFn(scope, $element) { - function applyPropValue() { - var propValue = ngPropGetter(scope); - $element.prop(propName, sanitizer(propValue)); + /** + * @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. ngBind which + * will match as ng-bind), 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); } - - applyPropValue(); - scope.$watch(ngPropWatch, applyPropValue); + 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); } - }; - } - }); - } - - function addEventDirective(directives, attrName, eventName) { - directives.push(createEventDirective($parse, $rootScope, $exceptionHandler, attrName, eventName, /*forceAsync=*/false)); + }); + return directives; + }]); } + hasDirectives[name].push(directiveFactory); + } else { + forEach(name, reverseParams(registerDirective)); + } + return this; + }; - function addAttrInterpolateDirective(node, directives, value, name, isNgAttr) { - var nodeName = nodeName_(node); - var trustedContext = getTrustedAttrContext(nodeName, 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; + /** + * @ngdoc method + * @name $compileProvider#component + * @module ng + * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), + * 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=}` - 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: '
My name is {{$ctrl.name}}
', + * controller: function() { + * this.name = 'shahar'; + * } + * }); + * + * myMod.component('myComp', { + * template: '
My name is {{$ctrl.name}}
', + * 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}. + * + *
+ * 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; + } - if (name === 'multiple' && nodeName === 'select') { - throw $compileMinErr('selmulti', 'Binding to the \'multiple\' attribute is not supported. Element: {0}', startingTag(node)); - } + var controller = options.controller || function() {}; - if (EVENT_HANDLER_ATTR_REGEXP.test(name)) { - throw $compileMinErr('nodomevents', 'Interpolations for HTML DOM event attributes are disallowed'); + 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; } - - 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 AngularJS'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('*')); + 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 + }; - // Update the jqLite collection to only contain the `newNode` - for (i = 1; i < removeCount; i++) { - delete elementsToRemove[i]; - } - elementsToRemove[0] = newNode; - elementsToRemove.length = 1; - } + // Copy annotations (starting with $) over to the DDO + forEach(options, function(val, key) { + if (key.charAt(0) === '$') ddo[key] = val; + }); - function cloneAndAnnotateFn(fn, annotation) { - return extend(function () { - return fn.apply(null, arguments); - }, fn, annotation); - } + return ddo; + } - function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) { - try { - linkFn(scope, $element, attrs, controllers, transcludeFn); - } catch (e) { - $exceptionHandler(e, startingTag($element)); - } - } + // 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 AngularJS looks for annotations on the factory function but we can't remove + // it from 1.5.x yet. - function strictBindingsCheck(attrName, directiveName) { - if (strictComponentBindingsEnabled) { - throw $compileMinErr('missingattr', 'Attribute \'{0}\' of \'{1}\' is non-optional and must be set!', attrName, directiveName); - } + // 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; } + }); - // 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 AngularJS 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 isLiteral = parentGet.literal; - - var initialValue = destination[scopeName] = parentGet(scope); - initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]); - - removeWatch = scope[definition.collection ? '$watchCollection' : '$watch'](parentGet, function parentValueWatchAction(newValue, oldValue) { - if (oldValue === newValue) { - if (oldValue === initialValue || isLiteral && equals(oldValue, initialValue)) { - return; - } - oldValue = initialValue; - } - recordChanges(scopeName, newValue, oldValue); - destination[scopeName] = newValue; - }); - - 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); - } - } + factory.$inject = ['$injector']; - function triggerOnChangesHook() { - destination.$onChanges(changes); - // Now clear the changes so that we schedule onChanges when more changes arrive - changes = undefined; - } + return this.directive(name, factory); + }; - 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; + /** + * @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(); + } }; - 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 + * @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. */ - function directiveNormalize(name) { - return name.replace(PREFIX_REGEXP, '').replace(SPECIAL_CHARS_REGEXP, function (_, letter, offset) { - return offset ? letter.toUpperCase() : letter; - }); - } + this.imgSrcSanitizationWhitelist = function(regexp) { + if (isDefined(regexp)) { + $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp); + return this; + } else { + return $$sanitizeUriProvider.imgSrcSanitizationWhitelist(); + } + }; /** - * @ngdoc type - * @name $compile.directive.Attributes + * @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 - * 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 AngularJS: + * 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. ``. + * + * 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#strictComponentBindingsEnabled * - * ``` - * - * ``` + * @param {boolean=} enabled update the strictComponentBindingsEnabled state if provided, + * otherwise 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 the strict component bindings check. If enabled, the + * compiler will enforce that all scope / controller bindings of a + * {@link $compileProvider#directive directive} / {@link $compileProvider#component component} + * that are not set as optional with `?`, must be provided when the directive is instantiated. + * If not provided, the compiler will throw the + * {@link error/$compile/missingattr $compile:missingattr error}. + * + * 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 property - * @name $compile.directive.Attributes#$attr + * @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 - * 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. + * + * 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 $compile.directive.Attributes#$set - * @kind function + * @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; + }; + + + /** + * The security context of DOM Properties. + * @private + */ + var PROP_CONTEXTS = createMap(); + + /** + * @ngdoc method + * @name $compileProvider#addPropertySecurityContext * @description - * Set DOM element attribute value. * + * Defines the security context for DOM properties bound by ng-prop-*. + * + * @param {string} elementName The element name or '*' to match any element. + * @param {string} propertyName The DOM property name. + * @param {string} ctx The {@link $sce} security context in which this value is safe for use, e.g. `$sce.URL` + * @returns {object} `this` for chaining + */ + this.addPropertySecurityContext = function(elementName, propertyName, ctx) { + var key = (elementName.toLowerCase() + '|' + propertyName.toLowerCase()); + + if (key in PROP_CONTEXTS && PROP_CONTEXTS[key] !== ctx) { + throw $compileMinErr('ctxoverride', 'Property context \'{0}.{1}\' already set to \'{2}\', cannot override to \'{3}\'.', elementName, propertyName, PROP_CONTEXTS[key], ctx); + } + + PROP_CONTEXTS[key] = ctx; + return this; + }; + + /* Default property contexts. * - * @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. + * Copy of https://github.com/angular/angular/blob/6.0.6/packages/compiler/src/schema/dom_security_schema.ts#L31-L58 + * Changing: + * - SecurityContext.* => SCE_CONTEXTS/$sce.* + * - STYLE => CSS + * - various URL => MEDIA_URL + * - *|formAction, form|action URL => RESOURCE_URL (like the attribute) */ + (function registerNativePropertyContexts() { + function registerContext(ctx, values) { + forEach(values, function(v) { PROP_CONTEXTS[v.toLowerCase()] = ctx; }); + } + + registerContext(SCE_CONTEXTS.HTML, [ + 'iframe|srcdoc', + '*|innerHTML', + '*|outerHTML' + ]); + registerContext(SCE_CONTEXTS.CSS, ['*|style']); + registerContext(SCE_CONTEXTS.URL, [ + 'area|href', 'area|ping', + 'a|href', 'a|ping', + 'blockquote|cite', + 'body|background', + 'del|cite', + 'input|src', + 'ins|cite', + 'q|cite' + ]); + registerContext(SCE_CONTEXTS.MEDIA_URL, [ + 'audio|src', + 'img|src', 'img|srcset', + 'source|src', 'source|srcset', + 'track|src', + 'video|src', 'video|poster' + ]); + registerContext(SCE_CONTEXTS.RESOURCE_URL, [ + '*|formAction', + 'applet|code', 'applet|codebase', + 'base|href', + 'embed|src', + 'frame|src', + 'form|action', + 'head|profile', + 'html|manifest', + 'iframe|src', + 'link|href', + 'media|src', + 'object|codebase', 'object|data', + 'script|src' + ]); + })(); + + + this.$get = [ + '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse', + '$controller', '$rootScope', '$sce', '$animate', + function($injector, $interpolate, $exceptionHandler, $templateRequest, $parse, + $controller, $rootScope, $sce, $animate) { + + 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() { + for (var i = 0, ii = onChangesQueue.length; i < ii; ++i) { + try { + onChangesQueue[i](); + } catch (e) { + $exceptionHandler(e); + } + } + // Reset the queue to trigger a new schedule next time there is a change + onChangesQueue = undefined; + }); + } finally { + onChangesTtl++; + } + } - /** - * 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; + function sanitizeSrcset(value, invokeType) { + if (!value) { + return value; + } + if (!isString(value)) { + throw $compileMinErr('srcset', 'Can\'t pass trusted values to `{0}`: "{1}"', invokeType, value.toString()); } - values += (values.length > 0 ? ' ' : '') + token; - } - return values; - } - function removeComments(jqNodes) { - jqNodes = jqLite(jqNodes); - var i = jqNodes.length; + // Such values are a bit too complex to handle automatically inside $sce. + // Instead, we sanitize each of the URIs individually, which works, even dynamically. - if (i <= 1) { - return jqNodes; - } + // It's not possible to work around this using `$sce.trustAsMediaUrl`. + // If you want to programmatically set explicitly trusted unsafe URLs, you should use + // `$sce.trustAsHtml` on the whole `img` tag and inject it into the DOM using the + // `ng-bind-html` directive. - 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); + 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 += $sce.getTrustedMediaUrl(trim(rawUris[innerIdx])); + // add the descriptor + result += ' ' + trim(rawUris[innerIdx + 1]); } - } - return jqNodes; - } - var $controllerMinErr = minErr('$controller'); + // split the last item into uri and descriptor + var lastTuple = trim(rawUris[i * 2]).split(/\s/); - 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]; + // sanitize the last uri + result += $sce.getTrustedMediaUrl(trim(lastTuple[0])); + + // and add the last descriptor if any + if (lastTuple.length === 2) { + result += (' ' + trim(lastTuple[1])); + } + return result; } - } - /** - * @ngdoc provider - * @name $controllerProvider - * @this - * - * @description - * The {@link ng.$controller $controller service} is used by AngularJS to create new - * controllers. - * - * This provider allows controller registration via the - * {@link ng.$controllerProvider#register register} method. - */ - function $ControllerProvider() { - var controllers = {}; - /** - * @ngdoc method - * @name $controllerProvider#has - * @param {string} name Controller name to check. - */ - this.has = function (name) { - return controllers.hasOwnProperty(name); - }; + function Attributes(element, attributesToCopy) { + if (attributesToCopy) { + var keys = Object.keys(attributesToCopy); + var i, l, key; - /** - * @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); + for (i = 0, l = keys.length; i < l; i++) { + key = keys[i]; + this[key] = attributesToCopy[key]; + } } else { - controllers[name] = constructor; + this.$attr = {}; } - }; - this.$get = ['$injector', function ($injector) { + this.$$element = element; + } + Attributes.prototype = { /** - * @ngdoc service - * @name $controller - * @requires $injector + * @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. * - * @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: + * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives} * - * * check if a controller with given name is registered via `$controllerProvider` - * * check if evaluating the string on the current scope returns a constructor + * @param {string} name Name to normalize + */ + $normalize: directiveNormalize, + + + /** + * @ngdoc method + * @name $compile.directive.Attributes#$addClass + * @kind function * - * 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. + * @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 {Object} locals Injection locals for Controller. - * @return {Object} Instance of given controller. + * @param {string} classVal The className value that will be added to the element + */ + $addClass: function(classVal) { + if (classVal && classVal.length > 0) { + $animate.addClass(this.$$element, classVal); + } + }, + + /** + * @ngdoc method + * @name $compile.directive.Attributes#$removeClass + * @kind function * * @description - * `$controller` service is responsible for instantiating controllers. + * 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. * - * 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). + * @param {string} classVal The className value that will be removed from the element */ - 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); + $removeClass: function(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(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); + } + }, - if (!expression) { - throw $controllerMinErr('ctrlreg', 'The controller with the name \'{0}\' is not registered.', constructor); + /** + * 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(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); - assertArgFn(expression, constructor, true); + // Sanitize img[srcset] values. + if (nodeName === 'img' && key === 'srcset') { + this[key] = value = sanitizeSrcset(value, '$set(\'srcset\', value)'); } - 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); + 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); + } } + } - 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); - } + // fire observers + var $$observers = this.$$observers; + if ($$observers) { + forEach($$observers[observer], function(fn) { + try { + fn(value); + } catch (e) { + $exceptionHandler(e); } - return instance; - }, { - instance: instance, - identifier: identifier }); } + }, - instance = $injector.instantiate(expression, locals, constructor); - if (identifier) { - addIdentifier(locals, identifier, instance, constructor || expression.name); - } + /** + * @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(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 instance; - }; + return function() { + arrayRemove(listeners, fn); + }; + } + }; - 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); - } + 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 = ''; + 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); + } - locals.$scope[identifier] = instance; + 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. } - }]; - } + } - /** - * @ngdoc service - * @name $document - * @requires $window - * @this - * - * @description - * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object. - * - * @example - - -
-

$document title:

-

window.document title:

-
-
- - angular.module('documentExample', []) - .controller('ExampleController', ['$scope', '$document', function($scope, $document) { - $scope.title = $document[0].title; - $scope.windowTitle = angular.element(window.document)[0].title; - }]); - -
- */ - 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; + var startSymbol = $interpolate.startSymbol(), + endSymbol = $interpolate.endSymbol(), + denormalizeTemplate = (startSymbol === '{{' && endSymbol === '}}') + ? identity + : function denormalizeTemplate(template) { + return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol); + }, + NG_PREFIX_BINDING = /^ng(Attr|Prop|On)([A-Z].*)$/; + var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/; - $document.on('visibilitychange', changeListener); + compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) { + var bindings = $element.data('$binding') || []; - $rootScope.$on('$destroy', function () { - $document.off('visibilitychange', changeListener); - }); + 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; - function changeListener() { - hidden = doc.hidden; + 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 function () { - return hidden; - }; - }]; - } + return compile; - /** - * @ngdoc service - * @name $exceptionHandler - * @requires ng.$log - * @this - * - * @description - * Any uncaught exception in AngularJS 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); - * }; - * }]); - * ``` - * - *
- * 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; + 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.'); } - 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'); + assertArg(scope, 'scope'); - function serializeValue(v) { - if (isObject(v)) { - return isDate(v) ? v.toISOString() : toJson(v); - } - return v; - } + 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(); + } - /** @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. - */ + options = options || {}; + var parentBoundTranscludeFn = options.parentBoundTranscludeFn, + transcludeControllers = options.transcludeControllers, + futureParentElement = options.futureParentElement; - 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))); - } - }); + // 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; + } - return parts.join('&'); - }; - }; - } + 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('
').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; + } - /** @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 (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 { - if (isFunction(toSerialize)) { - toSerialize = toSerialize(); - } - parts.push(encodeUriQuery(prefix) + '=' + (toSerialize == null ? '' : encodeUriQuery(serializeValue(toSerialize)))); + if (transcludeControllers) { + for (var controllerName in transcludeControllers) { + $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance); } } - }; - }; - } - function defaultHttpResponseTransform(data, headers) { - if (isString(data)) { - // Strip json vulnerability protection prefix and trim whitespace - var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim(); + compile.$$addScopeInfo($linkNode, scope); - if (tempData) { - var contentType = headers('Content-Type'); - var hasJsonContentType = contentType && contentType.indexOf(APPLICATION_JSON) === 0; + if (cloneConnectFn) cloneConnectFn($linkNode, scope); + if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn); - 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); - } + 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'; } } - return data; - } + /** + * 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; - 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; + for (var i = 0; i < nodeList.length; i++) { + attrs = new Attributes(); - function fillInParsed(key, val) { - if (key) { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - } + // Support: IE 11 only + // Workaround for #11781 and #14924 + if (msie === 11) { + mergeConsecutiveTextNodes(nodeList, i, notLiveList); + } - 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)); - }); - } + // 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); - return parsed; - } + nodeLinkFn = (directives.length) + ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement, + null, [], [], previousCompileContext) + : null; - /** - * 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; + if (nodeLinkFn && nodeLinkFn.scope) { + compile.$$addScopeClass(attrs.$$element); + } - return function (name) { - if (!headersObj) headersObj = parseHeaders(headers); + childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || + !(childNodes = nodeList[i].childNodes) || + !childNodes.length) + ? null + : compileNodes(childNodes, + nodeLinkFn ? ( + (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement) + && nodeLinkFn.transclude) : transcludeFn); - if (name) { - var value = headersObj[lowercase(name)]; - if (value === undefined) { - value = null; + if (nodeLinkFn || childLinkFn) { + linkFns.push(i, nodeLinkFn, childLinkFn); + linkFnFound = true; + nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn; } - return value; + + //use the previous context only for the first element in the virtual group + previousCompileContext = null; } - return headersObj; - }; - } + // return a linking function if we have found anything, null otherwise + return linkFnFound ? compositeLinkFn : null; - /** - * 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.)} fns Function or an array of functions. - * @returns {*} Transformed data. - */ - function transformData(data, headers, status, fns) { - if (isFunction(fns)) { - return fns(data, headers, status); - } + function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) { + var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn; + var stableNodeList; - forEach(fns, function (fn) { - data = fn(data, headers, status); - }); - return data; - } + 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); - function isSuccess(status) { - return 200 <= status && status < 300; - } + // 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; + } - /** - * @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}` - 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)}` - - * 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)}` - - * 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) - }, + for (i = 0, ii = linkFns.length; i < ii;) { + node = stableNodeList[linkFns[i++]]; + nodeLinkFn = linkFns[i++]; + childLinkFn = linkFns[i++]; - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', + if (nodeLinkFn) { + if (nodeLinkFn.scope) { + childScope = scope.$new(); + compile.$$addScopeInfo(jqLite(node), childScope); + } else { + childScope = scope; + } - paramSerializer: '$httpParamSerializer', + if (nodeLinkFn.transcludeOnThisElement) { + childBoundTranscludeFn = createBoundTranscludeFn( + scope, nodeLinkFn.transclude, parentBoundTranscludeFn); - jsonpCallbackParam: 'callback' - }; + } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) { + childBoundTranscludeFn = parentBoundTranscludeFn; - 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; - }; + } else if (!parentBoundTranscludeFn && transcludeFn) { + childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn); - /** - * @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 = []; + } else { + childBoundTranscludeFn = null; + } - /** - * @ngdoc property - * @name $httpProvider#xsrfWhitelistedOrigins - * @description - * - * Array containing URLs whose origins are trusted to receive the XSRF token. See the - * {@link ng.$http#security-considerations Security Considerations} sections for more details on - * XSRF. - * - * **Note:** An "origin" consists of the [URI scheme](https://en.wikipedia.org/wiki/URI_scheme), - * the [hostname](https://en.wikipedia.org/wiki/Hostname) and the - * [port number](https://en.wikipedia.org/wiki/Port_(computer_networking). For `http:` and - * `https:`, the port number can be omitted if using th default ports (80 and 443 respectively). - * Examples: `http://example.com`, `https://api.example.com:9876` - * - *
- * It is not possible to whitelist specific URLs/paths. The `path`, `query` and `fragment` parts - * of a URL will be ignored. For example, `https://foo.com/path/bar?query=baz#fragment` will be - * treated as `https://foo.com`, meaning that **all** requests to URLs starting with - * `https://foo.com/` will include the XSRF token. - *
- * - * @example - * - * ```js - * // App served from `https://example.com/`. - * angular. - * module('xsrfWhitelistedOriginsExample', []). - * config(['$httpProvider', function($httpProvider) { - * $httpProvider.xsrfWhitelistedOrigins.push('https://api.example.com'); - * }]). - * run(['$http', function($http) { - * // The XSRF token will be sent. - * $http.get('https://api.example.com/preferences').then(...); - * - * // The XSRF token will NOT be sent. - * $http.get('https://stats.example.com/activity').then(...); - * }]); - * ``` - */ - var xsrfWhitelistedOrigins = this.xsrfWhitelistedOrigins = []; + nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn); - this.$get = ['$browser', '$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector', '$sce', function ($browser, $httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector, $sce) { + } else if (childLinkFn) { + childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn); + } + } + } + } - var defaultCache = $cacheFactory('$http'); + function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { + var node = nodeList[idx]; + var parent = node.parentNode; + var sibling; - /** - * Make sure that default param serializer is exposed as a function - */ - defaults.paramSerializer = isString(defaults.paramSerializer) ? $injector.get(defaults.paramSerializer) : defaults.paramSerializer; + if (node.nodeType !== NODE_TYPE_TEXT) { + return; + } - /** - * 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 = []; + while (true) { + sibling = parent ? node.nextSibling : nodeList[idx + 1]; + if (!sibling || sibling.nodeType !== NODE_TYPE_TEXT) { + break; + } - forEach(interceptorFactories, function (interceptorFactory) { - reversedInterceptors.unshift(isString(interceptorFactory) ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory)); - }); + node.nodeValue = node.nodeValue + sibling.nodeValue; - /** - * A function to check request URLs against a list of allowed origins. - */ - var urlIsAllowedOrigin = urlIsAllowedOriginFactory(xsrfWhitelistedOrigins); + if (sibling.parentNode) { + sibling.parentNode.removeChild(sibling); + } + if (notLiveList && sibling === nodeList[idx + 1]) { + nodeList.splice(idx + 1, 1); + } + } + } - /** - * @ngdoc service - * @kind function - * @name $http - * @requires ng.$httpBackend - * @requires $cacheFactory - * @requires $rootScope - * @requires $q - * @requires $injector - * - * @description - * The `$http` service is a core AngularJS 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} that is - * resolved (request success) or rejected (request failure) with a - * {@link ng.$http#$http-returns response} object. - * - * ```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. - * }); - * ``` - * - * - * ## 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): - * - Accept: application/json, text/plain, \*/\* - * - `$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. - * - *
- * **Note:** AngularJS 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. - *
- * - * ### 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. - * - * AngularJS 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. AngularJS 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"`. - * AngularJS 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'] - * ``` - * - * AngularJS 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. AngularJS 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 (by default `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. - * - * 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 the `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)) - * for added security. - * - * The header will — by default — **not** be set for cross-domain requests. This - * prevents unauthorized servers (e.g. malicious or compromised 3rd-party APIs) from gaining - * access to your users' XSRF tokens and exposing them to Cross Site Request Forgery. If you - * want to, you can whitelist additional origins to also receive the XSRF token, by adding them - * to {@link ng.$httpProvider#xsrfWhitelistedOrigins xsrfWhitelistedOrigins}. This might be - * useful, for example, if your application, served from `example.com`, needs to access your API - * at `api.example.com`. - * See {@link ng.$httpProvider#xsrfWhitelistedOrigins $httpProvider.xsrfWhitelistedOrigins} for - * more details. - * - *
- * **Warning**
- * Only whitelist origins that you have control over and make sure you understand the - * implications of doing so. - *
- * - * The name of the cookie and the header can be specified using the `xsrfCookieName` and - * `xsrfHeaderName` 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 AngularJS apps share the - * same domain or subdomain, we recommend that each application uses a 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.}` – 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.}` – - * 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.}` – - * 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}` - 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. - * - * A numerical timeout or a promise returned from {@link ng.$timeout $timeout}, will set - * the `xhrStatus` in the {@link $http#$http-returns response} to "timeout", and any other - * resolved promise will set it to "abort", following standard XMLHttpRequest behavior. - * - * - **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} A {@link ng.$q `Promise}` that will be resolved (request success) - * or rejected (request failure) with a response object. - * - * 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`. More information - * about the status might be available in the `xhrStatus` property. - * - * 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. - * - * - * @property {Array.} pendingRequests Array of config objects for currently pending - * requests. This is primarily meant to be used for debugging purposes. - * - * - * @example - - -
- - -
- - - -
http status code: {{status}}
-
http response data: {{data}}
-
-
- - 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; - }; - }]); - - - Hello, $http! - - - 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'); - }); - -
- */ - function $http(requestConfig) { + function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { + function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { - if (!isObject(requestConfig)) { - throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig); + if (!transcludedScope) { + transcludedScope = scope.$new(false, containingScope); + transcludedScope.$$transcluded = true; } - 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); + 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; } + } - 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; + return boundTranscludeFn; + } - $browser.$$incOutstandingRequestCount('$http'); + /** + * 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: + addDirective(directives, + directiveNormalize(nodeName), 'E', maxPriority, ignoreDirective); + + // iterate over the attributes + for (var attr, name, nName, value, ngPrefixMatch, nAttrs = node.attributes, + j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) { + var attrStartName = false; + var attrEndName = false; + + var isNgAttr = false, isNgProp = false, isNgEvent = false; + var multiElementMatch; + + attr = nAttrs[j]; + name = attr.name; + value = attr.value; + + nName = directiveNormalize(name.toLowerCase()); + + // Support ng-attr-*, ng-prop-* and ng-on-* + if ((ngPrefixMatch = nName.match(NG_PREFIX_BINDING))) { + isNgAttr = ngPrefixMatch[1] === 'Attr'; + isNgProp = ngPrefixMatch[1] === 'Prop'; + isNgEvent = ngPrefixMatch[1] === 'On'; + + // Normalize the non-prefixed name + name = name.replace(PREFIX_REGEXP, '') + .toLowerCase() + .substr(4 + ngPrefixMatch[1].length).replace(/_(.)/g, function(match, letter) { + return letter.toUpperCase(); + }); - var requestInterceptors = []; - var responseInterceptors = []; - var promise = $q.resolve(config); + // Support *-start / *-end multi element directives + } else if ((multiElementMatch = nName.match(MULTI_ELEMENT_DIR_RE)) && directiveIsMultiElement(multiElementMatch[1])) { + attrStartName = name; + attrEndName = name.substr(0, name.length - 5) + 'end'; + name = name.substr(0, name.length - 6); + } - // 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); - } - }); + if (isNgProp || isNgEvent) { + attrs[nName] = value; + attrsMap[nName] = attr.name; - promise = chainInterceptors(promise, requestInterceptors); - promise = promise.then(serverRequest); - promise = chainInterceptors(promise, responseInterceptors); - promise = promise.finally(completeOutstandingRequest); + if (isNgProp) { + addPropertyDirective(node, directives, nName, name); + } else { + addEventDirective(directives, nName, name); + } + } else { + // Update nName for cases where a prefix was removed + // NOTE: the .toLowerCase() is unnecessary and causes https://github.com/angular/angular.js/issues/16624 for ng-attr-* + nName = directiveNormalize(name.toLowerCase()); + attrsMap[nName] = name; - return promise; + if (isNgAttr || !attrs.hasOwnProperty(nName)) { + attrs[nName] = value; + if (getBooleanAttrName(node, nName)) { + attrs[nName] = true; // presence means true + } + } - function chainInterceptors(promise, interceptors) { - for (var i = 0, ii = interceptors.length; i < ii;) { - var thenFn = interceptors[i++]; - var rejectFn = interceptors[i++]; + addAttrInterpolateDirective(node, directives, value, nName, isNgAttr); + addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName, + attrEndName); + } + } - promise = promise.then(thenFn, rejectFn); + 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'); } - interceptors.length = 0; + // 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; + } - return promise; - } + directives.sort(byPriority); + return directives; + } - function completeOutstandingRequest() { - $browser.$$completeOutstandingRequest(noop, '$http'); + 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.) + } + } - function executeHeaderFns(headers, config) { - var headerContent, - processedHeaders = {}; + /** + * 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); + } - forEach(headers, function (headerFn, header) { - if (isFunction(headerFn)) { - headerContent = headerFn(config); - if (headerContent != null) { - processedHeaders[header] = headerContent; - } - } else { - processedHeaders[header] = headerFn; - } - }); + return jqLite(nodes); + } - return processedHeaders; - } + /** + * 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); + }; + } - function mergeHeaders(config) { - var defHeaders = defaults.headers, - reqHeaders = extend({}, config.headers), - defHeaderName, - lowercaseDefHeaderName, - reqHeaderName; + /** + * 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; - defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]); + if (eager) { + return compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext); + } + return /** @this */ function lazyCompilation() { + if (!compiled) { + compiled = compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext); - // using for-in instead of forEach to avoid unnecessary iteration after header has been found - defaultHeadersIteration: for (defHeaderName in defHeaders) { - lowercaseDefHeaderName = lowercase(defHeaderName); + // 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); + }; + } - for (reqHeaderName in reqHeaders) { - if (lowercase(reqHeaderName) === lowercaseDefHeaderName) { - continue defaultHeadersIteration; - } + /** + * 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.} preLinkFns + * @param {Array.} 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); } - - reqHeaders[defHeaderName] = defHeaders[defHeaderName]; } - // execute if header value is a function for merged headers - return executeHeaderFns(reqHeaders, shallowCopy(config)); + newScopeDirective = newScopeDirective || directive; } - function serverRequest(config) { - var headers = config.headers; - var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest); + directiveName = directive.name; - // strip content-type if data is undefined - if (isUndefined(reqData)) { - forEach(headers, function (value, header) { - if (lowercase(header) === 'content-type') { - delete headers[header]; - } - }); - } + // 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; - if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) { - config.withCredentials = defaults.withCredentials; - } + for (var scanningIndex = i + 1; (candidateDirective = directives[scanningIndex++]);) { + if ((candidateDirective.transclude && !candidateDirective.$$tlb) + || (candidateDirective.replace && (candidateDirective.templateUrl || candidateDirective.template))) { + mightHaveMultipleTransclusionError = true; + break; + } + } - // send request - return sendReq(config, reqData).then(transformResponse, transformResponse); + didScanForMultipleTransclusion = true; } - 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); + if (!directive.templateUrl && directive.controller) { + controllerDirectives = controllerDirectives || createMap(); + assertNoDuplicate('\'' + directiveName + '\' controller', + controllerDirectives[directiveName], directive, $compileNode); + controllerDirectives[directiveName] = directive; } - } - $http.pendingRequests = []; + directiveValue = directive.transclude; - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + if (directiveValue) { + hasTranscludeDirective = true; - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + // 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; + } - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + 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); + + 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 { - /** - * @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'`. - * - *
- * You can no longer use the `JSON_CALLBACK` string as a placeholder for specifying where the callback - * parameter value should go. - *
- * - * 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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ - createShortMethods('get', 'delete', 'head', 'jsonp'); + var slots = createMap(); - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + if (!isObject(directiveValue)) { + $template = jqLite(jqLiteClone(compileNode)).contents(); + } else { - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + // We have transclusion slots, + // collect them up, compile them and store their transclusion functions + $template = window.document.createDocumentFragment(); - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ - createShortMethodsWithData('post', 'put', 'patch'); + var slotMap = createMap(); + var filledSlots = createMap(); - /** - * @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; + // 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; - return $http; + slotMap[elementSelector] = slotName; - function createShortMethods(names) { - forEach(arguments, function (name) { - $http[name] = function (url, config) { - return $http(extend({}, config || {}, { - method: name, - url: url - })); - }; - }); - } + // 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; - function createShortMethodsWithData(name) { - forEach(arguments, function (name) { - $http[name] = function (url, data, config) { - return $http(extend({}, config || {}, { - method: name, - url: url, - data: data - })); - }; - }); - } + // 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; + }); - /** - * 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; + // 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] || window.document.createDocumentFragment(); + slots[slotName].appendChild(node); + } else { + $template.appendChild(node); + } + }); - 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); - } + // 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 + var slotCompileNodes = jqLite(slots[slotName].childNodes); + slots[slotName] = compilationGenerator(mightHaveMultipleTransclusionError, slotCompileNodes, transcludeFn); + } + } - url = buildUrl(url, config.paramSerializer(config.params)); + $template = jqLite($template.childNodes); + } - if (isJsonp) { - // Check the url and add the JSONP callback placeholder - url = sanitizeJsonpCallbackParam(url, config.jsonpCallbackParam); + $compileNode.empty(); // clear contents + childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, undefined, + undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope}); + childTranscludeFn.$$slots = slots; + } } - $http.pendingRequests.push(config); - promise.then(removePendingReq, removePendingReq); + if (directive.template) { + hasTemplate = true; + assertNoDuplicate('template', templateDirective, directive, $compileNode); + templateDirective = directive; - 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; - } + directiveValue = (isFunction(directive.template)) + ? directive.template($compileNode, templateAttrs) + : directive.template; - 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); + directiveValue = denormalizeTemplate(directiveValue); + + if (directive.replace) { + replaceDirective = directive; + if (jqLiteIsTextNode(directiveValue)) { + $template = []; } 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'); - } + $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue))); } - } else { - // put the promise for the non-transformed response into cache as a placeholder - cache.put(url, promise); - } - } + compileNode = $template[0]; - // 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 = urlIsAllowedOrigin(config.url) ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName] : undefined; - if (xsrfValue) { - reqHeaders[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue; - } + if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) { + throw $compileMinErr('tplrt', + 'Template for directive \'{0}\' must have exactly one root element. {1}', + directiveName, ''); + } - $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout, config.withCredentials, config.responseType, createApplyHandlers(config.eventHandlers), createApplyHandlers(config.uploadEventHandlers)); - } + replaceWith(jqCollection, $compileNode, compileNode); - return promise; + var newTemplateAttrs = {$attr: {}}; - 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); - } + // 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)); - function callEventHandler() { - eventHandler(event); - } - }; - }); - return applyHandlers; + 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); } } - /** - * 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); - } - } + if (directive.templateUrl) { + hasTemplate = true; + assertNoDuplicate('template', templateDirective, directive, $compileNode); + templateDirective = directive; - function resolveHttpPromise() { - resolvePromise(response, status, headersString, statusText, xhrStatus); + if (directive.replace) { + replaceDirective = directive; } - if (useApplyAsync) { - $rootScope.$applyAsync(resolveHttpPromise); - } else { - resolveHttpPromise(); - if (!$rootScope.$$phase) $rootScope.$apply(); + // 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)); } } - /** - * 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); + if (directive.terminal) { + nodeLinkFn.terminal = true; + terminalPriority = Math.max(terminalPriority, directive.priority); } - 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; - } + nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true; + nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective; + nodeLinkFn.templateOnThisElement = hasTemplate; + nodeLinkFn.transclude = childTranscludeFn; - 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); - } - }); + previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective; - // Add in the JSON_CALLBACK callback param value - url += (url.indexOf('?') === -1 ? '?' : '&') + cbKey + '=JSON_CALLBACK'; + // might be normal or delayed nodeLinkFn depending on if templateUrl is present + return nodeLinkFn; - return url; + //////////////////// + + 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); + } } - }]; - } - /** - * @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(); - }; - }; - } + function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) { + var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element, + attrs, scopeBindingInfo; - /** - * @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]); - }]; - } + if (compileNode === linkNode) { + attrs = templateAttrs; + $element = templateAttrs.$$element; + } else { + $element = jqLite(linkNode); + attrs = new Attributes($element, templateAttrs); + } - 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(); + controllerScope = scope; + if (newIsolateScopeDirective) { + isolateScope = scope.$new(true); + } else if (newScopeDirective) { + controllerScope = scope.$parent; + } - 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 { + 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]; + }; + } - var xhr = createXhr(method, url); - var abortedByTimeout = false; + if (controllerDirectives) { + elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective); + } - xhr.open(method, url, true); - forEach(headers, function (value, key) { - if (isDefined(value)) { - xhr.setRequestHeader(key, value); + 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); } - }); - - 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; + // Initialize bindToController bindings + for (var name in elementControllers) { + var controllerDirective = controllerDirectives[name]; + var controller = elementControllers[name]; + var bindings = controllerDirective.$$bindings.bindToController; - // 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; + controller.instance = controller(); + $element.data('$' + controllerDirective.name + 'Controller', controller.instance); + controller.bindingInfo = + initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective); } - 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'); - }; + // 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)); + } + }); - var requestAborted = function requestAborted() { - completeRequest(callback, -1, null, null, '', abortedByTimeout ? 'timeout' : 'abort'); - }; + // 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(); + }); + } + }); - 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'); - }; + // 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 + ); + } - xhr.onerror = requestError; - xhr.ontimeout = requestTimeout; - xhr.onabort = requestAborted; + // 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); + } - forEach(eventHandlers, function (value, key) { - xhr.addEventListener(key, value); - }); + // 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 + ); + } - forEach(uploadEventHandlers, function (value, key) { - xhr.upload.addEventListener(key, value); + // Trigger $postLink lifecycle hooks + forEach(elementControllers, function(controller) { + var controllerInstance = controller.instance; + if (isFunction(controllerInstance.$postLink)) { + controllerInstance.$postLink(); + } }); - if (withCredentials) { - xhr.withCredentials = true; - } + // 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 (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; + 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); } } - - xhr.send(isUndefined(post) ? null : post); } + } - // Since we are using xhr.abort() when a request times out, we have to set a flag that - // indicates to requestAborted if the request timed out or was aborted. - // - // http.timeout = numerical timeout timeout - // http.timeout = $timeout timeout - // http.timeout = promise abort - // xhr.abort() abort (The xhr object is normally inaccessible, but - // can be exposed with the xhrFactory) - if (timeout > 0) { - var timeoutId = $browserDefer(function () { - timeoutRequest('timeout'); - }, timeout); - } else if (isPromiseLike(timeout)) { - timeout.then(function () { - timeoutRequest(isDefined(timeout.$$timeoutId) ? 'timeout' : 'abort'); - }); - } + function getControllers(directiveName, require, $element, elementControllers) { + var value; - function timeoutRequest(reason) { - abortedByTimeout = reason === 'timeout'; - if (jsonpDone) { - jsonpDone(); - } - if (xhr) { - xhr.abort(); + 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; } - } - function completeRequest(callback, status, response, headersString, statusText, xhrStatus) { - // cancel timeout and subsequent timeout promise resolution - if (isDefined(timeoutId)) { - $browserDefer.cancel(timeoutId); + if (!value) { + var dataName = '$' + name + 'Controller'; + + if (inheritType === '^^' && $element[0] && $element[0].nodeType === NODE_TYPE_DOCUMENT) { + // inheritedData() uses the documentElement when it finds the document, so we would + // require from the element itself. + value = null; + } else { + value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName); + } } - jsonpDone = xhr = null; - callback(status, response, headersString, statusText, xhrStatus); + 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); + }); } - }; - 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; + return value || null; + } - _callback = function callback(event) { - script.removeEventListener('load', _callback); - script.removeEventListener('error', _callback); - rawDocument.body.removeChild(script); - script = null; - var status = -1; - var text = 'unknown'; + 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 + }; - if (event) { - if (event.type === 'load' && !callbacks.wasCalled(callbackPath)) { - event = { type: 'error' }; - } - text = event.type; - status = event.type === 'error' ? 404 : 200; + var controller = directive.controller; + if (controller === '@') { + controller = attrs[directive.name]; } - if (done) { - done(status, text); - } - }; + var controllerInstance = $controller(controller, locals, true, directive.controllerAs); - script.addEventListener('load', _callback); - script.addEventListener('error', _callback); - rawDocument.body.appendChild(script); - return _callback; + // 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; } - } - 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); - }; + // 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}); + } + } - $interpolateMinErr.interr = function (text, err) { - return $interpolateMinErr('interr', 'Can\'t interpolate: {0}\n{1}', text, err.toString()); - }; + /** + * 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; + } - /** - * @ngdoc provider - * @name $interpolateProvider - * @this - * - * @description - * - * Used for configuring the interpolation markup. Defaults to `{{` and `}}`. - * - *
- * This feature is sometimes used to mix different markup languages, e.g. to wrap an AngularJS - * 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 AngularJS - * expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS) - * security bugs! - *
- * - * @example - - - -
- //demo.label// -
-
- - it('should interpolate binding with custom symbols', function() { - expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.'); - }); - -
- */ - function $InterpolateProvider() { - var startSymbol = '{{'; - var endSymbol = '}}'; /** - * @ngdoc method - * @name $interpolateProvider#startSymbol - * @description - * Symbol to denote start of expression in the interpolated string. Defaults to `{{`. + * 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=} 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. + * @param {string} name name of the directive to look up. + * @returns true if directive was registered as multi-element. */ - this.startSymbol = function (value) { - if (value) { - startSymbol = value; - return this; + 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 startSymbol; - }; + return false; + } /** - * @ngdoc method - * @name $interpolateProvider#endSymbol - * @description - * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`. + * 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 {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. + * @param {object} dst destination attributes (original DOM) + * @param {object} src source attributes (from the directive template) */ - this.endSymbol = function (value) { - if (value) { - endSymbol = value; - return this; - } - 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:'AngularJS'})).toEqual('Hello ANGULARJS!'); - * ``` - * - * `$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 = 'AngularJS'; - * expect(exp(context)).toEqual('Hello AngularJS!'); - * ``` - * - * `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 (<, >) with &lt; and &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. - * - * - * - *
- *

{{apptitle}}: \{\{ username = "defaced value"; \}\} - *

- *

{{username}} 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.

- *

Instead, the result of the attempted script injection is visible, and can be removed - * from the database by an administrator.

- *
- *
- *
- * - * @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: - * - * ``` - *
- * ``` - * - * 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) { - var contextAllowsConcatenation = trustedContext === $sce.URL || trustedContext === $sce.MEDIA_URL; - - // Provide a quick exit and simplified result function for text with no interpolation - if (!text.length || text.indexOf(startSymbol) === -1) { - if (mustHaveExpression && !contextAllowsConcatenation) return; - - var unescapedText = unescapeText(text); - if (contextAllowsConcatenation) { - unescapedText = $sce.getTrusted(trustedContext, unescapedText); - } - var 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 = [], - singleExpression; - - 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); - index = endIndex + endSymbolLength; - expressionPositions.push(concat.length); - concat.push(''); // Placeholder that will get replaced with the evaluated expression. - } 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))); + 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]; } - break; } + dst.$set(key, value, true, srcAttr[key]); } + }); - singleExpression = concat.length === 1 && expressionPositions.length === 1; - // Intercept expression if we need to stringify concatenated inputs, which may be SCE trusted - // objects rather than simple strings - // (we don't modify the expression if the input consists of only a single trusted input) - var interceptor = contextAllowsConcatenation && singleExpression ? undefined : parseStringifyInterceptor; - parseFns = expressions.map(function (exp) { - return $parse(exp, interceptor); - }); - - // 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 some $sce-managed secure contexts (RESOURCE_URLs mostly), - // 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. - - // Note that URL and MEDIA_URL $sce contexts do not need this, since `$sce` can sanitize the values - // passed to it. In that case, `$sce.getTrusted` will be called on either the single expression - // or on the overall concatenated string (losing trusted types used in the mix, by design). - // Both these methods will sanitize plain strings. Also, HTML could be included, but since it's - // only used in srcdoc attributes, this would not be very useful. - - 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]; - } - - if (contextAllowsConcatenation) { - // If `singleExpression` then `concat[0]` might be a "trusted" value or `null`, rather than a string - return $sce.getTrusted(trustedContext, singleExpression ? concat[0] : concat.join('')); - } else if (trustedContext && concat.length > 1) { - // This context does not allow more than one part, e.g. expr + string or exp + exp. - $interpolateMinErr.throwNoconcat(text); - } - // In an unprivileged context or only one part: just concatenate and return. - return concat.join(''); - }; - - 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 { - // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual - // parts of a full URL. We don't care about losing the trustedness here. - // In non-concatenable contexts, where there is only one expression, this interceptor is - // not applied to the expression. - value = trustedContext && !contextAllowsConcatenation ? $sce.getTrusted(trustedContext, value) : $sce.valueOf(value); - return allOrNothing && !isDefined(value) ? value : stringify(value); - } catch (err) { - $exceptionHandler($interpolateMinErr.interr(text, err)); + // 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]; } } - } + }); + } - /** - * @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; - }; + 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; - return $interpolate; - }]; - } + $compileNode.empty(); - var $intervalMinErr = minErr('$interval'); + $templateRequest(templateUrl) + .then(function(content) { + var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn; - /** @this */ - function $IntervalProvider() { - this.$get = ['$$intervalFactory', '$window', function ($$intervalFactory, $window) { - var intervals = {}; - var setIntervalFn = function setIntervalFn(tick, delay, deferred) { - var id = $window.setInterval(tick, delay); - intervals[id] = deferred; - return id; - }; - var clearIntervalFn = function clearIntervalFn(id) { - $window.clearInterval(id); - delete intervals[id]; - }; + content = denormalizeTemplate(content); - /** - * @ngdoc service - * @name $interval - * - * @description - * AngularJS'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. - * - *
- * **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. - *
- * - * @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 - * - * - * - * - *
- *
- *
- * Current time is: - *
- * Blood 1 : {{blood_1}} - * Blood 2 : {{blood_2}} - * - * - * - *
- *
- * - *
- *
- */ - var interval = $$intervalFactory(setIntervalFn, clearIntervalFn); + if (origAsyncDirective.replace) { + if (jqLiteIsTextNode(content)) { + $template = []; + } else { + $template = removeComments(wrapTemplate(templateNamespace, trim(content))); + } + compileNode = $template[0]; - /** - * @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) return false; + 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); + } - if (!promise.hasOwnProperty('$$intervalId')) { - throw $intervalMinErr('badprom', '`$interval.cancel()` called with a promise that was not generated by `$interval()`.'); - } + tempTemplateAttrs = {$attr: {}}; + replaceWith($rootElement, $compileNode, compileNode); + var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs); - if (!intervals.hasOwnProperty(promise.$$intervalId)) return false; + 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); + } - var id = promise.$$intervalId; - var deferred = intervals[id]; + directives.unshift(derivedSyncDirective); - // Interval cancels should not report an unhandled promise. - markQExceptionHandled(deferred.promise); - deferred.reject('canceled'); - clearIntervalFn(id); + 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); - return true; - }; + while (linkQueue.length) { + var scope = linkQueue.shift(), + beforeTemplateLinkNode = linkQueue.shift(), + linkRootElement = linkQueue.shift(), + boundTranscludeFn = linkQueue.shift(), + linkNode = $compileNode[0]; - return interval; - }]; - } + if (scope.$$destroyed) continue; - /** @this */ - function $$IntervalFactoryProvider() { - this.$get = ['$browser', '$q', '$$q', '$rootScope', function ($browser, $q, $$q, $rootScope) { - return function intervalFactory(setIntervalFn, clearIntervalFn) { - return function intervalFn(fn, delay, count, invokeApply) { - var hasParams = arguments.length > 4, - args = hasParams ? sliceArgs(arguments, 4) : [], - iteration = 0, - skipApply = isDefined(invokeApply) && !invokeApply, - deferred = (skipApply ? $$q : $q).defer(), - promise = deferred.promise; + if (beforeTemplateLinkNode !== beforeTemplateCompileNode) { + var oldClasses = beforeTemplateLinkNode.className; - count = isDefined(count) ? count : 0; + if (!(previousCompileContext.hasElementTranscludeDirective && + origAsyncDirective.replace)) { + // it was cloned therefore we have to clone as well. + linkNode = jqLiteClone(compileNode); + } + replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode); - function callback() { - if (!hasParams) { - fn(iteration); - } else { - fn.apply(null, args); + // Copy in CSS classes from original node + safeAddClass(jqLite(linkNode), oldClasses); } - } - - function tick() { - if (skipApply) { - $browser.defer(callback); + if (afterTemplateNodeLinkFn.transcludeOnThisElement) { + childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn); } else { - $rootScope.$evalAsync(callback); - } - deferred.notify(iteration++); - - if (count > 0 && iteration >= count) { - deferred.resolve(iteration); - clearIntervalFn(promise.$$intervalId); + childBoundTranscludeFn = boundTranscludeFn; } - - if (!skipApply) $rootScope.$apply(); + afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement, + childBoundTranscludeFn); } + linkQueue = null; + }).catch(function(error) { + if (isError(error)) { + $exceptionHandler(error); + } + }); - promise.$$intervalId = setIntervalFn(tick, delay, deferred, skipApply); - - return promise; - }; - }; - }]; - } - - /** - * @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]; + 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); } }; - }; - }; - - /** - * @ngdoc service - * @name $locale - * - * @description - * $locale service provides localization rules for various AngularJS components. As of right now the - * only public api is: - * - * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`) - */ - - /* global stripHash: true */ - - 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, '/')); + /** + * 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; } - return segments.join('/'); - } + function assertNoDuplicate(what, previousDirective, directive, element) { - function decodePath(path, html5Mode) { - var segments = path.split('/'), - i = segments.length; + function wrapModuleNameIfDefined(moduleName) { + return moduleName ? + (' (module: ' + moduleName + ')') : + ''; + } - 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'); + 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)); } } - return segments.join('/'); - } - - function normalizePath(pathValue, searchValue, hashValue) { - var search = toKeyValue(searchValue), - hash = hashValue ? '#' + encodeUriSegment(hashValue) : '', - path = encodePath(pathValue); - return path + (search ? '?' + search : '') + hash; - } + 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 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; - } + function wrapTemplate(type, template) { + type = lowercase(type || 'html'); + switch (type) { + case 'svg': + case 'math': + var wrapper = window.document.createElement('div'); + wrapper.innerHTML = '<' + type + '>' + template + ''; + return wrapper.childNodes[0].childNodes; + default: + return template; + } + } - var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/; - function parseAppUrl(url, locationObj, html5Mode) { - if (DOUBLE_SLASH_REGEX.test(url)) { - throw $locationMinErr('badpath', 'Invalid url "{0}".', url); + function getTrustedAttrContext(nodeName, attrNormalizedName) { + if (attrNormalizedName === 'srcdoc') { + return $sce.HTML; + } + // All nodes with src attributes require a RESOURCE_URL value, except for + // img and various html5 media nodes, which require the MEDIA_URL context. + if (attrNormalizedName === 'src' || attrNormalizedName === 'ngSrc') { + if (['img', 'video', 'audio', 'source', 'track'].indexOf(nodeName) === -1) { + return $sce.RESOURCE_URL; + } + return $sce.MEDIA_URL; + } else if (attrNormalizedName === 'xlinkHref') { + // Some xlink:href are okay, most aren't + if (nodeName === 'image') return $sce.MEDIA_URL; + if (nodeName === 'a') return $sce.URL; + return $sce.RESOURCE_URL; + } else if ( + // Formaction + (nodeName === 'form' && attrNormalizedName === 'action') || + // If relative URLs can go where they are not expected to, then + // all sorts of trust issues can arise. + (nodeName === 'base' && attrNormalizedName === 'href') || + // links can be stylesheets or imports, which can run script in the current origin + (nodeName === 'link' && attrNormalizedName === 'href') + ) { + return $sce.RESOURCE_URL; + } else if (nodeName === 'a' && (attrNormalizedName === 'href' || + attrNormalizedName === 'ngHref')) { + return $sce.URL; + } } - var prefixed = url.charAt(0) !== '/'; - if (prefixed) { - url = '/' + url; + function getTrustedPropContext(nodeName, propNormalizedName) { + var prop = propNormalizedName.toLowerCase(); + return PROP_CONTEXTS[nodeName + '|' + prop] || PROP_CONTEXTS['*|' + prop]; } - 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 sanitizeSrcsetPropertyValue(value) { + return sanitizeSrcset($sce.valueOf(value), 'ng-prop-srcset'); } - } + function addPropertyDirective(node, directives, attrName, propName) { + if (EVENT_HANDLER_ATTR_REGEXP.test(propName)) { + throw $compileMinErr('nodomevents', 'Property bindings for HTML DOM event properties are disallowed'); + } - function startsWith(str, search) { - return str.slice(0, search.length) === search; - } + var nodeName = nodeName_(node); + var trustedContext = getTrustedPropContext(nodeName, propName); - /** - * - * @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); + var sanitizer = identity; + // Sanitize img[srcset] + source[srcset] values. + if (propName === 'srcset' && (nodeName === 'img' || nodeName === 'source')) { + sanitizer = sanitizeSrcsetPropertyValue; + } else if (trustedContext) { + sanitizer = $sce.getTrusted.bind($sce, trustedContext); + } + + directives.push({ + priority: 100, + compile: function ngPropCompileFn(_, attr) { + var ngPropGetter = $parse(attr[attrName]); + var ngPropWatch = $parse(attr[attrName], function sceValueOf(val) { + // Unwrap the value to compare the actual inner safe value, not the wrapper object. + return $sce.valueOf(val); + }); + + return { + pre: function ngPropPreLinkFn(scope, $element) { + function applyPropValue() { + var propValue = ngPropGetter(scope); + $element.prop(propName, sanitizer(propValue)); + } + + applyPropValue(); + scope.$watch(ngPropWatch, applyPropValue); + } + }; + } + }); } - } - function stripHash(url) { - var index = url.indexOf('#'); - return index === -1 ? url : url.substr(0, index); - } + function addEventDirective(directives, attrName, eventName) { + directives.push( + createEventDirective($parse, $rootScope, $exceptionHandler, attrName, eventName, /*forceAsync=*/false) + ); + } - function stripFile(url) { - return url.substr(0, stripHash(url).lastIndexOf('/') + 1); - } + function addAttrInterpolateDirective(node, directives, value, name, isNgAttr) { + var nodeName = nodeName_(node); + var trustedContext = getTrustedAttrContext(nodeName, name); + var mustHaveExpression = !isNgAttr; + var allOrNothing = ALL_OR_NOTHING_ATTRS[name] || isNgAttr; - /* return the server only (scheme://host:port) */ - function serverBase(url) { - return url.substring(0, url.indexOf('/', url.indexOf('//') + 2)); - } + var interpolateFn = $interpolate(value, mustHaveExpression, trustedContext, allOrNothing); - /** - * 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); + // no interpolation found -> ignore + if (!interpolateFn) return; - /** - * 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); + if (name === 'multiple' && nodeName === 'select') { + throw $compileMinErr('selmulti', + 'Binding to the \'multiple\' attribute is not supported. Element: {0}', + startingTag(node)); } - parseAppUrl(pathUrl, this, true); - - if (!this.$$path) { - this.$$path = '/'; + if (EVENT_HANDLER_ATTR_REGEXP.test(name)) { + throw $compileMinErr('nodomevents', 'Interpolations for HTML DOM event attributes are disallowed'); } - this.$$compose(); - }; + directives.push({ + priority: 100, + compile: function() { + return { + pre: function attrInterpolatePreLinkFn(scope, element, attr) { + var $$observers = (attr.$$observers || (attr.$$observers = createMap())); - this.$$normalizeUrl = function (url) { - return appBaseNoFile + url.substr(1); // first char is always '/' - }; + // 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; + } - 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 attribute was updated so that there is no interpolation going on we don't want to + // register any observers + if (!interpolateFn) return; - 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; - }; - } + // 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); - /** - * 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) { + ($$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); + } + }); + } + }; + } + }); + } - parseAbsoluteUrl(appBase, this); /** - * Parse given hashbang URL into properties - * @param {string} url Hashbang URL - * @private + * 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. */ - this.$$parse = function (url) { - var withoutBaseUrl = stripBaseUrl(appBase, url) || stripBaseUrl(appBaseNoFile, url); - var withoutHashUrl; - - if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') { + 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; - // 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(); + // 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; } } } - 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 AngularJS, 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; + if (parent) { + parent.replaceChild(newNode, firstElementToRemove); + } - //Get the relative path from the input URL. - if (startsWith(url, base)) { - url = url.replace(base, ''); - } + // 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]); + } - // The input URL intentionally contains a first path segment that ends with a colon. - if (windowsFilePathExp.exec(url)) { - return path; - } + if (jqLite.hasData(firstElementToRemove)) { + // Copy over user data (that includes AngularJS'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)); - firstPathSegmentMatch = windowsFilePathExp.exec(path); - return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path; + // Remove $destroy event listeners from `firstElementToRemove` + jqLite(firstElementToRemove).off('$destroy'); } - }; - this.$$normalizeUrl = function (url) { - return appBase + (url ? hashPrefix + url : ''); - }; + // Cleanup any data/listeners on the elements and children. + // This includes invoking the $destroy event on any elements with listeners. + jqLite.cleanData(fragment.querySelectorAll('*')); - this.$$parseLinkUrl = function (url, relHref) { - if (stripHash(appBase) === stripHash(url)) { - this.$$parse(url); - return true; + // Update the jqLite collection to only contain the `newNode` + for (i = 1; i < removeCount; i++) { + delete elementsToRemove[i]; } - return false; - }; - } + elementsToRemove[0] = newNode; + elementsToRemove.length = 1; + } - /** - * 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; + function cloneAndAnnotateFn(fn, annotation) { + return extend(function() { return fn.apply(null, arguments); }, fn, annotation); + } + - if (appBase === stripHash(url)) { - rewrittenUrl = url; - } else if (appUrl = stripBaseUrl(appBaseNoFile, url)) { - rewrittenUrl = appBase + hashPrefix + appUrl; - } else if (appBaseNoFile === url + '/') { - rewrittenUrl = appBaseNoFile; + function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) { + try { + linkFn(scope, $element, attrs, controllers, transcludeFn); + } catch (e) { + $exceptionHandler(e, startingTag($element)); } - if (rewrittenUrl) { - this.$$parse(rewrittenUrl); + } + + function strictBindingsCheck(attrName, directiveName) { + if (strictComponentBindingsEnabled) { + throw $compileMinErr('missingattr', + 'Attribute \'{0}\' of \'{1}\' is non-optional and must be set!', + attrName, directiveName); } - return !!rewrittenUrl; - }; + } - this.$$normalizeUrl = function (url) { - // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#' - return appBase + hashPrefix + url; - }; - } + // Set up $watches for isolate scope and controller bindings. + function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) { + var removeWatchCollection = []; + var initialChanges = {}; + var changes; - var locationPrototype = { + forEach(bindings, function initializeBinding(definition, scopeName) { + var attrName = definition.attrName, + optional = definition.optional, + mode = definition.mode, // @, =, <, or & + lastValue, + parentGet, parentSet, compare, removeWatch; - /** - * Ensure absolute URL is initialized. - * @private - */ - $$absUrl: '', + switch (mode) { - /** - * Are we in html5 mode? - * @private - */ - $$html5: false, + case '@': + if (!optional && !hasOwnProperty.call(attrs, attrName)) { + strictBindingsCheck(attrName, directive.name); + destination[scopeName] = attrs[attrName] = undefined; - /** - * Has any change been replacing? - * @private - */ - $$replace: false, + } + 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 AngularJS 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; - /** - * Compose url and update `url` and `absUrl` property - * @private - */ - $$compose: function $$compose() { - this.$$url = normalizePath(this.$$path, this.$$search, this.$$hash); - this.$$absUrl = this.$$normalizeUrl(this.$$url); - this.$$urlUpdatedByLocation = true; - }, + case '=': + if (!hasOwnProperty.call(attrs, attrName)) { + if (optional) break; + strictBindingsCheck(attrName, directive.name); + attrs[attrName] = undefined; + } + if (optional && !attrs[attrName]) break; - /** - * @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'), + 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; - /** - * @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; - } + case '<': + if (!hasOwnProperty.call(attrs, attrName)) { + if (optional) break; + strictBindingsCheck(attrName, directive.name); + attrs[attrName] = undefined; + } + if (optional && !attrs[attrName]) break; - 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] || ''); + parentGet = $parse(attrs[attrName]); + var isLiteral = parentGet.literal; - return this; - }, + var initialValue = destination[scopeName] = parentGet(scope); + initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]); - /** - * @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'), + removeWatch = scope[definition.collection ? '$watchCollection' : '$watch'](parentGet, function parentValueWatchAction(newValue, oldValue) { + if (oldValue === newValue) { + if (oldValue === initialValue || (isLiteral && equals(oldValue, initialValue))) { + return; + } + oldValue = initialValue; + } + recordChanges(scopeName, newValue, oldValue); + destination[scopeName] = newValue; + }); - /** - * @ngdoc method - * @name $location#host - * - * @description - * This method is getter only. - * - * Return host of current URL. - * - * Note: compared to the non-AngularJS 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'), + removeWatchCollection.push(removeWatch); + break; - /** - * @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'), + 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; - /** - * @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; - }), + // Don't assign noop to destination if expression is not valid + if (parentGet === noop && optional) break; - /** - * @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.|Object.>} 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|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]; - }); + destination[scopeName] = function(locals) { + return parentGet(scope, locals); + }; + break; + } + }); - this.$$search = _search; - } else { - throw $locationMinErr('isrcharg', 'The first argument of the `$location#search()` call must be a string or an object.'); + 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 = []; } - break; - default: - if (isUndefined(paramValue) || paramValue === null) { - delete this.$$search[_search]; - } else { - this.$$search[_search] = paramValue; + // 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); + } } - 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() : ''; - }), + function triggerOnChangesHook() { + destination.$onChanges(changes); + // Now clear the changes so that we schedule onChanges when more changes arrive + changes = undefined; + } - /** - * @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; + return { + initialChanges: initialChanges, + removeWatches: removeWatchCollection.length && function removeWatches() { + for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) { + removeWatchCollection[i](); + } + } + }; } - }; + }]; +} - forEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function (Location) { - Location.prototype = Object.create(locationPrototype); +function SimpleChange(previous, current) { + this.previousValue = previous; + this.currentValue = current; +} +SimpleChange.prototype.isFirstChange = function() { return this.previousValue === _UNINITIALIZED_VALUE; }; - /** - * @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; +var PREFIX_REGEXP = /^((?:x|data)[:\-_])/i; +var SPECIAL_CHARS_REGEXP = /[:\-_]+(.)/g; - return this; - }; - }); +/** + * 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; + }); +} - function locationGetter(property) { - return (/** @this */function () { - return this[property]; - } - ); +/** + * @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 AngularJS: + * + * ``` + * + * ``` + */ + +/** + * @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 locationGetterSetter(property, preprocess) { - return (/** @this */function (value) { - if (isUndefined(value)) { - return this[property]; - } +function removeComments(jqNodes) { + jqNodes = jqLite(jqNodes); + var i = jqNodes.length; - this[property] = preprocess(value); - this.$$compose(); + if (i <= 1) { + return jqNodes; + } - return this; - } - ); + 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; +} - /** - * @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} - */ +var $controllerMinErr = minErr('$controller'); - /** - * @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; - } - }; +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 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 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 `` 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; - } +/** + * @ngdoc provider + * @name $controllerProvider + * @this + * + * @description + * The {@link ng.$controller $controller service} is used by AngularJS to create new + * controllers. + * + * This provider allows controller registration via the + * {@link ng.$controllerProvider#register register} method. + */ +function $ControllerProvider() { + var controllers = {}; - if (isBoolean(mode.requireBase)) { - html5Mode.requireBase = mode.requireBase; - } + /** + * @ngdoc method + * @name $controllerProvider#has + * @param {string} name Controller name to check. + */ + this.has = function(name) { + return controllers.hasOwnProperty(name); + }; - if (isBoolean(mode.rewriteLinks) || isString(mode.rewriteLinks)) { - html5Mode.rewriteLinks = mode.rewriteLinks; - } + /** + * @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; + } + }; - return this; - } else { - return html5Mode; - } - }; + this.$get = ['$injector', function($injector) { /** - * @ngdoc event - * @name $location#$locationChangeStart - * @eventType broadcast on root scope - * @description - * Broadcasted before a URL will change. + * @ngdoc service + * @name $controller + * @requires $injector * - * 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. + * @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: * - * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when - * the browser supports the HTML5 History API. + * * check if a controller with given name is registered via `$controllerProvider` + * * check if evaluating the string on the current scope returns a constructor * - * @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 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. * - * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when - * the browser supports the HTML5 History API. + * @param {Object} locals Injection locals for Controller. + * @return {Object} Instance of given controller. + * + * @description + * `$controller` service is responsible for instantiating controllers. * - * @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. + * 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); - 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 tag to be present!'); + if (!expression) { + throw $controllerMinErr('ctrlreg', + 'The controller with the name \'{0}\' is not registered.', constructor); } - 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); + assertArgFn(expression, constructor, true); + } - $location.$$state = $browser.state(); + 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); - var IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i; + if (identifier) { + addIdentifier(locals, identifier, instance, constructor || expression.name); + } - // Determine if two URLs are equal despite potentially having different encoding/normalizing - // such as $location.absUrl() vs $browser.url() - // See https://github.com/angular/angular.js/issues/16592 - function urlsEqual(a, b) { - return a === b || urlResolve(a).href === urlResolve(b).href; + 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 + }); } - 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; + instance = $injector.instantiate(expression, locals, constructor); - throw e; - } + if (identifier) { + addIdentifier(locals, identifier, instance, constructor || expression.name); } - $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; + return instance; + }; - var elm = jqLite(event.target); + 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); + } - // 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; - } + locals.$scope[identifier] = instance; + } + }]; +} - if (isString(rewriteLinks) && isUndefined(elm.attr(rewriteLinks))) return; +/** + * @ngdoc service + * @name $document + * @requires $window + * @this + * + * @description + * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object. + * + * @example + + +
+

$document title:

+

window.document title:

+
+
+ + angular.module('documentExample', []) + .controller('ExampleController', ['$scope', '$document', function($scope, $document) { + $scope.title = $document[0].title; + $scope.windowTitle = angular.element(window.document)[0].title; + }]); + +
+ */ +function $DocumentProvider() { + this.$get = ['$window', function(window) { + return jqLite(window.document); + }]; +} - 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; - } +/** + * @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; - // Ignore when url is started with javascript: or mailto: - if (IGNORE_URI_REGEXP.test(absHref)) return; + $document.on('visibilitychange', changeListener); - if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) { - if ($location.$$parseLinkUrl(absHref, relHref)) { - // We do a preventDefault for all urls that are part of the AngularJS 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(); - } - } - } - }); + $rootScope.$on('$destroy', function() { + $document.off('visibilitychange', changeListener); + }); - // rewrite hashbang url <> html5 url - if ($location.absUrl() !== initialUrl) { - $browser.url($location.absUrl(), true); - } + function changeListener() { + hidden = doc.hidden; + } - var initializing = true; + return function() { + return hidden; + }; + }]; +} - // update $location when $browser url changes - $browser.onUrlChange(function (newUrl, newState) { +/** + * @ngdoc service + * @name $exceptionHandler + * @requires ng.$log + * @this + * + * @description + * Any uncaught exception in AngularJS 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); + * }; + * }]); + * ``` + * + *
+ * 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); + }; + }]; +} - if (!startsWith(newUrl, appBaseNoFile)) { - // If we are navigating outside of the app then force a reload - $window.location.href = newUrl; - return; +var $$ForceReflowProvider = /** @this */ function() { + 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; + }; + }]; +}; - $rootScope.$evalAsync(function () { - var oldUrl = $location.absUrl(); - var oldState = $location.$$state; - var defaultPrevented; - $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 = $browser.url(); - var newUrl = $location.absUrl(); - var oldState = $browser.state(); - var currentReplace = $location.$$replace; - var urlOrStateChanged = !urlsEqual(oldUrl, newUrl) || $location.$$html5 && $sniffer.history && oldState !== $location.$$state; +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'); - if (initializing || urlOrStateChanged) { - initializing = false; +function serializeValue(v) { + if (isObject(v)) { + return isDate(v) ? v.toISOString() : toJson(v); + } + return v; +} - $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; +/** @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. + */ - if (defaultPrevented) { - $location.$$parse(oldUrl); - $location.$$state = oldState; - } else { - if (urlOrStateChanged) { - setBrowserUrlWithFallback(newUrl, currentReplace, oldState === $location.$$state ? null : $location.$$state); - } - afterLocationChange(oldUrl, oldState); - } - }); - } + 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))); } - - $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); - } - }]; - } + return parts.join('&'); + }; + }; +} +/** @this */ +function $HttpParamSerializerJQLikeProvider() { /** * @ngdoc service - * @name $log - * @requires $window + * @name $httpParamSerializerJQLike * * @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. + * 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: * - * To reveal the location of the calls to `$log` in the JavaScript console, - * you can "blackbox" the AngularJS source in your browser: + * ```js + * $http({ + * url: myUrl, + * method: 'GET', + * params: myParams, + * paramSerializer: '$httpParamSerializerJQLike' + * }); + * ``` * - * [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). + * It is also possible to set it as the default `paramSerializer` in the + * {@link $httpProvider#defaults `$httpProvider`}. * - * Note: Not all browsers support blackboxing. + * Additionally, you can inject the serializer and use it explicitly, for example to serialize + * form data for submission: * - * The default is to log `debug` messages. You can use - * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this. + * ```js + * .controller(function($http, $httpParamSerializerJQLike) { + * //... + * + * $http({ + * url: myUrl, + * method: 'POST', + * data: $httpParamSerializerJQLike(myData), + * headers: { + * 'Content-Type': 'application/x-www-form-urlencoded' + * } + * }); * - * @example - - - angular.module('logExample', []) - .controller('LogController', ['$scope', '$log', function($scope, $log) { - $scope.$log = $log; - $scope.message = 'Hello World!'; - }]); - - -
-

Reload this page with open console, enter text and hit the log button...

- - - - - - -
-
-
- */ - - /** - * @ngdoc provider - * @name $logProvider - * @this + * }); + * ``` * - * @description - * Use the `$logProvider` to configure how the application logs messages */ - function $LogProvider() { - var debug = true, - self = this; + this.$get = function() { + return function jQueryLikeParamSerializer(params) { + if (!params) return ''; + var parts = []; + serialize(params, '', true); + return parts.join('&'); - /** - * @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; + function serialize(toSerialize, prefix, topLevel) { + 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 { + if (isFunction(toSerialize)) { + toSerialize = toSerialize(); + } + parts.push(encodeUriQuery(prefix) + '=' + + (toSerialize == null ? '' : encodeUriQuery(serializeValue(toSerialize)))); + } } }; + }; +} - 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'); +function defaultHttpResponseTransform(data, headers) { + if (isString(data)) { + // Strip json vulnerability protection prefix and trim whitespace + var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim(); - return function () { - if (debug) { - fn.apply(self, arguments); - } - }; - }() - }; + if (tempData) { + var contentType = headers('Content-Type'); + var hasJsonContentType = contentType && (contentType.indexOf(APPLICATION_JSON) === 0); - 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; + 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 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'); + return data; +} - var objectValueOf = {}.constructor.prototype.valueOf; +function isJsonLike(str) { + var jsonStart = str.match(JSON_START); + return jsonStart && JSON_ENDS[jsonStart[0]].test(str); +} - // Sandboxing AngularJS Expressions - // ------------------------------ - // AngularJS 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 AngularJS 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 +/** + * 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; + } + } - 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 + ''; + 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)); + }); } - var OPERATORS = createMap(); - forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function (operator) { - OPERATORS[operator] = true; - }); - var ESCAPE = { 'n': '\n', 'f': '\f', 'r': '\r', 't': '\t', 'v': '\v', '\'': '\'', '"': '"' }; + 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; - /** - * @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; - }, + return function(name) { + if (!headersObj) headersObj = parseHeaders(headers); - is: function is(ch, chars) { - return chars.indexOf(ch) !== -1; - }, + if (name) { + var value = headersObj[lowercase(name)]; + if (value === undefined) { + value = null; + } + return value; + } - peek: function peek(i) { - var num = i || 1; - return this.index + num < this.text.length ? this.text.charAt(this.index + num) : false; - }, + return headersObj; + }; +} - 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'; - }, +/** + * 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.)} fns Function or an array of functions. + * @returns {*} Transformed data. + */ +function transformData(data, headers, status, fns) { + if (isFunction(fns)) { + return fns(data, headers, status); + } - isIdentifierStart: function isIdentifierStart(ch) { - return this.options.isIdentifierStart ? this.options.isIdentifierStart(ch, this.codePointAt(ch)) : this.isValidIdentifierStart(ch); - }, + forEach(fns, function(fn) { + data = fn(data, headers, status); + }); - isValidIdentifierStart: function isValidIdentifierStart(ch) { - return 'a' <= ch && ch <= 'z' || 'A' <= ch && ch <= 'Z' || '_' === ch || ch === '$'; - }, + return data; +} - 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); - }, +function isSuccess(status) { + return 200 <= status && status < 300; +} - 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; - }, +/** + * @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}` - 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)}` - + * 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)}` - + * 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], - isExpOperator: function isExpOperator(ch) { - return ch === '-' || ch === '+' || this.isNumber(ch); - }, + // transform outgoing request data + transformRequest: [function(d) { + return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d; + }], - 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); + // 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) }, - 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) - }); - }, + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', - 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 - }); - }, + paramSerializer: '$httpParamSerializer', - 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); - } + jsonpCallbackParam: 'callback' }; - var AST = function AST(lexer, options) { - this.lexer = lexer; - this.options = options; + 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; }; - 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]); - } + /** + * @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 = []; - return value; - }, + /** + * @ngdoc property + * @name $httpProvider#xsrfWhitelistedOrigins + * @description + * + * Array containing URLs whose origins are trusted to receive the XSRF token. See the + * {@link ng.$http#security-considerations Security Considerations} sections for more details on + * XSRF. + * + * **Note:** An "origin" consists of the [URI scheme](https://en.wikipedia.org/wiki/URI_scheme), + * the [hostname](https://en.wikipedia.org/wiki/Hostname) and the + * [port number](https://en.wikipedia.org/wiki/Port_(computer_networking). For `http:` and + * `https:`, the port number can be omitted if using th default ports (80 and 443 respectively). + * Examples: `http://example.com`, `https://api.example.com:9876` + * + *
+ * It is not possible to whitelist specific URLs/paths. The `path`, `query` and `fragment` parts + * of a URL will be ignored. For example, `https://foo.com/path/bar?query=baz#fragment` will be + * treated as `https://foo.com`, meaning that **all** requests to URLs starting with + * `https://foo.com/` will include the XSRF token. + *
+ * + * @example + * + * ```js + * // App served from `https://example.com/`. + * angular. + * module('xsrfWhitelistedOriginsExample', []). + * config(['$httpProvider', function($httpProvider) { + * $httpProvider.xsrfWhitelistedOrigins.push('https://api.example.com'); + * }]). + * run(['$http', function($http) { + * // The XSRF token will be sent. + * $http.get('https://api.example.com/preferences').then(...); + * + * // The XSRF token will NOT be sent. + * $http.get('https://stats.example.com/activity').then(...); + * }]); + * ``` + */ + var xsrfWhitelistedOrigins = this.xsrfWhitelistedOrigins = []; - 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 }; - } - } - }, + this.$get = ['$browser', '$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector', '$sce', + function($browser, $httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector, $sce) { - expressionStatement: function expressionStatement() { - return { type: AST.ExpressionStatement, expression: this.filterChain() }; - }, + var defaultCache = $cacheFactory('$http'); - filterChain: function filterChain() { - var left = this.expression(); - while (this.expect('|')) { - left = this.filter(left); - } - return left; - }, + /** + * Make sure that default param serializer is exposed as a function + */ + defaults.paramSerializer = isString(defaults.paramSerializer) ? + $injector.get(defaults.paramSerializer) : defaults.paramSerializer; - expression: function expression() { - return this.assignment(); - }, + /** + * 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 = []; - 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'); - } + forEach(interceptorFactories, function(interceptorFactory) { + reversedInterceptors.unshift(isString(interceptorFactory) + ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory)); + }); - result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '=' }; - } - return result; - }, + /** + * A function to check request URLs against a list of allowed origins. + */ + var urlIsAllowedOrigin = urlIsAllowedOriginFactory(xsrfWhitelistedOrigins); - 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; - }, + /** + * @ngdoc service + * @kind function + * @name $http + * @requires ng.$httpBackend + * @requires $cacheFactory + * @requires $rootScope + * @requires $q + * @requires $injector + * + * @description + * The `$http` service is a core AngularJS 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} that is + * resolved (request success) or rejected (request failure) with a + * {@link ng.$http#$http-returns response} object. + * + * ```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. + * }); + * ``` + * + * + * ## 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): + * - Accept: application/json, text/plain, \*/\* + * - `$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. + * + *
+ * **Note:** AngularJS 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. + *
+ * + * ### 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. + * + * AngularJS 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. AngularJS 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"`. + * AngularJS 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'] + * ``` + * + * AngularJS 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. AngularJS 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 (by default `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. + * + * 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 the `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)) + * for added security. + * + * The header will — by default — **not** be set for cross-domain requests. This + * prevents unauthorized servers (e.g. malicious or compromised 3rd-party APIs) from gaining + * access to your users' XSRF tokens and exposing them to Cross Site Request Forgery. If you + * want to, you can whitelist additional origins to also receive the XSRF token, by adding them + * to {@link ng.$httpProvider#xsrfWhitelistedOrigins xsrfWhitelistedOrigins}. This might be + * useful, for example, if your application, served from `example.com`, needs to access your API + * at `api.example.com`. + * See {@link ng.$httpProvider#xsrfWhitelistedOrigins $httpProvider.xsrfWhitelistedOrigins} for + * more details. + * + *
+ * **Warning**
+ * Only whitelist origins that you have control over and make sure you understand the + * implications of doing so. + *
+ * + * The name of the cookie and the header can be specified using the `xsrfCookieName` and + * `xsrfHeaderName` 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 AngularJS apps share the + * same domain or subdomain, we recommend that each application uses a 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.}` – 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.}` – + * 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.}` – + * 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}` - 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. + * + * A numerical timeout or a promise returned from {@link ng.$timeout $timeout}, will set + * the `xhrStatus` in the {@link $http#$http-returns response} to "timeout", and any other + * resolved promise will set it to "abort", following standard XMLHttpRequest behavior. + * + * - **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} A {@link ng.$q `Promise}` that will be resolved (request success) + * or rejected (request failure) with a response object. + * + * 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`. More information + * about the status might be available in the `xhrStatus` property. + * + * 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. + * + * + * @property {Array.} pendingRequests Array of config objects for currently pending + * requests. This is primarily meant to be used for debugging purposes. + * + * + * @example + + +
+ + +
+ + + +
http status code: {{status}}
+
http response data: {{data}}
+
+
+ + 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; + }); + }; - logicalOR: function logicalOR() { - var left = this.logicalAND(); - while (this.expect('||')) { - left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() }; - } - return left; - }, + $scope.updateModel = function(method, url) { + $scope.method = method; + $scope.url = url; + }; + }]); + + + Hello, $http! + + + 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!/); + }); - logicalAND: function logicalAND() { - var left = this.equality(); - while (this.expect('&&')) { - left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality() }; - } - return left; - }, +// 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'); + }); + +
+ */ + function $http(requestConfig) { - 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() }; + if (!isObject(requestConfig)) { + throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig); } - 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() }; + 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); } - 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; - }, + var config = extend({ + method: 'get', + transformRequest: defaults.transformRequest, + transformResponse: defaults.transformResponse, + paramSerializer: defaults.paramSerializer, + jsonpCallbackParam: defaults.jsonpCallbackParam + }, requestConfig); - 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; - }, + config.headers = mergeHeaders(requestConfig); + config.method = uppercase(config.method); + config.paramSerializer = isString(config.paramSerializer) ? + $injector.get(config.paramSerializer) : config.paramSerializer; - 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(); - } - }, + $browser.$$incOutstandingRequestCount('$http'); - 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 requestInterceptors = []; + var responseInterceptors = []; + var promise = $q.resolve(config); - 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'); + // apply interceptors + forEach(reversedInterceptors, function(interceptor) { + if (interceptor.request || interceptor.requestError) { + requestInterceptors.unshift(interceptor.request, interceptor.requestError); } - } - return primary; - }, + if (interceptor.response || interceptor.responseError) { + responseInterceptors.push(interceptor.response, interceptor.responseError); + } + }); - filter: function filter(baseExpression) { - var args = [baseExpression]; - var result = { type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true }; + promise = chainInterceptors(promise, requestInterceptors); + promise = promise.then(serverRequest); + promise = chainInterceptors(promise, responseInterceptors); + promise = promise.finally(completeOutstandingRequest); - while (this.expect(':')) { - args.push(this.expression()); - } + return promise; - return result; - }, - parseArguments: function parseArguments() { - var args = []; - if (this.peekToken().text !== ')') { - do { - args.push(this.filterChain()); - } while (this.expect(',')); - } - return args; - }, + function chainInterceptors(promise, interceptors) { + for (var i = 0, ii = interceptors.length; i < ii;) { + var thenFn = interceptors[i++]; + var rejectFn = interceptors[i++]; - 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 }; - }, + promise = promise.then(thenFn, rejectFn); + } - constant: function constant() { - // TODO check that it is a constant - return { type: AST.Literal, value: this.consume().value }; - }, + interceptors.length = 0; - 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(',')); + return promise; } - this.consume(']'); - return { type: AST.ArrayExpression, elements: elements }; - }, + function completeOutstandingRequest() { + $browser.$$completeOutstandingRequest(noop, '$http'); + } - 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; + 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 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()); + processedHeaders[header] = headerFn; } - properties.push(property); - } while (this.expect(',')); + }); + + return processedHeaders; } - this.consume('}'); - return { type: AST.ObjectExpression, properties: properties }; - }, + function mergeHeaders(config) { + var defHeaders = defaults.headers, + reqHeaders = extend({}, config.headers), + defHeaderName, lowercaseDefHeaderName, reqHeaderName; - 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)); - }, + defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]); - consume: function consume(e1) { - if (this.tokens.length === 0) { - throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); - } + // using for-in instead of forEach to avoid unnecessary iteration after header has been found + defaultHeadersIteration: + for (defHeaderName in defHeaders) { + lowercaseDefHeaderName = lowercase(defHeaderName); - var token = this.expect(e1); - if (!token) { - this.throwError('is unexpected, expecting [' + e1 + ']', this.peek()); - } - return token; - }, + for (reqHeaderName in reqHeaders) { + if (lowercase(reqHeaderName) === lowercaseDefHeaderName) { + continue defaultHeadersIteration; + } + } + + reqHeaders[defHeaderName] = defHeaders[defHeaderName]; + } - peekToken: function peekToken() { - if (this.tokens.length === 0) { - throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); + // execute if header value is a function for merged headers + return executeHeaderFns(reqHeaders, shallowCopy(config)); } - return this.tokens[0]; - }, - peek: function peek(e1, e2, e3, e4) { - return this.peekAhead(0, e1, e2, e3, e4); - }, + function serverRequest(config) { + var headers = config.headers; + var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest); - 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; + // strip content-type if data is undefined + if (isUndefined(reqData)) { + forEach(headers, function(value, header) { + if (lowercase(header) === 'content-type') { + delete headers[header]; + } + }); } - } - return false; - }, - expect: function expect(e1, e2, e3, e4) { - var token = this.peek(e1, e2, e3, e4); - if (token) { - this.tokens.shift(); - return token; + if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) { + config.withCredentials = defaults.withCredentials; + } + + // send request + return sendReq(config, reqData).then(transformResponse, transformResponse); } - return false; - }, - selfReferential: { - 'this': { type: AST.ThisExpression }, - '$locals': { type: AST.LocalsExpression } + 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); + } } - }; - function ifDefined(v, d) { - return typeof v !== 'undefined' ? v : d; - } + $http.pendingRequests = []; - function plusFn(l, r) { - if (typeof l === 'undefined') return r; - if (typeof r === 'undefined') return l; - return l + r; - } + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - function isStateless($filter, filterName) { - var fn = $filter(filterName); - return !fn.$stateful; - } + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - var PURITY_ABSOLUTE = 1; - var PURITY_RELATIVE = 2; + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - // 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; + /** + * @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'`. + * + *
+ * You can no longer use the `JSON_CALLBACK` string as a placeholder for specifying where the callback + * parameter value should go. + *
+ * + * 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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ + 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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - // Unary always convert to primative - case AST.UnaryExpression: - return PURITY_ABSOLUTE; + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - // The binary + operator can invoke a stateful toString(). - case AST.BinaryExpression: - return node.operator !== '+' ? PURITY_ABSOLUTE : false; + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ + createShortMethodsWithData('post', 'put', 'patch'); - // Functions / filters probably read state from within objects - case AST.CallExpression: - return false; - } + /** + * @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 undefined === parentIsPure ? PURITY_RELATIVE : parentIsPure; - } - function findConstantAndWatchExpressions(ast, $filter, parentIsPure) { - var allConstants; - var argsToWatch; - var isStatelessFilter; + return $http; - 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 createShortMethods(names) { + forEach(arguments, function(name) { + $http[name] = function(url, config) { + return $http(extend({}, config || {}, { + method: name, + url: url + })); + }; + }); } - } - - 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 createShortMethodsWithData(name) { + forEach(arguments, function(name) { + $http[name] = function(url, data, config) { + return $http(extend({}, config || {}, { + method: name, + url: url, + data: data + })); + }; + }); } - } - 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; - } + /** + * 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); + } + } - 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;'; + // 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 = urlIsAllowedOrigin(config.url) + ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName] + : undefined; + if (xsrfValue) { + reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue; + } - // 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; - }, + $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout, + config.withCredentials, config.responseType, + createApplyHandlers(config.eventHandlers), + createApplyHandlers(config.uploadEventHandlers)); + } - USE: 'use', + return promise; - STRICT: 'strict', + 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); + } - 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) + ';'); + function callEventHandler() { + eventHandler(event); + } + }; + }); + return applyHandlers; } - }); - 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 ''; - }, + /** + * 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); + } + } - varsPrefix: function varsPrefix(section) { - return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : ''; - }, + function resolveHttpPromise() { + resolvePromise(response, status, headersString, statusText, xhrStatus); + } - body: function body(section) { - return this.state[section].body.join(''); - }, + if (useApplyAsync) { + $rootScope.$applyAsync(resolveHttpPromise); + } else { + resolveHttpPromise(); + if (!$rootScope.$$phase) $rootScope.$apply(); + } + } - 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; + + /** + * 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 + }); } - 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; + + function resolvePromiseWithResult(result) { + resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText, result.xhrStatus); } - }, - 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 + ')'); + function removePendingReq() { + var idx = $http.pendingRequests.indexOf(config); + if (idx !== -1) $http.pendingRequests.splice(idx, 1); } - 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); + function buildUrl(url, serializedParams) { + if (serializedParams.length > 0) { + url += ((url.indexOf('?') === -1) ? '?' : '&') + serializedParams; } - return this.state.filters[filterName]; - }, + return url; + } - ifDefined: function ifDefined(id, defaultValue) { - return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')'; - }, + 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); + } + }); - plus: function plus(left, right) { - return 'plus(' + left + ',' + right + ')'; - }, + // Add in the JSON_CALLBACK callback param value + url += ((url.indexOf('?') === -1) ? '?' : '&') + cbKey + '=JSON_CALLBACK'; - return_: function return_(id) { - this.current().body.push('return ', id, ';'); - }, + return url; + } + }]; +} - 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('}'); - } - } - }, +/** + * @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(); + }; + }; +} - not: function not(expression) { - return '!(' + expression + ')'; - }, +/** + * @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]); + }]; +} - isNull: function isNull(expression) { - return expression + '==null'; - }, +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(); - notNull: function notNull(expression) { - return expression + '!=null'; - }, + 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 { - 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) + '"]'; - } - }, + var xhr = createXhr(method, url); + var abortedByTimeout = false; - computedMember: function computedMember(left, right) { - return left + '[' + right + ']'; - }, + xhr.open(method, url, true); + forEach(headers, function(value, key) { + if (isDefined(value)) { + xhr.setRequestHeader(key, value); + } + }); - member: function member(left, right, computed) { - if (computed) return this.computedMember(left, right); - return this.nonComputedMember(left, right); - }, + xhr.onload = function requestLoaded() { + var statusText = xhr.statusText || ''; - getStringValue: function getStringValue(item) { - this.assign(item, 'getStringValue(' + item + ')'); - }, + // 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; - lazyRecurse: function lazyRecurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) { - var self = this; - return function () { - self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck); + // 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'); }; - }, - lazyAssign: function lazyAssign(id, value) { - var self = this; - return function () { - self.assign(id, value); + var requestError = function() { + // 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'); }; - }, - stringEscapeRegex: /[^ a-zA-Z0-9]/g, + var requestAborted = function() { + completeRequest(callback, -1, null, null, '', abortedByTimeout ? 'timeout' : 'abort'); + }; - stringEscapeFn: function stringEscapeFn(c) { - return '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4); - }, + var requestTimeout = function() { + // 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'); + }; - 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'; + xhr.onerror = requestError; + xhr.ontimeout = requestTimeout; + xhr.onabort = requestAborted; - throw $parseMinErr('esc', 'IMPOSSIBLE'); - }, + forEach(eventHandlers, function(value, key) { + xhr.addEventListener(key, value); + }); - nextId: function nextId(skip, init) { - var id = 'v' + this.state.nextId++; - if (!skip) { - this.current().vars.push(id + (init ? '=' + init : '')); + forEach(uploadEventHandlers, function(value, key) { + xhr.upload.addEventListener(key, value); + }); + + if (withCredentials) { + xhr.withCredentials = true; } - return id; - }, - current: function current() { - return this.state[this.state.computing]; - } - }; + 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; + } + } + } - function ASTInterpreter($filter) { - this.$filter = $filter; - } + xhr.send(isUndefined(post) ? null : post); + } - 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)); + // Since we are using xhr.abort() when a request times out, we have to set a flag that + // indicates to requestAborted if the request timed out or was aborted. + // + // http.timeout = numerical timeout timeout + // http.timeout = $timeout timeout + // http.timeout = promise abort + // xhr.abort() abort (The xhr object is normally inaccessible, but + // can be exposed with the xhrFactory) + if (timeout > 0) { + var timeoutId = $browserDefer(function() { + timeoutRequest('timeout'); + }, timeout); + } else if (isPromiseLike(timeout)) { + timeout.then(function() { + timeoutRequest(isDefined(timeout.$$timeoutId) ? 'timeout' : 'abort'); }); - 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); - }; + } + + function timeoutRequest(reason) { + abortedByTimeout = reason === 'timeout'; + if (jsonpDone) { + jsonpDone(); } - if (inputs) { - fn.inputs = inputs; + if (xhr) { + xhr.abort(); } - 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; - }; + function completeRequest(callback, status, response, headersString, statusText, xhrStatus) { + // cancel timeout and subsequent timeout promise resolution + if (isDefined(timeoutId)) { + $browserDefer.cancel(timeoutId); } - }, + jsonpDone = xhr = null; - '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); - }; + callback(status, response, headersString, statusText, xhrStatus); } }; - /** - * @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, + 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; - 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; - }, + callback = function(event) { + script.removeEventListener('load', callback); + script.removeEventListener('error', callback); + rawDocument.body.removeChild(script); + script = null; + var status = -1; + var text = 'unknown'; - getAst: function getAst(exp) { - var oneTime = false; - exp = exp.trim(); + if (event) { + if (event.type === 'load' && !callbacks.wasCalled(callbackPath)) { + event = { type: 'error' }; + } + text = event.type; + status = event.type === 'error' ? 404 : 200; + } - if (exp.charAt(0) === ':' && exp.charAt(1) === ':') { - oneTime = true; - exp = exp.substring(2); + if (done) { + done(status, text); } - return { - ast: this.ast.ast(exp), - oneTime: oneTime - }; - } - }; + }; + + 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 `}}`. + * + *
+ * This feature is sometimes used to mix different markup languages, e.g. to wrap an AngularJS + * 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 AngularJS + * expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS) + * security bugs! + *
+ * + * @example + + + +
+ //demo.label// +
+
+ + it('should interpolate binding with custom symbols', function() { + expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.'); + }); + +
+ */ +function $InterpolateProvider() { + var startSymbol = '{{'; + var endSymbol = '}}'; /** - * @ngdoc service - * @name $parse - * @kind function - * + * @ngdoc method + * @name $interpolateProvider#startSymbol * @description + * Symbol to denote start of expression in the interpolated string. Defaults to `{{`. * - * Converts AngularJS {@link guide/expression expression} into a function. - * - * ```js - * var getter = $parse('user.name'); - * var setter = getter.assign; - * var context = {user:{name:'AngularJS'}}; - * var locals = {user:{name:'local'}}; - * - * expect(getter(context)).toEqual('AngularJS'); - * 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. - * + * @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; + } + return startSymbol; + }; /** - * @ngdoc provider - * @name $parseProvider - * @this - * + * @ngdoc method + * @name $interpolateProvider#endSymbol * @description - * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse} - * service. + * 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. */ - function $ParseProvider() { - var cache = createMap(); - var literals = { - 'true': true, - 'false': false, - 'null': null, - 'undefined': undefined - }; - var identStart, identContinue; + this.endSymbol = function(value) { + if (value) { + endSymbol = value; + return this; + } + 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 method - * @name $parseProvider#addLiteral + * @ngdoc service + * @name $interpolate + * @kind function + * + * @requires $parse + * @requires $sce + * * @description * - * Configure $parse service to add literal values that will be present as literal at expressions. + * 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. * - * @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 + * ```js + * var $interpolate = ...; // injected + * var exp = $interpolate('Hello {{name | uppercase}}!'); + * expect(exp({name:'AngularJS'})).toEqual('Hello ANGULARJS!'); + * ``` * - * @description + * `$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 = 'AngularJS'; + * expect(exp(context)).toEqual('Hello AngularJS!'); + * ``` + * + * `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 (<, >) with &lt; and &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. + * + * + * + *
+ *

{{apptitle}}: \{\{ username = "defaced value"; \}\} + *

+ *

{{username}} 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.

+ *

Instead, the result of the attempted script injection is visible, and can be removed + * from the database by an administrator.

+ *
+ *
+ *
* - * Allows defining the set of characters that are allowed in AngularJS 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. + * @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: + * + * ``` + *
+ * ``` * - * @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. + * 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 */ - 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 $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) { + var contextAllowsConcatenation = trustedContext === $sce.URL || trustedContext === $sce.MEDIA_URL; + + // Provide a quick exit and simplified result function for text with no interpolation + if (!text.length || text.indexOf(startSymbol) === -1) { + if (mustHaveExpression && !contextAllowsConcatenation) return; + + var unescapedText = unescapeText(text); + if (contextAllowsConcatenation) { + unescapedText = $sce.getTrusted(trustedContext, unescapedText); + } + var 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 = [], + singleExpression; + + + 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); + index = endIndex + endSymbolLength; + expressionPositions.push(concat.length); + concat.push(''); // Placeholder that will get replaced with the evaluated expression. + } 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; + } + } - function $parse(exp, interceptorFn) { - var parsedExpression, cacheKey; + singleExpression = concat.length === 1 && expressionPositions.length === 1; + // Intercept expression if we need to stringify concatenated inputs, which may be SCE trusted + // objects rather than simple strings + // (we don't modify the expression if the input consists of only a single trusted input) + var interceptor = contextAllowsConcatenation && singleExpression ? undefined : parseStringifyInterceptor; + parseFns = expressions.map(function(exp) { return $parse(exp, interceptor); }); + + // 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 some $sce-managed secure contexts (RESOURCE_URLs mostly), + // 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. + + // Note that URL and MEDIA_URL $sce contexts do not need this, since `$sce` can sanitize the values + // passed to it. In that case, `$sce.getTrusted` will be called on either the single expression + // or on the overall concatenated string (losing trusted types used in the mix, by design). + // Both these methods will sanitize plain strings. Also, HTML could be included, but since it's + // only used in srcdoc attributes, this would not be very useful. + + if (!mustHaveExpression || expressions.length) { + var compute = function(values) { + for (var i = 0, ii = expressions.length; i < ii; i++) { + if (allOrNothing && isUndefined(values[i])) return; + concat[expressionPositions[i]] = values[i]; + } - switch (typeof exp === 'undefined' ? 'undefined' : _typeof(exp)) { - case 'string': - exp = exp.trim(); - cacheKey = exp; + if (contextAllowsConcatenation) { + // If `singleExpression` then `concat[0]` might be a "trusted" value or `null`, rather than a string + return $sce.getTrusted(trustedContext, singleExpression ? concat[0] : concat.join('')); + } else if (trustedContext && concat.length > 1) { + // This context does not allow more than one part, e.g. expr + string or exp + exp. + $interpolateMinErr.throwNoconcat(text); + } + // In an unprivileged context or only one part: just concatenate and return. + return concat.join(''); + }; - parsedExpression = cache[cacheKey]; + return extend(function interpolationFn(context) { + var i = 0; + var ii = expressions.length; + var values = new Array(ii); - if (!parsedExpression) { - var lexer = new Lexer($parseOptions); - var parser = new Parser(lexer, $filter, $parseOptions); - parsedExpression = parser.parse(exp); + try { + for (; i < ii; i++) { + values[i] = parseFns[i](context); + } - cache[cacheKey] = addWatchDelegate(parsedExpression); + return compute(values); + } catch (err) { + $exceptionHandler($interpolateMinErr.interr(text, err)); } - return addInterceptor(parsedExpression, interceptorFn); - case 'function': - return addInterceptor(exp, interceptorFn); + }, { + // all of these properties are undocumented for now + exp: text, //just for compatibility with regular watchers created via $watch + expressions: expressions, + $$watchDelegate: function(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; + }); + } + }); + } - default: - return addInterceptor(noop, interceptorFn); + function parseStringifyInterceptor(value) { + try { + // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual + // parts of a full URL. We don't care about losing the trustedness here. + // In non-concatenable contexts, where there is only one expression, this interceptor is + // not applied to the expression. + value = (trustedContext && !contextAllowsConcatenation) ? + $sce.getTrusted(trustedContext, value) : + $sce.valueOf(value); + return allOrNothing && !isDefined(value) ? value : stringify(value); + } catch (err) { + $exceptionHandler($interpolateMinErr.interr(text, err)); } } + } - 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) { + /** + * @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; + }; + - if (newValue == null || oldValueOfValue == null) { - // null/undefined - return newValue === oldValueOfValue; - } + /** + * @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; + }; - if ((typeof newValue === 'undefined' ? 'undefined' : _typeof(newValue)) === 'object') { + return $interpolate; + }]; +} - // 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); +var $intervalMinErr = minErr('$interval'); - if ((typeof newValue === 'undefined' ? 'undefined' : _typeof(newValue)) === 'object' && !compareObjectIdentity) { - // objects/arrays are not supported - deep-watching them would be too expensive - return false; - } +/** @this */ +function $IntervalProvider() { + this.$get = ['$$intervalFactory', '$window', + function($$intervalFactory, $window) { + var intervals = {}; + var setIntervalFn = function(tick, delay, deferred) { + var id = $window.setInterval(tick, delay); + intervals[id] = deferred; + return id; + }; + var clearIntervalFn = function(id) { + $window.clearInterval(id); + delete intervals[id]; + }; - // fall-through to the primitive equality check - } + /** + * @ngdoc service + * @name $interval + * + * @description + * AngularJS'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. + * + *
+ * **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. + *
+ * + * @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 + * + * + * + * + *
+ *
+ *
+ * Current time is: + *
+ * Blood 1 : {{blood_1}} + * Blood 2 : {{blood_2}} + * + * + * + *
+ *
+ * + *
+ *
+ */ + var interval = $$intervalFactory(setIntervalFn, clearIntervalFn); + + /** + * @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) return false; - //Primitive or NaN - // eslint-disable-next-line no-self-compare - return newValue === oldValueOfValue || newValue !== newValue && oldValueOfValue !== oldValueOfValue; + if (!promise.hasOwnProperty('$$intervalId')) { + throw $intervalMinErr('badprom', + '`$interval.cancel()` called with a promise that was not generated by `$interval()`.'); } - function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { - var inputExpressions = parsedExpression.inputs; - var lastResult; + if (!intervals.hasOwnProperty(promise.$$intervalId)) return false; - 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 id = promise.$$intervalId; + var deferred = intervals[id]; - 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; - } + // Interval cancels should not report an unhandled promise. + markQExceptionHandled(deferred.promise); + deferred.reject('canceled'); + clearIntervalFn(id); - return scope.$watch(function expressionInputsWatch(scope) { - var changed = false; + return true; + }; - 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); - } - } + return interval; + }]; +} - if (changed) { - lastResult = parsedExpression(scope, undefined, undefined, oldInputValues); - } +/** @this */ +function $$IntervalFactoryProvider() { + this.$get = ['$browser', '$q', '$$q', '$rootScope', + function($browser, $q, $$q, $rootScope) { + return function intervalFactory(setIntervalFn, clearIntervalFn) { + return function intervalFn(fn, delay, count, invokeApply) { + var hasParams = arguments.length > 4, + args = hasParams ? sliceArgs(arguments, 4) : [], + iteration = 0, + skipApply = isDefined(invokeApply) && !invokeApply, + deferred = (skipApply ? $$q : $q).defer(), + promise = deferred.promise; - return lastResult; - }, listener, objectEquality, prettyPrintExpression); - } + count = isDefined(count) ? count : 0; - function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { - var isDone = parsedExpression.literal ? isAllDefined : isDefined; - var unwatch, lastValue; + function callback() { + if (!hasParams) { + fn(iteration); + } else { + fn.apply(null, args); + } + } - var exp = parsedExpression.$$intercepted || parsedExpression; - var post = parsedExpression.$$interceptor || identity; + function tick() { + if (skipApply) { + $browser.defer(callback); + } else { + $rootScope.$evalAsync(callback); + } + deferred.notify(iteration++); - var useInputs = parsedExpression.inputs && !exp.inputs; + if (count > 0 && iteration >= count) { + deferred.resolve(iteration); + clearIntervalFn(promise.$$intervalId); + } - // Propogate the literal/inputs/constant attributes - // ... but not oneTime since we are handling it - oneTimeWatch.literal = parsedExpression.literal; - oneTimeWatch.constant = parsedExpression.constant; - oneTimeWatch.inputs = parsedExpression.inputs; + if (!skipApply) $rootScope.$apply(); + } - // Allow other delegates to run on this wrapped expression - addWatchDelegate(oneTimeWatch); + promise.$$intervalId = setIntervalFn(tick, delay, deferred, skipApply); - unwatch = scope.$watch(oneTimeWatch, listener, objectEquality, prettyPrintExpression); + return promise; + }; + }; + }]; +} - return unwatch; +/** + * @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() { + this.$get = function() { + var callbacks = angular.callbacks; + var callbackMap = {}; - function unwatchIfDone() { - if (isDone(lastValue)) { - unwatch(); - } - } + function createCallback(callbackId) { + var callback = function(data) { + callback.data = data; + callback.called = true; + }; + callback.id = callbackId; + return callback; + } - function oneTimeWatch(scope, locals, assign, inputs) { - lastValue = useInputs && inputs ? inputs[0] : exp(scope, locals, assign, inputs); - if (isDone(lastValue)) { - scope.$$postDigest(unwatchIfDone); - } - return post(lastValue); - } + 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(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(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(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(callbackPath) { + var callback = callbackMap[callbackPath]; + delete callbacks[callback.id]; + delete callbackMap[callbackPath]; } + }; + }; +}; - function isAllDefined(value) { - var allDefined = true; - forEach(value, function (val) { - if (!isDefined(val)) allDefined = false; - }); - return allDefined; - } +/** + * @ngdoc service + * @name $locale + * + * @description + * $locale service provides localization rules for various AngularJS components. As of right now the + * only public api is: + * + * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`) + */ - function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) { - var unwatch = scope.$watch(function constantWatch(scope) { - unwatch(); - return parsedExpression(scope); - }, listener, objectEquality); - return unwatch; - } +/* global stripHash: true */ - function addWatchDelegate(parsedExpression) { - if (parsedExpression.constant) { - parsedExpression.$$watchDelegate = constantWatchDelegate; - } else if (parsedExpression.oneTime) { - parsedExpression.$$watchDelegate = oneTimeWatchDelegate; - } else if (parsedExpression.inputs) { - parsedExpression.$$watchDelegate = inputsWatchDelegate; - } +var PATH_MATCH = /^([^?#]*)(\?([^#]*))?(#(.*))?$/, + DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21}; +var $locationMinErr = minErr('$location'); - return parsedExpression; - } - function chainInterceptors(first, second) { - function chainedInterceptor(value) { - return second(first(value)); - } - chainedInterceptor.$stateful = first.$stateful || second.$stateful; - chainedInterceptor.$$pure = first.$$pure && second.$$pure; +/** + * 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; - return chainedInterceptor; - } + while (i--) { + // decode forward slashes to prevent them from being double encoded + segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/')); + } - function addInterceptor(parsedExpression, interceptorFn) { - if (!interceptorFn) return parsedExpression; + return segments.join('/'); +} - // Extract any existing interceptors out of the parsedExpression - // to ensure the original parsedExpression is always the $$intercepted - if (parsedExpression.$$interceptor) { - interceptorFn = chainInterceptors(parsedExpression.$$interceptor, interceptorFn); - parsedExpression = parsedExpression.$$intercepted; - } +function decodePath(path, html5Mode) { + var segments = path.split('/'), + i = segments.length; - var useInputs = false; + 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'); + } + } - var fn = function interceptedExpression(scope, locals, assign, inputs) { - var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs); - return interceptorFn(value); - }; + return segments.join('/'); +} - // Maintain references to the interceptor/intercepted - fn.$$intercepted = parsedExpression; - fn.$$interceptor = interceptorFn; +function normalizePath(pathValue, searchValue, hashValue) { + var search = toKeyValue(searchValue), + hash = hashValue ? '#' + encodeUriSegment(hashValue) : '', + path = encodePath(pathValue); - // Propogate the literal/oneTime/constant attributes - fn.literal = parsedExpression.literal; - fn.oneTime = parsedExpression.oneTime; - fn.constant = parsedExpression.constant; + return path + (search ? '?' + search : '') + hash; +} - // Treat the interceptor like filters. - // If it is not $stateful then only watch its inputs. - // If the expression itself has no inputs then use the full expression as an input. - if (!interceptorFn.$stateful) { - useInputs = !parsedExpression.inputs; - fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression]; +function parseAbsoluteUrl(absoluteUrl, locationObj) { + var parsedUrl = urlResolve(absoluteUrl); - if (!interceptorFn.$$pure) { - 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 - // non-pure interceptor function. - if (e.isPure === PURITY_RELATIVE) { - return function depurifier(s) { - return e(s); - }; - } - return e; - }); - } - } + locationObj.$$protocol = parsedUrl.protocol; + locationObj.$$host = parsedUrl.hostname; + locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null; +} - return addWatchDelegate(fn); - } - }]; +var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/; +function parseAppUrl(url, locationObj, html5Mode) { + + if (DOUBLE_SLASH_REGEX.test(url)) { + throw $locationMinErr('badpath', 'Invalid url "{0}".', url); } - /** - * @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 AngularJS, 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); - }]; + 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); - /** - * @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; - } - }; + // make sure path starts with '/'; + if (locationObj.$$path && locationObj.$$path.charAt(0) !== '/') { + locationObj.$$path = '/' + locationObj.$$path; } +} - /** @this */ - function $$QProvider() { - var errorOnUnhandledRejections = true; - this.$get = ['$browser', '$exceptionHandler', function ($browser, $exceptionHandler) { - return qFactory(function (callback) { - $browser.defer(callback); - }, $exceptionHandler, errorOnUnhandledRejections); - }]; +function startsWith(str, search) { + return str.slice(0, search.length) === search; +} - this.errorOnUnhandledRejections = function (value) { - if (isDefined(value)) { - errorOnUnhandledRejections = value; - return this; - } else { - return errorOnUnhandledRejections; - } - }; +/** + * + * @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); } +} - /** - * 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 = []; +function stripHash(url) { + var index = url.indexOf('#'); + return index === -1 ? url : url.substr(0, index); +} - /** - * @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 stripFile(url) { + return url.substr(0, stripHash(url).lastIndexOf('/') + 1); +} - 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); - }; - } +/* return the server only (scheme://host:port) */ +function serverBase(url) { + return url.substring(0, url.indexOf('/', url.indexOf('//') + 2)); +} - 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(); +/** + * 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); - this.$$state.pending = this.$$state.pending || []; - this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]); - if (this.$$state.status > 0) scheduleProcessQueue(this.$$state); - return result; - }, + /** + * 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); + } - 'catch': function _catch(callback) { - return this.then(null, callback); - }, + parseAppUrl(pathUrl, this, true); - 'finally': function _finally(callback, progressBack) { - return this.then(function (value) { - return handleCallback(value, resolve, callback); - }, function (error) { - return handleCallback(error, reject, callback); - }, progressBack); - } - }); + if (!this.$$path) { + this.$$path = '/'; + } - function processQueue(state) { - var fn, promise, pending; + this.$$compose(); + }; - 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); - } - } - } + this.$$normalizeUrl = function(url) { + return appBaseNoFile + url.substr(1); // first char is always '/' + }; - 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); - } - } - } + 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; - 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)); + if (isDefined(appUrl = stripBaseUrl(appBase, url))) { + prevAppUrl = appUrl; + if (basePrefix && isDefined(appUrl = stripBaseUrl(basePrefix, appUrl))) { + rewrittenUrl = appBaseNoFile + (stripBaseUrl('/', appUrl) || appUrl); } else { - $$resolve(promise, val); + rewrittenUrl = appBase + prevAppUrl; } + } else if (isDefined(appUrl = stripBaseUrl(appBaseNoFile, url))) { + rewrittenUrl = appBaseNoFile + appUrl; + } else if (appBaseNoFile === url + '/') { + rewrittenUrl = appBaseNoFile; } - - 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); - } + if (rewrittenUrl) { + this.$$parse(rewrittenUrl); } + return !!rewrittenUrl; + }; +} - 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); - } +/** + * 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) { - function notifyPromise(promise, progress) { - var callbacks = promise.$$state.pending; + parseAbsoluteUrl(appBase, this); - 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; - } + /** + * 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; - function handleCallback(value, resolver, callback) { - var callbackOutput = null; - try { - if (isFunction(callback)) callbackOutput = callback(); - } catch (e) { - return reject(e); + 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; } - if (isPromiseLike(callbackOutput)) { - return callbackOutput.then(function () { - return resolver(value); - }, reject); + + } 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 { - return resolver(value); + withoutHashUrl = ''; + if (isUndefined(withoutBaseUrl)) { + appBase = url; + /** @type {?} */ (this).replace(); + } } } - /** - * @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 - */ + parseAppUrl(withoutHashUrl, this, false); - function when(value, callback, errback, progressBack) { - var result = new Promise(); - resolvePromise(result, value); - return result.then(callback, errback, progressBack); - } + this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase); - /** - * @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; + this.$$compose(); - /** - * @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.|Object.} 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. + /* + * 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 AngularJS, 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]:(\/.*)/; - 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); - }); - }); + var firstPathSegmentMatch; - if (counter === 0) { - resolvePromise(result, results); + //Get the relative path from the input URL. + if (startsWith(url, base)) { + url = url.replace(base, ''); } - return result; + // 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; } + }; - /** - * @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.|Object.} 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. - */ + this.$$normalizeUrl = function(url) { + return appBase + (url ? hashPrefix + url : ''); + }; - function race(promises) { - var deferred = defer(); + this.$$parseLinkUrl = function(url, relHref) { + if (stripHash(appBase) === stripHash(url)) { + this.$$parse(url); + return true; + } + return false; + }; +} - forEach(promises, function (promise) { - when(promise).then(deferred.resolve, deferred.reject); - }); - return deferred.promise; +/** + * 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; } - function $Q(resolver) { - if (!isFunction(resolver)) { - throw $qMinErr('norslvr', 'Expected resolverFn, got \'{0}\'', resolver); - } + 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; + }; - var promise = new Promise(); + this.$$normalizeUrl = function(url) { + // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#' + return appBase + hashPrefix + url; + }; +} - function resolveFn(value) { - resolvePromise(promise, value); - } - function rejectFn(reason) { - rejectPromise(promise, reason); - } +var locationPrototype = { - resolver(resolveFn, rejectFn); + /** + * Ensure absolute URL is initialized. + * @private + */ + $$absUrl:'', - return promise; - } + /** + * Are we in html5 mode? + * @private + */ + $$html5: false, - // Let's make the instanceof operator work for promises, so that - // `new $q(fn) instanceof $q` would evaluate to true. - $Q.prototype = Promise.prototype; + /** + * Has any change been replacing? + * @private + */ + $$replace: false, - $Q.defer = defer; - $Q.reject = reject; - $Q.when = when; - $Q.resolve = resolve; - $Q.all = all; - $Q.race = race; + /** + * Compose url and update `url` and `absUrl` property + * @private + */ + $$compose: function() { + this.$$url = normalizePath(this.$$path, this.$$search, this.$$hash); + this.$$absUrl = this.$$normalizeUrl(this.$$url); + this.$$urlUpdatedByLocation = true; + }, - return $Q; - } + /** + * @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'), - function isStateExceptionHandled(state) { - return !!state.pur; - } - function markQStateExceptionHandled(state) { - state.pur = true; - } - function markQExceptionHandled(q) { - markQStateExceptionHandled(q.$$state); - } + /** + * @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) { + if (isUndefined(url)) { + return this.$$url; + } - /** @this */ - function $$RAFProvider() { - //rAF - this.$get = ['$window', '$timeout', function ($window, $timeout) { - var requestAnimationFrame = $window.requestAnimationFrame || $window.webkitRequestAnimationFrame; + 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] || ''); - var cancelAnimationFrame = $window.cancelAnimationFrame || $window.webkitCancelAnimationFrame || $window.webkitCancelRequestAnimationFrame; + return this; + }, - 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); - }; - }; + /** + * @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'), - raf.supported = rafSupported; + /** + * @ngdoc method + * @name $location#host + * + * @description + * This method is getter only. + * + * Return host of current URL. + * + * Note: compared to the non-AngularJS 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'), - return raf; - }]; - } + /** + * @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'), /** - * DESIGN NOTES + * @ngdoc method + * @name $location#path + * + * @description + * This method is getter / setter. * - * The design decisions behind the scope are heavily favored for speed and memory consumption. + * Return path of current URL when called without any parameter. * - * 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. + * Change path when called with parameter and return `$location`. * - * 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 + * Note: Path should always begin with forward slash (/), this method will add the forward slash + * if it is missing. * - * 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 + * ```js + * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo + * var path = $location.path(); + * // => "/some/path" + * ``` * - * 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. + * @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 provider - * @name $rootScopeProvider + * @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.|Object.>} 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|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. * - * Provider for the $rootScope service. + * 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, 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 $rootScopeProvider#digestTtl + * @name $location#hash + * * @description + * This method is getter / setter. * - * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and - * assuming that the model is unstable. + * Returns the hash fragment when called without any parameters. * - * The current default is 10 iterations. + * Changes the hash fragment when called with a parameter and returns `$location`. * - * 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. + * ```js + * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue + * var hash = $location.hash(); + * // => "hashValue" + * ``` * - * @param {number} limit The number of digest iterations. + * @param {(string|number)=} hash New hash fragment + * @return {string} hash */ + hash: locationGetterSetter('$$hash', function(hash) { + return hash !== null ? hash.toString() : ''; + }), /** - * @ngdoc service - * @name $rootScope - * @this + * @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() { + 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. * - * 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}. + * 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 */ - function $RootScopeProvider() { - var TTL = 10; - var $rootScopeMinErr = minErr('$rootScope'); - var lastDirtyWatch = null; - var applyAsyncId = null; + Location.prototype.state = function(state) { + if (!arguments.length) { + return this.$$state; + } - this.digestTtl = function (value) { - if (arguments.length) { - TTL = value; - } - return TTL; - }; + 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; - 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; - this.$$suspended = false; - } - ChildScope.prototype = parent; - return ChildScope; + 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.$get = ['$exceptionHandler', '$parse', '$browser', function ($exceptionHandler, $parse, $browser) { + this[property] = preprocess(value); + this.$$compose(); - function destroyChildScope($event) { - $event.currentScope.$$destroyed = true; - } + return this; + }; +} - 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); - } - } +/** + * @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} + */ - // 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 +/** + * @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 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 `` 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)) { - $scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead = $scope.$$childTail = $scope.$root = $scope.$$watchers = null; + if (isBoolean(mode.enabled)) { + html5Mode.enabled = mode.enabled; } - /** - * @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.=} providers Map of service factory which need to be - * provided for the current scope. Defaults to {@link ng}. - * @param {Object.=} 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.$$suspended = false; - this.$$listeners = {}; - this.$$listenerCount = {}; - this.$$watchersCount = 0; - this.$$isolateBindings = null; + if (isBoolean(mode.requireBase)) { + html5Mode.requireBase = mode.requireBase; } - /** - * @ngdoc property - * @name $rootScope.Scope#$id - * - * @description - * Unique scope ID (monotonically increasing) useful for debugging. - */ + if (isBoolean(mode.rewriteLinks) || isString(mode.rewriteLinks)) { + html5Mode.rewriteLinks = mode.rewriteLinks; + } - /** - * @ngdoc property - * @name $rootScope.Scope#$parent - * - * @description - * Reference to the parent scope. - */ + return this; + } else { + return html5Mode; + } + }; - /** - * @ngdoc property - * @name $rootScope.Scope#$root - * - * @description - * Reference to the root scope. - */ + /** + * @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. + */ - 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; + /** + * @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. + */ - parent = parent || this; + 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 tag to be present!'); + } + appBase = serverBase(initialUrl) + (baseHref || '/'); + LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url; + } else { + appBase = stripHash(initialUrl); + LocationMode = LocationHashbangUrl; + } + var appBaseNoFile = stripFile(appBase); - 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; - } + $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix); + $location.$$parseLinkUrl(initialUrl, initialUrl); - // 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); + $location.$$state = $browser.state(); - return child; - }, + var IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i; - /** - * @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; + // Determine if two URLs are equal despite potentially having different encoding/normalizing + // such as $location.absUrl() vs $browser.url() + // See https://github.com/angular/angular.js/issues/16592 + function urlsEqual(a, b) { + return a === b || urlResolve(a).href === urlResolve(b).href; + } - 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 - }; + function setBrowserUrlWithFallback(url, replace, state) { + var oldUrl = $location.url(); + var oldState = $location.$$state; + try { + $browser.url(url, replace, state); - lastDirtyWatch = null; + // 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; - 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; - }; - }, + throw e; + } + } - /** - * @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. - * - * @param {Array.} 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` - * 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; - }; - } + $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 (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); - }); - } + if (!rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 || event.button === 2) return; - forEach(watchExpressions, function (expr, i) { - var unwatchFn = self.$watch(expr, function watchGroupSubAction(value) { - newValues[i] = value; - if (!changeReactionScheduled) { - changeReactionScheduled = true; - self.$evalAsync(watchGroupAction); - } - }); - deregisterFns.push(unwatchFn); - }); + var elm = jqLite(event.target); - function watchGroupAction() { - changeReactionScheduled = false; + // 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; + } - try { - if (firstRun) { - firstRun = false; - listener(newValues, newValues, self); - } else { - listener(newValues, oldValues, self); - } - } finally { - for (var i = 0; i < watchExpressions.length; i++) { - oldValues[i] = newValues[i]; - } - } + 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 AngularJS 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(); } + } + } + }); - 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) { - // Mark the interceptor as - // ... $$pure when literal since the instance will change when any input changes - $watchCollectionInterceptor.$$pure = $parse(obj).literal; - // ... $stateful when non-literal since we must read the state of the collection - $watchCollectionInterceptor.$stateful = !$watchCollectionInterceptor.$$pure; + // rewrite hashbang url <> html5 url + if ($location.absUrl() !== initialUrl) { + $browser.url($location.absUrl(), 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; + var initializing = true; - 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++; - } + // update $location when $browser url changes + $browser.onUrlChange(function(newUrl, newState) { - newLength = newValue.length; + if (!startsWith(newUrl, appBaseNoFile)) { + // If we are navigating outside of the app then force a reload + $window.location.href = newUrl; + return; + } - 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; - } + $rootScope.$evalAsync(function() { + var oldUrl = $location.absUrl(); + var oldState = $location.$$state; + var defaultPrevented; + $location.$$parse(newUrl); + $location.$$state = newState; - function $watchCollectionAction() { - if (initRun) { - initRun = false; - listener(newValue, newValue, self); - } else { - listener(newValue, veryOldValue, self); - } + defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, + newState, oldState).defaultPrevented; - // 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]; - } - } + // 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 = $browser.url(); + var newUrl = $location.absUrl(); + var oldState = $browser.state(); + var currentReplace = $location.$$replace; + var urlOrStateChanged = !urlsEqual(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); } - } + }); + } + } - return this.$watch(changeDetector, $watchCollectionAction); - }, + $location.$$replace = false; - /** - * @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 = asyncQueue.length ? $rootScope : 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(); - } + // we don't need to return anything because $evalAsync will make the digest loop dirty when + // there is a change + }); - lastDirtyWatch = null; + return $location; - do { - // "while dirty" loop - dirty = false; - current = target; + function afterLocationChange(oldUrl, oldState) { + $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl, + $location.$$state, oldState); + } +}]; +} - // 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.$$suspended && 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); - } - } - } +/** + * @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 + + + angular.module('logExample', []) + .controller('LogController', ['$scope', '$log', function($scope, $log) { + $scope.$log = $log; + $scope.message = 'Hello World!'; + }]); + + +
+

Reload this page with open console, enter text and hit the log button...

+ + + + + + +
+
+
+ */ - // 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 - // (though it differs due to having the extra check for $$suspended and does not - // check $$listenerCount) - if (!(next = !current.$$suspended && current.$$watchersCount && current.$$childHead || current !== target && current.$$nextSibling)) { - while (current !== target && !(next = current.$$nextSibling)) { - current = current.$parent; - } - } - } while (current = next); +/** + * @ngdoc provider + * @name $logProvider + * @this + * + * @description + * Use the `$logProvider` to configure how the application logs messages + */ +function $LogProvider() { + var debug = true, + self = this; - // `break traverseScopesLoop;` takes us to here + /** + * @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; + } + }; - 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); + 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); - clearPhase(); + return { + /** + * @ngdoc method + * @name $log#log + * + * @description + * Write a log message + */ + log: consoleLog('log'), - // 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; + /** + * @ngdoc method + * @name $log#info + * + * @description + * Write an information message + */ + info: consoleLog('info'), - // 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 method + * @name $log#warn + * + * @description + * Write a warning message + */ + warn: consoleLog('warn'), - /** - * @ngdoc method - * @name $rootScope.Scope#$suspend - * @kind function - * - * @description - * Suspend watchers of this scope subtree so that they will not be invoked during digest. - * - * This can be used to optimize your application when you know that running those watchers - * is redundant. - * - * **Warning** - * - * Suspending scopes from the digest cycle can have unwanted and difficult to debug results. - * Only use this approach if you are confident that you know what you are doing and have - * ample tests to ensure that bindings get updated as you expect. - * - * Some of the things to consider are: - * - * * Any external event on a directive/component will not trigger a digest while the hosting - * scope is suspended - even if the event handler calls `$apply()` or `$rootScope.$digest()`. - * * Transcluded content exists on a scope that inherits from outside a directive but exists - * as a child of the directive's containing scope. If the containing scope is suspended the - * transcluded scope will also be suspended, even if the scope from which the transcluded - * scope inherits is not suspended. - * * Multiple directives trying to manage the suspended status of a scope can confuse each other: - * * A call to `$suspend()` on an already suspended scope is a no-op. - * * A call to `$resume()` on a non-suspended scope is a no-op. - * * If two directives suspend a scope, then one of them resumes the scope, the scope will no - * longer be suspended. This could result in the other directive believing a scope to be - * suspended when it is not. - * * If a parent scope is suspended then all its descendants will be also excluded from future - * digests whether or not they have been suspended themselves. Note that this also applies to - * isolate child scopes. - * * Calling `$digest()` directly on a descendant of a suspended scope will still run the watchers - * for that scope and its descendants. When digesting we only check whether the current scope is - * locally suspended, rather than checking whether it has a suspended ancestor. - * * Calling `$resume()` on a scope that has a suspended ancestor will not cause the scope to be - * included in future digests until all its ancestors have been resumed. - * * Resolved promises, e.g. from explicit `$q` deferreds and `$http` calls, trigger `$apply()` - * against the `$rootScope` and so will still trigger a global digest even if the promise was - * initiated by a component that lives on a suspended scope. - */ - $suspend: function $suspend() { - this.$$suspended = true; - }, + /** + * @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'); - /** - * @ngdoc method - * @name $rootScope.Scope#$isSuspended - * @kind function - * - * @description - * Call this method to determine if this scope has been explicitly suspended. It will not - * tell you whether an ancestor has been suspended. - * To determine if this scope will be excluded from a digest triggered at the $rootScope, - * for example, you must check all its ancestors: - * - * ``` - * function isExcludedFromDigest(scope) { - * while(scope) { - * if (scope.$isSuspended()) return true; - * scope = scope.$parent; - * } - * return false; - * ``` - * - * Be aware that a scope may not be included in digests if it has a suspended ancestor, - * even if `$isSuspended()` returns false. - * - * @returns true if the current scope has been suspended. - */ - $isSuspended: function $isSuspended() { - return this.$$suspended; - }, + return function() { + if (debug) { + fn.apply(self, arguments); + } + }; + })() + }; - /** - * @ngdoc method - * @name $rootScope.Scope#$resume - * @kind function - * - * @description - * Resume watchers of this scope subtree in case it was suspended. - * - * See {@link $rootScope.Scope#$suspend} for information about the dangers of using this approach. - */ - $resume: function $resume() { - this.$$suspended = false; - }, + 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; + } - /** - * @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. - */ + function consoleLog(type) { + var console = $window.console || {}, + logFn = console[type] || console.log || noop; - /** - * @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; + 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); + }; + } + }]; +} - this.$broadcast('$destroy'); - this.$$destroyed = true; +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - if (this === $rootScope) { - //Remove handlers attached to window when $rootScope is removed - $browser.$$applicationDestroyed(); - } +var $parseMinErr = minErr('$parse'); - incrementWatchersCount(this, -this.$$watchersCount); - for (var eventName in this.$$listenerCount) { - decrementListenerCount(this, this.$$listenerCount[eventName], eventName); - } +var objectValueOf = {}.constructor.prototype.valueOf; - // 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 = {}; +// Sandboxing AngularJS Expressions +// ------------------------------ +// AngularJS 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 AngularJS 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 - // 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 AngularJS - * 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 AngularJS 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); - }, +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 + ''; +} - /** - * @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 AngularJS 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(); - } - }, null, '$evalAsync'); - } - asyncQueue.push({ scope: this, fn: $parse(expr), locals: locals }); - }, +var OPERATORS = createMap(); +forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; }); +var ESCAPE = {'n':'\n', 'f':'\f', 'r':'\r', 't':'\t', 'v':'\v', '\'':'\'', '"':'"'}; - $$postDigest: function $$postDigest(fn) { - postDigestQueue.push(fn); - }, - /** - * @ngdoc method - * @name $rootScope.Scope#$apply - * @kind function - * - * @description - * `$apply()` is used to execute an expression in AngularJS from outside of the AngularJS - * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries). - * Because we are calling into the AngularJS 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 AngularJS 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 AngularJS 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); - } - }, +/** + * @constructor + */ +var Lexer = function Lexer(options) { + this.options = options; +}; - /** - * @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); +Lexer.prototype = { + constructor: Lexer, - var current = this; - do { - if (!current.$$listenerCount[name]) { - current.$$listenerCount[name] = 0; - } - current.$$listenerCount[name]++; - } while (current = current.$parent); + lex: function(text) { + this.text = text; + this.index = 0; + this.tokens = []; - 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); - } - }; - }, + 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; + }, - /** - * @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); + is: function(ch, chars) { + return chars.indexOf(ch) !== -1; + }, - event.currentScope = null; + peek: function(i) { + var num = i || 1; + return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false; + }, - return event; - }, + isNumber: function(ch) { + return ('0' <= ch && ch <= '9') && typeof ch === 'string'; + }, - /** - * @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 - }; + isWhitespace: function(ch) { + // IE treats non-breaking space as \u00A0 + return (ch === ' ' || ch === '\r' || ch === '\t' || + ch === '\n' || ch === '\v' || ch === '\u00A0'); + }, - 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; - } + isIdentifierStart: function(ch) { + return this.options.isIdentifierStart ? + this.options.isIdentifierStart(ch, this.codePointAt(ch)) : + this.isValidIdentifierStart(ch); + }, - try { - listeners[i].apply(null, listenerArgs); - } catch (e) { - $exceptionHandler(e); - } - } + isValidIdentifierStart: function(ch) { + return ('a' <= ch && ch <= 'z' || + 'A' <= ch && ch <= 'Z' || + '_' === ch || ch === '$'); + }, - // 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 and - // does not check $$suspended) - if (!(next = current.$$listenerCount[name] && current.$$childHead || current !== target && current.$$nextSibling)) { - while (current !== target && !(next = current.$$nextSibling)) { - current = current.$parent; - } - } - } + isIdentifierContinue: function(ch) { + return this.options.isIdentifierContinue ? + this.options.isIdentifierContinue(ch, this.codePointAt(ch)) : + this.isValidIdentifierContinue(ch); + }, - event.currentScope = null; - return event; - } - }; + isValidIdentifierContinue: function(ch, cp) { + return this.isValidIdentifierStart(ch, cp) || this.isNumber(ch); + }, - var $rootScope = new Scope(); + codePointAt: function(ch) { + if (ch.length === 1) return ch.charCodeAt(0); + // eslint-disable-next-line no-bitwise + return (ch.charCodeAt(0) << 10) + ch.charCodeAt(1) - 0x35FDC00; + }, - //The internal queues. Expose them on the $rootScope for debugging/testing purposes. - var asyncQueue = $rootScope.$$asyncQueue = []; - var postDigestQueue = $rootScope.$$postDigestQueue = []; - var applyAsyncQueue = $rootScope.$$applyAsyncQueue = []; + peekMultichar: function() { + 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; + }, - var postDigestQueuePosition = 0; + isExpOperator: function(ch) { + return (ch === '-' || ch === '+' || this.isNumber(ch)); + }, - return $rootScope; + throwError: function(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); + }, - function beginPhase(phase) { - if ($rootScope.$$phase) { - throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase); + readNumber: function() { + 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; } - - $rootScope.$$phase = phase; } + this.index++; + } + this.tokens.push({ + index: start, + text: number, + constant: true, + value: Number(number) + }); + }, - function clearPhase() { - $rootScope.$$phase = null; + readIdent: function() { + 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 + }); + }, - function incrementWatchersCount(current, count) { - do { - current.$$watchersCount += count; - } while (current = current.$parent); + readString: function(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); + } +}; - function decrementListenerCount(current, count, name) { - do { - current.$$listenerCount[name] -= count; +var AST = function AST(lexer, options) { + this.lexer = lexer; + this.options = options; +}; - if (current.$$listenerCount[name] === 0) { - delete current.$$listenerCount[name]; - } - } while (current = current.$parent); +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(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() { + var body = []; + while (true) { + if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']')) + body.push(this.expressionStatement()); + if (!this.expect(';')) { + return { type: AST.Program, body: body}; } + } + }, - /** - * function used as an initial value for watchers. - * because it's unique we can easily tell it apart from other values - */ - function initWatchVal() {} + expressionStatement: function() { + return { type: AST.ExpressionStatement, expression: this.filterChain() }; + }, - function flushApplyAsync() { - while (applyAsyncQueue.length) { - try { - applyAsyncQueue.shift()(); - } catch (e) { - $exceptionHandler(e); - } - } - applyAsyncId = null; + filterChain: function() { + var left = this.expression(); + while (this.expect('|')) { + left = this.filter(left); + } + return left; + }, + + expression: function() { + return this.assignment(); + }, + + assignment: function() { + var result = this.ternary(); + if (this.expect('=')) { + if (!isAssignable(result)) { + throw $parseMinErr('lval', 'Trying to assign a value to a non l-value'); } - function scheduleApplyAsync() { - if (applyAsyncId === null) { - applyAsyncId = $browser.defer(function () { - $rootScope.$apply(flushApplyAsync); - }, null, '$applyAsync'); - } + result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='}; + } + return result; + }, + + ternary: function() { + 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; + }, - /** - * @ngdoc service - * @name $rootElement - * - * @description - * The root element of AngularJS 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()`. - */ + logicalOR: function() { + var left = this.logicalAND(); + while (this.expect('||')) { + left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() }; + } + return left; + }, - // the implementation is in angular.bootstrap + logicalAND: function() { + var left = this.equality(); + while (this.expect('&&')) { + left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()}; + } + return left; + }, - /** - * @this - * @description - * Private service to sanitize uris for links and images. Used by $compile and $sanitize. - */ - function $$SanitizeUriProvider() { + equality: function() { + var left = this.relational(); + var token; + while ((token = this.expect('==','!=','===','!=='))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() }; + } + return left; + }, - var aHrefSanitizationWhitelist = /^\s*(https?|s?ftp|mailto|tel|file):/, - imgSrcSanitizationWhitelist = /^\s*((https?|ftp|file|blob):|data:image\/)/; + relational: function() { + var left = this.additive(); + var token; + while ((token = this.expect('<', '>', '<=', '>='))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() }; + } + return left; + }, - /** - * @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 anchor links. - * - * Any url due to be assigned to an `a[href]` attribute via interpolation is marked as requiring - * the $sce.URL security context. When interpolation occurs a call is made to `$sce.trustAsUrl(url)` - * which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize the potentially malicious URL. - * - * If the URL matches the `aHrefSanitizationWhitelist` regular expression, it is returned unchanged. - * - * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written - * to the DOM it is inactive and potentially malicious code will not be executed. - * - * @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; - }; + additive: function() { + var left = this.multiplicative(); + var token; + while ((token = this.expect('+','-'))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() }; + } + return left; + }, - /** - * @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 image src links. - * - * Any URL due to be assigned to an `img[src]` attribute via interpolation is marked as requiring - * the $sce.MEDIA_URL security context. When interpolation occurs a call is made to - * `$sce.trustAsMediaUrl(url)` which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize - * the potentially malicious URL. - * - * If the URL matches the `aImgSanitizationWhitelist` regular expression, it is returned unchanged. - * - * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written - * to the DOM it is inactive and potentially malicious code will not be executed. - * - * @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; + multiplicative: function() { + 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() { + var token; + if ((token = this.expect('+', '-', '!'))) { + return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() }; + } else { + return this.primary(); + } + }, + + primary: function() { + 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 imgSrcSanitizationWhitelist; - }; + } + return primary; + }, - this.$get = function () { - return function sanitizeUri(uri, isMediaUrl) { - // if (!uri) return uri; - var regex = isMediaUrl ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist; - var normalizedVal = urlResolve(uri && uri.trim()).href; - if (normalizedVal !== '' && !normalizedVal.match(regex)) { - return 'unsafe:' + normalizedVal; - } - return uri; - }; - }; - } + filter: function(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; + }, - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * 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? * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + parseArguments: function() { + var args = []; + if (this.peekToken().text !== ')') { + do { + args.push(this.filterChain()); + } while (this.expect(',')); + } + return args; + }, - /* exported $SceProvider, $SceDelegateProvider */ + identifier: function() { + var token = this.consume(); + if (!token.identifier) { + this.throwError('is not a valid identifier', token); + } + return { type: AST.Identifier, name: token.text }; + }, - var $sceMinErr = minErr('$sce'); + constant: function() { + // TODO check that it is a constant + return { type: AST.Literal, value: this.consume().value }; + }, - var SCE_CONTEXTS = { - // HTML is used when there's HTML rendered (e.g. ng-bind-html, iframe srcdoc binding). - HTML: 'html', + arrayDeclaration: function() { + 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(']'); - // Style statements or stylesheets. Currently unused in AngularJS. - CSS: 'css', + return { type: AST.ArrayExpression, elements: elements }; + }, - // An URL used in a context where it refers to the source of media, which are not expected to be run - // as scripts, such as an image, audio, video, etc. - MEDIA_URL: 'mediaUrl', + object: function() { + 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('}'); - // An URL used in a context where it does not refer to a resource that loads code. - // A value that can be trusted as a URL can also trusted as a MEDIA_URL. - URL: 'url', + return {type: AST.ObjectExpression, properties: properties }; + }, - // 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) - // A value that can be trusted as a RESOURCE_URL, can also trusted as a URL and a MEDIA_URL. - RESOURCE_URL: 'resourceUrl', + throwError: function(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)); + }, - // Script. Currently unused in AngularJS. - JS: 'js' - }; + consume: function(e1) { + if (this.tokens.length === 0) { + throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); + } - // Helper functions follow. + var token = this.expect(e1); + if (!token) { + this.throwError('is unexpected, expecting [' + e1 + ']', this.peek()); + } + return token; + }, - var UNDERSCORE_LOWERCASE_REGEXP = /_([a-z])/g; + peekToken: function() { + if (this.tokens.length === 0) { + throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); + } + return this.tokens[0]; + }, - function snakeToCamel(name) { - return name.replace(UNDERSCORE_LOWERCASE_REGEXP, fnCamelCaseReplace); - } + peek: function(e1, e2, e3, e4) { + return this.peekAhead(0, e1, e2, e3, e4); + }, - 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); + peekAhead: function(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; } - 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'); } - } + return false; + }, - function adjustMatchers(matchers) { - var adjustedMatchers = []; - if (isDefined(matchers)) { - forEach(matchers, function (matcher) { - adjustedMatchers.push(adjustMatcher(matcher)); - }); + expect: function(e1, e2, e3, e4) { + var token = this.peek(e1, e2, e3, e4); + if (token) { + this.tokens.shift(); + return token; } - return adjustedMatchers; + return false; + }, + + selfReferential: { + 'this': {type: AST.ThisExpression }, + '$locals': {type: AST.LocalsExpression } } +}; - /** - * @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. - * - *
- * 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. - *
- * - * 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} - */ +function ifDefined(v, d) { + return typeof v !== 'undefined' ? v : d; +} - /** - * @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 AngularJS, read the main page for {@link ng.$sce - * Strict Contextual Escaping (SCE)}. - * - * **Example**: Consider the following case.
- * - * - 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 plusFn(l, r) { + if (typeof l === 'undefined') return r; + if (typeof r === 'undefined') return l; + return l + r; +} - function $SceDelegateProvider() { - this.SCE_CONTEXTS = SCE_CONTEXTS; +function isStateless($filter, filterName) { + var fn = $filter(filterName); + return !fn.$stateful; +} - // Resource URLs can also be trusted by policy. - var resourceUrlWhitelist = ['self'], - resourceUrlBlacklist = []; +var PURITY_ABSOLUTE = 1; +var PURITY_RELATIVE = 2; - /** - * @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. - * - *
- * **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. - *
- */ - this.resourceUrlWhitelist = function (value) { - if (arguments.length) { - resourceUrlWhitelist = adjustMatchers(value); +// 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; } - return resourceUrlWhitelist; - }; + break; - /** - * @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.

- * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items - * allowed in this array.

- * 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. - *

- * 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.) - */ + // Unary always convert to primative + case AST.UnaryExpression: + return PURITY_ABSOLUTE; - this.resourceUrlBlacklist = function (value) { - if (arguments.length) { - resourceUrlBlacklist = adjustMatchers(value); - } - return resourceUrlBlacklist; - }; + // The binary + operator can invoke a stateful toString(). + case AST.BinaryExpression: + return node.operator !== '+' ? PURITY_ABSOLUTE : false; - this.$get = ['$injector', '$$sanitizeUri', function ($injector, $$sanitizeUri) { + // Functions / filters probably read state from within objects + case AST.CallExpression: + return false; + } - var htmlSanitizer = function htmlSanitizer(html) { - throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.'); - }; + return (undefined === parentIsPure) ? PURITY_RELATIVE : parentIsPure; +} - if ($injector.has('$sanitize')) { - htmlSanitizer = $injector.get('$sanitize'); - } +function findConstantAndWatchExpressions(ast, $filter, parentIsPure) { + var allConstants; + var argsToWatch; + var isStatelessFilter; - function matchUrl(matcher, parsedUrl) { - if (matcher === 'self') { - return urlIsSameOrigin(parsedUrl) || urlIsSameOriginAsBaseUrl(parsedUrl); - } else { - // definitely a regex. See adjustMatchers() - return !!matcher.exec(parsedUrl.href); - } - } + var astIsPure = ast.isPure = isPure(ast, parentIsPure); - 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; + 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 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; - } +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; +} - var trustedValueHolderBase = generateHolderType(), - byType = {}; +function isAssignable(ast) { + return ast.type === AST.Identifier || ast.type === AST.MemberExpression; +} - byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase); - byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase); - byType[SCE_CONTEXTS.MEDIA_URL] = generateHolderType(trustedValueHolderBase); - byType[SCE_CONTEXTS.URL] = generateHolderType(byType[SCE_CONTEXTS.MEDIA_URL]); - byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase); - byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]); +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: '='}; + } +} - /** - * @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); - } +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); +} - /** - * @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; - } +function isConstant(ast) { + return ast.constant; +} + +function ASTCompiler($filter) { + this.$filter = $filter; +} + +ASTCompiler.prototype = { + compile: function(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() { + 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(''); + }, - /** - * @ngdoc method - * @name $sceDelegate#getTrusted - * - * @description - * Given an object and a security context in which to assign it, returns a value that's safe to - * use in this context, which was represented by the parameter. To do so, this function either - * unwraps the safe type it has been given (for instance, a {@link ng.$sceDelegate#trustAs - * `$sceDelegate.trustAs`} result), or it might try to sanitize the value given, depending on - * the context and sanitizer availablility. - * - * The contexts that can be sanitized are $sce.MEDIA_URL, $sce.URL and $sce.HTML. The first two are available - * by default, and the third one relies on the `$sanitize` service (which may be loaded through - * the `ngSanitize` module). Furthermore, for $sce.RESOURCE_URL context, a plain string may be - * accepted if the resource url policy defined by {@link ng.$sceDelegateProvider#resourceUrlWhitelist - * `$sceDelegateProvider.resourceUrlWhitelist`} and {@link ng.$sceDelegateProvider#resourceUrlBlacklist - * `$sceDelegateProvider.resourceUrlBlacklist`} accepts that resource. - * - * This function will throw if the safe type isn't appropriate for this context, or if the - * value given cannot be accepted in the context (which might be caused by sanitization not - * being available, or the value not being recognized as safe). - * - *

- * Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting - * (XSS) vulnerability in your application. - *
- * - * @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(); - } + generateFunction: function(name, params) { + return 'function(' + params + '){' + + this.varsPrefix(name) + + this.body(name) + + '};'; + }, - // If maybeTrusted is a trusted class instance but not of the correct trusted type - // then unwrap it and allow it to pass through to the rest of the checks - if (isFunction(maybeTrusted.$$unwrapTrustedValue)) { - maybeTrusted = maybeTrusted.$$unwrapTrustedValue(); - } + filterPrefix: function() { + 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(section) { + return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : ''; + }, + + body: function(section) { + return this.state[section].body.join(''); + }, - // If we get here, then we will either sanitize the value or throw an exception. - if (type === SCE_CONTEXTS.MEDIA_URL || type === SCE_CONTEXTS.URL) { - // we attempt to sanitize non-resource URLs - return $$sanitizeUri(maybeTrusted.toString(), type === SCE_CONTEXTS.MEDIA_URL); - } else if (type === SCE_CONTEXTS.RESOURCE_URL) { - if (isResourceUrlAllowedByPolicy(maybeTrusted)) { - return maybeTrusted; + recurse: function(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 { - throw $sceMinErr('insecurl', 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}', maybeTrusted.toString()); + 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; + } } - } else if (type === SCE_CONTEXTS.HTML) { - // htmlSanitizer throws its own error when no sanitizer is available. - return htmlSanitizer(maybeTrusted); + }, 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; } - // 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.'); + }); + 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; + } + }, - return { trustAs: trustAs, - getTrusted: getTrusted, - valueOf: valueOf }; - }]; - } + getHasOwnProperty: function(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]; + }, - /** - * @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)}. - */ + assign: function(id, value) { + if (!id) return; + this.current().body.push(id, '=', value, ';'); + return id; + }, - /** - * @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: - * - * ``` - * - *
- * ``` - * - * 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, AngularJS 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. - * `
`) just works (remember to include the - * `ngSanitize` module). 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. - * - * - * ### 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} module is present this will sanitize the value instead of throwing an error. | - * | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. | - * | `$sce.MEDIA_URL` | For URLs that are safe to render as media. Is automatically converted from string by sanitizing when needed. | - * | `$sce.URL` | For URLs that are safe to follow as links. Is automatically converted from string by sanitizing when needed. Note that `$sce.URL` makes a stronger statement about the URL than `$sce.MEDIA_URL` does and therefore contexts requiring values trusted for `$sce.URL` can be used anywhere that values trusted for `$sce.MEDIA_URL` are required.| - * | `$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` (e.g. `IFRAME`, `OBJECT`, etc.)

Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` or `$sce.MEDIA_URL` do and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` or `$sce.MEDIA_URL` are required.

The {@link $sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider#resourceUrlWhitelist()} and {@link $sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider#resourceUrlBlacklist()} can be used to restrict trusted origins for `RESOURCE_URL` | - * | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. | - * - * - *
- * Be aware that, before AngularJS 1.7.0, `a[href]` and `img[src]` used to sanitize their - * interpolated values directly rather than rely upon {@link ng.$sce#getTrusted `$sce.getTrusted`}. - * - * **As of 1.7.0, this is no longer the case.** - * - * Now such interpolations are marked as requiring `$sce.URL` (for `a[href]`) or `$sce.MEDIA_URL` - * (for `img[src]`), so that the sanitization happens (via `$sce.getTrusted...`) when the `$interpolate` - * service evaluates the expressions. - *
- * - * There are no CSS 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} - * - * 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. - * - * - * - *
- *

- * User comments
- * 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. - *
- *
- * {{userComment.name}}: - * - *
- *
- *
- *
- *
- * - * - * 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( - * 'Hover over this text.'); - * }]); - * - * - * - * [ - * { "name": "Alice", - * "htmlComment": - * "Is anyone reading this?" - * }, - * { "name": "Bob", - * "htmlComment": "Yes! Am I the only other one?" - * } - * ] - * - * - * - * describe('SCE doc demo', function() { - * it('should sanitize untrusted values', function() { - * expect(element.all(by.css('.htmlComment')).first().getAttribute('innerHTML')) - * .toBe('Is anyone reading this?'); - * }); - * - * it('should NOT sanitize explicitly trusted values', function() { - * expect(element(by.id('explicitlyTrustedHtml')).getAttribute('innerHTML')).toBe( - * 'Hover over this text.'); - * }); - * }); - * - *
- * - * - * - * ## 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); - * }); - * ``` - * - */ + filter: function(filterName) { + if (!this.state.filters.hasOwnProperty(filterName)) { + this.state.filters[filterName] = this.nextId(true); + } + return this.state.filters[filterName]; + }, - function $SceProvider() { - var enabled = true; + ifDefined: function(id, defaultValue) { + return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')'; + }, - /** - * @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; - }; + plus: function(left, right) { + return 'plus(' + left + ',' + right + ')'; + }, - /* 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 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. - */ + return_: function(id) { + this.current().body.push('return ', id, ';'); + }, - 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 to the top of your HTML ' + 'document. See http://docs.angularjs.org/api/ng.$sce for more information.'); + if_: function(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('}'); } + } + }, - var sce = shallowCopy(SCE_CONTEXTS); + not: function(expression) { + return '!(' + expression + ')'; + }, - /** - * @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; + isNull: function(expression) { + return expression + '==null'; + }, - if (!enabled) { - sce.trustAs = sce.getTrusted = function (type, value) { - return value; - }; - sce.valueOf = identity; - } + notNull: function(expression) { + return expression + '!=null'; + }, - /** - * @ngdoc method - * @name $sce#parseAs - * - * @description - * Converts AngularJS {@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); - }); - } - }; + nonComputedMember: function(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) + '"]'; + } + }, - /** - * @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. - */ + computedMember: function(left, right) { + return left + '[' + right + ']'; + }, - /** - * @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`). - */ + member: function(left, right, computed) { + if (computed) return this.computedMember(left, right); + return this.nonComputedMember(left, right); + }, - /** - * @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. - */ + getStringValue: function(item) { + this.assign(item, 'getStringValue(' + item + ')'); + }, - /** - * @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. - */ + lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) { + var self = this; + return function() { + self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck); + }; + }, - /** - * @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, ...) - */ + lazyAssign: function(id, value) { + var self = this; + return function() { + self.assign(id, value); + }; + }, - /** - * @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. - */ + stringEscapeRegex: /[^ a-zA-Z0-9]/g, - /** - * @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. - */ + stringEscapeFn: function(c) { + return '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4); + }, - /** - * @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)` - */ + escape: function(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'; - /** - * @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)` - */ + throw $parseMinErr('esc', 'IMPOSSIBLE'); + }, - /** - * @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)` - */ + nextId: function(skip, init) { + var id = 'v' + (this.state.nextId++); + if (!skip) { + this.current().vars.push(id + (init ? '=' + init : '')); + } + return id; + }, - /** - * @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)` - */ + current: function() { + return this.state[this.state.computing]; + } +}; - /** - * @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`. - */ +function ASTInterpreter($filter) { + this.$filter = $filter; +} - /** - * @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`. - */ +ASTInterpreter.prototype = { + compile: function(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; + }, - /** - * @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`. - */ + recurse: function(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; + }; + } + }, - /** - * @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`. - */ + 'unary+': function(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(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(argument, context) { + return function(scope, locals, assign, inputs) { + var arg = !argument(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary+': function(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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, context) { + return function() { return context ? {context: undefined, name: undefined, value: value} : value; }; + }, + identifier: function(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(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(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(input, watchId) { + return function(scope, value, locals, inputs) { + if (inputs) return inputs[watchId]; + return input(scope, value, locals); + }; + } +}; - /** - * @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`. - */ +/** + * @constructor + */ +function Parser(lexer, $filter, options) { + this.ast = new AST(lexer, options); + this.astCompiler = options.csp ? new ASTInterpreter($filter) : + new ASTCompiler($filter); +} - // Shorthand delegations. - var parse = sce.parseAs, - getTrusted = sce.getTrusted, - trustAs = sce.trustAs; +Parser.prototype = { + constructor: Parser, - 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); - }; - }); + parse: function(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; + }, - return sce; - }]; + getAst: function(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 + }; } +}; - /* exported $SnifferProvider */ +function getValueOf(value) { + return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value); +} - /** - * !!! 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; - } +/** + * @ngdoc service + * @name $parse + * @kind function + * + * @description + * + * Converts AngularJS {@link guide/expression expression} into a function. + * + * ```js + * var getter = $parse('user.name'); + * var setter = getter.assign; + * var context = {user:{name:'AngularJS'}}; + * var locals = {user:{name:'local'}}; + * + * expect(getter(context)).toEqual('AngularJS'); + * 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. + * + */ - return eventSupport[event]; - }, - csp: csp(), - transitions: transitions, - animations: animations, - android: android - }; - }]; - } + +/** + * @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; /** - * ! This is a private undocumented service ! - * - * @name $$taskTrackerFactory + * @ngdoc method + * @name $parseProvider#addLiteral * @description - * A function to create `TaskTracker` instances. * - * A `TaskTracker` can keep track of pending tasks (grouped by type) and can notify interested - * parties when all pending tasks (or tasks of a specific type) have been completed. + * Configure $parse service to add literal values that will be present as literal at expressions. * - * @param {$log} log - A logger instance (such as `$log`). Used to log error during callback - * execution. + * @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 - */ - function $$TaskTrackerFactoryProvider() { - this.$get = valueFn(function (log) { - return new TaskTracker(log); - }); - } - - function TaskTracker(log) { - var self = this; - var taskCounts = {}; - var taskCallbacks = []; - - var ALL_TASKS_TYPE = self.ALL_TASKS_TYPE = '$$all$$'; - var DEFAULT_TASK_TYPE = self.DEFAULT_TASK_TYPE = '$$default$$'; - - /** - * Execute the specified function and decrement the appropriate `taskCounts` counter. - * If the counter reaches 0, all corresponding `taskCallbacks` are executed. - * - * @param {Function} fn - The function to execute. - * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task that is being completed. - */ - self.completeTask = completeTask; + **/ + this.addLiteral = function(literalName, literalValue) { + literals[literalName] = literalValue; + }; - /** - * Increase the task count for the specified task type (or the default task type if non is - * specified). - * - * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task whose count will be increased. - */ - self.incTaskCount = incTaskCount; + /** + * @ngdoc method + * @name $parseProvider#setIdentifierFns + * + * @description + * + * Allows defining the set of characters that are allowed in AngularJS 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; + }; - /** - * Execute the specified callback when all pending tasks have been completed. - * - * If there are no pending tasks, the callback is executed immediately. You can optionally limit - * the tasks that will be waited for to a specific type, by passing a `taskType`. - * - * @param {function} callback - The function to call when there are no pending tasks. - * @param {string=} [taskType=ALL_TASKS_TYPE] - The type of tasks that will be waited for. - */ - self.notifyWhenNoPendingTasks = notifyWhenNoPendingTasks; + 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 completeTask(fn, taskType) { - taskType = taskType || DEFAULT_TASK_TYPE; + function $parse(exp, interceptorFn) { + var parsedExpression, cacheKey; - try { - fn(); - } finally { - decTaskCount(taskType); + switch (typeof exp) { + case 'string': + exp = exp.trim(); + cacheKey = exp; - var countForType = taskCounts[taskType]; - var countForAll = taskCounts[ALL_TASKS_TYPE]; + parsedExpression = cache[cacheKey]; - // If at least one of the queues (`ALL_TASKS_TYPE` or `taskType`) is empty, run callbacks. - if (!countForAll || !countForType) { - var getNextCallback = !countForAll ? getLastCallback : getLastCallbackForType; - var nextCb; + if (!parsedExpression) { + var lexer = new Lexer($parseOptions); + var parser = new Parser(lexer, $filter, $parseOptions); + parsedExpression = parser.parse(exp); - while (nextCb = getNextCallback(taskType)) { - try { - nextCb(); - } catch (e) { - log.error(e); - } + cache[cacheKey] = addWatchDelegate(parsedExpression); } - } - } - } - - function decTaskCount(taskType) { - taskType = taskType || DEFAULT_TASK_TYPE; - if (taskCounts[taskType]) { - taskCounts[taskType]--; - taskCounts[ALL_TASKS_TYPE]--; - } - } + return addInterceptor(parsedExpression, interceptorFn); - function getLastCallback() { - var cbInfo = taskCallbacks.pop(); - return cbInfo && cbInfo.cb; - } + case 'function': + return addInterceptor(exp, interceptorFn); - function getLastCallbackForType(taskType) { - for (var i = taskCallbacks.length - 1; i >= 0; --i) { - var cbInfo = taskCallbacks[i]; - if (cbInfo.type === taskType) { - taskCallbacks.splice(i, 1); - return cbInfo.cb; - } + default: + return addInterceptor(noop, interceptorFn); } } - function incTaskCount(taskType) { - taskType = taskType || DEFAULT_TASK_TYPE; - taskCounts[taskType] = (taskCounts[taskType] || 0) + 1; - taskCounts[ALL_TASKS_TYPE] = (taskCounts[ALL_TASKS_TYPE] || 0) + 1; + function $$getAst(exp) { + var lexer = new Lexer($parseOptions); + var parser = new Parser(lexer, $filter, $parseOptions); + return parser.getAst(exp).ast; } - function notifyWhenNoPendingTasks(callback, taskType) { - taskType = taskType || ALL_TASKS_TYPE; - if (!taskCounts[taskType]) { - callback(); - } else { - taskCallbacks.push({ type: taskType, cb: callback }); - } - } - } - - var $templateRequestMinErr = minErr('$templateRequest'); - - /** - * @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; + function expressionInputDirtyCheck(newValue, oldValueOfValue, compareObjectIdentity) { - /** - * @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; + if (newValue == null || oldValueOfValue == null) { // null/undefined + return newValue === oldValueOfValue; } - 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) { + if (typeof newValue === 'object') { - function handleRequestFn(tpl, ignoreRequestError) { - handleRequestFn.totalPendingRequests++; + // 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); - // 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 AngularJS 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); + if (typeof newValue === 'object' && !compareObjectIdentity) { + // objects/arrays are not supported - deep-watching them would be too expensive + return false; } - var transformResponse = $http.defaults && $http.defaults.transformResponse; - - if (isArray(transformResponse)) { - transformResponse = transformResponse.filter(function (transformer) { - return transformer !== defaultHttpResponseTransform; - }); - } else if (transformResponse === defaultHttpResponseTransform) { - transformResponse = null; - } + // fall-through to the primitive equality check + } - return $http.get(tpl, extend({ - cache: $templateCache, - transformResponse: transformResponse - }, httpOptions)).finally(function () { - handleRequestFn.totalPendingRequests--; - }).then(function (response) { - return $templateCache.put(tpl, response.data); - }, handleError); + //Primitive or NaN + // eslint-disable-next-line no-self-compare + return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue); + } - function handleError(resp) { - if (!ignoreRequestError) { - resp = $templateRequestMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})', tpl, resp.status, resp.statusText); + function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { + var inputExpressions = parsedExpression.inputs; + var lastResult; - $exceptionHandler(resp); + 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 $q.reject(resp); - } + return lastResult; + }, listener, objectEquality, prettyPrintExpression); } - 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 = {}; + 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; + } - /** - * @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; - }; + return scope.$watch(function expressionInputsWatch(scope) { + var changed = false; - /** - * @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; + 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); } } - }; - /** - * @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(); + if (changed) { + lastResult = parsedExpression(scope, undefined, undefined, oldInputValues); } - }; - - /** - * @name $$testability#whenStable - * - * @description - * Calls the callback when all pending tasks are completed. - * - * Types of tasks waited for include: - * - Pending timeouts (via {@link $timeout}). - * - Pending HTTP requests (via {@link $http}). - * - In-progress route transitions (via {@link $route}). - * - Pending tasks scheduled via {@link $rootScope#$applyAsync}. - * - Pending tasks scheduled via {@link $rootScope#$evalAsync}. - * These include tasks scheduled via `$evalAsync()` indirectly (such as {@link $q} promises). - * - * @param {function} callback - */ - testability.whenStable = function (callback) { - $browser.notifyWhenNoOutstandingRequests(callback); - }; - - return testability; - }]; - } - var $timeoutMinErr = minErr('$timeout'); + return lastResult; + }, listener, objectEquality, prettyPrintExpression); + } - /** @this */ - function $TimeoutProvider() { - this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler', function ($rootScope, $browser, $q, $$q, $exceptionHandler) { + function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { + var isDone = parsedExpression.literal ? isAllDefined : isDefined; + var unwatch, lastValue; - var deferreds = {}; + var exp = parsedExpression.$$intercepted || parsedExpression; + var post = parsedExpression.$$interceptor || identity; - /** - * @ngdoc service - * @name $timeout - * - * @description - * AngularJS'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 useInputs = parsedExpression.inputs && !exp.inputs; - var args = sliceArgs(arguments, 3), - skipApply = isDefined(invokeApply) && !invokeApply, - deferred = (skipApply ? $$q : $q).defer(), - promise = deferred.promise, - timeoutId; + // Propogate the literal/inputs/constant attributes + // ... but not oneTime since we are handling it + oneTimeWatch.literal = parsedExpression.literal; + oneTimeWatch.constant = parsedExpression.constant; + oneTimeWatch.inputs = parsedExpression.inputs; - timeoutId = $browser.defer(function () { - try { - deferred.resolve(fn.apply(null, args)); - } catch (e) { - deferred.reject(e); - $exceptionHandler(e); - } finally { - delete deferreds[promise.$$timeoutId]; - } + // Allow other delegates to run on this wrapped expression + addWatchDelegate(oneTimeWatch); - if (!skipApply) $rootScope.$apply(); - }, delay, '$timeout'); + unwatch = scope.$watch(oneTimeWatch, listener, objectEquality, prettyPrintExpression); - promise.$$timeoutId = timeoutId; - deferreds[timeoutId] = deferred; + return unwatch; - return promise; + function unwatchIfDone() { + if (isDone(lastValue)) { + unwatch(); + } } - /** - * @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) return false; - - if (!promise.hasOwnProperty('$$timeoutId')) { - throw $timeoutMinErr('badprom', '`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.'); + function oneTimeWatch(scope, locals, assign, inputs) { + lastValue = useInputs && inputs ? inputs[0] : exp(scope, locals, assign, inputs); + if (isDone(lastValue)) { + scope.$$postDigest(unwatchIfDone); } + return post(lastValue); + } + } - if (!deferreds.hasOwnProperty(promise.$$timeoutId)) return false; + function isAllDefined(value) { + var allDefined = true; + forEach(value, function(val) { + if (!isDefined(val)) allDefined = false; + }); + return allDefined; + } - var id = promise.$$timeoutId; - var deferred = deferreds[id]; + function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) { + var unwatch = scope.$watch(function constantWatch(scope) { + unwatch(); + return parsedExpression(scope); + }, listener, objectEquality); + return unwatch; + } - // Timeout cancels should not report an unhandled promise. - markQExceptionHandled(deferred.promise); - deferred.reject('canceled'); - delete deferreds[id]; + function addWatchDelegate(parsedExpression) { + if (parsedExpression.constant) { + parsedExpression.$$watchDelegate = constantWatchDelegate; + } else if (parsedExpression.oneTime) { + parsedExpression.$$watchDelegate = oneTimeWatchDelegate; + } else if (parsedExpression.inputs) { + parsedExpression.$$watchDelegate = inputsWatchDelegate; + } - return $browser.defer.cancel(id); - }; + return parsedExpression; + } - return timeout; - }]; - } + function chainInterceptors(first, second) { + function chainedInterceptor(value) { + return second(first(value)); + } + chainedInterceptor.$stateful = first.$stateful || second.$stateful; + chainedInterceptor.$$pure = first.$$pure && second.$$pure; - // 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); - var baseUrlParsingNode; + return chainedInterceptor; + } - /** - * - * 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|object} url The URL to be parsed. If `url` is not a string, it will be returned - * unchanged. - * @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 without 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) { - if (!isString(url)) return url; + function addInterceptor(parsedExpression, interceptorFn) { + if (!interceptorFn) return parsedExpression; - var href = url; + // Extract any existing interceptors out of the parsedExpression + // to ensure the original parsedExpression is always the $$intercepted + if (parsedExpression.$$interceptor) { + interceptorFn = chainInterceptors(parsedExpression.$$interceptor, interceptorFn); + parsedExpression = parsedExpression.$$intercepted; + } - // 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; - } + var useInputs = false; - urlParsingNode.setAttribute('href', href); + var fn = function interceptedExpression(scope, locals, assign, inputs) { + var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs); + return interceptorFn(value); + }; - 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 - }; - } + // Maintain references to the interceptor/intercepted + fn.$$intercepted = parsedExpression; + fn.$$interceptor = interceptorFn; - /** - * 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) { - return urlsAreSameOrigin(requestUrl, originUrl); - } + // Propogate the literal/oneTime/constant attributes + fn.literal = parsedExpression.literal; + fn.oneTime = parsedExpression.oneTime; + fn.constant = parsedExpression.constant; - /** - * Parse a request URL and determine whether it is same-origin as the current document base URL. - * - * Note: The base URL is usually the same as the document location (`location.href`) but can - * be overriden by using the `` tag. - * - * @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 URL is same-origin as the document base URL. - */ - function urlIsSameOriginAsBaseUrl(requestUrl) { - return urlsAreSameOrigin(requestUrl, getBaseUrl()); - } + // Treat the interceptor like filters. + // If it is not $stateful then only watch its inputs. + // If the expression itself has no inputs then use the full expression as an input. + if (!interceptorFn.$stateful) { + useInputs = !parsedExpression.inputs; + fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression]; - /** - * Create a function that can check a URL's origin against a list of allowed/whitelisted origins. - * The current location's origin is implicitly trusted. - * - * @param {string[]} whitelistedOriginUrls - A list of URLs (strings), whose origins are trusted. - * - * @returns {Function} - A function that receives a URL (string or parsed URL object) and returns - * whether it is of an allowed origin. - */ - function urlIsAllowedOriginFactory(whitelistedOriginUrls) { - var parsedAllowedOriginUrls = [originUrl].concat(whitelistedOriginUrls.map(urlResolve)); + if (!interceptorFn.$$pure) { + 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 + // non-pure interceptor function. + if (e.isPure === PURITY_RELATIVE) { + return function depurifier(s) { return e(s); }; + } + return e; + }); + } + } - /** - * Check whether the specified URL (string or parsed URL object) has an origin that is allowed - * based on a list of whitelisted-origin URLs. The current location's origin is implicitly - * trusted. - * - * @param {string|Object} requestUrl - The URL to be checked (provided as a string that will be - * resolved or a parsed URL object). - * - * @returns {boolean} - Whether the specified URL is of an allowed origin. - */ - return function urlIsAllowedOrigin(requestUrl) { - var parsedUrl = urlResolve(requestUrl); - return parsedAllowedOriginUrls.some(urlsAreSameOrigin.bind(null, parsedUrl)); - }; - } + return addWatchDelegate(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 AngularJS, 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); + }]; /** - * Determine if two URLs share the same origin. + * @ngdoc method + * @name $qProvider#errorOnUnhandledRejections + * @kind function * - * @param {string|Object} url1 - First URL to compare as a string or a normalized URL in the form of - * a dictionary object returned by `urlResolve()`. - * @param {string|object} url2 - Second URL to compare as a string or a normalized URL in the form - * of a dictionary object returned by `urlResolve()`. + * @description + * Retrieves or overrides whether to generate an error when a rejected promise is not handled. + * This feature is enabled by default. * - * @returns {boolean} - True if both URLs have the same origin, and false otherwise. - */ - function urlsAreSameOrigin(url1, url2) { - url1 = urlResolve(url1); - url2 = urlResolve(url2); - - return url1.protocol === url2.protocol && url1.host === url2.host; - } - - /** - * Returns the current document base URL. - * @returns {string} + * @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. */ - function getBaseUrl() { - if (window.document.baseURI) { - return window.document.baseURI; + this.errorOnUnhandledRejections = function(value) { + if (isDefined(value)) { + errorOnUnhandledRejections = value; + return this; + } else { + return errorOnUnhandledRejections; } + }; +} - // `document.baseURI` is available everywhere except IE - if (!baseUrlParsingNode) { - baseUrlParsingNode = window.document.createElement('a'); - baseUrlParsingNode.href = '.'; +/** @this */ +function $$QProvider() { + var errorOnUnhandledRejections = true; + this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) { + return qFactory(function(callback) { + $browser.defer(callback); + }, $exceptionHandler, errorOnUnhandledRejections); + }]; - // Work-around for IE bug described in Implementation Notes. The fix in `urlResolve()` is not - // suitable here because we need to track changes to the base URL. - baseUrlParsingNode = baseUrlParsingNode.cloneNode(false); + this.errorOnUnhandledRejections = function(value) { + if (isDefined(value)) { + errorOnUnhandledRejections = value; + return this; + } else { + return errorOnUnhandledRejections; } - return baseUrlParsingNode.href; - } + }; +} - /** - * @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 AngularJS 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 - - - -
- - -
-
- - 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(); - }); - -
- */ - function $WindowProvider() { - this.$get = valueFn(window); - } +/** + * 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 = []; /** - * @name $$cookieReader - * @requires $document + * @ngdoc method + * @name ng.$q#defer + * @kind function * * @description - * This is a private service for reading cookies used by $http and ngCookies + * Creates a `Deferred` object which represents a task which will finish in the future. * - * @return {Object} a key/value map of the current cookies + * @returns {Deferred} Returns a new instance of deferred. */ - function $$CookieReader($document) { - var rawDocument = $document[0] || {}; - var lastCookies = {}; - var lastCookieString = ''; - - function safeGetCookie(rawDocument) { - try { - return rawDocument.cookie || ''; - } catch (e) { - return ''; - } - } + function defer() { + return new Deferred(); + } - 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; - }; + 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); }; } - $$CookieReader.$inject = ['$document']; - /** @this */ - function $$CookieReaderProvider() { - this.$get = $$CookieReader; + function Promise() { + this.$$state = { status: 0 }; } - /* global currencyFilter: true, - dateFilter: true, - filterFilter: true, - jsonFilter: true, - limitToFilter: true, - lowercaseFilter: true, - numberFilter: true, - orderByFilter: true, - uppercaseFilter: true, - */ + extend(Promise.prototype, { + then: function(onFulfilled, onRejected, progressBack) { + if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) { + return this; + } + var result = new Promise(); - /** - * @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. - * - *
- * **Note:** Filter names must be valid AngularJS {@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`). - *
- * - * ```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 AngularJS filters work, and how to create your own filters, see - * {@link guide/filter Filters} in the AngularJS Developer Guide. - */ + this.$$state.pending = this.$$state.pending || []; + this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]); + if (this.$$state.status > 0) scheduleProcessQueue(this.$$state); - /** - * @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. AngularJS 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 - - -
-

{{ originalText }}

-

{{ filteredText }}

-
-
- - - angular.module('filterExample', []) - .controller('MainCtrl', function($scope, $filter) { - $scope.originalText = 'hello'; - $scope.filteredText = $filter('uppercase')($scope.originalText); - }); - -
- */ - $FilterProvider.$inject = ['$provide']; - /** @this */ - function $FilterProvider($provide) { - var suffix = 'Filter'; + return result; + }, - /** - * @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. - * - *
- * **Note:** Filter names must be valid AngularJS {@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`). - *
- * @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; + 'catch': function(callback) { + return this.then(null, callback); + }, - this.$get = ['$injector', function ($injector) { - return function (name) { - return $injector.get(name + suffix); - }; - }]; + 'finally': function(callback, progressBack) { + return this.then(function(value) { + return handleCallback(value, resolve, callback); + }, function(error) { + return handleCallback(error, reject, callback); + }, progressBack); + } + }); - //////////////////////////////////////// - - /* global - currencyFilter: false, - dateFilter: false, - filterFilter: false, - jsonFilter: false, - limitToFilter: false, - lowercaseFilter: false, - numberFilter: false, - orderByFilter: false, - uppercaseFilter: false - */ + function processQueue(state) { + var fn, promise, pending; - 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); + 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); + } + } } - /** - * @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. - *
- * **Note**: If the array contains objects that reference themselves, filtering is not possible. - *
- * @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 - - -
- - - - - - - - -
NamePhone
{{friend.name}}{{friend.phone}}
-
-
-
-
-
- - - - - - -
NamePhone
{{friendObj.name}}{{friendObj.phone}}
-
- - 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'); - }); - -
- */ - - function filterFilter() { - return function (array, expression, comparator, anyPropertyKey) { - if (!isArrayLike(array)) { - if (array == null) { - return array; + 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 { - throw minErr('filter')('notarray', 'Expected array but received: {0}', array); + exceptionHandler(errorMessage); } } + } + } - 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; + function scheduleProcessQueue(state) { + if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) { + if (queueSize === 0 && checkQueue.length === 0) { + nextTick(processChecks); } - - return Array.prototype.filter.call(array, predicateFn); - }; + checkQueue.push(state); + } + if (state.processScheduled || !state.pending) return; + state.processScheduled = true; + ++queueSize; + nextTick(function() { processQueue(state); }); } - // 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; - }; + 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); } - predicateFn = function predicateFn(item) { - if (shouldMatchPrimitives && !isObject(item)) { - return deepCompare(item, expression[anyPropertyKey], comparator, anyPropertyKey, false); + } + + 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); } - return deepCompare(item, expression, comparator, anyPropertyKey, matchAgainstAnyProp); - }; + } catch (e) { + doReject(e); + } - return predicateFn; + 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 deepCompare(actual, expected, comparator, anyPropertyKey, matchAgainstAnyProp, dontMatchWholeObject) { - var actualType = getTypeForFilter(actual); - var expectedType = getTypeForFilter(expected); + function rejectPromise(promise, reason) { + if (promise.$$state.status) return; + $$reject(promise, reason); + } - 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); - }); - } + function $$reject(promise, reason) { + promise.$$state.value = reason; + promise.$$state.status = 2; + scheduleProcessQueue(promise.$$state); + } - 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; - } + function notifyPromise(promise, progress) { + var callbacks = promise.$$state.pending; - 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); + 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); + } + } + }); } } - // 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 + * @ngdoc method + * @name $q#reject * @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. + * 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. * - * @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. + * 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); + * }); + * ``` * - * @example - - - -
-
- default currency symbol ($): {{amount | currency}}
- custom currency identifier (USD$): {{amount | currency:"USD$"}}
- no fractions (0): {{amount | currency:"USD$":0}} -
-
- - 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'); - }); - -
+ * @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`. */ - currencyFilter.$inject = ['$locale']; - function currencyFilter($locale) { - var formats = $locale.NUMBER_FORMATS; - return function (amount, currencySymbol, fractionSize) { - if (isUndefined(currencySymbol)) { - currencySymbol = formats.CURRENCY_SYM; - } + function reject(reason) { + var result = new Promise(); + rejectPromise(result, reason); + return result; + } - if (isUndefined(fractionSize)) { - fractionSize = formats.PATTERNS[1].maxFrac; - } + 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 + */ - // If the currency symbol is empty, trim whitespace around the symbol - var currencySymbolRe = !currencySymbol ? /\s*\u00A4\s*/g : /\u00A4/g; - // if null or undefined pass it through - return amount == null ? amount : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).replace(currencySymbolRe, currencySymbol); - }; + function when(value, callback, errback, progressBack) { + var result = new Promise(); + resolvePromise(result, value); + return result.then(callback, errback, progressBack); } /** - * @ngdoc filter - * @name number + * @ngdoc method + * @name $q#resolve * @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. + * 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 * - * @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 - - - -
-
- Default formatting: {{val | number}}
- No fractions: {{val | number:0}}
- Negative number: {{-val | number:4}} -
-
- - 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'); - }); - -
+ * @description + * Combines multiple promises into a single promise that is resolved when all of the input + * promises are resolved. + * + * @param {Array.|Object.} 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. */ - 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); - }; + 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; } /** - * 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/) + * @ngdoc method + * @name $q#race + * @kind function * - * @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` + * @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.|Object.} 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 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, ''); - } + function race(promises) { + var deferred = defer(); - // 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; + 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); } - // Count the number of leading zeros. - for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {/* empty */} + var promise = new Promise(); - 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); - } + function resolveFn(value) { + resolvePromise(promise, value); } - // 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; + function rejectFn(reason) { + rejectPromise(promise, reason); } - return { d: digits, e: exponent, i: numberOfIntegerDigits }; + resolver(resolveFn, rejectFn); + + return promise; } - /** - * 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; + // Let's make the instanceof operator work for promises, so that + // `new $q(fn) instanceof $q` would evaluate to true. + $Q.prototype = Promise.prototype; - // determine fractionSize if it is not specified; `+fractionSize` converts it to a number - fractionSize = isUndefined(fractionSize) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize; + $Q.defer = defer; + $Q.reject = reject; + $Q.when = when; + $Q.resolve = resolve; + $Q.all = all; + $Q.race = race; - // The index of the digit to where rounding is to occur - var roundAt = fractionSize + parsedNumber.i; - var digit = digits[roundAt]; + return $Q; +} - if (roundAt > 0) { - // Drop fractional digits beyond `roundAt` - digits.splice(Math.max(parsedNumber.i, roundAt)); +function isStateExceptionHandled(state) { + return !!state.pur; +} +function markQStateExceptionHandled(state) { + state.pur = true; +} +function markQExceptionHandled(q) { + markQStateExceptionHandled(q.$$state); +} - // 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; - } - } +/** @this */ +function $$RAFProvider() { //rAF + this.$get = ['$window', '$timeout', function($window, $timeout) { + var requestAnimationFrame = $window.requestAnimationFrame || + $window.webkitRequestAnimationFrame; - if (digit >= 5) { - if (roundAt - 1 < 0) { - for (var k = 0; k > roundAt; k--) { - digits.unshift(0); - parsedNumber.i++; + var cancelAnimationFrame = $window.cancelAnimationFrame || + $window.webkitCancelAnimationFrame || + $window.webkitCancelRequestAnimationFrame; + + var rafSupported = !!requestAnimationFrame; + var raf = rafSupported + ? function(fn) { + var id = requestAnimationFrame(fn); + return function() { + cancelAnimationFrame(id); + }; } - digits.unshift(1); - parsedNumber.i++; - } else { - digits[roundAt - 1]++; - } - } + : function(fn) { + var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666 + return function() { + $timeout.cancel(timer); + }; + }; - // 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++; - } - } + raf.supported = rafSupported; - /** - * 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) { + return raf; + }]; +} - if (!(isString(number) || isNumber(number)) || isNaN(number)) return ''; +/** + * 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. + */ - var isInfinity = !isFinite(number); - var isZero = false; - var numStr = Math.abs(number) + '', - formattedText = '', - parsedNumber; - if (isInfinity) { - formattedText = '\u221E'; - } else { - parsedNumber = parse(numStr); +/** + * @ngdoc provider + * @name $rootScopeProvider + * @description + * + * Provider for the $rootScope service. + */ - roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac); +/** + * @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. + */ - 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++; - } +/** + * @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; - // extract decimals digits - if (integerLen > 0) { - decimals = digits.splice(integerLen, digits.length); - } else { - decimals = digits; - digits = [0]; - } + this.digestTtl = function(value) { + if (arguments.length) { + TTL = value; + } + return TTL; + }; - // 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); + 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; + this.$$suspended = false; + } + ChildScope.prototype = parent; + return ChildScope; + } - // append the decimal digits - if (decimals.length) { - formattedText += decimalSep + decimals.join(''); - } + this.$get = ['$exceptionHandler', '$parse', '$browser', + function($exceptionHandler, $parse, $browser) { - if (exponent) { - formattedText += 'e+' + exponent; - } - } - if (number < 0 && !isZero) { - return pattern.negPre + formattedText + pattern.negSuf; - } else { - return pattern.posPre + formattedText + pattern.posSuf; + function destroyChildScope($event) { + $event.currentScope.$$destroyed = true; } - } - function padNumber(num, digits, trim, negWrap) { - var neg = ''; - if (num < 0 || negWrap && num <= 0) { - if (negWrap) { - num = -num + 1; - } else { - num = -num; - neg = '-'; + 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; } - num = '' + num; - while (num.length < digits) { - num = ZERO_CHAR + num; - }if (trim) { - num = num.substr(num.length - digits); + + /** + * @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.=} providers Map of service factory which need to be + * provided for the current scope. Defaults to {@link ng}. + * @param {Object.=} 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.$$suspended = false; + this.$$listeners = {}; + this.$$listenerCount = {}; + this.$$watchersCount = 0; + this.$$isolateBindings = null; } - 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); - }; - } + /** + * @ngdoc property + * @name $rootScope.Scope#$id + * + * @description + * Unique scope ID (monotonically increasing) useful for debugging. + */ - 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); + /** + * @ngdoc property + * @name $rootScope.Scope#$parent + * + * @description + * Reference to the parent scope. + */ - return formats[get][value]; - }; - } + /** + * @ngdoc property + * @name $rootScope.Scope#$root + * + * @description + * Reference to the root scope. + */ - function timeZoneGetter(date, formats, offset) { - var zone = -1 * offset; - var paddedZone = zone >= 0 ? '+' : ''; + 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(isolate, parent) { + var child; - paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) + padNumber(Math.abs(zone % 60), 2); + parent = parent || this; - return paddedZone; - } + 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; + } - 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); - } + // 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); - function getThursdayThisWeek(datetime) { - return new Date(datetime.getFullYear(), datetime.getMonth(), - // 4 = index of Thursday - datetime.getDate() + (4 - datetime.getDay())); - } + return child; + }, - function weekGetter(size) { - return function (date) { - var firstThurs = getFirstThursdayOfYear(date.getFullYear()), - thisThurs = getThursdayThisWeek(date); + /** + * @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); - var diff = +thisThurs - +firstThurs, - result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week + // Run the digest but since food has not changed count will still be zero + scope.$digest(); + expect(scope.foodCounter).toEqual(0); - return padNumber(result, size); - }; - } + // Update food and run digest. Now the counter will increment + food = 'cheeseburger'; + scope.$digest(); + expect(scope.foodCounter).toEqual(1); - function ampmGetter(date, formats) { - return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[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(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 + }; - function eraGetter(date, formats) { - return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1]; - } + lastDirtyWatch = null; - function longEraGetter(date, formats) { - return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1]; - } + 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); - 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 - }; + return function deregisterWatch() { + var index = arrayRemove(array, watcher); + if (index >= 0) { + incrementWatchersCount(scope, -1); + if (index < array.$$digestWatchIndex) { + array.$$digestWatchIndex--; + } + } + lastDirtyWatch = null; + }; + }, - var DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/, - NUMBER_STRING = /^-?\d+$/; + /** + * @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. + * + * @param {Array.} 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` + * The `scope` refers to the current scope. + * @returns {function()} Returns a de-registration function for all listeners. + */ + $watchGroup: function(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; + }; + } - /** - * @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 - - - {{1288323623006 | date:'medium'}}: - {{1288323623006 | date:'medium'}}
- {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}: - {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}
- {{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}: - {{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}
- {{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}: - {{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}
-
- - 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)/); - }); - -
- */ - 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; - } + 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); + }); + } - return function (date, format, timezone) { - var text = '', - parts = [], - fn, - match; + forEach(watchExpressions, function(expr, i) { + var unwatchFn = self.$watch(expr, function watchGroupSubAction(value) { + newValues[i] = value; + if (!changeReactionScheduled) { + changeReactionScheduled = true; + self.$evalAsync(watchGroupAction); + } + }); + deregisterFns.push(unwatchFn); + }); - format = format || 'mediumDate'; - format = $locale.DATETIME_FORMATS[format] || format; - if (isString(date)) { - date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date); - } + function watchGroupAction() { + changeReactionScheduled = false; - if (isNumber(date)) { - date = new Date(date); - } + try { + if (firstRun) { + firstRun = false; + listener(newValues, newValues, self); + } else { + listener(newValues, oldValues, self); + } + } finally { + for (var i = 0; i < watchExpressions.length; i++) { + oldValues[i] = newValues[i]; + } + } + } - if (!isDate(date) || !isFinite(date.getTime())) { - return date; - } + return function deregisterWatchGroup() { + while (deregisterFns.length) { + deregisterFns.shift()(); + } + }; + }, - while (format) { - match = DATE_FORMATS_SPLIT.exec(format); - if (match) { - parts = concat(parts, match, 1); - format = parts.pop(); - } else { - parts.push(format); - format = null; + + /** + * @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(obj, listener) { + // Mark the interceptor as + // ... $$pure when literal since the instance will change when any input changes + $watchCollectionInterceptor.$$pure = $parse(obj).literal; + // ... $stateful when non-literal since we must read the state of the collection + $watchCollectionInterceptor.$stateful = !$watchCollectionInterceptor.$$pure; + + 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; } - } - 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, '\''); - }); + function $watchCollectionAction() { + if (initRun) { + initRun = false; + listener(newValue, newValue, self); + } else { + listener(newValue, veryOldValue, self); + } - return text; - }; - } + // 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]; + } + } + } + } + } - /** - * @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 - - -
{{ {'name':'value'} | json }}
-
{{ {'name':'value'} | json:4 }}
-
- - 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}/); - }); - -
- * - */ - function jsonFilter() { - return function (object, spacing) { - if (isUndefined(spacing)) { - spacing = 2; - } - return toJson(object, spacing); - }; - } + return this.$watch(changeDetector, $watchCollectionAction); + }, - /** - * @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 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; - /** - * @ngdoc filter - * @name uppercase - * @kind function - * @description - * Converts string to uppercase. - * @example - - - -
- -

{{title}}

- -

{{title | uppercase}}

-
-
-
- */ - var uppercaseFilter = valueFn(uppercase); + expect(scope.counter).toEqual(0); + scope.$watch('name', function(newValue, oldValue) { + scope.counter = scope.counter + 1; + }); + expect(scope.counter).toEqual(0); - /** - * @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 - - - -
- -

Output numbers: {{ numbers | limitTo:numLimit }}

- -

Output letters: {{ letters | limitTo:letterLimit }}

- -

Output long number: {{ longNumber | limitTo:longNumberLimit }}

-
-
- - 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'); - }); - -
- */ - 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; + 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() { + var watch, value, last, fn, get, + watchers, + dirty, ttl = TTL, + next, current, target = asyncQueue.length ? $rootScope : 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.$$suspended && 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 + // (though it differs due to having the extra check for $$suspended and does not + // check $$listenerCount) + if (!(next = ((!current.$$suspended && current.$$watchersCount && current.$$childHead) || + (current !== target && current.$$nextSibling)))) { + while (current !== target && !(next = current.$$nextSibling)) { + current = current.$parent; + } + } + } while ((current = next)); - if (isNumber(input)) input = input.toString(); - if (!isArrayLike(input)) return input; + // `break traverseScopesLoop;` takes us to here - begin = !begin || isNaN(begin) ? 0 : toInt(begin); - begin = begin < 0 ? Math.max(0, input.length + begin) : begin; + 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); + } - 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); + } 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; - function sliceFn(input, begin, end) { - if (isString(input)) return input.slice(begin, end); + // Check for changes to browser url that happened during the $digest + // (for which no event is fired; e.g. via `history.pushState()`) + $browser.$$checkUrlChange(); + }, - return slice.call(input, begin, end); - } + /** + * @ngdoc method + * @name $rootScope.Scope#$suspend + * @kind function + * + * @description + * Suspend watchers of this scope subtree so that they will not be invoked during digest. + * + * This can be used to optimize your application when you know that running those watchers + * is redundant. + * + * **Warning** + * + * Suspending scopes from the digest cycle can have unwanted and difficult to debug results. + * Only use this approach if you are confident that you know what you are doing and have + * ample tests to ensure that bindings get updated as you expect. + * + * Some of the things to consider are: + * + * * Any external event on a directive/component will not trigger a digest while the hosting + * scope is suspended - even if the event handler calls `$apply()` or `$rootScope.$digest()`. + * * Transcluded content exists on a scope that inherits from outside a directive but exists + * as a child of the directive's containing scope. If the containing scope is suspended the + * transcluded scope will also be suspended, even if the scope from which the transcluded + * scope inherits is not suspended. + * * Multiple directives trying to manage the suspended status of a scope can confuse each other: + * * A call to `$suspend()` on an already suspended scope is a no-op. + * * A call to `$resume()` on a non-suspended scope is a no-op. + * * If two directives suspend a scope, then one of them resumes the scope, the scope will no + * longer be suspended. This could result in the other directive believing a scope to be + * suspended when it is not. + * * If a parent scope is suspended then all its descendants will be also excluded from future + * digests whether or not they have been suspended themselves. Note that this also applies to + * isolate child scopes. + * * Calling `$digest()` directly on a descendant of a suspended scope will still run the watchers + * for that scope and its descendants. When digesting we only check whether the current scope is + * locally suspended, rather than checking whether it has a suspended ancestor. + * * Calling `$resume()` on a scope that has a suspended ancestor will not cause the scope to be + * included in future digests until all its ancestors have been resumed. + * * Resolved promises, e.g. from explicit `$q` deferreds and `$http` calls, trigger `$apply()` + * against the `$rootScope` and so will still trigger a global digest even if the promise was + * initiated by a component that lives on a suspended scope. + */ + $suspend: function() { + this.$$suspended = true; + }, - /** - * @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: ... - * } - * ``` - * **Note:** `null` values use `'null'` as their type. - * 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.
- * (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.
- * (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, sorts values of different types by type and puts - * `undefined` and `null` values at the end of the sorted list. - * - * More specifically, it follows these steps to determine the relative order of items: - * - * 1. If the compared values are of different types: - * - If one of the values is undefined, consider it "greater than" the other. - * - Else if one of the values is null, consider it "greater than" the other. - * - Else 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` and `undefined` are considered "greater than" - * any other value (with undefined "greater than" null). This effectively means that `null` - * and `undefined` values end up at the end of a list sorted in ascending order. - * **Note:** `null` values use `'null'` as their type to be able to distinguish them from objects. - * - * @param {Array|ArrayLike} collection - The collection (array or array-like object) to sort. - * @param {(Function|string|Array.)=} 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 AngularJS 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.
- * (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`.)
- * 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. - * - - -
- - - - - - - - - - - -
NamePhone NumberAge
{{friend.name}}{{friend.phone}}{{friend.age}}
-
-
- - 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} - ]; - }]); - - - .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; - } - - - // 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'); - }); - -
- *
- * - * @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. - * - - -
-
Sort by = {{propertyName}}; reverse = {{reverse}}
-
- -
- - - - - - - - - - - -
- - - - - - - - -
{{friend.name}}{{friend.phone}}{{friend.age}}
-
-
- - 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; - }; - }]); - - - .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 - } - - - // 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'); - }); - -
- *
- * - * @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')`.) - * - - -
-
Sort by = {{propertyName}}; reverse = {{reverse}}
-
- -
- - - - - - - - - - - -
- - - - - - - - -
{{friend.name}}{{friend.phone}}{{friend.age}}
-
-
- - 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); - }; - }]); - - - .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 - } - - - // 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'); - }); - -
- *
- * - * @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.) - * - - -
-
-

Locale-sensitive Comparator

- - - - - - - - - -
NameFavorite Letter
{{friend.name}}{{friend.favoriteLetter}}
-
-
-

Default Comparator

- - - - - - - - - -
NameFavorite Letter
{{friend.name}}{{friend.favoriteLetter}}
-
-
-
- - 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); - }; - }]); - - - .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; - } - - - // 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'); - }); - -
- * - */ - orderByFilter.$inject = ['$parse']; - function orderByFilter($parse) { - return function (array, sortPredicate, reverseOrder, compareFn) { + /** + * @ngdoc method + * @name $rootScope.Scope#$isSuspended + * @kind function + * + * @description + * Call this method to determine if this scope has been explicitly suspended. It will not + * tell you whether an ancestor has been suspended. + * To determine if this scope will be excluded from a digest triggered at the $rootScope, + * for example, you must check all its ancestors: + * + * ``` + * function isExcludedFromDigest(scope) { + * while(scope) { + * if (scope.$isSuspended()) return true; + * scope = scope.$parent; + * } + * return false; + * ``` + * + * Be aware that a scope may not be included in digests if it has a suspended ancestor, + * even if `$isSuspended()` returns false. + * + * @returns true if the current scope has been suspended. + */ + $isSuspended: function() { + return this.$$suspended; + }, - if (array == null) return array; - if (!isArrayLike(array)) { - throw minErr('orderBy')('notarray', 'Expected array but received: {0}', array); - } + /** + * @ngdoc method + * @name $rootScope.Scope#$resume + * @kind function + * + * @description + * Resume watchers of this scope subtree in case it was suspended. + * + * See {@link $rootScope.Scope#$suspend} for information about the dangers of using this approach. + */ + $resume: function() { + this.$$suspended = false; + }, - if (!isArray(sortPredicate)) { - sortPredicate = [sortPredicate]; - } - if (sortPredicate.length === 0) { - sortPredicate = ['+']; - } + /** + * @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. + */ - var predicates = processPredicates(sortPredicate); + /** + * @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() { + // We can't destroy a scope that has been already destroyed. + if (this.$$destroyed) return; + var parent = this.$parent; - var descending = reverseOrder ? -1 : 1; + this.$broadcast('$destroy'); + this.$$destroyed = true; - // Define the `compare()` function. Use a default comparator if none is specified. - var compare = isFunction(compareFn) ? compareFn : defaultCompare; + if (this === $rootScope) { + //Remove handlers attached to window when $rootScope is removed + $browser.$$applicationDestroyed(); + } - // 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; - }); + incrementWatchersCount(this, -this.$$watchersCount); + for (var eventName in this.$$listenerCount) { + decrementListenerCount(this, this.$$listenerCount[eventName], eventName); + } - return array; + // 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; - 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); - }) - }; - } + // 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 = {}; - 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; - } + // 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 AngularJS + * 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 AngularJS 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(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 AngularJS 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(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(); + } + }, null, '$evalAsync'); } - return (compare(v1.tieBreaker, v2.tieBreaker) || defaultCompare(v1.tieBreaker, v2.tieBreaker)) * descending; - } - }; + asyncQueue.push({scope: this, fn: $parse(expr), locals: locals}); + }, - function processPredicates(sortPredicates) { - return sortPredicates.map(function (predicate) { - var descending = 1, - get = identity; + $$postDigest: function(fn) { + postDigestQueue.push(fn); + }, - 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); + /** + * @ngdoc method + * @name $rootScope.Scope#$apply + * @kind function + * + * @description + * `$apply()` is used to execute an expression in AngularJS from outside of the AngularJS + * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries). + * Because we are calling into the AngularJS 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 AngularJS 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(expr) { + try { + beginPhase('$apply'); + try { + return this.$eval(expr); + } finally { + clearPhase(); } - if (predicate !== '') { - get = $parse(predicate); - if (get.constant) { - var key = get(); - get = function get(value) { - return value[key]; - }; - } + } catch (e) { + $exceptionHandler(e); + } finally { + try { + $rootScope.$digest(); + } catch (e) { + $exceptionHandler(e); + // eslint-disable-next-line no-unsafe-finally + throw e; } } - 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; - } - } + /** + * @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 AngularJS 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(expr) { + var scope = this; + if (expr) { + applyAsyncQueue.push($applyAsyncExpression); + } + expr = $parse(expr); + scheduleApplyAsync(); - 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; - } + function $applyAsyncExpression() { + scope.$eval(expr); + } + }, - return value; - } + /** + * @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(name, listener) { + var namedListeners = this.$$listeners[name]; + if (!namedListeners) { + this.$$listeners[name] = namedListeners = []; + } + namedListeners.push(listener); - function getPredicateValue(value, index) { - var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); - if (value === null) { - type = 'null'; - } else if (type === 'object') { - value = objectValue(value); - } - return { value: value, type: type, index: index }; - } + 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); + } + }; + }, - 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; + /** + * @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(name, args) { + var empty = [], + namedListeners, + scope = this, + stopPropagation = false, + event = { + name: name, + targetScope: scope, + stopPropagation: function() {stopPropagation = true;}, + preventDefault: function() { + event.defaultPrevented = true; + }, + defaultPrevented: false + }, + listenerArgs = concat([event], arguments, 1), + i, length; - 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; - } + do { + namedListeners = scope.$$listeners[name] || empty; + event.currentScope = scope; + for (i = 0, length = namedListeners.length; i < length; i++) { - if (value1 !== value2) { - result = value1 < value2 ? -1 : 1; - } - } else { - result = type1 === 'undefined' ? 1 : type2 === 'undefined' ? -1 : type1 === 'null' ? 1 : type2 === 'null' ? -1 : type1 < type2 ? -1 : 1; - } + // 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); - return result; - } - } + event.currentScope = null; - function ngDirective(directive) { - if (isFunction(directive)) { - directive = { - link: directive - }; - } - directive.restrict = directive.restrict || 'AC'; - return valueFn(directive); - } + return event; + }, - /** - * @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 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(name, args) { + var target = this, + current = target, + next = target, + event = { + name: name, + targetScope: target, + preventDefault: function() { + 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; } - }); - }; - } - } - }); - /** - * @ngdoc directive - * @name ngHref - * @restrict A - * @priority 99 - * - * @description - * Using AngularJS markup like `{{hash}}` in an href attribute will - * make the link go to the wrong URL if the user clicks it before - * AngularJS has a chance to replace the `{{hash}}` markup with its - * value. Until AngularJS 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 - * link1 - * ``` - * - * The correct way to write it: - * ```html - * link1 - * ``` - * - * @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: - - -
- link 1 (link, don't reload)
- link 2 (link, don't reload)
- link 3 (link, reload!)
- anchor (link, don't reload)
- anchor (no link)
- link (link, change location) -
- - 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 AngularJS 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 AngularJS 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'); - }); - -
- */ + try { + listeners[i].apply(null, listenerArgs); + } catch (e) { + $exceptionHandler(e); + } + } - /** - * @ngdoc directive - * @name ngSrc - * @restrict A - * @priority 99 - * - * @description - * Using AngularJS markup like `{{hash}}` in a `src` attribute doesn't - * work right: The browser will fetch from the URL with the literal - * text `{{hash}}` until AngularJS replaces the expression inside - * `{{hash}}`. The `ngSrc` directive solves this problem. - * - * The buggy way to write it: - * ```html - * Description - * ``` - * - * The correct way to write it: - * ```html - * Description - * ``` - * - * @element IMG - * @param {template} ngSrc any string which can contain `{{}}` markup. - */ + // 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 and + // does not check $$suspended) + if (!(next = ((current.$$listenerCount[name] && current.$$childHead) || + (current !== target && current.$$nextSibling)))) { + while (current !== target && !(next = current.$$nextSibling)) { + current = current.$parent; + } + } + } - /** - * @ngdoc directive - * @name ngSrcset - * @restrict A - * @priority 99 - * - * @description - * Using AngularJS markup like `{{hash}}` in a `srcset` attribute doesn't - * work right: The browser will fetch from the URL with the literal - * text `{{hash}}` until AngularJS replaces the expression inside - * `{{hash}}`. The `ngSrcset` directive solves this problem. - * - * The buggy way to write it: - * ```html - * Description - * ``` - * - * The correct way to write it: - * ```html - * Description - * ``` - * - * @element IMG - * @param {template} ngSrcset any string which can contain `{{}}` markup. - */ + event.currentScope = null; + return event; + } + }; - /** - * @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 - - -
- -
- - 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(); - }); - -
- * - * @element INPUT - * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy, - * then the `disabled` attribute will be set on the element - */ + var $rootScope = new Scope(); - /** - * @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 - - -
- -
- - 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(); - }); - -
- * - * @element INPUT - * @param {expression} ngChecked If the {@link guide/expression expression} is truthy, - * then the `checked` attribute will be set on the element - */ + //The internal queues. Expose them on the $rootScope for debugging/testing purposes. + var asyncQueue = $rootScope.$$asyncQueue = []; + var postDigestQueue = $rootScope.$$postDigestQueue = []; + var applyAsyncQueue = $rootScope.$$applyAsyncQueue = []; - /** - * @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 - - -
- -
- - 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(); - }); - -
- * - * @element INPUT - * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy, - * then special attribute "readonly" will be set on the element - */ + var postDigestQueuePosition = 0; - /** - * @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. - * - *
- * **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. - *
- * - * @example - - -
- -
- - 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(); - }); - -
- * - * @element OPTION - * @param {expression} ngSelected If the {@link guide/expression expression} is truthy, - * then special attribute "selected" will be set on the element - */ + return $rootScope; - /** - * @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 - - -
-
- List -
    -
  • Apple
  • -
  • Orange
  • -
  • Durian
  • -
-
-
- - 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(); - }); - -
- * - * @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 = {}; + function beginPhase(phase) { + if ($rootScope.$$phase) { + throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase); + } + + $rootScope.$$phase = phase; + } - // boolean attrs are evaluated - forEach(BOOLEAN_ATTR, function (propName, attrName) { - // binding to multiple is not supported - if (propName === 'multiple') return; + function clearPhase() { + $rootScope.$$phase = null; + } - function defaultLinkFn(scope, element, attr) { - scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) { - attr.$set(attrName, !!value); - }); + function incrementWatchersCount(current, count) { + do { + current.$$watchersCount += count; + } while ((current = current.$parent)); } - var normalized = directiveNormalize('ng-' + attrName); - var linkFn = defaultLinkFn; + function decrementListenerCount(current, count, name) { + do { + current.$$listenerCount[name] -= count; - 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); + if (current.$$listenerCount[name] === 0) { + delete current.$$listenerCount[name]; } - }; + } while ((current = current.$parent)); } - 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; - } - } + /** + * function used as an initial value for watchers. + * because it's unique we can easily tell it apart from other values + */ + function initWatchVal() {} - scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) { - attr.$set(ngAttr, value); - }); + function flushApplyAsync() { + while (applyAsyncQueue.length) { + try { + applyAsyncQueue.shift()(); + } catch (e) { + $exceptionHandler(e); } - }; - }; - }); + } + applyAsyncId = null; + } - // 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; - } + function scheduleApplyAsync() { + if (applyAsyncId === null) { + applyAsyncId = $browser.defer(function() { + $rootScope.$apply(flushApplyAsync); + }, null, '$applyAsync'); + } + } + }]; +} - attr.$observe(normalized, function (value) { - if (!value) { - if (attrName === 'href') { - attr.$set(name, null); - } - return; - } +/** + * @ngdoc service + * @name $rootElement + * + * @description + * The root element of AngularJS 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()`. + */ - 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 might have sanitized the url. - if (msie && propName) element.prop(propName, attr[name]); - }); - } - }; - }; - }); +// the implementation is in angular.bootstrap - /* global -nullFormCtrl, -PENDING_CLASS, -SUBMITTED_CLASS - */ - var nullFormCtrl = { - $addControl: noop, - $getControls: valueFn([]), - $$renameControl: nullFormRenameControl, - $removeControl: noop, - $setValidity: noop, - $setDirty: noop, - $setPristine: noop, - $setSubmitted: noop, - $$setSubmitted: noop - }, - PENDING_CLASS = 'ng-pending', - SUBMITTED_CLASS = 'ng-submitted'; +/** + * @this + * @description + * Private service to sanitize uris for links and images. Used by $compile and $sanitize. + */ +function $$SanitizeUriProvider() { - function nullFormRenameControl(control, name) { - control.$name = name; - } + var aHrefSanitizationWhitelist = /^\s*(https?|s?ftp|mailto|tel|file):/, + imgSrcSanitizationWhitelist = /^\s*((https?|ftp|file|blob):|data:image\/)/; /** - * @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 + * 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 anchor links. + * + * Any url due to be assigned to an `a[href]` attribute via interpolation is marked as requiring + * the $sce.URL security context. When interpolation occurs a call is made to `$sce.trustAsUrl(url)` + * which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize the potentially malicious URL. + * + * If the URL matches the `aHrefSanitizationWhitelist` regular expression, it is returned unchanged. * + * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written + * to the DOM it is inactive and potentially malicious code will not be executed. + * + * @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 - * `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. + * Retrieves or overrides the default regular expression that is used for whitelisting of safe + * urls during img[src] sanitization. * - * Each {@link ng.directive:form form} directive creates an instance - * of `FormController`. + * The sanitization is a security measure aimed at prevent XSS attacks via HTML image src links. * + * Any URL due to be assigned to an `img[src]` attribute via interpolation is marked as requiring + * the $sce.MEDIA_URL security context. When interpolation occurs a call is made to + * `$sce.trustAsMediaUrl(url)` which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize + * the potentially malicious URL. + * + * If the URL matches the `aImgSanitizationWhitelist` regular expression, it is returned unchanged. + * + * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written + * to the DOM it is inactive and potentially malicious code will not be executed. + * + * @param {RegExp=} regexp New regexp to whitelist urls with. + * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for + * chaining otherwise. */ - //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.imgSrcSanitizationWhitelist = function(regexp) { + if (isDefined(regexp)) { + imgSrcSanitizationWhitelist = regexp; + return this; + } + return imgSrcSanitizationWhitelist; + }; - this.$$element = $element; - this.$$animate = $animate; + this.$get = function() { + return function sanitizeUri(uri, isMediaUrl) { + // if (!uri) return uri; + var regex = isMediaUrl ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist; + var normalizedVal = urlResolve(uri && uri.trim()).href; + if (normalizedVal !== '' && !normalizedVal.match(regex)) { + return 'unsafe:' + normalizedVal; + } + return uri; + }; + }; +} - setupValidity(this); - } +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - 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(); - }); - }, +/* exported $SceProvider, $SceDelegateProvider */ - /** - * @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(); - }); - }, +var $sceMinErr = minErr('$sce'); - /** - * @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); +var SCE_CONTEXTS = { + // HTML is used when there's HTML rendered (e.g. ng-bind-html, iframe srcdoc binding). + HTML: 'html', - if (control.$name) { - this[control.$name] = control; - } + // Style statements or stylesheets. Currently unused in AngularJS. + CSS: 'css', - control.$$parentForm = this; - }, + // An URL used in a context where it refers to the source of media, which are not expected to be run + // as scripts, such as an image, audio, video, etc. + MEDIA_URL: 'mediaUrl', - /** - * @ngdoc method - * @name form.FormController#$getControls - * @returns {Array} the controls that are currently part of this form - * - * @description - * This method returns a **shallow copy** of the controls that are currently part of this form. - * The controls can be instances of {@link form.FormController `FormController`} - * ({@link ngForm "child-forms"}) and of {@link ngModel.NgModelController `NgModelController`}. - * If you need access to the controls of child-forms, you have to call `$getControls()` - * recursively on them. - * This can be used for example to iterate over all controls to validate them. - * - * The controls can be accessed normally, but adding to, or removing controls from the array has - * no effect on the form. Instead, use {@link form.FormController#$addControl `$addControl()`} and - * {@link form.FormController#$removeControl `$removeControl()`} for this use-case. - * Likewise, adding a control to, or removing a control from the form is not reflected - * in the shallow copy. That means you should get a fresh copy from `$getControls()` every time - * you need access to the controls. - */ - $getControls: function $getControls() { - return shallowCopy(this.$$controls); - }, + // An URL used in a context where it does not refer to a resource that loads code. + // A value that can be trusted as a URL can also trusted as a MEDIA_URL. + URL: 'url', - // Private API: rename a form control - $$renameControl: function $$renameControl(control, newName) { - var oldName = control.$name; + // 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) + // A value that can be trusted as a RESOURCE_URL, can also trusted as a URL and a MEDIA_URL. + RESOURCE_URL: 'resourceUrl', - if (this[oldName] === control) { - delete this[oldName]; - } - this[newName] = control; - control.$name = newName; - }, + // Script. Currently unused in AngularJS. + JS: 'js' +}; - /** - * @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); +// Helper functions follow. - arrayRemove(this.$$controls, control); - control.$$parentForm = nullFormCtrl; - }, +var UNDERSCORE_LOWERCASE_REGEXP = /_([a-z])/g; - /** - * @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(); - }, +function snakeToCamel(name) { + return name + .replace(UNDERSCORE_LOWERCASE_REGEXP, fnCamelCaseReplace); +} - /** - * @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(); - }); - }, +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'); + } +} - /** - * @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. This will also set `$submitted` on all child and - * parent forms of the form. - */ - $setSubmitted: function $setSubmitted() { - var rootForm = this; - while (rootForm.$$parentForm && rootForm.$$parentForm !== nullFormCtrl) { - rootForm = rootForm.$$parentForm; - } - rootForm.$$setSubmitted(); - }, +function adjustMatchers(matchers) { + var adjustedMatchers = []; + if (isDefined(matchers)) { + forEach(matchers, function(matcher) { + adjustedMatchers.push(adjustMatcher(matcher)); + }); + } + return adjustedMatchers; +} - $$setSubmitted: function $$setSubmitted() { - this.$$animate.addClass(this.$$element, SUBMITTED_CLASS); - this.$submitted = true; - forEach(this.$$controls, function (control) { - if (control.$$setSubmitted) { - control.$$setSubmitted(); - } - }); - } - }; + +/** + * @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. + * + *
+ * 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. + *
+ * + * 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 AngularJS, read the main page for {@link ng.$sce + * Strict Contextual Escaping (SCE)}. + * + * **Example**: Consider the following case. + * + * - 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 form.FormController#$setValidity + * @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 - * 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. + * 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. + * + *
+ * **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. + *
*/ - 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]; - } + this.resourceUrlWhitelist = function(value) { + if (arguments.length) { + resourceUrlWhitelist = adjustMatchers(value); } - }); + return resourceUrlWhitelist; + }; /** - * @ngdoc directive - * @name ngForm - * @restrict EAC + * @ngdoc method + * @name $sceDelegateProvider#resourceUrlBlacklist + * @kind function * - * @description - * Helper directive that makes it possible to create control groups inside a - * {@link ng.directive:form `form`} directive. - * These "child forms" can be used, for example, to determine the validity of a sub-group of - * controls. + * @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.

+ * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items + * allowed in this array.

+ * 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. + *

+ * Finally, **the blacklist overrides the whitelist** and has the final say. * - *

- * **Note**: `ngForm` cannot be used as a replacement for `
`, because it lacks its - * [built-in HTML functionality](https://html.spec.whatwg.org/#the-form-element). - * Specifically, you cannot submit `ngForm` like a `` tag. That means, - * you cannot send data to the server with `ngForm`, or integrate it with - * {@link ng.directive:ngSubmit `ngSubmit`}. - *
+ * @return {Array} The currently set blacklist array. * - * @param {string=} ngForm|name Name of the form. If specified, the form controller will - * be published into the related scope, under this name. + * @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.) */ - /** - * @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 AngularJS, 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 `` elements, so - * AngularJS 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 AngularJS 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, AngularJS prevents the default action (form submission to the server) unless the - * `` 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: - * - *
-  * //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;
-  * }
-  * 
- * - * @example - - - - - - userType: - Required!
- userType = {{userType}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
- -
- - 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'); - }); - -
- * - * @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; - } - }]; + this.resourceUrlBlacklist = function(value) { + if (arguments.length) { + resourceUrlBlacklist = adjustMatchers(value); + } + return resourceUrlBlacklist; }; - var formDirective = formDirectiveFactory(); - var ngFormDirective = formDirectiveFactory(true); + this.$get = ['$injector', '$$sanitizeUri', function($injector, $$sanitizeUri) { - // 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; + var htmlSanitizer = function htmlSanitizer(html) { + throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.'); + }; - 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; - } + if ($injector.has('$sanitize')) { + htmlSanitizer = $injector.get('$sanitize'); + } - toggleValidationCss(this, validationErrorKey, combinedState); - this.$$parentForm.$setValidity(validationErrorKey, combinedState, this); - }; - function createAndSet(ctrl, name, value, controller) { - if (!ctrl[name]) { - ctrl[name] = {}; + function matchUrl(matcher, parsedUrl) { + if (matcher === 'self') { + return urlIsSameOrigin(parsedUrl) || urlIsSameOriginAsBaseUrl(parsedUrl); + } else { + // definitely a regex. See adjustMatchers() + return !!matcher.exec(parsedUrl.href); } - set(ctrl[name], value, controller); } - function unsetAndCleanup(ctrl, name, value, controller) { - if (ctrl[name]) { - unset(ctrl[name], value, controller); + 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 (isObjectEmpty(ctrl[name])) { - ctrl[name] = undefined; + 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 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 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; } - function toggleValidationCss(ctrl, validationErrorKey, isValid) { - validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : ''; + var trustedValueHolderBase = generateHolderType(), + byType = {}; - cachedToggleClass(ctrl, VALID_CLASS + validationErrorKey, isValid === true); - cachedToggleClass(ctrl, INVALID_CLASS + validationErrorKey, isValid === false); - } - } + byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.MEDIA_URL] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.URL] = generateHolderType(byType[SCE_CONTEXTS.MEDIA_URL]); + byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]); - function isObjectEmpty(obj) { - if (obj) { - for (var prop in obj) { - if (obj.hasOwnProperty(prop)) { - return false; - } + /** + * @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); } - 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] + * @ngdoc method + * @name $sceDelegate#valueOf * * @description - * Standard HTML text input with AngularJS data binding, inherited by most of the `input` elements. - * - * - * @param {string} ngModel Assignable AngularJS 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 AngularJS 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$')`.
- * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. - * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input. - * This parameter is ignored for input[type=password] controls, which will never trim the - * input. - * - * @example - - - -
- -
- - Required! - - Single word only! -
- text = {{example.text}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
-
-
- - 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'); - }); - -
+ * 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. */ - 'text': textInputType, + function valueOf(maybeTrusted) { + if (maybeTrusted instanceof trustedValueHolderBase) { + return maybeTrusted.$$unwrapTrustedValue(); + } else { + return maybeTrusted; + } + } /** - * @ngdoc input - * @name input[date] + * @ngdoc method + * @name $sceDelegate#getTrusted * * @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 AngularJS 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. + * Given an object and a security context in which to assign it, returns a value that's safe to + * use in this context, which was represented by the parameter. To do so, this function either + * unwraps the safe type it has been given (for instance, a {@link ng.$sceDelegate#trustAs + * `$sceDelegate.trustAs`} result), or it might try to sanitize the value given, depending on + * the context and sanitizer availablility. + * + * The contexts that can be sanitized are $sce.MEDIA_URL, $sce.URL and $sce.HTML. The first two are available + * by default, and the third one relies on the `$sanitize` service (which may be loaded through + * the `ngSanitize` module). Furthermore, for $sce.RESOURCE_URL context, a plain string may be + * accepted if the resource url policy defined by {@link ng.$sceDelegateProvider#resourceUrlWhitelist + * `$sceDelegateProvider.resourceUrlWhitelist`} and {@link ng.$sceDelegateProvider#resourceUrlBlacklist + * `$sceDelegateProvider.resourceUrlBlacklist`} accepts that resource. + * + * This function will throw if the safe type isn't appropriate for this context, or if the + * value given cannot be accepted in the context (which might be caused by sanitization not + * being available, or the value not being recognized as safe). * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + *
+ * Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting + * (XSS) vulnerability in your application. + *
* - * @example - - - -
- - -
- - Required! - - Not a valid date! -
- value = {{example.value | date: "yyyy-MM-dd"}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
-
-
- - 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); + * @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(); + } + + // If maybeTrusted is a trusted class instance but not of the correct trusted type + // then unwrap it and allow it to pass through to the rest of the checks + if (isFunction(maybeTrusted.$$unwrapTrustedValue)) { + maybeTrusted = maybeTrusted.$$unwrapTrustedValue(); + } + + // If we get here, then we will either sanitize the value or throw an exception. + if (type === SCE_CONTEXTS.MEDIA_URL || type === SCE_CONTEXTS.URL) { + // we attempt to sanitize non-resource URLs + return $$sanitizeUri(maybeTrusted.toString(), type === SCE_CONTEXTS.MEDIA_URL); + } else if (type === SCE_CONTEXTS.RESOURCE_URL) { + if (isResourceUrlAllowedByPolicy(maybeTrusted)) { + return maybeTrusted; + } else { + throw $sceMinErr('insecurl', + 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}', + maybeTrusted.toString()); } - 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'); - }); - -
+ } 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: + * + * ``` + * + *
+ * ``` + * + * 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, AngularJS 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. + * `
`) just works (remember to include the + * `ngSanitize` module). 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. + * + * + * ### 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} module is present this will sanitize the value instead of throwing an error. | + * | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. | + * | `$sce.MEDIA_URL` | For URLs that are safe to render as media. Is automatically converted from string by sanitizing when needed. | + * | `$sce.URL` | For URLs that are safe to follow as links. Is automatically converted from string by sanitizing when needed. Note that `$sce.URL` makes a stronger statement about the URL than `$sce.MEDIA_URL` does and therefore contexts requiring values trusted for `$sce.URL` can be used anywhere that values trusted for `$sce.MEDIA_URL` are required.| + * | `$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` (e.g. `IFRAME`, `OBJECT`, etc.)

Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` or `$sce.MEDIA_URL` do and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` or `$sce.MEDIA_URL` are required.

The {@link $sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider#resourceUrlWhitelist()} and {@link $sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider#resourceUrlBlacklist()} can be used to restrict trusted origins for `RESOURCE_URL` | + * | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. | + * + * + *
+ * Be aware that, before AngularJS 1.7.0, `a[href]` and `img[src]` used to sanitize their + * interpolated values directly rather than rely upon {@link ng.$sce#getTrusted `$sce.getTrusted`}. + * + * **As of 1.7.0, this is no longer the case.** + * + * Now such interpolations are marked as requiring `$sce.URL` (for `a[href]`) or `$sce.MEDIA_URL` + * (for `img[src]`), so that the sanitization happens (via `$sce.getTrusted...`) when the `$interpolate` + * service evaluates the expressions. + *
+ * + * There are no CSS 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} + * + * 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. + * + * + * + *
+ *

+ * User comments
+ * 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. + *
+ *
+ * {{userComment.name}}: + * + *
+ *
+ *
+ *
+ *
+ * + * + * 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( + * 'Hover over this text.'); + * }]); + * + * + * + * [ + * { "name": "Alice", + * "htmlComment": + * "Is anyone reading this?" + * }, + * { "name": "Bob", + * "htmlComment": "Yes! Am I the only other one?" + * } + * ] + * + * + * + * describe('SCE doc demo', function() { + * it('should sanitize untrusted values', function() { + * expect(element.all(by.css('.htmlComment')).first().getAttribute('innerHTML')) + * .toBe('Is anyone reading this?'); + * }); + * + * it('should NOT sanitize explicitly trusted values', function() { + * expect(element(by.id('explicitlyTrustedHtml')).getAttribute('innerHTML')).toBe( + * 'Hover over this text.'); + * }); + * }); + * + *
+ * + * + * + * ## 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 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 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. */ - 'date': createDateInputType('date', DATE_REGEXP, createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']), 'yyyy-MM-dd'), + 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 input - * @name input[datetime-local] + * @ngdoc method + * @name $sce#parseAs * * @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`. + * Converts AngularJS {@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 * - * The model must always be a Date object, otherwise AngularJS will throw an error. - * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * @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 * - * 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. + * @description + * Shorthand method. `$sce.trustAsHtml(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`} * - * The format of the displayed time can be adjusted with the - * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions} `timeSecondsFormat` - * and `timeStripZeroSeconds`. + * @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 * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @description + * Shorthand method. `$sce.trustAsCss(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.CSS, value)`} * - * @example - - - -
- - -
- - Required! - - Not a valid date! -
- value = {{example.value | date: "yyyy-MM-ddTHH:mm:ss"}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
-
-
- - 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'); - }); - -
+ * @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. */ - '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] + * @ngdoc method + * @name $sce#trustAsUrl * * @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)`. + * Shorthand method. `$sce.trustAsUrl(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`} * - * The model must always be a Date object, otherwise AngularJS will throw an error. - * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * @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 * - * The timezone to be used to read/write the `Date` instance in the model can be defined using - * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions}. By default, - * this is the timezone of the browser. + * @description + * Shorthand method. `$sce.trustAsResourceUrl(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`} * - * The format of the displayed time can be adjusted with the - * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions} `timeSecondsFormat` - * and `timeStripZeroSeconds`. + * @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 * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @description + * Shorthand method. `$sce.trustAsJs(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`} * - * @example - - - -
- - -
- - Required! - - Not a valid date! -
- value = {{example.value | date: "HH:mm:ss"}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
-
-
- - 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'); - }); - -
+ * @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. */ - 'time': createDateInputType('time', TIME_REGEXP, createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']), 'HH:mm:ss.sss'), /** - * @ngdoc input - * @name input[week] + * @ngdoc method + * @name $sce#getTrusted * * @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 AngularJS will throw an error. - * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * 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 * - * The value of the resulting Date object will be set to Thursday at 00:00:00 of the requested week, - * due to ISO-8601 week numbering standards. Information on ISO's system for numbering the weeks of the - * year can be found at: https://en.wikipedia.org/wiki/ISO_8601#Week_dates + * @description + * Shorthand method. `$sce.getTrustedHtml(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`} * - * 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 {*} value The value to pass to `$sce.getTrusted`. + * @return {*} The return value of `$sce.getTrusted($sce.HTML, value)` + */ + + /** + * @ngdoc method + * @name $sce#getTrustedCss * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @description + * Shorthand method. `$sce.getTrustedCss(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`} * - * @example - - - -
- -
- - Required! - - Not a valid date! -
- value = {{example.value | date: "yyyy-Www"}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
-
-
- - 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'); - }); - -
+ * @param {*} value The value to pass to `$sce.getTrusted`. + * @return {*} The return value of `$sce.getTrusted($sce.CSS, value)` */ - 'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'), /** - * @ngdoc input - * @name input[month] + * @ngdoc method + * @name $sce#getTrustedUrl * * @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`. + * Shorthand method. `$sce.getTrustedUrl(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`} * - * The model must always be a Date object, otherwise AngularJS 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. + * @param {*} value The value to pass to `$sce.getTrusted`. + * @return {*} The return value of `$sce.getTrusted($sce.URL, value)` + */ + + /** + * @ngdoc method + * @name $sce#getTrustedResourceUrl * - * 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. + * @description + * Shorthand method. `$sce.getTrustedResourceUrl(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`} * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @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 * - * @example - - - -
- - -
- - Required! - - Not a valid month! -
- value = {{example.value | date: "yyyy-MM"}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
-
-
- - 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'); - }); - -
+ * @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)` */ - 'month': createDateInputType('month', MONTH_REGEXP, createDateParser(MONTH_REGEXP, ['yyyy', 'MM']), 'yyyy-MM'), /** - * @ngdoc input - * @name input[number] + * @ngdoc method + * @name $sce#parseAsHtml * * @description - * Text input with number validation and transformation. Sets the `number` validation - * error if not a valid number. + * Shorthand method. `$sce.parseAsHtml(expression string)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`} * - *
- * The model must always be of type `number` otherwise AngularJS 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. - *
+ * @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)`} * - * @knownIssue + * @param {string} expression String expression to compile. + * @return {function(context, locals)} A function which represents the compiled expression: * - * ### HTML5 constraint validation and `allowInvalid` + * * `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 * - * 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. + * @description + * Shorthand method. `$sce.parseAsUrl(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`} * - * @knownIssue + * @param {string} expression String expression to compile. + * @return {function(context, locals)} A function which represents the compiled expression: * - * ### Large numbers and `step` validation + * * `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 * - * The `step` validation will not work correctly for very large numbers (e.g. 9999999999) due to - * Javascript's arithmetic limitations. If you need to handle large numbers, purpose-built - * libraries (e.g. https://github.com/MikeMcl/big.js/), can be included into AngularJS by - * {@link guide/forms#modifying-built-in-validators overwriting the validators} - * for `number` and / or `step`, or by {@link guide/forms#custom-validation applying custom validators} - * to an `input[text]` element. The source for `input[number]` type can be used as a starting - * point for both implementations. + * @description + * Shorthand method. `$sce.parseAsResourceUrl(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`} * - * @param {string} ngModel Assignable AngularJS 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 AngularJS 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$')`.
- * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @param {string} expression String expression to compile. + * @return {function(context, locals)} A function which represents the compiled expression: * - * @example - - - -
- -
- - Required! - - Not valid number! -
- value = {{example.value}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
-
-
- - 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'); - }); - -
+ * * `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`. */ - 'number': numberInputType, /** - * @ngdoc input - * @name input[url] + * @ngdoc method + * @name $sce#parseAsJs * * @description - * Text input with URL validation. Sets the `url` validation error key if the content is not a - * valid URL. + * Shorthand method. `$sce.parseAsJs(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`} * - *
- * **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}) - *
+ * @param {string} expression String expression to compile. + * @return {function(context, locals)} A function which represents the compiled expression: * - * @param {string} ngModel Assignable AngularJS 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 AngularJS 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$')`.
- * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * * `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(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 + }; + }]; +} + +/** + * ! This is a private undocumented service ! + * + * @name $$taskTrackerFactory + * @description + * A function to create `TaskTracker` instances. + * + * A `TaskTracker` can keep track of pending tasks (grouped by type) and can notify interested + * parties when all pending tasks (or tasks of a specific type) have been completed. + * + * @param {$log} log - A logger instance (such as `$log`). Used to log error during callback + * execution. + * + * @this + */ +function $$TaskTrackerFactoryProvider() { + this.$get = valueFn(function(log) { return new TaskTracker(log); }); +} + +function TaskTracker(log) { + var self = this; + var taskCounts = {}; + var taskCallbacks = []; + + var ALL_TASKS_TYPE = self.ALL_TASKS_TYPE = '$$all$$'; + var DEFAULT_TASK_TYPE = self.DEFAULT_TASK_TYPE = '$$default$$'; + + /** + * Execute the specified function and decrement the appropriate `taskCounts` counter. + * If the counter reaches 0, all corresponding `taskCallbacks` are executed. + * + * @param {Function} fn - The function to execute. + * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task that is being completed. + */ + self.completeTask = completeTask; + + /** + * Increase the task count for the specified task type (or the default task type if non is + * specified). + * + * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task whose count will be increased. + */ + self.incTaskCount = incTaskCount; + + /** + * Execute the specified callback when all pending tasks have been completed. + * + * If there are no pending tasks, the callback is executed immediately. You can optionally limit + * the tasks that will be waited for to a specific type, by passing a `taskType`. + * + * @param {function} callback - The function to call when there are no pending tasks. + * @param {string=} [taskType=ALL_TASKS_TYPE] - The type of tasks that will be waited for. + */ + self.notifyWhenNoPendingTasks = notifyWhenNoPendingTasks; + + function completeTask(fn, taskType) { + taskType = taskType || DEFAULT_TASK_TYPE; + + try { + fn(); + } finally { + decTaskCount(taskType); + + var countForType = taskCounts[taskType]; + var countForAll = taskCounts[ALL_TASKS_TYPE]; + + // If at least one of the queues (`ALL_TASKS_TYPE` or `taskType`) is empty, run callbacks. + if (!countForAll || !countForType) { + var getNextCallback = !countForAll ? getLastCallback : getLastCallbackForType; + var nextCb; + + while ((nextCb = getNextCallback(taskType))) { + try { + nextCb(); + } catch (e) { + log.error(e); + } + } + } + } + } + + function decTaskCount(taskType) { + taskType = taskType || DEFAULT_TASK_TYPE; + if (taskCounts[taskType]) { + taskCounts[taskType]--; + taskCounts[ALL_TASKS_TYPE]--; + } + } + + function getLastCallback() { + var cbInfo = taskCallbacks.pop(); + return cbInfo && cbInfo.cb; + } + + function getLastCallbackForType(taskType) { + for (var i = taskCallbacks.length - 1; i >= 0; --i) { + var cbInfo = taskCallbacks[i]; + if (cbInfo.type === taskType) { + taskCallbacks.splice(i, 1); + return cbInfo.cb; + } + } + } + + function incTaskCount(taskType) { + taskType = taskType || DEFAULT_TASK_TYPE; + taskCounts[taskType] = (taskCounts[taskType] || 0) + 1; + taskCounts[ALL_TASKS_TYPE] = (taskCounts[ALL_TASKS_TYPE] || 0) + 1; + } + + function notifyWhenNoPendingTasks(callback, taskType) { + taskType = taskType || ALL_TASKS_TYPE; + if (!taskCounts[taskType]) { + callback(); + } else { + taskCallbacks.push({type: taskType, cb: callback}); + } + } +} + +var $templateRequestMinErr = minErr('$templateRequest'); + +/** + * @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 AngularJS 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) { + return $templateCache.put(tpl, 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 * - * @example - - - -
-
- - 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'); - }); - -
+ * @description + * The private $$testability service provides a collection of methods for use when debugging + * or by automated test and debugging tools. */ - 'url': urlInputType, + var testability = {}; /** - * @ngdoc input - * @name input[email] + * @name $$testability#findBindings * * @description - * Text input with email validation. Sets the `email` validation error key if not a valid email - * address. - * - *
- * **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}) - *
- * - * @param {string} ngModel Assignable AngularJS 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 AngularJS 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$')`.
- * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * Returns an array of elements that are bound (via ng-bind or {{}}) + * to expressions matching the input. * - * @example - - - -
- -
- - Required! - - Not valid email! -
- text = {{email.text}}
- myForm.input.$valid = {{myForm.input.$valid}}
- myForm.input.$error = {{myForm.input.$error}}
- myForm.$valid = {{myForm.$valid}}
- myForm.$error.required = {{!!myForm.$error.required}}
- myForm.$error.email = {{!!myForm.$error.email}}
-
-
- - 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'); - }); - -
+ * @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. */ - 'email': emailInputType, + 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; + }; /** - * @ngdoc input - * @name input[radio] + * @name $$testability#findModels * * @description - * HTML radio button. - * - * **Note:**
- * All inputs controlled by {@link ngModel ngModel} (including those of type `radio`) will use the - * value of their `name` attribute to determine the property under which their - * {@link ngModel.NgModelController NgModelController} will be published on the parent - * {@link form.FormController FormController}. Thus, if you use the same `name` for multiple - * inputs of a form (e.g. a group of radio inputs), only _one_ `NgModelController` will be - * published on the parent `FormController` under that name. The rest of the controllers will - * continue to work as expected, but you won't be able to access them as properties on the parent - * `FormController`. - * - *
- *

- * In plain HTML forms, the `name` attribute is used to identify groups of radio inputs, so - * that the browser can manage their state (checked/unchecked) based on the state of other - * inputs in the same group. - *

- *

- * In AngularJS forms, this is not necessary. The input's state will be updated based on the - * value of the underlying model data. - *

- *
+ * Returns an array of elements that are two-way found via ng-model to + * expressions matching the input. * - *
- * If you omit the `name` attribute on a radio input, `ngModel` will automatically assign it a - * unique name. - *
- * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. - * @param {string} ngValue AngularJS 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 - - - -
-
-
-
- color = {{color.name | json}}
-
- Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`. -
- - 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'); - }); - -
+ * @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. */ - 'radio': radioInputType, + 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; + } + } + }; /** - * @ngdoc input - * @name input[range] + * @name $$testability#getLocation * * @description - * Native range input with validation and transformation. - * - * The model for the range input must always be a `Number`. + * 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 * - * 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. + * @description + * Shortcut for navigating to a location without doing a full page reload. * - * 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. + * @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 * - * See the [HTML Spec on input[type=range]](https://www.w3.org/TR/html5/forms.html#range-state-(type=range)) - * for more info. + * @description + * Calls the callback when all pending tasks are completed. * - * This has the following consequences for AngularJS: + * Types of tasks waited for include: + * - Pending timeouts (via {@link $timeout}). + * - Pending HTTP requests (via {@link $http}). + * - In-progress route transitions (via {@link $route}). + * - Pending tasks scheduled via {@link $rootScope#$applyAsync}. + * - Pending tasks scheduled via {@link $rootScope#$evalAsync}. + * These include tasks scheduled via `$evalAsync()` indirectly (such as {@link $q} promises). * - * 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 ``, - * if the application sets `model.value = null`, the browser will set the input to `'50'`. - * AngularJS will then set the model to `50`, to prevent input and model value being out of sync. + * @param {function} callback + */ + testability.whenStable = function(callback) { + $browser.notifyWhenNoOutstandingRequests(callback); + }; + + return testability; + }]; +} + +var $timeoutMinErr = minErr('$timeout'); + +/** @this */ +function $TimeoutProvider() { + this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler', + function($rootScope, $browser, $q, $$q, $exceptionHandler) { + + var deferreds = {}; + + + /** + * @ngdoc service + * @name $timeout * - * 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. + * @description + * AngularJS'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. * - * 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, AngularJS will also update the model value. + * 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. * - * Automatic value adjustment also means that a range input element can never have the `required`, - * `min`, or `max` errors. + * To cancel a timeout request, call `$timeout.cancel(promise)`. * - * 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 AngularJS will set the `step` - * error on the input, and set the model to `undefined`. + * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to + * synchronously flush the queue of deferred functions. * - * 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. + * If you only want a promise that will be resolved after some specified delay + * then you can call `$timeout` without the `fn` function. * - * @param {string} ngModel Assignable AngularJS 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. + * @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. * - * @example - - - -
- Model as range: -
- Model as number:
- Min:
- Max:
- value = {{value}}
- myForm.range.$valid = {{myForm.range.$valid}}
- myForm.range.$error = {{myForm.range.$error}} -
-
-
- * ## Range Input with ngMin & ngMax attributes - * @example - - - -
- Model as range: -
- Model as number:
- Min:
- Max:
- value = {{value}}
- myForm.range.$valid = {{myForm.range.$valid}}
- myForm.range.$error = {{myForm.range.$error}} -
-
-
- */ - 'range': rangeInputType, + */ + 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, '$timeout'); + + promise.$$timeoutId = timeoutId; + deferreds[timeoutId] = deferred; + + return promise; + } + /** - * @ngdoc input - * @name input[checkbox] + * @ngdoc method + * @name $timeout#cancel * * @description - * HTML checkbox. - * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * Cancels a task associated with the `promise`. As a result of this, the promise will be + * resolved with a rejection. * - * @example - - - -
-
-
- value1 = {{checkboxModel.value1}}
- value2 = {{checkboxModel.value2}}
-
-
- - 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'); - }); - -
+ * @param {Promise=} promise Promise returned by the `$timeout` function. + * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully + * canceled. */ - 'checkbox': checkboxInputType, + timeout.cancel = function(promise) { + if (!promise) return false; - 'hidden': noop, - 'button': noop, - 'submit': noop, - 'reset': noop, - 'file': noop - }; + if (!promise.hasOwnProperty('$$timeoutId')) { + throw $timeoutMinErr('badprom', + '`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.'); + } - function stringBasedInputType(ctrl) { - ctrl.$formatters.push(function (value) { - return ctrl.$isEmpty(value) ? value : value.toString(); - }); + if (!deferreds.hasOwnProperty(promise.$$timeoutId)) return false; + + var id = promise.$$timeoutId; + var deferred = deferreds[id]; + + // Timeout cancels should not report an unhandled promise. + markQExceptionHandled(deferred.promise); + deferred.reject('canceled'); + delete deferreds[id]; + + return $browser.defer.cancel(id); + }; + + 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); +var baseUrlParsingNode; + + +/** + * + * 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|object} url The URL to be parsed. If `url` is not a string, it will be returned + * unchanged. + * @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 without 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) { + if (!isString(url)) return 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; } - function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { - baseInputType(scope, element, attr, ctrl, $sniffer, $browser); - stringBasedInputType(ctrl); + urlParsingNode.setAttribute('href', href); + + 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) { + return urlsAreSameOrigin(requestUrl, originUrl); +} + +/** + * Parse a request URL and determine whether it is same-origin as the current document base URL. + * + * Note: The base URL is usually the same as the document location (`location.href`) but can + * be overriden by using the `` tag. + * + * @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 URL is same-origin as the document base URL. + */ +function urlIsSameOriginAsBaseUrl(requestUrl) { + return urlsAreSameOrigin(requestUrl, getBaseUrl()); +} + +/** + * Create a function that can check a URL's origin against a list of allowed/whitelisted origins. + * The current location's origin is implicitly trusted. + * + * @param {string[]} whitelistedOriginUrls - A list of URLs (strings), whose origins are trusted. + * + * @returns {Function} - A function that receives a URL (string or parsed URL object) and returns + * whether it is of an allowed origin. + */ +function urlIsAllowedOriginFactory(whitelistedOriginUrls) { + var parsedAllowedOriginUrls = [originUrl].concat(whitelistedOriginUrls.map(urlResolve)); + + /** + * Check whether the specified URL (string or parsed URL object) has an origin that is allowed + * based on a list of whitelisted-origin URLs. The current location's origin is implicitly + * trusted. + * + * @param {string|Object} requestUrl - The URL to be checked (provided as a string that will be + * resolved or a parsed URL object). + * + * @returns {boolean} - Whether the specified URL is of an allowed origin. + */ + return function urlIsAllowedOrigin(requestUrl) { + var parsedUrl = urlResolve(requestUrl); + return parsedAllowedOriginUrls.some(urlsAreSameOrigin.bind(null, parsedUrl)); + }; +} + +/** + * Determine if two URLs share the same origin. + * + * @param {string|Object} url1 - First URL to compare as a string or a normalized URL in the form of + * a dictionary object returned by `urlResolve()`. + * @param {string|object} url2 - Second URL to compare as a string or a normalized URL in the form + * of a dictionary object returned by `urlResolve()`. + * + * @returns {boolean} - True if both URLs have the same origin, and false otherwise. + */ +function urlsAreSameOrigin(url1, url2) { + url1 = urlResolve(url1); + url2 = urlResolve(url2); + + return (url1.protocol === url2.protocol && + url1.host === url2.host); +} + +/** + * Returns the current document base URL. + * @returns {string} + */ +function getBaseUrl() { + if (window.document.baseURI) { + return window.document.baseURI; } - function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) { - var type = lowercase(element[0].type); + // `document.baseURI` is available everywhere except IE + if (!baseUrlParsingNode) { + baseUrlParsingNode = window.document.createElement('a'); + baseUrlParsingNode.href = '.'; - // 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; + // Work-around for IE bug described in Implementation Notes. The fix in `urlResolve()` is not + // suitable here because we need to track changes to the base URL. + baseUrlParsingNode = baseUrlParsingNode.cloneNode(false); + } + return baseUrlParsingNode.href; +} - element.on('compositionstart', function () { - composing = true; +/** + * @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 AngularJS 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 + + + +
+ + +
+
+ + 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(); }); + +
+ */ +function $WindowProvider() { + this.$get = valueFn(window); +} - // Support: IE9+ - element.on('compositionupdate', function (ev) { - // End composition when ev.data is empty string on 'compositionupdate' event. - // When the input de-focusses (e.g. by clicking away), IE triggers 'compositionupdate' - // instead of 'compositionend'. - if (isUndefined(ev.data) || ev.data === '') { - composing = false; - } - }); +/** + * @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 = ''; - element.on('compositionend', function () { - composing = false; - listener(); - }); + function safeGetCookie(rawDocument) { + try { + return rawDocument.cookie || ''; + } catch (e) { + return ''; } + } - var timeout; + function safeDecodeURIComponent(str) { + try { + return decodeURIComponent(str); + } catch (e) { + return str; + } + } - var listener = function listener(ev) { - if (timeout) { - $browser.defer.cancel(timeout); - timeout = null; - } - if (composing) return; - var value = element.val(), - event = ev && ev.type; + return function() { + var cookieArray, cookie, i, index, name; + var currentCookieString = safeGetCookie(rawDocument); - // 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 (currentCookieString !== lastCookieString) { + lastCookieString = currentCookieString; + cookieArray = lastCookieString.split('; '); + lastCookies = {}; - // 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); + 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; + }; +} - // 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); - } - }); - } - }; +$$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, + */ - element.on('keydown', /** @this */function (event) { - var key = event.keyCode; +/** + * @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. + * + *
+ * **Note:** Filter names must be valid AngularJS {@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`). + *
+ * + * ```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 AngularJS filters work, and how to create your own filters, see + * {@link guide/filter Filters} in the AngularJS Developer Guide. + */ - // ignore - // command modifiers arrows - if (key === 91 || 15 < key && key < 19 || 37 <= key && key <= 40) return; +/** + * @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. AngularJS 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 + + +
+

{{ originalText }}

+

{{ filteredText }}

+
+
- deferListener(event, this, this.value); + + angular.module('filterExample', []) + .controller('MainCtrl', function($scope, $filter) { + $scope.originalText = 'hello'; + $scope.filteredText = $filter('uppercase')($scope.originalText); }); + +
+ */ +$FilterProvider.$inject = ['$provide']; +/** @this */ +function $FilterProvider($provide) { + var suffix = 'Filter'; - // if user modifies input value using context menu in IE, we need "paste", "cut" and "drop" events to catch it - if ($sniffer.hasEvent('paste')) { - element.on('paste cut drop', 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); - } - }); - } + /** + * @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. + * + *
+ * **Note:** Filter names must be valid AngularJS {@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`). + *
+ * @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; - ctrl.$render = function () { - // Workaround for Firefox validation #12102. - var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue; - if (element.val() !== value) { - element.val(value); - } + this.$get = ['$injector', function($injector) { + return function(name) { + return $injector.get(name + suffix); }; - } + }]; - 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; + /* global + currencyFilter: false, + dateFilter: false, + filterFilter: false, + jsonFilter: false, + limitToFilter: false, + lowercaseFilter: false, + numberFilter: false, + orderByFilter: false, + uppercaseFilter: false + */ - if (existingDate) { - hours = existingDate.getHours(); - minutes = existingDate.getMinutes(); - seconds = existingDate.getSeconds(); - milliseconds = existingDate.getMilliseconds(); - } + 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); +} - return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds); - } - } +/** + * @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. + *
+ * **Note**: If the array contains objects that reference themselves, filtering is not possible. + *
+ * @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 + + +
+ + + + + + + + +
NamePhone
{{friend.name}}{{friend.phone}}
+
+
+
+
+
+ + + + + + +
NamePhone
{{friendObj.name}}{{friendObj.phone}}
+
+ + 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]); + }); + }); + }; - return NaN; - } + 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'); + }); - function createDateParser(regexp, mapping) { - return function (iso, previousDate) { - var parts, map; + 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'); + }); + +
+ */ - if (isDate(iso)) { - return iso; +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); } + } - 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); + anyPropertyKey = anyPropertyKey || '$'; + var expressionType = getTypeForFilter(expression); + var predicateFn; + var matchAgainstAnyProp; - if (parts) { - parts.shift(); - if (previousDate) { - map = { - yyyy: previousDate.getFullYear(), - MM: previousDate.getMonth() + 1, - dd: previousDate.getDate(), - HH: previousDate.getHours(), - mm: previousDate.getMinutes(), - ss: previousDate.getSeconds(), - sss: previousDate.getMilliseconds() / 1000 - }; - } else { - map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 }; - } + 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; + } - forEach(parts, function (part, index) { - if (index < mapping.length) { - map[mapping[index]] = +part; - } - }); + return Array.prototype.filter.call(array, predicateFn); + }; +} - var date = new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0); - if (map.yyyy < 100) { - // In the constructor, 2-digit years map to 1900-1999. - // Use `setFullYear()` to set the correct year. - date.setFullYear(map.yyyy); - } +// Helper functions for `filterFilter` +function createPredicateFn(expression, comparator, anyPropertyKey, matchAgainstAnyProp) { + var shouldMatchPrimitives = isObject(expression) && (anyPropertyKey in expression); + var predicateFn; - return date; - } + if (comparator === true) { + comparator = equals; + } else if (!isFunction(comparator)) { + comparator = function(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; } - return NaN; + actual = lowercase('' + actual); + expected = lowercase('' + expected); + return actual.indexOf(expected) !== -1; }; } - function createDateInputType(type, regexp, parseDate, format) { - return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) { - badInputChecker(scope, element, attr, ctrl, type); - baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + predicateFn = function(item) { + if (shouldMatchPrimitives && !isObject(item)) { + return deepCompare(item, expression[anyPropertyKey], comparator, anyPropertyKey, false); + } + return deepCompare(item, expression, comparator, anyPropertyKey, matchAgainstAnyProp); + }; - var isTimeType = type === 'time' || type === 'datetimelocal'; - var previousDate; - var previousTimezone; + return predicateFn; +} - ctrl.$parsers.push(function (value) { - if (ctrl.$isEmpty(value)) return null; +function deepCompare(actual, expected, comparator, anyPropertyKey, matchAgainstAnyProp, dontMatchWholeObject) { + var actualType = getTypeForFilter(actual); + var expectedType = getTypeForFilter(expected); - 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! - return parseDateAndConvertTimeZoneToLocal(value, previousDate); - } - ctrl.$$parserName = type; - return undefined; - }); + 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); + }); + } - ctrl.$formatters.push(function (value) { - if (value && !isDate(value)) { - throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value); + 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; + } } - if (isValidDate(value)) { - previousDate = value; - var timezone = ctrl.$options.getOption('timezone'); - - if (timezone) { - previousTimezone = timezone; - previousDate = convertTimezoneToLocal(previousDate, timezone, 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; } - return formatter(value, timezone); - } else { - previousDate = null; - previousTimezone = null; - return ''; + var matchAnyProperty = key === anyPropertyKey; + var actualVal = matchAnyProperty ? actual : actual[key]; + if (!deepCompare(actualVal, expectedVal, comparator, anyPropertyKey, matchAnyProperty, matchAnyProperty)) { + return false; + } } - }); - - 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(); - }); + return true; + } else { + return comparator(actual, expected); } + case 'function': + return false; + default: + return comparator(actual, expected); + } +} - function isValidDate(value) { - // Invalid Date: getTime() returns NaN - return value && !(value.getTime && value.getTime() !== value.getTime()); - } +// Used for easily differentiating between `null` and actual `object` +function getTypeForFilter(val) { + return (val === null) ? 'null' : typeof val; +} - function parseObservedDateValue(val) { - return isDefined(val) && !isDate(val) ? parseDateAndConvertTimeZoneToLocal(val) || undefined : val; - } +var MAX_DIGITS = 22; +var DECIMAL_SEP = '.'; +var ZERO_CHAR = '0'; - function parseDateAndConvertTimeZoneToLocal(value, previousDate) { - var timezone = ctrl.$options.getOption('timezone'); +/** + * @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 + + + +
+
+ default currency symbol ($): {{amount | currency}}
+ custom currency identifier (USD$): {{amount | currency:"USD$"}}
+ no fractions (0): {{amount | currency:"USD$":0}} +
+
+ + 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'); + }); + +
+ */ +currencyFilter.$inject = ['$locale']; +function currencyFilter($locale) { + var formats = $locale.NUMBER_FORMATS; + return function(amount, currencySymbol, fractionSize) { + if (isUndefined(currencySymbol)) { + currencySymbol = formats.CURRENCY_SYM; + } - if (previousTimezone && previousTimezone !== timezone) { - // If the timezone has changed, adjust the previousDate to the default timezone - // so that the new date is converted with the correct timezone offset - previousDate = addDateMinutes(previousDate, timezoneToOffset(previousTimezone)); - } + if (isUndefined(fractionSize)) { + fractionSize = formats.PATTERNS[1].maxFrac; + } - var parsedDate = parseDate(value, previousDate); + // If the currency symbol is empty, trim whitespace around the symbol + var currencySymbolRe = !currencySymbol ? /\s*\u00A4\s*/g : /\u00A4/g; - if (!isNaN(parsedDate) && timezone) { - parsedDate = convertTimezoneToLocal(parsedDate, timezone); - } - return parsedDate; - } + // if null or undefined pass it through + return (amount == null) + ? amount + : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize). + replace(currencySymbolRe, currencySymbol); + }; +} - function formatter(value, timezone) { - var targetFormat = format; +/** + * @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 + + + +
+
+ Default formatting: {{val | number}}
+ No fractions: {{val | number:0}}
+ Negative number: {{-val | number:4}} +
+
+ + 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'); + }); - if (isTimeType && isString(ctrl.$options.getOption('timeSecondsFormat'))) { - targetFormat = format.replace('ss.sss', ctrl.$options.getOption('timeSecondsFormat')).replace(/:$/, ''); - } + 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'); + }); + +
+ */ +numberFilter.$inject = ['$locale']; +function numberFilter($locale) { + var formats = $locale.NUMBER_FORMATS; + return function(number, fractionSize) { - var formatted = $filter('date')(value, targetFormat, timezone); + // if null or undefined pass it through + return (number == null) + ? number + : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP, + fractionSize); + }; +} - if (isTimeType && ctrl.$options.getOption('timeStripZeroSeconds')) { - formatted = formatted.replace(/(?::00)?(?:\.000)?$/, ''); - } +/** + * 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; - return formatted; - } - }; + // Decimal point? + if ((numberOfIntegerDigits = numStr.indexOf(DECIMAL_SEP)) > -1) { + numStr = numStr.replace(DECIMAL_SEP, ''); } - function badInputChecker(scope, element, attr, ctrl, parserName) { - 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) || {}; - if (validity.badInput || validity.typeMismatch) { - ctrl.$$parserName = parserName; - return undefined; - } - - return value; - }); - } + // 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; } - function numberFormatterParser(ctrl) { - ctrl.$parsers.push(function (value) { - if (ctrl.$isEmpty(value)) return null; - if (NUMBER_REGEXP.test(value)) return parseFloat(value); + // Count the number of leading zeros. + for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { /* empty */ } - ctrl.$$parserName = 'number'; - return undefined; - }); + 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--; - 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; - }); + // 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); + } } - function parseNumberAttrVal(val) { - if (isDefined(val) && !isNumber(val)) { - val = parseFloat(val); - } - return !isNumberNaN(val) ? val : undefined; + // 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; } - 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) + return { d: digits, e: exponent, i: numberOfIntegerDigits }; +} - // eslint-disable-next-line no-bitwise - return (num | 0) === num; - } +/** + * 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; - function countDecimals(num) { - var numString = num.toString(); - var decimalSymbolIndex = numString.indexOf('.'); + // determine fractionSize if it is not specified; `+fractionSize` converts it to a number + fractionSize = (isUndefined(fractionSize)) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize; - if (decimalSymbolIndex === -1) { - if (-1 < num && num < 1) { - // It may be in the exponential notation format (`1e-X`) - var match = /e-(\d+)$/.exec(numString); + // The index of the digit to where rounding is to occur + var roundAt = fractionSize + parsedNumber.i; + var digit = digits[roundAt]; - if (match) { - return Number(match[1]); + 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]++; } + } - return 0; + // 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++; } +} - return numString.length - decimalSymbolIndex - 1; - } +/** + * 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; - 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); + if (isInfinity) { + formattedText = '\u221e'; + } else { + parsedNumber = parse(numStr); + + roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac); - var isNonIntegerValue = !isNumberInteger(value); - var isNonIntegerStepBase = !isNumberInteger(stepBase); - var isNonIntegerStep = !isNumberInteger(step); + var digits = parsedNumber.d; + var integerLen = parsedNumber.i; + var exponent = parsedNumber.e; + var decimals = []; + isZero = digits.reduce(function(isZero, d) { return isZero && !d; }, true); - // 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; + // pad zeros for small numbers + while (integerLen < 0) { + digits.unshift(0); + integerLen++; + } - var decimalCount = Math.max(valueDecimals, stepBaseDecimals, stepDecimals); - var multiplier = Math.pow(10, decimalCount); + // extract decimals digits + if (integerLen > 0) { + decimals = digits.splice(integerLen, digits.length); + } else { + decimals = digits; + digits = [0]; + } - value = value * multiplier; - stepBase = stepBase * multiplier; - step = step * multiplier; + // 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); - if (isNonIntegerValue) value = Math.round(value); - if (isNonIntegerStepBase) stepBase = Math.round(stepBase); - if (isNonIntegerStep) step = Math.round(step); + // append the decimal digits + if (decimals.length) { + formattedText += decimalSep + decimals.join(''); } - return (value - stepBase) % step === 0; + if (exponent) { + formattedText += 'e+' + exponent; + } } + if (number < 0 && !isZero) { + return pattern.negPre + formattedText + pattern.negSuf; + } else { + return pattern.posPre + formattedText + pattern.posSuf; + } +} - function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) { - badInputChecker(scope, element, attr, ctrl, 'number'); - numberFormatterParser(ctrl); - baseInputType(scope, element, attr, ctrl, $sniffer, $browser); - - var minVal; - var maxVal; - - if (isDefined(attr.min) || attr.ngMin) { - ctrl.$validators.min = function (modelValue, viewValue) { - return ctrl.$isEmpty(viewValue) || isUndefined(minVal) || viewValue >= minVal; - }; - - attr.$observe('min', function (val) { - minVal = parseNumberAttrVal(val); - // TODO(matsko): implement validateLater to reduce number of validations - ctrl.$validate(); - }); +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; +} - if (isDefined(attr.max) || attr.ngMax) { - ctrl.$validators.max = function (modelValue, viewValue) { - return ctrl.$isEmpty(viewValue) || isUndefined(maxVal) || viewValue <= maxVal; - }; - attr.$observe('max', function (val) { - maxVal = parseNumberAttrVal(val); - // TODO(matsko): implement validateLater to reduce number of validations - ctrl.$validate(); - }); +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); + }; +} - 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); - }; +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); - attr.$observe('step', function (val) { - stepVal = parseNumberAttrVal(val); - // TODO(matsko): implement validateLater to reduce number of validations - ctrl.$validate(); - }); - } - } + return formats[get][value]; + }; +} - function rangeInputType(scope, element, attr, ctrl, $sniffer, $browser) { - badInputChecker(scope, element, attr, ctrl, 'range'); - numberFormatterParser(ctrl); - baseInputType(scope, element, attr, ctrl, $sniffer, $browser); +function timeZoneGetter(date, formats, offset) { + var zone = -1 * offset; + var paddedZone = (zone >= 0) ? '+' : ''; - 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); + paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) + + padNumber(Math.abs(zone % 60), 2); - var originalRender = ctrl.$render; + return paddedZone; +} - 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; +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); +} - 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; - }; +function getThursdayThisWeek(datetime) { + return new Date(datetime.getFullYear(), datetime.getMonth(), + // 4 = index of Thursday + datetime.getDate() + (4 - datetime.getDay())); +} - setInitialValueAndObserver('min', minChange); - } +function weekGetter(size) { + return function(date) { + var firstThurs = getFirstThursdayOfYear(date.getFullYear()), + thisThurs = getThursdayThisWeek(date); - 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; - }; + var diff = +thisThurs - +firstThurs, + result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week - setInitialValueAndObserver('max', maxChange); - } + return padNumber(result, size); + }; +} - 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); - }; +function ampmGetter(date, formats) { + return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1]; +} - setInitialValueAndObserver('step', stepChange); - } +function eraGetter(date, formats) { + return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1]; +} - 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 longEraGetter(date, formats) { + return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1]; +} - function minChange(val) { - minVal = parseNumberAttrVal(val); - // ignore changes before model is initialized - if (isNumberNaN(ctrl.$modelValue)) { - return; - } +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 +}; - 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(); - } - } +var DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/, + NUMBER_STRING = /^-?\d+$/; - function maxChange(val) { - maxVal = parseNumberAttrVal(val); - // ignore changes before model is initialized - if (isNumberNaN(ctrl.$modelValue)) { - return; - } +/** + * @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 + + + {{1288323623006 | date:'medium'}}: + {{1288323623006 | date:'medium'}}
+ {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}: + {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}
+ {{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}: + {{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}
+ {{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}: + {{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}
+
+ + 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)/); + }); + +
+ */ +dateFilter.$inject = ['$locale']; +function dateFilter($locale) { - 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; - } + 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; - // 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(); + 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; } - 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.$validators.url = function (modelValue, viewValue) { - var value = modelValue || viewValue; - return ctrl.$isEmpty(value) || URL_REGEXP.test(value); - }; - } + return function(date, format, timezone) { + var text = '', + parts = [], + fn, match; - 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); + format = format || 'mediumDate'; + format = $locale.DATETIME_FORMATS[format] || format; + if (isString(date)) { + date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date); + } - ctrl.$validators.email = function (modelValue, viewValue) { - var value = modelValue || viewValue; - return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value); - }; - } + if (isNumber(date)) { + date = new Date(date); + } - 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()); + if (!isDate(date) || !isFinite(date.getTime())) { + return date; } - 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); + while (format) { + match = DATE_FORMATS_SPLIT.exec(format); + if (match) { + parts = concat(parts, match, 1); + format = parts.pop(); + } else { + parts.push(format); + format = null; } - }; + } - element.on('change', listener); + 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, '\''); + }); - ctrl.$render = function () { - var value = attr.value; - if (doTrim) { - value = trim(value); - } - element[0].checked = value === ctrl.$viewValue; - }; + return text; + }; +} - 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); +/** + * @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 + + +
{{ {'name':'value'} | json }}
+
{{ {'name':'value'} | json:4 }}
+
+ + 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}/); + }); + +
+ * + */ +function jsonFilter() { + return function(object, spacing) { + if (isUndefined(spacing)) { + spacing = 2; } - return fallback; - } + return toJson(object, spacing); + }; +} - 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); - }; +/** + * @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); - element.on('change', listener); - ctrl.$render = function () { - element[0].checked = ctrl.$viewValue; - }; +/** + * @ngdoc filter + * @name uppercase + * @kind function + * @description + * Converts string to uppercase. + * @example + + + +
+ +

{{title}}

+ +

{{title | uppercase}}

+
+
+
+ */ +var uppercaseFilter = valueFn(uppercase); - // 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; - }; +/** + * @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 + + + +
+ +

Output numbers: {{ numbers | limitTo:numLimit }}

+ +

Output letters: {{ letters | limitTo:letterLimit }}

+ +

Output long number: {{ longNumber | limitTo:longNumberLimit }}

+
+
+ + 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'); + }); - ctrl.$formatters.push(function (value) { - return equals(value, trueValue); - }); + // 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'); + }); + +
+*/ +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; - ctrl.$parsers.push(function (value) { - return value ? trueValue : falseValue; - }); - } + if (isNumber(input)) input = input.toString(); + if (!isArrayLike(input)) return input; - /** - * @ngdoc directive - * @name textarea - * @restrict E - * - * @description - * HTML textarea element control with AngularJS 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 AngularJS 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 AngularJS 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$')`.
- * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. - * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input. - * - * @knownIssue - * - * When specifying the `placeholder` attribute of ` - *
{{ list | json }}
- * - * - * 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]'); - * }); - * - * + * See the [HTML Spec on input[type=range]](https://www.w3.org/TR/html5/forms.html#range-state-(type=range)) + * for more info. * - */ - 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.} $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.} $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); - * ``` + * This has the following consequences for AngularJS: * - * @property {Object.} $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. + * 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 ``, + * if the application sets `model.value = null`, the browser will set the input to `'50'`. + * AngularJS will then set the model to `50`, to prevent input and model value being out of sync. * - * ```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); - * }; - * ``` + * 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. * - * @property {Object.} $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. + * 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, AngularJS will also update the model value. * - * 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. + * Automatic value adjustment also means that a range input element can never have the `required`, + * `min`, or `max` errors. * - * ```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; - * }); - * }; - * ``` + * 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 AngularJS will set the `step` + * error on the input, and set the model to `undefined`. * - * @property {Array.} $viewChangeListeners Array of functions to execute whenever - * a change to {@link ngModel.NgModelController#$viewValue `$viewValue`} has caused a change - * to {@link ngModel.NgModelController#$modelValue `$modelValue`}. - * 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. + * 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. * - * @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. + * @param {string} ngModel Assignable AngularJS 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. * - * @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. + * @example + + + +
+ + Model as range: +
+ Model as number:
+ Min:
+ Max:
+ value = {{value}}
+ myForm.range.$valid = {{myForm.range.$valid}}
+ myForm.range.$error = {{myForm.range.$error}} +
+
+
+ + * ## Range Input with ngMin & ngMax attributes + + * @example + + + +
+ Model as range: +
+ Model as number:
+ Min:
+ Max:
+ value = {{value}}
+ myForm.range.$valid = {{myForm.range.$valid}}
+ myForm.range.$error = {{myForm.range.$error}} +
+
+
+ + */ + 'range': rangeInputType, + + /** + * @ngdoc input + * @name input[checkbox] * * @description + * HTML checkbox. * - * `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. - * AngularJS 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. + * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user + * interaction with the input element. * * @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. ``). - * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks - * that content using the `$sce` service. - * - * - - [contenteditable] { - border: 1px solid black; - background-color: white; - min-height: 20px; - } - - .ng-invalid { - border: 1px solid red; - } - - - - 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
behind - // If strip-br attribute is provided then we strip this out - if (attrs.stripBr && html === '
') { - html = ''; - } - ngModel.$setViewValue(html); - } - } - }; - }]); -
- -
-
Change me!
- Required! -
- -
-
- - 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/); - }); - - *
- * - * + + + +
+
+
+ value1 = {{checkboxModel.value1}}
+ value2 = {{checkboxModel.value2}}
+
+
+ + 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'); + }); + +
*/ - 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.$$parserName = 'parse'; + 'checkbox': checkboxInputType, - this.$$currentValidationRunId = 0; + 'hidden': noop, + 'button': noop, + 'submit': noop, + 'reset': noop, + 'file': noop +}; - this.$$scope = $scope; - this.$$rootScope = $scope.$root; - 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)); - } - }, +function stringBasedInputType(ctrl) { + ctrl.$formatters.push(function(value) { + return ctrl.$isEmpty(value) ? value : value.toString(); + }); +} - /** - * @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, +function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + stringBasedInputType(ctrl); +} - /** - * @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; - }, +function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) { + var type = lowercase(element[0].type); - $$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); + // 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; + }); + + // Support: IE9+ + element.on('compositionupdate', function(ev) { + // End composition when ev.data is empty string on 'compositionupdate' event. + // When the input de-focusses (e.g. by clicking away), IE triggers 'compositionupdate' + // instead of 'compositionend'. + if (isUndefined(ev.data) || ev.data === '') { + composing = false; } - }, + }); - /** - * @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); - }, + element.on('compositionend', function() { + composing = false; + listener(); + }); + } - /** - * @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(); - }, + var timeout; - /** - * @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); - }, + var listener = function(ev) { + if (timeout) { + $browser.defer.cancel(timeout); + timeout = null; + } + if (composing) return; + var value = element.val(), + event = ev && ev.type; - /** - * @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); - }, + // 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); + } - /** - * @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 AngularJS'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 - * - * - * 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] = ''; - * } - * }; - * }]); - * - * - *
- *

Both of these inputs are only updated if they are blurred. Hitting escape should - * empty them. Follow these steps and observe the difference:

- *
    - *
  1. Type something in the input. You will see that the model is not yet updated
  2. - *
  3. Press the Escape key. - *
      - *
    1. 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. - *
    2. - *
    3. 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. - *
    4. - *
    - *
  4. - *
- * - *
- *
- *

Without $rollbackViewValue():

- * - * value1: "{{ model.value1 }}" - *
- * - *
- *

With $rollbackViewValue():

- * - * value2: "{{ model.value2 }}" - *
- *
- *
- *
- - div { - display: table-cell; - } - div:nth-child(1) { - padding-right: 30px; - } - - *
- */ - $rollbackViewValue: function $rollbackViewValue() { - this.$$timeout.cancel(this.$$pendingDebounce); - this.$viewValue = this.$$lastCommittedViewValue; - this.$render(); - }, + // 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); + } + }; - /** - * @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; + // 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(ev, input, origValue) { + if (!timeout) { + timeout = $browser.defer(function() { + timeout = null; + if (!input || input.value !== origValue) { + listener(ev); + } + }); } + }; - 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; + element.on('keydown', /** @this */ function(event) { + var key = event.keyCode; - var prevValid = this.$valid; - var prevModelValue = this.$modelValue; + // ignore + // command modifiers arrows + if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return; - var allowInvalid = this.$options.getOption('allowInvalid'); + deferListener(event, this, this.value); + }); - 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(); + // if user modifies input value using context menu in IE, we need "paste", "cut" and "drop" events to catch it + if ($sniffer.hasEvent('paste')) { + element.on('paste cut drop', 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); } - } - }); - }, + }); + } + }); + } - $$runValidators: function $$runValidators(modelValue, viewValue, doneCallback) { - this.$$currentValidationRunId++; - var localValidationRunId = this.$$currentValidationRunId; - var that = this; + ctrl.$render = function() { + // Workaround for Firefox validation #12102. + var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue; + if (element.val() !== value) { + element.val(value); + } + }; +} - // check parser error - if (!processParseErrors()) { - validationDone(false); - return; - } - if (!processSyncValidators()) { - validationDone(false); - return; +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(); } - processAsyncValidators(); - function processParseErrors() { - var errorKey = that.$$parserName; + return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds); + } + } - 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); - }); - } + return NaN; +} - // Set the parse error last, to prevent unsetting it, should a $validators key == parserName - setValidity(errorKey, that.$$parserValid); - return that.$$parserValid; - } - return true; +function createDateParser(regexp, mapping) { + return function(iso, previousDate) { + 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); - 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; + if (parts) { + parts.shift(); + if (previousDate) { + map = { + yyyy: previousDate.getFullYear(), + MM: previousDate.getMonth() + 1, + dd: previousDate.getDate(), + HH: previousDate.getHours(), + mm: previousDate.getMinutes(), + ss: previousDate.getSeconds(), + sss: previousDate.getMilliseconds() / 1000 + }; + } else { + map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 }; } - 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); + forEach(parts, function(part, index) { + if (index < mapping.length) { + map[mapping[index]] = +part; } - 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); + + var date = new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0); + if (map.yyyy < 100) { + // In the constructor, 2-digit years map to 1900-1999. + // Use `setFullYear()` to set the correct year. + date.setFullYear(map.yyyy); } + + return date; } + } - function setValidity(name, isValid) { - if (localValidationRunId === that.$$currentValidationRunId) { - that.$setValidity(name, isValid); - } + return NaN; + }; +} + +function createDateInputType(type, regexp, parseDate, format) { + return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) { + badInputChecker(scope, element, attr, ctrl, type); + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + + var isTimeType = type === 'time' || type === 'datetimelocal'; + var previousDate; + var previousTimezone; + + 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! + return parseDateAndConvertTimeZoneToLocal(value, previousDate); } + ctrl.$$parserName = type; + return undefined; + }); - function validationDone(allValid) { - if (localValidationRunId === that.$$currentValidationRunId) { + ctrl.$formatters.push(function(value) { + if (value && !isDate(value)) { + throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value); + } + if (isValidDate(value)) { + previousDate = value; + var timezone = ctrl.$options.getOption('timezone'); - doneCallback(allValid); + if (timezone) { + previousTimezone = timezone; + previousDate = convertTimezoneToLocal(previousDate, timezone, true); } + + return formatter(value, timezone); + } else { + previousDate = null; + previousTimezone = null; + return ''; } - }, + }); - /** - * @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; + 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(); + }); + } - this.$$timeout.cancel(this.$$pendingDebounce); + function isValidDate(value) { + // Invalid Date: getTime() returns NaN + return value && !(value.getTime && value.getTime() !== value.getTime()); + } - // 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; + function parseObservedDateValue(val) { + return isDefined(val) && !isDate(val) ? parseDateAndConvertTimeZoneToLocal(val) || undefined : val; + } + + function parseDateAndConvertTimeZoneToLocal(value, previousDate) { + var timezone = ctrl.$options.getOption('timezone'); + + if (previousTimezone && previousTimezone !== timezone) { + // If the timezone has changed, adjust the previousDate to the default timezone + // so that the new date is converted with the correct timezone offset + previousDate = addDateMinutes(previousDate, timezoneToOffset(previousTimezone)); } - this.$$updateEmptyClasses(viewValue); - this.$$lastCommittedViewValue = viewValue; - // change to dirty - if (this.$pristine) { - this.$setDirty(); + var parsedDate = parseDate(value, previousDate); + + if (!isNaN(parsedDate) && timezone) { + parsedDate = convertTimezoneToLocal(parsedDate, timezone); } - this.$$parseAndValidate(); - }, + return parsedDate; + } - $$parseAndValidate: function $$parseAndValidate() { - var viewValue = this.$$lastCommittedViewValue; - var modelValue = viewValue; - var that = this; + function formatter(value, timezone) { + var targetFormat = format; - this.$$parserValid = isUndefined(modelValue) ? undefined : true; + if (isTimeType && isString(ctrl.$options.getOption('timeSecondsFormat'))) { + targetFormat = format + .replace('ss.sss', ctrl.$options.getOption('timeSecondsFormat')) + .replace(/:$/, ''); + } - // Reset any previous parse error - this.$setValidity(this.$$parserName, null); - this.$$parserName = 'parse'; + var formatted = $filter('date')(value, targetFormat, timezone); - 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 (isTimeType && ctrl.$options.getOption('timeStripZeroSeconds')) { + formatted = formatted.replace(/(?::00)?(?:\.000)?$/, ''); } - if (isNumberNaN(this.$modelValue)) { - // this.$modelValue has not been touched yet... - this.$modelValue = this.$$ngModelGet(this.$$scope); + + return formatted; + } + }; +} + +function badInputChecker(scope, element, attr, ctrl, parserName) { + 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) || {}; + if (validity.badInput || validity.typeMismatch) { + ctrl.$$parserName = parserName; + return undefined; } - var prevModelValue = this.$modelValue; - var allowInvalid = this.$options.getOption('allowInvalid'); - this.$$rawModelValue = modelValue; - if (allowInvalid) { - this.$modelValue = modelValue; - writeToModelIfNeeded(); + return value; + }); + } +} + +function numberFormatterParser(ctrl) { + ctrl.$parsers.push(function(value) { + if (ctrl.$isEmpty(value)) return null; + if (NUMBER_REGEXP.test(value)) return parseFloat(value); + + ctrl.$$parserName = 'number'; + 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; + }); +} - // 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 parseNumberAttrVal(val) { + if (isDefined(val) && !isNumber(val)) { + val = parseFloat(val); + } + return !isNumberNaN(val) ? val : undefined; +} - function writeToModelIfNeeded() { - if (that.$modelValue !== prevModelValue) { - that.$$writeModelToScope(); - } +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]); } - }, + } - $$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); - }, + return 0; + } - /** - * @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. - * - *
- * 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. - *
- * - * @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); + 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, 'number'); + numberFormatterParser(ctrl); + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + + var minVal; + var maxVal; + + if (isDefined(attr.min) || attr.ngMin) { + ctrl.$validators.min = function(modelValue, viewValue) { + return ctrl.$isEmpty(viewValue) || isUndefined(minVal) || viewValue >= 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(modelValue, viewValue) { + return ctrl.$isEmpty(viewValue) || isUndefined(maxVal) || viewValue <= 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, 'range'); + 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(); + } + } - $$debounceViewValueCommit: function $$debounceViewValueCommit(trigger) { - var debounceDelay = this.$options.getOption('debounce'); + function maxChange(val) { + maxVal = parseNumberAttrVal(val); + // ignore changes before model is initialized + if (isNumberNaN(ctrl.$modelValue)) { + return; + } - if (isNumber(debounceDelay[trigger])) { - debounceDelay = debounceDelay[trigger]; - } else if (isNumber(debounceDelay['default']) && this.$options.getOption('updateOn').indexOf(trigger) === -1) { - debounceDelay = debounceDelay['default']; - } else if (isNumber(debounceDelay['*'])) { - debounceDelay = debounceDelay['*']; + 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(); + } + } - 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.$$rootScope.$$phase) { - this.$commitViewValue(); - } else { - this.$$scope.$apply(function () { - that.$commitViewValue(); - }); + 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.$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.$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(ev) { + var value; + if (element[0].checked) { + value = attr.value; + if (doTrim) { + value = trim(value); } - }, + ctrl.$setViewValue(value, ev && ev.type); + } + }; - /** - * @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. - * - *
- * **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. - *
- * - *
- * **Note:** it is not possible to override the `getterSetter` option. - *
- * - * @param {Object} options a hash of settings to override the previous options - * - */ - $overrideModelOptions: function $overrideModelOptions(options) { - this.$options = this.$options.createChild(options); - this.$$setUpdateOnEvents(); - }, + element.on('change', listener); - /** - * @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. - * - * - -
-
- Search Fruit: - -
-
- Model:
-
{{selectedFruit | json}}
-
-
-
- - 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}); - }; - } - }); - - -
- -
    -
  • - -
  • -
-
-
- *
- * - */ - $processModelValue: function $processModelValue() { - var viewValue = this.$$format(); + 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(ev) { + ctrl.$setViewValue(element[0].checked, ev && ev.type); + }; + + element.on('change', 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 AngularJS 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 AngularJS 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 AngularJS 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$')`.
+ * **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 AngularJS expression to be executed when input changes due to user + * interaction with the input element. + * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input. + * + * @knownIssue + * + * When specifying the `placeholder` attribute of ` + *
{{ list | json }}
+ * + * + * 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]'); + * }); + * + * + * + */ +var ngListDirective = function() { + return { + restrict: 'A', + priority: 100, + require: 'ngModel', + link: function(scope, element, attr, ctrl) { + var ngList = attr.ngList || ', '; + var trimValues = attr.ngTrim !== 'false'; + var separator = trimValues ? trim(ngList) : ngList; - match = lhs.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/); + var parse = function(viewValue) { + // If the viewValue is invalid (say required but empty) it will be `undefined` + if (isUndefined(viewValue)) return; - 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]; + var list = []; - 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); + if (viewValue) { + forEach(viewValue.split(separator), function(value) { + if (value) list.push(trimValues ? trim(value) : value); + }); } - var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn; - var hashFnLocals = { $id: hashKey }; + return list; + }; - if (trackByExp) { - trackByExpGetter = $parse(trackByExp); - } else { - trackByIdArrayFn = function trackByIdArrayFn(key, value) { - return hashKey(value); - }; - trackByIdObjFn = function trackByIdObjFn(key) { - return key; - }; + ctrl.$parsers.push(parse); + ctrl.$formatters.push(function(value) { + if (isArray(value)) { + return value.join(ngList); } - return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) { + return undefined; + }); - 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); - }; - } + // Override the standard $isEmpty because an empty array means the input is empty. + ctrl.$isEmpty = function(value) { + return !value || !value.length; + }; + } + }; +}; - // 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; - } +/* 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 +*/ - 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; - } - } +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'; - // 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(); - } +var ngModelMinErr = minErr('ngModel'); - // 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]; +/** + * @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.} $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); + * ``` - if (block.scope) { - // if we have already seen this object, then we need to reuse the - // associated scope/element + * + * @property {Array.} $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.} $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.} $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.} $viewChangeListeners Array of functions to execute whenever + * a change to {@link ngModel.NgModelController#$viewValue `$viewValue`} has caused a change + * to {@link ngModel.NgModelController#$modelValue `$modelValue`}. + * 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. + * AngularJS 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. ``). + * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks + * that content using the `$sce` service. + * + * + + [contenteditable] { + border: 1px solid black; + background-color: white; + min-height: 20px; + } - nextNode = previousNode; + .ng-invalid { + border: 1px solid red; + } - // skip nodes that are already pending removal via leave animation - do { - nextNode = nextNode.nextSibling; - } while (nextNode && nextNode[NG_REMOVED]); + + + 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 || '')); + }; - if (getBlockStart(block) !== nextNode) { - // existing item which got moved - $animate.move(getBlockNodes(block.clone), null, previousNode); + // 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
behind + // If strip-br attribute is provided then we strip this out + if (attrs.stripBr && html === '
') { + html = ''; } - 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); - }); + ngModel.$setViewValue(html); } } - lastBlockMap = nextBlockMap; - }); - }; + }; + }]); +
+ +
+
Change me!
+ Required! +
+ +
+
+ + 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/); + }); + + *
+ * + * + */ +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.$$parserName = 'parse'; + + this.$$currentValidationRunId = 0; + + this.$$scope = $scope; + this.$$rootScope = $scope.$root; + 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() { + 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)); + } + }, + - var NG_HIDE_CLASS = 'ng-hide'; - var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate'; /** - * @ngdoc directive - * @name ngShow - * @multiElement + * @ngdoc method + * @name ngModel.NgModelController#$render * * @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}). + * Called when the view needs to be updated. It is expected that the user of the ng-model + * directive will implement this method. * - * ```html - * - *
+ * The `$render()` method is invoked in the following situations: * - * - *
- * ``` - * - * 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. + * * `$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. * - * ## Why is `!important` used? + * 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 * - * 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. + * @description + * This is called when we need to determine if the value of an input is empty. * - * 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. + * For instance, the required directive does this to work out if the input has data or not. * - * ### Overriding `.ng-hide` + * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`. * - * 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. + * 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. * - * ```css - * .ng-hide:not(.ng-hide-animate) { - * /* These are just alternative ways of hiding an element */ - * display: block!important; - * position: absolute; - * top: -9999px; - * left: -9999px; - * } - * ``` + * @param {*} value The value of the input to check for emptiness. + * @returns {boolean} True if `value` is "empty". + */ + $isEmpty: function(value) { + // eslint-disable-next-line no-self-compare + return isUndefined(value) || value === '' || value === null || value !== value; + }, + + $$updateEmptyClasses: function(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 * - * By default you don't need to override anything in CSS and the animations will work around the - * display style. + * @description + * Sets the control to its pristine state. * - * @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. | + * 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() { + 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 * - * 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. + * @description + * Sets the control to its dirty state. * - * ```css - * /* A working example can be found at the bottom of this page. */ - * .my-element.ng-hide-add, .my-element.ng-hide-remove { - * transition: all 0.5s linear; - * } + * 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() { + 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 * - * .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 { ... } - * ``` + * @description + * Sets the control to its untouched state. * - * 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. + * 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() { + this.$touched = false; + this.$untouched = true; + this.$$animate.setClass(this.$$element, UNTOUCHED_CLASS, TOUCHED_CLASS); + }, + + /** + * @ngdoc method + * @name ngModel.NgModelController#$setTouched * - * @element ANY - * @param {expression} ngShow If the {@link guide/expression expression} is truthy/falsy then the - * element is shown/hidden respectively. + * @description + * Sets the control to its touched state. * - * @example - * A simple example, animating the element's opacity: + * 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() { + this.$touched = true; + this.$untouched = false; + this.$$animate.setClass(this.$$element, TOUCHED_CLASS, UNTOUCHED_CLASS); + }, + + /** + * @ngdoc method + * @name ngModel.NgModelController#$rollbackViewValue * - - - Show:
-
- I show up when your checkbox is checked. -
-
- - .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; - } - - - 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); - }); - -
+ * @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. * - *
- * @example - * A more complex example, featuring different show/hide animations: + * 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`. * - - - Show:
-
- I show up when your checkbox is checked. -
-
- - 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; - } - - - 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); - }); - -
+ * In this case, you can use `$rollbackViewValue()` to manually cancel the debounced / future update + * and reset the input to the last committed view value. * - * @knownIssue + * 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 AngularJS's + * dirty checking mechanism is not able to tell whether the model has actually changed or not. * - * ### Flickering when using ngShow to toggle between elements + * 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. * - * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can - * happen that both the element to show and the element to hide are visible for a very short time. + * @example + * + * + * angular.module('cancel-update-example', []) * - * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations - * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than - * other browsers. + * .controller('CancelUpdateController', ['$scope', function($scope) { + * $scope.model = {value1: '', value2: ''}; * - * There are several way to mitigate this problem: + * $scope.setEmpty = function(e, value, rollback) { + * if (e.keyCode === 27) { + * e.preventDefault(); + * if (rollback) { + * $scope.myForm[value].$rollbackViewValue(); + * } + * $scope.model[value] = ''; + * } + * }; + * }]); + * + * + *
+ *

Both of these inputs are only updated if they are blurred. Hitting escape should + * empty them. Follow these steps and observe the difference:

+ *
    + *
  1. Type something in the input. You will see that the model is not yet updated
  2. + *
  3. Press the Escape key. + *
      + *
    1. 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. + *
    2. + *
    3. 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. + *
    4. + *
    + *
  4. + *
+ * + *
+ *
+ *

Without $rollbackViewValue():

+ * + * value1: "{{ model.value1 }}" + *
+ * + *
+ *

With $rollbackViewValue():

+ * + * value2: "{{ model.value2 }}" + *
+ *
+ *
+ *
+ + div { + display: table-cell; + } + div:nth-child(1) { + padding-right: 30px; + } + + + *
+ */ + $rollbackViewValue: function() { + this.$$timeout.cancel(this.$$pendingDebounce); + this.$viewValue = this.$$lastCommittedViewValue; + this.$render(); + }, + + /** + * @ngdoc method + * @name ngModel.NgModelController#$validate * - * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}. - * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}. - * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements. - * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}. - * - Define an animation on the affected elements. + * @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. */ - 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 + $validate: function() { + // 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(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; + + 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 directive - * @name ngHide - * @multiElement + * @ngdoc method + * @name ngModel.NgModelController#$commitViewValue * * @description - * The `ngHide` directive shows or hides the given HTML element based on the expression provided to - * the `ngHide` attribute. + * Commit a pending update to the `$modelValue`. * - * 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}). + * 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() { + 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() { + var viewValue = this.$$lastCommittedViewValue; + var modelValue = viewValue; + var that = this; + + this.$$parserValid = isUndefined(modelValue) ? undefined : true; + + // Reset any previous parse error + this.$setValidity(this.$$parserName, null); + this.$$parserName = 'parse'; + + 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() { + 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 * - * ```html - * - *
+ * @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. * - * - *
- * ``` + *
+ * 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. + *
* - * 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. + * @param {*} value value from the view. + * @param {string} trigger Event that triggered the update. + */ + $setViewValue: function(value, trigger) { + this.$viewValue = value; + if (this.$options.getOption('updateOnDefault')) { + this.$$debounceViewValueCommit(trigger); + } + }, + + $$debounceViewValueCommit: function(trigger) { + var debounceDelay = this.$options.getOption('debounce'); + + if (isNumber(debounceDelay[trigger])) { + debounceDelay = debounceDelay[trigger]; + } else if (isNumber(debounceDelay['default']) && + this.$options.getOption('updateOn').indexOf(trigger) === -1 + ) { + debounceDelay = debounceDelay['default']; + } else if (isNumber(debounceDelay['*'])) { + debounceDelay = debounceDelay['*']; + } + + 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.$$rootScope.$$phase) { + this.$commitViewValue(); + } else { + this.$$scope.$apply(function() { + that.$commitViewValue(); + }); + } + }, + + /** + * @ngdoc method * - * ## Why is `!important` used? + * @name ngModel.NgModelController#$overrideModelOptions * - * 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. + * @description * - * 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. + * Override the current model options settings programmatically. * - * ### Overriding `.ng-hide` + * 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. * - * 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. + * See {@link ngModelOptions} for information about what options can be specified + * and how model option inheritance works. * - * ```css - * .ng-hide:not(.ng-hide-animate) { - * /* These are just alternative ways of hiding an element */ - * display: block!important; - * position: absolute; - * top: -9999px; - * left: -9999px; - * } - * ``` + *
+ * **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. + *
* - * By default you don't need to override in CSS anything and the animations will work around the - * display style. + *
+ * **Note:** it is not possible to override the `getterSetter` option. + *
* - * @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. | + * @param {Object} options a hash of settings to override the previous options * - * 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. + */ + $overrideModelOptions: function(options) { + this.$options = this.$options.createChild(options); + this.$$setUpdateOnEvents(); + }, + + /** + * @ngdoc method * - * ```css - * /* A working example can be found at the bottom of this page. */ - * .my-element.ng-hide-add, .my-element.ng-hide-remove { - * transition: all 0.5s linear; - * } + * @name ngModel.NgModelController#$processModelValue + + * @description * - * .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 { ... } - * ``` + * Runs the model -> view pipeline on the current + * {@link ngModel.NgModelController#$modelValue $modelValue}. * - * 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. + * The following actions are performed by this method: * - * @element ANY - * @param {expression} ngHide If the {@link guide/expression expression} is truthy/falsy then the - * element is hidden/shown respectively. + * - 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. * - * @example - * A simple example, animating the element's opacity: + * This method is called by ngModel internally when the bound scope value changes. + * Application developers usually do not have to call this function themselves. * - - - Hide:
-
- I hide when your checkbox is checked. -
-
- - .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; - } - - - 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); - }); - -
+ * 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 - * A more complex example, featuring different show/hide animations: - * - - - Hide:
-
- I hide when your checkbox is checked. + * 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. + * + * + +
+
+ Search Fruit: +
- - - 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; - } - - - 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); +
+ Model:
+
{{selectedFruit | json}}
+
+
+
+ + 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}); + }; + } }); - -
- * - * @knownIssue - * - * ### Flickering when using ngHide to toggle between elements - * - * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can - * happen that both the element to show and the element to hide are visible for a very short time. - * - * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations - * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than - * other browsers. - * - * There are several way to mitigate this problem: + + +
+ +
    +
  • + +
  • +
+
+
+ * * - * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}. - * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}. - * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements. - * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}. - * - Define an animation on the affected elements. */ - 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 - }); - }); - } - }; - }]; + $processModelValue: function() { + 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); + } + }, /** - * @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 - - - - - -
- Sample Text -
myStyle={{myStyle}}
-
- - span { - color: black; - } - - - 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)'); - }); - -
+ * This method is called internally to run the $formatters on the $modelValue */ - var ngStyleDirective = ngDirective(function (scope, element, attr) { - scope.$watchCollection(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) { - if (oldStyles && newStyles !== oldStyles) { - forEach(oldStyles, function (val, style) { - element.css(style, ''); - }); - } - if (newStyles) element.css(newStyles); - }); - }); + $$format: function() { + var formatters = this.$formatters, + idx = formatters.length; + + var viewValue = this.$modelValue; + while (idx--) { + viewValue = formatters[idx](viewValue); + } + + return viewValue; + }, /** - * @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. - * - *
- * 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`. - *
- - * @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 - * - * ``` - * - * ... - * ... - * ... - * - * ``` - * - * - * @scope - * @priority 1200 - * @param {*} ngSwitch|on expression to match against ng-switch-when. - * 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 - - -
- - selection={{selection}} -
-
-
Settings Div
-
Home Span
-
default
-
-
-
- - angular.module('switchExample', ['ngAnimate']) + * This method is called internally when the bound scope value changes. + */ + $$setModelValue: function(modelValue) { + this.$modelValue = this.$$rawModelValue = modelValue; + this.$$parserValid = undefined; + this.$processModelValue(); + }, + + $$setUpdateOnEvents: function() { + 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(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 AngularJS 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(object, property) { + object[property] = true; + }, + unset: function(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: + * + *
+ * //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;
+ * }
+ * 
+ * + * @example + * ### Basic Usage + * + + + +

+ Update input to see transitions when valid/invalid. + Integer is a valid value. +

+
+ +
+
+ *
+ * + * @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. + * + *
+ * **Best Practice:** It's best to keep getters fast because AngularJS is likely to call them more + * frequently than other parts of your code. + *
+ * + * 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 `
`, which will enable this behavior for all ``s within it. See + * {@link ng.directive:ngModelOptions `ngModelOptions`} for more. + * + * The following example shows how to use `ngModel` with a getter/setter: + * + * @example + * + +
+ + + +
user.name = 
+
+
+ + 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; + } + }; + }]); + + *
+ */ +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); - scope.$watch(watchExpr, function ngSwitchWatchAction(value) { - var i, ii; + return { + pre: function ngModelPreLink(scope, element, attr, ctrls) { + var modelCtrl = ctrls[0], + formCtrl = ctrls[1] || modelCtrl.$$parentForm, + optionsCtrl = ctrls[2]; - // Start with the last, in case the array is modified during the loop - while (previousLeaveAnimations.length) { - $animate.cancel(previousLeaveAnimations.pop()); + if (optionsCtrl) { + modelCtrl.$options = optionsCtrl.$options; } - 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)); - } + modelCtrl.$$initGetterSetters(); - selectedElements.length = 0; - selectedScopes.length = 0; + // notify others, especially parent forms + formCtrl.$addControl(modelCtrl); - 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 }; + attr.$observe('name', function(newValue) { + if (modelCtrl.$name !== newValue) { + modelCtrl.$$parentForm.$$renameControl(modelCtrl, newValue); + } + }); - selectedElements.push(block); - $animate.enter(caseElement, anchor.parent(), anchor); - }); - }); - } - }); - } - }; - }]; + scope.$on('$destroy', function() { + modelCtrl.$$parentForm.$removeControl(modelCtrl); + }); + }, + post: function ngModelPostLink(scope, element, attr, ctrls) { + var modelCtrl = ctrls[0]; + modelCtrl.$$setUpdateOnEvents(); - var ngSwitchWhenDirective = ngDirective({ - transclude: 'element', - priority: 1200, - require: '^ngSwitch', - multiElement: true, - link: function link(scope, element, attrs, ctrl, $transclude) { + function setTouched() { + modelCtrl.$setTouched(); + } - var cases = attrs.ngSwitchWhen.split(attrs.ngSwitchWhenSeparator).sort().filter( - // Filter duplicate cases - function (element, index, array) { - return array[index - 1] !== element; - }); + element.on('blur', function() { + if (modelCtrl.$touched) return; - forEach(cases, function (whenCase) { - ctrl.cases['!' + whenCase] = ctrl.cases['!' + whenCase] || []; - ctrl.cases['!' + whenCase].push({ transclude: $transclude, element: element }); - }); + if ($rootScope.$$phase) { + scope.$evalAsync(setTouched); + } else { + scope.$apply(setTouched); + } + }); + } + }; } - }); + }; +}]; - 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 }); - } - }); +/* 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 directive - * @name ngTransclude - * @restrict EAC - * + * @ngdoc method + * @name ModelOptions#getOption + * @param {string} name the name of the option to retrieve + * @returns {*} the value of the option * @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. - * - * - * - *
- *
- *
- * {{text}} - *
- *
- * - * 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'); - * }); - * - *
- * - * @example - * ### Transclude fallback content - * This example shows how to use `NgTransclude` with fallback content, that - * is displayed if no transcluded content is provided. - * - * - * - * - * - * - * - * - * Button2 - * - * - * - * it('should have different transclude element content', function() { - * expect(element(by.id('fallback')).getText()).toBe('Button1'); - * expect(element(by.id('modified')).getText()).toBe('Button2'); - * }); - * - * - * - * @example - * ### Multi-slot transclusion - * This example demonstrates using multi-slot transclusion in a component directive. - * - * - * - *
- *
- *
- * - * {{title}} - *

{{text}}

- *
- *
- *
- * - * angular.module('multiSlotTranscludeExample', []) - * .directive('pane', function() { - * return { - * restrict: 'E', - * transclude: { - * 'title': '?paneTitle', - * 'body': 'paneBody', - * 'footer': '?paneFooter' - * }, - * template: '
' + - * '
Fallback Title
' + - * '
' + - * '' + - * '
' - * }; - * }) - * .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...'; - * }]); - *
- * - * 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'); - * }); - * - *
+ * Returns the value of the given option */ - var ngTranscludeMinErr = minErr('ngTransclude'); - var ngTranscludeDirective = ['$compile', function ($compile) { - return { - restrict: 'EAC', - compile: function ngTranscludeCompile(tElement) { + getOption: function(name) { + return this.$$options[name]; + }, - // Remove and cache any original content to act as a fallback - var fallbackLinkFn = $compile(tElement.contents()); - tElement.empty(); + /** + * @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(options) { + var inheritAll = false; - return function ngTranscludePostLink($scope, $element, $attrs, controller, $transclude) { + // make a shallow copy + options = extend({}, options); - 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)); + // 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 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 (inheritAll) { + // We have a property of the form: `"*": "$inherit"` + delete options['*']; + defaults(options, this.$$options); + } - // If the slot is required and no transclusion content is provided then this call will throw an error - $transclude(ngTranscludeCloneAttachFn, null, slotName); + // Finally add in any missing defaults + defaults(options, defaultModelOptions.$$options); - // If the slot is optional and no transclusion content is provided then use the fallback content - if (slotName && !$transclude.isSlotFilled(slotName)) { - useFallbackContent(); - } + return new ModelOptions(options); + } +}; - 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); - }); - } +defaultModelOptions = new ModelOptions({ + updateOn: '', + updateOnDefault: true, + debounce: 0, + getterSetter: false, + allowInvalid: false, + timezone: null +}); - 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 ` - - Load inlined template -
-
- - 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/); - }); - -
- */ - 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; +/** + * @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 AngularJS expression. This expression should evaluate to an object, whose properties contain + * the settings. For example: `
+ *
+ * + *
+ *
+ * ``` + * + * 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 + *
+ *
+ * + *
+ *
+ * ``` + * + * 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 `
` 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. + * + * + * + *
+ *
+ *
+ *
+ *
+ *
user.name = 
+ *
+ *
+ * + * 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(); + * } + * }; + * }]); + * + * + * 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'); + * }); + * + *
+ * + * ### 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. + * + * + * + *
+ *
+ * Name: + * + *
+ *
+ *
user.name = 
+ *
+ *
+ * + * angular.module('optionsExample', []) + * .controller('ExampleController', ['$scope', function($scope) { + * $scope.user = { name: 'say' }; + * }]); + * + *
+ * + * ### Default events, extra triggers, and catch-all debounce values + * + * This example shows the relationship between "default" update events and + * additional `updateOn` triggers. + * + * `default` events are those that are bound to the control, and when fired, update the `$viewValue` + * via {@link ngModel.NgModelController#$setViewValue $setViewValue}. Every event that is not listed + * in `updateOn` is considered a "default" event, since different control types have different + * default events. + * + * The control in this example updates by "default", "click", and "blur", with different `debounce` + * values. You can see that "click" doesn't have an individual `debounce` value - + * therefore it uses the `*` debounce value. + * + * There is also a button that calls {@link ngModel.NgModelController#$setViewValue $setViewValue} + * directly with a "custom" event. Since "custom" is not defined in the `updateOn` list, + * it is considered a "default" event and will update the + * control if "default" is defined in `updateOn`, and will receive the "default" debounce value. + * Note that this is just to illustrate how custom controls would possibly call `$setViewValue`. + * + * You can change the `updateOn` and `debounce` configuration to test different scenarios. This + * is done with {@link ngModel.NgModelController#$overrideModelOptions $overrideModelOptions}. + * + + + + + + angular.module('optionsExample', []) + .component('modelUpdateDemo', { + templateUrl: 'template.html', + controller: function() { + this.name = 'Chinua'; + + this.options = { + updateOn: 'default blur click', + debounce: { + default: 2000, + blur: 0, + '*': 1000 + } + }; - $templateCache.put(templateUrl, text); - } - } - }; - }]; + this.updateEvents = function() { + var eventList = this.options.updateOn.split(' '); + eventList.push('*'); + var events = {}; - /* exported selectDirective, optionDirective */ + for (var i = 0; i < eventList.length; i++) { + events[eventList[i]] = this.options.debounce[eventList[i]]; + } - var noopNgModelController = { $setViewValue: noop, $render: noop }; + this.events = events; + }; - 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); - } + this.updateOptions = function() { + var options = angular.extend(this.options, { + updateOn: Object.keys(this.events).join(' ').replace('*', ''), + debounce: this.events + }); - /** - * @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. - * - * - * - *
- *
- *
- *
- * - * Error: The current model doesn't match any option
- * - *
- *
- *
- *
- * - * 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; - * }; - * } - * - * }; - * }); - * - *
- * - * - * @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. - * - * - * - *
- *
- *
- *
- * Error: Please select a value
- * - *
- *
- *
- *
- * - * 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); - * }; - * } - * }; - * }); - * - * - * 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'); - }); - * - *
- * - * - */ - var SelectController = ['$element', '$scope', /** @this */function ($element, $scope) { + this.form.input.$overrideModelOptions(options); + }; - var self = this, - optionsMap = new NgMap(); + // Initialize the event form + this.updateEvents(); + } + }); +
+ +
+ Input: +
+ Model: {{$ctrl.name}} +
+ + +
+
+ updateOn
+ + + + + + + + + + + +
OptionDebounce value
{{key}}
- self.selectValueMap = {}; // Keys are the hashed values, values the original values +
+ +
+
+
+ * + * + * ## 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: + * + * + * + *
+ *
+ * + *
+ *
user.name = 
+ *
+ *
+ * + * angular.module('getterSetterExample', []) + * .controller('ExampleController', ['$scope', function($scope) { + * var _name = 'Brian'; + * $scope.user = { + * name: function(newName) { + * return angular.isDefined(newName) ? (_name = newName) : _name; + * } + * }; + * }]); + * + *
+ * + * + * ## 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()`}. + * See also the example for + * {@link ngModelOptions#default-events-extra-triggers-and-catch-all-debounce-values + * Default events, extra triggers, and catch-all debounce values}. + * + * + * ## Specifying timezones + * + * You can specify the timezone that date/time input directives expect by providing its name in the + * `timezone` property. + * + * + * ## Formatting the value of `time` and `datetime-local` + * + * With the options `timeSecondsFormat` and `timeStripZeroSeconds` it is possible to adjust the value + * that is displayed in the control. Note that browsers may apply their own formatting + * in the user interface. + * + + + + + + angular.module('timeExample', []) + .component('timeExample', { + templateUrl: 'timeExample.html', + controller: function() { + this.time = new Date(1970, 0, 1, 14, 57, 0); - // If the ngModel doesn't get provided then provide a dummy noop version to prevent errors - self.ngModelCtrl = noopNgModelController; - self.multiple = false; + this.options = { + timeSecondsFormat: 'ss', + timeStripZeroSeconds: true + }; - // 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(' + * + * + * @param {Object} ngModelOptions options to apply to {@link ngModel} directives on this element and + * and its descendents. + * + * **General options**: + * + * - `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', + * debounce: { 'default': 500, 'blur': 0 } + * }" + * ``` + * You can use the `*` key to specify a debounce value that applies to all events that are not + * specifically listed. In the following example, `mouseup` would have a debounce delay of 1000: + * ``` + * ng-model-options="{ + * updateOn: 'default blur mouseup', + * debounce: { 'default': 500, 'blur': 0, '*': 1000 } + * }" + * ``` + * - `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. + * + * + * **Input-type specific options**: + * + * - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for + * ``, ``, ... . 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. + * Note that changing the timezone will have no effect on the current date, and is only applied after + * the next input / model change. + * + * - `timeSecondsFormat`: Defines if the `time` and `datetime-local` types should show seconds and + * milliseconds. The option follows the format string of {@link date date filter}. + * By default, the options is `undefined` which is equal to `'ss.sss'` (seconds and milliseconds). + * The other options are `'ss'` (strips milliseconds), and `''` (empty string), which strips both + * seconds and milliseconds. + * Note that browsers that support `time` and `datetime-local` require the hour and minutes + * part of the time string, and may show the value differently in the user interface. + * {@link ngModelOptions#formatting-the-value-of-time-and-datetime-local- See the example}. + * + * - `timeStripZeroSeconds`: Defines if the `time` and `datetime-local` types should strip the + * seconds and milliseconds from the formatted value if they are zero. This option is applied + * after `timeSecondsFormat`. + * This option can be used to make the formatting consistent over different browsers, as some + * browsers with support for `time` will natively hide the milliseconds and + * seconds if they are zero, but others won't, and browsers that don't implement these input + * types will always show the full string. + * {@link ngModelOptions#formatting-the-value-of-time-and-datetime-local- See the example}. + * + */ +var ngModelOptionsDirective = function() { + NgModelOptionsController.$inject = ['$attrs', '$scope']; + function NgModelOptionsController($attrs, $scope) { + this.$$attrs = $attrs; + this.$$scope = $scope; + } + NgModelOptionsController.prototype = { + $onInit: function() { + var parentOptions = this.parentCtrl ? this.parentCtrl.$options : defaultModelOptions; + var modelOptionsDefinition = this.$$scope.$eval(this.$$attrs.ngModelOptions); - // 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; + this.$options = parentOptions.createChild(modelOptionsDefinition); + } + }; - self.renderUnknownOption = function (val) { - var unknownVal = self.generateUnknownOptionValue(val); - self.unknownOption.val(unknownVal); - $element.prepend(self.unknownOption); - setOptionSelectedStatus(self.unknownOption, true); - $element.val(unknownVal); - }; + return { + restrict: 'A', + // ngModelOptions needs to run before ngModel and input directives + priority: 10, + require: {parentCtrl: '?^^ngModelOptions'}, + bindToController: true, + controller: NgModelOptionsController + }; +}; - 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) + ' ?'; - }; +// 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; + } + }); +} - self.removeUnknownOption = function () { - if (self.unknownOption.parent()) self.unknownOption.remove(); - }; +/** + * @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. + * + + +
Normal: {{1 + 2}}
+
Ignored: {{1 + 2}}
+
+ + 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/); + }); + +
+ */ +var ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 }); - self.selectEmptyOption = function () { - if (self.emptyOption) { - $element.val(''); - setOptionSelectedStatus(self.emptyOption, true); - } - }; +/* exported ngOptionsDirective */ - self.unselectEmptyOption = function () { - if (self.hasEmptyOption) { - setOptionSelectedStatus(self.emptyOption, false); - } - }; +/* global jqLiteRemove */ - $scope.$on('$destroy', function () { - // disable unknown option so that we don't do work when the whole select is being destroyed - self.renderUnknownOption = noop; - }); +var ngOptionsMinErr = minErr('ngOptions'); - // 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; +/** + * @ngdoc directive + * @name ngOptions + * @restrict A + * + * @description + * + * The `ngOptions` attribute can be used to dynamically generate a list of `` + * DOM element. + * * `disable`: The result of this expression will be used to disable the rendered ` - * - *
- * - *
- *
- *
- * singleSelect = {{data.singleSelect}} - * - *
- *
- *
- * multipleSelect = {{data.multipleSelect}}
- * - *
- * - * - * angular.module('staticSelect', []) - * .controller('ExampleController', ['$scope', function($scope) { - * $scope.data = { - * singleSelect: null, - * multipleSelect: [], - * option1: 'option-1' - * }; - * - * $scope.forceUnknownOption = function() { - * $scope.data.singleSelect = 'nonsense'; - * }; - * }]); - * - * - * - * @example - * ### Using `ngRepeat` to generate `select` options - * - * - *
- *
- * - * - *
- *
- * model = {{data.model}}
- *
- *
- * - * 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'} - * ] - * }; - * }]); - * - *
- * - * @example - * ### Using `ngValue` to bind the model to an array of objects - * - * - *
- *
- * - * - *
- *
- *
model = {{data.model | json}}

- *
- *
- * - * 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'} - * ] - * }; - * }]); - * - *
- * - * @example - * ### Using `select` with `ngOptions` and setting a default value - * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples. - * - * - * - *
- *
- * - * - *
- *
- * option = {{data.selectedOption}}
- *
- *
- * - * 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 - * }; - * }]); - * - *
- * - * @example - * ### Binding `select` to a non-string value via `ngModel` parsing / formatting - * - * - * - * - * {{ model }} - * - * - * 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; - * }); - * } - * }; - * }); - * - * - * it('should initialize to model', function() { - * expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two'); - * }); - * - * - * - */ - var selectDirective = function selectDirective() { + }; - return { - restrict: 'E', - require: ['select', '?ngModel'], - controller: SelectController, - priority: 1, - link: { - pre: selectPreLink, - post: selectPostLink - } - }; + selectCtrl.readValue = function readNgOptionsValue() { - function selectPreLink(scope, element, attr, ctrls) { + var selectedOption = options.selectValueMap[selectElement.val()]; - var selectCtrl = ctrls[0]; - var ngModelCtrl = ctrls[1]; + if (selectedOption && !selectedOption.disabled) { + selectCtrl.unselectEmptyOption(); + selectCtrl.removeUnknownOption(); + return options.getViewValueFromOption(selectedOption); + } + return null; + }; - // 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; - } + // 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(); } + ); + } - selectCtrl.ngModelCtrl = ngModelCtrl; + } else { - // 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()); - }); - }); + selectCtrl.writeValue = function writeNgOptionsMultiple(values) { + // The options might not be defined yet when ngModel tries to render + if (!options) return; - // 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; + // Only set `
- *
- * - 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'); - }); - * - *
- */ - 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 + selectElement.prepend(selectCtrl.emptyOption); - ctrl.$validators.required = function (modelValue, viewValue) { - return !attr.required || !ctrl.$isEmpty(viewValue); - }; + 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; - attr.$observe('required', function () { - ctrl.$validate(); - }); - } - }; - }; + // 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(); - /** - * @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. - * - *
- * **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. - *
- * - *
- * **Note:** This directive is also added when the plain `pattern` attribute is used, with two - * differences: - *
    - *
  1. - * `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is - * not available. - *
  2. - *
  3. - * The `ngPattern` attribute must be an expression, while the `pattern` value must be - * interpolated. - *
  4. - *
- *
- * - * @example - * - * - * - *
- *
- * - * - *
- * - *
- *
- * input valid? = {{form.input.$valid}}
- * model = {{model}} - *
- *
- *
- * - 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'); - }); - }); - * - *
- */ - 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 + '$'); - } + optionEl.on('$destroy', function() { + var needsRerender = selectCtrl.$isEmptyOptionSelected(); - if (regex && !regex.test) { - throw minErr('ngPattern')('noregexp', 'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp, regex, startingTag(elm)); - } + selectCtrl.hasEmptyOption = false; + selectCtrl.emptyOption = undefined; - regexp = regex || undefined; - ctrl.$validate(); - }); + if (needsRerender) ngModelCtrl.$render(); + }); + } + }; - 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); - }; - } - }; - }; + } else { + // remove the class, which is added automatically because we recompile the element and it + // becomes the compilation root + selectCtrl.emptyOption.removeClass('ng-scope'); + } - /** - * @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 AngularJS expression given in the - * `ngMaxlength` attribute value. - * - *
- * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two - * differences: - *
    - *
  1. - * `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint - * validation is not available. - *
  2. - *
  3. - * The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be - * interpolated. - *
  4. - *
- *
- * - * @example - * - * - * - *
- *
- * - * - *
- * - *
- *
- * input valid? = {{form.input.$valid}}
- * model = {{model}} - *
- *
- *
- * - 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'); - }); - }); - * - *
- */ - 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 AngularJS expression given in the - * `ngMinlength` attribute value. - * - *
- * **Note:** This directive is also added when the plain `minlength` attribute is used, with two - * differences: - *
    - *
  1. - * `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint - * validation is not available. - *
  2. - *
  3. - * The `ngMinlength` value must be an expression, while the `minlength` value must be - * interpolated. - *
  4. - *
- *
- * - * @example - * - * - * - *
- *
- * - * - *
- * - *
- *
- * input valid? = {{form.input.$valid}}
- * model = {{model}} - *
- *
- *
- * - 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'); - }); - * - *
- */ - 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; - }; - } - }; - }; + // We will re-render the option elements if the option values or labels change + scope.$watchCollection(ngOptions.getWatchables, updateOptions); - if (window.angular.bootstrap) { - // AngularJS is already loaded, so we can return here... - if (window.console) { - console.log('WARNING: Tried to load AngularJS 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; + function addOptionElement(option, parent) { + var optionElement = optionTemplate.cloneNode(false); + parent.appendChild(optionElement); + updateOptionElement(option, optionElement); } - }); - }]); - - jqLite(function () { - angularInit(window.document, bootstrap); - }); -})(window); - -!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend(''); -},{}],320:[function(require,module,exports){ -'use strict'; + function getAndUpdateSelectedOption(viewValue) { + var option = options.getOptionFromViewValue(viewValue); + var element = option && option.element; -require('./angular'); -module.exports = angular; + if (element && !element.selected) element.selected = true; -},{"./angular":319}],321:[function(require,module,exports){ -'use strict'; + return option; + } -var asn1 = exports; + 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; + } -asn1.bignum = require('bn.js'); + function updateOptions() { + var previousValue = options && selectCtrl.readValue(); -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'); + // 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) { -},{"./asn1/api":322,"./asn1/base":324,"./asn1/constants":328,"./asn1/decoders":330,"./asn1/encoders":333,"bn.js":367}],322:[function(require,module,exports){ -'use strict'; + 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); + } + } + } -var asn1 = require('../asn1'); -var inherits = require('inherits'); + options = ngOptions.getOptions(); -var api = exports; + var groupElementMap = {}; -api.define = function define(name, body) { - return new Entity(name, body); -}; + options.items.forEach(function addOption(option) { + var groupElement; -function Entity(name, body) { - this.name = name; - this.body = body; + if (isDefined(option.group)) { - this.decoders = {}; - this.encoders = {}; -}; + // This option is to live in a group + // See if we have already created this group + groupElement = groupElementMap[option.group]; -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); - }; + if (!groupElement) { - return new named(this); -}; + groupElement = optGroupTemplate.cloneNode(false); + listFragment.appendChild(groupElement); -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]; -}; + // Update the label on the group element + // "null" is special cased because of Safari + groupElement.label = option.group === null ? 'null' : option.group; -Entity.prototype.decode = function decode(data, enc, options) { - return this._getDecoder(enc).decode(data, options); -}; + // Store it for use later + groupElementMap[option.group] = groupElement; + } -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]; -}; + addOptionElement(option, groupElement); -Entity.prototype.encode = function encode(data, enc, /* internal */reporter) { - return this._getEncoder(enc).encode(data, reporter); -}; + } else { -},{"../asn1":321,"inherits":882,"vm":995}],323:[function(require,module,exports){ -'use strict'; + // This option is not in a group + addOptionElement(option, listFragment); + } + }); -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; }; + selectElement[0].appendChild(listFragment); -var inherits = require('inherits'); -var Reporter = require('../base').Reporter; -var Buffer = require('buffer').Buffer; + ngModelCtrl.$render(); -function DecoderBuffer(base, options) { - Reporter.call(this, options); - if (!Buffer.isBuffer(base)) { - this.error('Input not Buffer'); - return; + // 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(); + } + } + } } - 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; + 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 + } + }; +}]; - this.offset = save.offset; - Reporter.prototype.restore.call(this, save.reporter); +/** + * @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 AngularJS 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 AngularJS'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 + * AngularJS 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 + * + * + *``` + * + * 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, AngularJS will replace `{}` with + * `{{personCount}}`. The closed braces `{}` is a placeholder + * for {{numberExpression}}. + * + * 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 + * + * + * ``` + * + * 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 AngularJS 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 + + + +
+
+
+
+ + + Without Offset: + +
+ + + With Offset(2): + + +
+
+ + 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')); - return res; -}; + expect(withoutOffset.getText()).toEqual('1 person is viewing.'); + expect(withOffset.getText()).toEqual('Igor is viewing.'); -DecoderBuffer.prototype.isEmpty = function isEmpty() { - return this.offset === this.length; -}; + countInput.clear(); + countInput.sendKeys('0'); -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'); -}; + expect(withoutOffset.getText()).toEqual('Nobody is viewing.'); + expect(withOffset.getText()).toEqual('Nobody is viewing.'); -DecoderBuffer.prototype.skip = function skip(bytes, fail) { - if (!(this.offset + bytes <= this.length)) return this.error(fail || 'DecoderBuffer overrun'); + countInput.clear(); + countInput.sendKeys('2'); - var res = new DecoderBuffer(this.base); + expect(withoutOffset.getText()).toEqual('2 people are viewing.'); + expect(withOffset.getText()).toEqual('Igor and Misko are viewing.'); - // Share reporter state - res._reporterState = this._reporterState; + countInput.clear(); + countInput.sendKeys('3'); - res.offset = this.offset; - res.length = this.offset + bytes; - this.offset += bytes; - return res; -}; + expect(withoutOffset.getText()).toEqual('3 people are viewing.'); + expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.'); -DecoderBuffer.prototype.raw = function raw(save) { - return this.base.slice(save ? save.offset : this.offset, this.length); -}; + countInput.clear(); + countInput.sendKeys('4'); -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; + 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.'); + }); + +
+ */ +var ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale, $interpolate, $log) { + var BRACE = /{}/g, + IS_WHEN = /^when(Minus)?(.+)$/; -EncoderBuffer.prototype.join = function join(out, offset) { - if (!out) out = new Buffer(this.length); - if (!offset) offset = 0; + return { + link: function(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; - if (this.length === 0) return out; + 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)); - 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; -}; + scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) { + var count = parseFloat(newVal); + var countIsNaN = isNumberNaN(count); -},{"../base":324,"buffer":401,"inherits":882}],324:[function(require,module,exports){ -'use strict'; + 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); + } -var base = exports; + // 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; + } + }); -base.Reporter = require('./reporter').Reporter; -base.DecoderBuffer = require('./buffer').DecoderBuffer; -base.EncoderBuffer = require('./buffer').EncoderBuffer; -base.Node = require('./node'); + function updateElementText(newText) { + element.text(newText || ''); + } + } + }; +}]; -},{"./buffer":323,"./node":325,"./reporter":326}],325:[function(require,module,exports){ -'use strict'; +/** + * @ngdoc directive + * @name ngRef + * @restrict A + * + * @description + * The `ngRef` attribute tells AngularJS to assign the controller of a component (or a directive) + * to the given property in the current scope. It is also possible to add the jqlite-wrapped DOM + * element to the scope. + * + * If the element with `ngRef` is destroyed `null` is assigned to the property. + * + * Note that if you want to assign from a child into the parent scope, you must initialize the + * target property on the parent scope, otherwise `ngRef` will assign on the child scope. + * This commonly happens when assigning elements or components wrapped in {@link ngIf} or + * {@link ngRepeat}. See the second example below. + * + * + * @element ANY + * @param {string} ngRef property name - A valid AngularJS expression identifier to which the + * controller or jqlite-wrapped DOM element will be bound. + * @param {string=} ngRefRead read value - The name of a directive (or component) on this element, + * or the special string `$element`. If a name is provided, `ngRef` will + * assign the matching controller. If `$element` is provided, the element + * itself is assigned (even if a controller is available). + * + * + * @example + * ### Simple toggle + * This example shows how the controller of the component toggle + * is reused in the template through the scope to use its logic. + * + * + * + * + *
+ * You are using a component in the same template to show it. + *
+ *
+ * + * angular.module('myApp', []) + * .component('myToggle', { + * controller: function ToggleController() { + * var opened = false; + * this.isOpen = function() { return opened; }; + * this.toggle = function() { opened = !opened; }; + * } + * }); + * + * + * it('should publish the toggle into the scope', function() { + * var toggle = element(by.buttonText('Toggle')); + * expect(toggle.evaluate('myToggle.isOpen()')).toEqual(false); + * toggle.click(); + * expect(toggle.evaluate('myToggle.isOpen()')).toEqual(true); + * }); + * + *
+ * + * @example + * ### ngRef inside scopes + * This example shows how `ngRef` works with child scopes. The `ngRepeat`-ed `myWrapper` components + * are assigned to the scope of `myRoot`, because the `toggles` property has been initialized. + * The repeated `myToggle` components are published to the child scopes created by `ngRepeat`. + * `ngIf` behaves similarly - the assignment of `myToggle` happens in the `ngIf` child scope, + * because the target property has not been initialized on the `myRoot` component controller. + * + * + * + * + * + * + * angular.module('myApp', []) + * .component('myRoot', { + * templateUrl: 'root.html', + * controller: function() { + * this.wrappers = []; // initialize the array so that the wrappers are assigned into the parent scope + * } + * }) + * .component('myToggle', { + * template: 'myToggle', + * transclude: true, + * controller: function ToggleController() { + * var opened = false; + * this.isOpen = function() { return opened; }; + * this.toggle = function() { opened = !opened; }; + * } + * }) + * .component('myWrapper', { + * transclude: true, + * template: 'myWrapper' + + * '
ngRepeatToggle.isOpen(): {{$ctrl.ngRepeatToggle.isOpen() | json}}
' + + * '' + * }); + *
+ * + * myRoot + * Outer Toggle + *
outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}
+ *
wrappers assigned to root
+ *
+ * wrapper.ngRepeatToggle.isOpen(): {{wrapper.ngRepeatToggle.isOpen() | json}} + *
+ * + *
    + *
  • + * ngRepeat + *
    outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}
    + * ngRepeat Toggle {{$index + 1}} + *
  • + *
+ * + *
ngIfToggle.isOpen(): {{ngIfToggle.isOpen()}} // This is always undefined because it's + * assigned to the child scope created by ngIf. + *
+ *
+ ngIf + * ngIf Toggle + *
ngIfToggle.isOpen(): {{ngIfToggle.isOpen() | json}}
+ *
outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}
+ *
+ * + * + * ul { + * list-style: none; + * padding-left: 0; + * } + * + * li[ng-repeat] { + * background: lightgreen; + * padding: 8px; + * margin: 8px; + * } + * + * [ng-if] { + * background: lightgrey; + * padding: 8px; + * } + * + * my-root { + * background: lightgoldenrodyellow; + * padding: 8px; + * display: block; + * } + * + * my-wrapper { + * background: lightsalmon; + * padding: 8px; + * display: block; + * } + * + * my-toggle { + * background: lightblue; + * padding: 8px; + * display: block; + * } + * + * + * var OuterToggle = function() { + * this.toggle = function() { + * element(by.buttonText('Outer Toggle')).click(); + * }; + * this.isOpen = function() { + * return element.all(by.binding('outerToggle.isOpen()')).first().getText(); + * }; + * }; + * var NgRepeatToggle = function(i) { + * var parent = element.all(by.repeater('(index, value) in [1,2,3]')).get(i - 1); + * this.toggle = function() { + * element(by.buttonText('ngRepeat Toggle ' + i)).click(); + * }; + * this.isOpen = function() { + * return parent.element(by.binding('ngRepeatToggle.isOpen() | json')).getText(); + * }; + * this.isOuterOpen = function() { + * return parent.element(by.binding('outerToggle.isOpen() | json')).getText(); + * }; + * }; + * var NgRepeatToggles = function() { + * var toggles = [1,2,3].map(function(i) { return new NgRepeatToggle(i); }); + * this.forEach = function(fn) { + * toggles.forEach(fn); + * }; + * this.isOuterOpen = function(i) { + * return toggles[i - 1].isOuterOpen(); + * }; + * }; + * var NgIfToggle = function() { + * var parent = element(by.css('[ng-if]')); + * this.toggle = function() { + * element(by.buttonText('ngIf Toggle')).click(); + * }; + * this.isOpen = function() { + * return by.binding('ngIfToggle.isOpen() | json').getText(); + * }; + * this.isOuterOpen = function() { + * return parent.element(by.binding('outerToggle.isOpen() | json')).getText(); + * }; + * }; + * + * it('should toggle the outer toggle', function() { + * var outerToggle = new OuterToggle(); + * expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): false'); + * outerToggle.toggle(); + * expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): true'); + * }); + * + * it('should toggle all outer toggles', function() { + * var outerToggle = new OuterToggle(); + * var repeatToggles = new NgRepeatToggles(); + * var ifToggle = new NgIfToggle(); + * expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): false'); + * expect(repeatToggles.isOuterOpen(1)).toEqual('outerToggle.isOpen(): false'); + * expect(repeatToggles.isOuterOpen(2)).toEqual('outerToggle.isOpen(): false'); + * expect(repeatToggles.isOuterOpen(3)).toEqual('outerToggle.isOpen(): false'); + * expect(ifToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false'); + * outerToggle.toggle(); + * expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): true'); + * expect(repeatToggles.isOuterOpen(1)).toEqual('outerToggle.isOpen(): true'); + * expect(repeatToggles.isOuterOpen(2)).toEqual('outerToggle.isOpen(): true'); + * expect(repeatToggles.isOuterOpen(3)).toEqual('outerToggle.isOpen(): true'); + * expect(ifToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): true'); + * }); + * + * it('should toggle each repeat iteration separately', function() { + * var repeatToggles = new NgRepeatToggles(); + * + * repeatToggles.forEach(function(repeatToggle) { + * expect(repeatToggle.isOpen()).toEqual('ngRepeatToggle.isOpen(): false'); + * expect(repeatToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false'); + * repeatToggle.toggle(); + * expect(repeatToggle.isOpen()).toEqual('ngRepeatToggle.isOpen(): true'); + * expect(repeatToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false'); + * }); + * }); + * + * + * + */ -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 ngRefMinErr = minErr('ngRef'); -var Reporter = require('../base').Reporter; -var EncoderBuffer = require('../base').EncoderBuffer; -var DecoderBuffer = require('../base').DecoderBuffer; -var assert = require('minimalistic-assert'); +var ngRefDirective = ['$parse', function($parse) { + return { + priority: -1, // Needed for compatibility with element transclusion on the same element + restrict: 'A', + compile: function(tElement, tAttrs) { + // Get the expected controller name, converts into "someThing" + var controllerName = directiveNormalize(nodeName_(tElement)); + + // Get the expression for value binding + var getter = $parse(tAttrs.ngRef); + var setter = getter.assign || function() { + throw ngRefMinErr('nonassign', 'Expression in ngRef="{0}" is non-assignable!', tAttrs.ngRef); + }; -// 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']; + return function(scope, element, attrs) { + var refValue; -// Public methods list -var methods = ['key', 'obj', 'use', 'optional', 'explicit', 'implicit', 'def', 'choice', 'any', 'contains'].concat(tags); + if (attrs.hasOwnProperty('ngRefRead')) { + if (attrs.ngRefRead === '$element') { + refValue = element; + } else { + refValue = element.data('$' + attrs.ngRefRead + 'Controller'); + + if (!refValue) { + throw ngRefMinErr( + 'noctrl', + 'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"', + attrs.ngRefRead, + tAttrs.ngRef + ); + } + } + } else { + refValue = element.data('$' + controllerName + 'Controller'); + } -// Overrided methods list -var overrided = ['_peekTag', '_decodeTag', '_use', '_decodeStr', '_decodeObjid', '_decodeTime', '_decodeNull', '_decodeInt', '_decodeBool', '_decodeList', '_encodeComposite', '_encodeStr', '_encodeObjid', '_encodeTime', '_encodeNull', '_encodeInt', '_encodeBool']; + refValue = refValue || element; -function Node(enc, parent) { - var state = {}; - this._baseState = state; + setter(scope, refValue); - state.enc = enc; + // when the element is removed, remove it (nullify it) + element.on('$destroy', function() { + // only remove it if value has not changed, + // because animations (and other procedures) may duplicate elements + if (getter(scope) === refValue) { + setter(scope, null); + } + }); + }; + } + }; +}]; - state.parent = parent || null; - state.children = null; +/* exported ngRepeatDirective */ - // 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; +/** + * @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). | + * + *
+ * Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}. + * This may be useful when, for instance, nesting ngRepeats. + *
+ * + * + * ## Iterating over object properties + * + * It is possible to get `ngRepeat` to iterate over the properties of an object using the following + * syntax: + * + * ```js + *
...
+ * ``` + * + * 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 AngularJS 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 AngularJS 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. + * + * All different types of tracking functions, their syntax, and their support for duplicate + * items in collections can be found in the + * {@link ngRepeat#ngRepeat-arguments ngRepeat expression description}. + * + *
+ * **Best Practice:** If you are working with objects that have a unique identifier property, you + * should track by this identifier instead of the object instance, + * e.g. `item in items track by item.id`. + * 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. + *
+ * + * ### Effects of DOM Element re-use + * + * When DOM elements are re-used, ngRepeat updates the scope for the element, which will + * automatically update any active bindings on the template. However, other + * functionality will not be updated, because the element is not re-created: + * + * - Directives are not re-compiled + * - {@link guide/expression#one-time-binding one-time expressions} on the repeated template are not + * updated if they have stabilized. + * + * The above affects all kinds of element re-use due to tracking, but may be especially visible + * when tracking by `$index` due to the way ngRepeat re-uses elements. + * + * The following example shows the effects of different actions with tracking: + + + + angular.module('ngRepeat', ['ngAnimate']).controller('repeatController', function($scope) { + var friends = [ + {name:'John', age:25}, + {name:'Mary', age:40}, + {name:'Peter', age:85} + ]; + + $scope.removeFirst = function() { + $scope.friends.shift(); + }; - // Should create new instance on each method - if (!state.parent) { - state.children = []; - this._wrap(); - } -} -module.exports = Node; + $scope.updateAge = function() { + $scope.friends.forEach(function(el) { + el.age = el.age + 5; + }); + }; -var stateProps = ['enc', 'parent', 'children', 'tag', 'args', 'reverseArgs', 'choice', 'optional', 'any', 'obj', 'use', 'alteredUse', 'key', 'default', 'explicit', 'implicit', 'contains']; + $scope.copy = function() { + $scope.friends = angular.copy($scope.friends); + }; -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; -}; + $scope.reset = function() { + $scope.friends = angular.copy(friends); + }; -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); -}; + $scope.reset(); + }); + + +
+
    +
  1. When you click "Update Age", only the first list updates the age, because all others have + a one-time binding on the age property. If you then click "Copy", the current friend list + is copied, and now the second list updates the age, because the identity of the collection items + has changed and the list must be re-rendered. The 3rd and 4th list stay the same, because all the + items are already known according to their tracking functions. +
  2. +
  3. When you click "Remove First", the 4th list has the wrong age on both remaining items. This is + due to tracking by $index: when the first collection item is removed, ngRepeat reuses the first + DOM element for the new first collection item, and so on. Since the age property is one-time + bound, the value remains from the collection item which was previously at this index. +
  4. +
+ + + + +
+
+ track by $id(friend) (default): +
    +
  • + {{friend.name}} is {{friend.age}} years old. +
  • +
+ track by $id(friend) (default), with age one-time binding: +
    +
  • + {{friend.name}} is {{::friend.age}} years old. +
  • +
+ track by friend.name, with age one-time binding: +
    +
  • + {{friend.name}} is {{::friend.age}} years old. +
  • +
+ track by $index, with age one-time binding: +
    +
  • + {{friend.name}} is {{::friend.age}} years old. +
  • +
+
+
+ + .example-animate-container { + background:white; + border:1px solid black; + list-style:none; + margin:0; + padding:0 10px; + } -Node.prototype._init = function init(body) { - var state = this._baseState; + .animate-repeat { + line-height:30px; + list-style:none; + box-sizing:border-box; + } - assert(state.parent === null); - body.call(this); + .animate-repeat.ng-move, + .animate-repeat.ng-enter, + .animate-repeat.ng-leave { + transition:all linear 0.5s; + } - // 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'); -}; + .animate-repeat.ng-leave.ng-leave-active, + .animate-repeat.ng-move, + .animate-repeat.ng-enter { + opacity:0; + max-height:0; + } -Node.prototype._useArgs = function useArgs(args) { - var state = this._baseState; + .animate-repeat.ng-leave, + .animate-repeat.ng-move.ng-move-active, + .animate-repeat.ng-enter.ng-enter-active { + opacity:1; + max-height:30px; + } + +
- // 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); + * + * ## 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 {{ item }} + *
+ *
+ * Body {{ item }} + *
+ *
+ * Footer {{ item }} + *
+ * ``` + * + * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to: + * ```html + *
+ * Header A + *
+ *
+ * Body A + *
+ *
+ * Footer A + *
+ *
+ * Header B + *
+ *
+ * Body B + *
+ *
+ * Footer B + *
+ * ``` + * + * 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.) + * + * *Default tracking: $id()*: `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 collection. + * + * The built-in `$id()` function can be used to assign a unique + * `$$hashKey` property to each item in the collection. This property is then used as a key to associated DOM elements + * with the corresponding item in the collection by identity. Moving the same object would move + * the DOM element in the same way in the DOM. + * Note that the default id function does not support duplicate primitive values (`number`, `string`), + * but supports duplictae non-primitive values (`object`) that are *equal* in shape. + * + * *Custom Expression*: It is possible to use any AngularJS expression to compute the tracking + * id, for example with a function, or using a property on the collection items. + * `item in items track by item.id` is a typical pattern when the items have a unique identifier, + * e.g. database id. In this case the object identity does not matter. Two objects are considered + * equivalent as long as their `id` property is same. + * Tracking by unique identifier is the most performant way and should be used whenever possible. + * + * *$index*: This special property tracks the collection items by their index, and + * re-uses the DOM elements that match that index, e.g. `item in items track by $index`. This can + * be used for a performance improvement if no unique identfier is available and the identity of + * the collection items cannot be easily computed. It also allows duplicates. + * + *
+ * Note: Re-using DOM elements can have unforeseen effects. Read the + * {@link ngRepeat#tracking-and-duplicates section on tracking and duplicates} for + * more info. + *
+ * + *
+ * Note: the `track by` expression must come last - after any filters, and the alias expression: + * `item in items | filter:searchText as results track by item.id` + *
+ * + * * `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 after all filters (and not as operator, inside an expression). + * + * For example: `item in items | filter : x | orderBy : order | limitTo : limit as results track by item.id` . + * + * @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. + + +
+ I have {{friends.length}} friends. They are: + +
    +
  • + [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old. +
  • +
  • + No results found... +
  • +
+
+
+ + 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'} + ]; + }); + + + .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; + } + + + 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:"); + }); - if (children.length !== 0) { - assert(state.children === null); - state.children = children; + it('should update repeater when filter predicate changes', function() { + expect(friends.count()).toBe(10); - // 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; + element(by.model('q')).sendKeys('ma'); - var res = {}; - Object.keys(arg).forEach(function (key) { - if (key == (key | 0)) key |= 0; - var value = arg[key]; - res[value] = key; - }); - return res; - }); - } -}; + 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.'); + }); + +
+ */ +var ngRepeatDirective = ['$parse', '$animate', '$compile', function($parse, $animate, $compile) { + var NG_REMOVED = '$$NG_REMOVED'; + var ngRepeatMinErr = minErr('ngRepeat'); + + var updateScope = function(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); + }; -// -// Overrided methods -// + var getBlockStart = function(block) { + return block.clone[0]; + }; -overrided.forEach(function (method) { - Node.prototype[method] = function _overrided() { - var state = this._baseState; - throw new Error(method + ' not implemented for encoding: ' + state.enc); + var getBlockEnd = function(block) { + return block.clone[block.clone.length - 1]; }; -}); -// -// Public methods -// -tags.forEach(function (tag) { - Node.prototype[tag] = function _tagMethod() { - var state = this._baseState; - var args = Array.prototype.slice.call(arguments); + 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); - assert(state.tag === null); - state.tag = tag; + 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*$/); - this._useArgs(args); + if (!match) { + throw ngRepeatMinErr('iexp', 'Expected expression in form of \'_item_ in _collection_[ track by _id_]\' but got \'{0}\'.', + expression); + } - return this; - }; -}); + var lhs = match[1]; + var rhs = match[2]; + var aliasAs = match[3]; + var trackByExp = match[4]; -Node.prototype.use = function use(item) { - assert(item); - var state = this._baseState; + match = lhs.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/); - assert(state.use === null); - state.use = item; + 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]; - return this; -}; + 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); + } -Node.prototype.optional = function optional() { - var state = this._baseState; + var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn; + var hashFnLocals = {$id: hashKey}; - state.optional = true; + if (trackByExp) { + trackByExpGetter = $parse(trackByExp); + } else { + trackByIdArrayFn = function(key, value) { + return hashKey(value); + }; + trackByIdObjFn = function(key) { + return key; + }; + } - return this; -}; + return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) { -Node.prototype.def = function def(val) { - var state = this._baseState; + if (trackByExpGetter) { + trackByIdExpFn = function(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); + }; + } - assert(state['default'] === null); - state['default'] = val; - state.optional = true; + // 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; + } - return this; -}; + 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); + } + } + } -Node.prototype.explicit = function explicit(num) { - var state = this._baseState; + 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; + } + } - assert(state.explicit === null && state.implicit === null); - state.explicit = num; + // 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(); + } - return this; -}; + // 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]; -Node.prototype.implicit = function implicit(num) { - var state = this._baseState; + if (block.scope) { + // if we have already seen this object, then we need to reuse the + // associated scope/element - assert(state.explicit === null && state.implicit === null); - state.implicit = num; + nextNode = previousNode; - return this; -}; + // skip nodes that are already pending removal via leave animation + do { + nextNode = nextNode.nextSibling; + } while (nextNode && nextNode[NG_REMOVED]); -Node.prototype.obj = function obj() { - var state = this._baseState; - var args = Array.prototype.slice.call(arguments); + 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; + }); + }; + } + }; +}]; - state.obj = true; +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 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) { + * /* These are just alternative ways of hiding an element */ + * 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 + * /* A working example can be found at the bottom of this page. */ + * .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: + * + + + Show:
+
+ I show up when your checkbox is checked. +
+
+ + .animate-show-hide.ng-hide { + opacity: 0; + } - if (args.length !== 0) this._useArgs(args); + .animate-show-hide.ng-hide-add, + .animate-show-hide.ng-hide-remove { + transition: all linear 0.5s; + } - return this; -}; + .check-element { + border: 1px solid black; + opacity: 1; + padding: 10px; + } + + + it('should check ngShow', function() { + var checkbox = element(by.model('checked')); + var checkElem = element(by.css('.check-element')); -Node.prototype.key = function key(newKey) { - var state = this._baseState; + expect(checkElem.isDisplayed()).toBe(false); + checkbox.click(); + expect(checkElem.isDisplayed()).toBe(true); + }); + +
+ * + *
+ * @example + * A more complex example, featuring different show/hide animations: + * + + + Show:
+
+ I show up when your checkbox is checked. +
+
+ + body { + overflow: hidden; + perspective: 1000px; + } - assert(state.key === null); - state.key = newKey; + .funky-show-hide.ng-hide-add { + transform: rotateZ(0); + transform-origin: right; + transition: all 0.5s ease-in-out; + } - return this; -}; + .funky-show-hide.ng-hide-add.ng-hide-add-active { + transform: rotateZ(-135deg); + } -Node.prototype.any = function any() { - var state = this._baseState; + .funky-show-hide.ng-hide-remove { + transform: rotateY(90deg); + transform-origin: left; + transition: all 0.5s ease; + } - state.any = true; + .funky-show-hide.ng-hide-remove.ng-hide-remove-active { + transform: rotateY(0); + } - return this; -}; + .check-element { + border: 1px solid black; + opacity: 1; + padding: 10px; + } + + + it('should check ngShow', function() { + var checkbox = element(by.model('checked')); + var checkElem = element(by.css('.check-element')); -Node.prototype.choice = function choice(obj) { - var state = this._baseState; + expect(checkElem.isDisplayed()).toBe(false); + checkbox.click(); + expect(checkElem.isDisplayed()).toBe(true); + }); + +
+ * + * @knownIssue + * + * ### Flickering when using ngShow to toggle between elements + * + * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can + * happen that both the element to show and the element to hide are visible for a very short time. + * + * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations + * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than + * other browsers. + * + * There are several way to mitigate this problem: + * + * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}. + * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}. + * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements. + * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}. + * - Define an animation on the affected elements. + */ +var ngShowDirective = ['$animate', function($animate) { + return { + restrict: 'A', + multiElement: true, + link: function(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 + }); + }); + } + }; +}]; - assert(state.choice === null); - state.choice = obj; - this._useArgs(Object.keys(obj).map(function (key) { - return obj[key]; - })); - return this; -}; +/** + * @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 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) { + * /* These are just alternative ways of hiding an element */ + * 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 + * /* A working example can be found at the bottom of this page. */ + * .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: + * + + + Hide:
+
+ I hide when your checkbox is checked. +
+
+ + .animate-show-hide.ng-hide { + opacity: 0; + } -Node.prototype.contains = function contains(item) { - var state = this._baseState; + .animate-show-hide.ng-hide-add, + .animate-show-hide.ng-hide-remove { + transition: all linear 0.5s; + } - assert(state.use === null); - state.contains = item; + .check-element { + border: 1px solid black; + opacity: 1; + padding: 10px; + } + + + it('should check ngHide', function() { + var checkbox = element(by.model('checked')); + var checkElem = element(by.css('.check-element')); - return this; -}; + expect(checkElem.isDisplayed()).toBe(true); + checkbox.click(); + expect(checkElem.isDisplayed()).toBe(false); + }); + +
+ * + *
+ * @example + * A more complex example, featuring different show/hide animations: + * + + + Hide:
+
+ I hide when your checkbox is checked. +
+
+ + body { + overflow: hidden; + perspective: 1000px; + } -// -// Decoding -// + .funky-show-hide.ng-hide-add { + transform: rotateZ(0); + transform-origin: right; + transition: all 0.5s ease-in-out; + } -Node.prototype._decode = function decode(input, options) { - var state = this._baseState; + .funky-show-hide.ng-hide-add.ng-hide-add-active { + transform: rotateZ(-135deg); + } - // Decode root node - if (state.parent === null) return input.wrapResult(state.children[0]._decode(input, options)); + .funky-show-hide.ng-hide-remove { + transform: rotateY(90deg); + transform-origin: left; + transition: all 0.5s ease; + } - var result = state['default']; - var present = true; + .funky-show-hide.ng-hide-remove.ng-hide-remove-active { + transform: rotateY(0); + } - var prevKey = null; - if (state.key !== null) prevKey = input.enterKey(state.key); + .check-element { + border: 1px solid black; + opacity: 1; + padding: 10px; + } + + + it('should check ngHide', function() { + var checkbox = element(by.model('checked')); + var checkElem = element(by.css('.check-element')); - // 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; + expect(checkElem.isDisplayed()).toBe(true); + checkbox.click(); + expect(checkElem.isDisplayed()).toBe(false); + }); + +
+ * + * @knownIssue + * + * ### Flickering when using ngHide to toggle between elements + * + * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can + * happen that both the element to show and the element to hide are visible for a very short time. + * + * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations + * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than + * other browsers. + * + * There are several way to mitigate this problem: + * + * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}. + * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}. + * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements. + * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}. + * - Define an animation on the affected elements. + */ +var ngHideDirective = ['$animate', function($animate) { + return { + restrict: 'A', + multiElement: true, + link: function(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 + + + + + +
+ Sample Text +
myStyle={{myStyle}}
+
+ + span { + color: black; + } + + + 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)'); + }); + +
+ */ +var ngStyleDirective = ngDirective(function(scope, element, attr) { + scope.$watchCollection(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) { + if (oldStyles && (newStyles !== oldStyles)) { + forEach(oldStyles, function(val, style) { element.css(style, '');}); + } + if (newStyles) element.css(newStyles); + }); +}); + +/** + * @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. + * + *
+ * 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`. + *
+ + * @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 + * + * ``` + * + * ... + * ... + * ... + * + * ``` + * + * + * @scope + * @priority 1200 + * @param {*} ngSwitch|on expression to match against ng-switch-when. + * 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 + + +
+ + selection={{selection}} +
+
+
Settings Div
+
Home Span
+
default
+
+
+
+ + angular.module('switchExample', ['ngAnimate']) + .controller('ExampleController', ['$scope', function($scope) { + $scope.items = ['settings', 'home', 'options', 'other']; + $scope.selection = $scope.items[0]; + }]); + + + .animate-switch-container { + position:relative; + background:white; + border:1px solid black; + height:40px; + overflow:hidden; + } - 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; + .animate-switch { + padding:10px; } - input.restore(save); - } else { - present = this._peekTag(input, tag, state.any); - if (input.isError(present)) return present; - } - } + .animate-switch.ng-animate { + transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; - // Push object on stack - var prevObj; - if (state.obj && present) prevObj = input.enterObject(); + position:absolute; + top:0; + left:0; + right:0; + bottom:0; + } - if (present) { - // Unwrap explicit values - if (state.explicit !== null) { - var explicit = this._decodeTag(input, state.explicit); - if (input.isError(explicit)) return explicit; - input = explicit; - } + .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; + } + + + var switchElem = element(by.css('[ng-switch]')); + var select = element(by.model('selection')); - var start = input.offset; + 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/); + }); + +
+ */ +var ngSwitchDirective = ['$animate', '$compile', function($animate, $compile) { + return { + require: 'ngSwitch', - // 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; + // asks for $scope to fool the BC controller module + controller: ['$scope', function NgSwitchController() { + this.cases = {}; + }], + link: function(scope, element, attr, ngSwitchController) { + var watchExpr = attr.ngSwitch || attr.on, + selectedTranscludes = [], + selectedElements = [], + previousLeaveAnimations = [], + selectedScopes = []; + + var spliceFactory = function(array, index) { + return function(response) { + if (response !== false) array.splice(index, 1); + }; + }; - if (state.any) result = input.raw(save);else input = body; - } + scope.$watch(watchExpr, function ngSwitchWatchAction(value) { + var i, ii; - if (options && options.track && state.tag !== null) options.track(input.path(), start, input.length, 'tagged'); + // Start with the last, in case the array is modified during the loop + while (previousLeaveAnimations.length) { + $animate.cancel(previousLeaveAnimations.pop()); + } - if (options && options.track && state.tag !== null) options.track(input.path(), input.offset, input.length, 'content'); + 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)); + } - // 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); + selectedElements.length = 0; + selectedScopes.length = 0; - if (input.isError(result)) return result; + 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 }; - // 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); + selectedElements.push(block); + $animate.enter(caseElement, anchor.parent(), anchor); + }); + }); + } }); } + }; +}]; - // 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); +var ngSwitchWhenDirective = ngDirective({ + transclude: 'element', + priority: 1200, + require: '^ngSwitch', + multiElement: true, + link: function(scope, element, attrs, ctrl, $transclude) { - return result; -}; + var cases = attrs.ngSwitchWhen.split(attrs.ngSwitchWhenSeparator).sort().filter( + // Filter duplicate cases + function(element, index, array) { return array[index - 1] !== element; } + ); -Node.prototype._decodeGeneric = function decodeGeneric(tag, input, options) { - var state = this._baseState; + forEach(cases, function(whenCase) { + ctrl.cases['!' + whenCase] = (ctrl.cases['!' + whenCase] || []); + ctrl.cases['!' + whenCase].push({ transclude: $transclude, element: element }); + }); + } +}); - 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); +var ngSwitchDefaultDirective = ngDirective({ + transclude: 'element', + priority: 1200, + require: '^ngSwitch', + multiElement: true, + link: function(scope, element, attr, ctrl, $transclude) { + ctrl.cases['?'] = (ctrl.cases['?'] || []); + ctrl.cases['?'].push({ transclude: $transclude, element: element }); + } +}); - if (state.use !== null) { - return this._getUse(state.use, input._reporterState.obj)._decode(input, options); - } else { - return input.error('unknown tag: ' + tag); - } -}; +/** + * @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. + * + * + * + *
+ *
+ *
+ * {{text}} + *
+ *
+ * + * 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'); + * }); + * + *
+ * + * @example + * ### Transclude fallback content + * This example shows how to use `NgTransclude` with fallback content, that + * is displayed if no transcluded content is provided. + * + * + * + * + * + * + * + * + * Button2 + * + * + * + * it('should have different transclude element content', function() { + * expect(element(by.id('fallback')).getText()).toBe('Button1'); + * expect(element(by.id('modified')).getText()).toBe('Button2'); + * }); + * + * + * + * @example + * ### Multi-slot transclusion + * This example demonstrates using multi-slot transclusion in a component directive. + * + * + * + *
+ *
+ *
+ * + * {{title}} + *

{{text}}

+ *
+ *
+ *
+ * + * angular.module('multiSlotTranscludeExample', []) + * .directive('pane', function() { + * return { + * restrict: 'E', + * transclude: { + * 'title': '?paneTitle', + * 'body': 'paneBody', + * 'footer': '?paneFooter' + * }, + * template: '
' + + * '
Fallback Title
' + + * '
' + + * '' + + * '
' + * }; + * }) + * .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...'; + * }]); + *
+ * + * 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'); + * }); + * + *
+ */ +var ngTranscludeMinErr = minErr('ngTransclude'); +var ngTranscludeDirective = ['$compile', function($compile) { + return { + restrict: 'EAC', + compile: function ngTranscludeCompile(tElement) { -Node.prototype._getUse = function _getUse(entity, obj) { + // Remove and cache any original content to act as a fallback + var fallbackLinkFn = $compile(tElement.contents()); + tElement.empty(); - 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; -}; + return function ngTranscludePostLink($scope, $element, $attrs, controller, $transclude) { -Node.prototype._decodeChoice = function decodeChoice(input, options) { - var state = this._baseState; - var result = null; - var match = false; + 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)); + } - 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 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 (!match) return input.error('Choice not matched'); + // If the slot is required and no transclusion content is provided then this call will throw an error + $transclude(ngTranscludeCloneAttachFn, null, slotName); - return result; -}; + // If the slot is optional and no transclusion content is provided then use the fallback content + if (slotName && !$transclude.isSlotFilled(slotName)) { + useFallbackContent(); + } -// -// Encoding -// + 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(); + } + } -Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) { - return new EncoderBuffer(data, this.reporter); -}; + 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); + }); + } -Node.prototype._encode = function encode(data, reporter, parent) { - var state = this._baseState; - if (state['default'] !== null && state['default'] === data) return; + 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; + } + } + } + }; + } + }; +}]; - var result = this._encodeValue(data, reporter, parent); - if (result === undefined) return; +/** + * @ngdoc directive + * @name script + * @restrict E + * + * @description + * Load the content of a ` - if (this._skipDefault(result, reporter, parent)) return; + Load inlined template +
+ + + 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/); + }); + + + */ +var scriptDirective = ['$templateCache', function($templateCache) { + return { + restrict: 'E', + terminal: true, + compile: function(element, attr) { + if (attr.type === 'text/ng-template') { + var templateUrl = attr.id, + text = element[0].text; - return result; -}; + $templateCache.put(templateUrl, text); + } + } + }; +}]; -Node.prototype._encodeValue = function encode(data, reporter, parent) { - var state = this._baseState; +/* exported selectDirective, optionDirective */ - // Decode root node - if (state.parent === null) return state.children[0]._encode(data, reporter || new Reporter()); +var noopNgModelController = { $setViewValue: noop, $render: noop }; - var result = null; +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); +} - // Set reporter to share it with a child class - this.reporter = reporter; +/** + * @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. + * + * + * + *
+ *
+ *
+ *
+ * + * Error: The current model doesn't match any option
+ * + *
+ *
+ *
+ *
+ * + * 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; + * }; + * } + * + * }; + * }); + * + *
+ * + * + * @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. + * + * + * + *
+ *
+ *
+ *
+ * Error: Please select a value
+ * + *
+ *
+ *
+ *
+ * + * 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); + * }; + * } + * }; + * }); + * + * + * it('should show the error message when the unknown option is selected', function() { - // Check if data is there - if (state.optional && data === undefined) { - if (state['default'] !== null) data = state['default'];else return; - } + var error = element(by.className('error')); - // 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); + expect(error.getText()).toBe('Error: Please select a value'); - if (child._baseState.key === null) return reporter.error('Child should have a key'); - var prevKey = reporter.enterKey(child._baseState.key); + element(by.cssContainingText('option', 'Option 1')).click(); - if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) !== 'object') return reporter.error('Child expected, but input is not object'); + expect(error.isPresent()).toBe(false); - var res = child._encode(data[child._baseState.key], reporter, data); - reporter.leaveKey(prevKey); + element(by.tagName('button')).click(); - return res; - }, this).filter(function (child) { - return child; + expect(error.getText()).toBe('Error: Please select a value'); }); - 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 SelectController = + ['$element', '$scope', /** @this */ function($element, $scope) { - var child = this.clone(); - child._baseState.implicit = null; - content = this._createEncoderBuffer(data.map(function (item) { - var state = this._baseState; + var self = this, + optionsMap = new NgMap(); - 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; - } - } + self.selectValueMap = {}; // Keys are the hashed values, values the original values - // 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 the ngModel doesn't get provided then provide a dummy noop version to prevent errors + self.ngModelCtrl = noopNgModelController; + self.multiple = false; - 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); - } - } + // 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(' + * + *
+ * + *
+ *
+ *
+ * singleSelect = {{data.singleSelect}} + * + *
+ *
+ *
+ * multipleSelect = {{data.multipleSelect}}
+ * + *
+ *
+ * + * angular.module('staticSelect', []) + * .controller('ExampleController', ['$scope', function($scope) { + * $scope.data = { + * singleSelect: null, + * multipleSelect: [], + * option1: 'option-1' + * }; + * + * $scope.forceUnknownOption = function() { + * $scope.data.singleSelect = 'nonsense'; + * }; + * }]); + * + *
+ * + * @example + * ### Using `ngRepeat` to generate `select` options + * + * + *
+ *
+ * + * + *
+ *
+ * model = {{data.model}}
+ *
+ *
+ * + * 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'} + * ] + * }; + * }]); + * + *
+ * + * @example + * ### Using `ngValue` to bind the model to an array of objects + * + * + *
+ *
+ * + * + *
+ *
+ *
model = {{data.model | json}}

+ *
+ *
+ * + * 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'} + * ] + * }; + * }]); + * + *
+ * + * @example + * ### Using `select` with `ngOptions` and setting a default value + * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples. + * + * + * + *
+ *
+ * + * + *
+ *
+ * option = {{data.selectedOption}}
+ *
+ *
+ * + * 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 + * }; + * }]); + * + *
+ * + * @example + * ### Binding `select` to a non-string value via `ngModel` parsing / formatting + * + * + * + * + * {{ model }} + * + * + * 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; + * }); + * } + * }; + * }); + * + * + * it('should initialize to model', function() { + * expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two'); + * }); + * + * + * + */ +var selectDirective = function() { -// Import DER constants -var der = asn1.constants.der; + return { + restrict: 'E', + require: ['select', '?ngModel'], + controller: SelectController, + priority: 1, + link: { + pre: selectPreLink, + post: selectPostLink + } + }; -function DERDecoder(entity) { - this.enc = 'der'; - this.name = entity.name; - this.entity = entity; + function selectPreLink(scope, element, attr, ctrls) { - // Construct base tree - this.tree = new DERNode(); - this.tree._init(entity.body); -}; -module.exports = DERDecoder; + var selectCtrl = ctrls[0]; + var ngModelCtrl = ctrls[1]; -DERDecoder.prototype.decode = function decode(data, options) { - if (!(data instanceof base.DecoderBuffer)) data = new base.DecoderBuffer(data, options); + // 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; + } - return this.tree._decode(data, options); -}; -// Tree methods + selectCtrl.ngModelCtrl = ngModelCtrl; -function DERNode(parent) { - base.Node.call(this, 'der', parent); -} -inherits(DERNode, base.Node); + // 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()); + }); + }); -DERNode.prototype._peekTag = function peekTag(buffer, tag, any) { - if (buffer.isEmpty()) return false; + // 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; - var state = buffer.save(); - var decodedTag = derDecodeTag(buffer, 'Failed to peek tag: "' + tag + '"'); - if (buffer.isError(decodedTag)) return decodedTag; + // 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; + }; - buffer.restore(state); + // 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; - return decodedTag.tag === tag || decodedTag.tagStr === tag || decodedTag.tagStr + 'of' === tag || any; -}; + // 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); + } -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 + '"'); + // 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; + }); - // Failure - if (buffer.isError(len)) return len; + // 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; + }; - 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 + '"'); + 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; - // 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; + var selectCtrl = ctrls[0]; - len = buffer.offset - state.offset; - buffer.restore(state); - return buffer.skip(len, 'Failed to match body of: "' + tag + '"'); + // 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); + }; + } }; -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; +// 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(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()); + } + } - if (tag.tagStr === 'end') break; - } -}; + 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 -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; + if (selectCtrl) { + selectCtrl.registerOption(scope, element, attr, interpolateValueFn, interpolateTextFn); + } + }; + } + }; +}]; - var res = decoder.decode(buffer, 'der', options); - if (buffer.isError(res) && possibleEnd) break; - result.push(res); - } - return result; -}; +/** + * @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 AngularJS 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 + * + * + * + *
+ *
+ * + * + *
+ * + *
+ *
+ * required error set? = {{form.input.$error.required}}
+ * model = {{model}} + *
+ *
+ *
+ * + 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'); + }); + * + *
+ */ +var requiredDirective = function() { + return { + restrict: 'A', + require: '?ngModel', + link: function(scope, elm, attr, ctrl) { + if (!ctrl) return; + attr.required = true; // force truthy in case we are on non input element -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'); + ctrl.$validators.required = function(modelValue, viewValue) { + return !attr.required || !ctrl.$isEmpty(viewValue); + }; - 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'); + attr.$observe('required', function() { + ctrl.$validate(); + }); } - 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; - } +/** + * @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. + * + *
+ * **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. + *
+ * + *
+ * **Note:** This directive is also added when the plain `pattern` attribute is used, with two + * differences: + *
    + *
  1. + * `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is + * not available. + *
  2. + *
  3. + * The `ngPattern` attribute must be an expression, while the `pattern` value must be + * interpolated. + *
  4. + *
+ *
+ * + * @example + * + * + * + *
+ *
+ * + * + *
+ * + *
+ *
+ * input valid? = {{form.input.$valid}}
+ * model = {{model}} + *
+ *
+ *
+ * + 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'); + }); + }); + * + *
+ */ +var patternDirective = function() { + return { + restrict: 'A', + require: '?ngModel', + link: function(scope, elm, attr, ctrl) { + if (!ctrl) return; - return result; -}; + var regexp, patternExp = attr.ngPattern || attr.pattern; + attr.$observe('pattern', function(regex) { + if (isString(regex) && regex.length > 0) { + regex = new RegExp('^' + regex + '$'); + } -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'); - } + if (regex && !regex.test) { + throw minErr('ngPattern')('noregexp', + 'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp, + regex, startingTag(elm)); + } - return Date.UTC(year, mon - 1, day, hour, min, sec, 0); -}; + regexp = regex || undefined; + ctrl.$validate(); + }); -DERNode.prototype._decodeNull = function decodeNull(buffer) { - return null; + 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); + }; + } + }; }; -DERNode.prototype._decodeBool = function decodeBool(buffer) { - var res = buffer.readUInt8(); - if (buffer.isError(res)) return res;else return res !== 0; +/** + * @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 AngularJS expression given in the + * `ngMaxlength` attribute value. + * + *
+ * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two + * differences: + *
    + *
  1. + * `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint + * validation is not available. + *
  2. + *
  3. + * The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be + * interpolated. + *
  4. + *
+ *
+ * + * @example + * + * + * + *
+ *
+ * + * + *
+ * + *
+ *
+ * input valid? = {{form.input.$valid}}
+ * model = {{model}} + *
+ *
+ *
+ * + 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'); + }); + }); + * + *
+ */ +var maxlengthDirective = function() { + return { + restrict: 'A', + require: '?ngModel', + link: function(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); + }; + } + }; }; -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; -}; +/** + * @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 AngularJS expression given in the + * `ngMinlength` attribute value. + * + *
+ * **Note:** This directive is also added when the plain `minlength` attribute is used, with two + * differences: + *
    + *
  1. + * `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint + * validation is not available. + *
  2. + *
  3. + * The `ngMinlength` value must be an expression, while the `minlength` value must be + * interpolated. + *
  4. + *
+ *
+ * + * @example + * + * + * + *
+ *
+ * + * + *
+ * + *
+ *
+ * input valid? = {{form.input.$valid}}
+ * model = {{model}} + *
+ *
+ *
+ * + 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'); + }); + * + *
+ */ +var minlengthDirective = function() { + return { + restrict: 'A', + require: '?ngModel', + link: function(scope, elm, attr, ctrl) { + if (!ctrl) return; -DERNode.prototype._use = function use(entity, obj) { - if (typeof entity === 'function') entity = entity(obj); - return entity._getDecoder('der').tree; + 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; + }; + } + }; }; -// 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; +if (window.angular.bootstrap) { + // AngularJS is already loaded, so we can return here... + if (window.console) { + console.log('WARNING: Tried to load AngularJS more than once.'); } - var tagStr = der.tag[tag]; - - return { - cls: cls, - primitive: primitive, - tag: tag, - tagStr: tagStr - }; + return; } -function derDecodeLen(buf, primitive, fail) { - var len = buf.readUInt8(fail); - if (buf.isError(len)) return len; +// try to bind to jquery now so that one can write jqLite(fn) +// but we will rebind on bootstrap again. +bindJQuery(); - // Indefinite form - if (!primitive && len === 0x80) return null; +publishExternalAPI(angular); - // Definite form - if ((len & 0x80) === 0) { - // Short form - return len; - } +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; +} - // Long form - var num = len & 0x7f; - if (num > 4) return buf.error('length octect is too long'); +function getVF(n, opt_precision) { + var v = opt_precision; - len = 0; - for (var i = 0; i < num; i++) { - len <<= 8; - var j = buf.readUInt8(fail); - if (buf.isError(j)) return j; - len |= j; + if (undefined === v) { + v = Math.min(getDecimals(n), 3); } - return len; + var base = Math.pow(10, v); + var f = ((n * base) | 0) % base; + return {v: v, f: f}; } -},{"../../asn1":321,"inherits":882}],330:[function(require,module,exports){ -'use strict'; - -var decoders = exports; - -decoders.der = require('./der'); -decoders.pem = require('./pem'); - -},{"./der":329,"./pem":331}],331:[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(); +$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": "-\u00a4", + "negSuf": "", + "posPre": "\u00a4", + "posSuf": "" + } + ] + }, + "id": "en-us", + "localeID": "en_US", + "pluralCat": function(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;} +}); +}]); - 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; + jqLite(function() { + angularInit(window.document, bootstrap); + }); - if (match[2] !== label) continue; +})(window); - 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); +!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend(''); +},{}],334:[function(require,module,exports){ +require('./angular'); +module.exports = angular; - var base64 = lines.slice(start + 1, end).join(''); - // Remove excessive symbols - base64.replace(/[^a-z0-9\+\/=]+/gi, ''); +},{"./angular":333}],335:[function(require,module,exports){ +var asn1 = exports; - var input = new Buffer(base64, 'base64'); - return DERDecoder.prototype.decode.call(this, input, options); -}; +asn1.bignum = require('bn.js'); -},{"./der":329,"buffer":401,"inherits":882}],332:[function(require,module,exports){ -'use strict'; +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":336,"./asn1/base":338,"./asn1/constants":342,"./asn1/decoders":344,"./asn1/encoders":347,"bn.js":381}],336:[function(require,module,exports){ +var asn1 = require('../asn1'); 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; +var api = exports; -DEREncoder.prototype.encode = function encode(data, reporter) { - return this.tree._encode(data, reporter).join(); +api.define = function define(name, body) { + return new Entity(name, body); }; -// Tree methods - -function DERNode(parent) { - base.Node.call(this, 'der', parent); -} -inherits(DERNode, base.Node); +function Entity(name, body) { + this.name = name; + this.body = body; -DERNode.prototype._encodeComposite = function encodeComposite(tag, primitive, cls, content) { - var encodedTag = encodeTag(tag, primitive, cls, this.reporter); + this.decoders = {}; + this.encoders = {}; +}; - // Short form - if (content.length < 0x80) { - var header = new Buffer(2); - header[0] = encodedTag; - header[1] = content.length; - return this._createEncoderBuffer([header, content]); +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 (entity) { + this._initNamed(entity); + }; } + inherits(named, base); + named.prototype._initNamed = function initnamed(entity) { + base.call(this, entity); + }; - // 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]); + return new named(this); }; -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'); - } +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]; }; -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; - } - } +Entity.prototype.decode = function decode(data, enc, options) { + return this._getDecoder(enc).decode(data, options); +}; - if (!Array.isArray(id)) { - return this.reporter.error('objid() should be either array or string, ' + 'got: ' + JSON.stringify(id)); - } +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]; +}; - if (!relative) { - if (id[1] >= 40) return this.reporter.error('Second objid identifier OOB'); - id.splice(0, 2, id[0] * 40 + id[1]); - } +Entity.prototype.encode = function encode(data, enc, /* internal */ reporter) { + return this._getEncoder(enc).encode(data, reporter); +}; - // 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++; - } - } +},{"../asn1":335,"inherits":896,"vm":1009}],337:[function(require,module,exports){ +var inherits = require('inherits'); +var Reporter = require('../base').Reporter; +var Buffer = require('buffer').Buffer; - 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; - } +function DecoderBuffer(base, options) { + Reporter.call(this, options); + if (!Buffer.isBuffer(base)) { + this.error('Input not Buffer'); + return; } - return this._createEncoderBuffer(objid); -}; - -function two(num) { - if (num < 10) return '0' + num;else return num; + this.base = base; + this.offset = 0; + this.length = base.length; } +inherits(DecoderBuffer, Reporter); +exports.DecoderBuffer = DecoderBuffer; -DERNode.prototype._encodeTime = function encodeTime(time, tag) { - var str; - var date = new Date(time); +DecoderBuffer.prototype.save = function save() { + return { offset: this.offset, reporter: Reporter.prototype.save.call(this) }; +}; - 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'); - } +DecoderBuffer.prototype.restore = function restore(save) { + // Return skipped data + var res = new DecoderBuffer(this.base); + res.offset = save.offset; + res.length = this.offset; - return this._encodeStr(str, 'octstr'); + this.offset = save.offset; + Reporter.prototype.restore.call(this, save.reporter); + + return res; }; -DERNode.prototype._encodeNull = function encodeNull() { - return this._createEncoderBuffer(''); +DecoderBuffer.prototype.isEmpty = function isEmpty() { + return this.offset === this.length; }; -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]; - } +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'); +} - // 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); - } +DecoderBuffer.prototype.skip = function skip(bytes, fail) { + if (!(this.offset + bytes <= this.length)) + return this.error(fail || 'DecoderBuffer overrun'); - if (Buffer.isBuffer(num)) { - var size = num.length; - if (num.length === 0) size++; + var res = new DecoderBuffer(this.base); - var out = new Buffer(size); - num.copy(out); - if (num.length === 0) out[0] = 0; - return this._createEncoderBuffer(out); - } + // Share reporter state + res._reporterState = this._reporterState; - if (num < 0x80) return this._createEncoderBuffer(num); + res.offset = this.offset; + res.length = this.offset + bytes; + this.offset += bytes; + return res; +} - if (num < 0x100) return this._createEncoderBuffer([0, num]); +DecoderBuffer.prototype.raw = function raw(save) { + return this.base.slice(save ? save.offset : this.offset, this.length); +} - 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; +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); } - if (out[0] & 0x80) { - out.unshift(0); +} +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 this._createEncoderBuffer(new Buffer(out)); + return out; }; -DERNode.prototype._encodeBool = function encodeBool(value) { - return this._createEncoderBuffer(value ? 0xff : 0); -}; +},{"../base":338,"buffer":415,"inherits":896}],338:[function(require,module,exports){ +var base = exports; -DERNode.prototype._use = function use(entity, obj) { - if (typeof entity === 'function') entity = entity(obj); - return entity._getEncoder('der').tree; -}; +base.Reporter = require('./reporter').Reporter; +base.DecoderBuffer = require('./buffer').DecoderBuffer; +base.EncoderBuffer = require('./buffer').EncoderBuffer; +base.Node = require('./node'); -DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) { - var state = this._baseState; - var i; - if (state['default'] === null) return false; +},{"./buffer":337,"./node":339,"./reporter":340}],339:[function(require,module,exports){ +var Reporter = require('../base').Reporter; +var EncoderBuffer = require('../base').EncoderBuffer; +var DecoderBuffer = require('../base').DecoderBuffer; +var assert = require('minimalistic-assert'); - var data = dataBuffer.join(); - if (state.defaultBuffer === undefined) state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join(); +// 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' +]; - if (data.length !== state.defaultBuffer.length) return false; +// Public methods list +var methods = [ + 'key', 'obj', 'use', 'optional', 'explicit', 'implicit', 'def', 'choice', + 'any', 'contains' +].concat(tags); - for (i = 0; i < data.length; i++) { - if (data[i] !== state.defaultBuffer[i]) return false; - }return true; -}; +// Overrided methods list +var overrided = [ + '_peekTag', '_decodeTag', '_use', + '_decodeStr', '_decodeObjid', '_decodeTime', + '_decodeNull', '_decodeInt', '_decodeBool', '_decodeList', -// Utility methods + '_encodeComposite', '_encodeStr', '_encodeObjid', '_encodeTime', + '_encodeNull', '_encodeInt', '_encodeBool' +]; -function encodeTag(tag, primitive, cls, reporter) { - var res; +function Node(enc, parent) { + var state = {}; + this._baseState = state; - if (tag === 'seqof') tag = 'seq';else if (tag === 'setof') tag = 'set'; + state.enc = enc; - 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); + state.parent = parent || null; + state.children = null; - if (res >= 0x1f) return reporter.error('Multi-octet tag encoding unsupported'); + // 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; - if (!primitive) res |= 0x20; + // Should create new instance on each method + if (!state.parent) { + state.children = []; + this._wrap(); + } +} +module.exports = Node; - res |= der.tagClassByName[cls || 'universal'] << 6; +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; -} +}; -},{"../../asn1":321,"buffer":401,"inherits":882}],333:[function(require,module,exports){ -'use strict'; +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); +}; -var encoders = exports; +Node.prototype._init = function init(body) { + var state = this._baseState; -encoders.der = require('./der'); -encoders.pem = require('./pem'); + assert(state.parent === null); + body.call(this); -},{"./der":332,"./pem":334}],334:[function(require,module,exports){ -'use strict'; + // 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'); +}; -var inherits = require('inherits'); +Node.prototype._useArgs = function useArgs(args) { + var state = this._baseState; -var DEREncoder = require('./der'); + // 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); -function PEMEncoder(entity) { - DEREncoder.call(this, entity); - this.enc = 'pem'; -}; -inherits(PEMEncoder, DEREncoder); -module.exports = PEMEncoder; + if (children.length !== 0) { + assert(state.children === null); + state.children = children; -PEMEncoder.prototype.encode = function encode(data, options) { - var buf = DEREncoder.prototype.encode.call(this, data); + // 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 !== 'object' || arg.constructor !== Object) + return arg; - 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'); + var res = {}; + Object.keys(arg).forEach(function(key) { + if (key == (key | 0)) + key |= 0; + var value = arg[key]; + res[value] = key; + }); + return res; + }); + } }; -},{"./der":332,"inherits":882}],335:[function(require,module,exports){ -(function (global){ -'use strict'; +// +// Overrided methods +// -// compare and isBuffer taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js -// original notice: +overrided.forEach(function(method) { + Node.prototype[method] = function _overrided() { + var state = this._baseState; + throw new Error(method + ' not implemented for encoding: ' + state.enc); + }; +}); -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ +// +// Public methods +// -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; }; +tags.forEach(function(tag) { + Node.prototype[tag] = function _tagMethod() { + var state = this._baseState; + var args = Array.prototype.slice.call(arguments); -function compare(a, b) { - if (a === b) { - return 0; - } + assert(state.tag === null); + state.tag = tag; - var x = a.length; - var y = b.length; + this._useArgs(args); - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i]; - y = b[i]; - break; - } - } + return this; + }; +}); - 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); -} +Node.prototype.use = function use(item) { + assert(item); + var state = this._baseState; -// based on node assert, original notice: + assert(state.use === null); + state.use = item; -// 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. + return this; +}; -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. +Node.prototype.optional = function optional() { + var state = this._baseState; -var assert = module.exports = ok; + state.optional = true; -// 2. The AssertionError is defined in assert. -// new assert.AssertionError({ message: message, -// actual: actual, -// expected: expected }) + return this; +}; -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; +Node.prototype.def = function def(val) { + var state = this._baseState; - // 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); - } + assert(state['default'] === null); + state['default'] = val; + state.optional = true; - this.stack = out; - } - } + return this; }; -// assert.AssertionError instanceof Error -util.inherits(assert.AssertionError, Error); +Node.prototype.explicit = function explicit(num) { + var state = this._baseState; -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); -} + assert(state.explicit === null && state.implicit === null); + state.explicit = num; -// 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. + return this; +}; -// 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. +Node.prototype.implicit = function implicit(num) { + var state = this._baseState; -function fail(actual, expected, message, operator, stackStartFunction) { - throw new assert.AssertionError({ - message: message, - actual: actual, - expected: expected, - operator: operator, - stackStartFunction: stackStartFunction - }); -} + 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); -// EXTENSION! allows for well behaved errors defined elsewhere. -assert.fail = fail; + state.obj = true; -// 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);. + if (args.length !== 0) + this._useArgs(args); -function ok(value, message) { - if (!value) fail(value, true, message, '==', assert.ok); -} -assert.ok = ok; + return this; +}; -// 5. The equality assertion tests shallow, coercive equality with -// ==. -// assert.equal(actual, expected, message_opt); +Node.prototype.key = function key(newKey) { + var state = this._baseState; -assert.equal = function equal(actual, expected, message) { - if (actual != expected) fail(actual, expected, message, '==', assert.equal); + assert(state.key === null); + state.key = newKey; + + return this; }; -// 6. The non-equality assertion tests for whether two objects are not equal -// with != assert.notEqual(actual, expected, message_opt); +Node.prototype.any = function any() { + var state = this._baseState; -assert.notEqual = function notEqual(actual, expected, message) { - if (actual == expected) { - fail(actual, expected, message, '!=', assert.notEqual); - } + state.any = true; + + return this; }; -// 7. The equivalence assertion tests a deep equality relation. -// assert.deepEqual(actual, expected, message_opt); +Node.prototype.choice = function choice(obj) { + var state = this._baseState; -assert.deepEqual = function deepEqual(actual, expected, message) { - if (!_deepEqual(actual, expected, false)) { - fail(actual, expected, message, 'deepEqual', assert.deepEqual); - } + assert(state.choice === null); + state.choice = obj; + this._useArgs(Object.keys(obj).map(function(key) { + return obj[key]; + })); + + return this; }; -assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) { - if (!_deepEqual(actual, expected, true)) { - fail(actual, expected, message, 'deepStrictEqual', assert.deepStrictEqual); - } +Node.prototype.contains = function contains(item) { + var state = this._baseState; + + assert(state.use === null); + state.contains = item; + + return this; }; -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; +// +// Decoding +// - // 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(); +Node.prototype._decode = function decode(input, options) { + var state = this._baseState; - // 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; + // Decode root node + if (state.parent === null) + return input.wrapResult(state.children[0]._decode(input, options)); - // 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; + var result = state['default']; + var present = true; - // 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 prevKey = null; + if (state.key !== null) + prevKey = input.enterKey(state.key); - var actualIndex = memos.actual.indexOf(actual); - if (actualIndex !== -1) { - if (actualIndex === memos.expected.indexOf(expected)) { - return true; + // 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; } + } - memos.actual.push(actual); - memos.expected.push(expected); + // Push object on stack + var prevObj; + if (state.obj && present) + prevObj = input.enterObject(); - return objEquiv(actual, expected, strict, memos); - } -} + if (present) { + // Unwrap explicit values + if (state.explicit !== null) { + var explicit = this._decodeTag(input, state.explicit); + if (input.isError(explicit)) + return explicit; + input = explicit; + } -function isArguments(object) { - return Object.prototype.toString.call(object) == '[object Arguments]'; -} + var start = input.offset; -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; -} + // 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; -// 8. The non-equivalence assertion tests for any deep inequality. -// assert.notDeepEqual(actual, expected, message_opt); + if (state.any) + result = input.raw(save); + else + input = body; + } -assert.notDeepEqual = function notDeepEqual(actual, expected, message) { - if (_deepEqual(actual, expected, false)) { - fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual); + 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; }; -assert.notDeepStrictEqual = notDeepStrictEqual; -function notDeepStrictEqual(actual, expected, message) { - if (_deepEqual(actual, expected, true)) { - fail(actual, expected, message, 'notDeepStrictEqual', notDeepStrictEqual); - } -} +Node.prototype._decodeGeneric = function decodeGeneric(tag, input, options) { + var state = this._baseState; -// 9. The strict equality assertion tests strict equality, as determined by ===. -// assert.strictEqual(actual, expected, message_opt); + 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); -assert.strictEqual = function strictEqual(actual, expected, message) { - if (actual !== expected) { - fail(actual, expected, message, '===', assert.strictEqual); + if (state.use !== null) { + return this._getUse(state.use, input._reporterState.obj) + ._decode(input, options); + } else { + return input.error('unknown tag: ' + tag); } }; -// 10. The strict non-equality assertion tests for strict inequality, as -// determined by !==. assert.notStrictEqual(actual, expected, message_opt); +Node.prototype._getUse = function _getUse(entity, obj) { -assert.notStrictEqual = function notStrictEqual(actual, expected, message) { - if (actual === expected) { - fail(actual, expected, message, '!==', assert.notStrictEqual); + 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; }; -function expectedException(actual, expected) { - if (!actual || !expected) { - return false; - } +Node.prototype._decodeChoice = function decodeChoice(input, options) { + var state = this._baseState; + var result = null; + var match = false; - if (Object.prototype.toString.call(expected) == '[object RegExp]') { - return expected.test(actual); - } + 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; - try { - if (actual instanceof expected) { - return true; + result = { type: key, value: value }; + match = true; + } catch (e) { + input.restore(save); + return false; } - } catch (e) { - // Ignore. The instanceof check doesn't work for arrow functions. - } + return true; + }, this); - if (Error.isPrototypeOf(expected)) { - return false; - } + if (!match) + return input.error('Choice not matched'); - return expected.call({}, actual) === true; -} + return result; +}; -function _tryBlock(block) { - var error; - try { - block(); - } catch (e) { - error = e; - } - return error; -} +// +// Encoding +// -function _throws(shouldThrow, block, expected, message) { - var actual; +Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) { + return new EncoderBuffer(data, this.reporter); +}; - if (typeof block !== 'function') { - throw new TypeError('"block" argument must be a function'); - } +Node.prototype._encode = function encode(data, reporter, parent) { + var state = this._baseState; + if (state['default'] !== null && state['default'] === data) + return; - if (typeof expected === 'string') { - message = expected; - expected = null; - } + var result = this._encodeValue(data, reporter, parent); + if (result === undefined) + return; - actual = _tryBlock(block); + if (this._skipDefault(result, reporter, parent)) + return; - message = (expected && expected.name ? ' (' + expected.name + ').' : '.') + (message ? ' ' + message : '.'); + return result; +}; - if (shouldThrow && !actual) { - fail(actual, expected, 'Missing expected exception' + message); +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; } - var userProvidedMessage = typeof message === 'string'; - var isUnwantedException = !shouldThrow && util.isError(actual); - var isUnexpectedException = !shouldThrow && actual && !expected; + // 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 (isUnwantedException && userProvidedMessage && expectedException(actual, expected) || isUnexpectedException) { - fail(actual, expected, 'Got unwanted exception' + message); + if (child._baseState.key === null) + return reporter.error('Child should have a key'); + var prevKey = reporter.enterKey(child._baseState.key); + + if (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; + } } - if (shouldThrow && actual && expected && !expectedException(actual, expected) || !shouldThrow && actual) { - throw actual; + // 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); + } } -} -// 11. Expected to throw an error: -// assert.throws(block, Error_opt, message_opt); + // Wrap in explicit + if (state.explicit !== null) + result = this._encodeComposite(state.explicit, false, 'context', result); -assert.throws = function (block, /*optional*/error, /*optional*/message) { - _throws(true, block, error, message); + return result; }; -// EXTENSION! This is annoying to write outside this module. -assert.doesNotThrow = function (block, /*optional*/error, /*optional*/message) { - _throws(false, block, error, message); +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); }; -assert.ifError = function (err) { - if (err) throw err; +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); }; -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) { - if (hasOwn.call(obj, key)) keys.push(key); - } - return keys; +Node.prototype._isNumstr = function isNumstr(str) { + return /^[0-9 ]*$/.test(str); }; -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"util/":338}],336:[function(require,module,exports){ -arguments[4][247][0].apply(exports,arguments) -},{"dup":247}],337:[function(require,module,exports){ -'use strict'; +Node.prototype._isPrintstr = function isPrintstr(str) { + return /^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(str); +}; -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; }; +},{"../base":338,"minimalistic-assert":912}],340:[function(require,module,exports){ +var inherits = require('inherits'); -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'; +function Reporter(options) { + this._reporterState = { + obj: null, + path: [], + options: options || {}, + errors: [] + }; +} +exports.Reporter = Reporter; + +Reporter.prototype.isError = function isError(obj) { + return obj instanceof ReporterError; }; -},{}],338:[function(require,module,exports){ -(function (process,global){ -'use strict'; +Reporter.prototype.save = function save() { + var state = this._reporterState; -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; }; + return { obj: state.obj, pathLen: state.path.length }; +}; -// 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. +Reporter.prototype.restore = function restore(data) { + var state = this._reporterState; -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(' '); - } + state.obj = data.obj; + state.path = state.path.slice(0, data.pathLen); +}; - 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; +Reporter.prototype.enterKey = function enterKey(key) { + return this._reporterState.path.push(key); }; -// 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); - }; - } +Reporter.prototype.exitKey = function exitKey(index) { + var state = this._reporterState; - if (process.noDeprecation === true) { - return fn; - } + state.path = state.path.slice(0, index - 1); +}; - 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); - } +Reporter.prototype.leaveKey = function leaveKey(index, key, value) { + var state = this._reporterState; - return deprecated; + this.exitKey(index); + if (state.obj !== null) + state.obj[key] = value; }; -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]; +Reporter.prototype.path = function path() { + return this._reporterState.path.join('/'); }; -/** - * 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; +Reporter.prototype.enterObject = function enterObject() { + var state = this._reporterState; -// 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] + var prev = state.obj; + state.obj = {}; + return prev; }; -// 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' +Reporter.prototype.leaveObject = function leaveObject(prev) { + var state = this._reporterState; + + var now = state.obj; + state.obj = prev; + return now; }; -function stylizeWithColor(str, styleType) { - var style = inspect.styles[styleType]; +Reporter.prototype.error = function error(msg) { + var err; + var state = this._reporterState; - if (style) { - return '\x1B[' + inspect.colors[style][0] + 'm' + str + '\x1B[' + inspect.colors[style][1] + 'm'; + var inherited = msg instanceof ReporterError; + if (inherited) { + err = msg; } else { - return str; + err = new ReporterError(state.path.map(function(elem) { + return '[' + JSON.stringify(elem) + ']'; + }).join(''), msg.message || msg, msg.stack); } -} -function stylizeNoColor(str, styleType) { - return str; -} + if (!state.options.partial) + throw err; -function arrayToHash(array) { - var hash = {}; + if (!inherited) + state.errors.push(err); - array.forEach(function (val, idx) { - hash[val] = true; - }); + return err; +}; - return hash; -} +Reporter.prototype.wrapResult = function wrapResult(result) { + var state = this._reporterState; + if (!state.options.partial) + return result; -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 { + 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 ret; } + return this; +}; - // Primitive types cannot have properties - var primitive = formatPrimitive(ctx, value); - if (primitive) { - return primitive; - } +},{"inherits":896}],341:[function(require,module,exports){ +var constants = require('../constants'); - // Look up the keys of the object. - var keys = Object.keys(value); - var visibleKeys = arrayToHash(keys); +exports.tagClass = { + 0: 'universal', + 1: 'application', + 2: 'context', + 3: 'private' +}; +exports.tagClassByName = constants._reverse(exports.tagClass); - if (ctx.showHidden) { - keys = Object.getOwnPropertyNames(value); - } +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); - // 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); - } +},{"../constants":342}],342:[function(require,module,exports){ +var constants = exports; - // 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); - } - } +// Helper +constants._reverse = function reverse(map) { + var res = {}; - var base = '', - array = false, - braces = ['{', '}']; + Object.keys(map).forEach(function(key) { + // Convert key to integer if it is stringified + if ((key | 0) == key) + key = key | 0; - // Make Array say that they are Array - if (isArray(value)) { - array = true; - braces = ['[', ']']; - } + var value = map[key]; + res[value] = key; + }); - // Make functions say that they are functions - if (isFunction(value)) { - var n = value.name ? ': ' + value.name : ''; - base = ' [Function' + n + ']'; - } + return res; +}; - // Make RegExps say that they are RegExps - if (isRegExp(value)) { - base = ' ' + RegExp.prototype.toString.call(value); - } +constants.der = require('./der'); - // Make dates with properties first say the date - if (isDate(value)) { - base = ' ' + Date.prototype.toUTCString.call(value); - } +},{"./der":341}],343:[function(require,module,exports){ +var inherits = require('inherits'); - // Make error with message first say the error - if (isError(value)) { - base = ' ' + formatError(value); - } +var asn1 = require('../../asn1'); +var base = asn1.base; +var bignum = asn1.bignum; - if (keys.length === 0 && (!array || value.length == 0)) { - return braces[0] + base + braces[1]; - } +// Import DER constants +var der = asn1.constants.der; - if (recurseTimes < 0) { - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } else { - return ctx.stylize('[Object]', 'special'); - } - } +function DERDecoder(entity) { + this.enc = 'der'; + this.name = entity.name; + this.entity = entity; - ctx.seen.push(value); + // Construct base tree + this.tree = new DERNode(); + this.tree._init(entity.body); +}; +module.exports = DERDecoder; - 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); - }); - } +DERDecoder.prototype.decode = function decode(data, options) { + if (!(data instanceof base.DecoderBuffer)) + data = new base.DecoderBuffer(data, options); - ctx.seen.pop(); + return this.tree._decode(data, options); +}; - return reduceToSingleString(output, base, braces); -} +// Tree methods -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 DERNode(parent) { + base.Node.call(this, 'der', parent); } +inherits(DERNode, base.Node); -function formatError(value) { - return '[' + Error.prototype.toString.call(value) + ']'; -} +DERNode.prototype._peekTag = function peekTag(buffer, tag, any) { + if (buffer.isEmpty()) + return false; -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; -} + var state = buffer.save(); + var decodedTag = derDecodeTag(buffer, 'Failed to peek tag: "' + tag + '"'); + if (buffer.isError(decodedTag)) + return decodedTag; -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'); - } - } + buffer.restore(state); - return name + ': ' + str; -} + return decodedTag.tag === tag || decodedTag.tagStr === tag || + (decodedTag.tagStr + 'of') === tag || any; +}; -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); +DERNode.prototype._decodeTag = function decodeTag(buffer, tag, any) { + var decodedTag = derDecodeTag(buffer, + 'Failed to decode tag of "' + tag + '"'); + if (buffer.isError(decodedTag)) + return decodedTag; - if (length > 60) { - return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; + 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 + '"'); } - return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; -} + if (decodedTag.primitive || len !== null) + return buffer.skip(len, 'Failed to match body of: "' + tag + '"'); -// 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; + // 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; -function isBoolean(arg) { - return typeof arg === 'boolean'; -} -exports.isBoolean = isBoolean; + len = buffer.offset - state.offset; + buffer.restore(state); + return buffer.skip(len, 'Failed to match body of: "' + tag + '"'); +}; -function isNull(arg) { - return arg === null; -} -exports.isNull = isNull; +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; -function isNullOrUndefined(arg) { - return arg == null; -} -exports.isNullOrUndefined = isNullOrUndefined; + var res; + if (tag.primitive || len !== null) + res = buffer.skip(len) + else + res = this._skipUntilEnd(buffer, fail); -function isNumber(arg) { - return typeof arg === 'number'; -} -exports.isNumber = isNumber; + // Failure + if (buffer.isError(res)) + return res; -function isString(arg) { - return typeof arg === 'string'; -} -exports.isString = isString; + if (tag.tagStr === 'end') + break; + } +}; -function isSymbol(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol'; -} -exports.isSymbol = isSymbol; +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; -function isUndefined(arg) { - return arg === void 0; -} -exports.isUndefined = isUndefined; + var res = decoder.decode(buffer, 'der', options); + if (buffer.isError(res) && possibleEnd) + break; + result.push(res); + } + return result; +}; -function isRegExp(re) { - return isObject(re) && objectToString(re) === '[object RegExp]'; -} -exports.isRegExp = isRegExp; +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'); -function isObject(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null; -} -exports.isObject = isObject; + 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'); + } +}; -function isDate(d) { - return isObject(d) && objectToString(d) === '[object Date]'; -} -exports.isDate = isDate; +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); -function isError(e) { - return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); -} -exports.isError = isError; + var first = (identifiers[0] / 40) | 0; + var second = identifiers[0] % 40; -function isFunction(arg) { - return typeof arg === 'function'; -} -exports.isFunction = isFunction; + if (relative) + result = identifiers; + else + result = [first, second].concat(identifiers.slice(1)); -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; + if (values) { + var tmp = values[result.join(' ')]; + if (tmp === undefined) + tmp = values[result.join('.')]; + if (tmp !== undefined) + result = tmp; + } -exports.isBuffer = require('./support/isBuffer'); + 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; +}; -function objectToString(o) { - return Object.prototype.toString.call(o); -} +DERNode.prototype._decodeBool = function decodeBool(buffer) { + var res = buffer.readUInt8(); + if (buffer.isError(res)) + return res; + else + return res !== 0; +}; -function pad(n) { - return n < 10 ? '0' + n.toString(10) : n.toString(10); -} +DERNode.prototype._decodeInt = function decodeInt(buffer, values) { + // Bigint, return as it is (assume big endian) + var raw = buffer.raw(); + var res = new bignum(raw); -var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; + if (values) + res = values[res.toString(10)] || res; -// 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(' '); -} + return res; +}; -// 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)); +DERNode.prototype._use = function use(entity, obj) { + if (typeof entity === 'function') + entity = entity(obj); + return entity._getDecoder('der').tree; }; -/** - * 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'); +// Utility methods -exports._extend = function (origin, add) { - // Don't do anything if add isn't an object - if (!add || !isObject(add)) return origin; +function derDecodeTag(buf, fail) { + var tag = buf.readUInt8(fail); + if (buf.isError(tag)) + return tag; - var keys = Object.keys(add); - var i = keys.length; - while (i--) { - origin[keys[i]] = add[keys[i]]; + 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; } - return origin; -}; + var tagStr = der.tag[tag]; -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); + return { + cls: cls, + primitive: primitive, + tag: tag, + tagStr: tagStr + }; } -}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./support/isBuffer":337,"_process":911,"inherits":336}],339:[function(require,module,exports){ -(function (global){ -"use strict"; +function derDecodeLen(buf, primitive, fail) { + var len = buf.readUInt8(fail); + if (buf.isError(len)) + return len; -require("core-js/shim"); + // Indefinite form + if (!primitive && len === 0x80) + return null; -require("regenerator-runtime/runtime"); + // Definite form + if ((len & 0x80) === 0) { + // Short form + return len; + } -require("core-js/fn/regexp/escape"); + // Long form + var num = len & 0x7f; + if (num > 4) + return buf.error('length octect is too long'); -if (global._babelPolyfill) { - throw new Error("only one instance of babel-polyfill is allowed"); -} -global._babelPolyfill = true; + len = 0; + for (var i = 0; i < num; i++) { + len <<= 8; + var j = buf.readUInt8(fail); + if (buf.isError(j)) + return j; + len |= j; + } -var DEFINE_PROPERTY = "defineProperty"; -function define(O, key, value) { - O[key] || Object[DEFINE_PROPERTY](O, key, { - writable: true, - configurable: true, - value: value - }); + return len; } -define(String.prototype, "padLeft", "".padStart); -define(String.prototype, "padRight", "".padEnd); +},{"../../asn1":335,"inherits":896}],344:[function(require,module,exports){ +var decoders = exports; -"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) { - [][key] && define(Array, key, Function.call.bind([][key])); -}); +decoders.der = require('./der'); +decoders.pem = require('./pem'); -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"core-js/fn/regexp/escape":404,"core-js/shim":820,"regenerator-runtime/runtime":340}],340:[function(require,module,exports){ -(function (global){ -"use strict"; +},{"./der":343,"./pem":345}],345:[function(require,module,exports){ +var inherits = require('inherits'); +var Buffer = require('buffer').Buffer; -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 DERDecoder = require('./der'); -/** - * Copyright (c) 2014, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * https://raw.github.com/facebook/regenerator/master/LICENSE file. An - * additional grant of patent rights can be found in the PATENTS file in - * the same directory. - */ +function PEMDecoder(entity) { + DERDecoder.call(this, entity); + this.enc = 'pem'; +}; +inherits(PEMDecoder, DERDecoder); +module.exports = PEMDecoder; -!function (global) { - "use strict"; +PEMDecoder.prototype.decode = function decode(data, options) { + var lines = data.toString().split(/[\r\n]+/g); - var Op = Object.prototype; - var hasOwn = Op.hasOwnProperty; - var undefined; // More compressible than void 0. - var $Symbol = typeof Symbol === "function" ? Symbol : {}; - var iteratorSymbol = $Symbol.iterator || "@@iterator"; - var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; - var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + var label = options.label.toUpperCase(); - var inModule = (typeof module === "undefined" ? "undefined" : _typeof(module)) === "object"; - var runtime = global.regeneratorRuntime; - if (runtime) { - if (inModule) { - // If regeneratorRuntime is defined globally and we're in a module, - // make the exports object identical to regeneratorRuntime. - module.exports = runtime; + 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; } - // Don't bother evaluating the rest of this file if the runtime was - // already defined globally. - return; } + if (start === -1 || end === -1) + throw new Error('PEM section not found for: ' + label); - // Define the runtime globally (as expected by generated code) as either - // module.exports (if we're in a module) or a new, empty object. - runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + var base64 = lines.slice(start + 1, end).join(''); + // Remove excessive symbols + base64.replace(/[^a-z0-9\+\/=]+/gi, ''); - function wrap(innerFn, outerFn, self, tryLocsList) { - // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; - var generator = Object.create(protoGenerator.prototype); - var context = new Context(tryLocsList || []); + var input = new Buffer(base64, 'base64'); + return DERDecoder.prototype.decode.call(this, input, options); +}; - // The ._invoke method unifies the implementations of the .next, - // .throw, and .return methods. - generator._invoke = makeInvokeMethod(innerFn, self, context); +},{"./der":343,"buffer":415,"inherits":896}],346:[function(require,module,exports){ +var inherits = require('inherits'); +var Buffer = require('buffer').Buffer; - return generator; - } - runtime.wrap = wrap; +var asn1 = require('../../asn1'); +var base = asn1.base; - // Try/catch helper to minimize deoptimizations. Returns a completion - // record like context.tryEntries[i].completion. This interface could - // have been (and was previously) designed to take a closure to be - // invoked without arguments, but in all the cases we care about we - // already have an existing method we want to call, so there's no need - // to create a new function object. We can even get away with assuming - // the method takes exactly one argument, since that happens to be true - // in every case, so we don't have to touch the arguments object. The - // only additional allocation required is the completion record, which - // has a stable shape and so hopefully should be cheap to allocate. - function tryCatch(fn, obj, arg) { - try { - return { type: "normal", arg: fn.call(obj, arg) }; - } catch (err) { - return { type: "throw", arg: err }; - } - } +// Import DER constants +var der = asn1.constants.der; - var GenStateSuspendedStart = "suspendedStart"; - var GenStateSuspendedYield = "suspendedYield"; - var GenStateExecuting = "executing"; - var GenStateCompleted = "completed"; +function DEREncoder(entity) { + this.enc = 'der'; + this.name = entity.name; + this.entity = entity; - // Returning this object from the innerFn has the same effect as - // breaking out of the dispatch switch statement. - var ContinueSentinel = {}; + // Construct base tree + this.tree = new DERNode(); + this.tree._init(entity.body); +}; +module.exports = DEREncoder; - // Dummy constructor functions that we use as the .constructor and - // .constructor.prototype properties for functions that return Generator - // objects. For full spec compliance, you may wish to configure your - // minifier not to mangle the names of these two functions. - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} +DEREncoder.prototype.encode = function encode(data, reporter) { + return this.tree._encode(data, reporter).join(); +}; - // This is a polyfill for %IteratorPrototype% for environments that - // don't natively support it. - var IteratorPrototype = {}; - IteratorPrototype[iteratorSymbol] = function () { - return this; - }; +// Tree methods - var getProto = Object.getPrototypeOf; - var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { - // This environment has a native %IteratorPrototype%; use it instead - // of the polyfill. - IteratorPrototype = NativeIteratorPrototype; - } +function DERNode(parent) { + base.Node.call(this, 'der', parent); +} +inherits(DERNode, base.Node); - var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); - GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; - GeneratorFunctionPrototype.constructor = GeneratorFunction; - GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; +DERNode.prototype._encodeComposite = function encodeComposite(tag, + primitive, + cls, + content) { + var encodedTag = encodeTag(tag, primitive, cls, this.reporter); - // Helper for defining the .next, .throw, and .return methods of the - // Iterator interface in terms of a single ._invoke method. - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function (method) { - prototype[method] = function (arg) { - return this._invoke(method, arg); - }; - }); + // Short form + if (content.length < 0x80) { + var header = new Buffer(2); + header[0] = encodedTag; + header[1] = content.length; + return this._createEncoderBuffer([ header, content ]); } - runtime.isGeneratorFunction = function (genFun) { - var ctor = typeof genFun === "function" && genFun.constructor; - return ctor ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" : false; - }; + // Long form + // Count octets required to store length + var lenOctets = 1; + for (var i = content.length; i >= 0x100; i >>= 8) + lenOctets++; - runtime.mark = function (genFun) { - if (Object.setPrototypeOf) { - Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); - } else { - genFun.__proto__ = GeneratorFunctionPrototype; - if (!(toStringTagSymbol in genFun)) { - genFun[toStringTagSymbol] = "GeneratorFunction"; - } - } - genFun.prototype = Object.create(Gp); - return genFun; - }; + var header = new Buffer(1 + 1 + lenOctets); + header[0] = encodedTag; + header[1] = 0x80 | lenOctets; - // Within the body of any async function, `await x` is transformed to - // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test - // `hasOwn.call(value, "__await")` to determine if the yielded value is - // meant to be awaited. - runtime.awrap = function (arg) { - return { __await: arg }; - }; + for (var i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8) + header[i] = j & 0xff; - function AsyncIterator(generator) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if (record.type === "throw") { - reject(record.arg); - } else { - var result = record.arg; - var value = result.value; - if (value && (typeof value === "undefined" ? "undefined" : _typeof(value)) === "object" && hasOwn.call(value, "__await")) { - return Promise.resolve(value.__await).then(function (value) { - invoke("next", value, resolve, reject); - }, function (err) { - invoke("throw", err, resolve, reject); - }); - } + return this._createEncoderBuffer([ header, content ]); +}; - return Promise.resolve(value).then(function (unwrapped) { - // When a yielded Promise is resolved, its final value becomes - // the .value of the Promise<{value,done}> result for the - // current iteration. If the Promise is rejected, however, the - // result for this iteration will be rejected with the same - // reason. Note that rejections of yielded Promises are not - // thrown back into the generator function, as is the case - // when an awaited Promise is rejected. This difference in - // behavior between yield and await is important, because it - // allows the consumer to decide what to do with the yielded - // rejection (swallow it and continue, manually .throw it back - // into the generator, abandon iteration, whatever). With - // await, by contrast, there is no opportunity to examine the - // rejection reason outside the generator function, so the - // only option is to throw it from the await expression, and - // let the generator function handle the exception. - result.value = unwrapped; - resolve(result); - }, reject); - } +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); } - - if (_typeof(global.process) === "object" && global.process.domain) { - invoke = global.process.domain.bind(invoke); + 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'); + } +}; - var previousPromise; +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; + } - function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new Promise(function (resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } + if (!Array.isArray(id)) { + return this.reporter.error('objid() should be either array or string, ' + + 'got: ' + JSON.stringify(id)); + } - return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } + if (!relative) { + if (id[1] >= 40) + return this.reporter.error('Second objid identifier OOB'); + id.splice(0, 2, id[0] * 40 + id[1]); + } - // Define the unified helper method that is used to implement .next, - // .throw, and .return (see defineIteratorMethods). - this._invoke = enqueue; + // 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++; } - defineIteratorMethods(AsyncIterator.prototype); - AsyncIterator.prototype[asyncIteratorSymbol] = function () { - return this; - }; - runtime.AsyncIterator = AsyncIterator; + 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); + } - // Note that simple async functions are implemented on top of - // AsyncIterator objects; they just return a Promise for the value of - // the final result produced by the iterator. - runtime.async = function (innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList)); + return this._createEncoderBuffer(objid); +}; - return runtime.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function (result) { - return result.done ? result.value : iter.next(); - }); - }; +function two(num) { + if (num < 10) + return '0' + num; + else + return num; +} - function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; +DERNode.prototype._encodeTime = function encodeTime(time, tag) { + var str; + var date = new Date(time); - return function invoke(method, arg) { - if (state === GenStateExecuting) { - throw new Error("Generator is already running"); - } + 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'); + } - if (state === GenStateCompleted) { - if (method === "throw") { - throw arg; - } + return this._encodeStr(str, 'octstr'); +}; - // Be forgiving, per 25.3.3.3.3 of the spec: - // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume - return doneResult(); - } +DERNode.prototype._encodeNull = function encodeNull() { + return this._createEncoderBuffer(''); +}; - context.method = method; - context.arg = arg; +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]; + } - while (true) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } + // 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 (context.method === "next") { - // Setting context._sent for legacy support of Babel's - // function.sent implementation. - context.sent = context._sent = context.arg; - } else if (context.method === "throw") { - if (state === GenStateSuspendedStart) { - state = GenStateCompleted; - throw context.arg; - } + if (Buffer.isBuffer(num)) { + var size = num.length; + if (num.length === 0) + size++; - context.dispatchException(context.arg); - } else if (context.method === "return") { - context.abrupt("return", context.arg); - } + var out = new Buffer(size); + num.copy(out); + if (num.length === 0) + out[0] = 0 + return this._createEncoderBuffer(out); + } - state = GenStateExecuting; + if (num < 0x80) + return this._createEncoderBuffer(num); - var record = tryCatch(innerFn, self, context); - if (record.type === "normal") { - // If an exception is thrown from innerFn, we leave state === - // GenStateExecuting and loop back for another invocation. - state = context.done ? GenStateCompleted : GenStateSuspendedYield; + if (num < 0x100) + return this._createEncoderBuffer([0, num]); - if (record.arg === ContinueSentinel) { - continue; - } + var size = 1; + for (var i = num; i >= 0x100; i >>= 8) + size++; - return { - value: record.arg, - done: context.done - }; - } else if (record.type === "throw") { - state = GenStateCompleted; - // Dispatch the exception by looping back around to the - // context.dispatchException(context.arg) call above. - context.method = "throw"; - context.arg = record.arg; - } - } - }; + 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); } - // Call delegate.iterator[context.method](context.arg) and handle the - // result, either by returning a { value, done } result from the - // delegate iterator, or by modifying context.method and context.arg, - // setting context.delegate to null, and returning the ContinueSentinel. - function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; - if (method === undefined) { - // A .throw or .return when the delegate iterator has no .throw - // method always terminates the yield* loop. - context.delegate = null; + 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; +}; - if (context.method === "throw") { - if (delegate.iterator.return) { - // If the delegate iterator has a return method, give it a - // chance to clean up. - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); +DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) { + var state = this._baseState; + var i; + if (state['default'] === null) + return false; - if (context.method === "throw") { - // If maybeInvokeDelegate(context) changed context.method from - // "return" to "throw", let that override the TypeError below. - return ContinueSentinel; - } - } + var data = dataBuffer.join(); + if (state.defaultBuffer === undefined) + state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join(); - context.method = "throw"; - context.arg = new TypeError("The iterator does not provide a 'throw' method"); - } + if (data.length !== state.defaultBuffer.length) + return false; - return ContinueSentinel; - } + for (i=0; i < data.length; i++) + if (data[i] !== state.defaultBuffer[i]) + return false; - var record = tryCatch(method, delegate.iterator, context.arg); + return true; +}; - if (record.type === "throw") { - context.method = "throw"; - context.arg = record.arg; - context.delegate = null; - return ContinueSentinel; - } +// Utility methods - var info = record.arg; +function encodeTag(tag, primitive, cls, reporter) { + var res; - if (!info) { - context.method = "throw"; - context.arg = new TypeError("iterator result is not an object"); - context.delegate = null; - return ContinueSentinel; - } + if (tag === 'seqof') + tag = 'seq'; + else if (tag === 'setof') + tag = 'set'; - if (info.done) { - // Assign the result of the finished delegate to the temporary - // variable specified by delegate.resultName (see delegateYield). - context[delegate.resultName] = info.value; + 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); - // Resume execution at the desired location (see delegateYield). - context.next = delegate.nextLoc; + if (res >= 0x1f) + return reporter.error('Multi-octet tag encoding unsupported'); - // If context.method was "throw" but the delegate handled the - // exception, let the outer generator proceed normally. If - // context.method was "next", forget context.arg since it has been - // "consumed" by the delegate iterator. If context.method was - // "return", allow the original .return call to continue in the - // outer generator. - if (context.method !== "return") { - context.method = "next"; - context.arg = undefined; - } - } else { - // Re-yield the result returned by the delegate method. - return info; - } + if (!primitive) + res |= 0x20; - // The delegate iterator is finished, so forget it and continue with - // the outer generator. - context.delegate = null; - return ContinueSentinel; - } + res |= (der.tagClassByName[cls || 'universal'] << 6); - // Define Generator.prototype.{next,throw,return} in terms of the - // unified ._invoke helper method. - defineIteratorMethods(Gp); + return res; +} - Gp[toStringTagSymbol] = "Generator"; +},{"../../asn1":335,"buffer":415,"inherits":896}],347:[function(require,module,exports){ +var encoders = exports; - // A Generator should always return itself as the iterator object when the - // @@iterator function is called on it. Some browsers' implementations of the - // iterator prototype chain incorrectly implement this, causing the Generator - // object to not be returned from this call. This ensures that doesn't happen. - // See https://github.com/facebook/regenerator/issues/274 for more details. - Gp[iteratorSymbol] = function () { - return this; - }; +encoders.der = require('./der'); +encoders.pem = require('./pem'); - Gp.toString = function () { - return "[object Generator]"; - }; +},{"./der":346,"./pem":348}],348:[function(require,module,exports){ +var inherits = require('inherits'); - function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; +var DEREncoder = require('./der'); - if (1 in locs) { - entry.catchLoc = locs[1]; - } +function PEMEncoder(entity) { + DEREncoder.call(this, entity); + this.enc = 'pem'; +}; +inherits(PEMEncoder, DEREncoder); +module.exports = PEMEncoder; - if (2 in locs) { - entry.finallyLoc = locs[2]; - entry.afterLoc = locs[3]; - } +PEMEncoder.prototype.encode = function encode(data, options) { + var buf = DEREncoder.prototype.encode.call(this, data); - this.tryEntries.push(entry); - } + 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'); +}; - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal"; - delete record.arg; - entry.completion = record; - } +},{"./der":346,"inherits":896}],349:[function(require,module,exports){ +(function (global){ +'use strict'; - function Context(tryLocsList) { - // The root entry object (effectively a try statement without a catch - // or a finally block) gives us a place to store values thrown from - // locations where there is no enclosing try statement. - this.tryEntries = [{ tryLoc: "root" }]; - tryLocsList.forEach(pushTryEntry, this); - this.reset(true); +// 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 + * @license MIT + */ +function compare(a, b) { + if (a === b) { + return 0; } - runtime.keys = function (object) { - var keys = []; - for (var key in object) { - keys.push(key); + 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; } - keys.reverse(); + } - // Rather than returning an object with a next method, we keep - // things simple and return the next function itself. - return function next() { - while (keys.length) { - var key = keys.pop(); - if (key in object) { - next.value = key; - next.done = false; - return next; - } - } + 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); +} - // To avoid creating an additional object, we just hang the .value - // and .done properties off the next function object itself. This - // also ensures that the minifier will not anonymize the function. - next.done = true; - return next; - }; - }; +// based on node assert, original notice: - function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) { - return iteratorMethod.call(iterable); - } +// 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. - if (typeof iterable.next === "function") { - return iterable; - } +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. - if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { - while (++i < iterable.length) { - if (hasOwn.call(iterable, i)) { - next.value = iterable[i]; - next.done = false; - return next; - } - } +var assert = module.exports = ok; - next.value = undefined; - next.done = true; +// 2. The AssertionError is defined in assert. +// new assert.AssertionError({ message: message, +// actual: actual, +// expected: expected }) - return next; - }; +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; - return next.next = next; + // 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); } - } - - // Return an iterator with no values. - return { next: doneResult }; - } - runtime.values = values; - function doneResult() { - return { value: undefined, done: true }; + this.stack = out; + } } +}; - Context.prototype = { - constructor: Context, +// assert.AssertionError instanceof Error +util.inherits(assert.AssertionError, Error); - reset: function reset(skipTempReset) { - this.prev = 0; - this.next = 0; - // Resetting context._sent for legacy support of Babel's - // function.sent implementation. - this.sent = this._sent = undefined; - this.done = false; - this.delegate = null; +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); +} - this.method = "next"; - this.arg = undefined; +// 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. - this.tryEntries.forEach(resetTryEntry); +// 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. - if (!skipTempReset) { - for (var name in this) { - // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { - this[name] = undefined; - } - } - } - }, +function fail(actual, expected, message, operator, stackStartFunction) { + throw new assert.AssertionError({ + message: message, + actual: actual, + expected: expected, + operator: operator, + stackStartFunction: stackStartFunction + }); +} - stop: function stop() { - this.done = true; +// EXTENSION! allows for well behaved errors defined elsewhere. +assert.fail = fail; - var rootEntry = this.tryEntries[0]; - var rootRecord = rootEntry.completion; - if (rootRecord.type === "throw") { - throw rootRecord.arg; - } +// 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);. - return this.rval; - }, +function ok(value, message) { + if (!value) fail(value, true, message, '==', assert.ok); +} +assert.ok = ok; - dispatchException: function dispatchException(exception) { - if (this.done) { - throw exception; - } +// 5. The equality assertion tests shallow, coercive equality with +// ==. +// assert.equal(actual, expected, message_opt); - var context = this; - function handle(loc, caught) { - record.type = "throw"; - record.arg = exception; - context.next = loc; +assert.equal = function equal(actual, expected, message) { + if (actual != expected) fail(actual, expected, message, '==', assert.equal); +}; - if (caught) { - // If the dispatched exception was caught by a catch block, - // then let that catch block handle the exception normally. - context.method = "next"; - context.arg = undefined; - } +// 6. The non-equality assertion tests for whether two objects are not equal +// with != assert.notEqual(actual, expected, message_opt); - return !!caught; - } +assert.notEqual = function notEqual(actual, expected, message) { + if (actual == expected) { + fail(actual, expected, message, '!=', assert.notEqual); + } +}; - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - var record = entry.completion; +// 7. The equivalence assertion tests a deep equality relation. +// assert.deepEqual(actual, expected, message_opt); - if (entry.tryLoc === "root") { - // Exception thrown outside of any try block that could handle - // it, so set the completion value of the entire function to - // throw the exception. - return handle("end"); - } +assert.deepEqual = function deepEqual(actual, expected, message) { + if (!_deepEqual(actual, expected, false)) { + fail(actual, expected, message, 'deepEqual', assert.deepEqual); + } +}; - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"); - var hasFinally = hasOwn.call(entry, "finallyLoc"); +assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) { + if (!_deepEqual(actual, expected, true)) { + fail(actual, expected, message, 'deepStrictEqual', assert.deepStrictEqual); + } +}; - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } else if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - } else if (hasCatch) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } - } else if (hasFinally) { - if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - } else { - throw new Error("try statement without catch or finally"); - } - } - } - }, +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; - abrupt: function abrupt(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } + // 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(); - if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { - // Ignore the finally entry if control is not jumping to a - // location outside the try/catch block. - finallyEntry = null; - } + // 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 !== 'object') && + (expected === null || typeof expected !== 'object')) { + return strict ? actual === expected : actual == expected; - var record = finallyEntry ? finallyEntry.completion : {}; - record.type = type; - record.arg = arg; + // 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: []}; - if (finallyEntry) { - this.method = "next"; - this.next = finallyEntry.finallyLoc; - return ContinueSentinel; + var actualIndex = memos.actual.indexOf(actual); + if (actualIndex !== -1) { + if (actualIndex === memos.expected.indexOf(expected)) { + return true; } + } - return this.complete(record); - }, + memos.actual.push(actual); + memos.expected.push(expected); - complete: function complete(record, afterLoc) { - if (record.type === "throw") { - throw record.arg; - } + return objEquiv(actual, expected, strict, memos); + } +} - if (record.type === "break" || record.type === "continue") { - this.next = record.arg; - } else if (record.type === "return") { - this.rval = this.arg = record.arg; - this.method = "return"; - this.next = "end"; - } else if (record.type === "normal" && afterLoc) { - this.next = afterLoc; - } +function isArguments(object) { + return Object.prototype.toString.call(object) == '[object Arguments]'; +} - return ContinueSentinel; - }, +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; +} - finish: function finish(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) { - this.complete(entry.completion, entry.afterLoc); - resetTryEntry(entry); - return ContinueSentinel; - } - } - }, +// 8. The non-equivalence assertion tests for any deep inequality. +// assert.notDeepEqual(actual, expected, message_opt); - "catch": function _catch(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if (record.type === "throw") { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } +assert.notDeepEqual = function notDeepEqual(actual, expected, message) { + if (_deepEqual(actual, expected, false)) { + fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual); + } +}; - // The context.catch method must only be called with a location - // argument that corresponds to a known catch block. - throw new Error("illegal catch attempt"); - }, +assert.notDeepStrictEqual = notDeepStrictEqual; +function notDeepStrictEqual(actual, expected, message) { + if (_deepEqual(actual, expected, true)) { + fail(actual, expected, message, 'notDeepStrictEqual', notDeepStrictEqual); + } +} - delegateYield: function delegateYield(iterable, resultName, nextLoc) { - this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }; - if (this.method === "next") { - // Deliberately forget the last sent value so that we don't - // accidentally pass it on to the delegate. - this.arg = undefined; - } +// 9. The strict equality assertion tests strict equality, as determined by ===. +// assert.strictEqual(actual, expected, message_opt); - return ContinueSentinel; - } - }; -}( -// Among the various tricks for obtaining a reference to the global -// object, this seems to be the most reliable technique that does not -// use indirect eval (which violates Content Security Policy). -(typeof global === "undefined" ? "undefined" : _typeof(global)) === "object" ? global : (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" ? window : (typeof self === "undefined" ? "undefined" : _typeof(self)) === "object" ? self : undefined); +assert.strictEqual = function strictEqual(actual, expected, message) { + if (actual !== expected) { + fail(actual, expected, message, '===', assert.strictEqual); + } +}; -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],341:[function(require,module,exports){ -"use strict"; +// 10. The strict non-equality assertion tests for strict inequality, as +// determined by !==. assert.notStrictEqual(actual, expected, message_opt); -module.exports = { "default": require("core-js/library/fn/object/assign"), __esModule: true }; +assert.notStrictEqual = function notStrictEqual(actual, expected, message) { + if (actual === expected) { + fail(actual, expected, message, '!==', assert.notStrictEqual); + } +}; -},{"core-js/library/fn/object/assign":405}],342:[function(require,module,exports){ -"use strict"; +function expectedException(actual, expected) { + if (!actual || !expected) { + return false; + } -module.exports = { "default": require("core-js/library/fn/object/create"), __esModule: true }; + if (Object.prototype.toString.call(expected) == '[object RegExp]') { + return expected.test(actual); + } -},{"core-js/library/fn/object/create":406}],343:[function(require,module,exports){ -"use strict"; + try { + if (actual instanceof expected) { + return true; + } + } catch (e) { + // Ignore. The instanceof check doesn't work for arrow functions. + } -module.exports = { "default": require("core-js/library/fn/object/set-prototype-of"), __esModule: true }; + if (Error.isPrototypeOf(expected)) { + return false; + } -},{"core-js/library/fn/object/set-prototype-of":407}],344:[function(require,module,exports){ -"use strict"; + return expected.call({}, actual) === true; +} -module.exports = { "default": require("core-js/library/fn/promise"), __esModule: true }; +function _tryBlock(block) { + var error; + try { + block(); + } catch (e) { + error = e; + } + return error; +} -},{"core-js/library/fn/promise":408}],345:[function(require,module,exports){ -"use strict"; +function _throws(shouldThrow, block, expected, message) { + var actual; -module.exports = { "default": require("core-js/library/fn/symbol"), __esModule: true }; + if (typeof block !== 'function') { + throw new TypeError('"block" argument must be a function'); + } -},{"core-js/library/fn/symbol":409}],346:[function(require,module,exports){ -"use strict"; + if (typeof expected === 'string') { + message = expected; + expected = null; + } -module.exports = { "default": require("core-js/library/fn/symbol/iterator"), __esModule: true }; + actual = _tryBlock(block); -},{"core-js/library/fn/symbol/iterator":410}],347:[function(require,module,exports){ -"use strict"; + message = (expected && expected.name ? ' (' + expected.name + ').' : '.') + + (message ? ' ' + message : '.'); -exports.__esModule = true; + if (shouldThrow && !actual) { + fail(actual, expected, 'Missing expected exception' + message); + } -var _promise = require("../core-js/promise"); + var userProvidedMessage = typeof message === 'string'; + var isUnwantedException = !shouldThrow && util.isError(actual); + var isUnexpectedException = !shouldThrow && actual && !expected; -var _promise2 = _interopRequireDefault(_promise); + if ((isUnwantedException && + userProvidedMessage && + expectedException(actual, expected)) || + isUnexpectedException) { + fail(actual, expected, 'Got unwanted exception' + message); + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; + if ((shouldThrow && actual && expected && + !expectedException(actual, expected)) || (!shouldThrow && actual)) { + throw actual; + } } -exports.default = function (fn) { - return function () { - var gen = fn.apply(this, arguments); - return new _promise2.default(function (resolve, reject) { - function step(key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - return _promise2.default.resolve(value).then(function (value) { - step("next", value); - }, function (err) { - step("throw", err); - }); - } - } +// 11. Expected to throw an error: +// assert.throws(block, Error_opt, message_opt); - return step("next"); - }); - }; +assert.throws = function(block, /*optional*/error, /*optional*/message) { + _throws(true, block, error, message); }; -},{"../core-js/promise":344}],348:[function(require,module,exports){ -"use strict"; +// EXTENSION! This is annoying to write outside this module. +assert.doesNotThrow = function(block, /*optional*/error, /*optional*/message) { + _throws(false, block, error, message); +}; -exports.__esModule = true; +assert.ifError = function(err) { if (err) throw err; }; -exports.default = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); +var objectKeys = Object.keys || function (obj) { + var keys = []; + for (var key in obj) { + if (hasOwn.call(obj, key)) keys.push(key); } + return keys; }; -},{}],349:[function(require,module,exports){ -"use strict"; +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{"util/":352}],350:[function(require,module,exports){ +arguments[4][247][0].apply(exports,arguments) +},{"dup":247}],351:[function(require,module,exports){ +module.exports = function isBuffer(arg) { + return arg && typeof arg === 'object' + && typeof arg.copy === 'function' + && typeof arg.fill === 'function' + && typeof arg.readUInt8 === 'function'; +} +},{}],352:[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. -exports.__esModule = true; +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 _assign = require("../core-js/object/assign"); + 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; +}; -var _assign2 = _interopRequireDefault(_assign); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +// 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); + }; + } -exports.default = _assign2.default || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + if (process.noDeprecation === true) { + return fn; + } - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; + 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 target; + return deprecated; }; -},{"../core-js/object/assign":341}],350:[function(require,module,exports){ -"use strict"; -exports.__esModule = true; +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]; +}; -var _setPrototypeOf = require("../core-js/object/set-prototype-of"); -var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); +/** + * 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; -var _create = require("../core-js/object/create"); -var _create2 = _interopRequireDefault(_create); +// 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] +}; -var _typeof2 = require("../helpers/typeof"); +// 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' +}; -var _typeof3 = _interopRequireDefault(_typeof2); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function stylizeWithColor(str, styleType) { + var style = inspect.styles[styleType]; -exports.default = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); + if (style) { + return '\u001b[' + inspect.colors[style][0] + 'm' + str + + '\u001b[' + inspect.colors[style][1] + 'm'; + } else { + return str; } +} - subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; -}; -},{"../core-js/object/create":342,"../core-js/object/set-prototype-of":343,"../helpers/typeof":352}],351:[function(require,module,exports){ -"use strict"; +function stylizeNoColor(str, styleType) { + return str; +} -exports.__esModule = true; -var _typeof2 = require("../helpers/typeof"); +function arrayToHash(array) { + var hash = {}; -var _typeof3 = _interopRequireDefault(_typeof2); + array.forEach(function(val, idx) { + hash[val] = true; + }); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; + return hash; } -exports.default = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + +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; } - return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; -}; + // Primitive types cannot have properties + var primitive = formatPrimitive(ctx, value); + if (primitive) { + return primitive; + } -},{"../helpers/typeof":352}],352:[function(require,module,exports){ -"use strict"; + // Look up the keys of the object. + var keys = Object.keys(value); + var visibleKeys = arrayToHash(keys); + + if (ctx.showHidden) { + keys = Object.getOwnPropertyNames(value); + } -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; }; + // 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); + } -exports.__esModule = true; + // 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 _iterator = require("../core-js/symbol/iterator"); + var base = '', array = false, braces = ['{', '}']; -var _iterator2 = _interopRequireDefault(_iterator); + // Make Array say that they are Array + if (isArray(value)) { + array = true; + braces = ['[', ']']; + } -var _symbol = require("../core-js/symbol"); + // Make functions say that they are functions + if (isFunction(value)) { + var n = value.name ? ': ' + value.name : ''; + base = ' [Function' + n + ']'; + } -var _symbol2 = _interopRequireDefault(_symbol); + // Make RegExps say that they are RegExps + if (isRegExp(value)) { + base = ' ' + RegExp.prototype.toString.call(value); + } -var _typeof = typeof _symbol2.default === "function" && _typeof2(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof2(obj); -} : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof2(obj); -}; + // 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'); + } + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} + ctx.seen.push(value); -exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof(obj); -} : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); -}; + 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); + }); + } -},{"../core-js/symbol":345,"../core-js/symbol/iterator":346}],353:[function(require,module,exports){ -"use strict"; + ctx.seen.pop(); -module.exports = require("regenerator-runtime"); + return reduceToSingleString(output, base, braces); +} -},{"regenerator-runtime":933}],354:[function(require,module,exports){ -'use strict'; -// base-x encoding -// Forked from https://github.com/cryptocoinjs/bs58 -// 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 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'); +} -var Buffer = require('safe-buffer').Buffer; -module.exports = function base(ALPHABET) { - var ALPHABET_MAP = {}; - var BASE = ALPHABET.length; - var LEADER = ALPHABET.charAt(0); +function formatError(value) { + return '[' + Error.prototype.toString.call(value) + ']'; +} - // pre-compute lookup table - for (var z = 0; z < ALPHABET.length; z++) { - var x = ALPHABET.charAt(z); - if (ALPHABET_MAP[x] !== undefined) throw new TypeError(x + ' is ambiguous'); - ALPHABET_MAP[x] = z; +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 encode(source) { - if (source.length === 0) return ''; - var digits = [0]; - for (var i = 0; i < source.length; ++i) { - for (var j = 0, carry = source[i]; j < digits.length; ++j) { - carry += digits[j] << 8; - digits[j] = carry % BASE; - carry = carry / BASE | 0; +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); } - - while (carry > 0) { - digits.push(carry % BASE); - carry = carry / BASE | 0; + 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'); } - - var string = ''; - - // deal with leading zeros - for (var k = 0; source[k] === 0 && k < source.length - 1; ++k) { - string += LEADER; - } // convert digits to a string - for (var q = digits.length - 1; q >= 0; --q) { - string += ALPHABET[digits[q]]; - }return string; } - function decodeUnsafe(string) { - if (typeof string !== 'string') throw new TypeError('Expected String'); - if (string.length === 0) return Buffer.allocUnsafe(0); - - var bytes = [0]; - for (var i = 0; i < string.length; i++) { - var value = ALPHABET_MAP[string[i]]; - if (value === undefined) return; - - for (var j = 0, carry = value; j < bytes.length; ++j) { - carry += bytes[j] * BASE; - bytes[j] = carry & 0xff; - carry >>= 8; - } + return name + ': ' + str; +} - while (carry > 0) { - bytes.push(carry & 0xff); - carry >>= 8; - } - } - // deal with leading zeros - for (var k = 0; string[k] === LEADER && k < string.length - 1; ++k) { - bytes.push(0); - } +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); - return Buffer.from(bytes.reverse()); + if (length > 60) { + return braces[0] + + (base === '' ? '' : base + '\n ') + + ' ' + + output.join(',\n ') + + ' ' + + braces[1]; } - function decode(string) { - var buffer = decodeUnsafe(string); - if (buffer) return buffer; + return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; +} - throw new Error('Non-base' + BASE + ' character'); - } - return { - encode: encode, - decodeUnsafe: decodeUnsafe, - decode: decode - }; -}; +// 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; -},{"safe-buffer":937}],355:[function(require,module,exports){ -'use strict'; +function isBoolean(arg) { + return typeof arg === 'boolean'; +} +exports.isBoolean = isBoolean; -exports.byteLength = byteLength; -exports.toByteArray = toByteArray; -exports.fromByteArray = fromByteArray; +function isNull(arg) { + return arg === null; +} +exports.isNull = isNull; -var lookup = []; -var revLookup = []; -var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array; +function isNullOrUndefined(arg) { + return arg == null; +} +exports.isNullOrUndefined = isNullOrUndefined; -var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i]; - revLookup[code.charCodeAt(i)] = i; +function isNumber(arg) { + return typeof arg === 'number'; } +exports.isNumber = isNumber; -// Support decoding URL-safe base64 strings, as Node.js does. -// See: https://en.wikipedia.org/wiki/Base64#URL_applications -revLookup['-'.charCodeAt(0)] = 62; -revLookup['_'.charCodeAt(0)] = 63; +function isString(arg) { + return typeof arg === 'string'; +} +exports.isString = isString; -function getLens(b64) { - var len = b64.length; +function isSymbol(arg) { + return typeof arg === 'symbol'; +} +exports.isSymbol = isSymbol; - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4'); - } +function isUndefined(arg) { + return arg === void 0; +} +exports.isUndefined = isUndefined; - // Trim off extra bytes after placeholder bytes are found - // See: https://github.com/beatgammit/base64-js/issues/42 - var validLen = b64.indexOf('='); - if (validLen === -1) validLen = len; +function isRegExp(re) { + return isObject(re) && objectToString(re) === '[object RegExp]'; +} +exports.isRegExp = isRegExp; - var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4; +function isObject(arg) { + return typeof arg === 'object' && arg !== null; +} +exports.isObject = isObject; - return [validLen, placeHoldersLen]; +function isDate(d) { + return isObject(d) && objectToString(d) === '[object Date]'; } +exports.isDate = isDate; -// base64 is 4/3 + up to two characters of the original data -function byteLength(b64) { - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; +function isError(e) { + return isObject(e) && + (objectToString(e) === '[object Error]' || e instanceof Error); } +exports.isError = isError; -function _byteLength(b64, validLen, placeHoldersLen) { - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; +function isFunction(arg) { + return typeof arg === 'function'; } +exports.isFunction = isFunction; -function toByteArray(b64) { - var tmp; - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; +function isPrimitive(arg) { + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; +} +exports.isPrimitive = isPrimitive; - var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); +exports.isBuffer = require('./support/isBuffer'); - var curByte = 0; +function objectToString(o) { + return Object.prototype.toString.call(o); +} - // if there are placeholders, only get up to the last complete 4 chars - var len = placeHoldersLen > 0 ? validLen - 4 : validLen; - for (var i = 0; i < len; 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[curByte++] = tmp >> 16 & 0xFF; - arr[curByte++] = tmp >> 8 & 0xFF; - arr[curByte++] = tmp & 0xFF; - } +function pad(n) { + return n < 10 ? '0' + n.toString(10) : n.toString(10); +} - if (placeHoldersLen === 2) { - tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4; - arr[curByte++] = tmp & 0xFF; - } - if (placeHoldersLen === 1) { - tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2; - arr[curByte++] = tmp >> 8 & 0xFF; - arr[curByte++] = tmp & 0xFF; - } +var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', + 'Oct', 'Nov', 'Dec']; - return arr; +// 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(' '); } -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 & 0xFF0000) + (uint8[i + 1] << 8 & 0xFF00) + (uint8[i + 2] & 0xFF); - output.push(tripletToBase64(tmp)); +// 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 output.join(''); + return origin; +}; + +function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); } -function fromByteArray(uint8) { - var tmp; - var len = uint8.length; - var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes - var parts = []; - var maxChunkLength = 16383; // must be multiple of 3 +}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{"./support/isBuffer":351,"_process":925,"inherits":350}],353:[function(require,module,exports){ +(function (global){ +"use strict"; - // 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)); - } +require("core-js/shim"); - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1]; - parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '=='); - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + uint8[len - 1]; - parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '='); - } +require("regenerator-runtime/runtime"); - return parts.join(''); +require("core-js/fn/regexp/escape"); + +if (global._babelPolyfill) { + throw new Error("only one instance of babel-polyfill is allowed"); } +global._babelPolyfill = true; -},{}],356:[function(require,module,exports){ -'use strict'; +var DEFINE_PROPERTY = "defineProperty"; +function define(O, key, value) { + O[key] || Object[DEFINE_PROPERTY](O, key, { + writable: true, + configurable: true, + value: value + }); +} -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; }; +define(String.prototype, "padLeft", "".padStart); +define(String.prototype, "padRight", "".padEnd); -/*! bignumber.js v4.1.0 https://github.com/MikeMcl/bignumber.js/LICENCE */ +"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) { + [][key] && define(Array, key, Function.call.bind([][key])); +}); +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{"core-js/fn/regexp/escape":418,"core-js/shim":834,"regenerator-runtime/runtime":354}],354:[function(require,module,exports){ +(function (global){ +/** + * Copyright (c) 2014, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * https://raw.github.com/facebook/regenerator/master/LICENSE file. An + * additional grant of patent rights can be found in the PATENTS file in + * the same directory. + */ -;(function (globalObj) { - 'use strict'; +!(function(global) { + "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 - MIT Expat Licence - */ + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - 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, + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; - /* - * 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 + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); - /* - * Create and return a BigNumber constructor. - */ - function constructorFactory(config) { - var div, - parseNumeric, + return generator; + } + runtime.wrap = wrap; + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } - // id tracks the caller function, so its name can be included in error messages. - id = 0, - P = BigNumber.prototype, - ONE = new BigNumber(1), + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; - /********************************* EDITABLE DEFAULTS **********************************/ + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} - /* - * The default values below must be integers within the inclusive ranges stated. - * The values can also be changed at run-time using BigNumber.config. - */ + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; - // The maximum number of decimal places for operations involving division. - DECIMAL_PLACES = 20, - // 0 to MAX + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } - /* - * 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 + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; - // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS] + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } - // The exponent value at and beneath which toString returns exponential notation. - // Number type: -7 - TO_EXP_NEG = -7, - // 0 to -MAX + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; - // The exponent value at and above which toString returns exponential notation. - // Number type: 21 - TO_EXP_POS = 21, - // 0 to MAX + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; - // RANGE : [MIN_EXP, MAX_EXP] + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; - // The minimum exponent value, beneath which underflow to zero occurs. - // Number type: -324 (5e-324) - MIN_EXP = -1e7, - // -1 to -MAX + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } - // 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 + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. If the Promise is rejected, however, the + // result for this iteration will be rejected with the same + // reason. Note that rejections of yielded Promises are not + // thrown back into the generator function, as is the case + // when an awaited Promise is rejected. This difference in + // behavior between yield and await is important, because it + // allows the consumer to decide what to do with the yielded + // rejection (swallow it and continue, manually .throw it back + // into the generator, abandon iteration, whatever). With + // await, by contrast, there is no opportunity to examine the + // rejection reason outside the generator function, so the + // only option is to throw it from the await expression, and + // let the generator function handle the exception. + result.value = unwrapped; + resolve(result); + }, reject); + } + } - // Whether BigNumber Errors are ever thrown. - ERRORS = true, - // true or false + if (typeof global.process === "object" && global.process.domain) { + invoke = global.process.domain.bind(invoke); + } - // Change to intValidatorNoErrors if ERRORS is false. - isValidInt = intValidatorWithErrors, - // intValidatorWithErrors/intValidatorNoErrors + var previousPromise; - // Whether to use cryptographically-secure random number generation, if available. - CRYPTO = false, - // true or false + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } - /* - * 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 - }; + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } - /******************************************************************************************/ + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } - // CONSTRUCTOR + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); - /* - * 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); - } + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; - // 'new BigNumber() base not an integer: {b}' - // 'new BigNumber() base out of range: {b}' - if (b == null || !isValidInt(b, 2, 64, id, 'base')) { + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; - // Duplicate. - if (n instanceof BigNumber) { - x.s = n.s; - x.e = n.e; - x.c = (n = n.c) ? n.slice() : n; - id = 0; - return; - } + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } - if ((num = typeof n == 'number') && n * 0 == 0) { - x.s = 1 / n < 0 ? (n = -n, -1) : 1; + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } - // 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; - } + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } - 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); - } + context.method = method; + context.arg = arg; - // 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); - } + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } - if (num) { - x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1; + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; - if (ERRORS && str.replace(/^0\.0*|\./, '').length > 15) { + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } - // 'new BigNumber() number type has more than 15 significant digits: {n}' - raise(id, tooManyDigits, n); - } + context.dispatchException(context.arg); - // Prevent later check for length on converted number. - num = false; - } else { - x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1; - } + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } - str = convertBase(str, 10, b, x.s); - } + state = GenStateExecuting; - // Decimal point? - if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; - // Exponential form? - if ((i = str.search(/e/i)) > 0) { + if (record.arg === ContinueSentinel) { + continue; + } - // Determine exponent. - if (e < 0) e = i; - e += +str.slice(i + 1); - str = str.substring(0, i); - } else if (e < 0) { + return { + value: record.arg, + done: context.done + }; - // Integer. - e = str.length; - } + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } - // Determine leading zeros. - for (i = 0; str.charCodeAt(i) === 48; i++) {} + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; - // Determine trailing zeros. - for (len = str.length; str.charCodeAt(--len) === 48;) {} - str = str.slice(i, len + 1); + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); - if (str) { - len = str.length; + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } - // 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); - } + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } - e = e - i - 1; + return ContinueSentinel; + } - // Overflow? - if (e > MAX_EXP) { + var record = tryCatch(method, delegate.iterator, context.arg); - // Infinity. - x.c = x.e = null; + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } - // Underflow? - } else if (e < MIN_EXP) { + var info = record.arg; - // Zero. - x.c = [x.e = 0]; - } else { - x.e = e; - x.c = []; + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } - // Transform base + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; - // 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; + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; - if (i < len) { - if (i) x.c.push(+str.slice(0, i)); + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } - for (len -= LOG_BASE; i < len;) { - x.c.push(+str.slice(i, i += LOG_BASE)); - } + } else { + // Re-yield the result returned by the delegate method. + return info; + } - str = str.slice(i); - i = LOG_BASE - str.length; - } else { - i -= len; - } + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } - for (; i--; str += '0') {} - x.c.push(+str); - } - } else { + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); - // Zero. - x.c = [x.e = 0]; - } + Gp[toStringTagSymbol] = "Generator"; - id = 0; - } + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; - // CONSTRUCTOR PROPERTIES + Gp.toString = function() { + return "[object Generator]"; + }; + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; - BigNumber.another = constructorFactory; + if (1 in locs) { + entry.catchLoc = locs[1]; + } - 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; + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } - /* - * 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; - }; + this.tryEntries.push(entry); + } - // 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; + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } - // 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]; + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } - // ERRORS {boolean|number} true, false, 1 or 0. - // 'config() ERRORS not a boolean or binary digit: {v}' - if (has(p = 'ERRORS')) { + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); - 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; + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } - // 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; + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; - // 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; + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } - // FORMAT {object} - // 'config() FORMAT not an object: {v}' - if (has(p = 'FORMAT')) { + if (typeof iterable.next === "function") { + return iterable; + } - if ((typeof v === 'undefined' ? 'undefined' : _typeof(v)) == 'object') { - FORMAT = v; - } else if (ERRORS) { - raise(2, p + ' not an object', v); - } + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; } - 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); - }; + next.value = undefined; + next.done = true; - /* - * 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 next; }; - /* - * 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 { + return next.next = next; + } + } - // 0 <= v <= 8999999999999999 - // 0 <= (v % 1e14) <= 99999999999999 - c.push(v % 1e14); - i += 2; - } - } - i = k / 2; + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; - // Node.js supporting crypto.randomBytes. - } else if (crypto.randomBytes) { + function doneResult() { + return { value: undefined, done: true }; + } - // buffer - a = crypto.randomBytes(k *= 7); + Context.prototype = { + constructor: Context, - for (; i < k;) { + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; - // 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]; + this.method = "next"; + this.arg = undefined; - if (v >= 9e15) { - crypto.randomBytes(7).copy(a, i); - } else { + this.tryEntries.forEach(resetTryEntry); - // 0 <= (v % 1e14) <= 99999999999999 - c.push(v % 1e14); - i += 7; - } - } - i = k / 7; - } else { - CRYPTO = false; - if (ERRORS) raise(14, 'crypto unavailable', crypto); - } - } + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, - // Use Math.random. - if (!CRYPTO) { + stop: function() { + this.done = true; - for (; i < k;) { - v = random53bitInt(); - if (v < 9e15) c[i++] = v % 1e14; - } - } + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } - k = c[--i]; - dp %= LOG_BASE; + return this.rval; + }, - // Convert trailing digits to zeros according to dp. - if (k && dp) { - v = POWS_TEN[LOG_BASE - dp]; - c[i] = mathfloor(k / v) * v; - } + dispatchException: function(exception) { + if (this.done) { + throw exception; + } - // Remove trailing elements which are zero. - for (; c[i] === 0; c.pop(), i--) {} + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; - // Zero? - if (i < 0) { - c = [e = 0]; - } else { + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } - // Remove leading elements which are zero and adjust exponent accordingly. - for (e = -1; c[0] === 0; c.splice(0, 1), e -= LOG_BASE) {} + return !! caught; + } - // 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++) {} + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; - // adjust the exponent accordingly. - if (i < LOG_BASE) e -= LOG_BASE - i; - } + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } - rand.e = e; - rand.c = c; - return rand; - }; - }(); + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); - // 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; + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); } - // 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; + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); } - 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); + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); } - // 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; - } + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, - if (carry) x = [carry].concat(x); + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } - return x; - } + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } - function compare(a, b, aL, bL) { - var i, cmp; + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; - if (aL != bL) { - cmp = aL > bL ? 1 : -1; - } else { + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } - for (i = cmp = 0; i < aL; i++) { + return this.complete(record); + }, - if (a[i] != b[i]) { - cmp = a[i] > b[i] ? 1 : -1; - break; - } - } - } - return cmp; - } + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } - function subtract(a, b, aL, base) { - var i = 0; + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } - // Subtract b from a. - for (; aL--;) { - a[aL] -= i; - i = a[aL] < b[aL] ? 1 : 0; - a[aL] = i * base + a[aL] - b[aL]; - } + return ContinueSentinel; + }, - // Remove leading zeros. - for (; !a[0] && a.length > 1; a.splice(0, 1)) {} - } + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, - // 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); - } + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } - q = new BigNumber(s); - qc = q.c = []; - e = x.e - y.e; - s = dp + e + 1; + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, - if (!base) { - base = BASE; - e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE); - s = s / LOG_BASE | 0; - } + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; - // 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 (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } - 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; - } + return ContinueSentinel; + } + }; +})( + // Among the various tricks for obtaining a reference to the global + // object, this seems to be the most reliable technique that does not + // use indirect eval (which violates Content Security Policy). + typeof global === "object" ? global : + typeof window === "object" ? window : + typeof self === "object" ? self : this +); - 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 { +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}],355:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/object/assign"), __esModule: true }; +},{"core-js/library/fn/object/assign":419}],356:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/object/create"), __esModule: true }; +},{"core-js/library/fn/object/create":420}],357:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/object/set-prototype-of"), __esModule: true }; +},{"core-js/library/fn/object/set-prototype-of":421}],358:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/promise"), __esModule: true }; +},{"core-js/library/fn/promise":422}],359:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/symbol"), __esModule: true }; +},{"core-js/library/fn/symbol":423}],360:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/symbol/iterator"), __esModule: true }; +},{"core-js/library/fn/symbol/iterator":424}],361:[function(require,module,exports){ +"use strict"; - // 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) { +exports.__esModule = true; - // divisor < remainder, so n must be at least 1. - cmp = n = 1; - } +var _promise = require("../core-js/promise"); - // product = divisor - prod = yc.slice(); - prodL = prod.length; - } +var _promise2 = _interopRequireDefault(_promise); - if (prodL < remL) prod = [0].concat(prod); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = function (fn) { + return function () { + var gen = fn.apply(this, arguments); + return new _promise2.default(function (resolve, reject) { + function step(key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } - // Subtract product from remainder. - subtract(rem, prod, remL, base); - remL = rem.length; + if (info.done) { + resolve(value); + } else { + return _promise2.default.resolve(value).then(function (value) { + step("next", value); + }, function (err) { + step("throw", err); + }); + } + } - // If product was < remainder. - if (cmp == -1) { + return step("next"); + }); + }; +}; +},{"../core-js/promise":358}],362:[function(require,module,exports){ +"use strict"; - // 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++; +exports.__esModule = true; - // 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 +exports.default = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +}; +},{}],363:[function(require,module,exports){ +"use strict"; - // Add the next digit, n, to the result array. - qc[i++] = n; +exports.__esModule = true; - // Update the remainder. - if (rem[0]) { - rem[remL++] = xc[xi] || 0; - } else { - rem = [xc[xi]]; - remL = 1; - } - } while ((xi++ < xL || rem[0] != null) && s--); +var _assign = require("../core-js/object/assign"); - more = rem[0] != null; +var _assign2 = _interopRequireDefault(_assign); - // Leading zero? - if (!qc[0]) qc.splice(0, 1); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - if (base == BASE) { +exports.default = _assign2.default || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - // 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); + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } - // Caller is convertBase. - } else { - q.e = e; - q.r = +more; - } + return target; +}; +},{"../core-js/object/assign":355}],364:[function(require,module,exports){ +"use strict"; - return q; - }; - }(); +exports.__esModule = true; - /* - * 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; +var _setPrototypeOf = require("../core-js/object/set-prototype-of"); - rm = rm != null && isValidInt(rm, 0, 8, caller, roundingMode) ? rm | 0 : ROUNDING_MODE; +var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); - if (!n.c) return n.toString(); - c0 = n.c[0]; - ne = n.e; +var _create = require("../core-js/object/create"); - 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); +var _create2 = _interopRequireDefault(_create); - // n.e may have changed if the value was rounded up. - e = n.e; +var _typeof2 = require("../helpers/typeof"); - str = coeffToString(n.c); - len = str.length; +var _typeof3 = _interopRequireDefault(_typeof2); - // 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. +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - // Exponential notation. - if (caller == 19 || caller == 24 && (i <= e || e <= TO_EXP_NEG)) { +exports.default = function (subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); + } - // Append zeros? - for (; len < i; str += '0', len++) {} - str = toExponential(str, e); + subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; +}; +},{"../core-js/object/create":356,"../core-js/object/set-prototype-of":357,"../helpers/typeof":366}],365:[function(require,module,exports){ +"use strict"; - // Fixed-point notation. - } else { - i -= ne; - str = toFixedPoint(str, e); +exports.__esModule = true; - // 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') {} - } - } - } - } +var _typeof2 = require("../helpers/typeof"); - return n.s < 0 && c0 ? '-' + str : str; - } +var _typeof3 = _interopRequireDefault(_typeof2); - // Handle BigNumber.max and BigNumber.min. - function maxOrMin(args, method) { - var m, - n, - i = 0; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - if (isArray(args[0])) args = args[0]; - m = new BigNumber(args[0]); +exports.default = function (self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } - for (; ++i < args.length;) { - n = new BigNumber(args[i]); + return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; +}; +},{"../helpers/typeof":366}],366:[function(require,module,exports){ +"use strict"; - // If any number is NaN, return NaN. - if (!n.s) { - m = n; - break; - } else if (method.call(m, n)) { - m = n; - } - } +exports.__esModule = true; - return m; - } +var _iterator = require("../core-js/symbol/iterator"); - /* - * 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); - } +var _iterator2 = _interopRequireDefault(_iterator); - return true; - } +var _symbol = require("../core-js/symbol"); - /* - * 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; +var _symbol2 = _interopRequireDefault(_symbol); - // Remove trailing zeros. - for (; !c[--j]; c.pop()) {} +var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; - // Calculate the base 10 exponent. First get the number of digits of c[0]. - for (j = c[0]; j >= 10; j /= 10, i++) {} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - // Overflow? - if ((e = i + e * LOG_BASE - 1) > MAX_EXP) { +exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { + return typeof obj === "undefined" ? "undefined" : _typeof(obj); +} : function (obj) { + return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); +}; +},{"../core-js/symbol":359,"../core-js/symbol/iterator":360}],367:[function(require,module,exports){ +module.exports = require("regenerator-runtime"); - // Infinity. - n.c = n.e = null; +},{"regenerator-runtime":947}],368:[function(require,module,exports){ +// base-x encoding +// Forked from https://github.com/cryptocoinjs/bs58 +// 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 - // Underflow? - } else if (e < MIN_EXP) { +var Buffer = require('safe-buffer').Buffer - // Zero. - n.c = [n.e = 0]; - } else { - n.e = e; - n.c = c; - } +module.exports = function base (ALPHABET) { + var ALPHABET_MAP = {} + var BASE = ALPHABET.length + var LEADER = ALPHABET.charAt(0) - return n; - } + // pre-compute lookup table + for (var z = 0; z < ALPHABET.length; z++) { + var x = ALPHABET.charAt(z) - // 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; + if (ALPHABET_MAP[x] !== undefined) throw new TypeError(x + ' is ambiguous') + ALPHABET_MAP[x] = z + } - return function (x, str, num, b) { - var base, - s = num ? str : str.replace(whitespaceOrPlus, ''); + function encode (source) { + if (source.length === 0) return '' - // No exception on ±Infinity or NaN. - if (isInfinityOrNaN.test(s)) { - x.s = isNaN(s) ? null : s < 0 ? -1 : 1; - } else { - if (!num) { + var digits = [0] + for (var i = 0; i < source.length; ++i) { + for (var j = 0, carry = source[i]; j < digits.length; ++j) { + carry += digits[j] << 8 + digits[j] = carry % BASE + carry = (carry / BASE) | 0 + } - // 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; - }); + while (carry > 0) { + digits.push(carry % BASE) + carry = (carry / BASE) | 0 + } + } - if (b) { - base = b; + var string = '' - // E.g. '1.' to '1', '.1' to '0.1' - s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1'); - } + // deal with leading zeros + for (var k = 0; source[k] === 0 && k < source.length - 1; ++k) string += LEADER + // convert digits to a string + for (var q = digits.length - 1; q >= 0; --q) string += ALPHABET[digits[q]] - if (str != s) return new BigNumber(s, base); - } + return string + } - // '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; - } + function decodeUnsafe (string) { + if (typeof string !== 'string') throw new TypeError('Expected String') + if (string.length === 0) return Buffer.allocUnsafe(0) - x.c = x.e = null; - id = 0; - }; - }(); + var bytes = [0] + for (var i = 0; i < string.length; i++) { + var value = ALPHABET_MAP[string[i]] + if (value === undefined) return - // 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; - } + for (var j = 0, carry = value; j < bytes.length; ++j) { + carry += bytes[j] * BASE + bytes[j] = carry & 0xff + carry >>= 8 + } - /* - * 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); + while (carry > 0) { + bytes.push(carry & 0xff) + carry >>= 8 + } + } - if (ni >= xc.length) { + // deal with leading zeros + for (var k = 0; string[k] === LEADER && k < string.length - 1; ++k) { + bytes.push(0) + } - if (r) { + return Buffer.from(bytes.reverse()) + } - // 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]; + function decode (string) { + var buffer = decodeUnsafe(string) + if (buffer) return buffer - // Get the number of digits of n. - for (d = 1; k >= 10; k /= 10, d++) {} + throw new Error('Non-base' + BASE + ' character') + } - // Get the index of rd within n. - i %= LOG_BASE; + return { + encode: encode, + decodeUnsafe: decodeUnsafe, + decode: decode + } +} - // 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; +},{"safe-buffer":951}],369:[function(require,module,exports){ +'use strict' - // Get the rounding digit at index j of n. - rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0; - } - } +exports.byteLength = byteLength +exports.toByteArray = toByteArray +exports.fromByteArray = fromByteArray - r = r || sd < 0 || +var lookup = [] +var revLookup = [] +var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array - // 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]); +var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' +for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i] + revLookup[code.charCodeAt(i)] = i +} - r = rm < 4 ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && +// Support decoding URL-safe base64 strings, as Node.js does. +// See: https://en.wikipedia.org/wiki/Base64#URL_applications +revLookup['-'.charCodeAt(0)] = 62 +revLookup['_'.charCodeAt(0)] = 63 - // 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)); +function getLens (b64) { + var len = b64.length - if (sd < 1 || !xc[0]) { - xc.length = 0; + if (len % 4 > 0) { + throw new Error('Invalid string. Length must be a multiple of 4') + } - if (r) { + // Trim off extra bytes after placeholder bytes are found + // See: https://github.com/beatgammit/base64-js/issues/42 + var validLen = b64.indexOf('=') + if (validLen === -1) validLen = len - // Convert sd to decimal places. - sd -= x.e + 1; + var placeHoldersLen = validLen === len + ? 0 + : 4 - (validLen % 4) - // 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 { + return [validLen, placeHoldersLen] +} - // Zero. - xc[0] = x.e = 0; - } +// base64 is 4/3 + up to two characters of the original data +function byteLength (b64) { + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} - return x; - } +function _byteLength (b64, validLen, placeHoldersLen) { + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} - // Remove excess digits. - if (i == 0) { - xc.length = ni; - k = 1; - ni--; - } else { - xc.length = ni + 1; - k = pows10[LOG_BASE - i]; +function toByteArray (b64) { + var tmp + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] - // 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; - } + var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) - // Round up? - if (r) { + var curByte = 0 - for (;;) { + // if there are placeholders, only get up to the last complete 4 chars + var len = placeHoldersLen > 0 + ? validLen - 4 + : validLen - // If the digit to be rounded up is in the first element of xc... - if (ni == 0) { + for (var i = 0; i < len; 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[curByte++] = (tmp >> 16) & 0xFF + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } - // 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 (placeHoldersLen === 2) { + tmp = + (revLookup[b64.charCodeAt(i)] << 2) | + (revLookup[b64.charCodeAt(i + 1)] >> 4) + arr[curByte++] = tmp & 0xFF + } - // if i != k the length has increased. - if (i != k) { - x.e++; - if (xc[0] == BASE) xc[0] = 1; - } + if (placeHoldersLen === 1) { + tmp = + (revLookup[b64.charCodeAt(i)] << 10) | + (revLookup[b64.charCodeAt(i + 1)] << 4) | + (revLookup[b64.charCodeAt(i + 2)] >> 2) + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } - break; - } else { - xc[ni] += k; - if (xc[ni] != BASE) break; - xc[ni--] = 0; - k = 1; - } - } - } + return arr +} - // Remove trailing zeros. - for (i = xc.length; xc[--i] === 0; xc.pop()) {} - } +function tripletToBase64 (num) { + return lookup[num >> 18 & 0x3F] + + lookup[num >> 12 & 0x3F] + + lookup[num >> 6 & 0x3F] + + lookup[num & 0x3F] +} - // Overflow? Infinity. - if (x.e > MAX_EXP) { - x.c = x.e = null; +function encodeChunk (uint8, start, end) { + var tmp + var output = [] + for (var i = start; i < end; i += 3) { + tmp = + ((uint8[i] << 16) & 0xFF0000) + + ((uint8[i + 1] << 8) & 0xFF00) + + (uint8[i + 2] & 0xFF) + output.push(tripletToBase64(tmp)) + } + return output.join('') +} - // Underflow? Zero. - } else if (x.e < MIN_EXP) { - x.c = [x.e = 0]; - } - } +function fromByteArray (uint8) { + var tmp + var len = uint8.length + var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes + var parts = [] + var maxChunkLength = 16383 // must be multiple of 3 - return x; - } + // 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) + )) + } - // PROTOTYPE/INSTANCE METHODS + // pad the end with zeros, but make sure to not forget the extra bytes + if (extraBytes === 1) { + tmp = uint8[len - 1] + parts.push( + lookup[tmp >> 2] + + lookup[(tmp << 4) & 0x3F] + + '==' + ) + } else if (extraBytes === 2) { + tmp = (uint8[len - 2] << 8) + uint8[len - 1] + parts.push( + lookup[tmp >> 10] + + lookup[(tmp >> 4) & 0x3F] + + lookup[(tmp << 2) & 0x3F] + + '=' + ) + } + return parts.join('') +} +},{}],370:[function(require,module,exports){ +/*! 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 + 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 == '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 == '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; - }; - + */ + 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); - }; - + */ + 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)); - }; - + */ + 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; - }; - + */ + 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 @@ -106200,109 +114172,123 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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); - }; - + */ + 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; - }; - + */ + 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); - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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 @@ -106322,123 +114308,121 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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 @@ -106459,50 +114443,51 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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)); - }; - + */ + 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; - }; - + */ + P.negated = P.neg = function () { + var x = new BigNumber(this); + x.s = -x.s || null; + return x; + }; + + /* * n + 0 = n * n + N = N @@ -106522,116 +114507,117 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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; - }; - + */ + 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 @@ -106644,17 +114630,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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; - }; - + */ + 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. @@ -106666,15 +114654,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * '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); - }; - + */ + 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 @@ -106685,109 +114677,107 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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 @@ -106807,90 +114797,78 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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. @@ -106902,14 +114880,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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; - }; - + */ + 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. @@ -106921,11 +114900,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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); - }; - + */ + 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. @@ -106940,11 +114921,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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); - }; - + */ + 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 @@ -106966,42 +114949,49 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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; - }; - + */ + 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 @@ -107013,89 +115003,87 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * '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; - }; - + */ + 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; - }; - + */ + 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. @@ -107113,72 +115101,73 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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; - }; - + */ + 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 @@ -107192,11 +115181,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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); - }; - + */ + 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 @@ -107208,373 +115199,385 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * '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; - }; - + */ + 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); - }; - + */ + 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; - } - + */ + 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]'; - } - + */ + 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); - -},{}],357:[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'); + */ + 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; + } +})(this); + +},{}],371:[function(require,module,exports){ +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 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 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'; +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 lpad (str, padString, length) { + while (str.length < length) str = padString + str + return str } -function binaryToByte(bin) { - return parseInt(bin, 2); +function binaryToByte (bin) { + return parseInt(bin, 2) } -function bytesToBinary(bytes) { +function bytesToBinary (bytes) { return bytes.map(function (x) { - return lpad(x.toString(2), '0', 8); - }).join(''); + 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(); +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); + return bytesToBinary([].slice.call(hash)).slice(0, CS) } -function salt(password) { - return 'mnemonic' + (password || ''); +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'); +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'); + return pbkdf2(mnemonicBuffer, saltBuffer, 2048, 64, 'sha512') } -function mnemonicToSeedHex(mnemonic, password) { - return mnemonicToSeed(mnemonic, password).toString('hex'); +function mnemonicToSeedHex (mnemonic, password) { + return mnemonicToSeed(mnemonic, password).toString('hex') } -function mnemonicToEntropy(mnemonic, wordlist) { - wordlist = wordlist || DEFAULT_WORDLIST; +function mnemonicToEntropy (mnemonic, wordlist) { + wordlist = wordlist || DEFAULT_WORDLIST - var words = unorm.nfkd(mnemonic).split(' '); - if (words.length % 3 !== 0) throw new Error(INVALID_MNEMONIC); + 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); + var index = wordlist.indexOf(word) + if (index === -1) throw new Error(INVALID_MNEMONIC) - return lpad(index.toString(2), '0', 11); - }).join(''); + 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); + 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 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); + var entropy = Buffer.from(entropyBytes) + var newChecksum = deriveChecksumBits(entropy) + if (newChecksum !== checksumBits) throw new Error(INVALID_CHECKSUM) - return entropy.toString('hex'); + return entropy.toString('hex') } -function entropyToMnemonic(entropy, wordlist) { - if (!Buffer.isBuffer(entropy)) entropy = Buffer.from(entropy, 'hex'); - wordlist = wordlist || DEFAULT_WORDLIST; +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); + 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 entropyBits = bytesToBinary([].slice.call(entropy)) + var checksumBits = deriveChecksumBits(entropy) - var bits = entropyBits + checksumBits; - var chunks = bits.match(/(.{1,11})/g); + var bits = entropyBits + checksumBits + var chunks = bits.match(/(.{1,11})/g) var words = chunks.map(function (binary) { - var index = binaryToByte(binary); - return wordlist[index]; - }); + var index = binaryToByte(binary) + return wordlist[index] + }) - return wordlist === JAPANESE_WORDLIST ? words.join('\u3000') : words.join(' '); + 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; +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); + return entropyToMnemonic(rng(strength / 8), wordlist) } -function validateMnemonic(mnemonic, wordlist) { +function validateMnemonic (mnemonic, wordlist) { try { - mnemonicToEntropy(mnemonic, wordlist); + mnemonicToEntropy(mnemonic, wordlist) } catch (e) { - return false; + return false } - return true; + return true } module.exports = { @@ -107597,9 +115600,9 @@ module.exports = { korean: KOREAN_WORDLIST, spanish: SPANISH_WORDLIST } -}; +} -},{"./wordlists/chinese_simplified.json":358,"./wordlists/chinese_traditional.json":359,"./wordlists/english.json":360,"./wordlists/french.json":361,"./wordlists/italian.json":362,"./wordlists/japanese.json":363,"./wordlists/korean.json":364,"./wordlists/spanish.json":365,"create-hash":823,"pbkdf2":905,"randombytes":918,"safe-buffer":937,"unorm":987}],358:[function(require,module,exports){ +},{"./wordlists/chinese_simplified.json":372,"./wordlists/chinese_traditional.json":373,"./wordlists/english.json":374,"./wordlists/french.json":375,"./wordlists/italian.json":376,"./wordlists/japanese.json":377,"./wordlists/korean.json":378,"./wordlists/spanish.json":379,"create-hash":837,"pbkdf2":919,"randombytes":932,"safe-buffer":951,"unorm":1001}],372:[function(require,module,exports){ module.exports=[ "的", "一", @@ -109651,7 +117654,7 @@ module.exports=[ "歇" ] -},{}],359:[function(require,module,exports){ +},{}],373:[function(require,module,exports){ module.exports=[ "的", "一", @@ -111703,7 +119706,7 @@ module.exports=[ "歇" ] -},{}],360:[function(require,module,exports){ +},{}],374:[function(require,module,exports){ module.exports=[ "abandon", "ability", @@ -113755,7 +121758,7 @@ module.exports=[ "zoo" ] -},{}],361:[function(require,module,exports){ +},{}],375:[function(require,module,exports){ module.exports=[ "abaisser", "abandon", @@ -115807,7 +123810,7 @@ module.exports=[ "zoologie" ] -},{}],362:[function(require,module,exports){ +},{}],376:[function(require,module,exports){ module.exports=[ "abaco", "abbaglio", @@ -117859,7 +125862,7 @@ module.exports=[ "zuppa" ] -},{}],363:[function(require,module,exports){ +},{}],377:[function(require,module,exports){ module.exports=[ "あいこくしん", "あいさつ", @@ -119911,7 +127914,7 @@ module.exports=[ "われる" ] -},{}],364:[function(require,module,exports){ +},{}],378:[function(require,module,exports){ module.exports=[ "가격", "가끔", @@ -121963,7 +129966,7 @@ module.exports=[ "힘껏" ] -},{}],365:[function(require,module,exports){ +},{}],379:[function(require,module,exports){ module.exports=[ "ábaco", "abdomen", @@ -124015,132 +132018,129 @@ module.exports=[ "zurdo" ] -},{}],366:[function(require,module,exports){ +},{}],380:[function(require,module,exports){ arguments[4][180][0].apply(exports,arguments) -},{"dup":180,"safe-buffer":937}],367:[function(require,module,exports){ +},{"dup":180,"safe-buffer":951}],381:[function(require,module,exports){ arguments[4][182][0].apply(exports,arguments) -},{"buffer":369,"dup":182}],368:[function(require,module,exports){ +},{"buffer":383,"dup":182}],382:[function(require,module,exports){ arguments[4][183][0].apply(exports,arguments) -},{"crypto":369,"dup":183}],369:[function(require,module,exports){ -"use strict"; - -},{}],370:[function(require,module,exports){ -'use strict'; +},{"crypto":383,"dup":183}],383:[function(require,module,exports){ +},{}],384:[function(require,module,exports){ // 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; +var Buffer = require('safe-buffer').Buffer -function asUInt32Array(buf) { - if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf); +function asUInt32Array (buf) { + if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf) - var len = buf.length / 4 | 0; - var out = new Array(len); + var len = (buf.length / 4) | 0 + var out = new Array(len) for (var i = 0; i < len; i++) { - out[i] = buf.readUInt32BE(i * 4); + out[i] = buf.readUInt32BE(i * 4) } - return out; + return out } -function scrubVec(v) { +function scrubVec (v) { for (var i = 0; i < v.length; v++) { - v[i] = 0; + 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]; +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; + 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 = 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; + 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]; + return [t0, t1, t2, t3] } // AES constants -var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]; -var G = function () { +var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36] +var G = (function () { // Compute double table - var d = new Array(256); + var d = new Array(256) for (var j = 0; j < 256; j++) { if (j < 128) { - d[j] = j << 1; + d[j] = j << 1 } else { - d[j] = j << 1 ^ 0x11b; + d[j] = (j << 1) ^ 0x11b } } - var SBOX = []; - var INV_SBOX = []; - var SUB_MIX = [[], [], [], []]; - var INV_SUB_MIX = [[], [], [], []]; + var SBOX = [] + var INV_SBOX = [] + var SUB_MIX = [[], [], [], []] + var INV_SUB_MIX = [[], [], [], []] // Walk GF(2^8) - var x = 0; - var xi = 0; + 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; + 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]; + 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; + 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; + 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; + x = xi = 1 } else { - x = x2 ^ d[d[d[x8 ^ x2]]]; - xi ^= d[d[xi]]; + x = x2 ^ d[d[d[x8 ^ x2]]] + xi ^= d[d[xi]] } } @@ -124149,767 +132149,764 @@ var G = function () { INV_SBOX: INV_SBOX, SUB_MIX: SUB_MIX, INV_SUB_MIX: INV_SUB_MIX - }; -}(); + } +})() -function AES(key) { - this._key = asUInt32Array(key); - this._reset(); +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.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 keyWords = this._key + var keySize = keyWords.length + var nRounds = keySize + 6 + var ksRows = (nRounds + 1) * 4 - var keySchedule = []; + var keySchedule = [] for (var k = 0; k < keySize; k++) { - keySchedule[k] = keyWords[k]; + keySchedule[k] = keyWords[k] } for (k = keySize; k < ksRows; k++) { - var t = keySchedule[k - 1]; + 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; + 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]; + 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; + keySchedule[k] = keySchedule[k - keySize] ^ t } - var invKeySchedule = []; + var invKeySchedule = [] for (var ik = 0; ik < ksRows; ik++) { - var ksR = ksRows - ik; - var tt = keySchedule[ksR - (ik % 4 ? 0 : 4)]; + var ksR = ksRows - ik + var tt = keySchedule[ksR - (ik % 4 ? 0 : 4)] if (ik < 4 || ksR <= 4) { - invKeySchedule[ik] = tt; + 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]]; + 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; -}; + 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); -}; + 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; -}; + 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); + M = asUInt32Array(M) // swap - var m1 = M[1]; - M[1] = M[3]; - M[3] = m1; + 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; -}; + 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; + scrubVec(this._keySchedule) + scrubVec(this._invKeySchedule) + scrubVec(this._key) +} -},{"safe-buffer":937}],371:[function(require,module,exports){ -'use strict'; +module.exports.AES = AES -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'); +},{"safe-buffer":951}],385:[function(require,module,exports){ +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++; +function xorTest (a, b) { + var out = 0 + if (a.length !== b.length) out++ - var len = Math.min(a.length, b.length); + var len = Math.min(a.length, b.length) for (var i = 0; i < len; ++i) { - out += a[i] ^ b[i]; + out += (a[i] ^ b[i]) } - return out; + return out } -function calcIv(self, iv, ck) { +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])]); + 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); + 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; + 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); +function StreamCipher (mode, key, iv, decrypt) { + Transform.call(this) - var h = Buffer.alloc(4, 0); + 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._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._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; + this._authTag = null + this._called = false } -inherits(StreamCipher, Transform); +inherits(StreamCipher, Transform) StreamCipher.prototype._update = function (chunk) { if (!this._called && this._alen) { - var rump = 16 - this._alen % 16; + var rump = 16 - (this._alen % 16) if (rump < 16) { - rump = Buffer.alloc(rump, 0); - this._ghash.update(rump); + rump = Buffer.alloc(rump, 0) + this._ghash.update(rump) } } - this._called = true; - var out = this._mode.encrypt(this, chunk); + this._called = true + var out = this._mode.encrypt(this, chunk) if (this._decrypt) { - this._ghash.update(chunk); + this._ghash.update(chunk) } else { - this._ghash.update(out); + this._ghash.update(out) } - this._len += chunk.length; - return 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'); + 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'); + 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(); -}; + 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'); +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; -}; + return this._authTag +} -StreamCipher.prototype.setAuthTag = function setAuthTag(tag) { - if (!this._decrypt) throw new Error('Attempting to set auth tag in unsupported state'); +StreamCipher.prototype.setAuthTag = function setAuthTag (tag) { + if (!this._decrypt) throw new Error('Attempting to set auth tag in unsupported state') - this._authTag = tag; -}; + this._authTag = tag +} -StreamCipher.prototype.setAAD = function setAAD(buf) { - if (this._called) throw new Error('Attempting to set AAD in unsupported state'); +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; + this._ghash.update(buf) + this._alen += buf.length +} -},{"./aes":370,"./ghash":375,"./incr32":376,"buffer-xor":400,"cipher-base":402,"inherits":882,"safe-buffer":937}],372:[function(require,module,exports){ -'use strict'; +module.exports = StreamCipher -var ciphers = require('./encrypter'); -var deciphers = require('./decrypter'); -var modes = require('./modes/list.json'); +},{"./aes":384,"./ghash":389,"./incr32":390,"buffer-xor":414,"cipher-base":416,"inherits":896,"safe-buffer":951}],386:[function(require,module,exports){ +var ciphers = require('./encrypter') +var deciphers = require('./decrypter') +var modes = require('./modes/list.json') -function getCiphers() { - return Object.keys(modes); +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":373,"./encrypter":374,"./modes/list.json":384}],373:[function(require,module,exports){ -'use strict'; +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 -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'); +},{"./decrypter":387,"./encrypter":388,"./modes/list.json":398}],387:[function(require,module,exports){ +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); +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; + 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); +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); + 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); -}; + return Buffer.concat(out) +} Decipher.prototype._final = function () { - var chunk = this._cache.flush(); + var chunk = this._cache.flush() if (this._autopadding) { - return unpad(this._mode.decrypt(this, chunk)); + return unpad(this._mode.decrypt(this, chunk)) } else if (chunk) { - throw new Error('data not multiple of block length'); + throw new Error('data not multiple of block length') } -}; +} Decipher.prototype.setAutoPadding = function (setTo) { - this._autopadding = !!setTo; - return this; -}; + this._autopadding = !!setTo + return this +} -function Splitter() { - this.cache = Buffer.allocUnsafe(0); +function Splitter () { + this.cache = Buffer.allocUnsafe(0) } Splitter.prototype.add = function (data) { - this.cache = Buffer.concat([this.cache, data]); -}; + this.cache = Buffer.concat([this.cache, data]) +} Splitter.prototype.get = function (autoPadding) { - var out; + var out if (autoPadding) { if (this.cache.length > 16) { - out = this.cache.slice(0, 16); - this.cache = this.cache.slice(16); - return out; + 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; + out = this.cache.slice(0, 16) + this.cache = this.cache.slice(16) + return out } } - return null; -}; + return null +} Splitter.prototype.flush = function () { - if (this.cache.length) return this.cache; -}; + if (this.cache.length) return this.cache +} -function unpad(last) { - var padded = last[15]; +function unpad (last) { + var padded = last[15] if (padded < 1 || padded > 16) { - throw new Error('unable to decrypt data'); + throw new Error('unable to decrypt data') } - var i = -1; + var i = -1 while (++i < padded) { - if (last[i + (16 - padded)] !== padded) { - throw new Error('unable to decrypt data'); + if (last[(i + (16 - padded))] !== padded) { + throw new Error('unable to decrypt data') } } - if (padded === 16) return; + if (padded === 16) return - return last.slice(0, 16 - padded); + return last.slice(0, 16 - padded) } -function createDecipheriv(suite, password, iv) { - var config = MODES[suite.toLowerCase()]; - if (!config) throw new TypeError('invalid suite type'); +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 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 (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); + return new StreamCipher(config.module, password, iv, true) } else if (config.type === 'auth') { - return new AuthCipher(config.module, password, iv, true); + return new AuthCipher(config.module, password, iv, true) } - return new Decipher(config.module, password, iv); + return new Decipher(config.module, password, iv) } -function createDecipher(suite, password) { - var config = MODES[suite.toLowerCase()]; - if (!config) throw new TypeError('invalid suite type'); +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); + var keys = ebtk(password, false, config.key, config.iv) + return createDecipheriv(suite, keys.key, keys.iv) } -exports.createDecipher = createDecipher; -exports.createDecipheriv = createDecipheriv; - -},{"./aes":370,"./authCipher":371,"./modes":383,"./streamCipher":386,"cipher-base":402,"evp_bytestokey":862,"inherits":882,"safe-buffer":937}],374:[function(require,module,exports){ -'use strict'; +exports.createDecipher = createDecipher +exports.createDecipheriv = createDecipheriv -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'); +},{"./aes":384,"./authCipher":385,"./modes":397,"./streamCipher":400,"cipher-base":416,"evp_bytestokey":876,"inherits":896,"safe-buffer":951}],388:[function(require,module,exports){ +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); +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; + this._cache = new Splitter() + this._cipher = new aes.AES(key) + this._prev = Buffer.from(iv) + this._mode = mode + this._autopadding = true } -inherits(Cipher, Transform); +inherits(Cipher, Transform) Cipher.prototype._update = function (data) { - this._cache.add(data); - var chunk; - var thing; - var out = []; + this._cache.add(data) + var chunk + var thing + var out = [] - while (chunk = this._cache.get()) { - thing = this._mode.encrypt(this, chunk); - out.push(thing); + while ((chunk = this._cache.get())) { + thing = this._mode.encrypt(this, chunk) + out.push(thing) } - return Buffer.concat(out); -}; + return Buffer.concat(out) +} -var PADDING = Buffer.alloc(16, 0x10); +var PADDING = Buffer.alloc(16, 0x10) Cipher.prototype._final = function () { - var chunk = this._cache.flush(); + var chunk = this._cache.flush() if (this._autopadding) { - chunk = this._mode.encrypt(this, chunk); - this._cipher.scrub(); - return chunk; + 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'); + this._cipher.scrub() + throw new Error('data not multiple of block length') } -}; +} Cipher.prototype.setAutoPadding = function (setTo) { - this._autopadding = !!setTo; - return this; -}; + this._autopadding = !!setTo + return this +} -function Splitter() { - this.cache = Buffer.allocUnsafe(0); +function Splitter () { + this.cache = Buffer.allocUnsafe(0) } Splitter.prototype.add = function (data) { - this.cache = Buffer.concat([this.cache, 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; + var out = this.cache.slice(0, 16) + this.cache = this.cache.slice(16) + return out } - return null; -}; + return null +} Splitter.prototype.flush = function () { - var len = 16 - this.cache.length; - var padBuff = Buffer.allocUnsafe(len); + var len = 16 - this.cache.length + var padBuff = Buffer.allocUnsafe(len) - var i = -1; + var i = -1 while (++i < len) { - padBuff.writeUInt8(len, i); + padBuff.writeUInt8(len, i) } - return Buffer.concat([this.cache, padBuff]); -}; + return Buffer.concat([this.cache, padBuff]) +} -function createCipheriv(suite, password, iv) { - var config = MODES[suite.toLowerCase()]; - if (!config) throw new TypeError('invalid suite type'); +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 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 (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); + return new StreamCipher(config.module, password, iv) } else if (config.type === 'auth') { - return new AuthCipher(config.module, password, iv); + return new AuthCipher(config.module, password, iv) } - return new Cipher(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'); +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); + var keys = ebtk(password, false, config.key, config.iv) + return createCipheriv(suite, keys.key, keys.iv) } -exports.createCipheriv = createCipheriv; -exports.createCipher = createCipher; - -},{"./aes":370,"./authCipher":371,"./modes":383,"./streamCipher":386,"cipher-base":402,"evp_bytestokey":862,"inherits":882,"safe-buffer":937}],375:[function(require,module,exports){ -'use strict'; +exports.createCipheriv = createCipheriv +exports.createCipher = createCipher -var Buffer = require('safe-buffer').Buffer; -var ZEROES = Buffer.alloc(16, 0); +},{"./aes":384,"./authCipher":385,"./modes":397,"./streamCipher":400,"cipher-base":416,"evp_bytestokey":876,"inherits":896,"safe-buffer":951}],389:[function(require,module,exports){ +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 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 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); +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; + var i = -1 while (++i < block.length) { - this.state[i] ^= block[i]; + this.state[i] ^= block[i] } - this._multiply(); -}; + this._multiply() +} GHASH.prototype._multiply = function () { - var Vi = toArray(this.h); - var Zi = [0, 0, 0, 0]; - var j, xi, lsbVi; - var i = -1; + 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; + 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]; + 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; + 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[j] = (Vi[j] >>> 1) | ((Vi[j - 1] & 1) << 31) } - Vi[0] = Vi[0] >>> 1; + 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; + Vi[0] = Vi[0] ^ (0xe1 << 24) } } - this.state = fromArray(Zi); -}; + this.state = fromArray(Zi) +} GHASH.prototype.update = function (buf) { - this.cache = Buffer.concat([this.cache, buf]); - var chunk; + 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); + 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(Buffer.concat([this.cache, ZEROES], 16)) } - this.ghash(fromArray([0, abl, 0, bl])); - return this.state; -}; - -module.exports = GHASH; + this.ghash(fromArray([0, abl, 0, bl])) + return this.state +} -},{"safe-buffer":937}],376:[function(require,module,exports){ -"use strict"; +module.exports = GHASH -function incr32(iv) { - var len = iv.length; - var item; +},{"safe-buffer":951}],390:[function(require,module,exports){ +function incr32 (iv) { + var len = iv.length + var item while (len--) { - item = iv.readUInt8(len); + item = iv.readUInt8(len) if (item === 255) { - iv.writeUInt8(0, len); + iv.writeUInt8(0, len) } else { - item++; - iv.writeUInt8(item, len); - break; + item++ + iv.writeUInt8(item, len) + break } } } -module.exports = incr32; +module.exports = incr32 -},{}],377:[function(require,module,exports){ -'use strict'; - -var xor = require('buffer-xor'); +},{}],391:[function(require,module,exports){ +var xor = require('buffer-xor') exports.encrypt = function (self, block) { - var data = xor(block, self._prev); + var data = xor(block, self._prev) - self._prev = self._cipher.encryptBlock(data); - return 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); + var pad = self._prev - return xor(out, pad); -}; + self._prev = block + var out = self._cipher.decryptBlock(block) -},{"buffer-xor":400}],378:[function(require,module,exports){ -'use strict'; + return xor(out, pad) +} -var Buffer = require('safe-buffer').Buffer; -var xor = require('buffer-xor'); +},{"buffer-xor":414}],392:[function(require,module,exports){ +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; +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; + 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); + 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); + 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; + out = Buffer.concat([out, encryptStart(self, data, decrypt)]) + break } } - return out; -}; + return out +} -},{"buffer-xor":400,"safe-buffer":937}],379:[function(require,module,exports){ -'use strict'; +},{"buffer-xor":414,"safe-buffer":951}],393:[function(require,module,exports){ +var Buffer = require('safe-buffer').Buffer -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; +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); + 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; + 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])]); +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; + out[i] = buffer[i] << 1 | buffer[i + 1] >> (7) } - return out; + return out } exports.encrypt = function (self, chunk, decrypt) { - var len = chunk.length; - var out = Buffer.allocUnsafe(len); - var i = -1; + var len = chunk.length + var out = Buffer.allocUnsafe(len) + var i = -1 while (++i < len) { - out[i] = encryptByte(self, chunk[i], decrypt); + out[i] = encryptByte(self, chunk[i], decrypt) } - return out; -}; - -},{"safe-buffer":937}],380:[function(require,module,exports){ -'use strict'; + return out +} -var Buffer = require('safe-buffer').Buffer; +},{"safe-buffer":951}],394:[function(require,module,exports){ +var Buffer = require('safe-buffer').Buffer -function encryptByte(self, byteParam, decrypt) { - var pad = self._cipher.encryptBlock(self._prev); - var out = pad[0] ^ byteParam; +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])]); + self._prev = Buffer.concat([ + self._prev.slice(1), + Buffer.from([decrypt ? byteParam : out]) + ]) - return out; + return out } exports.encrypt = function (self, chunk, decrypt) { - var len = chunk.length; - var out = Buffer.allocUnsafe(len); - var i = -1; + var len = chunk.length + var out = Buffer.allocUnsafe(len) + var i = -1 while (++i < len) { - out[i] = encryptByte(self, chunk[i], decrypt); + out[i] = encryptByte(self, chunk[i], decrypt) } - return out; -}; - -},{"safe-buffer":937}],381:[function(require,module,exports){ -'use strict'; + return out +} -var xor = require('buffer-xor'); -var Buffer = require('safe-buffer').Buffer; -var incr32 = require('../incr32'); +},{"safe-buffer":951}],395:[function(require,module,exports){ +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; +function getBlock (self) { + var out = self._cipher.encryptBlockRaw(self._prev) + incr32(self._prev) + return out } -var blockSize = 16; +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)]); + 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 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":376,"buffer-xor":400,"safe-buffer":937}],382:[function(require,module,exports){ -"use strict"; + var pad = self._cache.slice(0, chunk.length) + self._cache = self._cache.slice(chunk.length) + return xor(chunk, pad) +} +},{"../incr32":390,"buffer-xor":414,"safe-buffer":951}],396:[function(require,module,exports){ exports.encrypt = function (self, block) { - return self._cipher.encryptBlock(block); -}; + return self._cipher.encryptBlock(block) +} exports.decrypt = function (self, block) { - return self._cipher.decryptBlock(block); -}; - -},{}],383:[function(require,module,exports){ -'use strict'; + return self._cipher.decryptBlock(block) +} +},{}],397:[function(require,module,exports){ var modeModules = { ECB: require('./ecb'), CBC: require('./cbc'), @@ -124919,17 +132916,17 @@ var modeModules = { OFB: require('./ofb'), CTR: require('./ctr'), GCM: require('./ctr') -}; +} -var modes = require('./list.json'); +var modes = require('./list.json') for (var key in modes) { - modes[key].module = modeModules[modes[key].mode]; + modes[key].module = modeModules[modes[key].mode] } -module.exports = modes; +module.exports = modes -},{"./cbc":377,"./cfb":378,"./cfb1":379,"./cfb8":380,"./ctr":381,"./ecb":382,"./list.json":384,"./ofb":385}],384:[function(require,module,exports){ +},{"./cbc":391,"./cfb":392,"./cfb1":393,"./cfb8":394,"./ctr":395,"./ecb":396,"./list.json":398,"./ofb":399}],398:[function(require,module,exports){ module.exports={ "aes-128-ecb": { "cipher": "AES", @@ -125122,137 +133119,129 @@ module.exports={ } } -},{}],385:[function(require,module,exports){ +},{}],399:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var xor = require('buffer-xor'); +var xor = require('buffer-xor') -function getBlock(self) { - self._prev = self._cipher.encryptBlock(self._prev); - return self._prev; +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)]); + 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); -}; + 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":401,"buffer-xor":400}],386:[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'); +},{"buffer":415,"buffer-xor":414}],400:[function(require,module,exports){ +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); +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; + 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); +inherits(StreamCipher, Transform) StreamCipher.prototype._update = function (chunk) { - return this._mode.encrypt(this, chunk, this._decrypt); -}; + return this._mode.encrypt(this, chunk, this._decrypt) +} StreamCipher.prototype._final = function () { - this._cipher.scrub(); -}; + this._cipher.scrub() +} -module.exports = StreamCipher; +module.exports = StreamCipher -},{"./aes":370,"cipher-base":402,"inherits":882,"safe-buffer":937}],387:[function(require,module,exports){ -'use strict'; +},{"./aes":384,"cipher-base":416,"inherits":896,"safe-buffer":951}],401:[function(require,module,exports){ +var DES = require('browserify-des') +var aes = require('browserify-aes/browser') +var aesModes = require('browserify-aes/modes') +var desModes = require('browserify-des/modes') +var ebtk = require('evp_bytestokey') -var DES = require('browserify-des'); -var aes = require('browserify-aes/browser'); -var aesModes = require('browserify-aes/modes'); -var desModes = require('browserify-des/modes'); -var ebtk = require('evp_bytestokey'); +function createCipher (suite, password) { + suite = suite.toLowerCase() -function createCipher(suite, password) { - suite = suite.toLowerCase(); - - var keyLen, ivLen; + var keyLen, ivLen if (aesModes[suite]) { - keyLen = aesModes[suite].key; - ivLen = aesModes[suite].iv; + keyLen = aesModes[suite].key + ivLen = aesModes[suite].iv } else if (desModes[suite]) { - keyLen = desModes[suite].key * 8; - ivLen = desModes[suite].iv; + keyLen = desModes[suite].key * 8 + ivLen = desModes[suite].iv } else { - throw new TypeError('invalid suite type'); + throw new TypeError('invalid suite type') } - var keys = ebtk(password, false, keyLen, ivLen); - return createCipheriv(suite, keys.key, keys.iv); + var keys = ebtk(password, false, keyLen, ivLen) + return createCipheriv(suite, keys.key, keys.iv) } -function createDecipher(suite, password) { - suite = suite.toLowerCase(); +function createDecipher (suite, password) { + suite = suite.toLowerCase() - var keyLen, ivLen; + var keyLen, ivLen if (aesModes[suite]) { - keyLen = aesModes[suite].key; - ivLen = aesModes[suite].iv; + keyLen = aesModes[suite].key + ivLen = aesModes[suite].iv } else if (desModes[suite]) { - keyLen = desModes[suite].key * 8; - ivLen = desModes[suite].iv; + keyLen = desModes[suite].key * 8 + ivLen = desModes[suite].iv } else { - throw new TypeError('invalid suite type'); + throw new TypeError('invalid suite type') } - var keys = ebtk(password, false, keyLen, ivLen); - return createDecipheriv(suite, keys.key, keys.iv); + 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); - if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite }); +function createCipheriv (suite, key, iv) { + suite = suite.toLowerCase() + if (aesModes[suite]) return aes.createCipheriv(suite, key, iv) + if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite }) - throw new TypeError('invalid suite type'); + throw new TypeError('invalid suite type') } -function createDecipheriv(suite, key, iv) { - suite = suite.toLowerCase(); - if (aesModes[suite]) return aes.createDecipheriv(suite, key, iv); - if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite, decrypt: true }); +function createDecipheriv (suite, key, iv) { + suite = suite.toLowerCase() + if (aesModes[suite]) return aes.createDecipheriv(suite, key, iv) + if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite, decrypt: true }) - throw new TypeError('invalid suite type'); + throw new TypeError('invalid suite type') } -function getCiphers() { - return Object.keys(desModes).concat(aes.getCiphers()); +function getCiphers () { + return Object.keys(desModes).concat(aes.getCiphers()) } -exports.createCipher = exports.Cipher = createCipher; -exports.createCipheriv = exports.Cipheriv = createCipheriv; -exports.createDecipher = exports.Decipher = createDecipher; -exports.createDecipheriv = exports.Decipheriv = createDecipheriv; -exports.listCiphers = exports.getCiphers = getCiphers; - -},{"browserify-aes/browser":372,"browserify-aes/modes":383,"browserify-des":388,"browserify-des/modes":389,"evp_bytestokey":862}],388:[function(require,module,exports){ -'use strict'; +exports.createCipher = exports.Cipher = createCipher +exports.createCipheriv = exports.Cipheriv = createCipheriv +exports.createDecipher = exports.Decipher = createDecipher +exports.createDecipheriv = exports.Decipheriv = createDecipheriv +exports.listCiphers = exports.getCiphers = getCiphers -var CipherBase = require('cipher-base'); -var des = require('des.js'); -var inherits = require('inherits'); -var Buffer = require('safe-buffer').Buffer; +},{"browserify-aes/browser":386,"browserify-aes/modes":397,"browserify-des":402,"browserify-des/modes":403,"evp_bytestokey":876}],402:[function(require,module,exports){ +var CipherBase = require('cipher-base') +var des = require('des.js') +var inherits = require('inherits') +var Buffer = require('safe-buffer').Buffer var modes = { 'des-ede3-cbc': des.CBC.instantiate(des.EDE), @@ -125261,86 +133250,83 @@ var modes = { '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; +} +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'; + type = 'decrypt' } else { - type = 'encrypt'; + type = 'encrypt' } - var key = opts.key; + var key = opts.key if (!Buffer.isBuffer(key)) { - key = Buffer.from(key); + key = Buffer.from(key) } if (modeName === 'des-ede' || modeName === 'des-ede-cbc') { - key = Buffer.concat([key, key.slice(0, 8)]); + key = Buffer.concat([key, key.slice(0, 8)]) } - var iv = opts.iv; + var iv = opts.iv if (!Buffer.isBuffer(iv)) { - iv = Buffer.from(iv); + iv = Buffer.from(iv) } this._des = mode.create({ key: key, iv: iv, type: type - }); + }) } DES.prototype._update = function (data) { - return Buffer.from(this._des.update(data)); -}; + return Buffer.from(this._des.update(data)) +} DES.prototype._final = function () { - return Buffer.from(this._des.final()); -}; - -},{"cipher-base":402,"des.js":828,"inherits":882,"safe-buffer":937}],389:[function(require,module,exports){ -'use strict'; + return Buffer.from(this._des.final()) +} +},{"cipher-base":416,"des.js":842,"inherits":896,"safe-buffer":951}],403:[function(require,module,exports){ 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 -}; +} -},{}],390:[function(require,module,exports){ +},{}],404:[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(); + var blinder = r.toRed(bn.mont(priv.modulus)) + .redPow(new bn(priv.publicExponent)).fromRed(); return { blinder: blinder, - unblinder: r.invm(priv.modulus) + unblinder:r.invm(priv.modulus) }; } function crt(msg, priv) { @@ -125366,19 +133352,17 @@ 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)) { + 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":367,"buffer":401,"randombytes":918}],391:[function(require,module,exports){ -'use strict'; - -module.exports = require('./browser/algorithms.json'); +},{"bn.js":381,"buffer":415,"randombytes":932}],405:[function(require,module,exports){ +module.exports = require('./browser/algorithms.json') -},{"./browser/algorithms.json":392}],392:[function(require,module,exports){ +},{"./browser/algorithms.json":406}],406:[function(require,module,exports){ module.exports={ "sha224WithRSAEncryption": { "sign": "rsa", @@ -125532,7 +133516,7 @@ module.exports={ } } -},{}],393:[function(require,module,exports){ +},{}],407:[function(require,module,exports){ module.exports={ "1.3.132.0.10": "secp256k1", "1.3.132.0.33": "p224", @@ -125542,93 +133526,91 @@ module.exports={ "1.3.132.0.35": "p521" } -},{}],394:[function(require,module,exports){ +},{}],408:[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 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'); +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]; -}); + algorithms[key].id = new Buffer(algorithms[key].id, 'hex') + algorithms[key.toLowerCase()] = algorithms[key] +}) -function Sign(algorithm) { - stream.Writable.call(this); +function Sign (algorithm) { + stream.Writable.call(this) - var data = algorithms[algorithm]; - if (!data) throw new Error('Unknown message digest'); + 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; + this._hashType = data.hash + this._hash = createHash(data.hash) + this._tag = data.id + this._signType = data.sign } -inherits(Sign, stream.Writable); +inherits(Sign, stream.Writable) -Sign.prototype._write = function _write(data, _, done) { - this._hash.update(data); - done(); -}; +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); +Sign.prototype.update = function update (data, enc) { + if (typeof data === 'string') data = new Buffer(data, enc) - this._hash.update(data); - return this; -}; + 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); +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; -}; + return enc ? sig.toString(enc) : sig +} -function Verify(algorithm) { - stream.Writable.call(this); +function Verify (algorithm) { + stream.Writable.call(this) - var data = algorithms[algorithm]; - if (!data) throw new Error('Unknown message digest'); + 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; + this._hash = createHash(data.hash) + this._tag = data.id + this._signType = data.sign } -inherits(Verify, stream.Writable); +inherits(Verify, stream.Writable) -Verify.prototype._write = function _write(data, _, done) { - this._hash.update(data); - done(); -}; +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); +Verify.prototype.update = function update (data, enc) { + if (typeof data === 'string') data = new Buffer(data, enc) - this._hash.update(data); - return this; -}; + this._hash.update(data) + return this +} -Verify.prototype.verify = function verifyMethod(key, sig, enc) { - if (typeof sig === 'string') sig = new Buffer(sig, enc); +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); -}; + this.end() + var hash = this._hash.digest() + return verify(sig, hash, key, this._signType, this._tag) +} -function createSign(algorithm) { - return new Sign(algorithm); +function createSign (algorithm) { + return new Sign(algorithm) } -function createVerify(algorithm) { - return new Verify(algorithm); +function createVerify (algorithm) { + return new Verify(algorithm) } module.exports = { @@ -125636,293 +133618,288 @@ module.exports = { Verify: createVerify, createSign: createSign, createVerify: createVerify -}; +} }).call(this,require("buffer").Buffer) -},{"./algorithms.json":392,"./sign":395,"./verify":396,"buffer":401,"create-hash":823,"inherits":882,"stream":954}],395:[function(require,module,exports){ +},{"./algorithms.json":406,"./sign":409,"./verify":410,"buffer":415,"create-hash":837,"inherits":896,"stream":968}],409:[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); +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); + 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); + 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'); + 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; + 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('.')); +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); + var curve = new EC(curveId) + var key = curve.keyFromPrivate(priv.privateKey) + var out = key.sign(hash) - return new Buffer(out.toDER()); + 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); +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); + 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); + s = false + r = new BN(0) } } - return toDER(r, s); + return toDER(r, s) } -function toDER(r, s) { - r = r.toArray(); - s = s.toArray(); +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); + 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); + 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()); +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()); + 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]); + var zeros = new Buffer(q.byteLength() - out.length) + zeros.fill(0) + out = Buffer.concat([ zeros, out ]) } - return out; + return out } -function makeKey(q, kv, algo) { - var t; - var k; +function makeKey (q, kv, algo) { + var t + var k do { - t = new Buffer(0); + 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]); + 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); + 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; + return k } -function makeR(g, k, p, q) { - return g.toRed(BN.mont(p)).redPow(k).fromRed().mod(q); +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; +module.exports = sign +module.exports.getKey = getKey +module.exports.makeKey = makeKey }).call(this,require("buffer").Buffer) -},{"./curves.json":393,"bn.js":367,"browserify-rsa":390,"buffer":401,"create-hmac":825,"elliptic":841,"parse-asn1":904}],396:[function(require,module,exports){ +},{"./curves.json":407,"bn.js":381,"browserify-rsa":404,"buffer":415,"create-hmac":839,"elliptic":855,"parse-asn1":918}],410:[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'); +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); +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); + 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); + 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'); + 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; + 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(0xff) + padNum++ } - pad.push(0x00); - var i = -1; + pad.push(0x00) + var i = -1 while (++i < hash.length) { - pad.push(hash[i]); + pad.push(hash[i]) } - pad = new Buffer(pad); - var red = BN.mont(pub.modulus); - sig = new BN(sig).toRed(red); + 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; + 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; + 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('.')); +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; + var curve = new EC(curveId) + var pubkey = pub.data.subjectPrivateKey.data - return curve.verify(hash, sig, pubkey); + 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 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'); +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; +module.exports = verify }).call(this,require("buffer").Buffer) -},{"./curves.json":393,"bn.js":367,"buffer":401,"elliptic":841,"parse-asn1":904}],397:[function(require,module,exports){ +},{"./curves.json":407,"bn.js":381,"buffer":415,"elliptic":855,"parse-asn1":918}],411:[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) { +;(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) { + var freeExports = typeof exports == 'object' && exports && + !exports.nodeType && exports; + var freeModule = typeof module == 'object' && module && + !module.nodeType && module; + var freeGlobal = typeof global == 'object' && global; + if ( + freeGlobal.global === freeGlobal || + freeGlobal.window === freeGlobal || + freeGlobal.self === freeGlobal + ) { root = freeGlobal; } /** - * The `punycode` object. - * @name punycode - * @type Object - */ + * The `punycode` object. + * @name punycode + * @type Object + */ var punycode, - /** Highest positive signed 32-bit float value */ - maxInt = 2147483647, - // aka. 0x7FFFFFFF or 2^31-1 + 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' + 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 + regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars + regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators /** Error messages */ errors = { @@ -125931,12 +133908,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 'invalid-input': 'Invalid input' }, - /** Convenience shortcuts */ baseMinusTMin = base - tMin, - floor = Math.floor, - stringFromCharCode = String.fromCharCode, - + floor = Math.floor, + stringFromCharCode = String.fromCharCode, /** Temporary variable */ key; @@ -125944,23 +133919,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /*--------------------------------------------------------------------------*/ /** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ + * 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. - */ + * 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 = []; @@ -125971,15 +133946,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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. - */ + * 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 = ''; @@ -125997,18 +133972,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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 - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ + * 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 + * @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, @@ -126020,8 +133995,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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 + 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 @@ -126037,15 +134011,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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). - */ + * 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) { + return map(array, function(value) { var output = ''; if (value > 0xFFFF) { value -= 0x10000; @@ -126058,14 +134032,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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. - */ + * 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; @@ -126080,16 +134054,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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. - */ + * 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 @@ -126097,27 +134071,27 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ + * 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) { + 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. - */ + * 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 = [], @@ -126134,9 +134108,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol k, digit, t, - - /** Cached calculation results */ - baseMinusT; + /** 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 @@ -126158,14 +134131,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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 */{ + 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) { + for (oldi = i, w = 1, k = base; /* no condition */; k += base) { if (index >= inputLength) { error('invalid-input'); @@ -126178,7 +134151,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } i += digit * w; - t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; + t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); if (digit < t) { break; @@ -126190,6 +134163,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } w *= baseMinusT; + } out = output.length + 1; @@ -126206,18 +134180,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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. - */ + * 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, @@ -126231,12 +134206,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol t, currentValue, output = [], - - /** `inputLength` will hold the number of code points in `input`. */ - inputLength, - - /** Cached calculation results */ - handledCPCountPlusOne, + /** `inputLength` will hold the number of code points in `input`. */ + inputLength, + /** Cached calculation results */ + handledCPCountPlusOne, baseMinusT, qMinusT; @@ -126300,14 +134273,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + 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))); + output.push( + stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) + ); q = floor(qMinusT / baseMinusT); } @@ -126320,41 +134295,46 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol ++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. - */ + * 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; + 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. - */ + * 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; + return mapDomain(input, function(string) { + return regexNonASCII.test(string) + ? 'xn--' + encode(string) + : string; }); } @@ -126363,18 +134343,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /** Define the public API */ punycode = { /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ + * 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 - * @memberOf punycode - * @type Object - */ + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see + * @memberOf punycode + * @type Object + */ 'ucs2': { 'decode': ucs2decode, 'encode': ucs2encode @@ -126388,8 +134368,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /** 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 () { + if ( + typeof define == 'function' && + typeof define.amd == 'object' && + define.amd + ) { + define('punycode', function() { return punycode; }); } else if (freeExports && freeModule) { @@ -126406,10 +134390,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // in Rhino or a web browser root.punycode = punycode; } -})(undefined); + +}(this)); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],398:[function(require,module,exports){ +},{}],412:[function(require,module,exports){ 'use strict'; var Buffer = require('safe-buffer').Buffer; @@ -126569,17 +134554,17 @@ function utf8CheckIncomplete(self, buf, i) { function utf8CheckExtraBytes(self, buf, p) { if ((buf[0] & 0xC0) !== 0x80) { self.lastNeed = 0; - return '\uFFFD'.repeat(p); + return '\ufffd'.repeat(p); } if (self.lastNeed > 1 && buf.length > 1) { if ((buf[1] & 0xC0) !== 0x80) { self.lastNeed = 1; - return '\uFFFD'.repeat(p + 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); + return '\ufffd'.repeat(p + 2); } } } @@ -126614,7 +134599,7 @@ function utf8Text(buf, i) { // 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); + if (this.lastNeed) return r + '\ufffd'.repeat(this.lastTotal - this.lastNeed); return r; } @@ -126682,10 +134667,7 @@ function simpleWrite(buf) { function simpleEnd(buf) { return buf && buf.length ? this.write(buf) : ''; } - -},{"safe-buffer":937}],399:[function(require,module,exports){ -'use strict'; - +},{"safe-buffer":951}],413:[function(require,module,exports){ // Base58 encoding/decoding // Originally written by Mike Hearn for BitcoinJ // Copyright (c) 2011 Google Inc @@ -126693,107 +134675,100 @@ function simpleEnd(buf) { // 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 ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' +var ALPHABET_MAP = {} +for(var i = 0; i < ALPHABET.length; i++) { + ALPHABET_MAP[ALPHABET.charAt(i)] = i } -var BASE = 58; +var BASE = 58 function encode(buffer) { - if (buffer.length === 0) return ''; + if (buffer.length === 0) return '' - var i, - j, - digits = [0]; + 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]; + for (j = 0; j < digits.length; j++) digits[j] <<= 8 - var carry = 0; + digits[0] += buffer[i] + + var carry = 0 for (j = 0; j < digits.length; ++j) { - digits[j] += carry; + digits[j] += carry - carry = digits[j] / BASE | 0; - digits[j] %= BASE; + carry = (digits[j] / BASE) | 0 + digits[j] %= BASE } while (carry) { - digits.push(carry % BASE); + digits.push(carry % BASE) - carry = carry / BASE | 0; + 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 (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]]; + stringOutput = stringOutput + ALPHABET[digits[i]] } - return stringOutput; + return stringOutput } function decode(string) { - if (string.length === 0) return []; + if (string.length === 0) return [] - var i, - j, - bytes = [0]; + 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'); + 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]; + for (j = 0; j < bytes.length; j++) bytes[j] *= BASE + bytes[0] += ALPHABET_MAP[c] - var carry = 0; + var carry = 0 for (j = 0; j < bytes.length; ++j) { - bytes[j] += carry; + bytes[j] += carry - carry = bytes[j] >> 8; - bytes[j] &= 0xff; + carry = bytes[j] >> 8 + bytes[j] &= 0xff } while (carry) { - bytes.push(carry & 0xff); + bytes.push(carry & 0xff) - carry >>= 8; + carry >>= 8 } } // deal with leading zeros - for (i = 0; string[i] === '1' && i < string.length - 1; i++) { - bytes.push(0); - }return bytes.reverse(); + for (i = 0; string[i] === '1' && i < string.length - 1; i++) bytes.push(0) + + return bytes.reverse() } module.exports = { encode: encode, decode: decode -}; +} -},{}],400:[function(require,module,exports){ +},{}],414:[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); +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]; + buffer[i] = a[i] ^ b[i] } - return buffer; -}; + return buffer +} }).call(this,require("buffer").Buffer) -},{"buffer":401}],401:[function(require,module,exports){ +},{"buffer":415}],415:[function(require,module,exports){ /*! * The buffer module from node.js, for the browser. * @@ -126802,19 +134777,17 @@ module.exports = function xor(a, b) { */ /* eslint-disable no-proto */ -'use strict'; +'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 base64 = require('base64-js'); -var ieee754 = require('ieee754'); +var base64 = require('base64-js') +var ieee754 = require('ieee754') -exports.Buffer = Buffer; -exports.SlowBuffer = SlowBuffer; -exports.INSPECT_MAX_BYTES = 50; +exports.Buffer = Buffer +exports.SlowBuffer = SlowBuffer +exports.INSPECT_MAX_BYTES = 50 -var K_MAX_LENGTH = 0x7fffffff; -exports.kMaxLength = K_MAX_LENGTH; +var K_MAX_LENGTH = 0x7fffffff +exports.kMaxLength = K_MAX_LENGTH /** * If `Buffer.TYPED_ARRAY_SUPPORT`: @@ -126830,49 +134803,51 @@ exports.kMaxLength = K_MAX_LENGTH; * (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(); +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.'); +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() { +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; + var arr = new Uint8Array(1) + arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42 } } + return arr.foo() === 42 } catch (e) { - return false; + return false } } Object.defineProperty(Buffer.prototype, 'parent', { enumerable: true, - get: function get() { - if (!Buffer.isBuffer(this)) return undefined; - return this.buffer; + get: function () { + if (!Buffer.isBuffer(this)) return undefined + return this.buffer } -}); +}) Object.defineProperty(Buffer.prototype, 'offset', { enumerable: true, - get: function get() { - if (!Buffer.isBuffer(this)) return undefined; - return this.byteOffset; + get: function () { + if (!Buffer.isBuffer(this)) return undefined + return this.byteOffset } -}); +}) -function createBuffer(length) { +function createBuffer (length) { if (length > K_MAX_LENGTH) { - throw new RangeError('The value "' + length + '" is invalid for option "size"'); + throw new RangeError('The value "' + length + '" is invalid for option "size"') } // Return an augmented `Uint8Array` instance - var buf = new Uint8Array(length); - buf.__proto__ = Buffer.prototype; - return buf; + var buf = new Uint8Array(length) + buf.__proto__ = Buffer.prototype + return buf } /** @@ -126885,63 +134860,78 @@ function createBuffer(length) { * The `Uint8Array` prototype remains unmodified. */ -function Buffer(arg, encodingOrOffset, length) { +function Buffer (arg, encodingOrOffset, length) { // Common case. if (typeof arg === 'number') { if (typeof encodingOrOffset === 'string') { - throw new TypeError('The "string" argument must be of type string. Received type number'); + throw new TypeError( + 'The "string" argument must be of type string. Received type number' + ) } - return allocUnsafe(arg); + return allocUnsafe(arg) } - return from(arg, encodingOrOffset, length); + return from(arg, encodingOrOffset, length) } // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 -if (typeof Symbol !== 'undefined' && Symbol.species != null && Buffer[Symbol.species] === Buffer) { +if (typeof Symbol !== 'undefined' && Symbol.species != null && + 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 +Buffer.poolSize = 8192 // not used by this implementation -function from(value, encodingOrOffset, length) { +function from (value, encodingOrOffset, length) { if (typeof value === 'string') { - return fromString(value, encodingOrOffset); + return fromString(value, encodingOrOffset) } if (ArrayBuffer.isView(value)) { - return fromArrayLike(value); + return fromArrayLike(value) } if (value == null) { - throw TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + (typeof value === 'undefined' ? 'undefined' : _typeof(value))); + throw TypeError( + 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + + 'or Array-like Object. Received type ' + (typeof value) + ) } - if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) { - return fromArrayBuffer(value, encodingOrOffset, length); + if (isInstance(value, ArrayBuffer) || + (value && isInstance(value.buffer, ArrayBuffer))) { + return fromArrayBuffer(value, encodingOrOffset, length) } if (typeof value === 'number') { - throw new TypeError('The "value" argument must not be of type number. Received type number'); + throw new TypeError( + 'The "value" argument must not be of type number. Received type number' + ) } - var valueOf = value.valueOf && value.valueOf(); + var valueOf = value.valueOf && value.valueOf() if (valueOf != null && valueOf !== value) { - return Buffer.from(valueOf, encodingOrOffset, length); + return Buffer.from(valueOf, encodingOrOffset, length) } - var b = fromObject(value); - if (b) return b; + var b = fromObject(value) + if (b) return b - if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === 'function') { - return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length); + if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null && + typeof value[Symbol.toPrimitive] === 'function') { + return Buffer.from( + value[Symbol.toPrimitive]('string'), encodingOrOffset, length + ) } - throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + (typeof value === 'undefined' ? 'undefined' : _typeof(value))); + throw new TypeError( + 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + + 'or Array-like Object. Received type ' + (typeof value) + ) } /** @@ -126953,34 +134943,36 @@ function from(value, encodingOrOffset, length) { * Buffer.from(arrayBuffer[, byteOffset[, length]]) **/ Buffer.from = function (value, encodingOrOffset, length) { - return from(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; +Buffer.prototype.__proto__ = Uint8Array.prototype +Buffer.__proto__ = Uint8Array -function assertSize(size) { +function assertSize (size) { if (typeof size !== 'number') { - throw new TypeError('"size" argument must be of type number'); + throw new TypeError('"size" argument must be of type number') } else if (size < 0) { - throw new RangeError('The value "' + size + '" is invalid for option "size"'); + throw new RangeError('The value "' + size + '" is invalid for option "size"') } } -function alloc(size, fill, encoding) { - assertSize(size); +function alloc (size, fill, encoding) { + assertSize(size) if (size <= 0) { - return createBuffer(size); + 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 typeof encoding === 'string' + ? createBuffer(size).fill(fill, encoding) + : createBuffer(size).fill(fill) } - return createBuffer(size); + return createBuffer(size) } /** @@ -126988,155 +134980,158 @@ function alloc(size, fill, encoding) { * alloc(size[, fill[, encoding]]) **/ Buffer.alloc = function (size, fill, encoding) { - return alloc(size, fill, encoding); -}; + return alloc(size, fill, encoding) +} -function allocUnsafe(size) { - assertSize(size); - return createBuffer(size < 0 ? 0 : checked(size) | 0); +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); -}; + return allocUnsafe(size) +} /** * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. */ Buffer.allocUnsafeSlow = function (size) { - return allocUnsafe(size); -}; + return allocUnsafe(size) +} -function fromString(string, encoding) { +function fromString (string, encoding) { if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8'; + encoding = 'utf8' } if (!Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding); + throw new TypeError('Unknown encoding: ' + encoding) } - var length = byteLength(string, encoding) | 0; - var buf = createBuffer(length); + var length = byteLength(string, encoding) | 0 + var buf = createBuffer(length) - var actual = buf.write(string, encoding); + 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); + buf = buf.slice(0, actual) } - return buf; + return buf } -function fromArrayLike(array) { - var length = array.length < 0 ? 0 : checked(array.length) | 0; - var buf = createBuffer(length); +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; + buf[i] = array[i] & 255 } - return buf; + return buf } -function fromArrayBuffer(array, byteOffset, length) { +function fromArrayBuffer (array, byteOffset, length) { if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('"offset" is outside of buffer bounds'); + throw new RangeError('"offset" is outside of buffer bounds') } if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('"length" is outside of buffer bounds'); + throw new RangeError('"length" is outside of buffer bounds') } - var buf; + var buf if (byteOffset === undefined && length === undefined) { - buf = new Uint8Array(array); + buf = new Uint8Array(array) } else if (length === undefined) { - buf = new Uint8Array(array, byteOffset); + buf = new Uint8Array(array, byteOffset) } else { - buf = new Uint8Array(array, byteOffset, length); + buf = new Uint8Array(array, byteOffset, length) } // Return an augmented `Uint8Array` instance - buf.__proto__ = Buffer.prototype; - return buf; + buf.__proto__ = Buffer.prototype + return buf } -function fromObject(obj) { +function fromObject (obj) { if (Buffer.isBuffer(obj)) { - var len = checked(obj.length) | 0; - var buf = createBuffer(len); + var len = checked(obj.length) | 0 + var buf = createBuffer(len) if (buf.length === 0) { - return buf; + return buf } - obj.copy(buf, 0, 0, len); - return buf; + obj.copy(buf, 0, 0, len) + return buf } if (obj.length !== undefined) { if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) { - return createBuffer(0); + return createBuffer(0) } - return fromArrayLike(obj); + return fromArrayLike(obj) } if (obj.type === 'Buffer' && Array.isArray(obj.data)) { - return fromArrayLike(obj.data); + return fromArrayLike(obj.data) } } -function checked(length) { +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'); + throw new RangeError('Attempt to allocate Buffer larger than maximum ' + + 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes') } - return length | 0; + return length | 0 } -function SlowBuffer(length) { - if (+length != length) { - // eslint-disable-line eqeqeq - length = 0; +function SlowBuffer (length) { + if (+length != length) { // eslint-disable-line eqeqeq + length = 0 } - return Buffer.alloc(+length); + return Buffer.alloc(+length) } -Buffer.isBuffer = function isBuffer(b) { - return b != null && b._isBuffer === true && b !== Buffer.prototype; // so Buffer.isBuffer(Buffer.prototype) will be false -}; +Buffer.isBuffer = function isBuffer (b) { + return b != null && b._isBuffer === true && + b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false +} -Buffer.compare = function compare(a, b) { - if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength); - if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength); +Buffer.compare = function compare (a, b) { + if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength) + if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength) if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); + throw new TypeError( + 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' + ) } - if (a === b) return 0; + if (a === b) return 0 - var x = a.length; - var y = b.length; + 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; + x = a[i] + y = b[i] + break } } - if (x < y) return -1; - if (y < x) return 1; - return 0; -}; + if (x < y) return -1 + if (y < x) return 1 + return 0 +} -Buffer.isEncoding = function isEncoding(encoding) { +Buffer.isEncoding = function isEncoding (encoding) { switch (String(encoding).toLowerCase()) { case 'hex': case 'utf8': @@ -127149,93 +135144,96 @@ Buffer.isEncoding = function isEncoding(encoding) { case 'ucs-2': case 'utf16le': case 'utf-16le': - return true; + return true default: - return false; + return false } -}; +} -Buffer.concat = function concat(list, length) { +Buffer.concat = function concat (list, length) { if (!Array.isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers'); + throw new TypeError('"list" argument must be an Array of Buffers') } if (list.length === 0) { - return Buffer.alloc(0); + return Buffer.alloc(0) } - var i; + var i if (length === undefined) { - length = 0; + length = 0 for (i = 0; i < list.length; ++i) { - length += list[i].length; + length += list[i].length } } - var buffer = Buffer.allocUnsafe(length); - var pos = 0; + var buffer = Buffer.allocUnsafe(length) + var pos = 0 for (i = 0; i < list.length; ++i) { - var buf = list[i]; + var buf = list[i] if (isInstance(buf, Uint8Array)) { - buf = Buffer.from(buf); + buf = Buffer.from(buf) } if (!Buffer.isBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers'); + throw new TypeError('"list" argument must be an Array of Buffers') } - buf.copy(buffer, pos); - pos += buf.length; + buf.copy(buffer, pos) + pos += buf.length } - return buffer; -}; + return buffer +} -function byteLength(string, encoding) { +function byteLength (string, encoding) { if (Buffer.isBuffer(string)) { - return string.length; + return string.length } if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) { - return string.byteLength; + return string.byteLength } if (typeof string !== 'string') { - throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + 'Received type ' + (typeof string === 'undefined' ? 'undefined' : _typeof(string))); + throw new TypeError( + 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + + 'Received type ' + typeof string + ) } - var len = string.length; - var mustMatch = arguments.length > 2 && arguments[2] === true; - if (!mustMatch && len === 0) return 0; + var len = string.length + var mustMatch = (arguments.length > 2 && arguments[2] === true) + if (!mustMatch && len === 0) return 0 // Use a for loop to avoid recursion - var loweredCase = false; + var loweredCase = false for (;;) { switch (encoding) { case 'ascii': case 'latin1': case 'binary': - return len; + return len case 'utf8': case 'utf-8': - return utf8ToBytes(string).length; + return utf8ToBytes(string).length case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': - return len * 2; + return len * 2 case 'hex': - return len >>> 1; + return len >>> 1 case 'base64': - return base64ToBytes(string).length; + return base64ToBytes(string).length default: if (loweredCase) { - return mustMatch ? -1 : utf8ToBytes(string).length; // assume utf8 + return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8 } - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; + encoding = ('' + encoding).toLowerCase() + loweredCase = true } } } -Buffer.byteLength = byteLength; +Buffer.byteLength = byteLength -function slowToString(encoding, start, end) { - var loweredCase = false; +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. @@ -127245,61 +135243,61 @@ function slowToString(encoding, start, end) { // 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; + start = 0 } // Return early if start > this.length. Done here to prevent potential uint32 // coercion fail below. if (start > this.length) { - return ''; + return '' } if (end === undefined || end > this.length) { - end = this.length; + end = this.length } if (end <= 0) { - return ''; + return '' } // Force coersion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0; - start >>>= 0; + end >>>= 0 + start >>>= 0 if (end <= start) { - return ''; + return '' } - if (!encoding) encoding = 'utf8'; + if (!encoding) encoding = 'utf8' while (true) { switch (encoding) { case 'hex': - return hexSlice(this, start, end); + return hexSlice(this, start, end) case 'utf8': case 'utf-8': - return utf8Slice(this, start, end); + return utf8Slice(this, start, end) case 'ascii': - return asciiSlice(this, start, end); + return asciiSlice(this, start, end) case 'latin1': case 'binary': - return latin1Slice(this, start, end); + return latin1Slice(this, start, end) case 'base64': - return base64Slice(this, start, end); + return base64Slice(this, start, end) case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': - return utf16leSlice(this, start, end); + return utf16leSlice(this, start, end) default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding); - encoding = (encoding + '').toLowerCase(); - loweredCase = true; + if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) + encoding = (encoding + '').toLowerCase() + loweredCase = true } } } @@ -127310,135 +135308,138 @@ function slowToString(encoding, start, end) { // 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; +Buffer.prototype._isBuffer = true -function swap(b, n, m) { - var i = b[n]; - b[n] = b[m]; - b[m] = i; +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; +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'); + 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); + swap(this, i, i + 1) } - return this; -}; + return this +} -Buffer.prototype.swap32 = function swap32() { - var len = this.length; +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'); + 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); + swap(this, i, i + 3) + swap(this, i + 1, i + 2) } - return this; -}; + return this +} -Buffer.prototype.swap64 = function swap64() { - var len = this.length; +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'); + 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); + 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; -}; + 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.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.toLocaleString = Buffer.prototype.toString; +Buffer.prototype.toLocaleString = Buffer.prototype.toString -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.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; - str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim(); - if (this.length > max) str += ' ... '; - return ''; -}; +Buffer.prototype.inspect = function inspect () { + var str = '' + var max = exports.INSPECT_MAX_BYTES + str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim() + if (this.length > max) str += ' ... ' + return '' +} -Buffer.prototype.compare = function compare(target, start, end, thisStart, thisEnd) { +Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { if (isInstance(target, Uint8Array)) { - target = Buffer.from(target, target.offset, target.byteLength); + target = Buffer.from(target, target.offset, target.byteLength) } if (!Buffer.isBuffer(target)) { - throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. ' + 'Received type ' + (typeof target === 'undefined' ? 'undefined' : _typeof(target))); + throw new TypeError( + 'The "target" argument must be one of type Buffer or Uint8Array. ' + + 'Received type ' + (typeof target) + ) } if (start === undefined) { - start = 0; + start = 0 } if (end === undefined) { - end = target ? target.length : 0; + end = target ? target.length : 0 } if (thisStart === undefined) { - thisStart = 0; + thisStart = 0 } if (thisEnd === undefined) { - thisEnd = this.length; + thisEnd = this.length } if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { - throw new RangeError('out of range index'); + throw new RangeError('out of range index') } if (thisStart >= thisEnd && start >= end) { - return 0; + return 0 } if (thisStart >= thisEnd) { - return -1; + return -1 } if (start >= end) { - return 1; + return 1 } - start >>>= 0; - end >>>= 0; - thisStart >>>= 0; - thisEnd >>>= 0; + start >>>= 0 + end >>>= 0 + thisStart >>>= 0 + thisEnd >>>= 0 - if (this === target) return 0; + if (this === target) return 0 - var x = thisEnd - thisStart; - var y = end - start; - var len = Math.min(x, y); + 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); + 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; + x = thisCopy[i] + y = targetCopy[i] + break } } - if (x < y) return -1; - if (y < x) return 1; - return 0; -}; + 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`. @@ -127449,302 +135450,310 @@ Buffer.prototype.compare = function compare(target, start, end, thisStart, thisE // - 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) { +function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { // Empty buffer means no match - if (buffer.length === 0) return -1; + if (buffer.length === 0) return -1 // Normalize byteOffset if (typeof byteOffset === 'string') { - encoding = byteOffset; - byteOffset = 0; + encoding = byteOffset + byteOffset = 0 } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff; + byteOffset = 0x7fffffff } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000; + byteOffset = -0x80000000 } - byteOffset = +byteOffset; // Coerce to Number. + 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; + 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 < 0) byteOffset = buffer.length + byteOffset if (byteOffset >= buffer.length) { - if (dir) return -1;else byteOffset = buffer.length - 1; + if (dir) return -1 + else byteOffset = buffer.length - 1 } else if (byteOffset < 0) { - if (dir) byteOffset = 0;else return -1; + if (dir) byteOffset = 0 + else return -1 } // Normalize val if (typeof val === 'string') { - val = Buffer.from(val, encoding); + 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 -1 } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir); + return arrayIndexOf(buffer, val, byteOffset, encoding, dir) } else if (typeof val === 'number') { - val = val & 0xFF; // Search for a byte value [0-255] + 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); + return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset); + return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) } } - return arrayIndexOf(buffer, [val], byteOffset, encoding, dir); + return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) } - throw new TypeError('val must be string, number or Buffer'); + 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; +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') { + encoding = String(encoding).toLowerCase() + if (encoding === 'ucs2' || encoding === 'ucs-2' || + encoding === 'utf16le' || encoding === 'utf-16le') { if (arr.length < 2 || val.length < 2) { - return -1; + return -1 } - indexSize = 2; - arrLength /= 2; - valLength /= 2; - byteOffset /= 2; + indexSize = 2 + arrLength /= 2 + valLength /= 2 + byteOffset /= 2 } } - function read(buf, i) { + function read (buf, i) { if (indexSize === 1) { - return buf[i]; + return buf[i] } else { - return buf.readUInt16BE(i * indexSize); + return buf.readUInt16BE(i * indexSize) } } - var i; + var i if (dir) { - var foundIndex = -1; + 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; + if (foundIndex === -1) foundIndex = i + if (i - foundIndex + 1 === valLength) return foundIndex * indexSize } else { - if (foundIndex !== -1) i -= i - foundIndex; - foundIndex = -1; + if (foundIndex !== -1) i -= i - foundIndex + foundIndex = -1 } } } else { - if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; + if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength for (i = byteOffset; i >= 0; i--) { - var found = true; + var found = true for (var j = 0; j < valLength; j++) { if (read(arr, i + j) !== read(val, j)) { - found = false; - break; + found = false + break } } - if (found) return i; + if (found) return i } } - return -1; + return -1 } -Buffer.prototype.includes = function includes(val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -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.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); -}; +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; +function hexWrite (buf, string, offset, length) { + offset = Number(offset) || 0 + var remaining = buf.length - offset if (!length) { - length = remaining; + length = remaining } else { - length = Number(length); + length = Number(length) if (length > remaining) { - length = remaining; + length = remaining } } - var strLen = string.length; + var strLen = string.length if (length > strLen / 2) { - 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; + var parsed = parseInt(string.substr(i * 2, 2), 16) + if (numberIsNaN(parsed)) return i + buf[offset + i] = parsed } - return i; + return i } -function utf8Write(buf, string, offset, length) { - return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length); +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 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 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 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); +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.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) + 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]) + encoding = offset + length = this.length + offset = 0 + // Buffer#write(string, offset[, length][, encoding]) } else if (isFinite(offset)) { - offset = offset >>> 0; + offset = offset >>> 0 if (isFinite(length)) { - length = length >>> 0; - if (encoding === undefined) encoding = 'utf8'; + length = length >>> 0 + if (encoding === undefined) encoding = 'utf8' } else { - encoding = length; - length = undefined; + encoding = length + length = undefined } } else { - throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported'); + 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; + 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 ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { + throw new RangeError('Attempt to write outside buffer bounds') } - if (!encoding) encoding = 'utf8'; + if (!encoding) encoding = 'utf8' - var loweredCase = false; + var loweredCase = false for (;;) { switch (encoding) { case 'hex': - return hexWrite(this, string, offset, length); + return hexWrite(this, string, offset, length) case 'utf8': case 'utf-8': - return utf8Write(this, string, offset, length); + return utf8Write(this, string, offset, length) case 'ascii': - return asciiWrite(this, string, offset, length); + return asciiWrite(this, string, offset, length) case 'latin1': case 'binary': - return latin1Write(this, string, offset, length); + return latin1Write(this, string, offset, length) case 'base64': // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length); + return base64Write(this, string, offset, length) case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': - return ucs2Write(this, string, offset, length); + return ucs2Write(this, string, offset, length) default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding); - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; + if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) + encoding = ('' + encoding).toLowerCase() + loweredCase = true } } -}; +} -Buffer.prototype.toJSON = function toJSON() { +Buffer.prototype.toJSON = function toJSON () { return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) - }; -}; + } +} -function base64Slice(buf, start, end) { +function base64Slice (buf, start, end) { if (start === 0 && end === buf.length) { - return base64.fromByteArray(buf); + return base64.fromByteArray(buf) } else { - return base64.fromByteArray(buf.slice(start, end)); + return base64.fromByteArray(buf.slice(start, end)) } } -function utf8Slice(buf, start, end) { - end = Math.min(buf.length, end); - var res = []; +function utf8Slice (buf, start, end) { + end = Math.min(buf.length, end) + var res = [] - var i = start; + 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; + 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; + var secondByte, thirdByte, fourthByte, tempCodePoint switch (bytesPerSequence) { case 1: if (firstByte < 0x80) { - codePoint = firstByte; + codePoint = firstByte } - break; + break case 2: - secondByte = buf[i + 1]; + secondByte = buf[i + 1] if ((secondByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0x1F) << 0x6 | secondByte & 0x3F; + tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F) if (tempCodePoint > 0x7F) { - codePoint = tempCodePoint; + codePoint = tempCodePoint } } - break; + break case 3: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; + secondByte = buf[i + 1] + thirdByte = buf[i + 2] if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | thirdByte & 0x3F; + tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F) if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { - codePoint = tempCodePoint; + codePoint = tempCodePoint } } - break; + break case 4: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; - fourthByte = buf[i + 3]; + 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; + tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F) if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { - codePoint = tempCodePoint; + codePoint = tempCodePoint } } } @@ -127753,647 +135762,670 @@ function utf8Slice(buf, start, end) { 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; + 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; + codePoint -= 0x10000 + res.push(codePoint >>> 10 & 0x3FF | 0xD800) + codePoint = 0xDC00 | codePoint & 0x3FF } - res.push(codePoint); - i += bytesPerSequence; + res.push(codePoint) + i += bytesPerSequence } - return decodeCodePointsArray(res); + 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; +var MAX_ARGUMENTS_LENGTH = 0x1000 -function decodeCodePointsArray(codePoints) { - var len = codePoints.length; +function decodeCodePointsArray (codePoints) { + var len = codePoints.length if (len <= MAX_ARGUMENTS_LENGTH) { - return String.fromCharCode.apply(String, codePoints); // avoid extra slice() + return String.fromCharCode.apply(String, codePoints) // avoid extra slice() } // Decode in chunks to avoid "call stack size exceeded". - var res = ''; - var i = 0; + var res = '' + var i = 0 while (i < len) { - res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)); + res += String.fromCharCode.apply( + String, + codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) + ) } - return res; + return res } -function asciiSlice(buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); +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); + ret += String.fromCharCode(buf[i] & 0x7F) } - return ret; + return ret } -function latin1Slice(buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); +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]); + ret += String.fromCharCode(buf[i]) } - return ret; + return ret } -function hexSlice(buf, start, end) { - var len = buf.length; +function hexSlice (buf, start, end) { + var len = buf.length - if (!start || start < 0) start = 0; - if (!end || end < 0 || end > len) end = len; + if (!start || start < 0) start = 0 + if (!end || end < 0 || end > len) end = len - var out = ''; + var out = '' for (var i = start; i < end; ++i) { - out += toHex(buf[i]); + out += toHex(buf[i]) } - return out; + return out } -function utf16leSlice(buf, start, end) { - var bytes = buf.slice(start, end); - var res = ''; +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); + res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256)) } - return res; + return res } -Buffer.prototype.slice = function slice(start, end) { - var len = this.length; - start = ~~start; - end = end === undefined ? len : ~~end; +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; + start += len + if (start < 0) start = 0 } else if (start > len) { - start = len; + start = len } if (end < 0) { - end += len; - if (end < 0) end = 0; + end += len + if (end < 0) end = 0 } else if (end > len) { - end = len; + end = len } - if (end < start) end = start; + if (end < start) end = start - var newBuf = this.subarray(start, end); + var newBuf = this.subarray(start, end) // Return an augmented `Uint8Array` instance - newBuf.__proto__ = Buffer.prototype; - return newBuf; -}; + 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'); +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); +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; + var val = this[offset] + var mul = 1 + var i = 0 while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; + val += this[offset + i] * mul } - return val; -}; + return val +} -Buffer.prototype.readUIntBE = function readUIntBE(offset, byteLength, noAssert) { - offset = offset >>> 0; - byteLength = byteLength >>> 0; +Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { + offset = offset >>> 0 + byteLength = byteLength >>> 0 if (!noAssert) { - checkOffset(offset, byteLength, this.length); + checkOffset(offset, byteLength, this.length) } - var val = this[offset + --byteLength]; - var mul = 1; + var val = this[offset + --byteLength] + var mul = 1 while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul; + val += this[offset + --byteLength] * mul } - return val; -}; + return val +} -Buffer.prototype.readUInt8 = function readUInt8(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 1, this.length); - return this[offset]; -}; +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.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.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); +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; -}; + 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); +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]); -}; + 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); +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; + var val = this[offset] + var mul = 1 + var i = 0 while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; + val += this[offset + i] * mul } - mul *= 0x80; + mul *= 0x80 - if (val >= mul) val -= Math.pow(2, 8 * byteLength); + if (val >= mul) val -= Math.pow(2, 8 * byteLength) - return val; -}; + return val +} -Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) { - offset = offset >>> 0; - byteLength = byteLength >>> 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); +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]; + var i = byteLength + var mul = 1 + var val = this[offset + --i] while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul; + val += this[offset + --i] * mul } - mul *= 0x80; + mul *= 0x80 - if (val >= mul) val -= Math.pow(2, 8 * byteLength); + if (val >= mul) val -= Math.pow(2, 8 * byteLength) - return val; -}; + 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.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.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.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); +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; -}; + 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); +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]; -}; + 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.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.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.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); -}; +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'); +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; +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 maxBytes = Math.pow(2, 8 * byteLength) - 1 + checkInt(this, value, offset, byteLength, maxBytes, 0) } - var mul = 1; - var i = 0; - this[offset] = value & 0xFF; + var mul = 1 + var i = 0 + this[offset] = value & 0xFF while (++i < byteLength && (mul *= 0x100)) { - this[offset + i] = value / mul & 0xFF; + this[offset + i] = (value / mul) & 0xFF } - return offset + byteLength; -}; + return offset + byteLength +} -Buffer.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength, noAssert) { - value = +value; - offset = offset >>> 0; - byteLength = byteLength >>> 0; +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 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; + var i = byteLength - 1 + var mul = 1 + this[offset + i] = value & 0xFF while (--i >= 0 && (mul *= 0x100)) { - this[offset + i] = value / mul & 0xFF; + this[offset + i] = (value / mul) & 0xFF } - return offset + byteLength; -}; + 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.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.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.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.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.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; +Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { + value = +value + offset = offset >>> 0 if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); + var limit = Math.pow(2, (8 * byteLength) - 1) - checkInt(this, value, offset, byteLength, limit - 1, -limit); + checkInt(this, value, offset, byteLength, limit - 1, -limit) } - var i = 0; - var mul = 1; - var sub = 0; - this[offset] = value & 0xFF; + 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; + sub = 1 } - this[offset + i] = (value / mul >> 0) - sub & 0xFF; + this[offset + i] = ((value / mul) >> 0) - sub & 0xFF } - return offset + byteLength; -}; + return offset + byteLength +} -Buffer.prototype.writeIntBE = function writeIntBE(value, offset, byteLength, noAssert) { - value = +value; - offset = offset >>> 0; +Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { + value = +value + offset = offset >>> 0 if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); + var limit = Math.pow(2, (8 * byteLength) - 1) - checkInt(this, value, offset, byteLength, limit - 1, -limit); + checkInt(this, value, offset, byteLength, limit - 1, -limit) } - var i = byteLength - 1; - var mul = 1; - var sub = 0; - this[offset + i] = value & 0xFF; + 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; + sub = 1 } - this[offset + i] = (value / mul >> 0) - sub & 0xFF; + this[offset + i] = ((value / mul) >> 0) - sub & 0xFF } - return offset + byteLength; -}; + 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.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.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.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.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; -}; +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 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; +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); + checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38) } - ieee754.write(buf, value, offset, littleEndian, 23, 4); - return offset + 4; + 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.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); -}; +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; +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); + checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308) } - ieee754.write(buf, value, offset, littleEndian, 52, 8); - return offset + 8; + 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.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); -}; +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 (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer'); - 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; +Buffer.prototype.copy = function copy (target, targetStart, start, end) { + if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer') + 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; + 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'); + throw new RangeError('targetStart out of bounds') } - if (start < 0 || start >= this.length) throw new RangeError('Index out of range'); - if (end < 0) throw new RangeError('sourceEnd out of bounds'); + if (start < 0 || start >= this.length) throw new RangeError('Index out of range') + if (end < 0) throw new RangeError('sourceEnd out of bounds') // Are we oob? - if (end > this.length) end = this.length; + if (end > this.length) end = this.length if (target.length - targetStart < end - start) { - end = target.length - targetStart + start; + end = target.length - targetStart + start } - var len = end - start; + var len = end - start if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') { // Use built-in when available, missing from IE11 - this.copyWithin(targetStart, start, end); + this.copyWithin(targetStart, start, end) } else if (this === target && start < targetStart && targetStart < end) { // descending copy from end for (var i = len - 1; i >= 0; --i) { - target[i + targetStart] = this[i + start]; + target[i + targetStart] = this[i + start] } } else { - Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart); + Uint8Array.prototype.set.call( + target, + this.subarray(start, end), + targetStart + ) } - return len; -}; + 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) { +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; + encoding = start + start = 0 + end = this.length } else if (typeof end === 'string') { - encoding = end; - end = this.length; + encoding = end + end = this.length } if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string'); + throw new TypeError('encoding must be a string') } if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding); + throw new TypeError('Unknown encoding: ' + encoding) } if (val.length === 1) { - var code = val.charCodeAt(0); - if (encoding === 'utf8' && code < 128 || encoding === 'latin1') { + var code = val.charCodeAt(0) + if ((encoding === 'utf8' && code < 128) || + encoding === 'latin1') { // Fast path: If `val` fits into a single byte, use that numeric value. - val = code; + val = code } } } else if (typeof val === 'number') { - val = val & 255; + 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'); + throw new RangeError('Out of range index') } if (end <= start) { - return this; + return this } - start = start >>> 0; - end = end === undefined ? this.length : end >>> 0; + start = start >>> 0 + end = end === undefined ? this.length : end >>> 0 - if (!val) val = 0; + if (!val) val = 0 - var i; + var i if (typeof val === 'number') { for (i = start; i < end; ++i) { - this[i] = val; + this[i] = val } } else { - var bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding); - var len = bytes.length; + var bytes = Buffer.isBuffer(val) + ? val + : Buffer.from(val, encoding) + var len = bytes.length if (len === 0) { - throw new TypeError('The value "' + val + '" is invalid for argument "value"'); + throw new TypeError('The value "' + val + + '" is invalid for argument "value"') } for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len]; + this[i + start] = bytes[i % len] } } - return this; -}; + return this +} // HELPER FUNCTIONS // ================ -var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g; +var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g -function base64clean(str) { +function base64clean (str) { // Node takes equal signs as end of the Base64 encoding - str = str.split('=')[0]; + str = str.split('=')[0] // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = str.trim().replace(INVALID_BASE64_RE, ''); + str = str.trim().replace(INVALID_BASE64_RE, '') // Node converts strings with length < 2 to '' - if (str.length < 2) return ''; + 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 + '='; + str = str + '=' } - return str; + return str } -function toHex(n) { - if (n < 16) return '0' + n.toString(16); - return n.toString(16); +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 = []; +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); + codePoint = string.charCodeAt(i) // is surrogate component if (codePoint > 0xD7FF && codePoint < 0xE000) { @@ -128402,194 +136434,206 @@ function utf8ToBytes(string, units) { // no lead yet if (codePoint > 0xDBFF) { // unexpected trail - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - continue; + 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; + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) + continue } // valid lead - leadSurrogate = codePoint; + leadSurrogate = codePoint - continue; + continue } // 2 leads in a row if (codePoint < 0xDC00) { - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - leadSurrogate = codePoint; - continue; + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) + leadSurrogate = codePoint + continue } // valid surrogate pair - codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000; + 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); + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) } - leadSurrogate = null; + leadSurrogate = null // encode utf8 if (codePoint < 0x80) { - if ((units -= 1) < 0) break; - bytes.push(codePoint); + 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); + 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); + 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); + 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'); + throw new Error('Invalid code point') } } - return bytes; + return bytes } -function asciiToBytes(str) { - var byteArray = []; +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); + byteArray.push(str.charCodeAt(i) & 0xFF) } - return byteArray; + return byteArray } -function utf16leToBytes(str, units) { - var c, hi, lo; - var byteArray = []; +function utf16leToBytes (str, units) { + var c, hi, lo + var byteArray = [] for (var i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break; + if ((units -= 2) < 0) break - c = str.charCodeAt(i); - hi = c >> 8; - lo = c % 256; - byteArray.push(lo); - byteArray.push(hi); + c = str.charCodeAt(i) + hi = c >> 8 + lo = c % 256 + byteArray.push(lo) + byteArray.push(hi) } - return byteArray; + return byteArray } -function base64ToBytes(str) { - return base64.toByteArray(base64clean(str)); +function base64ToBytes (str) { + return base64.toByteArray(base64clean(str)) } -function blitBuffer(src, dst, offset, length) { +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]; + if ((i + offset >= dst.length) || (i >= src.length)) break + dst[i + offset] = src[i] } - return i; + return i } // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass // the `instanceof` check but they should be treated as of that type. // See: https://github.com/feross/buffer/issues/166 -function isInstance(obj, type) { - return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name; +function isInstance (obj, type) { + return obj instanceof type || + (obj != null && obj.constructor != null && obj.constructor.name != null && + obj.constructor.name === type.name) } -function numberIsNaN(obj) { +function numberIsNaN (obj) { // For IE11 support - return obj !== obj; // eslint-disable-line no-self-compare + return obj !== obj // eslint-disable-line no-self-compare } -},{"base64-js":355,"ieee754":880}],402:[function(require,module,exports){ +},{"base64-js":369,"ieee754":894}],416:[function(require,module,exports){ arguments[4][185][0].apply(exports,arguments) -},{"dup":185,"inherits":882,"safe-buffer":937,"stream":954,"string_decoder":398}],403:[function(require,module,exports){ +},{"dup":185,"inherits":896,"safe-buffer":951,"stream":968,"string_decoder":412}],417:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var base58 = require('bs58'); -var createHash = require('create-hash'); +var base58 = require('bs58') +var createHash = require('create-hash') -function encode(payload, version) { +function encode (payload, version) { if (Array.isArray(payload) || payload instanceof Uint8Array) { - payload = new Buffer(payload); + payload = new Buffer(payload) } - var buf; + var buf if (version != null) { if (typeof version === 'number') { - version = new Buffer([version]); + version = new Buffer([version]) } - buf = Buffer.concat([version, payload]); + buf = Buffer.concat([version, payload]) } else { - buf = payload; + buf = payload } - var checksum = sha256x2(buf).slice(0, 4); - var result = Buffer.concat([buf, checksum]); - return base58.encode(result); + 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; +function decode (base58str, version) { + var arr = base58.decode(base58str) + var buf = new Buffer(arr) + var versionLength if (version == null) { - versionLength = 0; + versionLength = 0 } else { - if (typeof version === 'number') version = new Buffer([version]); + if (typeof version === 'number') version = new Buffer([version]) - versionLength = version.length; - var versionCompare = buf.slice(0, versionLength); + versionLength = version.length + var versionCompare = buf.slice(0, versionLength) if (versionCompare.toString('hex') !== version.toString('hex')) { - throw new Error('Invalid version'); + throw new Error('Invalid version') } } - var checksum = buf.slice(-4); - var endPos = buf.length - 4; - var bytes = buf.slice(0, endPos); + var checksum = buf.slice(-4) + var endPos = buf.length - 4 + var bytes = buf.slice(0, endPos) - var newChecksum = sha256x2(bytes).slice(0, 4); + var newChecksum = sha256x2(bytes).slice(0, 4) if (checksum.toString('hex') !== newChecksum.toString('hex')) { - throw new Error('Invalid checksum'); + throw new Error('Invalid checksum') } - return bytes.slice(versionLength); + return bytes.slice(versionLength) } -function isValid(base58str, version) { +function isValid (base58str, version) { try { - decode(base58str, version); + decode(base58str, version) } catch (e) { - return false; + return false } - return true; + return true } -function createEncoder(version) { +function createEncoder (version) { return function (payload) { - return encode(payload, version); - }; + return encode(payload, version) + } } -function createDecoder(version) { +function createDecoder (version) { return function (base58str) { - return decode(base58str, version); - }; + return decode(base58str, version) + } } -function createValidator(version) { +function createValidator (version) { return function (base58str) { - return isValid(base58str, version); - }; + return isValid(base58str, version) + } } -function sha256x2(buffer) { - var sha = createHash('sha256').update(buffer).digest(); - return createHash('sha256').update(sha).digest(); +function sha256x2 (buffer) { + var sha = createHash('sha256').update(buffer).digest() + return createHash('sha256').update(sha).digest() } module.exports = { @@ -128599,39 +136643,29 @@ module.exports = { createEncoder: createEncoder, createDecoder: createDecoder, createValidator: createValidator -}; +} }).call(this,require("buffer").Buffer) -},{"bs58":399,"buffer":401,"create-hash":823}],404:[function(require,module,exports){ -'use strict'; - +},{"bs58":413,"buffer":415,"create-hash":837}],418:[function(require,module,exports){ require('../../modules/core.regexp.escape'); module.exports = require('../../modules/_core').RegExp.escape; -},{"../../modules/_core":518,"../../modules/core.regexp.escape":623}],405:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":532,"../../modules/core.regexp.escape":637}],419:[function(require,module,exports){ require('../../modules/es6.object.assign'); module.exports = require('../../modules/_core').Object.assign; -},{"../../modules/_core":418,"../../modules/es6.object.assign":486}],406:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":432,"../../modules/es6.object.assign":500}],420:[function(require,module,exports){ require('../../modules/es6.object.create'); var $Object = require('../../modules/_core').Object; module.exports = function create(P, D) { return $Object.create(P, D); }; -},{"../../modules/_core":418,"../../modules/es6.object.create":487}],407:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":432,"../../modules/es6.object.create":501}],421:[function(require,module,exports){ require('../../modules/es6.object.set-prototype-of'); module.exports = require('../../modules/_core').Object.setPrototypeOf; -},{"../../modules/_core":418,"../../modules/es6.object.set-prototype-of":488}],408:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":432,"../../modules/es6.object.set-prototype-of":502}],422:[function(require,module,exports){ require('../modules/es6.object.to-string'); require('../modules/es6.string.iterator'); require('../modules/web.dom.iterable'); @@ -128640,56 +136674,42 @@ require('../modules/es7.promise.finally'); require('../modules/es7.promise.try'); module.exports = require('../modules/_core').Promise; -},{"../modules/_core":418,"../modules/es6.object.to-string":489,"../modules/es6.promise":490,"../modules/es6.string.iterator":491,"../modules/es7.promise.finally":493,"../modules/es7.promise.try":494,"../modules/web.dom.iterable":497}],409:[function(require,module,exports){ -'use strict'; - +},{"../modules/_core":432,"../modules/es6.object.to-string":503,"../modules/es6.promise":504,"../modules/es6.string.iterator":505,"../modules/es7.promise.finally":507,"../modules/es7.promise.try":508,"../modules/web.dom.iterable":511}],423:[function(require,module,exports){ require('../../modules/es6.symbol'); require('../../modules/es6.object.to-string'); require('../../modules/es7.symbol.async-iterator'); require('../../modules/es7.symbol.observable'); module.exports = require('../../modules/_core').Symbol; -},{"../../modules/_core":418,"../../modules/es6.object.to-string":489,"../../modules/es6.symbol":492,"../../modules/es7.symbol.async-iterator":495,"../../modules/es7.symbol.observable":496}],410:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":432,"../../modules/es6.object.to-string":503,"../../modules/es6.symbol":506,"../../modules/es7.symbol.async-iterator":509,"../../modules/es7.symbol.observable":510}],424:[function(require,module,exports){ require('../../modules/es6.string.iterator'); require('../../modules/web.dom.iterable'); module.exports = require('../../modules/_wks-ext').f('iterator'); -},{"../../modules/_wks-ext":482,"../../modules/es6.string.iterator":491,"../../modules/web.dom.iterable":497}],411:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_wks-ext":496,"../../modules/es6.string.iterator":505,"../../modules/web.dom.iterable":511}],425:[function(require,module,exports){ module.exports = function (it) { if (typeof it != 'function') throw TypeError(it + ' is not a function!'); return it; }; -},{}],412:[function(require,module,exports){ -"use strict"; - -module.exports = function () {/* empty */}; - -},{}],413:[function(require,module,exports){ -'use strict'; +},{}],426:[function(require,module,exports){ +module.exports = function () { /* empty */ }; +},{}],427:[function(require,module,exports){ module.exports = function (it, Constructor, name, forbiddenField) { - if (!(it instanceof Constructor) || forbiddenField !== undefined && forbiddenField in it) { + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { throw TypeError(name + ': incorrect invocation!'); - }return it; + } return it; }; -},{}],414:[function(require,module,exports){ -'use strict'; - +},{}],428:[function(require,module,exports){ var isObject = require('./_is-object'); module.exports = function (it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; -},{"./_is-object":437}],415:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":451}],429:[function(require,module,exports){ // false -> Array#indexOf // true -> Array#includes var toIObject = require('./_to-iobject'); @@ -128707,108 +136727,85 @@ module.exports = function (IS_INCLUDES) { value = O[index++]; // eslint-disable-next-line no-self-compare if (value != value) return true; - // Array#indexOf ignores holes, Array#includes - not - } else for (; length > index; index++) { - if (IS_INCLUDES || index in O) { - if (O[index] === el) return IS_INCLUDES || index || 0; - } - }return !IS_INCLUDES && -1; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { + if (O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; }; }; -},{"./_to-absolute-index":473,"./_to-iobject":475,"./_to-length":476}],416:[function(require,module,exports){ -'use strict'; - +},{"./_to-absolute-index":487,"./_to-iobject":489,"./_to-length":490}],430:[function(require,module,exports){ // getting tag from 19.1.3.6 Object.prototype.toString() var cof = require('./_cof'); var TAG = require('./_wks')('toStringTag'); // ES3 wrong here -var ARG = cof(function () { - return arguments; -}()) == 'Arguments'; +var ARG = cof(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error -var tryGet = function tryGet(it, key) { +var tryGet = function (it, key) { try { return it[key]; - } catch (e) {/* empty */} + } catch (e) { /* empty */ } }; module.exports = function (it) { var O, T, B; return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T - // builtinTag case - : ARG ? cof(O) - // ES3 arguments fallback - : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; + // @@toStringTag case + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T + // builtinTag case + : ARG ? cof(O) + // ES3 arguments fallback + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; }; -},{"./_cof":417,"./_wks":483}],417:[function(require,module,exports){ -"use strict"; - +},{"./_cof":431,"./_wks":497}],431:[function(require,module,exports){ var toString = {}.toString; module.exports = function (it) { return toString.call(it).slice(8, -1); }; -},{}],418:[function(require,module,exports){ -'use strict'; - +},{}],432:[function(require,module,exports){ var core = module.exports = { version: '2.5.7' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef -},{}],419:[function(require,module,exports){ -'use strict'; - +},{}],433:[function(require,module,exports){ // optional / simple context binding var aFunction = require('./_a-function'); module.exports = function (fn, that, length) { aFunction(fn); if (that === undefined) return fn; switch (length) { - case 1: - return function (a) { - return fn.call(that, a); - }; - case 2: - return function (a, b) { - return fn.call(that, a, b); - }; - case 3: - return function (a, b, c) { - return fn.call(that, a, b, c); - }; + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; } - return function () /* ...args */{ + return function (/* ...args */) { return fn.apply(that, arguments); }; }; -},{"./_a-function":411}],420:[function(require,module,exports){ -"use strict"; - +},{"./_a-function":425}],434:[function(require,module,exports){ // 7.2.1 RequireObjectCoercible(argument) module.exports = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; -},{}],421:[function(require,module,exports){ -'use strict'; - +},{}],435:[function(require,module,exports){ // Thank's IE8 for his funny defineProperty module.exports = !require('./_fails')(function () { - return Object.defineProperty({}, 'a', { get: function get() { - return 7; - } }).a != 7; + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); -},{"./_fails":426}],422:[function(require,module,exports){ -'use strict'; - +},{"./_fails":440}],436:[function(require,module,exports){ var isObject = require('./_is-object'); var document = require('./_global').document; // typeof document.createElement is 'object' in old IE @@ -128817,15 +136814,13 @@ module.exports = function (it) { return is ? document.createElement(it) : {}; }; -},{"./_global":428,"./_is-object":437}],423:[function(require,module,exports){ -'use strict'; - +},{"./_global":442,"./_is-object":451}],437:[function(require,module,exports){ // IE 8- don't enum bug keys -module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(','); - -},{}],424:[function(require,module,exports){ -'use strict'; +module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' +).split(','); +},{}],438:[function(require,module,exports){ // all enumerable object keys, includes symbols var getKeys = require('./_object-keys'); var gOPS = require('./_object-gops'); @@ -128838,15 +136833,11 @@ module.exports = function (it) { var isEnum = pIE.f; var i = 0; var key; - while (symbols.length > i) { - if (isEnum.call(it, key = symbols[i++])) result.push(key); - } - }return result; + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); + } return result; }; -},{"./_object-gops":455,"./_object-keys":458,"./_object-pie":459}],425:[function(require,module,exports){ -'use strict'; - +},{"./_object-gops":469,"./_object-keys":472,"./_object-pie":473}],439:[function(require,module,exports){ var global = require('./_global'); var core = require('./_core'); var ctx = require('./_ctx'); @@ -128854,7 +136845,7 @@ var hide = require('./_hide'); var has = require('./_has'); var PROTOTYPE = 'prototype'; -var $export = function $export(type, name, source) { +var $export = function (type, name, source) { var IS_FORCED = type & $export.F; var IS_GLOBAL = type & $export.G; var IS_STATIC = type & $export.S; @@ -128877,23 +136868,20 @@ var $export = function $export(type, name, source) { // bind timers to global for call from export context : IS_BIND && own ? ctx(out, global) // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? function (C) { - var F = function F(a, b, c) { + : IS_WRAP && target[key] == out ? (function (C) { + var F = function (a, b, c) { if (this instanceof C) { switch (arguments.length) { - case 0: - return new C(); - case 1: - return new C(a); - case 2: - return new C(a, b); - }return new C(a, b, c); - }return C.apply(this, arguments); + case 0: return new C(); + case 1: return new C(a); + case 2: return new C(a, b); + } return new C(a, b, c); + } return C.apply(this, arguments); }; F[PROTOTYPE] = C[PROTOTYPE]; return F; - // make static versions for prototype methods - }(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // make static versions for prototype methods + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% if (IS_PROTO) { (exports.virtual || (exports.virtual = {}))[key] = out; @@ -128903,19 +136891,17 @@ var $export = function $export(type, name, source) { } }; // type bitmap -$export.F = 1; // forced -$export.G = 2; // global -$export.S = 4; // static -$export.P = 8; // proto -$export.B = 16; // bind -$export.W = 32; // wrap -$export.U = 64; // safe +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe $export.R = 128; // real proto method for `library` module.exports = $export; -},{"./_core":418,"./_ctx":419,"./_global":428,"./_has":429,"./_hide":430}],426:[function(require,module,exports){ -"use strict"; - +},{"./_core":432,"./_ctx":433,"./_global":442,"./_has":443,"./_hide":444}],440:[function(require,module,exports){ module.exports = function (exec) { try { return !!exec(); @@ -128924,9 +136910,7 @@ module.exports = function (exec) { } }; -},{}],427:[function(require,module,exports){ -'use strict'; - +},{}],441:[function(require,module,exports){ var ctx = require('./_ctx'); var call = require('./_iter-call'); var isArrayIter = require('./_is-array-iter'); @@ -128935,10 +136919,8 @@ var toLength = require('./_to-length'); var getIterFn = require('./core.get-iterator-method'); var BREAK = {}; var RETURN = {}; -var _exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { - var iterFn = ITERATOR ? function () { - return iterable; - } : getIterFn(iterable); +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); var f = ctx(fn, that, entries ? 2 : 1); var index = 0; var length, step, iterator, result; @@ -128952,29 +136934,24 @@ var _exports = module.exports = function (iterable, entries, fn, that, ITERATOR) if (result === BREAK || result === RETURN) return result; } }; -_exports.BREAK = BREAK; -_exports.RETURN = RETURN; - -},{"./_an-object":414,"./_ctx":419,"./_is-array-iter":435,"./_iter-call":438,"./_to-length":476,"./core.get-iterator-method":484}],428:[function(require,module,exports){ -'use strict'; +exports.BREAK = BREAK; +exports.RETURN = RETURN; +},{"./_an-object":428,"./_ctx":433,"./_is-array-iter":449,"./_iter-call":452,"./_to-length":490,"./core.get-iterator-method":498}],442:[function(require,module,exports){ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self -// eslint-disable-next-line no-new-func -: Function('return this')(); +var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef -},{}],429:[function(require,module,exports){ -"use strict"; - +},{}],443:[function(require,module,exports){ var hasOwnProperty = {}.hasOwnProperty; module.exports = function (it, key) { return hasOwnProperty.call(it, key); }; -},{}],430:[function(require,module,exports){ -'use strict'; - +},{}],444:[function(require,module,exports){ var dP = require('./_object-dp'); var createDesc = require('./_property-desc'); module.exports = require('./_descriptors') ? function (object, key, value) { @@ -128984,44 +136961,34 @@ module.exports = require('./_descriptors') ? function (object, key, value) { return object; }; -},{"./_descriptors":421,"./_object-dp":450,"./_property-desc":462}],431:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":435,"./_object-dp":464,"./_property-desc":476}],445:[function(require,module,exports){ var document = require('./_global').document; module.exports = document && document.documentElement; -},{"./_global":428}],432:[function(require,module,exports){ -'use strict'; - +},{"./_global":442}],446:[function(require,module,exports){ module.exports = !require('./_descriptors') && !require('./_fails')(function () { - return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function get() { - return 7; - } }).a != 7; + return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7; }); -},{"./_descriptors":421,"./_dom-create":422,"./_fails":426}],433:[function(require,module,exports){ -"use strict"; - +},{"./_descriptors":435,"./_dom-create":436,"./_fails":440}],447:[function(require,module,exports){ // fast apply, http://jsperf.lnkit.com/fast-apply/5 module.exports = function (fn, args, that) { - var un = that === undefined; - switch (args.length) { - case 0: - return un ? fn() : fn.call(that); - case 1: - return un ? fn(args[0]) : fn.call(that, args[0]); - case 2: - return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); - case 3: - return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); - case 4: - return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]); - }return fn.apply(that, args); -}; - -},{}],434:[function(require,module,exports){ -'use strict'; - + var un = that === undefined; + switch (args.length) { + case 0: return un ? fn() + : fn.call(that); + case 1: return un ? fn(args[0]) + : fn.call(that, args[0]); + case 2: return un ? fn(args[0], args[1]) + : fn.call(that, args[0], args[1]); + case 3: return un ? fn(args[0], args[1], args[2]) + : fn.call(that, args[0], args[1], args[2]); + case 4: return un ? fn(args[0], args[1], args[2], args[3]) + : fn.call(that, args[0], args[1], args[2], args[3]); + } return fn.apply(that, args); +}; + +},{}],448:[function(require,module,exports){ // fallback for non-array-like ES3 and non-enumerable old V8 strings var cof = require('./_cof'); // eslint-disable-next-line no-prototype-builtins @@ -129029,9 +136996,7 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { return cof(it) == 'String' ? it.split('') : Object(it); }; -},{"./_cof":417}],435:[function(require,module,exports){ -'use strict'; - +},{"./_cof":431}],449:[function(require,module,exports){ // check on default Array iterator var Iterators = require('./_iterators'); var ITERATOR = require('./_wks')('iterator'); @@ -129041,33 +137006,25 @@ module.exports = function (it) { return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); }; -},{"./_iterators":443,"./_wks":483}],436:[function(require,module,exports){ -'use strict'; - +},{"./_iterators":457,"./_wks":497}],450:[function(require,module,exports){ // 7.2.2 IsArray(argument) var cof = require('./_cof'); module.exports = Array.isArray || function isArray(arg) { return cof(arg) == 'Array'; }; -},{"./_cof":417}],437:[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; }; - +},{"./_cof":431}],451:[function(require,module,exports){ module.exports = function (it) { - return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) === 'object' ? it !== null : typeof it === 'function'; + return typeof it === 'object' ? it !== null : typeof it === 'function'; }; -},{}],438:[function(require,module,exports){ -'use strict'; - +},{}],452:[function(require,module,exports){ // call something on iterator step with safe closing on error var anObject = require('./_an-object'); module.exports = function (iterator, fn, value, entries) { try { return entries ? fn(anObject(value)[0], value[1]) : fn(value); - // 7.4.6 IteratorClose(iterator, completion) + // 7.4.6 IteratorClose(iterator, completion) } catch (e) { var ret = iterator['return']; if (ret !== undefined) anObject(ret.call(iterator)); @@ -129075,27 +137032,23 @@ module.exports = function (iterator, fn, value, entries) { } }; -},{"./_an-object":414}],439:[function(require,module,exports){ +},{"./_an-object":428}],453:[function(require,module,exports){ 'use strict'; - var create = require('./_object-create'); var descriptor = require('./_property-desc'); var setToStringTag = require('./_set-to-string-tag'); var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -require('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { - return this; -}); +require('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; }); module.exports = function (Constructor, NAME, next) { Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); setToStringTag(Constructor, NAME + ' Iterator'); }; -},{"./_hide":430,"./_object-create":449,"./_property-desc":462,"./_set-to-string-tag":467,"./_wks":483}],440:[function(require,module,exports){ +},{"./_hide":444,"./_object-create":463,"./_property-desc":476,"./_set-to-string-tag":481,"./_wks":497}],454:[function(require,module,exports){ 'use strict'; - var LIBRARY = require('./_library'); var $export = require('./_export'); var redefine = require('./_redefine'); @@ -129110,26 +137063,16 @@ var FF_ITERATOR = '@@iterator'; var KEYS = 'keys'; var VALUES = 'values'; -var returnThis = function returnThis() { - return this; -}; +var returnThis = function () { return this; }; module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { $iterCreate(Constructor, NAME, next); - var getMethod = function getMethod(kind) { + var getMethod = function (kind) { if (!BUGGY && kind in proto) return proto[kind]; switch (kind) { - case KEYS: - return function keys() { - return new Constructor(this, kind); - }; - case VALUES: - return function values() { - return new Constructor(this, kind); - }; - }return function entries() { - return new Constructor(this, kind); - }; + case KEYS: return function keys() { return new Constructor(this, kind); }; + case VALUES: return function values() { return new Constructor(this, kind); }; + } return function entries() { return new Constructor(this, kind); }; }; var TAG = NAME + ' Iterator'; var DEF_VALUES = DEFAULT == VALUES; @@ -129153,9 +137096,7 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE // fix Array#{values, @@iterator}.name in V8 / FF if (DEF_VALUES && $native && $native.name !== VALUES) { VALUES_BUG = true; - $default = function values() { - return $native.call(this); - }; + $default = function values() { return $native.call(this); }; } // Define iterator if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { @@ -129177,22 +137118,16 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE return methods; }; -},{"./_export":425,"./_hide":430,"./_iter-create":439,"./_iterators":443,"./_library":444,"./_object-gpo":456,"./_redefine":464,"./_set-to-string-tag":467,"./_wks":483}],441:[function(require,module,exports){ -'use strict'; - +},{"./_export":439,"./_hide":444,"./_iter-create":453,"./_iterators":457,"./_library":458,"./_object-gpo":470,"./_redefine":478,"./_set-to-string-tag":481,"./_wks":497}],455:[function(require,module,exports){ var ITERATOR = require('./_wks')('iterator'); var SAFE_CLOSING = false; try { var riter = [7][ITERATOR](); - riter['return'] = function () { - SAFE_CLOSING = true; - }; + riter['return'] = function () { SAFE_CLOSING = true; }; // eslint-disable-next-line no-throw-literal - Array.from(riter, function () { - throw 2; - }); -} catch (e) {/* empty */} + Array.from(riter, function () { throw 2; }); +} catch (e) { /* empty */ } module.exports = function (exec, skipClosing) { if (!skipClosing && !SAFE_CLOSING) return false; @@ -129200,39 +137135,25 @@ module.exports = function (exec, skipClosing) { try { var arr = [7]; var iter = arr[ITERATOR](); - iter.next = function () { - return { done: safe = true }; - }; - arr[ITERATOR] = function () { - return iter; - }; + iter.next = function () { return { done: safe = true }; }; + arr[ITERATOR] = function () { return iter; }; exec(arr); - } catch (e) {/* empty */} + } catch (e) { /* empty */ } return safe; }; -},{"./_wks":483}],442:[function(require,module,exports){ -"use strict"; - +},{"./_wks":497}],456:[function(require,module,exports){ module.exports = function (done, value) { return { value: value, done: !!done }; }; -},{}],443:[function(require,module,exports){ -"use strict"; - +},{}],457:[function(require,module,exports){ module.exports = {}; -},{}],444:[function(require,module,exports){ -"use strict"; - +},{}],458:[function(require,module,exports){ module.exports = true; -},{}],445:[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; }; - +},{}],459:[function(require,module,exports){ var META = require('./_uid')('meta'); var isObject = require('./_is-object'); var has = require('./_has'); @@ -129244,15 +137165,15 @@ var isExtensible = Object.isExtensible || function () { var FREEZE = !require('./_fails')(function () { return isExtensible(Object.preventExtensions({})); }); -var setMeta = function setMeta(it) { +var setMeta = function (it) { setDesc(it, META, { value: { - i: 'O' + ++id, // object ID - w: {} // weak collections IDs - } }); + i: 'O' + ++id, // object ID + w: {} // weak collections IDs + } }); }; -var fastKey = function fastKey(it, create) { +var fastKey = function (it, create) { // return primitive with prefix - if (!isObject(it)) return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return 'F'; @@ -129260,10 +137181,10 @@ var fastKey = function fastKey(it, create) { if (!create) return 'E'; // add missing metadata setMeta(it); - // return object ID - }return it[META].i; + // return object ID + } return it[META].i; }; -var getWeak = function getWeak(it, create) { +var getWeak = function (it, create) { if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return true; @@ -129271,11 +137192,11 @@ var getWeak = function getWeak(it, create) { if (!create) return false; // add missing metadata setMeta(it); - // return hash weak collections IDs - }return it[META].w; + // return hash weak collections IDs + } return it[META].w; }; // add metadata on freeze-family methods calling -var onFreeze = function onFreeze(it) { +var onFreeze = function (it) { if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); return it; }; @@ -129287,9 +137208,7 @@ var meta = module.exports = { onFreeze: onFreeze }; -},{"./_fails":426,"./_has":429,"./_is-object":437,"./_object-dp":450,"./_uid":479}],446:[function(require,module,exports){ -'use strict'; - +},{"./_fails":440,"./_has":443,"./_is-object":451,"./_object-dp":464,"./_uid":493}],460:[function(require,module,exports){ var global = require('./_global'); var macrotask = require('./_task').set; var Observer = global.MutationObserver || global.WebKitMutationObserver; @@ -129300,7 +137219,7 @@ var isNode = require('./_cof')(process) == 'process'; module.exports = function () { var head, last, notify; - var flush = function flush() { + var flush = function () { var parent, fn; if (isNode && (parent = process.domain)) parent.exit(); while (head) { @@ -129309,41 +137228,42 @@ module.exports = function () { try { fn(); } catch (e) { - if (head) notify();else last = undefined; + if (head) notify(); + else last = undefined; throw e; } - }last = undefined; + } last = undefined; if (parent) parent.enter(); }; // Node.js if (isNode) { - notify = function notify() { + notify = function () { process.nextTick(flush); }; - // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 + // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 } else if (Observer && !(global.navigator && global.navigator.standalone)) { var toggle = true; var node = document.createTextNode(''); new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new - notify = function notify() { + notify = function () { node.data = toggle = !toggle; }; - // environments with maybe non-completely correct, but existent Promise + // environments with maybe non-completely correct, but existent Promise } else if (Promise && Promise.resolve) { // Promise.resolve without an argument throws an error in LG WebOS 2 var promise = Promise.resolve(undefined); - notify = function notify() { + notify = function () { promise.then(flush); }; - // for other environments - macrotask based on: - // - setImmediate - // - MessageChannel - // - window.postMessag - // - onreadystatechange - // - setTimeout + // for other environments - macrotask based on: + // - setImmediate + // - MessageChannel + // - window.postMessag + // - onreadystatechange + // - setTimeout } else { - notify = function notify() { + notify = function () { // strange IE + webpack dev server bug - use .call(global) macrotask.call(global, flush); }; @@ -129355,14 +137275,13 @@ module.exports = function () { if (!head) { head = task; notify(); - }last = task; + } last = task; }; }; -},{"./_cof":417,"./_global":428,"./_task":472}],447:[function(require,module,exports){ +},{"./_cof":431,"./_global":442,"./_task":486}],461:[function(require,module,exports){ 'use strict'; // 25.4.1.5 NewPromiseCapability(C) - var aFunction = require('./_a-function'); function PromiseCapability(C) { @@ -129380,10 +137299,9 @@ module.exports.f = function (C) { return new PromiseCapability(C); }; -},{"./_a-function":411}],448:[function(require,module,exports){ +},{"./_a-function":425}],462:[function(require,module,exports){ 'use strict'; // 19.1.2.1 Object.assign(target, source, ...) - var getKeys = require('./_object-keys'); var gOPS = require('./_object-gops'); var pIE = require('./_object-pie'); @@ -129399,12 +137317,9 @@ module.exports = !$assign || require('./_fails')(function () { var S = Symbol(); var K = 'abcdefghijklmnopqrst'; A[S] = 7; - K.split('').forEach(function (k) { - B[k] = k; - }); + K.split('').forEach(function (k) { B[k] = k; }); return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; -}) ? function assign(target, source) { - // eslint-disable-line no-unused-vars +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars var T = toObject(target); var aLen = arguments.length; var index = 1; @@ -129416,25 +137331,21 @@ module.exports = !$assign || require('./_fails')(function () { var length = keys.length; var j = 0; var key; - while (length > j) { - if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; - } - }return T; + while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; + } return T; } : $assign; -},{"./_fails":426,"./_iobject":434,"./_object-gops":455,"./_object-keys":458,"./_object-pie":459,"./_to-object":477}],449:[function(require,module,exports){ -'use strict'; - +},{"./_fails":440,"./_iobject":448,"./_object-gops":469,"./_object-keys":472,"./_object-pie":473,"./_to-object":491}],463:[function(require,module,exports){ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = require('./_an-object'); var dPs = require('./_object-dps'); var enumBugKeys = require('./_enum-bug-keys'); var IE_PROTO = require('./_shared-key')('IE_PROTO'); -var Empty = function Empty() {/* empty */}; +var Empty = function () { /* empty */ }; var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype -var _createDict = function createDict() { +var createDict = function () { // Thrash, waste and sodomy: IE GC bug var iframe = require('./_dom-create')('iframe'); var i = enumBugKeys.length; @@ -129450,10 +137361,9 @@ var _createDict = function createDict() { iframeDocument.open(); iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); iframeDocument.close(); - _createDict = iframeDocument.F; - while (i--) { - delete _createDict[PROTOTYPE][enumBugKeys[i]]; - }return _createDict(); + createDict = iframeDocument.F; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; + return createDict(); }; module.exports = Object.create || function create(O, Properties) { @@ -129464,13 +137374,11 @@ module.exports = Object.create || function create(O, Properties) { Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; - } else result = _createDict(); + } else result = createDict(); return Properties === undefined ? result : dPs(result, Properties); }; -},{"./_an-object":414,"./_dom-create":422,"./_enum-bug-keys":423,"./_html":431,"./_object-dps":451,"./_shared-key":468}],450:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":428,"./_dom-create":436,"./_enum-bug-keys":437,"./_html":445,"./_object-dps":465,"./_shared-key":482}],464:[function(require,module,exports){ var anObject = require('./_an-object'); var IE8_DOM_DEFINE = require('./_ie8-dom-define'); var toPrimitive = require('./_to-primitive'); @@ -129482,15 +137390,13 @@ exports.f = require('./_descriptors') ? Object.defineProperty : function defineP anObject(Attributes); if (IE8_DOM_DEFINE) try { return dP(O, P, Attributes); - } catch (e) {/* empty */} + } catch (e) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; -},{"./_an-object":414,"./_descriptors":421,"./_ie8-dom-define":432,"./_to-primitive":478}],451:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":428,"./_descriptors":435,"./_ie8-dom-define":446,"./_to-primitive":492}],465:[function(require,module,exports){ var dP = require('./_object-dp'); var anObject = require('./_an-object'); var getKeys = require('./_object-keys'); @@ -129501,14 +137407,11 @@ module.exports = require('./_descriptors') ? Object.defineProperties : function var length = keys.length; var i = 0; var P; - while (length > i) { - dP.f(O, P = keys[i++], Properties[P]); - }return O; + while (length > i) dP.f(O, P = keys[i++], Properties[P]); + return O; }; -},{"./_an-object":414,"./_descriptors":421,"./_object-dp":450,"./_object-keys":458}],452:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":428,"./_descriptors":435,"./_object-dp":464,"./_object-keys":472}],466:[function(require,module,exports){ var pIE = require('./_object-pie'); var createDesc = require('./_property-desc'); var toIObject = require('./_to-iobject'); @@ -129522,23 +137425,20 @@ exports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor P = toPrimitive(P, true); if (IE8_DOM_DEFINE) try { return gOPD(O, P); - } catch (e) {/* empty */} + } catch (e) { /* empty */ } if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); }; -},{"./_descriptors":421,"./_has":429,"./_ie8-dom-define":432,"./_object-pie":459,"./_property-desc":462,"./_to-iobject":475,"./_to-primitive":478}],453:[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; }; - +},{"./_descriptors":435,"./_has":443,"./_ie8-dom-define":446,"./_object-pie":473,"./_property-desc":476,"./_to-iobject":489,"./_to-primitive":492}],467:[function(require,module,exports){ // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window var toIObject = require('./_to-iobject'); var gOPN = require('./_object-gopn').f; var toString = {}.toString; -var windowNames = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames + ? Object.getOwnPropertyNames(window) : []; -var getWindowNames = function getWindowNames(it) { +var getWindowNames = function (it) { try { return gOPN(it); } catch (e) { @@ -129550,9 +137450,7 @@ module.exports.f = function getOwnPropertyNames(it) { return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); }; -},{"./_object-gopn":454,"./_to-iobject":475}],454:[function(require,module,exports){ -'use strict'; - +},{"./_object-gopn":468,"./_to-iobject":489}],468:[function(require,module,exports){ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) var $keys = require('./_object-keys-internal'); var hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype'); @@ -129561,14 +137459,10 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return $keys(O, hiddenKeys); }; -},{"./_enum-bug-keys":423,"./_object-keys-internal":457}],455:[function(require,module,exports){ -"use strict"; - +},{"./_enum-bug-keys":437,"./_object-keys-internal":471}],469:[function(require,module,exports){ exports.f = Object.getOwnPropertySymbols; -},{}],456:[function(require,module,exports){ -'use strict'; - +},{}],470:[function(require,module,exports){ // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) var has = require('./_has'); var toObject = require('./_to-object'); @@ -129580,12 +137474,10 @@ module.exports = Object.getPrototypeOf || function (O) { if (has(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; - }return O instanceof Object ? ObjectProto : null; + } return O instanceof Object ? ObjectProto : null; }; -},{"./_has":429,"./_shared-key":468,"./_to-object":477}],457:[function(require,module,exports){ -'use strict'; - +},{"./_has":443,"./_shared-key":482,"./_to-object":491}],471:[function(require,module,exports){ var has = require('./_has'); var toIObject = require('./_to-iobject'); var arrayIndexOf = require('./_array-includes')(false); @@ -129596,19 +137488,15 @@ module.exports = function (object, names) { var i = 0; var result = []; var key; - for (key in O) { - if (key != IE_PROTO) has(O, key) && result.push(key); - } // Don't enum bug & hidden keys - while (names.length > i) { - if (has(O, key = names[i++])) { - ~arrayIndexOf(result, key) || result.push(key); - } - }return result; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; }; -},{"./_array-includes":415,"./_has":429,"./_shared-key":468,"./_to-iobject":475}],458:[function(require,module,exports){ -'use strict'; - +},{"./_array-includes":429,"./_has":443,"./_shared-key":482,"./_to-iobject":489}],472:[function(require,module,exports){ // 19.1.2.14 / 15.2.3.14 Object.keys(O) var $keys = require('./_object-keys-internal'); var enumBugKeys = require('./_enum-bug-keys'); @@ -129617,14 +137505,10 @@ module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); }; -},{"./_enum-bug-keys":423,"./_object-keys-internal":457}],459:[function(require,module,exports){ -"use strict"; - +},{"./_enum-bug-keys":437,"./_object-keys-internal":471}],473:[function(require,module,exports){ exports.f = {}.propertyIsEnumerable; -},{}],460:[function(require,module,exports){ -"use strict"; - +},{}],474:[function(require,module,exports){ module.exports = function (exec) { try { return { e: false, v: exec() }; @@ -129633,9 +137517,7 @@ module.exports = function (exec) { } }; -},{}],461:[function(require,module,exports){ -'use strict'; - +},{}],475:[function(require,module,exports){ var anObject = require('./_an-object'); var isObject = require('./_is-object'); var newPromiseCapability = require('./_new-promise-capability'); @@ -129649,9 +137531,7 @@ module.exports = function (C, x) { return promiseCapability.promise; }; -},{"./_an-object":414,"./_is-object":437,"./_new-promise-capability":447}],462:[function(require,module,exports){ -"use strict"; - +},{"./_an-object":428,"./_is-object":451,"./_new-promise-capability":461}],476:[function(require,module,exports){ module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), @@ -129661,54 +137541,47 @@ module.exports = function (bitmap, value) { }; }; -},{}],463:[function(require,module,exports){ -'use strict'; - +},{}],477:[function(require,module,exports){ var hide = require('./_hide'); module.exports = function (target, src, safe) { for (var key in src) { - if (safe && target[key]) target[key] = src[key];else hide(target, key, src[key]); - }return target; + if (safe && target[key]) target[key] = src[key]; + else hide(target, key, src[key]); + } return target; }; -},{"./_hide":430}],464:[function(require,module,exports){ -'use strict'; - +},{"./_hide":444}],478:[function(require,module,exports){ module.exports = require('./_hide'); -},{"./_hide":430}],465:[function(require,module,exports){ -'use strict'; - +},{"./_hide":444}],479:[function(require,module,exports){ // Works with __proto__ only. Old v8 can't work with null proto objects. /* eslint-disable no-proto */ var isObject = require('./_is-object'); var anObject = require('./_an-object'); -var check = function check(O, proto) { +var check = function (O, proto) { anObject(O); if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); }; module.exports = { set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line - function (test, buggy, set) { - try { - set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2); - set(test, []); - buggy = !(test instanceof Array); - } catch (e) { - buggy = true; - } - return function setPrototypeOf(O, proto) { - check(O, proto); - if (buggy) O.__proto__ = proto;else set(O, proto); - return O; - }; - }({}, false) : undefined), + function (test, buggy, set) { + try { + set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2); + set(test, []); + buggy = !(test instanceof Array); + } catch (e) { buggy = true; } + return function setPrototypeOf(O, proto) { + check(O, proto); + if (buggy) O.__proto__ = proto; + else set(O, proto); + return O; + }; + }({}, false) : undefined), check: check }; -},{"./_an-object":414,"./_ctx":419,"./_is-object":437,"./_object-gopd":452}],466:[function(require,module,exports){ +},{"./_an-object":428,"./_ctx":433,"./_is-object":451,"./_object-gopd":466}],480:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var core = require('./_core'); var dP = require('./_object-dp'); @@ -129719,15 +137592,11 @@ module.exports = function (KEY) { var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { configurable: true, - get: function get() { - return this; - } + get: function () { return this; } }); }; -},{"./_core":418,"./_descriptors":421,"./_global":428,"./_object-dp":450,"./_wks":483}],467:[function(require,module,exports){ -'use strict'; - +},{"./_core":432,"./_descriptors":435,"./_global":442,"./_object-dp":464,"./_wks":497}],481:[function(require,module,exports){ var def = require('./_object-dp').f; var has = require('./_has'); var TAG = require('./_wks')('toStringTag'); @@ -129736,18 +137605,14 @@ module.exports = function (it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); }; -},{"./_has":429,"./_object-dp":450,"./_wks":483}],468:[function(require,module,exports){ -'use strict'; - +},{"./_has":443,"./_object-dp":464,"./_wks":497}],482:[function(require,module,exports){ var shared = require('./_shared')('keys'); var uid = require('./_uid'); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; -},{"./_shared":469,"./_uid":479}],469:[function(require,module,exports){ -'use strict'; - +},{"./_shared":483,"./_uid":493}],483:[function(require,module,exports){ var core = require('./_core'); var global = require('./_global'); var SHARED = '__core-js_shared__'; @@ -129761,9 +137626,7 @@ var store = global[SHARED] || (global[SHARED] = {}); copyright: '© 2018 Denis Pushkarev (zloirock.ru)' }); -},{"./_core":418,"./_global":428,"./_library":444}],470:[function(require,module,exports){ -'use strict'; - +},{"./_core":432,"./_global":442,"./_library":458}],484:[function(require,module,exports){ // 7.3.20 SpeciesConstructor(O, defaultConstructor) var anObject = require('./_an-object'); var aFunction = require('./_a-function'); @@ -129774,9 +137637,7 @@ module.exports = function (O, D) { return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); }; -},{"./_a-function":411,"./_an-object":414,"./_wks":483}],471:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":425,"./_an-object":428,"./_wks":497}],485:[function(require,module,exports){ var toInteger = require('./_to-integer'); var defined = require('./_defined'); // true -> String#at @@ -129789,13 +137650,13 @@ module.exports = function (TO_STRING) { var a, b; if (i < 0 || i >= l) return TO_STRING ? '' : undefined; a = s.charCodeAt(i); - return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff + ? TO_STRING ? s.charAt(i) : a + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; -},{"./_defined":420,"./_to-integer":474}],472:[function(require,module,exports){ -'use strict'; - +},{"./_defined":434,"./_to-integer":488}],486:[function(require,module,exports){ var ctx = require('./_ctx'); var invoke = require('./_invoke'); var html = require('./_html'); @@ -129810,7 +137671,7 @@ var counter = 0; var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; var defer, channel, port; -var run = function run() { +var run = function () { var id = +this; // eslint-disable-next-line no-prototype-builtins if (queue.hasOwnProperty(id)) { @@ -129819,7 +137680,7 @@ var run = function run() { fn(); } }; -var listener = function listener(event) { +var listener = function (event) { run.call(event.data); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: @@ -129827,9 +137688,8 @@ if (!setTask || !clearTask) { setTask = function setImmediate(fn) { var args = []; var i = 1; - while (arguments.length > i) { - args.push(arguments[i++]); - }queue[++counter] = function () { + while (arguments.length > i) args.push(arguments[i++]); + queue[++counter] = function () { // eslint-disable-next-line no-new-func invoke(typeof fn == 'function' ? fn : Function(fn), args); }; @@ -129841,38 +137701,38 @@ if (!setTask || !clearTask) { }; // Node.js 0.8- if (require('./_cof')(process) == 'process') { - defer = function defer(id) { + defer = function (id) { process.nextTick(ctx(run, id, 1)); }; - // Sphere (JS game engine) Dispatch API + // Sphere (JS game engine) Dispatch API } else if (Dispatch && Dispatch.now) { - defer = function defer(id) { + defer = function (id) { Dispatch.now(ctx(run, id, 1)); }; - // Browsers with MessageChannel, includes WebWorkers + // Browsers with MessageChannel, includes WebWorkers } else if (MessageChannel) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = listener; defer = ctx(port.postMessage, port, 1); - // Browsers with postMessage, skip WebWorkers - // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' + // Browsers with postMessage, skip WebWorkers + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { - defer = function defer(id) { + defer = function (id) { global.postMessage(id + '', '*'); }; global.addEventListener('message', listener, false); - // IE8- + // IE8- } else if (ONREADYSTATECHANGE in cel('script')) { - defer = function defer(id) { + defer = function (id) { html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { html.removeChild(this); run.call(id); }; }; - // Rest old browsers + // Rest old browsers } else { - defer = function defer(id) { + defer = function (id) { setTimeout(ctx(run, id, 1), 0); }; } @@ -129882,9 +137742,7 @@ module.exports = { clear: clearTask }; -},{"./_cof":417,"./_ctx":419,"./_dom-create":422,"./_global":428,"./_html":431,"./_invoke":433}],473:[function(require,module,exports){ -'use strict'; - +},{"./_cof":431,"./_ctx":433,"./_dom-create":436,"./_global":442,"./_html":445,"./_invoke":447}],487:[function(require,module,exports){ var toInteger = require('./_to-integer'); var max = Math.max; var min = Math.min; @@ -129893,9 +137751,7 @@ module.exports = function (index, length) { return index < 0 ? max(index + length, 0) : min(index, length); }; -},{"./_to-integer":474}],474:[function(require,module,exports){ -"use strict"; - +},{"./_to-integer":488}],488:[function(require,module,exports){ // 7.1.4 ToInteger var ceil = Math.ceil; var floor = Math.floor; @@ -129903,9 +137759,7 @@ module.exports = function (it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; -},{}],475:[function(require,module,exports){ -'use strict'; - +},{}],489:[function(require,module,exports){ // to indexed object, toObject with fallback for non-array-like ES3 strings var IObject = require('./_iobject'); var defined = require('./_defined'); @@ -129913,9 +137767,7 @@ module.exports = function (it) { return IObject(defined(it)); }; -},{"./_defined":420,"./_iobject":434}],476:[function(require,module,exports){ -'use strict'; - +},{"./_defined":434,"./_iobject":448}],490:[function(require,module,exports){ // 7.1.15 ToLength var toInteger = require('./_to-integer'); var min = Math.min; @@ -129923,18 +137775,14 @@ module.exports = function (it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; -},{"./_to-integer":474}],477:[function(require,module,exports){ -'use strict'; - +},{"./_to-integer":488}],491:[function(require,module,exports){ // 7.1.13 ToObject(argument) var defined = require('./_defined'); module.exports = function (it) { return Object(defined(it)); }; -},{"./_defined":420}],478:[function(require,module,exports){ -'use strict'; - +},{"./_defined":434}],492:[function(require,module,exports){ // 7.1.1 ToPrimitive(input [, PreferredType]) var isObject = require('./_is-object'); // instead of the ES6 spec version, we didn't implement @@toPrimitive case @@ -129948,26 +137796,20 @@ module.exports = function (it, S) { throw TypeError("Can't convert object to primitive value"); }; -},{"./_is-object":437}],479:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":451}],493:[function(require,module,exports){ var id = 0; var px = Math.random(); module.exports = function (key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; -},{}],480:[function(require,module,exports){ -'use strict'; - +},{}],494:[function(require,module,exports){ var global = require('./_global'); var navigator = global.navigator; module.exports = navigator && navigator.userAgent || ''; -},{"./_global":428}],481:[function(require,module,exports){ -'use strict'; - +},{"./_global":442}],495:[function(require,module,exports){ var global = require('./_global'); var core = require('./_core'); var LIBRARY = require('./_library'); @@ -129978,38 +137820,34 @@ module.exports = function (name) { if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); }; -},{"./_core":418,"./_global":428,"./_library":444,"./_object-dp":450,"./_wks-ext":482}],482:[function(require,module,exports){ -'use strict'; - +},{"./_core":432,"./_global":442,"./_library":458,"./_object-dp":464,"./_wks-ext":496}],496:[function(require,module,exports){ exports.f = require('./_wks'); -},{"./_wks":483}],483:[function(require,module,exports){ -'use strict'; - +},{"./_wks":497}],497:[function(require,module,exports){ var store = require('./_shared')('wks'); var uid = require('./_uid'); -var _Symbol = require('./_global').Symbol; -var USE_SYMBOL = typeof _Symbol == 'function'; +var Symbol = require('./_global').Symbol; +var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { - return store[name] || (store[name] = USE_SYMBOL && _Symbol[name] || (USE_SYMBOL ? _Symbol : uid)('Symbol.' + name)); + return store[name] || (store[name] = + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; -},{"./_global":428,"./_shared":469,"./_uid":479}],484:[function(require,module,exports){ -'use strict'; - +},{"./_global":442,"./_shared":483,"./_uid":493}],498:[function(require,module,exports){ var classof = require('./_classof'); var ITERATOR = require('./_wks')('iterator'); var Iterators = require('./_iterators'); module.exports = require('./_core').getIteratorMethod = function (it) { - if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; + if (it != undefined) return it[ITERATOR] + || it['@@iterator'] + || Iterators[classof(it)]; }; -},{"./_classof":416,"./_core":418,"./_iterators":443,"./_wks":483}],485:[function(require,module,exports){ +},{"./_classof":430,"./_core":432,"./_iterators":457,"./_wks":497}],499:[function(require,module,exports){ 'use strict'; - var addToUnscopables = require('./_add-to-unscopables'); var step = require('./_iter-step'); var Iterators = require('./_iterators'); @@ -130021,9 +137859,9 @@ var toIObject = require('./_to-iobject'); // 22.1.3.30 Array.prototype[@@iterator]() module.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) { this._t = toIObject(iterated); // target - this._i = 0; // next index - this._k = kind; // kind - // 22.1.5.2.1 %ArrayIteratorPrototype%.next() + this._i = 0; // next index + this._k = kind; // kind +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() }, function () { var O = this._t; var kind = this._k; @@ -130044,34 +137882,26 @@ addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); -},{"./_add-to-unscopables":412,"./_iter-define":440,"./_iter-step":442,"./_iterators":443,"./_to-iobject":475}],486:[function(require,module,exports){ -'use strict'; - +},{"./_add-to-unscopables":426,"./_iter-define":454,"./_iter-step":456,"./_iterators":457,"./_to-iobject":489}],500:[function(require,module,exports){ // 19.1.3.1 Object.assign(target, source) var $export = require('./_export'); $export($export.S + $export.F, 'Object', { assign: require('./_object-assign') }); -},{"./_export":425,"./_object-assign":448}],487:[function(require,module,exports){ -'use strict'; - +},{"./_export":439,"./_object-assign":462}],501:[function(require,module,exports){ var $export = require('./_export'); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) $export($export.S, 'Object', { create: require('./_object-create') }); -},{"./_export":425,"./_object-create":449}],488:[function(require,module,exports){ -'use strict'; - +},{"./_export":439,"./_object-create":463}],502:[function(require,module,exports){ // 19.1.3.19 Object.setPrototypeOf(O, proto) var $export = require('./_export'); $export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set }); -},{"./_export":425,"./_set-proto":465}],489:[function(require,module,exports){ -"use strict"; - -},{}],490:[function(require,module,exports){ +},{"./_export":439,"./_set-proto":479}],503:[function(require,module,exports){ +arguments[4][383][0].apply(exports,arguments) +},{"dup":383}],504:[function(require,module,exports){ 'use strict'; - var LIBRARY = require('./_library'); var global = require('./_global'); var ctx = require('./_ctx'); @@ -130095,7 +137925,7 @@ var versions = process && process.versions; var v8 = versions && versions.v8 || ''; var $Promise = global[PROMISE]; var isNode = classof(process) == 'process'; -var empty = function empty() {/* empty */}; +var empty = function () { /* empty */ }; var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; @@ -130107,20 +137937,22 @@ var USE_NATIVE = !!function () { exec(empty, empty); }; // unhandled rejections tracking support, NodeJS Promise without it fails @@species test - return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise - // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables - // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 - // we can't detect it synchronously, so just check versions - && v8.indexOf('6.6') !== 0 && userAgent.indexOf('Chrome/66') === -1; - } catch (e) {/* empty */} + return (isNode || typeof PromiseRejectionEvent == 'function') + && promise.then(empty) instanceof FakePromise + // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 + // we can't detect it synchronously, so just check versions + && v8.indexOf('6.6') !== 0 + && userAgent.indexOf('Chrome/66') === -1; + } catch (e) { /* empty */ } }(); // helpers -var isThenable = function isThenable(it) { +var isThenable = function (it) { var then; return isObject(it) && typeof (then = it.then) == 'function' ? then : false; }; -var notify = function notify(promise, isReject) { +var notify = function (promise, isReject) { if (promise._n) return; promise._n = true; var chain = promise._c; @@ -130128,7 +137960,7 @@ var notify = function notify(promise, isReject) { var value = promise._v; var ok = promise._s == 1; var i = 0; - var run = function run(reaction) { + var run = function (reaction) { var handler = ok ? reaction.ok : reaction.fail; var resolve = reaction.resolve; var reject = reaction.reject; @@ -130140,7 +137972,8 @@ var notify = function notify(promise, isReject) { if (promise._h == 2) onHandleUnhandled(promise); promise._h = 1; } - if (handler === true) result = value;else { + if (handler === true) result = value; + else { if (domain) domain.enter(); result = handler(value); // may throw if (domain) { @@ -130159,15 +137992,13 @@ var notify = function notify(promise, isReject) { reject(e); } }; - while (chain.length > i) { - run(chain[i++]); - } // variable length - can't use forEach + while (chain.length > i) run(chain[i++]); // variable length - can't use forEach promise._c = []; promise._n = false; if (isReject && !promise._h) onUnhandled(promise); }); }; -var onUnhandled = function onUnhandled(promise) { +var onUnhandled = function (promise) { task.call(global, function () { var value = promise._v; var unhandled = isUnhandled(promise); @@ -130184,14 +138015,14 @@ var onUnhandled = function onUnhandled(promise) { }); // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should promise._h = isNode || isUnhandled(promise) ? 2 : 1; - }promise._a = undefined; + } promise._a = undefined; if (unhandled && result.e) throw result.v; }); }; -var isUnhandled = function isUnhandled(promise) { +var isUnhandled = function (promise) { return promise._h !== 1 && (promise._a || promise._c).length === 0; }; -var onHandleUnhandled = function onHandleUnhandled(promise) { +var onHandleUnhandled = function (promise) { task.call(global, function () { var handler; if (isNode) { @@ -130201,7 +138032,7 @@ var onHandleUnhandled = function onHandleUnhandled(promise) { } }); }; -var $reject = function $reject(value) { +var $reject = function (value) { var promise = this; if (promise._d) return; promise._d = true; @@ -130211,7 +138042,7 @@ var $reject = function $reject(value) { if (!promise._a) promise._a = promise._c.slice(); notify(promise, true); }; -var $resolve = function $resolve(value) { +var $resolve = function (value) { var promise = this; var then; if (promise._d) return; @@ -130253,13 +138084,13 @@ if (!USE_NATIVE) { }; // eslint-disable-next-line no-unused-vars Internal = function Promise(executor) { - this._c = []; // <- awaiting reactions - this._a = undefined; // <- checked in isUnhandled reactions - this._s = 0; // <- state - this._d = false; // <- done - this._v = undefined; // <- value - this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled - this._n = false; // <- notify + this._c = []; // <- awaiting reactions + this._a = undefined; // <- checked in isUnhandled reactions + this._s = 0; // <- state + this._d = false; // <- done + this._v = undefined; // <- value + this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled + this._n = false; // <- notify }; Internal.prototype = require('./_redefine-all')($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) @@ -130274,18 +138105,20 @@ if (!USE_NATIVE) { return reaction.promise; }, // 25.4.5.1 Promise.prototype.catch(onRejected) - 'catch': function _catch(onRejected) { + 'catch': function (onRejected) { return this.then(undefined, onRejected); } }); - OwnPromiseCapability = function OwnPromiseCapability() { + OwnPromiseCapability = function () { var promise = new Internal(); this.promise = promise; this.resolve = ctx($resolve, promise, 1); this.reject = ctx($reject, promise, 1); }; - newPromiseCapabilityModule.f = newPromiseCapability = function newPromiseCapability(C) { - return C === $Promise || C === Wrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); + newPromiseCapabilityModule.f = newPromiseCapability = function (C) { + return C === $Promise || C === Wrapper + ? new OwnPromiseCapability(C) + : newGenericPromiseCapability(C); }; } @@ -130355,16 +138188,15 @@ $export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(functi } }); -},{"./_a-function":411,"./_an-instance":413,"./_classof":416,"./_core":418,"./_ctx":419,"./_export":425,"./_for-of":427,"./_global":428,"./_is-object":437,"./_iter-detect":441,"./_library":444,"./_microtask":446,"./_new-promise-capability":447,"./_perform":460,"./_promise-resolve":461,"./_redefine-all":463,"./_set-species":466,"./_set-to-string-tag":467,"./_species-constructor":470,"./_task":472,"./_user-agent":480,"./_wks":483}],491:[function(require,module,exports){ +},{"./_a-function":425,"./_an-instance":427,"./_classof":430,"./_core":432,"./_ctx":433,"./_export":439,"./_for-of":441,"./_global":442,"./_is-object":451,"./_iter-detect":455,"./_library":458,"./_microtask":460,"./_new-promise-capability":461,"./_perform":474,"./_promise-resolve":475,"./_redefine-all":477,"./_set-species":480,"./_set-to-string-tag":481,"./_species-constructor":484,"./_task":486,"./_user-agent":494,"./_wks":497}],505:[function(require,module,exports){ 'use strict'; - var $at = require('./_string-at')(true); // 21.1.3.27 String.prototype[@@iterator]() require('./_iter-define')(String, 'String', function (iterated) { this._t = String(iterated); // target - this._i = 0; // next index - // 21.1.5.2.1 %StringIteratorPrototype%.next() + this._i = 0; // next index +// 21.1.5.2.1 %StringIteratorPrototype%.next() }, function () { var O = this._t; var index = this._i; @@ -130375,12 +138207,9 @@ require('./_iter-define')(String, 'String', function (iterated) { return { value: point, done: false }; }); -},{"./_iter-define":440,"./_string-at":471}],492:[function(require,module,exports){ +},{"./_iter-define":454,"./_string-at":485}],506:[function(require,module,exports){ 'use strict'; // ECMAScript 6 symbols shim - -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 global = require('./_global'); var has = require('./_has'); var DESCRIPTORS = require('./_descriptors'); @@ -130428,9 +138257,7 @@ var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 var setSymbolDesc = DESCRIPTORS && $fails(function () { return _create(dP({}, 'a', { - get: function get() { - return dP(this, 'a', { value: 7 }).a; - } + get: function () { return dP(this, 'a', { value: 7 }).a; } })).a != 7; }) ? function (it, key, D) { var protoDesc = gOPD(ObjectProto, key); @@ -130439,14 +138266,14 @@ var setSymbolDesc = DESCRIPTORS && $fails(function () { if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); } : dP; -var wrap = function wrap(tag) { +var wrap = function (tag) { var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); sym._k = tag; return sym; }; -var isSymbol = USE_NATIVE && _typeof($Symbol.iterator) == 'symbol' ? function (it) { - return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) == 'symbol'; +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { + return typeof it == 'symbol'; } : function (it) { return it instanceof $Symbol; }; @@ -130463,8 +138290,8 @@ var $defineProperty = function defineProperty(it, key, D) { } else { if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; D = _create(D, { enumerable: createDesc(0, false) }); - }return setSymbolDesc(it, key, D); - }return dP(it, key, D); + } return setSymbolDesc(it, key, D); + } return dP(it, key, D); }; var $defineProperties = function defineProperties(it, P) { anObject(it); @@ -130472,9 +138299,8 @@ var $defineProperties = function defineProperties(it, P) { var i = 0; var l = keys.length; var key; - while (l > i) { - $defineProperty(it, key = keys[i++], P[key]); - }return it; + while (l > i) $defineProperty(it, key = keys[i++], P[key]); + return it; }; var $create = function create(it, P) { return P === undefined ? _create(it) : $defineProperties(_create(it), P); @@ -130499,7 +138325,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames(it) { var key; while (names.length > i) { if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); - }return result; + } return result; }; var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { var IS_OP = it === ObjectProto; @@ -130509,15 +138335,15 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { var key; while (names.length > i) { if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); - }return result; + } return result; }; // 19.4.1.1 Symbol([description]) if (!USE_NATIVE) { - $Symbol = function _Symbol() { + $Symbol = function Symbol() { if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); var tag = uid(arguments.length > 0 ? arguments[0] : undefined); - var $set = function $set(value) { + var $set = function (value) { if (this === ObjectProto) $set.call(OPSymbols, value); if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDesc(this, tag, createDesc(1, value)); @@ -130546,30 +138372,27 @@ if (!USE_NATIVE) { $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); -for (var es6Symbols = -// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 -'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split(','), j = 0; es6Symbols.length > j;) { - wks(es6Symbols[j++]); -}for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) { - wksDefine(wellKnownSymbols[k++]); -}$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { +for (var es6Symbols = ( + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); + +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); + +$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { // 19.4.2.1 Symbol.for(key) - 'for': function _for(key) { - return has(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); + 'for': function (key) { + return has(SymbolRegistry, key += '') + ? SymbolRegistry[key] + : SymbolRegistry[key] = $Symbol(key); }, // 19.4.2.5 Symbol.keyFor(sym) keyFor: function keyFor(sym) { if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) { - if (SymbolRegistry[key] === sym) return key; - } + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; }, - useSetter: function useSetter() { - setter = true; - }, - useSimple: function useSimple() { - setter = false; - } + useSetter: function () { setter = true; }, + useSimple: function () { setter = false; } }); $export($export.S + $export.F * !USE_NATIVE, 'Object', { @@ -130599,11 +138422,10 @@ $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { var args = [it]; var i = 1; var replacer, $replacer; - while (arguments.length > i) { - args.push(arguments[i++]); - }$replacer = replacer = args[1]; + while (arguments.length > i) args.push(arguments[i++]); + $replacer = replacer = args[1]; if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined - if (!isArray(replacer)) replacer = function replacer(key, value) { + if (!isArray(replacer)) replacer = function (key, value) { if (typeof $replacer == 'function') value = $replacer.call(this, key, value); if (!isSymbol(value)) return value; }; @@ -130621,65 +138443,60 @@ setToStringTag(Math, 'Math', true); // 24.3.3 JSON[@@toStringTag] setToStringTag(global.JSON, 'JSON', true); -},{"./_an-object":414,"./_descriptors":421,"./_enum-keys":424,"./_export":425,"./_fails":426,"./_global":428,"./_has":429,"./_hide":430,"./_is-array":436,"./_is-object":437,"./_library":444,"./_meta":445,"./_object-create":449,"./_object-dp":450,"./_object-gopd":452,"./_object-gopn":454,"./_object-gopn-ext":453,"./_object-gops":455,"./_object-keys":458,"./_object-pie":459,"./_property-desc":462,"./_redefine":464,"./_set-to-string-tag":467,"./_shared":469,"./_to-iobject":475,"./_to-primitive":478,"./_uid":479,"./_wks":483,"./_wks-define":481,"./_wks-ext":482}],493:[function(require,module,exports){ +},{"./_an-object":428,"./_descriptors":435,"./_enum-keys":438,"./_export":439,"./_fails":440,"./_global":442,"./_has":443,"./_hide":444,"./_is-array":450,"./_is-object":451,"./_library":458,"./_meta":459,"./_object-create":463,"./_object-dp":464,"./_object-gopd":466,"./_object-gopn":468,"./_object-gopn-ext":467,"./_object-gops":469,"./_object-keys":472,"./_object-pie":473,"./_property-desc":476,"./_redefine":478,"./_set-to-string-tag":481,"./_shared":483,"./_to-iobject":489,"./_to-primitive":492,"./_uid":493,"./_wks":497,"./_wks-define":495,"./_wks-ext":496}],507:[function(require,module,exports){ // https://github.com/tc39/proposal-promise-finally 'use strict'; - var $export = require('./_export'); var core = require('./_core'); var global = require('./_global'); var speciesConstructor = require('./_species-constructor'); var promiseResolve = require('./_promise-resolve'); -$export($export.P + $export.R, 'Promise', { 'finally': function _finally(onFinally) { - var C = speciesConstructor(this, core.Promise || global.Promise); - var isFunction = typeof onFinally == 'function'; - return this.then(isFunction ? function (x) { - return promiseResolve(C, onFinally()).then(function () { - return x; - }); - } : onFinally, isFunction ? function (e) { - return promiseResolve(C, onFinally()).then(function () { - throw e; - }); - } : onFinally); - } }); +$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { + var C = speciesConstructor(this, core.Promise || global.Promise); + var isFunction = typeof onFinally == 'function'; + return this.then( + isFunction ? function (x) { + return promiseResolve(C, onFinally()).then(function () { return x; }); + } : onFinally, + isFunction ? function (e) { + return promiseResolve(C, onFinally()).then(function () { throw e; }); + } : onFinally + ); +} }); -},{"./_core":418,"./_export":425,"./_global":428,"./_promise-resolve":461,"./_species-constructor":470}],494:[function(require,module,exports){ +},{"./_core":432,"./_export":439,"./_global":442,"./_promise-resolve":475,"./_species-constructor":484}],508:[function(require,module,exports){ 'use strict'; // https://github.com/tc39/proposal-promise-try - var $export = require('./_export'); var newPromiseCapability = require('./_new-promise-capability'); var perform = require('./_perform'); -$export($export.S, 'Promise', { 'try': function _try(callbackfn) { - var promiseCapability = newPromiseCapability.f(this); - var result = perform(callbackfn); - (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); - return promiseCapability.promise; - } }); - -},{"./_export":425,"./_new-promise-capability":447,"./_perform":460}],495:[function(require,module,exports){ -'use strict'; +$export($export.S, 'Promise', { 'try': function (callbackfn) { + var promiseCapability = newPromiseCapability.f(this); + var result = perform(callbackfn); + (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); + return promiseCapability.promise; +} }); +},{"./_export":439,"./_new-promise-capability":461,"./_perform":474}],509:[function(require,module,exports){ require('./_wks-define')('asyncIterator'); -},{"./_wks-define":481}],496:[function(require,module,exports){ -'use strict'; - +},{"./_wks-define":495}],510:[function(require,module,exports){ require('./_wks-define')('observable'); -},{"./_wks-define":481}],497:[function(require,module,exports){ -'use strict'; - +},{"./_wks-define":495}],511:[function(require,module,exports){ require('./es6.array.iterator'); var global = require('./_global'); var hide = require('./_hide'); var Iterators = require('./_iterators'); var TO_STRING_TAG = require('./_wks')('toStringTag'); -var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 'TextTrackList,TouchList').split(','); +var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + + 'TextTrackList,TouchList').split(','); for (var i = 0; i < DOMIterables.length; i++) { var NAME = DOMIterables[i]; @@ -130689,20 +138506,16 @@ for (var i = 0; i < DOMIterables.length; i++) { Iterators[NAME] = Iterators.Array; } -},{"./_global":428,"./_hide":430,"./_iterators":443,"./_wks":483,"./es6.array.iterator":485}],498:[function(require,module,exports){ -arguments[4][411][0].apply(exports,arguments) -},{"dup":411}],499:[function(require,module,exports){ -'use strict'; - +},{"./_global":442,"./_hide":444,"./_iterators":457,"./_wks":497,"./es6.array.iterator":499}],512:[function(require,module,exports){ +arguments[4][425][0].apply(exports,arguments) +},{"dup":425}],513:[function(require,module,exports){ var cof = require('./_cof'); module.exports = function (it, msg) { if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg); return +it; }; -},{"./_cof":513}],500:[function(require,module,exports){ -'use strict'; - +},{"./_cof":527}],514:[function(require,module,exports){ // 22.1.3.31 Array.prototype[@@unscopables] var UNSCOPABLES = require('./_wks')('unscopables'); var ArrayProto = Array.prototype; @@ -130711,14 +138524,13 @@ module.exports = function (key) { ArrayProto[UNSCOPABLES][key] = true; }; -},{"./_hide":537,"./_wks":621}],501:[function(require,module,exports){ -arguments[4][413][0].apply(exports,arguments) -},{"dup":413}],502:[function(require,module,exports){ -arguments[4][414][0].apply(exports,arguments) -},{"./_is-object":546,"dup":414}],503:[function(require,module,exports){ +},{"./_hide":551,"./_wks":635}],515:[function(require,module,exports){ +arguments[4][427][0].apply(exports,arguments) +},{"dup":427}],516:[function(require,module,exports){ +arguments[4][428][0].apply(exports,arguments) +},{"./_is-object":560,"dup":428}],517:[function(require,module,exports){ // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) 'use strict'; - var toObject = require('./_to-object'); var toAbsoluteIndex = require('./_to-absolute-index'); var toLength = require('./_to-length'); @@ -130737,16 +138549,16 @@ module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* to += count - 1; } while (count-- > 0) { - if (from in O) O[to] = O[from];else delete O[to]; + if (from in O) O[to] = O[from]; + else delete O[to]; to += inc; from += inc; - }return O; + } return O; }; -},{"./_to-absolute-index":606,"./_to-length":610,"./_to-object":611}],504:[function(require,module,exports){ +},{"./_to-absolute-index":620,"./_to-length":624,"./_to-object":625}],518:[function(require,module,exports){ // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) 'use strict'; - var toObject = require('./_to-object'); var toAbsoluteIndex = require('./_to-absolute-index'); var toLength = require('./_to-length'); @@ -130757,14 +138569,11 @@ module.exports = function fill(value /* , start = 0, end = @length */) { var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length); var end = aLen > 2 ? arguments[2] : undefined; var endPos = end === undefined ? length : toAbsoluteIndex(end, length); - while (endPos > index) { - O[index++] = value; - }return O; + while (endPos > index) O[index++] = value; + return O; }; -},{"./_to-absolute-index":606,"./_to-length":610,"./_to-object":611}],505:[function(require,module,exports){ -'use strict'; - +},{"./_to-absolute-index":620,"./_to-length":624,"./_to-object":625}],519:[function(require,module,exports){ var forOf = require('./_for-of'); module.exports = function (iter, ITERATOR) { @@ -130773,11 +138582,9 @@ module.exports = function (iter, ITERATOR) { return result; }; -},{"./_for-of":534}],506:[function(require,module,exports){ -arguments[4][415][0].apply(exports,arguments) -},{"./_to-absolute-index":606,"./_to-iobject":609,"./_to-length":610,"dup":415}],507:[function(require,module,exports){ -'use strict'; - +},{"./_for-of":548}],520:[function(require,module,exports){ +arguments[4][429][0].apply(exports,arguments) +},{"./_to-absolute-index":620,"./_to-iobject":623,"./_to-length":624,"dup":429}],521:[function(require,module,exports){ // 0 -> Array#forEach // 1 -> Array#map // 2 -> Array#filter @@ -130806,31 +138613,24 @@ module.exports = function (TYPE, $create) { var index = 0; var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; var val, res; - for (; length > index; index++) { - if (NO_HOLES || index in self) { - val = self[index]; - res = f(val, index, O); - if (TYPE) { - if (IS_MAP) result[index] = res; // map - else if (res) switch (TYPE) { - case 3: - return true; // some - case 5: - return val; // find - case 6: - return index; // findIndex - case 2: - result.push(val); // filter - } else if (IS_EVERY) return false; // every - } + for (;length > index; index++) if (NO_HOLES || index in self) { + val = self[index]; + res = f(val, index, O); + if (TYPE) { + if (IS_MAP) result[index] = res; // map + else if (res) switch (TYPE) { + case 3: return true; // some + case 5: return val; // find + case 6: return index; // findIndex + case 2: result.push(val); // filter + } else if (IS_EVERY) return false; // every } - }return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; + } + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; }; }; -},{"./_array-species-create":510,"./_ctx":520,"./_iobject":542,"./_to-length":610,"./_to-object":611}],508:[function(require,module,exports){ -'use strict'; - +},{"./_array-species-create":524,"./_ctx":534,"./_iobject":556,"./_to-length":624,"./_to-object":625}],522:[function(require,module,exports){ var aFunction = require('./_a-function'); var toObject = require('./_to-object'); var IObject = require('./_iobject'); @@ -130854,16 +138654,13 @@ module.exports = function (that, callbackfn, aLen, memo, isRight) { throw TypeError('Reduce of empty array with no initial value'); } } - for (; isRight ? index >= 0 : length > index; index += i) { - if (index in self) { - memo = callbackfn(memo, self[index], index, O); - } - }return memo; + for (;isRight ? index >= 0 : length > index; index += i) if (index in self) { + memo = callbackfn(memo, self[index], index, O); + } + return memo; }; -},{"./_a-function":498,"./_iobject":542,"./_to-length":610,"./_to-object":611}],509:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_iobject":556,"./_to-length":624,"./_to-object":625}],523:[function(require,module,exports){ var isObject = require('./_is-object'); var isArray = require('./_is-array'); var SPECIES = require('./_wks')('species'); @@ -130878,12 +138675,10 @@ module.exports = function (original) { C = C[SPECIES]; if (C === null) C = undefined; } - }return C === undefined ? Array : C; + } return C === undefined ? Array : C; }; -},{"./_is-array":544,"./_is-object":546,"./_wks":621}],510:[function(require,module,exports){ -'use strict'; - +},{"./_is-array":558,"./_is-object":560,"./_wks":635}],524:[function(require,module,exports){ // 9.4.2.3 ArraySpeciesCreate(originalArray, length) var speciesConstructor = require('./_array-species-constructor'); @@ -130891,28 +138686,26 @@ module.exports = function (original, length) { return new (speciesConstructor(original))(length); }; -},{"./_array-species-constructor":509}],511:[function(require,module,exports){ +},{"./_array-species-constructor":523}],525:[function(require,module,exports){ 'use strict'; - var aFunction = require('./_a-function'); var isObject = require('./_is-object'); var invoke = require('./_invoke'); var arraySlice = [].slice; var factories = {}; -var construct = function construct(F, len, args) { +var construct = function (F, len, args) { if (!(len in factories)) { - for (var n = [], i = 0; i < len; i++) { - n[i] = 'a[' + i + ']'; - } // eslint-disable-next-line no-new-func + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; + // eslint-disable-next-line no-new-func factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); - }return factories[len](F, args); + } return factories[len](F, args); }; module.exports = Function.bind || function bind(that /* , ...args */) { var fn = aFunction(this); var partArgs = arraySlice.call(arguments, 1); - var bound = function bound() /* args... */{ + var bound = function (/* args... */) { var args = partArgs.concat(arraySlice.call(arguments)); return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); }; @@ -130920,13 +138713,12 @@ module.exports = Function.bind || function bind(that /* , ...args */) { return bound; }; -},{"./_a-function":498,"./_invoke":541,"./_is-object":546}],512:[function(require,module,exports){ -arguments[4][416][0].apply(exports,arguments) -},{"./_cof":513,"./_wks":621,"dup":416}],513:[function(require,module,exports){ -arguments[4][417][0].apply(exports,arguments) -},{"dup":417}],514:[function(require,module,exports){ +},{"./_a-function":512,"./_invoke":555,"./_is-object":560}],526:[function(require,module,exports){ +arguments[4][430][0].apply(exports,arguments) +},{"./_cof":527,"./_wks":635,"dup":430}],527:[function(require,module,exports){ +arguments[4][431][0].apply(exports,arguments) +},{"dup":431}],528:[function(require,module,exports){ 'use strict'; - var dP = require('./_object-dp').f; var create = require('./_object-create'); var redefineAll = require('./_redefine-all'); @@ -130941,7 +138733,7 @@ var fastKey = require('./_meta').fastKey; var validate = require('./_validate-collection'); var SIZE = DESCRIPTORS ? '_s' : 'size'; -var getEntry = function getEntry(that, key) { +var getEntry = function (that, key) { // fast case var index = fastKey(key); var entry; @@ -130953,14 +138745,14 @@ var getEntry = function getEntry(that, key) { }; module.exports = { - getConstructor: function getConstructor(wrapper, NAME, IS_MAP, ADDER) { + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { anInstance(that, C, NAME, '_i'); - that._t = NAME; // collection type + that._t = NAME; // collection type that._i = create(null); // index - that._f = undefined; // first entry - that._l = undefined; // last entry - that[SIZE] = 0; // size + that._f = undefined; // first entry + that._l = undefined; // last entry + that[SIZE] = 0; // size if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); redefineAll(C.prototype, { @@ -130977,7 +138769,7 @@ module.exports = { }, // 23.1.3.3 Map.prototype.delete(key) // 23.2.3.4 Set.prototype.delete(value) - 'delete': function _delete(key) { + 'delete': function (key) { var that = validate(this, NAME); var entry = getEntry(that, key); if (entry) { @@ -130990,7 +138782,7 @@ module.exports = { if (that._f == entry) that._f = next; if (that._l == entry) that._l = prev; that[SIZE]--; - }return !!entry; + } return !!entry; }, // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) @@ -131001,9 +138793,7 @@ module.exports = { while (entry = entry ? entry.n : this._f) { f(entry.v, entry.k, this); // revert to the last existing entry - while (entry && entry.r) { - entry = entry.p; - } + while (entry && entry.r) entry = entry.p; } }, // 23.1.3.7 Map.prototype.has(key) @@ -131013,51 +138803,50 @@ module.exports = { } }); if (DESCRIPTORS) dP(C.prototype, 'size', { - get: function get() { + get: function () { return validate(this, NAME)[SIZE]; } }); return C; }, - def: function def(that, key, value) { + def: function (that, key, value) { var entry = getEntry(that, key); var prev, index; // change existing entry if (entry) { entry.v = value; - // create new entry + // create new entry } else { that._l = entry = { i: index = fastKey(key, true), // <- index - k: key, // <- key - v: value, // <- value - p: prev = that._l, // <- previous entry - n: undefined, // <- next entry - r: false // <- removed + k: key, // <- key + v: value, // <- value + p: prev = that._l, // <- previous entry + n: undefined, // <- next entry + r: false // <- removed }; if (!that._f) that._f = entry; if (prev) prev.n = entry; that[SIZE]++; // add to index if (index !== 'F') that._i[index] = entry; - }return that; + } return that; }, getEntry: getEntry, - setStrong: function setStrong(C, NAME, IS_MAP) { + setStrong: function (C, NAME, IS_MAP) { // add .keys, .values, .entries, [@@iterator] // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 $iterDefine(C, NAME, function (iterated, kind) { this._t = validate(iterated, NAME); // target - this._k = kind; // kind - this._l = undefined; // previous + this._k = kind; // kind + this._l = undefined; // previous }, function () { var that = this; var kind = that._k; var entry = that._l; // revert to the last existing entry - while (entry && entry.r) { - entry = entry.p; - } // get next entry + while (entry && entry.r) entry = entry.p; + // get next entry if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { // or finish the iteration that._t = undefined; @@ -131074,9 +138863,7 @@ module.exports = { } }; -},{"./_an-instance":501,"./_ctx":520,"./_descriptors":524,"./_for-of":534,"./_iter-define":550,"./_iter-step":552,"./_meta":560,"./_object-create":565,"./_object-dp":566,"./_redefine-all":585,"./_set-species":592,"./_validate-collection":618}],515:[function(require,module,exports){ -'use strict'; - +},{"./_an-instance":515,"./_ctx":534,"./_descriptors":538,"./_for-of":548,"./_iter-define":564,"./_iter-step":566,"./_meta":574,"./_object-create":579,"./_object-dp":580,"./_redefine-all":599,"./_set-species":606,"./_validate-collection":632}],529:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON var classof = require('./_classof'); var from = require('./_array-from-iterable'); @@ -131087,9 +138874,8 @@ module.exports = function (NAME) { }; }; -},{"./_array-from-iterable":505,"./_classof":512}],516:[function(require,module,exports){ +},{"./_array-from-iterable":519,"./_classof":526}],530:[function(require,module,exports){ 'use strict'; - var redefineAll = require('./_redefine-all'); var getWeak = require('./_meta').getWeak; var anObject = require('./_an-object'); @@ -131104,30 +138890,31 @@ var arrayFindIndex = createArrayMethod(6); var id = 0; // fallback for uncaught frozen keys -var uncaughtFrozenStore = function uncaughtFrozenStore(that) { +var uncaughtFrozenStore = function (that) { return that._l || (that._l = new UncaughtFrozenStore()); }; -var UncaughtFrozenStore = function UncaughtFrozenStore() { +var UncaughtFrozenStore = function () { this.a = []; }; -var findUncaughtFrozen = function findUncaughtFrozen(store, key) { +var findUncaughtFrozen = function (store, key) { return arrayFind(store.a, function (it) { return it[0] === key; }); }; UncaughtFrozenStore.prototype = { - get: function get(key) { + get: function (key) { var entry = findUncaughtFrozen(this, key); if (entry) return entry[1]; }, - has: function has(key) { + has: function (key) { return !!findUncaughtFrozen(this, key); }, - set: function set(key, value) { + set: function (key, value) { var entry = findUncaughtFrozen(this, key); - if (entry) entry[1] = value;else this.a.push([key, value]); + if (entry) entry[1] = value; + else this.a.push([key, value]); }, - 'delete': function _delete(key) { + 'delete': function (key) { var index = arrayFindIndex(this.a, function (it) { return it[0] === key; }); @@ -131137,18 +138924,18 @@ UncaughtFrozenStore.prototype = { }; module.exports = { - getConstructor: function getConstructor(wrapper, NAME, IS_MAP, ADDER) { + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { anInstance(that, C, NAME, '_i'); - that._t = NAME; // collection type - that._i = id++; // collection id + that._t = NAME; // collection type + that._i = id++; // collection id that._l = undefined; // leak store for uncaught frozen objects if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); redefineAll(C.prototype, { // 23.3.3.2 WeakMap.prototype.delete(key) // 23.4.3.3 WeakSet.prototype.delete(value) - 'delete': function _delete(key) { + 'delete': function (key) { if (!isObject(key)) return false; var data = getWeak(key); if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); @@ -131165,17 +138952,17 @@ module.exports = { }); return C; }, - def: function def(that, key, value) { + def: function (that, key, value) { var data = getWeak(anObject(key), true); - if (data === true) uncaughtFrozenStore(that).set(key, value);else data[that._i] = value; + if (data === true) uncaughtFrozenStore(that).set(key, value); + else data[that._i] = value; return that; }, ufstore: uncaughtFrozenStore }; -},{"./_an-instance":501,"./_an-object":502,"./_array-methods":507,"./_for-of":534,"./_has":536,"./_is-object":546,"./_meta":560,"./_redefine-all":585,"./_validate-collection":618}],517:[function(require,module,exports){ +},{"./_an-instance":515,"./_an-object":516,"./_array-methods":521,"./_for-of":548,"./_has":550,"./_is-object":560,"./_meta":574,"./_redefine-all":599,"./_validate-collection":632}],531:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var $export = require('./_export'); var redefine = require('./_redefine'); @@ -131195,19 +138982,18 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { var ADDER = IS_MAP ? 'set' : 'add'; var proto = C && C.prototype; var O = {}; - var fixMethod = function fixMethod(KEY) { + var fixMethod = function (KEY) { var fn = proto[KEY]; - redefine(proto, KEY, KEY == 'delete' ? function (a) { - return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'has' ? function has(a) { - return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'get' ? function get(a) { - return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'add' ? function add(a) { - fn.call(this, a === 0 ? 0 : a);return this; - } : function set(a, b) { - fn.call(this, a === 0 ? 0 : a, b);return this; - }); + redefine(proto, KEY, + KEY == 'delete' ? function (a) { + return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); + } : KEY == 'has' ? function has(a) { + return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); + } : KEY == 'get' ? function get(a) { + return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); + } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; } + : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; } + ); }; if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { new C().entries().next(); @@ -131221,21 +139007,16 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { // early implementations not supports chaining var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false - var THROWS_ON_PRIMITIVES = fails(function () { - instance.has(1); - }); + var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); // most early implementations doesn't supports iterables, most modern - not close it correctly - var ACCEPT_ITERABLES = $iterDetect(function (iter) { - new C(iter); - }); // eslint-disable-line no-new + var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new // for early implementations -0 and +0 not the same var BUGGY_ZERO = !IS_WEAK && fails(function () { // V8 ~ Chromium 42- fails only with 5+ elements var $instance = new C(); var index = 5; - while (index--) { - $instance[ADDER](index, index); - }return !$instance.has(-0); + while (index--) $instance[ADDER](index, index); + return !$instance.has(-0); }); if (!ACCEPT_ITERABLES) { C = wrapper(function (target, iterable) { @@ -131267,49 +139048,50 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { return C; }; -},{"./_an-instance":501,"./_export":528,"./_fails":530,"./_for-of":534,"./_global":535,"./_inherit-if-required":540,"./_is-object":546,"./_iter-detect":551,"./_meta":560,"./_redefine":586,"./_redefine-all":585,"./_set-to-string-tag":593}],518:[function(require,module,exports){ -arguments[4][418][0].apply(exports,arguments) -},{"dup":418}],519:[function(require,module,exports){ +},{"./_an-instance":515,"./_export":542,"./_fails":544,"./_for-of":548,"./_global":549,"./_inherit-if-required":554,"./_is-object":560,"./_iter-detect":565,"./_meta":574,"./_redefine":600,"./_redefine-all":599,"./_set-to-string-tag":607}],532:[function(require,module,exports){ +arguments[4][432][0].apply(exports,arguments) +},{"dup":432}],533:[function(require,module,exports){ 'use strict'; - var $defineProperty = require('./_object-dp'); var createDesc = require('./_property-desc'); module.exports = function (object, index, value) { - if (index in object) $defineProperty.f(object, index, createDesc(0, value));else object[index] = value; + if (index in object) $defineProperty.f(object, index, createDesc(0, value)); + else object[index] = value; }; -},{"./_object-dp":566,"./_property-desc":584}],520:[function(require,module,exports){ -arguments[4][419][0].apply(exports,arguments) -},{"./_a-function":498,"dup":419}],521:[function(require,module,exports){ +},{"./_object-dp":580,"./_property-desc":598}],534:[function(require,module,exports){ +arguments[4][433][0].apply(exports,arguments) +},{"./_a-function":512,"dup":433}],535:[function(require,module,exports){ 'use strict'; // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() - var fails = require('./_fails'); var getTime = Date.prototype.getTime; var $toISOString = Date.prototype.toISOString; -var lz = function lz(num) { +var lz = function (num) { return num > 9 ? num : '0' + num; }; // PhantomJS / old WebKit has a broken implementations -module.exports = fails(function () { +module.exports = (fails(function () { return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z'; }) || !fails(function () { $toISOString.call(new Date(NaN)); -}) ? function toISOString() { +})) ? function toISOString() { if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value'); var d = this; var y = d.getUTCFullYear(); var m = d.getUTCMilliseconds(); var s = y < 0 ? '-' : y > 9999 ? '+' : ''; - return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; + return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + + '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + + 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + + ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; } : $toISOString; -},{"./_fails":530}],522:[function(require,module,exports){ +},{"./_fails":544}],536:[function(require,module,exports){ 'use strict'; - var anObject = require('./_an-object'); var toPrimitive = require('./_to-primitive'); var NUMBER = 'number'; @@ -131319,19 +139101,17 @@ module.exports = function (hint) { return toPrimitive(anObject(this), hint != NUMBER); }; -},{"./_an-object":502,"./_to-primitive":612}],523:[function(require,module,exports){ -arguments[4][420][0].apply(exports,arguments) -},{"dup":420}],524:[function(require,module,exports){ -arguments[4][421][0].apply(exports,arguments) -},{"./_fails":530,"dup":421}],525:[function(require,module,exports){ -arguments[4][422][0].apply(exports,arguments) -},{"./_global":535,"./_is-object":546,"dup":422}],526:[function(require,module,exports){ -arguments[4][423][0].apply(exports,arguments) -},{"dup":423}],527:[function(require,module,exports){ -arguments[4][424][0].apply(exports,arguments) -},{"./_object-gops":572,"./_object-keys":575,"./_object-pie":576,"dup":424}],528:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_to-primitive":626}],537:[function(require,module,exports){ +arguments[4][434][0].apply(exports,arguments) +},{"dup":434}],538:[function(require,module,exports){ +arguments[4][435][0].apply(exports,arguments) +},{"./_fails":544,"dup":435}],539:[function(require,module,exports){ +arguments[4][436][0].apply(exports,arguments) +},{"./_global":549,"./_is-object":560,"dup":436}],540:[function(require,module,exports){ +arguments[4][437][0].apply(exports,arguments) +},{"dup":437}],541:[function(require,module,exports){ +arguments[4][438][0].apply(exports,arguments) +},{"./_object-gops":586,"./_object-keys":589,"./_object-pie":590,"dup":438}],542:[function(require,module,exports){ var global = require('./_global'); var core = require('./_core'); var hide = require('./_hide'); @@ -131339,7 +139119,7 @@ var redefine = require('./_redefine'); var ctx = require('./_ctx'); var PROTOTYPE = 'prototype'; -var $export = function $export(type, name, source) { +var $export = function (type, name, source) { var IS_FORCED = type & $export.F; var IS_GLOBAL = type & $export.G; var IS_STATIC = type & $export.S; @@ -131366,19 +139146,17 @@ var $export = function $export(type, name, source) { }; global.core = core; // type bitmap -$export.F = 1; // forced -$export.G = 2; // global -$export.S = 4; // static -$export.P = 8; // proto -$export.B = 16; // bind -$export.W = 32; // wrap -$export.U = 64; // safe +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe $export.R = 128; // real proto method for `library` module.exports = $export; -},{"./_core":518,"./_ctx":520,"./_global":535,"./_hide":537,"./_redefine":586}],529:[function(require,module,exports){ -'use strict'; - +},{"./_core":532,"./_ctx":534,"./_global":549,"./_hide":551,"./_redefine":600}],543:[function(require,module,exports){ var MATCH = require('./_wks')('match'); module.exports = function (KEY) { var re = /./; @@ -131388,15 +139166,14 @@ module.exports = function (KEY) { try { re[MATCH] = false; return !'/./'[KEY](re); - } catch (f) {/* empty */} - }return true; + } catch (f) { /* empty */ } + } return true; }; -},{"./_wks":621}],530:[function(require,module,exports){ -arguments[4][426][0].apply(exports,arguments) -},{"dup":426}],531:[function(require,module,exports){ +},{"./_wks":635}],544:[function(require,module,exports){ +arguments[4][440][0].apply(exports,arguments) +},{"dup":440}],545:[function(require,module,exports){ 'use strict'; - var hide = require('./_hide'); var redefine = require('./_redefine'); var fails = require('./_fails'); @@ -131410,30 +139187,24 @@ module.exports = function (KEY, length, exec) { var rxfn = fns[1]; if (fails(function () { var O = {}; - O[SYMBOL] = function () { - return 7; - }; + O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; })) { redefine(String.prototype, KEY, strfn); hide(RegExp.prototype, SYMBOL, length == 2 - // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) - // 21.2.5.11 RegExp.prototype[@@split](string, limit) - ? function (string, arg) { - return rxfn.call(string, this, arg); - } - // 21.2.5.6 RegExp.prototype[@@match](string) - // 21.2.5.9 RegExp.prototype[@@search](string) - : function (string) { - return rxfn.call(string, this); - }); + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) + // 21.2.5.11 RegExp.prototype[@@split](string, limit) + ? function (string, arg) { return rxfn.call(string, this, arg); } + // 21.2.5.6 RegExp.prototype[@@match](string) + // 21.2.5.9 RegExp.prototype[@@search](string) + : function (string) { return rxfn.call(string, this); } + ); } }; -},{"./_defined":523,"./_fails":530,"./_hide":537,"./_redefine":586,"./_wks":621}],532:[function(require,module,exports){ +},{"./_defined":537,"./_fails":544,"./_hide":551,"./_redefine":600,"./_wks":635}],546:[function(require,module,exports){ 'use strict'; // 21.2.5.3 get RegExp.prototype.flags - var anObject = require('./_an-object'); module.exports = function () { var that = anObject(this); @@ -131446,10 +139217,9 @@ module.exports = function () { return result; }; -},{"./_an-object":502}],533:[function(require,module,exports){ +},{"./_an-object":516}],547:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray - var isArray = require('./_is-array'); var isObject = require('./_is-object'); var toLength = require('./_to-length'); @@ -131488,21 +139258,19 @@ function flattenIntoArray(target, original, source, sourceLen, start, depth, map module.exports = flattenIntoArray; -},{"./_ctx":520,"./_is-array":544,"./_is-object":546,"./_to-length":610,"./_wks":621}],534:[function(require,module,exports){ -arguments[4][427][0].apply(exports,arguments) -},{"./_an-object":502,"./_ctx":520,"./_is-array-iter":543,"./_iter-call":548,"./_to-length":610,"./core.get-iterator-method":622,"dup":427}],535:[function(require,module,exports){ -arguments[4][428][0].apply(exports,arguments) -},{"dup":428}],536:[function(require,module,exports){ -arguments[4][429][0].apply(exports,arguments) -},{"dup":429}],537:[function(require,module,exports){ -arguments[4][430][0].apply(exports,arguments) -},{"./_descriptors":524,"./_object-dp":566,"./_property-desc":584,"dup":430}],538:[function(require,module,exports){ -arguments[4][431][0].apply(exports,arguments) -},{"./_global":535,"dup":431}],539:[function(require,module,exports){ -arguments[4][432][0].apply(exports,arguments) -},{"./_descriptors":524,"./_dom-create":525,"./_fails":530,"dup":432}],540:[function(require,module,exports){ -'use strict'; - +},{"./_ctx":534,"./_is-array":558,"./_is-object":560,"./_to-length":624,"./_wks":635}],548:[function(require,module,exports){ +arguments[4][441][0].apply(exports,arguments) +},{"./_an-object":516,"./_ctx":534,"./_is-array-iter":557,"./_iter-call":562,"./_to-length":624,"./core.get-iterator-method":636,"dup":441}],549:[function(require,module,exports){ +arguments[4][442][0].apply(exports,arguments) +},{"dup":442}],550:[function(require,module,exports){ +arguments[4][443][0].apply(exports,arguments) +},{"dup":443}],551:[function(require,module,exports){ +arguments[4][444][0].apply(exports,arguments) +},{"./_descriptors":538,"./_object-dp":580,"./_property-desc":598,"dup":444}],552:[function(require,module,exports){ +arguments[4][445][0].apply(exports,arguments) +},{"./_global":549,"dup":445}],553:[function(require,module,exports){ +arguments[4][446][0].apply(exports,arguments) +},{"./_descriptors":538,"./_dom-create":539,"./_fails":544,"dup":446}],554:[function(require,module,exports){ var isObject = require('./_is-object'); var setPrototypeOf = require('./_set-proto').set; module.exports = function (that, target, C) { @@ -131510,20 +139278,18 @@ module.exports = function (that, target, C) { var P; if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { setPrototypeOf(that, P); - }return that; + } return that; }; -},{"./_is-object":546,"./_set-proto":591}],541:[function(require,module,exports){ -arguments[4][433][0].apply(exports,arguments) -},{"dup":433}],542:[function(require,module,exports){ -arguments[4][434][0].apply(exports,arguments) -},{"./_cof":513,"dup":434}],543:[function(require,module,exports){ -arguments[4][435][0].apply(exports,arguments) -},{"./_iterators":553,"./_wks":621,"dup":435}],544:[function(require,module,exports){ -arguments[4][436][0].apply(exports,arguments) -},{"./_cof":513,"dup":436}],545:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_set-proto":605}],555:[function(require,module,exports){ +arguments[4][447][0].apply(exports,arguments) +},{"dup":447}],556:[function(require,module,exports){ +arguments[4][448][0].apply(exports,arguments) +},{"./_cof":527,"dup":448}],557:[function(require,module,exports){ +arguments[4][449][0].apply(exports,arguments) +},{"./_iterators":567,"./_wks":635,"dup":449}],558:[function(require,module,exports){ +arguments[4][450][0].apply(exports,arguments) +},{"./_cof":527,"dup":450}],559:[function(require,module,exports){ // 20.1.2.3 Number.isInteger(number) var isObject = require('./_is-object'); var floor = Math.floor; @@ -131531,11 +139297,9 @@ module.exports = function isInteger(it) { return !isObject(it) && isFinite(it) && floor(it) === it; }; -},{"./_is-object":546}],546:[function(require,module,exports){ -arguments[4][437][0].apply(exports,arguments) -},{"dup":437}],547:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560}],560:[function(require,module,exports){ +arguments[4][451][0].apply(exports,arguments) +},{"dup":451}],561:[function(require,module,exports){ // 7.2.8 IsRegExp(argument) var isObject = require('./_is-object'); var cof = require('./_cof'); @@ -131545,39 +139309,34 @@ module.exports = function (it) { return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); }; -},{"./_cof":513,"./_is-object":546,"./_wks":621}],548:[function(require,module,exports){ -arguments[4][438][0].apply(exports,arguments) -},{"./_an-object":502,"dup":438}],549:[function(require,module,exports){ -arguments[4][439][0].apply(exports,arguments) -},{"./_hide":537,"./_object-create":565,"./_property-desc":584,"./_set-to-string-tag":593,"./_wks":621,"dup":439}],550:[function(require,module,exports){ -arguments[4][440][0].apply(exports,arguments) -},{"./_export":528,"./_hide":537,"./_iter-create":549,"./_iterators":553,"./_library":554,"./_object-gpo":573,"./_redefine":586,"./_set-to-string-tag":593,"./_wks":621,"dup":440}],551:[function(require,module,exports){ -arguments[4][441][0].apply(exports,arguments) -},{"./_wks":621,"dup":441}],552:[function(require,module,exports){ -arguments[4][442][0].apply(exports,arguments) -},{"dup":442}],553:[function(require,module,exports){ -arguments[4][443][0].apply(exports,arguments) -},{"dup":443}],554:[function(require,module,exports){ -"use strict"; - +},{"./_cof":527,"./_is-object":560,"./_wks":635}],562:[function(require,module,exports){ +arguments[4][452][0].apply(exports,arguments) +},{"./_an-object":516,"dup":452}],563:[function(require,module,exports){ +arguments[4][453][0].apply(exports,arguments) +},{"./_hide":551,"./_object-create":579,"./_property-desc":598,"./_set-to-string-tag":607,"./_wks":635,"dup":453}],564:[function(require,module,exports){ +arguments[4][454][0].apply(exports,arguments) +},{"./_export":542,"./_hide":551,"./_iter-create":563,"./_iterators":567,"./_library":568,"./_object-gpo":587,"./_redefine":600,"./_set-to-string-tag":607,"./_wks":635,"dup":454}],565:[function(require,module,exports){ +arguments[4][455][0].apply(exports,arguments) +},{"./_wks":635,"dup":455}],566:[function(require,module,exports){ +arguments[4][456][0].apply(exports,arguments) +},{"dup":456}],567:[function(require,module,exports){ +arguments[4][457][0].apply(exports,arguments) +},{"dup":457}],568:[function(require,module,exports){ module.exports = false; -},{}],555:[function(require,module,exports){ -"use strict"; - +},{}],569:[function(require,module,exports){ // 20.2.2.14 Math.expm1(x) var $expm1 = Math.expm1; -module.exports = !$expm1 -// Old FF bug -|| $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 -// Tor Browser bug -|| $expm1(-2e-17) != -2e-17 ? function expm1(x) { +module.exports = (!$expm1 + // Old FF bug + || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 + // Tor Browser bug + || $expm1(-2e-17) != -2e-17 +) ? function expm1(x) { return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; } : $expm1; -},{}],556:[function(require,module,exports){ -'use strict'; - +},{}],570:[function(require,module,exports){ // 20.2.2.16 Math.fround(x) var sign = require('./_math-sign'); var pow = Math.pow; @@ -131586,7 +139345,7 @@ var EPSILON32 = pow(2, -23); var MAX32 = pow(2, 127) * (2 - EPSILON32); var MIN32 = pow(2, -126); -var roundTiesToEven = function roundTiesToEven(n) { +var roundTiesToEven = function (n) { return n + 1 / EPSILON - 1 / EPSILON; }; @@ -131602,56 +139361,48 @@ module.exports = Math.fround || function fround(x) { return $sign * result; }; -},{"./_math-sign":559}],557:[function(require,module,exports){ -"use strict"; - +},{"./_math-sign":573}],571:[function(require,module,exports){ // 20.2.2.20 Math.log1p(x) module.exports = Math.log1p || function log1p(x) { return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); }; -},{}],558:[function(require,module,exports){ -"use strict"; - +},{}],572:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) { - if (arguments.length === 0 - // eslint-disable-next-line no-self-compare - || x != x - // eslint-disable-next-line no-self-compare - || inLow != inLow - // eslint-disable-next-line no-self-compare - || inHigh != inHigh - // eslint-disable-next-line no-self-compare - || outLow != outLow - // eslint-disable-next-line no-self-compare - || outHigh != outHigh) return NaN; + if ( + arguments.length === 0 + // eslint-disable-next-line no-self-compare + || x != x + // eslint-disable-next-line no-self-compare + || inLow != inLow + // eslint-disable-next-line no-self-compare + || inHigh != inHigh + // eslint-disable-next-line no-self-compare + || outLow != outLow + // eslint-disable-next-line no-self-compare + || outHigh != outHigh + ) return NaN; if (x === Infinity || x === -Infinity) return x; return (x - inLow) * (outHigh - outLow) / (inHigh - inLow) + outLow; }; -},{}],559:[function(require,module,exports){ -"use strict"; - +},{}],573:[function(require,module,exports){ // 20.2.2.28 Math.sign(x) module.exports = Math.sign || function sign(x) { // eslint-disable-next-line no-self-compare return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; }; -},{}],560:[function(require,module,exports){ -arguments[4][445][0].apply(exports,arguments) -},{"./_fails":530,"./_has":536,"./_is-object":546,"./_object-dp":566,"./_uid":616,"dup":445}],561:[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; }; - +},{}],574:[function(require,module,exports){ +arguments[4][459][0].apply(exports,arguments) +},{"./_fails":544,"./_has":550,"./_is-object":560,"./_object-dp":580,"./_uid":630,"dup":459}],575:[function(require,module,exports){ var Map = require('./es6.map'); var $export = require('./_export'); var shared = require('./_shared')('metadata'); var store = shared.store || (shared.store = new (require('./es6.weak-map'))()); -var getOrCreateMetadataMap = function getOrCreateMetadataMap(target, targetKey, create) { +var getOrCreateMetadataMap = function (target, targetKey, create) { var targetMetadata = store.get(target); if (!targetMetadata) { if (!create) return undefined; @@ -131661,31 +139412,29 @@ var getOrCreateMetadataMap = function getOrCreateMetadataMap(target, targetKey, if (!keyMetadata) { if (!create) return undefined; targetMetadata.set(targetKey, keyMetadata = new Map()); - }return keyMetadata; + } return keyMetadata; }; -var ordinaryHasOwnMetadata = function ordinaryHasOwnMetadata(MetadataKey, O, P) { +var ordinaryHasOwnMetadata = function (MetadataKey, O, P) { var metadataMap = getOrCreateMetadataMap(O, P, false); return metadataMap === undefined ? false : metadataMap.has(MetadataKey); }; -var ordinaryGetOwnMetadata = function ordinaryGetOwnMetadata(MetadataKey, O, P) { +var ordinaryGetOwnMetadata = function (MetadataKey, O, P) { var metadataMap = getOrCreateMetadataMap(O, P, false); return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey); }; -var ordinaryDefineOwnMetadata = function ordinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) { +var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) { getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue); }; -var ordinaryOwnMetadataKeys = function ordinaryOwnMetadataKeys(target, targetKey) { +var ordinaryOwnMetadataKeys = function (target, targetKey) { var metadataMap = getOrCreateMetadataMap(target, targetKey, false); var keys = []; - if (metadataMap) metadataMap.forEach(function (_, key) { - keys.push(key); - }); + if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); }); return keys; }; -var toMetaKey = function toMetaKey(it) { - return it === undefined || (typeof it === 'undefined' ? 'undefined' : _typeof(it)) == 'symbol' ? it : String(it); +var toMetaKey = function (it) { + return it === undefined || typeof it == 'symbol' ? it : String(it); }; -var exp = function exp(O) { +var exp = function (O) { $export($export.S, 'Reflect', O); }; @@ -131700,49 +139449,46 @@ module.exports = { exp: exp }; -},{"./_export":528,"./_shared":595,"./es6.map":653,"./es6.weak-map":759}],562:[function(require,module,exports){ -arguments[4][446][0].apply(exports,arguments) -},{"./_cof":513,"./_global":535,"./_task":605,"dup":446}],563:[function(require,module,exports){ -arguments[4][447][0].apply(exports,arguments) -},{"./_a-function":498,"dup":447}],564:[function(require,module,exports){ -arguments[4][448][0].apply(exports,arguments) -},{"./_fails":530,"./_iobject":542,"./_object-gops":572,"./_object-keys":575,"./_object-pie":576,"./_to-object":611,"dup":448}],565:[function(require,module,exports){ -arguments[4][449][0].apply(exports,arguments) -},{"./_an-object":502,"./_dom-create":525,"./_enum-bug-keys":526,"./_html":538,"./_object-dps":567,"./_shared-key":594,"dup":449}],566:[function(require,module,exports){ -arguments[4][450][0].apply(exports,arguments) -},{"./_an-object":502,"./_descriptors":524,"./_ie8-dom-define":539,"./_to-primitive":612,"dup":450}],567:[function(require,module,exports){ -arguments[4][451][0].apply(exports,arguments) -},{"./_an-object":502,"./_descriptors":524,"./_object-dp":566,"./_object-keys":575,"dup":451}],568:[function(require,module,exports){ +},{"./_export":542,"./_shared":609,"./es6.map":667,"./es6.weak-map":773}],576:[function(require,module,exports){ +arguments[4][460][0].apply(exports,arguments) +},{"./_cof":527,"./_global":549,"./_task":619,"dup":460}],577:[function(require,module,exports){ +arguments[4][461][0].apply(exports,arguments) +},{"./_a-function":512,"dup":461}],578:[function(require,module,exports){ +arguments[4][462][0].apply(exports,arguments) +},{"./_fails":544,"./_iobject":556,"./_object-gops":586,"./_object-keys":589,"./_object-pie":590,"./_to-object":625,"dup":462}],579:[function(require,module,exports){ +arguments[4][463][0].apply(exports,arguments) +},{"./_an-object":516,"./_dom-create":539,"./_enum-bug-keys":540,"./_html":552,"./_object-dps":581,"./_shared-key":608,"dup":463}],580:[function(require,module,exports){ +arguments[4][464][0].apply(exports,arguments) +},{"./_an-object":516,"./_descriptors":538,"./_ie8-dom-define":553,"./_to-primitive":626,"dup":464}],581:[function(require,module,exports){ +arguments[4][465][0].apply(exports,arguments) +},{"./_an-object":516,"./_descriptors":538,"./_object-dp":580,"./_object-keys":589,"dup":465}],582:[function(require,module,exports){ 'use strict'; // Forced replacement prototype accessors methods - module.exports = require('./_library') || !require('./_fails')(function () { var K = Math.random(); // In FF throws only define methods // eslint-disable-next-line no-undef, no-useless-call - __defineSetter__.call(null, K, function () {/* empty */}); + __defineSetter__.call(null, K, function () { /* empty */ }); delete require('./_global')[K]; }); -},{"./_fails":530,"./_global":535,"./_library":554}],569:[function(require,module,exports){ -arguments[4][452][0].apply(exports,arguments) -},{"./_descriptors":524,"./_has":536,"./_ie8-dom-define":539,"./_object-pie":576,"./_property-desc":584,"./_to-iobject":609,"./_to-primitive":612,"dup":452}],570:[function(require,module,exports){ -arguments[4][453][0].apply(exports,arguments) -},{"./_object-gopn":571,"./_to-iobject":609,"dup":453}],571:[function(require,module,exports){ -arguments[4][454][0].apply(exports,arguments) -},{"./_enum-bug-keys":526,"./_object-keys-internal":574,"dup":454}],572:[function(require,module,exports){ -arguments[4][455][0].apply(exports,arguments) -},{"dup":455}],573:[function(require,module,exports){ -arguments[4][456][0].apply(exports,arguments) -},{"./_has":536,"./_shared-key":594,"./_to-object":611,"dup":456}],574:[function(require,module,exports){ -arguments[4][457][0].apply(exports,arguments) -},{"./_array-includes":506,"./_has":536,"./_shared-key":594,"./_to-iobject":609,"dup":457}],575:[function(require,module,exports){ -arguments[4][458][0].apply(exports,arguments) -},{"./_enum-bug-keys":526,"./_object-keys-internal":574,"dup":458}],576:[function(require,module,exports){ -arguments[4][459][0].apply(exports,arguments) -},{"dup":459}],577:[function(require,module,exports){ -'use strict'; - +},{"./_fails":544,"./_global":549,"./_library":568}],583:[function(require,module,exports){ +arguments[4][466][0].apply(exports,arguments) +},{"./_descriptors":538,"./_has":550,"./_ie8-dom-define":553,"./_object-pie":590,"./_property-desc":598,"./_to-iobject":623,"./_to-primitive":626,"dup":466}],584:[function(require,module,exports){ +arguments[4][467][0].apply(exports,arguments) +},{"./_object-gopn":585,"./_to-iobject":623,"dup":467}],585:[function(require,module,exports){ +arguments[4][468][0].apply(exports,arguments) +},{"./_enum-bug-keys":540,"./_object-keys-internal":588,"dup":468}],586:[function(require,module,exports){ +arguments[4][469][0].apply(exports,arguments) +},{"dup":469}],587:[function(require,module,exports){ +arguments[4][470][0].apply(exports,arguments) +},{"./_has":550,"./_shared-key":608,"./_to-object":625,"dup":470}],588:[function(require,module,exports){ +arguments[4][471][0].apply(exports,arguments) +},{"./_array-includes":520,"./_has":550,"./_shared-key":608,"./_to-iobject":623,"dup":471}],589:[function(require,module,exports){ +arguments[4][472][0].apply(exports,arguments) +},{"./_enum-bug-keys":540,"./_object-keys-internal":588,"dup":472}],590:[function(require,module,exports){ +arguments[4][473][0].apply(exports,arguments) +},{"dup":473}],591:[function(require,module,exports){ // most Object methods by ES6 should accept primitives var $export = require('./_export'); var core = require('./_core'); @@ -131751,14 +139497,10 @@ module.exports = function (KEY, exec) { var fn = (core.Object || {})[KEY] || Object[KEY]; var exp = {}; exp[KEY] = exec(fn); - $export($export.S + $export.F * fails(function () { - fn(1); - }), 'Object', exp); + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); }; -},{"./_core":518,"./_export":528,"./_fails":530}],578:[function(require,module,exports){ -'use strict'; - +},{"./_core":532,"./_export":542,"./_fails":544}],592:[function(require,module,exports){ var getKeys = require('./_object-keys'); var toIObject = require('./_to-iobject'); var isEnum = require('./_object-pie').f; @@ -131770,17 +139512,13 @@ module.exports = function (isEntries) { var i = 0; var result = []; var key; - while (length > i) { - if (isEnum.call(O, key = keys[i++])) { - result.push(isEntries ? [key, O[key]] : O[key]); - } - }return result; + while (length > i) if (isEnum.call(O, key = keys[i++])) { + result.push(isEntries ? [key, O[key]] : O[key]); + } return result; }; }; -},{"./_object-keys":575,"./_object-pie":576,"./_to-iobject":609}],579:[function(require,module,exports){ -'use strict'; - +},{"./_object-keys":589,"./_object-pie":590,"./_to-iobject":623}],593:[function(require,module,exports){ // all object keys, includes non-enumerable and symbols var gOPN = require('./_object-gopn'); var gOPS = require('./_object-gops'); @@ -131792,9 +139530,7 @@ module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) { return getSymbols ? keys.concat(getSymbols(it)) : keys; }; -},{"./_an-object":502,"./_global":535,"./_object-gopn":571,"./_object-gops":572}],580:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_global":549,"./_object-gopn":585,"./_object-gops":586}],594:[function(require,module,exports){ var $parseFloat = require('./_global').parseFloat; var $trim = require('./_string-trim').trim; @@ -131804,9 +139540,7 @@ module.exports = 1 / $parseFloat(require('./_string-ws') + '-0') !== -Infinity ? return result === 0 && string.charAt(0) == '-' ? -0 : result; } : $parseFloat; -},{"./_global":535,"./_string-trim":603,"./_string-ws":604}],581:[function(require,module,exports){ -'use strict'; - +},{"./_global":549,"./_string-trim":617,"./_string-ws":618}],595:[function(require,module,exports){ var $parseInt = require('./_global').parseInt; var $trim = require('./_string-trim').trim; var ws = require('./_string-ws'); @@ -131814,28 +139548,23 @@ var hex = /^[-+]?0[xX]/; module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { var string = $trim(String(str), 3); - return $parseInt(string, radix >>> 0 || (hex.test(string) ? 16 : 10)); + return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); } : $parseInt; -},{"./_global":535,"./_string-trim":603,"./_string-ws":604}],582:[function(require,module,exports){ -arguments[4][460][0].apply(exports,arguments) -},{"dup":460}],583:[function(require,module,exports){ -arguments[4][461][0].apply(exports,arguments) -},{"./_an-object":502,"./_is-object":546,"./_new-promise-capability":563,"dup":461}],584:[function(require,module,exports){ -arguments[4][462][0].apply(exports,arguments) -},{"dup":462}],585:[function(require,module,exports){ -'use strict'; - +},{"./_global":549,"./_string-trim":617,"./_string-ws":618}],596:[function(require,module,exports){ +arguments[4][474][0].apply(exports,arguments) +},{"dup":474}],597:[function(require,module,exports){ +arguments[4][475][0].apply(exports,arguments) +},{"./_an-object":516,"./_is-object":560,"./_new-promise-capability":577,"dup":475}],598:[function(require,module,exports){ +arguments[4][476][0].apply(exports,arguments) +},{"dup":476}],599:[function(require,module,exports){ var redefine = require('./_redefine'); module.exports = function (target, src, safe) { - for (var key in src) { - redefine(target, key, src[key], safe); - }return target; + for (var key in src) redefine(target, key, src[key], safe); + return target; }; -},{"./_redefine":586}],586:[function(require,module,exports){ -'use strict'; - +},{"./_redefine":600}],600:[function(require,module,exports){ var global = require('./_global'); var hide = require('./_hide'); var has = require('./_has'); @@ -131863,14 +139592,12 @@ require('./_core').inspectSource = function (it) { } else { hide(O, key, val); } - // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, TO_STRING, function toString() { return typeof this == 'function' && this[SRC] || $toString.call(this); }); -},{"./_core":518,"./_global":535,"./_has":536,"./_hide":537,"./_uid":616}],587:[function(require,module,exports){ -"use strict"; - +},{"./_core":532,"./_global":549,"./_has":550,"./_hide":551,"./_uid":630}],601:[function(require,module,exports){ module.exports = function (regExp, replace) { var replacer = replace === Object(replace) ? function (part) { return replace[part]; @@ -131880,19 +139607,16 @@ module.exports = function (regExp, replace) { }; }; -},{}],588:[function(require,module,exports){ -"use strict"; - +},{}],602:[function(require,module,exports){ // 7.2.9 SameValue(x, y) module.exports = Object.is || function is(x, y) { // eslint-disable-next-line no-self-compare return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; -},{}],589:[function(require,module,exports){ +},{}],603:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-setmap-offrom/ - var $export = require('./_export'); var aFunction = require('./_a-function'); var ctx = require('./_ctx'); @@ -131900,47 +139624,44 @@ var forOf = require('./_for-of'); module.exports = function (COLLECTION) { $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { - var mapFn = arguments[1]; - var mapping, A, n, cb; - aFunction(this); - mapping = mapFn !== undefined; - if (mapping) aFunction(mapFn); - if (source == undefined) return new this(); - A = []; - if (mapping) { - n = 0; - cb = ctx(mapFn, arguments[2], 2); - forOf(source, false, function (nextItem) { - A.push(cb(nextItem, n++)); - }); - } else { - forOf(source, false, A.push, A); - } - return new this(A); - } }); + var mapFn = arguments[1]; + var mapping, A, n, cb; + aFunction(this); + mapping = mapFn !== undefined; + if (mapping) aFunction(mapFn); + if (source == undefined) return new this(); + A = []; + if (mapping) { + n = 0; + cb = ctx(mapFn, arguments[2], 2); + forOf(source, false, function (nextItem) { + A.push(cb(nextItem, n++)); + }); + } else { + forOf(source, false, A.push, A); + } + return new this(A); + } }); }; -},{"./_a-function":498,"./_ctx":520,"./_export":528,"./_for-of":534}],590:[function(require,module,exports){ +},{"./_a-function":512,"./_ctx":534,"./_export":542,"./_for-of":548}],604:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-setmap-offrom/ - var $export = require('./_export'); module.exports = function (COLLECTION) { $export($export.S, COLLECTION, { of: function of() { - var length = arguments.length; - var A = new Array(length); - while (length--) { - A[length] = arguments[length]; - }return new this(A); - } }); + var length = arguments.length; + var A = new Array(length); + while (length--) A[length] = arguments[length]; + return new this(A); + } }); }; -},{"./_export":528}],591:[function(require,module,exports){ -arguments[4][465][0].apply(exports,arguments) -},{"./_an-object":502,"./_ctx":520,"./_is-object":546,"./_object-gopd":569,"dup":465}],592:[function(require,module,exports){ +},{"./_export":542}],605:[function(require,module,exports){ +arguments[4][479][0].apply(exports,arguments) +},{"./_an-object":516,"./_ctx":534,"./_is-object":560,"./_object-gopd":583,"dup":479}],606:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var dP = require('./_object-dp'); var DESCRIPTORS = require('./_descriptors'); @@ -131950,37 +139671,32 @@ module.exports = function (KEY) { var C = global[KEY]; if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { configurable: true, - get: function get() { - return this; - } + get: function () { return this; } }); }; -},{"./_descriptors":524,"./_global":535,"./_object-dp":566,"./_wks":621}],593:[function(require,module,exports){ -arguments[4][467][0].apply(exports,arguments) -},{"./_has":536,"./_object-dp":566,"./_wks":621,"dup":467}],594:[function(require,module,exports){ -arguments[4][468][0].apply(exports,arguments) -},{"./_shared":595,"./_uid":616,"dup":468}],595:[function(require,module,exports){ -arguments[4][469][0].apply(exports,arguments) -},{"./_core":518,"./_global":535,"./_library":554,"dup":469}],596:[function(require,module,exports){ -arguments[4][470][0].apply(exports,arguments) -},{"./_a-function":498,"./_an-object":502,"./_wks":621,"dup":470}],597:[function(require,module,exports){ +},{"./_descriptors":538,"./_global":549,"./_object-dp":580,"./_wks":635}],607:[function(require,module,exports){ +arguments[4][481][0].apply(exports,arguments) +},{"./_has":550,"./_object-dp":580,"./_wks":635,"dup":481}],608:[function(require,module,exports){ +arguments[4][482][0].apply(exports,arguments) +},{"./_shared":609,"./_uid":630,"dup":482}],609:[function(require,module,exports){ +arguments[4][483][0].apply(exports,arguments) +},{"./_core":532,"./_global":549,"./_library":568,"dup":483}],610:[function(require,module,exports){ +arguments[4][484][0].apply(exports,arguments) +},{"./_a-function":512,"./_an-object":516,"./_wks":635,"dup":484}],611:[function(require,module,exports){ 'use strict'; - var fails = require('./_fails'); module.exports = function (method, arg) { return !!method && fails(function () { // eslint-disable-next-line no-useless-call - arg ? method.call(null, function () {/* empty */}, 1) : method.call(null); + arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); }); }; -},{"./_fails":530}],598:[function(require,module,exports){ -arguments[4][471][0].apply(exports,arguments) -},{"./_defined":523,"./_to-integer":608,"dup":471}],599:[function(require,module,exports){ -'use strict'; - +},{"./_fails":544}],612:[function(require,module,exports){ +arguments[4][485][0].apply(exports,arguments) +},{"./_defined":537,"./_to-integer":622,"dup":485}],613:[function(require,module,exports){ // helper for String#{startsWith, endsWith, includes} var isRegExp = require('./_is-regexp'); var defined = require('./_defined'); @@ -131990,15 +139706,13 @@ module.exports = function (that, searchString, NAME) { return String(defined(that)); }; -},{"./_defined":523,"./_is-regexp":547}],600:[function(require,module,exports){ -'use strict'; - +},{"./_defined":537,"./_is-regexp":561}],614:[function(require,module,exports){ var $export = require('./_export'); var fails = require('./_fails'); var defined = require('./_defined'); var quot = /"/g; // B.2.3.2.1 CreateHTML(string, tag, attribute, value) -var createHTML = function createHTML(string, tag, attribute, value) { +var createHTML = function (string, tag, attribute, value) { var S = String(defined(string)); var p1 = '<' + tag; if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; @@ -132013,9 +139727,7 @@ module.exports = function (NAME, exec) { }), 'String', O); }; -},{"./_defined":523,"./_export":528,"./_fails":530}],601:[function(require,module,exports){ -'use strict'; - +},{"./_defined":537,"./_export":542,"./_fails":544}],615:[function(require,module,exports){ // https://github.com/tc39/proposal-string-pad-start-end var toLength = require('./_to-length'); var repeat = require('./_string-repeat'); @@ -132033,9 +139745,8 @@ module.exports = function (that, maxLength, fillString, left) { return left ? stringFiller + S : S + stringFiller; }; -},{"./_defined":523,"./_string-repeat":602,"./_to-length":610}],602:[function(require,module,exports){ +},{"./_defined":537,"./_string-repeat":616,"./_to-length":624}],616:[function(require,module,exports){ 'use strict'; - var toInteger = require('./_to-integer'); var defined = require('./_defined'); @@ -132044,24 +139755,21 @@ module.exports = function repeat(count) { var res = ''; var n = toInteger(count); if (n < 0 || n == Infinity) throw RangeError("Count can't be negative"); - for (; n > 0; (n >>>= 1) && (str += str)) { - if (n & 1) res += str; - }return res; + for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str; + return res; }; -},{"./_defined":523,"./_to-integer":608}],603:[function(require,module,exports){ -'use strict'; - +},{"./_defined":537,"./_to-integer":622}],617:[function(require,module,exports){ var $export = require('./_export'); var defined = require('./_defined'); var fails = require('./_fails'); var spaces = require('./_string-ws'); var space = '[' + spaces + ']'; -var non = '\u200B\x85'; +var non = '\u200b\u0085'; var ltrim = RegExp('^' + space + space + '*'); var rtrim = RegExp(space + space + '*$'); -var exporter = function exporter(KEY, exec, ALIAS) { +var exporter = function (KEY, exec, ALIAS) { var exp = {}; var FORCE = fails(function () { return !!spaces[KEY]() || non[KEY]() != non; @@ -132083,18 +139791,15 @@ var trim = exporter.trim = function (string, TYPE) { module.exports = exporter; -},{"./_defined":523,"./_export":528,"./_fails":530,"./_string-ws":604}],604:[function(require,module,exports){ -'use strict'; - -module.exports = '\t\n\x0B\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; - -},{}],605:[function(require,module,exports){ -arguments[4][472][0].apply(exports,arguments) -},{"./_cof":513,"./_ctx":520,"./_dom-create":525,"./_global":535,"./_html":538,"./_invoke":541,"dup":472}],606:[function(require,module,exports){ -arguments[4][473][0].apply(exports,arguments) -},{"./_to-integer":608,"dup":473}],607:[function(require,module,exports){ -'use strict'; +},{"./_defined":537,"./_export":542,"./_fails":544,"./_string-ws":618}],618:[function(require,module,exports){ +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; +},{}],619:[function(require,module,exports){ +arguments[4][486][0].apply(exports,arguments) +},{"./_cof":527,"./_ctx":534,"./_dom-create":539,"./_global":549,"./_html":552,"./_invoke":555,"dup":486}],620:[function(require,module,exports){ +arguments[4][487][0].apply(exports,arguments) +},{"./_to-integer":622,"dup":487}],621:[function(require,module,exports){ // https://tc39.github.io/ecma262/#sec-toindex var toInteger = require('./_to-integer'); var toLength = require('./_to-length'); @@ -132106,21 +139811,18 @@ module.exports = function (it) { return length; }; -},{"./_to-integer":608,"./_to-length":610}],608:[function(require,module,exports){ -arguments[4][474][0].apply(exports,arguments) -},{"dup":474}],609:[function(require,module,exports){ -arguments[4][475][0].apply(exports,arguments) -},{"./_defined":523,"./_iobject":542,"dup":475}],610:[function(require,module,exports){ -arguments[4][476][0].apply(exports,arguments) -},{"./_to-integer":608,"dup":476}],611:[function(require,module,exports){ -arguments[4][477][0].apply(exports,arguments) -},{"./_defined":523,"dup":477}],612:[function(require,module,exports){ -arguments[4][478][0].apply(exports,arguments) -},{"./_is-object":546,"dup":478}],613:[function(require,module,exports){ +},{"./_to-integer":622,"./_to-length":624}],622:[function(require,module,exports){ +arguments[4][488][0].apply(exports,arguments) +},{"dup":488}],623:[function(require,module,exports){ +arguments[4][489][0].apply(exports,arguments) +},{"./_defined":537,"./_iobject":556,"dup":489}],624:[function(require,module,exports){ +arguments[4][490][0].apply(exports,arguments) +},{"./_to-integer":622,"dup":490}],625:[function(require,module,exports){ +arguments[4][491][0].apply(exports,arguments) +},{"./_defined":537,"dup":491}],626:[function(require,module,exports){ +arguments[4][492][0].apply(exports,arguments) +},{"./_is-object":560,"dup":492}],627:[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; }; - if (require('./_descriptors')) { var LIBRARY = require('./_library'); var global = require('./_global'); @@ -132213,40 +139915,37 @@ if (require('./_descriptors')) { new Uint8Array(1).set({}); }); - var toOffset = function toOffset(it, BYTES) { + var toOffset = function (it, BYTES) { var offset = toInteger(it); if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!'); return offset; }; - var validate = function validate(it) { + var validate = function (it) { if (isObject(it) && TYPED_ARRAY in it) return it; throw TypeError(it + ' is not a typed array!'); }; - var allocate = function allocate(C, length) { + var allocate = function (C, length) { if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) { throw TypeError('It is not a typed array constructor!'); - }return new C(length); + } return new C(length); }; - var speciesFromList = function speciesFromList(O, list) { + var speciesFromList = function (O, list) { return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list); }; - var fromList = function fromList(C, list) { + var fromList = function (C, list) { var index = 0; var length = list.length; var result = allocate(C, length); - while (length > index) { - result[index] = list[index++]; - }return result; + while (length > index) result[index] = list[index++]; + return result; }; - var addGetter = function addGetter(it, key, internal) { - dP(it, key, { get: function get() { - return this._d[internal]; - } }); + var addGetter = function (it, key, internal) { + dP(it, key, { get: function () { return this._d[internal]; } }); }; var $from = function from(source /* , mapfn, thisArg */) { @@ -132259,7 +139958,7 @@ if (require('./_descriptors')) { if (iterFn != undefined && !isArrayIter(iterFn)) { for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) { values.push(step.value); - }O = values; + } O = values; } if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2); for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) { @@ -132268,19 +139967,16 @@ if (require('./_descriptors')) { return result; }; - var $of = function of() /* ...items */{ + var $of = function of(/* ...items */) { var index = 0; var length = arguments.length; var result = allocate(this, length); - while (length > index) { - result[index] = arguments[index++]; - }return result; + while (length > index) result[index] = arguments[index++]; + return result; }; // iOS Safari 6.x fails here - var TO_LOCALE_BUG = !!Uint8Array && fails(function () { - arrayToLocaleString.call(new Uint8Array(1)); - }); + var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); }); var $toLocaleString = function toLocaleString() { return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments); @@ -132293,12 +139989,12 @@ if (require('./_descriptors')) { every: function every(callbackfn /* , thisArg */) { return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, - fill: function fill(value /* , start, end */) { - // eslint-disable-line no-unused-vars + fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars return arrayFill.apply(validate(this), arguments); }, filter: function filter(callbackfn /* , thisArg */) { - return speciesFromList(this, arrayFilter(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined)); + return speciesFromList(this, arrayFilter(validate(this), callbackfn, + arguments.length > 1 ? arguments[1] : undefined)); }, find: function find(predicate /* , thisArg */) { return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); @@ -132315,23 +140011,19 @@ if (require('./_descriptors')) { includes: function includes(searchElement /* , fromIndex */) { return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }, - join: function join(separator) { - // eslint-disable-line no-unused-vars + join: function join(separator) { // eslint-disable-line no-unused-vars return arrayJoin.apply(validate(this), arguments); }, - lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { - // eslint-disable-line no-unused-vars + lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars return arrayLastIndexOf.apply(validate(this), arguments); }, map: function map(mapfn /* , thisArg */) { return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined); }, - reduce: function reduce(callbackfn /* , initialValue */) { - // eslint-disable-line no-unused-vars + reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars return arrayReduce.apply(validate(this), arguments); }, - reduceRight: function reduceRight(callbackfn /* , initialValue */) { - // eslint-disable-line no-unused-vars + reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars return arrayReduceRight.apply(validate(this), arguments); }, reverse: function reverse() { @@ -132344,7 +140036,7 @@ if (require('./_descriptors')) { value = that[index]; that[index++] = that[--length]; that[length] = value; - }return that; + } return that; }, some: function some(callbackfn /* , thisArg */) { return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); @@ -132356,7 +140048,11 @@ if (require('./_descriptors')) { var O = validate(this); var length = O.length; var $begin = toAbsoluteIndex(begin, length); - return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)); + return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))( + O.buffer, + O.byteOffset + $begin * O.BYTES_PER_ELEMENT, + toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin) + ); } }; @@ -132372,9 +140068,7 @@ if (require('./_descriptors')) { var len = toLength(src.length); var index = 0; if (len + offset > length) throw RangeError(WRONG_LENGTH); - while (index < len) { - this[offset + index] = src[index++]; - } + while (index < len) this[offset + index] = src[index++]; }; var $iterators = { @@ -132389,19 +140083,32 @@ if (require('./_descriptors')) { } }; - var isTAIndex = function isTAIndex(target, key) { - return isObject(target) && target[TYPED_ARRAY] && (typeof key === 'undefined' ? 'undefined' : _typeof(key)) != 'symbol' && key in target && String(+key) == String(key); + var isTAIndex = function (target, key) { + return isObject(target) + && target[TYPED_ARRAY] + && typeof key != 'symbol' + && key in target + && String(+key) == String(key); }; var $getDesc = function getOwnPropertyDescriptor(target, key) { - return isTAIndex(target, key = toPrimitive(key, true)) ? propertyDesc(2, target[key]) : gOPD(target, key); + return isTAIndex(target, key = toPrimitive(key, true)) + ? propertyDesc(2, target[key]) + : gOPD(target, key); }; var $setDesc = function defineProperty(target, key, desc) { - if (isTAIndex(target, key = toPrimitive(key, true)) && isObject(desc) && has(desc, 'value') && !has(desc, 'get') && !has(desc, 'set') - // TODO: add validation descriptor w/o calling accessors - && !desc.configurable && (!has(desc, 'writable') || desc.writable) && (!has(desc, 'enumerable') || desc.enumerable)) { + if (isTAIndex(target, key = toPrimitive(key, true)) + && isObject(desc) + && has(desc, 'value') + && !has(desc, 'get') + && !has(desc, 'set') + // TODO: add validation descriptor w/o calling accessors + && !desc.configurable + && (!has(desc, 'writable') || desc.writable) + && (!has(desc, 'enumerable') || desc.enumerable) + ) { target[key] = desc.value; return target; - }return dP(target, key, desc); + } return dP(target, key, desc); }; if (!ALL_CONSTRUCTORS) { @@ -132414,9 +140121,7 @@ if (require('./_descriptors')) { defineProperty: $setDesc }); - if (fails(function () { - arrayToString.call({}); - })) { + if (fails(function () { arrayToString.call({}); })) { arrayToString = arrayToLocaleString = function toString() { return arrayJoin.call(this); }; @@ -132428,7 +140133,7 @@ if (require('./_descriptors')) { redefineAll($TypedArrayPrototype$, { slice: $slice, set: $set, - constructor: function constructor() {/* noop */}, + constructor: function () { /* noop */ }, toString: arrayToString, toLocaleString: $toLocaleString }); @@ -132437,9 +140142,7 @@ if (require('./_descriptors')) { addGetter($TypedArrayPrototype$, 'byteLength', 'l'); addGetter($TypedArrayPrototype$, 'length', 'e'); dP($TypedArrayPrototype$, TAG, { - get: function get() { - return this[TYPED_ARRAY]; - } + get: function () { return this[TYPED_ARRAY]; } }); // eslint-disable-next-line max-statements @@ -132454,21 +140157,21 @@ if (require('./_descriptors')) { var FORCED = !TypedArray || !$typed.ABV; var O = {}; var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE]; - var getter = function getter(that, index) { + var getter = function (that, index) { var data = that._d; return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN); }; - var setter = function setter(that, index, value) { + var setter = function (that, index, value) { var data = that._d; if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff; data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN); }; - var addElement = function addElement(that, index) { + var addElement = function (that, index) { dP(that, index, { - get: function get() { + get: function () { return getter(this, index); }, - set: function set(value) { + set: function (value) { return setter(this, index, value); }, enumerable: true @@ -132509,9 +140212,7 @@ if (require('./_descriptors')) { e: length, v: new $DataView(buffer) }); - while (index < length) { - addElement(that, index++); - } + while (index < length) addElement(that, index++); }); TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$); hide(TypedArrayPrototype, 'constructor', TypedArray); @@ -132532,7 +140233,11 @@ if (require('./_descriptors')) { // https://github.com/websockets/ws/pull/645 if (!isObject(data)) return new Base(toIndex(data)); if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { - return $length !== undefined ? new Base(data, toOffset($offset, BYTES), $length) : $offset !== undefined ? new Base(data, toOffset($offset, BYTES)) : new Base(data); + return $length !== undefined + ? new Base(data, toOffset($offset, BYTES), $length) + : $offset !== undefined + ? new Base(data, toOffset($offset, BYTES)) + : new Base(data); } if (TYPED_ARRAY in data) return fromList(TypedArray, data); return $from.call(TypedArray, data); @@ -132544,7 +140249,8 @@ if (require('./_descriptors')) { if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray; } var $nativeIterator = TypedArrayPrototype[ITERATOR]; - var CORRECT_ITER_NAME = !!$nativeIterator && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined); + var CORRECT_ITER_NAME = !!$nativeIterator + && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined); var $iterator = $iterators.values; hide(TypedArray, TYPED_CONSTRUCTOR, true); hide(TypedArrayPrototype, TYPED_ARRAY, NAME); @@ -132553,9 +140259,7 @@ if (require('./_descriptors')) { if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) { dP(TypedArrayPrototype, TAG, { - get: function get() { - return NAME; - } + get: function () { return NAME; } }); } @@ -132567,9 +140271,7 @@ if (require('./_descriptors')) { BYTES_PER_ELEMENT: BYTES }); - $export($export.S + $export.F * fails(function () { - Base.of.call(TypedArray, 1); - }), NAME, { + $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, { from: $from, of: $of }); @@ -132599,11 +140301,10 @@ if (require('./_descriptors')) { Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator; if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator); }; -} else module.exports = function () {/* empty */}; +} else module.exports = function () { /* empty */ }; -},{"./_an-instance":501,"./_array-copy-within":503,"./_array-fill":504,"./_array-includes":506,"./_array-methods":507,"./_classof":512,"./_ctx":520,"./_descriptors":524,"./_export":528,"./_fails":530,"./_global":535,"./_has":536,"./_hide":537,"./_is-array-iter":543,"./_is-object":546,"./_iter-detect":551,"./_iterators":553,"./_library":554,"./_object-create":565,"./_object-dp":566,"./_object-gopd":569,"./_object-gopn":571,"./_object-gpo":573,"./_property-desc":584,"./_redefine-all":585,"./_set-species":592,"./_species-constructor":596,"./_to-absolute-index":606,"./_to-index":607,"./_to-integer":608,"./_to-length":610,"./_to-object":611,"./_to-primitive":612,"./_typed":615,"./_typed-buffer":614,"./_uid":616,"./_wks":621,"./core.get-iterator-method":622,"./es6.array.iterator":634}],614:[function(require,module,exports){ +},{"./_an-instance":515,"./_array-copy-within":517,"./_array-fill":518,"./_array-includes":520,"./_array-methods":521,"./_classof":526,"./_ctx":534,"./_descriptors":538,"./_export":542,"./_fails":544,"./_global":549,"./_has":550,"./_hide":551,"./_is-array-iter":557,"./_is-object":560,"./_iter-detect":565,"./_iterators":567,"./_library":568,"./_object-create":579,"./_object-dp":580,"./_object-gopd":583,"./_object-gopn":585,"./_object-gpo":587,"./_property-desc":598,"./_redefine-all":599,"./_set-species":606,"./_species-constructor":610,"./_to-absolute-index":620,"./_to-index":621,"./_to-integer":622,"./_to-length":624,"./_to-object":625,"./_to-primitive":626,"./_typed":629,"./_typed-buffer":628,"./_uid":630,"./_wks":635,"./core.get-iterator-method":636,"./es6.array.iterator":648}],628:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var DESCRIPTORS = require('./_descriptors'); var LIBRARY = require('./_library'); @@ -132685,10 +140386,10 @@ function packIEEE754(value, mLen, nBytes) { e = 0; } } - for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8) {} + for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8); e = e << mLen | m; eLen += mLen; - for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8) {} + for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8); buffer[--i] |= s * 128; return buffer; } @@ -132702,11 +140403,11 @@ function unpackIEEE754(buffer, mLen, nBytes) { var e = s & 127; var m; s >>= 7; - for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8) {} + for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8); m = e & (1 << -nBits) - 1; e >>= -nBits; nBits += mLen; - for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8) {} + for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8); if (e === 0) { e = 1 - eBias; } else if (e === eMax) { @@ -132714,7 +140415,7 @@ function unpackIEEE754(buffer, mLen, nBytes) { } else { m = m + pow(2, mLen); e = e - eBias; - }return (s ? -1 : 1) * m * pow(2, e - mLen); + } return (s ? -1 : 1) * m * pow(2, e - mLen); } function unpackI32(bytes) { @@ -132737,9 +140438,7 @@ function packF32(it) { } function addGetter(C, key, internal) { - dP(C[PROTOTYPE], key, { get: function get() { - return this[internal]; - } }); + dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } }); } function get(view, bytes, index, isLittleEndian) { @@ -132758,9 +140457,7 @@ function set(view, bytes, index, conversion, value, isLittleEndian) { var store = view[$BUFFER]._b; var start = intIndex + view[$OFFSET]; var pack = conversion(+value); - for (var i = 0; i < bytes; i++) { - store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; - } + for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; } if (!$typed.ABV) { @@ -132884,9 +140581,7 @@ hide($DataView[PROTOTYPE], $typed.VIEW, true); exports[ARRAY_BUFFER] = $ArrayBuffer; exports[DATA_VIEW] = $DataView; -},{"./_an-instance":501,"./_array-fill":504,"./_descriptors":524,"./_fails":530,"./_global":535,"./_hide":537,"./_library":554,"./_object-dp":566,"./_object-gopn":571,"./_redefine-all":585,"./_set-to-string-tag":593,"./_to-index":607,"./_to-integer":608,"./_to-length":610,"./_typed":615}],615:[function(require,module,exports){ -'use strict'; - +},{"./_an-instance":515,"./_array-fill":518,"./_descriptors":538,"./_fails":544,"./_global":549,"./_hide":551,"./_library":568,"./_object-dp":580,"./_object-gopn":585,"./_redefine-all":599,"./_set-to-string-tag":607,"./_to-index":621,"./_to-integer":622,"./_to-length":624,"./_typed":629}],629:[function(require,module,exports){ var global = require('./_global'); var hide = require('./_hide'); var uid = require('./_uid'); @@ -132898,7 +140593,9 @@ var i = 0; var l = 9; var Typed; -var TypedArrayConstructors = 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'.split(','); +var TypedArrayConstructors = ( + 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array' +).split(','); while (i < l) { if (Typed = global[TypedArrayConstructors[i++]]) { @@ -132914,41 +140611,33 @@ module.exports = { VIEW: VIEW }; -},{"./_global":535,"./_hide":537,"./_uid":616}],616:[function(require,module,exports){ -arguments[4][479][0].apply(exports,arguments) -},{"dup":479}],617:[function(require,module,exports){ -arguments[4][480][0].apply(exports,arguments) -},{"./_global":535,"dup":480}],618:[function(require,module,exports){ -'use strict'; - +},{"./_global":549,"./_hide":551,"./_uid":630}],630:[function(require,module,exports){ +arguments[4][493][0].apply(exports,arguments) +},{"dup":493}],631:[function(require,module,exports){ +arguments[4][494][0].apply(exports,arguments) +},{"./_global":549,"dup":494}],632:[function(require,module,exports){ var isObject = require('./_is-object'); module.exports = function (it, TYPE) { if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); return it; }; -},{"./_is-object":546}],619:[function(require,module,exports){ -arguments[4][481][0].apply(exports,arguments) -},{"./_core":518,"./_global":535,"./_library":554,"./_object-dp":566,"./_wks-ext":620,"dup":481}],620:[function(require,module,exports){ -arguments[4][482][0].apply(exports,arguments) -},{"./_wks":621,"dup":482}],621:[function(require,module,exports){ -arguments[4][483][0].apply(exports,arguments) -},{"./_global":535,"./_shared":595,"./_uid":616,"dup":483}],622:[function(require,module,exports){ -arguments[4][484][0].apply(exports,arguments) -},{"./_classof":512,"./_core":518,"./_iterators":553,"./_wks":621,"dup":484}],623:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560}],633:[function(require,module,exports){ +arguments[4][495][0].apply(exports,arguments) +},{"./_core":532,"./_global":549,"./_library":568,"./_object-dp":580,"./_wks-ext":634,"dup":495}],634:[function(require,module,exports){ +arguments[4][496][0].apply(exports,arguments) +},{"./_wks":635,"dup":496}],635:[function(require,module,exports){ +arguments[4][497][0].apply(exports,arguments) +},{"./_global":549,"./_shared":609,"./_uid":630,"dup":497}],636:[function(require,module,exports){ +arguments[4][498][0].apply(exports,arguments) +},{"./_classof":526,"./_core":532,"./_iterators":567,"./_wks":635,"dup":498}],637:[function(require,module,exports){ // https://github.com/benjamingr/RexExp.escape var $export = require('./_export'); var $re = require('./_replacer')(/[\\^$*+?.()|[\]{}]/g, '\\$&'); -$export($export.S, 'RegExp', { escape: function escape(it) { - return $re(it); - } }); - -},{"./_export":528,"./_replacer":587}],624:[function(require,module,exports){ -'use strict'; +$export($export.S, 'RegExp', { escape: function escape(it) { return $re(it); } }); +},{"./_export":542,"./_replacer":601}],638:[function(require,module,exports){ // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) var $export = require('./_export'); @@ -132956,9 +140645,8 @@ $export($export.P, 'Array', { copyWithin: require('./_array-copy-within') }); require('./_add-to-unscopables')('copyWithin'); -},{"./_add-to-unscopables":500,"./_array-copy-within":503,"./_export":528}],625:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-copy-within":517,"./_export":542}],639:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $every = require('./_array-methods')(4); @@ -132969,9 +140657,7 @@ $export($export.P + $export.F * !require('./_strict-method')([].every, true), 'A } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],626:[function(require,module,exports){ -'use strict'; - +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],640:[function(require,module,exports){ // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) var $export = require('./_export'); @@ -132979,9 +140665,8 @@ $export($export.P, 'Array', { fill: require('./_array-fill') }); require('./_add-to-unscopables')('fill'); -},{"./_add-to-unscopables":500,"./_array-fill":504,"./_export":528}],627:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-fill":518,"./_export":542}],641:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $filter = require('./_array-methods')(2); @@ -132992,18 +140677,15 @@ $export($export.P + $export.F * !require('./_strict-method')([].filter, true), ' } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],628:[function(require,module,exports){ +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],642:[function(require,module,exports){ 'use strict'; // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) - var $export = require('./_export'); var $find = require('./_array-methods')(6); var KEY = 'findIndex'; var forced = true; // Shouldn't skip holes -if (KEY in []) Array(1)[KEY](function () { - forced = false; -}); +if (KEY in []) Array(1)[KEY](function () { forced = false; }); $export($export.P + $export.F * forced, 'Array', { findIndex: function findIndex(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); @@ -133011,18 +140693,15 @@ $export($export.P + $export.F * forced, 'Array', { }); require('./_add-to-unscopables')(KEY); -},{"./_add-to-unscopables":500,"./_array-methods":507,"./_export":528}],629:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-methods":521,"./_export":542}],643:[function(require,module,exports){ 'use strict'; // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) - var $export = require('./_export'); var $find = require('./_array-methods')(5); var KEY = 'find'; var forced = true; // Shouldn't skip holes -if (KEY in []) Array(1)[KEY](function () { - forced = false; -}); +if (KEY in []) Array(1)[KEY](function () { forced = false; }); $export($export.P + $export.F * forced, 'Array', { find: function find(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); @@ -133030,9 +140709,8 @@ $export($export.P + $export.F * forced, 'Array', { }); require('./_add-to-unscopables')(KEY); -},{"./_add-to-unscopables":500,"./_array-methods":507,"./_export":528}],630:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-methods":521,"./_export":542}],644:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $forEach = require('./_array-methods')(0); var STRICT = require('./_strict-method')([].forEach, true); @@ -133044,9 +140722,8 @@ $export($export.P + $export.F * !STRICT, 'Array', { } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],631:[function(require,module,exports){ +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],645:[function(require,module,exports){ 'use strict'; - var ctx = require('./_ctx'); var $export = require('./_export'); var toObject = require('./_to-object'); @@ -133056,9 +140733,7 @@ var toLength = require('./_to-length'); var createProperty = require('./_create-property'); var getIterFn = require('./core.get-iterator-method'); -$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { - Array.from(iter); -}), 'Array', { +$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', { // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { var O = toObject(arrayLike); @@ -133086,9 +140761,8 @@ $export($export.S + $export.F * !require('./_iter-detect')(function (iter) { } }); -},{"./_create-property":519,"./_ctx":520,"./_export":528,"./_is-array-iter":543,"./_iter-call":548,"./_iter-detect":551,"./_to-length":610,"./_to-object":611,"./core.get-iterator-method":622}],632:[function(require,module,exports){ +},{"./_create-property":533,"./_ctx":534,"./_export":542,"./_is-array-iter":557,"./_iter-call":562,"./_iter-detect":565,"./_to-length":624,"./_to-object":625,"./core.get-iterator-method":636}],646:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $indexOf = require('./_array-includes')(false); var $native = [].indexOf; @@ -133098,25 +140772,23 @@ $export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($ // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex]) indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { return NEGATIVE_ZERO - // convert -0 to +0 - ? $native.apply(this, arguments) || 0 : $indexOf(this, searchElement, arguments[1]); + // convert -0 to +0 + ? $native.apply(this, arguments) || 0 + : $indexOf(this, searchElement, arguments[1]); } }); -},{"./_array-includes":506,"./_export":528,"./_strict-method":597}],633:[function(require,module,exports){ -'use strict'; - +},{"./_array-includes":520,"./_export":542,"./_strict-method":611}],647:[function(require,module,exports){ // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) var $export = require('./_export'); $export($export.S, 'Array', { isArray: require('./_is-array') }); -},{"./_export":528,"./_is-array":544}],634:[function(require,module,exports){ -arguments[4][485][0].apply(exports,arguments) -},{"./_add-to-unscopables":500,"./_iter-define":550,"./_iter-step":552,"./_iterators":553,"./_to-iobject":609,"dup":485}],635:[function(require,module,exports){ +},{"./_export":542,"./_is-array":558}],648:[function(require,module,exports){ +arguments[4][499][0].apply(exports,arguments) +},{"./_add-to-unscopables":514,"./_iter-define":564,"./_iter-step":566,"./_iterators":567,"./_to-iobject":623,"dup":499}],649:[function(require,module,exports){ 'use strict'; // 22.1.3.13 Array.prototype.join(separator) - var $export = require('./_export'); var toIObject = require('./_to-iobject'); var arrayJoin = [].join; @@ -133128,9 +140800,8 @@ $export($export.P + $export.F * (require('./_iobject') != Object || !require('./ } }); -},{"./_export":528,"./_iobject":542,"./_strict-method":597,"./_to-iobject":609}],636:[function(require,module,exports){ +},{"./_export":542,"./_iobject":556,"./_strict-method":611,"./_to-iobject":623}],650:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toIObject = require('./_to-iobject'); var toInteger = require('./_to-integer'); @@ -133148,15 +140819,13 @@ $export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($ var index = length - 1; if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1])); if (index < 0) index = length + index; - for (; index >= 0; index--) { - if (index in O) if (O[index] === searchElement) return index || 0; - }return -1; + for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0; + return -1; } }); -},{"./_export":528,"./_strict-method":597,"./_to-integer":608,"./_to-iobject":609,"./_to-length":610}],637:[function(require,module,exports){ +},{"./_export":542,"./_strict-method":611,"./_to-integer":622,"./_to-iobject":623,"./_to-length":624}],651:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $map = require('./_array-methods')(1); @@ -133167,32 +140836,29 @@ $export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Arr } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],638:[function(require,module,exports){ +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],652:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var createProperty = require('./_create-property'); // WebKit Array.of isn't generic $export($export.S + $export.F * require('./_fails')(function () { - function F() {/* empty */} + function F() { /* empty */ } return !(Array.of.call(F) instanceof F); }), 'Array', { // 22.1.2.3 Array.of( ...items) - of: function of() /* ...args */{ + of: function of(/* ...args */) { var index = 0; var aLen = arguments.length; var result = new (typeof this == 'function' ? this : Array)(aLen); - while (aLen > index) { - createProperty(result, index, arguments[index++]); - }result.length = aLen; + while (aLen > index) createProperty(result, index, arguments[index++]); + result.length = aLen; return result; } }); -},{"./_create-property":519,"./_export":528,"./_fails":530}],639:[function(require,module,exports){ +},{"./_create-property":533,"./_export":542,"./_fails":544}],653:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $reduce = require('./_array-reduce'); @@ -133203,9 +140869,8 @@ $export($export.P + $export.F * !require('./_strict-method')([].reduceRight, tru } }); -},{"./_array-reduce":508,"./_export":528,"./_strict-method":597}],640:[function(require,module,exports){ +},{"./_array-reduce":522,"./_export":542,"./_strict-method":611}],654:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $reduce = require('./_array-reduce'); @@ -133216,9 +140881,8 @@ $export($export.P + $export.F * !require('./_strict-method')([].reduce, true), ' } }); -},{"./_array-reduce":508,"./_export":528,"./_strict-method":597}],641:[function(require,module,exports){ +},{"./_array-reduce":522,"./_export":542,"./_strict-method":611}],655:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var html = require('./_html'); var cof = require('./_cof'); @@ -133240,15 +140904,15 @@ $export($export.P + $export.F * require('./_fails')(function () { var size = toLength(upTo - start); var cloned = new Array(size); var i = 0; - for (; i < size; i++) { - cloned[i] = klass == 'String' ? this.charAt(start + i) : this[start + i]; - }return cloned; + for (; i < size; i++) cloned[i] = klass == 'String' + ? this.charAt(start + i) + : this[start + i]; + return cloned; } }); -},{"./_cof":513,"./_export":528,"./_fails":530,"./_html":538,"./_to-absolute-index":606,"./_to-length":610}],642:[function(require,module,exports){ +},{"./_cof":527,"./_export":542,"./_fails":544,"./_html":552,"./_to-absolute-index":620,"./_to-length":624}],656:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $some = require('./_array-methods')(3); @@ -133259,9 +140923,8 @@ $export($export.P + $export.F * !require('./_strict-method')([].some, true), 'Ar } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],643:[function(require,module,exports){ +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],657:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var aFunction = require('./_a-function'); var toObject = require('./_to-object'); @@ -133279,28 +140942,22 @@ $export($export.P + $export.F * (fails(function () { }) || !require('./_strict-method')($sort)), 'Array', { // 22.1.3.25 Array.prototype.sort(comparefn) sort: function sort(comparefn) { - return comparefn === undefined ? $sort.call(toObject(this)) : $sort.call(toObject(this), aFunction(comparefn)); + return comparefn === undefined + ? $sort.call(toObject(this)) + : $sort.call(toObject(this), aFunction(comparefn)); } }); -},{"./_a-function":498,"./_export":528,"./_fails":530,"./_strict-method":597,"./_to-object":611}],644:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_export":542,"./_fails":544,"./_strict-method":611,"./_to-object":625}],658:[function(require,module,exports){ require('./_set-species')('Array'); -},{"./_set-species":592}],645:[function(require,module,exports){ -'use strict'; - +},{"./_set-species":606}],659:[function(require,module,exports){ // 20.3.3.1 / 15.9.4.4 Date.now() var $export = require('./_export'); -$export($export.S, 'Date', { now: function now() { - return new Date().getTime(); - } }); - -},{"./_export":528}],646:[function(require,module,exports){ -'use strict'; +$export($export.S, 'Date', { now: function () { return new Date().getTime(); } }); +},{"./_export":542}],660:[function(require,module,exports){ // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() var $export = require('./_export'); var toISOString = require('./_date-to-iso-string'); @@ -133310,17 +140967,15 @@ $export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'D toISOString: toISOString }); -},{"./_date-to-iso-string":521,"./_export":528}],647:[function(require,module,exports){ +},{"./_date-to-iso-string":535,"./_export":542}],661:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var toPrimitive = require('./_to-primitive'); $export($export.P + $export.F * require('./_fails')(function () { - return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({ toISOString: function toISOString() { - return 1; - } }) !== 1; + return new Date(NaN).toJSON() !== null + || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1; }), 'Date', { // eslint-disable-next-line no-unused-vars toJSON: function toJSON(key) { @@ -133330,17 +140985,13 @@ $export($export.P + $export.F * require('./_fails')(function () { } }); -},{"./_export":528,"./_fails":530,"./_to-object":611,"./_to-primitive":612}],648:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_fails":544,"./_to-object":625,"./_to-primitive":626}],662:[function(require,module,exports){ var TO_PRIMITIVE = require('./_wks')('toPrimitive'); var proto = Date.prototype; if (!(TO_PRIMITIVE in proto)) require('./_hide')(proto, TO_PRIMITIVE, require('./_date-to-primitive')); -},{"./_date-to-primitive":522,"./_hide":537,"./_wks":621}],649:[function(require,module,exports){ -'use strict'; - +},{"./_date-to-primitive":536,"./_hide":551,"./_wks":635}],663:[function(require,module,exports){ var DateProto = Date.prototype; var INVALID_DATE = 'Invalid Date'; var TO_STRING = 'toString'; @@ -133354,34 +141005,28 @@ if (new Date(NaN) + '' != INVALID_DATE) { }); } -},{"./_redefine":586}],650:[function(require,module,exports){ -'use strict'; - +},{"./_redefine":600}],664:[function(require,module,exports){ // 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...) var $export = require('./_export'); $export($export.P, 'Function', { bind: require('./_bind') }); -},{"./_bind":511,"./_export":528}],651:[function(require,module,exports){ +},{"./_bind":525,"./_export":542}],665:[function(require,module,exports){ 'use strict'; - var isObject = require('./_is-object'); var getPrototypeOf = require('./_object-gpo'); var HAS_INSTANCE = require('./_wks')('hasInstance'); var FunctionProto = Function.prototype; // 19.2.3.6 Function.prototype[@@hasInstance](V) -if (!(HAS_INSTANCE in FunctionProto)) require('./_object-dp').f(FunctionProto, HAS_INSTANCE, { value: function value(O) { - if (typeof this != 'function' || !isObject(O)) return false; - if (!isObject(this.prototype)) return O instanceof this; - // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: - while (O = getPrototypeOf(O)) { - if (this.prototype === O) return true; - }return false; - } }); - -},{"./_is-object":546,"./_object-dp":566,"./_object-gpo":573,"./_wks":621}],652:[function(require,module,exports){ -'use strict'; +if (!(HAS_INSTANCE in FunctionProto)) require('./_object-dp').f(FunctionProto, HAS_INSTANCE, { value: function (O) { + if (typeof this != 'function' || !isObject(O)) return false; + if (!isObject(this.prototype)) return O instanceof this; + // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: + while (O = getPrototypeOf(O)) if (this.prototype === O) return true; + return false; +} }); +},{"./_is-object":560,"./_object-dp":580,"./_object-gpo":587,"./_wks":635}],666:[function(require,module,exports){ var dP = require('./_object-dp').f; var FProto = Function.prototype; var nameRE = /^\s*function ([^ (]*)/; @@ -133390,7 +141035,7 @@ var NAME = 'name'; // 19.2.4.2 name NAME in FProto || require('./_descriptors') && dP(FProto, NAME, { configurable: true, - get: function get() { + get: function () { try { return ('' + this).match(nameRE)[1]; } catch (e) { @@ -133399,18 +141044,15 @@ NAME in FProto || require('./_descriptors') && dP(FProto, NAME, { } }); -},{"./_descriptors":524,"./_object-dp":566}],653:[function(require,module,exports){ +},{"./_descriptors":538,"./_object-dp":580}],667:[function(require,module,exports){ 'use strict'; - var strong = require('./_collection-strong'); var validate = require('./_validate-collection'); var MAP = 'Map'; // 23.1 Map Objects module.exports = require('./_collection')(MAP, function (get) { - return function Map() { - return get(this, arguments.length > 0 ? arguments[0] : undefined); - }; + return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.1.3.6 Map.prototype.get(key) get: function get(key) { @@ -133423,9 +141065,7 @@ module.exports = require('./_collection')(MAP, function (get) { } }, strong, true); -},{"./_collection":517,"./_collection-strong":514,"./_validate-collection":618}],654:[function(require,module,exports){ -'use strict'; - +},{"./_collection":531,"./_collection-strong":528,"./_validate-collection":632}],668:[function(require,module,exports){ // 20.2.2.3 Math.acosh(x) var $export = require('./_export'); var log1p = require('./_math-log1p'); @@ -133433,18 +141073,19 @@ var sqrt = Math.sqrt; var $acosh = Math.acosh; $export($export.S + $export.F * !($acosh -// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 -&& Math.floor($acosh(Number.MAX_VALUE)) == 710 -// Tor Browser bug: Math.acosh(Infinity) -> NaN -&& $acosh(Infinity) == Infinity), 'Math', { + // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 + && Math.floor($acosh(Number.MAX_VALUE)) == 710 + // Tor Browser bug: Math.acosh(Infinity) -> NaN + && $acosh(Infinity) == Infinity +), 'Math', { acosh: function acosh(x) { - return (x = +x) < 1 ? NaN : x > 94906265.62425156 ? Math.log(x) + Math.LN2 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); + return (x = +x) < 1 ? NaN : x > 94906265.62425156 + ? Math.log(x) + Math.LN2 + : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); } }); -},{"./_export":528,"./_math-log1p":557}],655:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-log1p":571}],669:[function(require,module,exports){ // 20.2.2.5 Math.asinh(x) var $export = require('./_export'); var $asinh = Math.asinh; @@ -133456,9 +141097,7 @@ function asinh(x) { // Tor Browser bug: Math.asinh(0) -> -0 $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh }); -},{"./_export":528}],656:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],670:[function(require,module,exports){ // 20.2.2.7 Math.atanh(x) var $export = require('./_export'); var $atanh = Math.atanh; @@ -133470,9 +141109,7 @@ $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { } }); -},{"./_export":528}],657:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],671:[function(require,module,exports){ // 20.2.2.9 Math.cbrt(x) var $export = require('./_export'); var sign = require('./_math-sign'); @@ -133483,9 +141120,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528,"./_math-sign":559}],658:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-sign":573}],672:[function(require,module,exports){ // 20.2.2.11 Math.clz32(x) var $export = require('./_export'); @@ -133495,9 +141130,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],659:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],673:[function(require,module,exports){ // 20.2.2.12 Math.cosh(x) var $export = require('./_export'); var exp = Math.exp; @@ -133508,33 +141141,26 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],660:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],674:[function(require,module,exports){ // 20.2.2.14 Math.expm1(x) var $export = require('./_export'); var $expm1 = require('./_math-expm1'); $export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 }); -},{"./_export":528,"./_math-expm1":555}],661:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-expm1":569}],675:[function(require,module,exports){ // 20.2.2.16 Math.fround(x) var $export = require('./_export'); $export($export.S, 'Math', { fround: require('./_math-fround') }); -},{"./_export":528,"./_math-fround":556}],662:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-fround":570}],676:[function(require,module,exports){ // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) var $export = require('./_export'); var abs = Math.abs; $export($export.S, 'Math', { - hypot: function hypot(value1, value2) { - // eslint-disable-line no-unused-vars + hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars var sum = 0; var i = 0; var aLen = arguments.length; @@ -133555,9 +141181,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],663:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],677:[function(require,module,exports){ // 20.2.2.18 Math.imul(x, y) var $export = require('./_export'); var $imul = Math.imul; @@ -133576,9 +141200,7 @@ $export($export.S + $export.F * require('./_fails')(function () { } }); -},{"./_export":528,"./_fails":530}],664:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_fails":544}],678:[function(require,module,exports){ // 20.2.2.21 Math.log10(x) var $export = require('./_export'); @@ -133588,17 +141210,13 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],665:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],679:[function(require,module,exports){ // 20.2.2.20 Math.log1p(x) var $export = require('./_export'); $export($export.S, 'Math', { log1p: require('./_math-log1p') }); -},{"./_export":528,"./_math-log1p":557}],666:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-log1p":571}],680:[function(require,module,exports){ // 20.2.2.22 Math.log2(x) var $export = require('./_export'); @@ -133608,17 +141226,13 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],667:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],681:[function(require,module,exports){ // 20.2.2.28 Math.sign(x) var $export = require('./_export'); $export($export.S, 'Math', { sign: require('./_math-sign') }); -},{"./_export":528,"./_math-sign":559}],668:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-sign":573}],682:[function(require,module,exports){ // 20.2.2.30 Math.sinh(x) var $export = require('./_export'); var expm1 = require('./_math-expm1'); @@ -133629,13 +141243,13 @@ $export($export.S + $export.F * require('./_fails')(function () { return !Math.sinh(-2e-17) != -2e-17; }), 'Math', { sinh: function sinh(x) { - return Math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); + return Math.abs(x = +x) < 1 + ? (expm1(x) - expm1(-x)) / 2 + : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); } }); -},{"./_export":528,"./_fails":530,"./_math-expm1":555}],669:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_fails":544,"./_math-expm1":569}],683:[function(require,module,exports){ // 20.2.2.33 Math.tanh(x) var $export = require('./_export'); var expm1 = require('./_math-expm1'); @@ -133649,9 +141263,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528,"./_math-expm1":555}],670:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-expm1":569}],684:[function(require,module,exports){ // 20.2.2.34 Math.trunc(x) var $export = require('./_export'); @@ -133661,9 +141273,8 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],671:[function(require,module,exports){ +},{"./_export":542}],685:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var has = require('./_has'); var cof = require('./_cof'); @@ -133683,7 +141294,7 @@ var BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER; var TRIM = 'trim' in String.prototype; // 7.1.3 ToNumber(argument) -var toNumber = function toNumber(argument) { +var toNumber = function (argument) { var it = toPrimitive(argument, false); if (typeof it == 'string' && it.length > 2) { it = TRIM ? it.trim() : $trim(it, 3); @@ -133694,21 +141305,18 @@ var toNumber = function toNumber(argument) { if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix } else if (first === 48) { switch (it.charCodeAt(1)) { - case 66:case 98: - radix = 2;maxCode = 49;break; // fast equal /^0b[01]+$/i - case 79:case 111: - radix = 8;maxCode = 55;break; // fast equal /^0o[0-7]+$/i - default: - return +it; + case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i + case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i + default: return +it; } for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { code = digits.charCodeAt(i); // parseInt parses a string to a first unavailable symbol // but ToNumber should return NaN if a string contains unavailable symbols if (code < 48 || code > maxCode) return NaN; - }return parseInt(digits, radix); + } return parseInt(digits, radix); } - }return +it; + } return +it; }; if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { @@ -133716,16 +141324,17 @@ if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { var it = arguments.length < 1 ? 0 : value; var that = this; return that instanceof $Number - // check on 1..constructor(foo) case - && (BROKEN_COF ? fails(function () { - proto.valueOf.call(that); - }) : cof(that) != NUMBER) ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); + // check on 1..constructor(foo) case + && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) + ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); }; for (var keys = require('./_descriptors') ? gOPN(Base) : ( - // ES3: - 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + - // ES6 (in case, if modules with ES6 Number statics required before): - 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger').split(','), j = 0, key; keys.length > j; j++) { + // ES3: + 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + + // ES6 (in case, if modules with ES6 Number statics required before): + 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' + ).split(','), j = 0, key; keys.length > j; j++) { if (has(Base, key = keys[j]) && !has($Number, key)) { dP($Number, key, gOPD(Base, key)); } @@ -133735,17 +141344,13 @@ if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { require('./_redefine')(global, NUMBER, $Number); } -},{"./_cof":513,"./_descriptors":524,"./_fails":530,"./_global":535,"./_has":536,"./_inherit-if-required":540,"./_object-create":565,"./_object-dp":566,"./_object-gopd":569,"./_object-gopn":571,"./_redefine":586,"./_string-trim":603,"./_to-primitive":612}],672:[function(require,module,exports){ -'use strict'; - +},{"./_cof":527,"./_descriptors":538,"./_fails":544,"./_global":549,"./_has":550,"./_inherit-if-required":554,"./_object-create":579,"./_object-dp":580,"./_object-gopd":583,"./_object-gopn":585,"./_redefine":600,"./_string-trim":617,"./_to-primitive":626}],686:[function(require,module,exports){ // 20.1.2.1 Number.EPSILON var $export = require('./_export'); $export($export.S, 'Number', { EPSILON: Math.pow(2, -52) }); -},{"./_export":528}],673:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],687:[function(require,module,exports){ // 20.1.2.2 Number.isFinite(number) var $export = require('./_export'); var _isFinite = require('./_global').isFinite; @@ -133756,17 +141361,13 @@ $export($export.S, 'Number', { } }); -},{"./_export":528,"./_global":535}],674:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_global":549}],688:[function(require,module,exports){ // 20.1.2.3 Number.isInteger(number) var $export = require('./_export'); $export($export.S, 'Number', { isInteger: require('./_is-integer') }); -},{"./_export":528,"./_is-integer":545}],675:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_is-integer":559}],689:[function(require,module,exports){ // 20.1.2.4 Number.isNaN(number) var $export = require('./_export'); @@ -133777,9 +141378,7 @@ $export($export.S, 'Number', { } }); -},{"./_export":528}],676:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],690:[function(require,module,exports){ // 20.1.2.5 Number.isSafeInteger(number) var $export = require('./_export'); var isInteger = require('./_is-integer'); @@ -133791,41 +141390,32 @@ $export($export.S, 'Number', { } }); -},{"./_export":528,"./_is-integer":545}],677:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_is-integer":559}],691:[function(require,module,exports){ // 20.1.2.6 Number.MAX_SAFE_INTEGER var $export = require('./_export'); $export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); -},{"./_export":528}],678:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],692:[function(require,module,exports){ // 20.1.2.10 Number.MIN_SAFE_INTEGER var $export = require('./_export'); $export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); -},{"./_export":528}],679:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],693:[function(require,module,exports){ var $export = require('./_export'); var $parseFloat = require('./_parse-float'); // 20.1.2.12 Number.parseFloat(string) $export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat }); -},{"./_export":528,"./_parse-float":580}],680:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_parse-float":594}],694:[function(require,module,exports){ var $export = require('./_export'); var $parseInt = require('./_parse-int'); // 20.1.2.13 Number.parseInt(string, radix) $export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt }); -},{"./_export":528,"./_parse-int":581}],681:[function(require,module,exports){ +},{"./_export":542,"./_parse-int":595}],695:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toInteger = require('./_to-integer'); var aNumberValue = require('./_a-number-value'); @@ -133836,7 +141426,7 @@ var data = [0, 0, 0, 0, 0, 0]; var ERROR = 'Number.toFixed: incorrect invocation!'; var ZERO = '0'; -var multiply = function multiply(n, c) { +var multiply = function (n, c) { var i = -1; var c2 = c; while (++i < 6) { @@ -133845,16 +141435,16 @@ var multiply = function multiply(n, c) { c2 = floor(c2 / 1e7); } }; -var divide = function divide(n) { +var divide = function (n) { var i = 6; var c = 0; while (--i >= 0) { c += data[i]; data[i] = floor(c / n); - c = c % n * 1e7; + c = (c % n) * 1e7; } }; -var numToString = function numToString() { +var numToString = function () { var i = 6; var s = ''; while (--i >= 0) { @@ -133862,12 +141452,12 @@ var numToString = function numToString() { var t = String(data[i]); s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t; } - }return s; + } return s; }; -var pow = function pow(x, n, acc) { +var pow = function (x, n, acc) { return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); }; -var log = function log(x) { +var log = function (x) { var n = 0; var x2 = x; while (x2 >= 4096) { @@ -133877,10 +141467,15 @@ var log = function log(x) { while (x2 >= 2) { n += 1; x2 /= 2; - }return n; + } return n; }; -$export($export.P + $export.F * (!!$toFixed && (0.00008.toFixed(3) !== '0.000' || 0.9.toFixed(0) !== '1' || 1.255.toFixed(2) !== '1.25' || 1000000000000000128.0.toFixed(0) !== '1000000000000000128') || !require('./_fails')(function () { +$export($export.P + $export.F * (!!$toFixed && ( + 0.00008.toFixed(3) !== '0.000' || + 0.9.toFixed(0) !== '1' || + 1.255.toFixed(2) !== '1.25' || + 1000000000000000128.0.toFixed(0) !== '1000000000000000128' +) || !require('./_fails')(function () { // V8 ~ Android 4.3- $toFixed.call({}); })), 'Number', { @@ -133931,13 +141526,12 @@ $export($export.P + $export.F * (!!$toFixed && (0.00008.toFixed(3) !== '0.000' | m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f)); } else { m = s + m; - }return m; + } return m; } }); -},{"./_a-number-value":499,"./_export":528,"./_fails":530,"./_string-repeat":602,"./_to-integer":608}],682:[function(require,module,exports){ +},{"./_a-number-value":513,"./_export":542,"./_fails":544,"./_string-repeat":616,"./_to-integer":622}],696:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $fails = require('./_fails'); var aNumberValue = require('./_a-number-value'); @@ -133956,27 +141550,21 @@ $export($export.P + $export.F * ($fails(function () { } }); -},{"./_a-number-value":499,"./_export":528,"./_fails":530}],683:[function(require,module,exports){ -arguments[4][486][0].apply(exports,arguments) -},{"./_export":528,"./_object-assign":564,"dup":486}],684:[function(require,module,exports){ -arguments[4][487][0].apply(exports,arguments) -},{"./_export":528,"./_object-create":565,"dup":487}],685:[function(require,module,exports){ -'use strict'; - +},{"./_a-number-value":513,"./_export":542,"./_fails":544}],697:[function(require,module,exports){ +arguments[4][500][0].apply(exports,arguments) +},{"./_export":542,"./_object-assign":578,"dup":500}],698:[function(require,module,exports){ +arguments[4][501][0].apply(exports,arguments) +},{"./_export":542,"./_object-create":579,"dup":501}],699:[function(require,module,exports){ var $export = require('./_export'); // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) $export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperties: require('./_object-dps') }); -},{"./_descriptors":524,"./_export":528,"./_object-dps":567}],686:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_export":542,"./_object-dps":581}],700:[function(require,module,exports){ var $export = require('./_export'); // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) $export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f }); -},{"./_descriptors":524,"./_export":528,"./_object-dp":566}],687:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_export":542,"./_object-dp":580}],701:[function(require,module,exports){ // 19.1.2.5 Object.freeze(O) var isObject = require('./_is-object'); var meta = require('./_meta').onFreeze; @@ -133987,9 +141575,7 @@ require('./_object-sap')('freeze', function ($freeze) { }; }); -},{"./_is-object":546,"./_meta":560,"./_object-sap":577}],688:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_meta":574,"./_object-sap":591}],702:[function(require,module,exports){ // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) var toIObject = require('./_to-iobject'); var $getOwnPropertyDescriptor = require('./_object-gopd').f; @@ -134000,17 +141586,13 @@ require('./_object-sap')('getOwnPropertyDescriptor', function () { }; }); -},{"./_object-gopd":569,"./_object-sap":577,"./_to-iobject":609}],689:[function(require,module,exports){ -'use strict'; - +},{"./_object-gopd":583,"./_object-sap":591,"./_to-iobject":623}],703:[function(require,module,exports){ // 19.1.2.7 Object.getOwnPropertyNames(O) require('./_object-sap')('getOwnPropertyNames', function () { return require('./_object-gopn-ext').f; }); -},{"./_object-gopn-ext":570,"./_object-sap":577}],690:[function(require,module,exports){ -'use strict'; - +},{"./_object-gopn-ext":584,"./_object-sap":591}],704:[function(require,module,exports){ // 19.1.2.9 Object.getPrototypeOf(O) var toObject = require('./_to-object'); var $getPrototypeOf = require('./_object-gpo'); @@ -134021,9 +141603,7 @@ require('./_object-sap')('getPrototypeOf', function () { }; }); -},{"./_object-gpo":573,"./_object-sap":577,"./_to-object":611}],691:[function(require,module,exports){ -'use strict'; - +},{"./_object-gpo":587,"./_object-sap":591,"./_to-object":625}],705:[function(require,module,exports){ // 19.1.2.11 Object.isExtensible(O) var isObject = require('./_is-object'); @@ -134033,9 +141613,7 @@ require('./_object-sap')('isExtensible', function ($isExtensible) { }; }); -},{"./_is-object":546,"./_object-sap":577}],692:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_object-sap":591}],706:[function(require,module,exports){ // 19.1.2.12 Object.isFrozen(O) var isObject = require('./_is-object'); @@ -134045,9 +141623,7 @@ require('./_object-sap')('isFrozen', function ($isFrozen) { }; }); -},{"./_is-object":546,"./_object-sap":577}],693:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_object-sap":591}],707:[function(require,module,exports){ // 19.1.2.13 Object.isSealed(O) var isObject = require('./_is-object'); @@ -134057,16 +141633,12 @@ require('./_object-sap')('isSealed', function ($isSealed) { }; }); -},{"./_is-object":546,"./_object-sap":577}],694:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_object-sap":591}],708:[function(require,module,exports){ // 19.1.3.10 Object.is(value1, value2) var $export = require('./_export'); $export($export.S, 'Object', { is: require('./_same-value') }); -},{"./_export":528,"./_same-value":588}],695:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_same-value":602}],709:[function(require,module,exports){ // 19.1.2.14 Object.keys(O) var toObject = require('./_to-object'); var $keys = require('./_object-keys'); @@ -134077,9 +141649,7 @@ require('./_object-sap')('keys', function () { }; }); -},{"./_object-keys":575,"./_object-sap":577,"./_to-object":611}],696:[function(require,module,exports){ -'use strict'; - +},{"./_object-keys":589,"./_object-sap":591,"./_to-object":625}],710:[function(require,module,exports){ // 19.1.2.15 Object.preventExtensions(O) var isObject = require('./_is-object'); var meta = require('./_meta').onFreeze; @@ -134090,9 +141660,7 @@ require('./_object-sap')('preventExtensions', function ($preventExtensions) { }; }); -},{"./_is-object":546,"./_meta":560,"./_object-sap":577}],697:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_meta":574,"./_object-sap":591}],711:[function(require,module,exports){ // 19.1.2.17 Object.seal(O) var isObject = require('./_is-object'); var meta = require('./_meta').onFreeze; @@ -134103,12 +141671,11 @@ require('./_object-sap')('seal', function ($seal) { }; }); -},{"./_is-object":546,"./_meta":560,"./_object-sap":577}],698:[function(require,module,exports){ -arguments[4][488][0].apply(exports,arguments) -},{"./_export":528,"./_set-proto":591,"dup":488}],699:[function(require,module,exports){ +},{"./_is-object":560,"./_meta":574,"./_object-sap":591}],712:[function(require,module,exports){ +arguments[4][502][0].apply(exports,arguments) +},{"./_export":542,"./_set-proto":605,"dup":502}],713:[function(require,module,exports){ 'use strict'; // 19.1.3.6 Object.prototype.toString() - var classof = require('./_classof'); var test = {}; test[require('./_wks')('toStringTag')] = 'z'; @@ -134118,27 +141685,21 @@ if (test + '' != '[object z]') { }, true); } -},{"./_classof":512,"./_redefine":586,"./_wks":621}],700:[function(require,module,exports){ -'use strict'; - +},{"./_classof":526,"./_redefine":600,"./_wks":635}],714:[function(require,module,exports){ var $export = require('./_export'); var $parseFloat = require('./_parse-float'); // 18.2.4 parseFloat(string) $export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat }); -},{"./_export":528,"./_parse-float":580}],701:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_parse-float":594}],715:[function(require,module,exports){ var $export = require('./_export'); var $parseInt = require('./_parse-int'); // 18.2.5 parseInt(string, radix) $export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt }); -},{"./_export":528,"./_parse-int":581}],702:[function(require,module,exports){ -arguments[4][490][0].apply(exports,arguments) -},{"./_a-function":498,"./_an-instance":501,"./_classof":512,"./_core":518,"./_ctx":520,"./_export":528,"./_for-of":534,"./_global":535,"./_is-object":546,"./_iter-detect":551,"./_library":554,"./_microtask":562,"./_new-promise-capability":563,"./_perform":582,"./_promise-resolve":583,"./_redefine-all":585,"./_set-species":592,"./_set-to-string-tag":593,"./_species-constructor":596,"./_task":605,"./_user-agent":617,"./_wks":621,"dup":490}],703:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_parse-int":595}],716:[function(require,module,exports){ +arguments[4][504][0].apply(exports,arguments) +},{"./_a-function":512,"./_an-instance":515,"./_classof":526,"./_core":532,"./_ctx":534,"./_export":542,"./_for-of":548,"./_global":549,"./_is-object":560,"./_iter-detect":565,"./_library":568,"./_microtask":576,"./_new-promise-capability":577,"./_perform":596,"./_promise-resolve":597,"./_redefine-all":599,"./_set-species":606,"./_set-to-string-tag":607,"./_species-constructor":610,"./_task":619,"./_user-agent":631,"./_wks":635,"dup":504}],717:[function(require,module,exports){ // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) var $export = require('./_export'); var aFunction = require('./_a-function'); @@ -134147,7 +141708,7 @@ var rApply = (require('./_global').Reflect || {}).apply; var fApply = Function.apply; // MS Edge argumentsList argument is optional $export($export.S + $export.F * !require('./_fails')(function () { - rApply(function () {/* empty */}); + rApply(function () { /* empty */ }); }), 'Reflect', { apply: function apply(target, thisArgument, argumentsList) { var T = aFunction(target); @@ -134156,9 +141717,7 @@ $export($export.S + $export.F * !require('./_fails')(function () { } }); -},{"./_a-function":498,"./_an-object":502,"./_export":528,"./_fails":530,"./_global":535}],704:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_an-object":516,"./_export":542,"./_fails":544,"./_global":549}],718:[function(require,module,exports){ // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) var $export = require('./_export'); var create = require('./_object-create'); @@ -134172,11 +141731,11 @@ var rConstruct = (require('./_global').Reflect || {}).construct; // MS Edge supports only 2 arguments and argumentsList argument is optional // FF Nightly sets third argument as `new.target`, but does not create `this` from it var NEW_TARGET_BUG = fails(function () { - function F() {/* empty */} - return !(rConstruct(function () {/* empty */}, [], F) instanceof F); + function F() { /* empty */ } + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); }); var ARGS_BUG = !fails(function () { - rConstruct(function () {/* empty */}); + rConstruct(function () { /* empty */ }); }); $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { @@ -134188,16 +141747,11 @@ $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { if (Target == newTarget) { // w/o altered newTarget, optimization for 0-4 arguments switch (args.length) { - case 0: - return new Target(); - case 1: - return new Target(args[0]); - case 2: - return new Target(args[0], args[1]); - case 3: - return new Target(args[0], args[1], args[2]); - case 4: - return new Target(args[0], args[1], args[2], args[3]); + case 0: return new Target(); + case 1: return new Target(args[0]); + case 2: return new Target(args[0], args[1]); + case 3: return new Target(args[0], args[1], args[2]); + case 4: return new Target(args[0], args[1], args[2], args[3]); } // w/o altered newTarget, lot of arguments case var $args = [null]; @@ -134212,9 +141766,7 @@ $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { } }); -},{"./_a-function":498,"./_an-object":502,"./_bind":511,"./_export":528,"./_fails":530,"./_global":535,"./_is-object":546,"./_object-create":565}],705:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_an-object":516,"./_bind":525,"./_export":542,"./_fails":544,"./_global":549,"./_is-object":560,"./_object-create":579}],719:[function(require,module,exports){ // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) var dP = require('./_object-dp'); var $export = require('./_export'); @@ -134239,9 +141791,7 @@ $export($export.S + $export.F * require('./_fails')(function () { } }); -},{"./_an-object":502,"./_export":528,"./_fails":530,"./_object-dp":566,"./_to-primitive":612}],706:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_fails":544,"./_object-dp":580,"./_to-primitive":626}],720:[function(require,module,exports){ // 26.1.4 Reflect.deleteProperty(target, propertyKey) var $export = require('./_export'); var gOPD = require('./_object-gopd').f; @@ -134254,20 +141804,17 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528,"./_object-gopd":569}],707:[function(require,module,exports){ +},{"./_an-object":516,"./_export":542,"./_object-gopd":583}],721:[function(require,module,exports){ 'use strict'; // 26.1.5 Reflect.enumerate(target) - var $export = require('./_export'); var anObject = require('./_an-object'); -var Enumerate = function Enumerate(iterated) { +var Enumerate = function (iterated) { this._t = anObject(iterated); // target - this._i = 0; // next index - var keys = this._k = []; // keys + this._i = 0; // next index + var keys = this._k = []; // keys var key; - for (key in iterated) { - keys.push(key); - } + for (key in iterated) keys.push(key); }; require('./_iter-create')(Enumerate, 'Object', function () { var that = this; @@ -134285,9 +141832,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528,"./_iter-create":549}],708:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_iter-create":563}],722:[function(require,module,exports){ // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) var gOPD = require('./_object-gopd'); var $export = require('./_export'); @@ -134299,9 +141844,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528,"./_object-gopd":569}],709:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_object-gopd":583}],723:[function(require,module,exports){ // 26.1.8 Reflect.getPrototypeOf(target) var $export = require('./_export'); var getProto = require('./_object-gpo'); @@ -134313,9 +141856,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528,"./_object-gpo":573}],710:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_object-gpo":587}],724:[function(require,module,exports){ // 26.1.6 Reflect.get(target, propertyKey [, receiver]) var gOPD = require('./_object-gopd'); var getPrototypeOf = require('./_object-gpo'); @@ -134328,15 +141869,17 @@ function get(target, propertyKey /* , receiver */) { var receiver = arguments.length < 3 ? target : arguments[2]; var desc, proto; if (anObject(target) === receiver) return target[propertyKey]; - if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') ? desc.value : desc.get !== undefined ? desc.get.call(receiver) : undefined; + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') + ? desc.value + : desc.get !== undefined + ? desc.get.call(receiver) + : undefined; if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); } $export($export.S, 'Reflect', { get: get }); -},{"./_an-object":502,"./_export":528,"./_has":536,"./_is-object":546,"./_object-gopd":569,"./_object-gpo":573}],711:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_has":550,"./_is-object":560,"./_object-gopd":583,"./_object-gpo":587}],725:[function(require,module,exports){ // 26.1.9 Reflect.has(target, propertyKey) var $export = require('./_export'); @@ -134346,9 +141889,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_export":528}],712:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],726:[function(require,module,exports){ // 26.1.10 Reflect.isExtensible(target) var $export = require('./_export'); var anObject = require('./_an-object'); @@ -134361,17 +141902,13 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528}],713:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542}],727:[function(require,module,exports){ // 26.1.11 Reflect.ownKeys(target) var $export = require('./_export'); $export($export.S, 'Reflect', { ownKeys: require('./_own-keys') }); -},{"./_export":528,"./_own-keys":579}],714:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_own-keys":593}],728:[function(require,module,exports){ // 26.1.12 Reflect.preventExtensions(target) var $export = require('./_export'); var anObject = require('./_an-object'); @@ -134389,9 +141926,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528}],715:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542}],729:[function(require,module,exports){ // 26.1.14 Reflect.setPrototypeOf(target, proto) var $export = require('./_export'); var setProto = require('./_set-proto'); @@ -134408,9 +141943,7 @@ if (setProto) $export($export.S, 'Reflect', { } }); -},{"./_export":528,"./_set-proto":591}],716:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_set-proto":605}],730:[function(require,module,exports){ // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) var dP = require('./_object-dp'); var gOPD = require('./_object-gopd'); @@ -134445,9 +141978,7 @@ function set(target, propertyKey, V /* , receiver */) { $export($export.S, 'Reflect', { set: set }); -},{"./_an-object":502,"./_export":528,"./_has":536,"./_is-object":546,"./_object-dp":566,"./_object-gopd":569,"./_object-gpo":573,"./_property-desc":584}],717:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_has":550,"./_is-object":560,"./_object-dp":580,"./_object-gopd":583,"./_object-gpo":587,"./_property-desc":598}],731:[function(require,module,exports){ var global = require('./_global'); var inheritIfRequired = require('./_inherit-if-required'); var dP = require('./_object-dp').f; @@ -134471,105 +142002,102 @@ if (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function ( var tiRE = this instanceof $RegExp; var piRE = isRegExp(p); var fiU = f === undefined; - return !tiRE && piRE && p.constructor === $RegExp && fiU ? p : inheritIfRequired(CORRECT_NEW ? new Base(piRE && !fiU ? p.source : p, f) : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f), tiRE ? this : proto, $RegExp); + return !tiRE && piRE && p.constructor === $RegExp && fiU ? p + : inheritIfRequired(CORRECT_NEW + ? new Base(piRE && !fiU ? p.source : p, f) + : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) + , tiRE ? this : proto, $RegExp); }; - var proxy = function proxy(key) { + var proxy = function (key) { key in $RegExp || dP($RegExp, key, { configurable: true, - get: function get() { - return Base[key]; - }, - set: function set(it) { - Base[key] = it; - } + get: function () { return Base[key]; }, + set: function (it) { Base[key] = it; } }); }; - for (var keys = gOPN(Base), i = 0; keys.length > i;) { - proxy(keys[i++]); - }proto.constructor = $RegExp; + for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); + proto.constructor = $RegExp; $RegExp.prototype = proto; require('./_redefine')(global, 'RegExp', $RegExp); } require('./_set-species')('RegExp'); -},{"./_descriptors":524,"./_fails":530,"./_flags":532,"./_global":535,"./_inherit-if-required":540,"./_is-regexp":547,"./_object-dp":566,"./_object-gopn":571,"./_redefine":586,"./_set-species":592,"./_wks":621}],718:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_fails":544,"./_flags":546,"./_global":549,"./_inherit-if-required":554,"./_is-regexp":561,"./_object-dp":580,"./_object-gopn":585,"./_redefine":600,"./_set-species":606,"./_wks":635}],732:[function(require,module,exports){ // 21.2.5.3 get RegExp.prototype.flags() if (require('./_descriptors') && /./g.flags != 'g') require('./_object-dp').f(RegExp.prototype, 'flags', { configurable: true, get: require('./_flags') }); -},{"./_descriptors":524,"./_flags":532,"./_object-dp":566}],719:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_flags":546,"./_object-dp":580}],733:[function(require,module,exports){ // @@match logic require('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) { // 21.1.3.11 String.prototype.match(regexp) return [function match(regexp) { 'use strict'; - var O = defined(this); var fn = regexp == undefined ? undefined : regexp[MATCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); }, $match]; }); -},{"./_fix-re-wks":531}],720:[function(require,module,exports){ -'use strict'; - +},{"./_fix-re-wks":545}],734:[function(require,module,exports){ // @@replace logic require('./_fix-re-wks')('replace', 2, function (defined, REPLACE, $replace) { // 21.1.3.14 String.prototype.replace(searchValue, replaceValue) return [function replace(searchValue, replaceValue) { 'use strict'; - var O = defined(this); var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; - return fn !== undefined ? fn.call(searchValue, O, replaceValue) : $replace.call(String(O), searchValue, replaceValue); + return fn !== undefined + ? fn.call(searchValue, O, replaceValue) + : $replace.call(String(O), searchValue, replaceValue); }, $replace]; }); -},{"./_fix-re-wks":531}],721:[function(require,module,exports){ -'use strict'; - +},{"./_fix-re-wks":545}],735:[function(require,module,exports){ // @@search logic require('./_fix-re-wks')('search', 1, function (defined, SEARCH, $search) { // 21.1.3.15 String.prototype.search(regexp) return [function search(regexp) { 'use strict'; - var O = defined(this); var fn = regexp == undefined ? undefined : regexp[SEARCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O)); }, $search]; }); -},{"./_fix-re-wks":531}],722:[function(require,module,exports){ -'use strict'; - +},{"./_fix-re-wks":545}],736:[function(require,module,exports){ // @@split logic require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split) { 'use strict'; - var isRegExp = require('./_is-regexp'); var _split = $split; var $push = [].push; var $SPLIT = 'split'; var LENGTH = 'length'; var LAST_INDEX = 'lastIndex'; - if ('abbc'[$SPLIT](/(b)*/)[1] == 'c' || 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || '.'[$SPLIT](/()()/)[LENGTH] > 1 || ''[$SPLIT](/.?/)[LENGTH]) { + if ( + 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || + 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || + 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || + '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || + '.'[$SPLIT](/()()/)[LENGTH] > 1 || + ''[$SPLIT](/.?/)[LENGTH] + ) { var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group // based on es5-shim implementation, need to rework it - $split = function $split(separator, limit) { + $split = function (separator, limit) { var string = String(this); if (separator === undefined && limit === 0) return []; // If `separator` is not a regex, use native split if (!isRegExp(separator)) return _split.call(string, separator, limit); var output = []; - var flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.unicode ? 'u' : '') + (separator.sticky ? 'y' : ''); + var flags = (separator.ignoreCase ? 'i' : '') + + (separator.multiline ? 'm' : '') + + (separator.unicode ? 'u' : '') + + (separator.sticky ? 'y' : ''); var lastLastIndex = 0; var splitLimit = limit === undefined ? 4294967295 : limit >>> 0; // Make `global` and avoid `lastIndex` issues by working with a copy @@ -134585,9 +142113,7 @@ require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split) { // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG // eslint-disable-next-line no-loop-func if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () { - for (i = 1; i < arguments[LENGTH] - 2; i++) { - if (arguments[i] === undefined) match[i] = undefined; - } + for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined; }); if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); lastLength = match[0][LENGTH]; @@ -134601,9 +142127,9 @@ require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split) { } else output.push(string.slice(lastLastIndex)); return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; }; - // Chakra, V8 + // Chakra, V8 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { - $split = function $split(separator, limit) { + $split = function (separator, limit) { return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit); }; } @@ -134615,9 +142141,8 @@ require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split) { }, $split]; }); -},{"./_fix-re-wks":531,"./_is-regexp":547}],723:[function(require,module,exports){ +},{"./_fix-re-wks":545,"./_is-regexp":561}],737:[function(require,module,exports){ 'use strict'; - require('./es6.regexp.flags'); var anObject = require('./_an-object'); var $flags = require('./_flags'); @@ -134625,37 +142150,33 @@ var DESCRIPTORS = require('./_descriptors'); var TO_STRING = 'toString'; var $toString = /./[TO_STRING]; -var define = function define(fn) { +var define = function (fn) { require('./_redefine')(RegExp.prototype, TO_STRING, fn, true); }; // 21.2.5.14 RegExp.prototype.toString() -if (require('./_fails')(function () { - return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; -})) { +if (require('./_fails')(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { define(function toString() { var R = anObject(this); - return '/'.concat(R.source, '/', 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); + return '/'.concat(R.source, '/', + 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); }); - // FF44- RegExp#toString has a wrong name +// FF44- RegExp#toString has a wrong name } else if ($toString.name != TO_STRING) { define(function toString() { return $toString.call(this); }); } -},{"./_an-object":502,"./_descriptors":524,"./_fails":530,"./_flags":532,"./_redefine":586,"./es6.regexp.flags":718}],724:[function(require,module,exports){ +},{"./_an-object":516,"./_descriptors":538,"./_fails":544,"./_flags":546,"./_redefine":600,"./es6.regexp.flags":732}],738:[function(require,module,exports){ 'use strict'; - var strong = require('./_collection-strong'); var validate = require('./_validate-collection'); var SET = 'Set'; // 23.2 Set Objects module.exports = require('./_collection')(SET, function (get) { - return function Set() { - return get(this, arguments.length > 0 ? arguments[0] : undefined); - }; + return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.2.3.1 Set.prototype.add(value) add: function add(value) { @@ -134663,49 +142184,44 @@ module.exports = require('./_collection')(SET, function (get) { } }, strong); -},{"./_collection":517,"./_collection-strong":514,"./_validate-collection":618}],725:[function(require,module,exports){ +},{"./_collection":531,"./_collection-strong":528,"./_validate-collection":632}],739:[function(require,module,exports){ 'use strict'; // B.2.3.2 String.prototype.anchor(name) - require('./_string-html')('anchor', function (createHTML) { return function anchor(name) { return createHTML(this, 'a', 'name', name); }; }); -},{"./_string-html":600}],726:[function(require,module,exports){ +},{"./_string-html":614}],740:[function(require,module,exports){ 'use strict'; // B.2.3.3 String.prototype.big() - require('./_string-html')('big', function (createHTML) { return function big() { return createHTML(this, 'big', '', ''); }; }); -},{"./_string-html":600}],727:[function(require,module,exports){ +},{"./_string-html":614}],741:[function(require,module,exports){ 'use strict'; // B.2.3.4 String.prototype.blink() - require('./_string-html')('blink', function (createHTML) { return function blink() { return createHTML(this, 'blink', '', ''); }; }); -},{"./_string-html":600}],728:[function(require,module,exports){ +},{"./_string-html":614}],742:[function(require,module,exports){ 'use strict'; // B.2.3.5 String.prototype.bold() - require('./_string-html')('bold', function (createHTML) { return function bold() { return createHTML(this, 'b', '', ''); }; }); -},{"./_string-html":600}],729:[function(require,module,exports){ +},{"./_string-html":614}],743:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $at = require('./_string-at')(false); $export($export.P, 'String', { @@ -134715,10 +142231,9 @@ $export($export.P, 'String', { } }); -},{"./_export":528,"./_string-at":598}],730:[function(require,module,exports){ +},{"./_export":542,"./_string-at":612}],744:[function(require,module,exports){ // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) 'use strict'; - var $export = require('./_export'); var toLength = require('./_to-length'); var context = require('./_string-context'); @@ -134732,43 +142247,40 @@ $export($export.P + $export.F * require('./_fails-is-regexp')(ENDS_WITH), 'Strin var len = toLength(that.length); var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len); var search = String(searchString); - return $endsWith ? $endsWith.call(that, search, end) : that.slice(end - search.length, end) === search; + return $endsWith + ? $endsWith.call(that, search, end) + : that.slice(end - search.length, end) === search; } }); -},{"./_export":528,"./_fails-is-regexp":529,"./_string-context":599,"./_to-length":610}],731:[function(require,module,exports){ +},{"./_export":542,"./_fails-is-regexp":543,"./_string-context":613,"./_to-length":624}],745:[function(require,module,exports){ 'use strict'; // B.2.3.6 String.prototype.fixed() - require('./_string-html')('fixed', function (createHTML) { return function fixed() { return createHTML(this, 'tt', '', ''); }; }); -},{"./_string-html":600}],732:[function(require,module,exports){ +},{"./_string-html":614}],746:[function(require,module,exports){ 'use strict'; // B.2.3.7 String.prototype.fontcolor(color) - require('./_string-html')('fontcolor', function (createHTML) { return function fontcolor(color) { return createHTML(this, 'font', 'color', color); }; }); -},{"./_string-html":600}],733:[function(require,module,exports){ +},{"./_string-html":614}],747:[function(require,module,exports){ 'use strict'; // B.2.3.8 String.prototype.fontsize(size) - require('./_string-html')('fontsize', function (createHTML) { return function fontsize(size) { return createHTML(this, 'font', 'size', size); }; }); -},{"./_string-html":600}],734:[function(require,module,exports){ -'use strict'; - +},{"./_string-html":614}],748:[function(require,module,exports){ var $export = require('./_export'); var toAbsoluteIndex = require('./_to-absolute-index'); var fromCharCode = String.fromCharCode; @@ -134777,8 +142289,7 @@ var $fromCodePoint = String.fromCodePoint; // length should be 1, old FF problem $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { // 21.1.2.2 String.fromCodePoint(...codePoints) - fromCodePoint: function fromCodePoint(x) { - // eslint-disable-line no-unused-vars + fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars var res = []; var aLen = arguments.length; var i = 0; @@ -134786,50 +142297,49 @@ $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1) while (aLen > i) { code = +arguments[i++]; if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); - res.push(code < 0x10000 ? fromCharCode(code) : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)); - }return res.join(''); + res.push(code < 0x10000 + ? fromCharCode(code) + : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00) + ); + } return res.join(''); } }); -},{"./_export":528,"./_to-absolute-index":606}],735:[function(require,module,exports){ +},{"./_export":542,"./_to-absolute-index":620}],749:[function(require,module,exports){ // 21.1.3.7 String.prototype.includes(searchString, position = 0) 'use strict'; - var $export = require('./_export'); var context = require('./_string-context'); var INCLUDES = 'includes'; $export($export.P + $export.F * require('./_fails-is-regexp')(INCLUDES), 'String', { includes: function includes(searchString /* , position = 0 */) { - return !!~context(this, searchString, INCLUDES).indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); + return !!~context(this, searchString, INCLUDES) + .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); } }); -},{"./_export":528,"./_fails-is-regexp":529,"./_string-context":599}],736:[function(require,module,exports){ +},{"./_export":542,"./_fails-is-regexp":543,"./_string-context":613}],750:[function(require,module,exports){ 'use strict'; // B.2.3.9 String.prototype.italics() - require('./_string-html')('italics', function (createHTML) { return function italics() { return createHTML(this, 'i', '', ''); }; }); -},{"./_string-html":600}],737:[function(require,module,exports){ -arguments[4][491][0].apply(exports,arguments) -},{"./_iter-define":550,"./_string-at":598,"dup":491}],738:[function(require,module,exports){ +},{"./_string-html":614}],751:[function(require,module,exports){ +arguments[4][505][0].apply(exports,arguments) +},{"./_iter-define":564,"./_string-at":612,"dup":505}],752:[function(require,module,exports){ 'use strict'; // B.2.3.10 String.prototype.link(url) - require('./_string-html')('link', function (createHTML) { return function link(url) { return createHTML(this, 'a', 'href', url); }; }); -},{"./_string-html":600}],739:[function(require,module,exports){ -'use strict'; - +},{"./_string-html":614}],753:[function(require,module,exports){ var $export = require('./_export'); var toIObject = require('./_to-iobject'); var toLength = require('./_to-length'); @@ -134845,13 +142355,11 @@ $export($export.S, 'String', { while (len > i) { res.push(String(tpl[i++])); if (i < aLen) res.push(String(arguments[i])); - }return res.join(''); + } return res.join(''); } }); -},{"./_export":528,"./_to-iobject":609,"./_to-length":610}],740:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_to-iobject":623,"./_to-length":624}],754:[function(require,module,exports){ var $export = require('./_export'); $export($export.P, 'String', { @@ -134859,20 +142367,18 @@ $export($export.P, 'String', { repeat: require('./_string-repeat') }); -},{"./_export":528,"./_string-repeat":602}],741:[function(require,module,exports){ +},{"./_export":542,"./_string-repeat":616}],755:[function(require,module,exports){ 'use strict'; // B.2.3.11 String.prototype.small() - require('./_string-html')('small', function (createHTML) { return function small() { return createHTML(this, 'small', '', ''); }; }); -},{"./_string-html":600}],742:[function(require,module,exports){ +},{"./_string-html":614}],756:[function(require,module,exports){ // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) 'use strict'; - var $export = require('./_export'); var toLength = require('./_to-length'); var context = require('./_string-context'); @@ -134884,55 +142390,52 @@ $export($export.P + $export.F * require('./_fails-is-regexp')(STARTS_WITH), 'Str var that = context(this, searchString, STARTS_WITH); var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); var search = String(searchString); - return $startsWith ? $startsWith.call(that, search, index) : that.slice(index, index + search.length) === search; + return $startsWith + ? $startsWith.call(that, search, index) + : that.slice(index, index + search.length) === search; } }); -},{"./_export":528,"./_fails-is-regexp":529,"./_string-context":599,"./_to-length":610}],743:[function(require,module,exports){ +},{"./_export":542,"./_fails-is-regexp":543,"./_string-context":613,"./_to-length":624}],757:[function(require,module,exports){ 'use strict'; // B.2.3.12 String.prototype.strike() - require('./_string-html')('strike', function (createHTML) { return function strike() { return createHTML(this, 'strike', '', ''); }; }); -},{"./_string-html":600}],744:[function(require,module,exports){ +},{"./_string-html":614}],758:[function(require,module,exports){ 'use strict'; // B.2.3.13 String.prototype.sub() - require('./_string-html')('sub', function (createHTML) { return function sub() { return createHTML(this, 'sub', '', ''); }; }); -},{"./_string-html":600}],745:[function(require,module,exports){ +},{"./_string-html":614}],759:[function(require,module,exports){ 'use strict'; // B.2.3.14 String.prototype.sup() - require('./_string-html')('sup', function (createHTML) { return function sup() { return createHTML(this, 'sup', '', ''); }; }); -},{"./_string-html":600}],746:[function(require,module,exports){ +},{"./_string-html":614}],760:[function(require,module,exports){ 'use strict'; // 21.1.3.25 String.prototype.trim() - require('./_string-trim')('trim', function ($trim) { return function trim() { return $trim(this, 3); }; }); -},{"./_string-trim":603}],747:[function(require,module,exports){ -arguments[4][492][0].apply(exports,arguments) -},{"./_an-object":502,"./_descriptors":524,"./_enum-keys":527,"./_export":528,"./_fails":530,"./_global":535,"./_has":536,"./_hide":537,"./_is-array":544,"./_is-object":546,"./_library":554,"./_meta":560,"./_object-create":565,"./_object-dp":566,"./_object-gopd":569,"./_object-gopn":571,"./_object-gopn-ext":570,"./_object-gops":572,"./_object-keys":575,"./_object-pie":576,"./_property-desc":584,"./_redefine":586,"./_set-to-string-tag":593,"./_shared":595,"./_to-iobject":609,"./_to-primitive":612,"./_uid":616,"./_wks":621,"./_wks-define":619,"./_wks-ext":620,"dup":492}],748:[function(require,module,exports){ +},{"./_string-trim":617}],761:[function(require,module,exports){ +arguments[4][506][0].apply(exports,arguments) +},{"./_an-object":516,"./_descriptors":538,"./_enum-keys":541,"./_export":542,"./_fails":544,"./_global":549,"./_has":550,"./_hide":551,"./_is-array":558,"./_is-object":560,"./_library":568,"./_meta":574,"./_object-create":579,"./_object-dp":580,"./_object-gopd":583,"./_object-gopn":585,"./_object-gopn-ext":584,"./_object-gops":586,"./_object-keys":589,"./_object-pie":590,"./_property-desc":598,"./_redefine":600,"./_set-to-string-tag":607,"./_shared":609,"./_to-iobject":623,"./_to-primitive":626,"./_uid":630,"./_wks":635,"./_wks-define":633,"./_wks-ext":634,"dup":506}],762:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $typed = require('./_typed'); var buffer = require('./_typed-buffer'); @@ -134973,104 +142476,83 @@ $export($export.P + $export.U + $export.F * require('./_fails')(function () { var index = 0; while (first < fin) { viewT.setUint8(index++, viewS.getUint8(first++)); - }return result; + } return result; } }); require('./_set-species')(ARRAY_BUFFER); -},{"./_an-object":502,"./_export":528,"./_fails":530,"./_global":535,"./_is-object":546,"./_set-species":592,"./_species-constructor":596,"./_to-absolute-index":606,"./_to-length":610,"./_typed":615,"./_typed-buffer":614}],749:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_fails":544,"./_global":549,"./_is-object":560,"./_set-species":606,"./_species-constructor":610,"./_to-absolute-index":620,"./_to-length":624,"./_typed":629,"./_typed-buffer":628}],763:[function(require,module,exports){ var $export = require('./_export'); $export($export.G + $export.W + $export.F * !require('./_typed').ABV, { DataView: require('./_typed-buffer').DataView }); -},{"./_export":528,"./_typed":615,"./_typed-buffer":614}],750:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_typed":629,"./_typed-buffer":628}],764:[function(require,module,exports){ require('./_typed-array')('Float32', 4, function (init) { return function Float32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],751:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],765:[function(require,module,exports){ require('./_typed-array')('Float64', 8, function (init) { return function Float64Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],752:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],766:[function(require,module,exports){ require('./_typed-array')('Int16', 2, function (init) { return function Int16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],753:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],767:[function(require,module,exports){ require('./_typed-array')('Int32', 4, function (init) { return function Int32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],754:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],768:[function(require,module,exports){ require('./_typed-array')('Int8', 1, function (init) { return function Int8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],755:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],769:[function(require,module,exports){ require('./_typed-array')('Uint16', 2, function (init) { return function Uint16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],756:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],770:[function(require,module,exports){ require('./_typed-array')('Uint32', 4, function (init) { return function Uint32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],757:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],771:[function(require,module,exports){ require('./_typed-array')('Uint8', 1, function (init) { return function Uint8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],758:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],772:[function(require,module,exports){ require('./_typed-array')('Uint8', 1, function (init) { return function Uint8ClampedArray(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }, true); -},{"./_typed-array":613}],759:[function(require,module,exports){ +},{"./_typed-array":627}],773:[function(require,module,exports){ 'use strict'; - var each = require('./_array-methods')(0); var redefine = require('./_redefine'); var meta = require('./_meta'); @@ -135086,7 +142568,7 @@ var uncaughtFrozenStore = weak.ufstore; var tmp = {}; var InternalMap; -var wrapper = function wrapper(get) { +var wrapper = function (get) { return function WeakMap() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; @@ -135111,9 +142593,7 @@ var methods = { var $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, methods, weak, true, true); // IE11 WeakMap frozen keys fix -if (fails(function () { - return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; -})) { +if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { InternalMap = weak.getConstructor(wrapper, WEAK_MAP); assign(InternalMap.prototype, methods); meta.NEED = true; @@ -135126,24 +142606,21 @@ if (fails(function () { if (!this._f) this._f = new InternalMap(); var result = this._f[key](a, b); return key == 'set' ? this : result; - // store all the rest on native weakmap - }return method.call(this, a, b); + // store all the rest on native weakmap + } return method.call(this, a, b); }); }); } -},{"./_array-methods":507,"./_collection":517,"./_collection-weak":516,"./_fails":530,"./_is-object":546,"./_meta":560,"./_object-assign":564,"./_redefine":586,"./_validate-collection":618}],760:[function(require,module,exports){ +},{"./_array-methods":521,"./_collection":531,"./_collection-weak":530,"./_fails":544,"./_is-object":560,"./_meta":574,"./_object-assign":578,"./_redefine":600,"./_validate-collection":632}],774:[function(require,module,exports){ 'use strict'; - var weak = require('./_collection-weak'); var validate = require('./_validate-collection'); var WEAK_SET = 'WeakSet'; // 23.4 WeakSet Objects require('./_collection')(WEAK_SET, function (get) { - return function WeakSet() { - return get(this, arguments.length > 0 ? arguments[0] : undefined); - }; + return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.4.3.1 WeakSet.prototype.add(value) add: function add(value) { @@ -135151,10 +142628,9 @@ require('./_collection')(WEAK_SET, function (get) { } }, weak, false, true); -},{"./_collection":517,"./_collection-weak":516,"./_validate-collection":618}],761:[function(require,module,exports){ +},{"./_collection":531,"./_collection-weak":530,"./_validate-collection":632}],775:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap - var $export = require('./_export'); var flattenIntoArray = require('./_flatten-into-array'); var toObject = require('./_to-object'); @@ -135176,10 +142652,9 @@ $export($export.P, 'Array', { require('./_add-to-unscopables')('flatMap'); -},{"./_a-function":498,"./_add-to-unscopables":500,"./_array-species-create":510,"./_export":528,"./_flatten-into-array":533,"./_to-length":610,"./_to-object":611}],762:[function(require,module,exports){ +},{"./_a-function":512,"./_add-to-unscopables":514,"./_array-species-create":524,"./_export":542,"./_flatten-into-array":547,"./_to-length":624,"./_to-object":625}],776:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten - var $export = require('./_export'); var flattenIntoArray = require('./_flatten-into-array'); var toObject = require('./_to-object'); @@ -135188,7 +142663,7 @@ var toInteger = require('./_to-integer'); var arraySpeciesCreate = require('./_array-species-create'); $export($export.P, 'Array', { - flatten: function flatten() /* depthArg = 1 */{ + flatten: function flatten(/* depthArg = 1 */) { var depthArg = arguments[0]; var O = toObject(this); var sourceLen = toLength(O.length); @@ -135200,10 +142675,9 @@ $export($export.P, 'Array', { require('./_add-to-unscopables')('flatten'); -},{"./_add-to-unscopables":500,"./_array-species-create":510,"./_export":528,"./_flatten-into-array":533,"./_to-integer":608,"./_to-length":610,"./_to-object":611}],763:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-species-create":524,"./_export":542,"./_flatten-into-array":547,"./_to-integer":622,"./_to-length":624,"./_to-object":625}],777:[function(require,module,exports){ 'use strict'; // https://github.com/tc39/Array.prototype.includes - var $export = require('./_export'); var $includes = require('./_array-includes')(true); @@ -135215,9 +142689,7 @@ $export($export.P, 'Array', { require('./_add-to-unscopables')('includes'); -},{"./_add-to-unscopables":500,"./_array-includes":506,"./_export":528}],764:[function(require,module,exports){ -'use strict'; - +},{"./_add-to-unscopables":514,"./_array-includes":520,"./_export":542}],778:[function(require,module,exports){ // https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask var $export = require('./_export'); var microtask = require('./_microtask')(); @@ -135231,9 +142703,7 @@ $export($export.G, { } }); -},{"./_cof":513,"./_export":528,"./_global":535,"./_microtask":562}],765:[function(require,module,exports){ -'use strict'; - +},{"./_cof":527,"./_export":542,"./_global":549,"./_microtask":576}],779:[function(require,module,exports){ // https://github.com/ljharb/proposal-is-error var $export = require('./_export'); var cof = require('./_cof'); @@ -135244,37 +142714,27 @@ $export($export.S, 'Error', { } }); -},{"./_cof":513,"./_export":528}],766:[function(require,module,exports){ -'use strict'; - +},{"./_cof":527,"./_export":542}],780:[function(require,module,exports){ // https://github.com/tc39/proposal-global var $export = require('./_export'); $export($export.G, { global: require('./_global') }); -},{"./_export":528,"./_global":535}],767:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_global":549}],781:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from require('./_set-collection-from')('Map'); -},{"./_set-collection-from":589}],768:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-from":603}],782:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of require('./_set-collection-of')('Map'); -},{"./_set-collection-of":590}],769:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-of":604}],783:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = require('./_export'); $export($export.P + $export.R, 'Map', { toJSON: require('./_collection-to-json')('Map') }); -},{"./_collection-to-json":515,"./_export":528}],770:[function(require,module,exports){ -'use strict'; - +},{"./_collection-to-json":529,"./_export":542}],784:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); @@ -135284,17 +142744,13 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],771:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],785:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); $export($export.S, 'Math', { DEG_PER_RAD: Math.PI / 180 }); -},{"./_export":528}],772:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],786:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); var RAD_PER_DEG = 180 / Math.PI; @@ -135305,9 +142761,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],773:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],787:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); var scale = require('./_math-scale'); @@ -135319,9 +142773,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528,"./_math-fround":556,"./_math-scale":558}],774:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-fround":570,"./_math-scale":572}],788:[function(require,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = require('./_export'); @@ -135334,9 +142786,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],775:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],789:[function(require,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = require('./_export'); @@ -135354,9 +142804,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],776:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],790:[function(require,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = require('./_export'); @@ -135369,17 +142817,13 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],777:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],791:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); $export($export.S, 'Math', { RAD_PER_DEG: 180 / Math.PI }); -},{"./_export":528}],778:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],792:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); var DEG_PER_RAD = Math.PI / 180; @@ -135390,28 +142834,22 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],779:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],793:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); $export($export.S, 'Math', { scale: require('./_math-scale') }); -},{"./_export":528,"./_math-scale":558}],780:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-scale":572}],794:[function(require,module,exports){ // http://jfbastien.github.io/papers/Math.signbit.html var $export = require('./_export'); $export($export.S, 'Math', { signbit: function signbit(x) { - // eslint-disable-next-line no-self-compare - return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0; - } }); - -},{"./_export":528}],781:[function(require,module,exports){ -'use strict'; + // eslint-disable-next-line no-self-compare + return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0; +} }); +},{"./_export":542}],795:[function(require,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = require('./_export'); @@ -135429,9 +142867,8 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],782:[function(require,module,exports){ +},{"./_export":542}],796:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var aFunction = require('./_a-function'); @@ -135444,9 +142881,8 @@ require('./_descriptors') && $export($export.P + require('./_object-forced-pam') } }); -},{"./_a-function":498,"./_descriptors":524,"./_export":528,"./_object-dp":566,"./_object-forced-pam":568,"./_to-object":611}],783:[function(require,module,exports){ +},{"./_a-function":512,"./_descriptors":538,"./_export":542,"./_object-dp":580,"./_object-forced-pam":582,"./_to-object":625}],797:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var aFunction = require('./_a-function'); @@ -135459,9 +142895,7 @@ require('./_descriptors') && $export($export.P + require('./_object-forced-pam') } }); -},{"./_a-function":498,"./_descriptors":524,"./_export":528,"./_object-dp":566,"./_object-forced-pam":568,"./_to-object":611}],784:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_descriptors":538,"./_export":542,"./_object-dp":580,"./_object-forced-pam":582,"./_to-object":625}],798:[function(require,module,exports){ // https://github.com/tc39/proposal-object-values-entries var $export = require('./_export'); var $entries = require('./_object-to-array')(true); @@ -135472,9 +142906,7 @@ $export($export.S, 'Object', { } }); -},{"./_export":528,"./_object-to-array":578}],785:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_object-to-array":592}],799:[function(require,module,exports){ // https://github.com/tc39/proposal-object-getownpropertydescriptors var $export = require('./_export'); var ownKeys = require('./_own-keys'); @@ -135498,9 +142930,8 @@ $export($export.S, 'Object', { } }); -},{"./_create-property":519,"./_export":528,"./_object-gopd":569,"./_own-keys":579,"./_to-iobject":609}],786:[function(require,module,exports){ +},{"./_create-property":533,"./_export":542,"./_object-gopd":583,"./_own-keys":593,"./_to-iobject":623}],800:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var toPrimitive = require('./_to-primitive'); @@ -135519,9 +142950,8 @@ require('./_descriptors') && $export($export.P + require('./_object-forced-pam') } }); -},{"./_descriptors":524,"./_export":528,"./_object-forced-pam":568,"./_object-gopd":569,"./_object-gpo":573,"./_to-object":611,"./_to-primitive":612}],787:[function(require,module,exports){ +},{"./_descriptors":538,"./_export":542,"./_object-forced-pam":582,"./_object-gopd":583,"./_object-gpo":587,"./_to-object":625,"./_to-primitive":626}],801:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var toPrimitive = require('./_to-primitive'); @@ -135540,9 +142970,7 @@ require('./_descriptors') && $export($export.P + require('./_object-forced-pam') } }); -},{"./_descriptors":524,"./_export":528,"./_object-forced-pam":568,"./_object-gopd":569,"./_object-gpo":573,"./_to-object":611,"./_to-primitive":612}],788:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_export":542,"./_object-forced-pam":582,"./_object-gopd":583,"./_object-gpo":587,"./_to-object":625,"./_to-primitive":626}],802:[function(require,module,exports){ // https://github.com/tc39/proposal-object-values-entries var $export = require('./_export'); var $values = require('./_object-to-array')(false); @@ -135553,10 +142981,9 @@ $export($export.S, 'Object', { } }); -},{"./_export":528,"./_object-to-array":578}],789:[function(require,module,exports){ +},{"./_export":542,"./_object-to-array":592}],803:[function(require,module,exports){ 'use strict'; // https://github.com/zenparsing/es-observable - var $export = require('./_export'); var global = require('./_global'); var core = require('./_core'); @@ -135570,11 +142997,11 @@ var hide = require('./_hide'); var forOf = require('./_for-of'); var RETURN = forOf.RETURN; -var getMethod = function getMethod(fn) { +var getMethod = function (fn) { return fn == null ? undefined : aFunction(fn); }; -var cleanupSubscription = function cleanupSubscription(subscription) { +var cleanupSubscription = function (subscription) { var cleanup = subscription._c; if (cleanup) { subscription._c = undefined; @@ -135582,18 +143009,18 @@ var cleanupSubscription = function cleanupSubscription(subscription) { } }; -var subscriptionClosed = function subscriptionClosed(subscription) { +var subscriptionClosed = function (subscription) { return subscription._o === undefined; }; -var closeSubscription = function closeSubscription(subscription) { +var closeSubscription = function (subscription) { if (!subscriptionClosed(subscription)) { subscription._o = undefined; cleanupSubscription(subscription); } }; -var Subscription = function Subscription(observer, subscriber) { +var Subscription = function (observer, subscriber) { anObject(observer); this._c = undefined; this._o = observer; @@ -135602,24 +143029,21 @@ var Subscription = function Subscription(observer, subscriber) { var cleanup = subscriber(observer); var subscription = cleanup; if (cleanup != null) { - if (typeof cleanup.unsubscribe === 'function') cleanup = function cleanup() { - subscription.unsubscribe(); - };else aFunction(cleanup); + if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); }; + else aFunction(cleanup); this._c = cleanup; } } catch (e) { observer.error(e); return; - }if (subscriptionClosed(this)) cleanupSubscription(this); + } if (subscriptionClosed(this)) cleanupSubscription(this); }; Subscription.prototype = redefineAll({}, { - unsubscribe: function unsubscribe() { - closeSubscription(this); - } + unsubscribe: function unsubscribe() { closeSubscription(this); } }); -var SubscriptionObserver = function SubscriptionObserver(subscription) { +var SubscriptionObserver = function (subscription) { this._s = subscription; }; @@ -135655,7 +143079,7 @@ SubscriptionObserver.prototype = redefineAll({}, { } finally { throw e; } - }cleanupSubscription(subscription); + } cleanupSubscription(subscription); return value; }, complete: function complete(value) { @@ -135672,7 +143096,7 @@ SubscriptionObserver.prototype = redefineAll({}, { } finally { throw e; } - }cleanupSubscription(subscription); + } cleanupSubscription(subscription); return value; } } @@ -135691,7 +143115,7 @@ redefineAll($Observable.prototype, { return new (core.Promise || global.Promise)(function (resolve, reject) { aFunction(fn); var subscription = that.subscribe({ - next: function next(value) { + next: function (value) { try { return fn(value); } catch (e) { @@ -135729,61 +143153,50 @@ redefineAll($Observable, { if (done) throw e; observer.error(e); return; - }observer.complete(); + } observer.complete(); } }); - return function () { - done = true; - }; + return function () { done = true; }; }); }, of: function of() { - for (var i = 0, l = arguments.length, items = new Array(l); i < l;) { - items[i] = arguments[i++]; - }return new (typeof this === 'function' ? this : $Observable)(function (observer) { + for (var i = 0, l = arguments.length, items = new Array(l); i < l;) items[i] = arguments[i++]; + return new (typeof this === 'function' ? this : $Observable)(function (observer) { var done = false; microtask(function () { if (!done) { for (var j = 0; j < items.length; ++j) { observer.next(items[j]); if (done) return; - }observer.complete(); + } observer.complete(); } }); - return function () { - done = true; - }; + return function () { done = true; }; }); } }); -hide($Observable.prototype, OBSERVABLE, function () { - return this; -}); +hide($Observable.prototype, OBSERVABLE, function () { return this; }); $export($export.G, { Observable: $Observable }); require('./_set-species')('Observable'); -},{"./_a-function":498,"./_an-instance":501,"./_an-object":502,"./_core":518,"./_export":528,"./_for-of":534,"./_global":535,"./_hide":537,"./_microtask":562,"./_redefine-all":585,"./_set-species":592,"./_wks":621}],790:[function(require,module,exports){ -arguments[4][493][0].apply(exports,arguments) -},{"./_core":518,"./_export":528,"./_global":535,"./_promise-resolve":583,"./_species-constructor":596,"dup":493}],791:[function(require,module,exports){ -arguments[4][494][0].apply(exports,arguments) -},{"./_export":528,"./_new-promise-capability":563,"./_perform":582,"dup":494}],792:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_an-instance":515,"./_an-object":516,"./_core":532,"./_export":542,"./_for-of":548,"./_global":549,"./_hide":551,"./_microtask":576,"./_redefine-all":599,"./_set-species":606,"./_wks":635}],804:[function(require,module,exports){ +arguments[4][507][0].apply(exports,arguments) +},{"./_core":532,"./_export":542,"./_global":549,"./_promise-resolve":597,"./_species-constructor":610,"dup":507}],805:[function(require,module,exports){ +arguments[4][508][0].apply(exports,arguments) +},{"./_export":542,"./_new-promise-capability":577,"./_perform":596,"dup":508}],806:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var toMetaKey = metadata.key; var ordinaryDefineOwnMetadata = metadata.set; metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) { - ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey)); - } }); - -},{"./_an-object":502,"./_metadata":561}],793:[function(require,module,exports){ -'use strict'; + ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey)); +} }); +},{"./_an-object":516,"./_metadata":575}],807:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var toMetaKey = metadata.key; @@ -135791,18 +143204,16 @@ var getOrCreateMetadataMap = metadata.map; var store = metadata.store; metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) { - var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]); - var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); - if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false; - if (metadataMap.size) return true; - var targetMetadata = store.get(target); - targetMetadata['delete'](targetKey); - return !!targetMetadata.size || store['delete'](target); - } }); - -},{"./_an-object":502,"./_metadata":561}],794:[function(require,module,exports){ -'use strict'; + var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]); + var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); + if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false; + if (metadataMap.size) return true; + var targetMetadata = store.get(target); + targetMetadata['delete'](targetKey); + return !!targetMetadata.size || store['delete'](target); +} }); +},{"./_an-object":516,"./_metadata":575}],808:[function(require,module,exports){ var Set = require('./es6.set'); var from = require('./_array-from-iterable'); var metadata = require('./_metadata'); @@ -135811,7 +143222,7 @@ var getPrototypeOf = require('./_object-gpo'); var ordinaryOwnMetadataKeys = metadata.keys; var toMetaKey = metadata.key; -var ordinaryMetadataKeys = function ordinaryMetadataKeys(O, P) { +var ordinaryMetadataKeys = function (O, P) { var oKeys = ordinaryOwnMetadataKeys(O, P); var parent = getPrototypeOf(O); if (parent === null) return oKeys; @@ -135820,12 +143231,10 @@ var ordinaryMetadataKeys = function ordinaryMetadataKeys(O, P) { }; metadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) { - return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); - } }); - -},{"./_an-object":502,"./_array-from-iterable":505,"./_metadata":561,"./_object-gpo":573,"./es6.set":724}],795:[function(require,module,exports){ -'use strict'; + return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); +} }); +},{"./_an-object":516,"./_array-from-iterable":519,"./_metadata":575,"./_object-gpo":587,"./es6.set":738}],809:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var getPrototypeOf = require('./_object-gpo'); @@ -135833,7 +143242,7 @@ var ordinaryHasOwnMetadata = metadata.has; var ordinaryGetOwnMetadata = metadata.get; var toMetaKey = metadata.key; -var ordinaryGetMetadata = function ordinaryGetMetadata(MetadataKey, O, P) { +var ordinaryGetMetadata = function (MetadataKey, O, P) { var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P); var parent = getPrototypeOf(O); @@ -135841,43 +143250,38 @@ var ordinaryGetMetadata = function ordinaryGetMetadata(MetadataKey, O, P) { }; metadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) { - return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); - } }); - -},{"./_an-object":502,"./_metadata":561,"./_object-gpo":573}],796:[function(require,module,exports){ -'use strict'; + return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); +} }); +},{"./_an-object":516,"./_metadata":575,"./_object-gpo":587}],810:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var ordinaryOwnMetadataKeys = metadata.keys; var toMetaKey = metadata.key; metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) { - return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); - } }); - -},{"./_an-object":502,"./_metadata":561}],797:[function(require,module,exports){ -'use strict'; + return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); +} }); +},{"./_an-object":516,"./_metadata":575}],811:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var ordinaryGetOwnMetadata = metadata.get; var toMetaKey = metadata.key; metadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) { - return ordinaryGetOwnMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); - } }); - -},{"./_an-object":502,"./_metadata":561}],798:[function(require,module,exports){ -'use strict'; + return ordinaryGetOwnMetadata(metadataKey, anObject(target) + , arguments.length < 3 ? undefined : toMetaKey(arguments[2])); +} }); +},{"./_an-object":516,"./_metadata":575}],812:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var getPrototypeOf = require('./_object-gpo'); var ordinaryHasOwnMetadata = metadata.has; var toMetaKey = metadata.key; -var ordinaryHasMetadata = function ordinaryHasMetadata(MetadataKey, O, P) { +var ordinaryHasMetadata = function (MetadataKey, O, P) { var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); if (hasOwn) return true; var parent = getPrototypeOf(O); @@ -135885,24 +143289,21 @@ var ordinaryHasMetadata = function ordinaryHasMetadata(MetadataKey, O, P) { }; metadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) { - return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); - } }); - -},{"./_an-object":502,"./_metadata":561,"./_object-gpo":573}],799:[function(require,module,exports){ -'use strict'; + return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); +} }); +},{"./_an-object":516,"./_metadata":575,"./_object-gpo":587}],813:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var ordinaryHasOwnMetadata = metadata.has; var toMetaKey = metadata.key; metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) { - return ordinaryHasOwnMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); - } }); - -},{"./_an-object":502,"./_metadata":561}],800:[function(require,module,exports){ -'use strict'; + return ordinaryHasOwnMetadata(metadataKey, anObject(target) + , arguments.length < 3 ? undefined : toMetaKey(arguments[2])); +} }); +},{"./_an-object":516,"./_metadata":575}],814:[function(require,module,exports){ var $metadata = require('./_metadata'); var anObject = require('./_an-object'); var aFunction = require('./_a-function'); @@ -135910,35 +143311,32 @@ var toMetaKey = $metadata.key; var ordinaryDefineOwnMetadata = $metadata.set; $metadata.exp({ metadata: function metadata(metadataKey, metadataValue) { - return function decorator(target, targetKey) { - ordinaryDefineOwnMetadata(metadataKey, metadataValue, (targetKey !== undefined ? anObject : aFunction)(target), toMetaKey(targetKey)); - }; - } }); - -},{"./_a-function":498,"./_an-object":502,"./_metadata":561}],801:[function(require,module,exports){ -'use strict'; + return function decorator(target, targetKey) { + ordinaryDefineOwnMetadata( + metadataKey, metadataValue, + (targetKey !== undefined ? anObject : aFunction)(target), + toMetaKey(targetKey) + ); + }; +} }); +},{"./_a-function":512,"./_an-object":516,"./_metadata":575}],815:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-set.from require('./_set-collection-from')('Set'); -},{"./_set-collection-from":589}],802:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-from":603}],816:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-set.of require('./_set-collection-of')('Set'); -},{"./_set-collection-of":590}],803:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-of":604}],817:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = require('./_export'); $export($export.P + $export.R, 'Set', { toJSON: require('./_collection-to-json')('Set') }); -},{"./_collection-to-json":515,"./_export":528}],804:[function(require,module,exports){ +},{"./_collection-to-json":529,"./_export":542}],818:[function(require,module,exports){ 'use strict'; // https://github.com/mathiasbynens/String.prototype.at - var $export = require('./_export'); var $at = require('./_string-at')(true); @@ -135948,10 +143346,9 @@ $export($export.P, 'String', { } }); -},{"./_export":528,"./_string-at":598}],805:[function(require,module,exports){ +},{"./_export":542,"./_string-at":612}],819:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/String.prototype.matchAll/ - var $export = require('./_export'); var defined = require('./_defined'); var toLength = require('./_to-length'); @@ -135959,7 +143356,7 @@ var isRegExp = require('./_is-regexp'); var getFlags = require('./_flags'); var RegExpProto = RegExp.prototype; -var $RegExpStringIterator = function $RegExpStringIterator(regexp, string) { +var $RegExpStringIterator = function (regexp, string) { this._r = regexp; this._s = string; }; @@ -135981,10 +143378,9 @@ $export($export.P, 'String', { } }); -},{"./_defined":523,"./_export":528,"./_flags":532,"./_is-regexp":547,"./_iter-create":549,"./_to-length":610}],806:[function(require,module,exports){ +},{"./_defined":537,"./_export":542,"./_flags":546,"./_is-regexp":561,"./_iter-create":563,"./_to-length":624}],820:[function(require,module,exports){ 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end - var $export = require('./_export'); var $pad = require('./_string-pad'); var userAgent = require('./_user-agent'); @@ -135996,10 +143392,9 @@ $export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAge } }); -},{"./_export":528,"./_string-pad":601,"./_user-agent":617}],807:[function(require,module,exports){ +},{"./_export":542,"./_string-pad":615,"./_user-agent":631}],821:[function(require,module,exports){ 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end - var $export = require('./_export'); var $pad = require('./_string-pad'); var userAgent = require('./_user-agent'); @@ -136011,65 +143406,51 @@ $export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAge } }); -},{"./_export":528,"./_string-pad":601,"./_user-agent":617}],808:[function(require,module,exports){ +},{"./_export":542,"./_string-pad":615,"./_user-agent":631}],822:[function(require,module,exports){ 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim - require('./_string-trim')('trimLeft', function ($trim) { return function trimLeft() { return $trim(this, 1); }; }, 'trimStart'); -},{"./_string-trim":603}],809:[function(require,module,exports){ +},{"./_string-trim":617}],823:[function(require,module,exports){ 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim - require('./_string-trim')('trimRight', function ($trim) { return function trimRight() { return $trim(this, 2); }; }, 'trimEnd'); -},{"./_string-trim":603}],810:[function(require,module,exports){ -arguments[4][495][0].apply(exports,arguments) -},{"./_wks-define":619,"dup":495}],811:[function(require,module,exports){ -arguments[4][496][0].apply(exports,arguments) -},{"./_wks-define":619,"dup":496}],812:[function(require,module,exports){ -'use strict'; - +},{"./_string-trim":617}],824:[function(require,module,exports){ +arguments[4][509][0].apply(exports,arguments) +},{"./_wks-define":633,"dup":509}],825:[function(require,module,exports){ +arguments[4][510][0].apply(exports,arguments) +},{"./_wks-define":633,"dup":510}],826:[function(require,module,exports){ // https://github.com/tc39/proposal-global var $export = require('./_export'); $export($export.S, 'System', { global: require('./_global') }); -},{"./_export":528,"./_global":535}],813:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_global":549}],827:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from require('./_set-collection-from')('WeakMap'); -},{"./_set-collection-from":589}],814:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-from":603}],828:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of require('./_set-collection-of')('WeakMap'); -},{"./_set-collection-of":590}],815:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-of":604}],829:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from require('./_set-collection-from')('WeakSet'); -},{"./_set-collection-from":589}],816:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-from":603}],830:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of require('./_set-collection-of')('WeakSet'); -},{"./_set-collection-of":590}],817:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-of":604}],831:[function(require,module,exports){ var $iterators = require('./es6.array.iterator'); var getKeys = require('./_object-keys'); var redefine = require('./_redefine'); @@ -136125,15 +143506,11 @@ for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++ if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); Iterators[NAME] = ArrayValues; - if (explicit) for (key in $iterators) { - if (!proto[key]) redefine(proto, key, $iterators[key], true); - } + if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); } } -},{"./_global":535,"./_hide":537,"./_iterators":553,"./_object-keys":575,"./_redefine":586,"./_wks":621,"./es6.array.iterator":634}],818:[function(require,module,exports){ -'use strict'; - +},{"./_global":549,"./_hide":551,"./_iterators":567,"./_object-keys":589,"./_redefine":600,"./_wks":635,"./es6.array.iterator":648}],832:[function(require,module,exports){ var $export = require('./_export'); var $task = require('./_task'); $export($export.G + $export.B, { @@ -136141,16 +143518,14 @@ $export($export.G + $export.B, { clearImmediate: $task.clear }); -},{"./_export":528,"./_task":605}],819:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_task":619}],833:[function(require,module,exports){ // ie9- setTimeout & setInterval additional parameters fix var global = require('./_global'); var $export = require('./_export'); var userAgent = require('./_user-agent'); var slice = [].slice; var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check -var wrap = function wrap(set) { +var wrap = function (set) { return function (fn, time /* , ...args */) { var boundArgs = arguments.length > 2; var args = boundArgs ? slice.call(arguments, 2) : false; @@ -136165,9 +143540,7 @@ $export($export.G + $export.B + $export.F * MSIE, { setInterval: wrap(global.setInterval) }); -},{"./_export":528,"./_global":535,"./_user-agent":617}],820:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_global":549,"./_user-agent":631}],834:[function(require,module,exports){ require('./modules/es6.symbol'); require('./modules/es6.object.create'); require('./modules/es6.object.define-property'); @@ -136366,12 +143739,8 @@ require('./modules/web.immediate'); require('./modules/web.dom.iterable'); module.exports = require('./modules/_core'); -},{"./modules/_core":518,"./modules/es6.array.copy-within":624,"./modules/es6.array.every":625,"./modules/es6.array.fill":626,"./modules/es6.array.filter":627,"./modules/es6.array.find":629,"./modules/es6.array.find-index":628,"./modules/es6.array.for-each":630,"./modules/es6.array.from":631,"./modules/es6.array.index-of":632,"./modules/es6.array.is-array":633,"./modules/es6.array.iterator":634,"./modules/es6.array.join":635,"./modules/es6.array.last-index-of":636,"./modules/es6.array.map":637,"./modules/es6.array.of":638,"./modules/es6.array.reduce":640,"./modules/es6.array.reduce-right":639,"./modules/es6.array.slice":641,"./modules/es6.array.some":642,"./modules/es6.array.sort":643,"./modules/es6.array.species":644,"./modules/es6.date.now":645,"./modules/es6.date.to-iso-string":646,"./modules/es6.date.to-json":647,"./modules/es6.date.to-primitive":648,"./modules/es6.date.to-string":649,"./modules/es6.function.bind":650,"./modules/es6.function.has-instance":651,"./modules/es6.function.name":652,"./modules/es6.map":653,"./modules/es6.math.acosh":654,"./modules/es6.math.asinh":655,"./modules/es6.math.atanh":656,"./modules/es6.math.cbrt":657,"./modules/es6.math.clz32":658,"./modules/es6.math.cosh":659,"./modules/es6.math.expm1":660,"./modules/es6.math.fround":661,"./modules/es6.math.hypot":662,"./modules/es6.math.imul":663,"./modules/es6.math.log10":664,"./modules/es6.math.log1p":665,"./modules/es6.math.log2":666,"./modules/es6.math.sign":667,"./modules/es6.math.sinh":668,"./modules/es6.math.tanh":669,"./modules/es6.math.trunc":670,"./modules/es6.number.constructor":671,"./modules/es6.number.epsilon":672,"./modules/es6.number.is-finite":673,"./modules/es6.number.is-integer":674,"./modules/es6.number.is-nan":675,"./modules/es6.number.is-safe-integer":676,"./modules/es6.number.max-safe-integer":677,"./modules/es6.number.min-safe-integer":678,"./modules/es6.number.parse-float":679,"./modules/es6.number.parse-int":680,"./modules/es6.number.to-fixed":681,"./modules/es6.number.to-precision":682,"./modules/es6.object.assign":683,"./modules/es6.object.create":684,"./modules/es6.object.define-properties":685,"./modules/es6.object.define-property":686,"./modules/es6.object.freeze":687,"./modules/es6.object.get-own-property-descriptor":688,"./modules/es6.object.get-own-property-names":689,"./modules/es6.object.get-prototype-of":690,"./modules/es6.object.is":694,"./modules/es6.object.is-extensible":691,"./modules/es6.object.is-frozen":692,"./modules/es6.object.is-sealed":693,"./modules/es6.object.keys":695,"./modules/es6.object.prevent-extensions":696,"./modules/es6.object.seal":697,"./modules/es6.object.set-prototype-of":698,"./modules/es6.object.to-string":699,"./modules/es6.parse-float":700,"./modules/es6.parse-int":701,"./modules/es6.promise":702,"./modules/es6.reflect.apply":703,"./modules/es6.reflect.construct":704,"./modules/es6.reflect.define-property":705,"./modules/es6.reflect.delete-property":706,"./modules/es6.reflect.enumerate":707,"./modules/es6.reflect.get":710,"./modules/es6.reflect.get-own-property-descriptor":708,"./modules/es6.reflect.get-prototype-of":709,"./modules/es6.reflect.has":711,"./modules/es6.reflect.is-extensible":712,"./modules/es6.reflect.own-keys":713,"./modules/es6.reflect.prevent-extensions":714,"./modules/es6.reflect.set":716,"./modules/es6.reflect.set-prototype-of":715,"./modules/es6.regexp.constructor":717,"./modules/es6.regexp.flags":718,"./modules/es6.regexp.match":719,"./modules/es6.regexp.replace":720,"./modules/es6.regexp.search":721,"./modules/es6.regexp.split":722,"./modules/es6.regexp.to-string":723,"./modules/es6.set":724,"./modules/es6.string.anchor":725,"./modules/es6.string.big":726,"./modules/es6.string.blink":727,"./modules/es6.string.bold":728,"./modules/es6.string.code-point-at":729,"./modules/es6.string.ends-with":730,"./modules/es6.string.fixed":731,"./modules/es6.string.fontcolor":732,"./modules/es6.string.fontsize":733,"./modules/es6.string.from-code-point":734,"./modules/es6.string.includes":735,"./modules/es6.string.italics":736,"./modules/es6.string.iterator":737,"./modules/es6.string.link":738,"./modules/es6.string.raw":739,"./modules/es6.string.repeat":740,"./modules/es6.string.small":741,"./modules/es6.string.starts-with":742,"./modules/es6.string.strike":743,"./modules/es6.string.sub":744,"./modules/es6.string.sup":745,"./modules/es6.string.trim":746,"./modules/es6.symbol":747,"./modules/es6.typed.array-buffer":748,"./modules/es6.typed.data-view":749,"./modules/es6.typed.float32-array":750,"./modules/es6.typed.float64-array":751,"./modules/es6.typed.int16-array":752,"./modules/es6.typed.int32-array":753,"./modules/es6.typed.int8-array":754,"./modules/es6.typed.uint16-array":755,"./modules/es6.typed.uint32-array":756,"./modules/es6.typed.uint8-array":757,"./modules/es6.typed.uint8-clamped-array":758,"./modules/es6.weak-map":759,"./modules/es6.weak-set":760,"./modules/es7.array.flat-map":761,"./modules/es7.array.flatten":762,"./modules/es7.array.includes":763,"./modules/es7.asap":764,"./modules/es7.error.is-error":765,"./modules/es7.global":766,"./modules/es7.map.from":767,"./modules/es7.map.of":768,"./modules/es7.map.to-json":769,"./modules/es7.math.clamp":770,"./modules/es7.math.deg-per-rad":771,"./modules/es7.math.degrees":772,"./modules/es7.math.fscale":773,"./modules/es7.math.iaddh":774,"./modules/es7.math.imulh":775,"./modules/es7.math.isubh":776,"./modules/es7.math.rad-per-deg":777,"./modules/es7.math.radians":778,"./modules/es7.math.scale":779,"./modules/es7.math.signbit":780,"./modules/es7.math.umulh":781,"./modules/es7.object.define-getter":782,"./modules/es7.object.define-setter":783,"./modules/es7.object.entries":784,"./modules/es7.object.get-own-property-descriptors":785,"./modules/es7.object.lookup-getter":786,"./modules/es7.object.lookup-setter":787,"./modules/es7.object.values":788,"./modules/es7.observable":789,"./modules/es7.promise.finally":790,"./modules/es7.promise.try":791,"./modules/es7.reflect.define-metadata":792,"./modules/es7.reflect.delete-metadata":793,"./modules/es7.reflect.get-metadata":795,"./modules/es7.reflect.get-metadata-keys":794,"./modules/es7.reflect.get-own-metadata":797,"./modules/es7.reflect.get-own-metadata-keys":796,"./modules/es7.reflect.has-metadata":798,"./modules/es7.reflect.has-own-metadata":799,"./modules/es7.reflect.metadata":800,"./modules/es7.set.from":801,"./modules/es7.set.of":802,"./modules/es7.set.to-json":803,"./modules/es7.string.at":804,"./modules/es7.string.match-all":805,"./modules/es7.string.pad-end":806,"./modules/es7.string.pad-start":807,"./modules/es7.string.trim-left":808,"./modules/es7.string.trim-right":809,"./modules/es7.symbol.async-iterator":810,"./modules/es7.symbol.observable":811,"./modules/es7.system.global":812,"./modules/es7.weak-map.from":813,"./modules/es7.weak-map.of":814,"./modules/es7.weak-set.from":815,"./modules/es7.weak-set.of":816,"./modules/web.dom.iterable":817,"./modules/web.immediate":818,"./modules/web.timers":819}],821:[function(require,module,exports){ +},{"./modules/_core":532,"./modules/es6.array.copy-within":638,"./modules/es6.array.every":639,"./modules/es6.array.fill":640,"./modules/es6.array.filter":641,"./modules/es6.array.find":643,"./modules/es6.array.find-index":642,"./modules/es6.array.for-each":644,"./modules/es6.array.from":645,"./modules/es6.array.index-of":646,"./modules/es6.array.is-array":647,"./modules/es6.array.iterator":648,"./modules/es6.array.join":649,"./modules/es6.array.last-index-of":650,"./modules/es6.array.map":651,"./modules/es6.array.of":652,"./modules/es6.array.reduce":654,"./modules/es6.array.reduce-right":653,"./modules/es6.array.slice":655,"./modules/es6.array.some":656,"./modules/es6.array.sort":657,"./modules/es6.array.species":658,"./modules/es6.date.now":659,"./modules/es6.date.to-iso-string":660,"./modules/es6.date.to-json":661,"./modules/es6.date.to-primitive":662,"./modules/es6.date.to-string":663,"./modules/es6.function.bind":664,"./modules/es6.function.has-instance":665,"./modules/es6.function.name":666,"./modules/es6.map":667,"./modules/es6.math.acosh":668,"./modules/es6.math.asinh":669,"./modules/es6.math.atanh":670,"./modules/es6.math.cbrt":671,"./modules/es6.math.clz32":672,"./modules/es6.math.cosh":673,"./modules/es6.math.expm1":674,"./modules/es6.math.fround":675,"./modules/es6.math.hypot":676,"./modules/es6.math.imul":677,"./modules/es6.math.log10":678,"./modules/es6.math.log1p":679,"./modules/es6.math.log2":680,"./modules/es6.math.sign":681,"./modules/es6.math.sinh":682,"./modules/es6.math.tanh":683,"./modules/es6.math.trunc":684,"./modules/es6.number.constructor":685,"./modules/es6.number.epsilon":686,"./modules/es6.number.is-finite":687,"./modules/es6.number.is-integer":688,"./modules/es6.number.is-nan":689,"./modules/es6.number.is-safe-integer":690,"./modules/es6.number.max-safe-integer":691,"./modules/es6.number.min-safe-integer":692,"./modules/es6.number.parse-float":693,"./modules/es6.number.parse-int":694,"./modules/es6.number.to-fixed":695,"./modules/es6.number.to-precision":696,"./modules/es6.object.assign":697,"./modules/es6.object.create":698,"./modules/es6.object.define-properties":699,"./modules/es6.object.define-property":700,"./modules/es6.object.freeze":701,"./modules/es6.object.get-own-property-descriptor":702,"./modules/es6.object.get-own-property-names":703,"./modules/es6.object.get-prototype-of":704,"./modules/es6.object.is":708,"./modules/es6.object.is-extensible":705,"./modules/es6.object.is-frozen":706,"./modules/es6.object.is-sealed":707,"./modules/es6.object.keys":709,"./modules/es6.object.prevent-extensions":710,"./modules/es6.object.seal":711,"./modules/es6.object.set-prototype-of":712,"./modules/es6.object.to-string":713,"./modules/es6.parse-float":714,"./modules/es6.parse-int":715,"./modules/es6.promise":716,"./modules/es6.reflect.apply":717,"./modules/es6.reflect.construct":718,"./modules/es6.reflect.define-property":719,"./modules/es6.reflect.delete-property":720,"./modules/es6.reflect.enumerate":721,"./modules/es6.reflect.get":724,"./modules/es6.reflect.get-own-property-descriptor":722,"./modules/es6.reflect.get-prototype-of":723,"./modules/es6.reflect.has":725,"./modules/es6.reflect.is-extensible":726,"./modules/es6.reflect.own-keys":727,"./modules/es6.reflect.prevent-extensions":728,"./modules/es6.reflect.set":730,"./modules/es6.reflect.set-prototype-of":729,"./modules/es6.regexp.constructor":731,"./modules/es6.regexp.flags":732,"./modules/es6.regexp.match":733,"./modules/es6.regexp.replace":734,"./modules/es6.regexp.search":735,"./modules/es6.regexp.split":736,"./modules/es6.regexp.to-string":737,"./modules/es6.set":738,"./modules/es6.string.anchor":739,"./modules/es6.string.big":740,"./modules/es6.string.blink":741,"./modules/es6.string.bold":742,"./modules/es6.string.code-point-at":743,"./modules/es6.string.ends-with":744,"./modules/es6.string.fixed":745,"./modules/es6.string.fontcolor":746,"./modules/es6.string.fontsize":747,"./modules/es6.string.from-code-point":748,"./modules/es6.string.includes":749,"./modules/es6.string.italics":750,"./modules/es6.string.iterator":751,"./modules/es6.string.link":752,"./modules/es6.string.raw":753,"./modules/es6.string.repeat":754,"./modules/es6.string.small":755,"./modules/es6.string.starts-with":756,"./modules/es6.string.strike":757,"./modules/es6.string.sub":758,"./modules/es6.string.sup":759,"./modules/es6.string.trim":760,"./modules/es6.symbol":761,"./modules/es6.typed.array-buffer":762,"./modules/es6.typed.data-view":763,"./modules/es6.typed.float32-array":764,"./modules/es6.typed.float64-array":765,"./modules/es6.typed.int16-array":766,"./modules/es6.typed.int32-array":767,"./modules/es6.typed.int8-array":768,"./modules/es6.typed.uint16-array":769,"./modules/es6.typed.uint32-array":770,"./modules/es6.typed.uint8-array":771,"./modules/es6.typed.uint8-clamped-array":772,"./modules/es6.weak-map":773,"./modules/es6.weak-set":774,"./modules/es7.array.flat-map":775,"./modules/es7.array.flatten":776,"./modules/es7.array.includes":777,"./modules/es7.asap":778,"./modules/es7.error.is-error":779,"./modules/es7.global":780,"./modules/es7.map.from":781,"./modules/es7.map.of":782,"./modules/es7.map.to-json":783,"./modules/es7.math.clamp":784,"./modules/es7.math.deg-per-rad":785,"./modules/es7.math.degrees":786,"./modules/es7.math.fscale":787,"./modules/es7.math.iaddh":788,"./modules/es7.math.imulh":789,"./modules/es7.math.isubh":790,"./modules/es7.math.rad-per-deg":791,"./modules/es7.math.radians":792,"./modules/es7.math.scale":793,"./modules/es7.math.signbit":794,"./modules/es7.math.umulh":795,"./modules/es7.object.define-getter":796,"./modules/es7.object.define-setter":797,"./modules/es7.object.entries":798,"./modules/es7.object.get-own-property-descriptors":799,"./modules/es7.object.lookup-getter":800,"./modules/es7.object.lookup-setter":801,"./modules/es7.object.values":802,"./modules/es7.observable":803,"./modules/es7.promise.finally":804,"./modules/es7.promise.try":805,"./modules/es7.reflect.define-metadata":806,"./modules/es7.reflect.delete-metadata":807,"./modules/es7.reflect.get-metadata":809,"./modules/es7.reflect.get-metadata-keys":808,"./modules/es7.reflect.get-own-metadata":811,"./modules/es7.reflect.get-own-metadata-keys":810,"./modules/es7.reflect.has-metadata":812,"./modules/es7.reflect.has-own-metadata":813,"./modules/es7.reflect.metadata":814,"./modules/es7.set.from":815,"./modules/es7.set.of":816,"./modules/es7.set.to-json":817,"./modules/es7.string.at":818,"./modules/es7.string.match-all":819,"./modules/es7.string.pad-end":820,"./modules/es7.string.pad-start":821,"./modules/es7.string.trim-left":822,"./modules/es7.string.trim-right":823,"./modules/es7.symbol.async-iterator":824,"./modules/es7.symbol.observable":825,"./modules/es7.system.global":826,"./modules/es7.weak-map.from":827,"./modules/es7.weak-map.of":828,"./modules/es7.weak-set.from":829,"./modules/es7.weak-set.of":830,"./modules/web.dom.iterable":831,"./modules/web.immediate":832,"./modules/web.timers":833}],835:[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 @@ -136430,7 +143799,7 @@ function isString(arg) { exports.isString = isString; function isSymbol(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol'; + return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; @@ -136445,7 +143814,7 @@ function isRegExp(re) { exports.isRegExp = isRegExp; function isObject(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null; + return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; @@ -136455,7 +143824,7 @@ function isDate(d) { exports.isDate = isDate; function isError(e) { - return objectToString(e) === '[object Error]' || e instanceof Error; + return (objectToString(e) === '[object Error]' || e instanceof Error); } exports.isError = isError; @@ -136465,8 +143834,12 @@ function isFunction(arg) { 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'; + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; @@ -136477,16 +143850,14 @@ function objectToString(o) { } }).call(this,{"isBuffer":require("../../is-buffer/index.js")}) -},{"../../is-buffer/index.js":883}],822:[function(require,module,exports){ +},{"../../is-buffer/index.js":897}],836:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var elliptic = require('elliptic'); -var BN = require('bn.js'); +var elliptic = require('elliptic') +var BN = require('bn.js') -module.exports = function createECDH(curve) { - return new ECDH(curve); -}; +module.exports = function createECDH (curve) { + return new ECDH(curve) +} var aliases = { secp256k1: { @@ -136517,275 +143888,271 @@ var aliases = { 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; +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]; +function ECDH (curve) { + this.curveType = aliases[curve] if (!this.curveType) { this.curveType = { name: curve - }; + } } - this.curve = new elliptic.ec(this.curveType.name); // eslint-disable-line new-cap - this.keys = void 0; + this.curve = new elliptic.ec(this.curveType.name) // eslint-disable-line new-cap + this.keys = void 0 } ECDH.prototype.generateKeys = function (enc, format) { - this.keys = this.curve.genKeyPair(); - return this.getPublicKey(enc, format); -}; + this.keys = this.curve.genKeyPair() + return this.getPublicKey(enc, format) +} ECDH.prototype.computeSecret = function (other, inenc, enc) { - inenc = inenc || 'utf8'; + inenc = inenc || 'utf8' if (!Buffer.isBuffer(other)) { - other = new Buffer(other, inenc); + 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); -}; + 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); + var key = this.keys.getPublic(format === 'compressed', true) if (format === 'hybrid') { if (key[key.length - 1] % 2) { - key[0] = 7; + key[0] = 7 } else { - key[0] = 6; + key[0] = 6 } } - return formatReturnValue(key, enc); -}; + return formatReturnValue(key, enc) +} ECDH.prototype.getPrivateKey = function (enc) { - return formatReturnValue(this.keys.getPrivate(), enc); -}; + return formatReturnValue(this.keys.getPrivate(), enc) +} ECDH.prototype.setPublicKey = function (pub, enc) { - enc = enc || 'utf8'; + enc = enc || 'utf8' if (!Buffer.isBuffer(pub)) { - pub = new Buffer(pub, enc); + pub = new Buffer(pub, enc) } - this.keys._importPublic(pub); - return this; -}; + this.keys._importPublic(pub) + return this +} ECDH.prototype.setPrivateKey = function (priv, enc) { - enc = enc || 'utf8'; + enc = enc || 'utf8' if (!Buffer.isBuffer(priv)) { - priv = new Buffer(priv, enc); + priv = new Buffer(priv, enc) } - var _priv = new BN(priv); - _priv = _priv.toString(16); - this.keys = this.curve.genKeyPair(); - this.keys._importPrivate(_priv); - return this; -}; + var _priv = new BN(priv) + _priv = _priv.toString(16) + this.keys = this.curve.genKeyPair() + this.keys._importPrivate(_priv) + return this +} -function formatReturnValue(bn, enc, len) { +function formatReturnValue (bn, enc, len) { if (!Array.isArray(bn)) { - bn = bn.toArray(); + bn = bn.toArray() } - var buf = new Buffer(bn); + 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]); + var zeros = new Buffer(len - buf.length) + zeros.fill(0) + buf = Buffer.concat([zeros, buf]) } if (!enc) { - return buf; + return buf } else { - return buf.toString(enc); + return buf.toString(enc) } } }).call(this,require("buffer").Buffer) -},{"bn.js":367,"buffer":401,"elliptic":841}],823:[function(require,module,exports){ +},{"bn.js":381,"buffer":415,"elliptic":855}],837:[function(require,module,exports){ arguments[4][190][0].apply(exports,arguments) -},{"cipher-base":402,"dup":190,"inherits":882,"md5.js":896,"ripemd160":935,"sha.js":946}],824:[function(require,module,exports){ -'use strict'; - -var MD5 = require('md5.js'); +},{"cipher-base":416,"dup":190,"inherits":896,"md5.js":910,"ripemd160":949,"sha.js":960}],838:[function(require,module,exports){ +var MD5 = require('md5.js') module.exports = function (buffer) { - return new MD5().update(buffer).digest(); -}; - -},{"md5.js":896}],825:[function(require,module,exports){ -'use strict'; + return new MD5().update(buffer).digest() +} -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'); +},{"md5.js":910}],839:[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 sha = require('sha.js') -var ZEROS = Buffer.alloc(128); +var ZEROS = Buffer.alloc(128) -function Hmac(alg, key) { - Base.call(this, 'digest'); +function Hmac (alg, key) { + Base.call(this, 'digest') if (typeof key === 'string') { - key = Buffer.from(key); + key = Buffer.from(key) } - var blocksize = alg === 'sha512' || alg === 'sha384' ? 128 : 64; + var blocksize = (alg === 'sha512' || alg === 'sha384') ? 128 : 64 - this._alg = alg; - this._key = key; + this._alg = alg + this._key = key if (key.length > blocksize) { - var hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg); - key = hash.update(key).digest(); + var hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg) + key = hash.update(key).digest() } else if (key.length < blocksize) { - key = Buffer.concat([key, ZEROS], blocksize); + key = Buffer.concat([key, ZEROS], blocksize) } - var ipad = this._ipad = Buffer.allocUnsafe(blocksize); - var opad = this._opad = Buffer.allocUnsafe(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; + ipad[i] = key[i] ^ 0x36 + opad[i] = key[i] ^ 0x5C } - this._hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg); - this._hash.update(ipad); + this._hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg) + this._hash.update(ipad) } -inherits(Hmac, Base); +inherits(Hmac, Base) Hmac.prototype._update = function (data) { - this._hash.update(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(); -}; + 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(); +module.exports = function createHmac (alg, key) { + alg = alg.toLowerCase() if (alg === 'rmd160' || alg === 'ripemd160') { - return new Hmac('rmd160', key); + return new Hmac('rmd160', key) } if (alg === 'md5') { - return new Legacy(md5, key); + return new Legacy(md5, key) } - return new Hmac(alg, key); -}; - -},{"./legacy":826,"cipher-base":402,"create-hash/md5":824,"inherits":882,"ripemd160":935,"safe-buffer":937,"sha.js":946}],826:[function(require,module,exports){ -'use strict'; + return new Hmac(alg, key) +} -var inherits = require('inherits'); -var Buffer = require('safe-buffer').Buffer; +},{"./legacy":840,"cipher-base":416,"create-hash/md5":838,"inherits":896,"ripemd160":949,"safe-buffer":951,"sha.js":960}],840:[function(require,module,exports){ +'use strict' +var inherits = require('inherits') +var Buffer = require('safe-buffer').Buffer -var Base = require('cipher-base'); +var Base = require('cipher-base') -var ZEROS = Buffer.alloc(128); -var blocksize = 64; +var ZEROS = Buffer.alloc(128) +var blocksize = 64 -function Hmac(alg, key) { - Base.call(this, 'digest'); +function Hmac (alg, key) { + Base.call(this, 'digest') if (typeof key === 'string') { - key = Buffer.from(key); + key = Buffer.from(key) } - this._alg = alg; - this._key = key; + this._alg = alg + this._key = key if (key.length > blocksize) { - key = alg(key); + key = alg(key) } else if (key.length < blocksize) { - key = Buffer.concat([key, ZEROS], blocksize); + key = Buffer.concat([key, ZEROS], blocksize) } - var ipad = this._ipad = Buffer.allocUnsafe(blocksize); - var opad = this._opad = Buffer.allocUnsafe(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; + ipad[i] = key[i] ^ 0x36 + opad[i] = key[i] ^ 0x5C } - this._hash = [ipad]; + this._hash = [ipad] } -inherits(Hmac, Base); +inherits(Hmac, Base) Hmac.prototype._update = function (data) { - this._hash.push(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; + var h = this._alg(Buffer.concat(this._hash)) + return this._alg(Buffer.concat([this._opad, h])) +} +module.exports = Hmac -},{"cipher-base":402,"inherits":882,"safe-buffer":937}],827:[function(require,module,exports){ -'use strict'; +},{"cipher-base":416,"inherits":896,"safe-buffer":951}],841:[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'); +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); +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; -}; + return hashes +} -var p = require('pbkdf2'); -exports.pbkdf2 = p.pbkdf2; -exports.pbkdf2Sync = p.pbkdf2Sync; +var p = require('pbkdf2') +exports.pbkdf2 = p.pbkdf2 +exports.pbkdf2Sync = p.pbkdf2Sync -var aes = require('browserify-cipher'); +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; +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'); +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; +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'); +var sign = require('browserify-sign') -exports.createSign = sign.createSign; -exports.Sign = sign.Sign; -exports.createVerify = sign.createVerify; -exports.Verify = sign.Verify; +exports.createSign = sign.createSign +exports.Sign = sign.Sign +exports.createVerify = sign.createVerify +exports.Verify = sign.Verify -exports.createECDH = require('create-ecdh'); +exports.createECDH = require('create-ecdh') -var publicEncrypt = require('public-encrypt'); +var publicEncrypt = require('public-encrypt') -exports.publicEncrypt = publicEncrypt.publicEncrypt; -exports.privateEncrypt = publicEncrypt.privateEncrypt; -exports.publicDecrypt = publicEncrypt.publicDecrypt; -exports.privateDecrypt = publicEncrypt.privateDecrypt; +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. // ;[ @@ -136800,14 +144167,18 @@ exports.privateDecrypt = publicEncrypt.privateDecrypt; // } // }) -var rf = require('randomfill'); +var rf = require('randomfill') -exports.randomFill = rf.randomFill; -exports.randomFillSync = rf.randomFillSync; +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')); -}; + 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, @@ -136825,9 +144196,9 @@ exports.constants = { 'POINT_CONVERSION_COMPRESSED': 2, 'POINT_CONVERSION_UNCOMPRESSED': 4, 'POINT_CONVERSION_HYBRID': 6 -}; +} -},{"browserify-cipher":387,"browserify-sign":394,"browserify-sign/algos":391,"create-ecdh":822,"create-hash":823,"create-hmac":825,"diffie-hellman":837,"pbkdf2":905,"public-encrypt":912,"randombytes":918,"randomfill":919}],828:[function(require,module,exports){ +},{"browserify-cipher":401,"browserify-sign":408,"browserify-sign/algos":405,"create-ecdh":836,"create-hash":837,"create-hmac":839,"diffie-hellman":851,"pbkdf2":919,"public-encrypt":926,"randombytes":932,"randomfill":933}],842:[function(require,module,exports){ 'use strict'; exports.utils = require('./des/utils'); @@ -136836,7 +144207,7 @@ exports.DES = require('./des/des'); exports.CBC = require('./des/cbc'); exports.EDE = require('./des/ede'); -},{"./des/cbc":829,"./des/cipher":830,"./des/des":831,"./des/ede":832,"./des/utils":833}],829:[function(require,module,exports){ +},{"./des/cbc":843,"./des/cipher":844,"./des/des":845,"./des/ede":846,"./des/utils":847}],843:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -136848,9 +144219,8 @@ 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++) { + for (var i = 0; i < this.iv.length; i++) this.iv[i] = iv[i]; - } } function instantiate(Base) { @@ -136886,25 +144256,25 @@ proto._update = function _update(inp, inOff, out, outOff) { var iv = state.iv; if (this.type === 'encrypt') { - for (var i = 0; i < this.blockSize; i++) { + 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++) { + 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++) { + for (var i = 0; i < this.blockSize; i++) out[outOff + i] ^= iv[i]; - }for (var i = 0; i < this.blockSize; i++) { + + for (var i = 0; i < this.blockSize; i++) iv[i] = inp[inOff + i]; - } } }; -},{"inherits":882,"minimalistic-assert":898}],830:[function(require,module,exports){ +},{"inherits":896,"minimalistic-assert":912}],844:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -136926,17 +144296,21 @@ Cipher.prototype._init = function _init() { }; Cipher.prototype.update = function update(data) { - if (data.length === 0) return []; + if (data.length === 0) + return []; - if (this.type === 'decrypt') return this._updateDecrypt(data);else return this._updateEncrypt(data); + 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++) { + for (var i = 0; i < min; i++) this.buffer[this.bufferOff + i] = data[off + i]; - }this.bufferOff += min; + this.bufferOff += min; // Shift next return min; @@ -136952,26 +144326,28 @@ Cipher.prototype._updateEncrypt = function _updateEncrypt(data) { var inputOff = 0; var outputOff = 0; - var count = (this.bufferOff + data.length) / this.blockSize | 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); + if (this.bufferOff === this.buffer.length) + outputOff += this._flushBuffer(out, outputOff); } // Write blocks - var max = data.length - (data.length - inputOff) % this.blockSize; + 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++) { + for (; inputOff < data.length; inputOff++, this.bufferOff++) this.buffer[this.bufferOff] = data[inputOff]; - }return out; + + return out; }; Cipher.prototype._updateDecrypt = function _updateDecrypt(data) { @@ -136995,24 +144371,34 @@ Cipher.prototype._updateDecrypt = function _updateDecrypt(data) { Cipher.prototype.final = function final(buffer) { var first; - if (buffer) first = this.update(buffer); + if (buffer) + first = this.update(buffer); var last; - if (this.type === 'encrypt') last = this._finalEncrypt();else last = this._finalDecrypt(); + if (this.type === 'encrypt') + last = this._finalEncrypt(); + else + last = this._finalDecrypt(); - if (first) return first.concat(last);else return last; + if (first) + return first.concat(last); + else + return last; }; Cipher.prototype._pad = function _pad(buffer, off) { - if (off === 0) return false; + if (off === 0) + return false; - while (off < buffer.length) { + while (off < buffer.length) buffer[off++] = 0; - }return true; + + return true; }; Cipher.prototype._finalEncrypt = function _finalEncrypt() { - if (!this._pad(this.buffer, this.bufferOff)) return []; + if (!this._pad(this.buffer, this.bufferOff)) + return []; var out = new Array(this.blockSize); this._update(this.buffer, 0, out, 0); @@ -137031,7 +144417,7 @@ Cipher.prototype._finalDecrypt = function _finalDecrypt() { return this._unpad(out); }; -},{"minimalistic-assert":898}],831:[function(require,module,exports){ +},{"minimalistic-assert":912}],845:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -137061,7 +144447,10 @@ 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]; +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); @@ -137093,7 +144482,10 @@ DES.prototype._update = function _update(inp, inOff, out, outOff) { 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); + 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]; @@ -137104,16 +144496,18 @@ DES.prototype._update = function _update(inp, inOff, out, outOff) { DES.prototype._pad = function _pad(buffer, off) { var value = buffer.length - off; - for (var i = off; i < buffer.length; i++) { + for (var i = off; i < buffer.length; i++) buffer[i] = value; - }return true; + + return true; }; DES.prototype._unpad = function _unpad(buffer) { var pad = buffer[buffer.length - 1]; - for (var i = buffer.length - pad; i < buffer.length; i++) { + for (var i = buffer.length - pad; i < buffer.length; i++) assert.equal(buffer[i], pad); - }return buffer.slice(0, buffer.length - pad); + + return buffer.slice(0, buffer.length - pad); }; DES.prototype._encrypt = function _encrypt(state, lStart, rStart, out, off) { @@ -137168,7 +144562,7 @@ DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) { utils.rip(l, r, out, off); }; -},{"../des":828,"inherits":882,"minimalistic-assert":898}],832:[function(require,module,exports){ +},{"../des":842,"inherits":896,"minimalistic-assert":912}],846:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -137186,9 +144580,17 @@ function EDEState(type, key) { 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 })]; + 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 })]; + this.ciphers = [ + DES.create({ type: 'decrypt', key: k3 }), + DES.create({ type: 'encrypt', key: k2 }), + DES.create({ type: 'decrypt', key: k1 }) + ]; } } @@ -137217,18 +144619,21 @@ EDE.prototype._update = function _update(inp, inOff, out, outOff) { EDE.prototype._pad = DES.prototype._pad; EDE.prototype._unpad = DES.prototype._unpad; -},{"../des":828,"inherits":882,"minimalistic-assert":898}],833:[function(require,module,exports){ +},{"../des":842,"inherits":896,"minimalistic-assert":912}],847:[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]; + 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[1 + off] = (value >>> 16) & 0xff; + bytes[2 + off] = (value >>> 8) & 0xff; bytes[3 + off] = value & 0xff; }; @@ -137239,22 +144644,22 @@ exports.ip = function ip(inL, inR, out, off) { for (var i = 6; i >= 0; i -= 2) { for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inR >>> j + i & 1; + outL |= (inR >>> (j + i)) & 1; } for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inL >>> j + i & 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; + outR |= (inR >>> (j + i)) & 1; } for (var j = 1; j <= 25; j += 8) { outR <<= 1; - outR |= inL >>> j + i & 1; + outR |= (inL >>> (j + i)) & 1; } } @@ -137269,17 +144674,17 @@ exports.rip = function rip(inL, inR, out, off) { for (var i = 0; i < 4; i++) { for (var j = 24; j >= 0; j -= 8) { outL <<= 1; - outL |= inR >>> j + i & 1; + outL |= (inR >>> (j + i)) & 1; outL <<= 1; - outL |= inL >>> j + i & 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 |= (inR >>> (j + i)) & 1; outR <<= 1; - outR |= inL >>> j + i & 1; + outR |= (inL >>> (j + i)) & 1; } } @@ -137298,16 +144703,16 @@ exports.pc1 = function pc1(inL, inR, out, off) { for (var i = 7; i >= 5; i--) { for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inR >> j + i & 1; + outL |= (inR >> (j + i)) & 1; } for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inL >> j + i & 1; + outL |= (inL >> (j + i)) & 1; } } for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inR >> j + i & 1; + outL |= (inR >> (j + i)) & 1; } // 1, 9, 17, 25, 33, 41, 49, 57 @@ -137317,16 +144722,16 @@ exports.pc1 = function pc1(inL, inR, out, off) { for (var i = 1; i <= 3; i++) { for (var j = 0; j <= 24; j += 8) { outR <<= 1; - outR |= inR >> j + i & 1; + outR |= (inR >> (j + i)) & 1; } for (var j = 0; j <= 24; j += 8) { outR <<= 1; - outR |= inL >> j + i & 1; + outR |= (inL >> (j + i)) & 1; } } for (var j = 0; j <= 24; j += 8) { outR <<= 1; - outR |= inL >> j + i & 1; + outR |= (inL >> (j + i)) & 1; } out[off + 0] = outL >>> 0; @@ -137334,15 +144739,20 @@ exports.pc1 = function pc1(inL, inR, out, off) { }; exports.r28shl = function r28shl(num, shift) { - return num << shift & 0xfffffff | num >>> 28 - 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]; + // 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; @@ -137351,11 +144761,11 @@ exports.pc2 = function pc2(inL, inR, out, off) { var len = pc2table.length >>> 1; for (var i = 0; i < len; i++) { outL <<= 1; - outL |= inL >>> pc2table[i] & 0x1; + outL |= (inL >>> pc2table[i]) & 0x1; } for (var i = len; i < pc2table.length; i++) { outR <<= 1; - outR |= inR >>> pc2table[i] & 0x1; + outR |= (inR >>> pc2table[i]) & 0x1; } out[off + 0] = outL >>> 0; @@ -137366,34 +144776,74 @@ exports.expand = function expand(r, out, off) { var outL = 0; var outR = 0; - outL = (r & 1) << 5 | r >>> 27; + outL = ((r & 1) << 5) | (r >>> 27); for (var i = 23; i >= 15; i -= 4) { outL <<= 6; - outL |= r >>> i & 0x3f; + outL |= (r >>> i) & 0x3f; } for (var i = 11; i >= 3; i -= 4) { - outR |= r >>> i & 0x3f; + outR |= (r >>> i) & 0x3f; outR <<= 6; } - outR |= (r & 0x1f) << 1 | r >>> 31; + 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]; +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 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 b = (inR >>> (18 - i * 6)) & 0x3f; var sb = sTable[4 * 0x40 + i * 0x40 + b]; out <<= 4; @@ -137402,30 +144852,32 @@ exports.substitute = function substitute(inL, inR) { 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]; +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; + out |= (num >>> permuteTable[i]) & 0x1; } return out >>> 0; }; exports.padSplit = function padSplit(num, size, group) { var str = num.toString(2); - while (str.length < size) { + while (str.length < size) str = '0' + str; - }var out = []; - for (var i = 0; i < size; i += group) { + + var out = []; + for (var i = 0; i < size; i += group) out.push(str.slice(i, i + group)); - }return out.join(' '); + return out.join(' '); }; -},{}],834:[function(require,module,exports){ -'use strict'; - +},{}],848:[function(require,module,exports){ var detectBrowser = require('./lib/detectBrowser'); var agent; @@ -137436,114 +144888,155 @@ if (typeof navigator !== 'undefined' && navigator) { module.exports = detectBrowser(agent); -},{"./lib/detectBrowser":835}],835:[function(require,module,exports){ -'use strict'; - +},{"./lib/detectBrowser":849}],849:[function(require,module,exports){ 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]); - } + 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(); + return { + name: rule[0], + version: version.join('.'), + os: detectOS(userAgentString) + }; + } + }).filter(Boolean).shift(); }; -},{"./detectOS.js":836}],836:[function(require,module,exports){ -'use strict'; - +},{"./detectOS.js":850}],850:[function(require,module,exports){ 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 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)) { @@ -137554,58 +145047,54 @@ module.exports = function detectOS(userAgentString) { return detected && detected[0] ? detected[0].name : null; }; -},{}],837:[function(require,module,exports){ +},{}],851:[function(require,module,exports){ (function (Buffer){ -'use strict'; +var generatePrime = require('./lib/generatePrime') +var primes = require('./lib/primes.json') -var generatePrime = require('./lib/generatePrime'); -var primes = require('./lib/primes.json'); +var DH = require('./lib/dh') -var DH = require('./lib/dh'); +function getDiffieHellman (mod) { + var prime = new Buffer(primes[mod].prime, 'hex') + var gen = new Buffer(primes[mod].gen, 'hex') -function getDiffieHellman(mod) { - var prime = new Buffer(primes[mod].prime, 'hex'); - var gen = new Buffer(primes[mod].gen, 'hex'); - - return new DH(prime, gen); + return new DH(prime, gen) } var ENCODINGS = { 'binary': true, 'hex': true, 'base64': true -}; +} -function createDiffieHellman(prime, enc, generator, genc) { +function createDiffieHellman (prime, enc, generator, genc) { if (Buffer.isBuffer(enc) || ENCODINGS[enc] === undefined) { - return createDiffieHellman(prime, 'binary', enc, generator); + return createDiffieHellman(prime, 'binary', enc, generator) } - enc = enc || 'binary'; - genc = genc || 'binary'; - generator = generator || new Buffer([2]); + enc = enc || 'binary' + genc = genc || 'binary' + generator = generator || new Buffer([2]) if (!Buffer.isBuffer(generator)) { - generator = new Buffer(generator, genc); + generator = new Buffer(generator, genc) } if (typeof prime === 'number') { - return new DH(generatePrime(prime, generator), generator, true); + return new DH(generatePrime(prime, generator), generator, true) } if (!Buffer.isBuffer(prime)) { - prime = new Buffer(prime, enc); + prime = new Buffer(prime, enc) } - return new DH(prime, generator, true); + return new DH(prime, generator, true) } -exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman; -exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman; +exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman +exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman }).call(this,require("buffer").Buffer) -},{"./lib/dh":838,"./lib/generatePrime":839,"./lib/primes.json":840,"buffer":401}],838:[function(require,module,exports){ +},{"./lib/dh":852,"./lib/generatePrime":853,"./lib/primes.json":854,"buffer":415}],852:[function(require,module,exports){ (function (Buffer){ -'use strict'; - var BN = require('bn.js'); var MillerRabin = require('miller-rabin'); var millerRabin = new MillerRabin(); @@ -137645,7 +145134,10 @@ function checkPrime(prime, generator) { } var error = 0; - if (prime.isEven() || !primes.simpleSieve || !primes.fermatTest(prime) || !millerRabin.test(prime)) { + if (prime.isEven() || + !primes.simpleSieve || + !primes.fermatTest(prime) || + !millerRabin.test(prime)) { //not a prime so +1 error += 1; @@ -137704,7 +145196,7 @@ function DH(prime, generator, malleable) { } Object.defineProperty(DH.prototype, 'verifyError', { enumerable: true, - get: function get() { + get: function () { if (typeof this._primeCode !== 'number') { this._primeCode = checkPrime(this.__prime, this.__gen); } @@ -137769,9 +145261,7 @@ function formatReturnValue(bn, enc) { } }).call(this,require("buffer").Buffer) -},{"./generatePrime":839,"bn.js":367,"buffer":401,"miller-rabin":897,"randombytes":918}],839:[function(require,module,exports){ -'use strict'; - +},{"./generatePrime":853,"bn.js":381,"buffer":415,"miller-rabin":911,"randombytes":932}],853:[function(require,module,exports){ var randomBytes = require('randombytes'); module.exports = findPrime; findPrime.simpleSieve = simpleSieve; @@ -137794,16 +145284,20 @@ var TWELVE = new BN(12); var primes = null; function _getPrimes() { - if (primes !== null) return primes; + 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; + 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; } @@ -137814,7 +145308,7 @@ function _getPrimes() { function simpleSieve(p) { var primes = _getPrimes(); - for (var i = 0; i < primes.length; i++) { + for (var i = 0; i < primes.length; i++) if (p.modn(primes[i]) === 0) { if (p.cmpn(primes[i]) === 0) { return true; @@ -137822,7 +145316,8 @@ function simpleSieve(p) { return false; } } - }return true; + + return true; } function fermatTest(p) { @@ -137864,13 +145359,16 @@ function findPrime(bits, gen) { } } n2 = num.shrn(1); - if (simpleSieve(n2) && simpleSieve(num) && fermatTest(n2) && fermatTest(num) && millerRabin.test(n2) && millerRabin.test(num)) { + if (simpleSieve(n2) && simpleSieve(num) && + fermatTest(n2) && fermatTest(num) && + millerRabin.test(n2) && millerRabin.test(num)) { return num; } } + } -},{"bn.js":367,"miller-rabin":897,"randombytes":918}],840:[function(require,module,exports){ +},{"bn.js":381,"miller-rabin":911,"randombytes":932}],854:[function(require,module,exports){ module.exports={ "modp1": { "gen": "02", @@ -137905,37 +145403,37 @@ module.exports={ "prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff" } } -},{}],841:[function(require,module,exports){ +},{}],855:[function(require,module,exports){ arguments[4][196][0].apply(exports,arguments) -},{"../package.json":856,"./elliptic/curve":844,"./elliptic/curves":847,"./elliptic/ec":848,"./elliptic/eddsa":851,"./elliptic/utils":855,"brorand":368,"dup":196}],842:[function(require,module,exports){ +},{"../package.json":870,"./elliptic/curve":858,"./elliptic/curves":861,"./elliptic/ec":862,"./elliptic/eddsa":865,"./elliptic/utils":869,"brorand":382,"dup":196}],856:[function(require,module,exports){ arguments[4][197][0].apply(exports,arguments) -},{"../../elliptic":841,"bn.js":367,"dup":197}],843:[function(require,module,exports){ +},{"../../elliptic":855,"bn.js":381,"dup":197}],857:[function(require,module,exports){ arguments[4][198][0].apply(exports,arguments) -},{"../../elliptic":841,"../curve":844,"bn.js":367,"dup":198,"inherits":882}],844:[function(require,module,exports){ +},{"../../elliptic":855,"../curve":858,"bn.js":381,"dup":198,"inherits":896}],858:[function(require,module,exports){ arguments[4][199][0].apply(exports,arguments) -},{"./base":842,"./edwards":843,"./mont":845,"./short":846,"dup":199}],845:[function(require,module,exports){ +},{"./base":856,"./edwards":857,"./mont":859,"./short":860,"dup":199}],859:[function(require,module,exports){ arguments[4][200][0].apply(exports,arguments) -},{"../../elliptic":841,"../curve":844,"bn.js":367,"dup":200,"inherits":882}],846:[function(require,module,exports){ +},{"../../elliptic":855,"../curve":858,"bn.js":381,"dup":200,"inherits":896}],860:[function(require,module,exports){ arguments[4][201][0].apply(exports,arguments) -},{"../../elliptic":841,"../curve":844,"bn.js":367,"dup":201,"inherits":882}],847:[function(require,module,exports){ +},{"../../elliptic":855,"../curve":858,"bn.js":381,"dup":201,"inherits":896}],861:[function(require,module,exports){ arguments[4][202][0].apply(exports,arguments) -},{"../elliptic":841,"./precomputed/secp256k1":854,"dup":202,"hash.js":864}],848:[function(require,module,exports){ +},{"../elliptic":855,"./precomputed/secp256k1":868,"dup":202,"hash.js":878}],862:[function(require,module,exports){ arguments[4][203][0].apply(exports,arguments) -},{"../../elliptic":841,"./key":849,"./signature":850,"bn.js":367,"dup":203,"hmac-drbg":877}],849:[function(require,module,exports){ +},{"../../elliptic":855,"./key":863,"./signature":864,"bn.js":381,"dup":203,"hmac-drbg":891}],863:[function(require,module,exports){ arguments[4][204][0].apply(exports,arguments) -},{"../../elliptic":841,"bn.js":367,"dup":204}],850:[function(require,module,exports){ +},{"../../elliptic":855,"bn.js":381,"dup":204}],864:[function(require,module,exports){ arguments[4][205][0].apply(exports,arguments) -},{"../../elliptic":841,"bn.js":367,"dup":205}],851:[function(require,module,exports){ +},{"../../elliptic":855,"bn.js":381,"dup":205}],865:[function(require,module,exports){ arguments[4][206][0].apply(exports,arguments) -},{"../../elliptic":841,"./key":852,"./signature":853,"dup":206,"hash.js":864}],852:[function(require,module,exports){ +},{"../../elliptic":855,"./key":866,"./signature":867,"dup":206,"hash.js":878}],866:[function(require,module,exports){ arguments[4][207][0].apply(exports,arguments) -},{"../../elliptic":841,"dup":207}],853:[function(require,module,exports){ +},{"../../elliptic":855,"dup":207}],867:[function(require,module,exports){ arguments[4][208][0].apply(exports,arguments) -},{"../../elliptic":841,"bn.js":367,"dup":208}],854:[function(require,module,exports){ +},{"../../elliptic":855,"bn.js":381,"dup":208}],868:[function(require,module,exports){ arguments[4][209][0].apply(exports,arguments) -},{"dup":209}],855:[function(require,module,exports){ +},{"dup":209}],869:[function(require,module,exports){ arguments[4][210][0].apply(exports,arguments) -},{"bn.js":367,"dup":210,"minimalistic-assert":898,"minimalistic-crypto-utils":899}],856:[function(require,module,exports){ +},{"bn.js":381,"dup":210,"minimalistic-assert":912,"minimalistic-crypto-utils":913}],870:[function(require,module,exports){ module.exports={ "_from": "elliptic@^6.0.0", "_id": "elliptic@6.4.1", @@ -138025,7 +145523,7 @@ module.exports={ "version": "6.4.1" } -},{}],857:[function(require,module,exports){ +},{}],871:[function(require,module,exports){ module.exports={ "genesisGasLimit": { "v": 5000, @@ -138262,15 +145760,11 @@ module.exports={ } } -},{}],858:[function(require,module,exports){ +},{}],872:[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"); - } -} +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'); @@ -138407,6 +145901,7 @@ var Transaction = function () { * @return {Boolean} */ + Transaction.prototype.toCreationAddress = function toCreationAddress() { return this.to.toString('hex') === ''; }; @@ -138417,6 +145912,7 @@ var Transaction = function () { * @return {Buffer} */ + Transaction.prototype.hash = function hash(includeSignature) { if (includeSignature === undefined) includeSignature = true; @@ -138450,6 +145946,7 @@ var Transaction = function () { * @return {Buffer} */ + Transaction.prototype.getChainId = function getChainId() { return this._chainId; }; @@ -138459,6 +145956,7 @@ var Transaction = function () { * @return {Buffer} */ + Transaction.prototype.getSenderAddress = function getSenderAddress() { if (this._from) { return this._from; @@ -138473,6 +145971,7 @@ var Transaction = function () { * @return {Buffer} */ + Transaction.prototype.getSenderPublicKey = function getSenderPublicKey() { if (!this._senderPubKey || !this._senderPubKey.length) { if (!this.verifySignature()) throw new Error('Invalid Signature'); @@ -138485,6 +145984,7 @@ var Transaction = function () { * @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. @@ -138510,6 +146010,7 @@ var Transaction = function () { * @param {Buffer} privateKey */ + Transaction.prototype.sign = function sign(privateKey) { var msgHash = this.hash(false); var sig = ethUtil.ecsign(msgHash, privateKey); @@ -138524,6 +146025,7 @@ var Transaction = function () { * @return {BN} */ + Transaction.prototype.getDataFee = function getDataFee() { var data = this.raw[5]; var cost = new BN(0); @@ -138538,6 +146040,7 @@ var Transaction = function () { * @return {BN} */ + Transaction.prototype.getBaseFee = function getBaseFee() { var fee = this.getDataFee().iaddn(fees.txGas.v); if (this._homestead && this.toCreationAddress()) { @@ -138551,6 +146054,7 @@ var Transaction = function () { * @return {BN} */ + Transaction.prototype.getUpfrontCost = function getUpfrontCost() { return new BN(this.gasLimit).imul(new BN(this.gasPrice)).iadd(new BN(this.value)); }; @@ -138561,6 +146065,7 @@ var Transaction = function () { * @return {Boolean|String} */ + Transaction.prototype.validate = function validate(stringError) { var errors = []; if (!this.verifySignature()) { @@ -138582,17 +146087,12 @@ var Transaction = function () { }(); module.exports = Transaction; - }).call(this,require("buffer").Buffer) -},{"buffer":401,"ethereum-common/params.json":857,"ethereumjs-util":859}],859:[function(require,module,exports){ +},{"buffer":415,"ethereum-common/params.json":871,"ethereumjs-util":873}],873:[function(require,module,exports){ arguments[4][226][0].apply(exports,arguments) -},{"assert":335,"bn.js":367,"create-hash":823,"dup":226,"ethjs-util":860,"keccak":887,"rlp":936,"safe-buffer":937,"secp256k1":939}],860:[function(require,module,exports){ +},{"assert":349,"bn.js":381,"create-hash":837,"dup":226,"ethjs-util":874,"keccak":901,"rlp":950,"safe-buffer":951,"secp256k1":953}],874:[function(require,module,exports){ arguments[4][227][0].apply(exports,arguments) -},{"buffer":401,"dup":227,"is-hex-prefixed":884,"strip-hex-prefix":957}],861:[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; }; - +},{"buffer":415,"dup":227,"is-hex-prefixed":898,"strip-hex-prefix":971}],875:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -138632,20 +146132,23 @@ 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'); +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) { +EventEmitter.prototype.emit = function(type) { var er, handler, len, args, i, listeners; - if (!this._events) this._events = {}; + 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) { + if (!this._events.error || + (isObject(this._events.error) && !this._events.error.length)) { er = arguments[1]; if (er instanceof Error) { throw er; // Unhandled 'error' event @@ -138660,7 +146163,8 @@ EventEmitter.prototype.emit = function (type) { handler = this._events[type]; - if (isUndefined(handler)) return false; + if (isUndefined(handler)) + return false; if (isFunction(handler)) { switch (arguments.length) { @@ -138683,30 +146187,36 @@ EventEmitter.prototype.emit = function (type) { args = Array.prototype.slice.call(arguments, 1); listeners = handler.slice(); len = listeners.length; - for (i = 0; i < len; i++) { + for (i = 0; i < len; i++) listeners[i].apply(this, args); - } } return true; }; -EventEmitter.prototype.addListener = function (type, listener) { +EventEmitter.prototype.addListener = function(type, listener) { var m; - if (!isFunction(listener)) throw TypeError('listener must be a function'); + if (!isFunction(listener)) + throw TypeError('listener must be a function'); - if (!this._events) this._events = {}; + 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.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])) + 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 + this._events[type].push(listener); + else // Adding the second element, need to change to array. this._events[type] = [this._events[type], listener]; @@ -138720,7 +146230,10 @@ EventEmitter.prototype.addListener = function (type, listener) { 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); + 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(); @@ -138733,8 +146246,9 @@ EventEmitter.prototype.addListener = function (type, listener) { EventEmitter.prototype.on = EventEmitter.prototype.addListener; -EventEmitter.prototype.once = function (type, listener) { - if (!isFunction(listener)) throw TypeError('listener must be a function'); +EventEmitter.prototype.once = function(type, listener) { + if (!isFunction(listener)) + throw TypeError('listener must be a function'); var fired = false; @@ -138754,29 +146268,36 @@ EventEmitter.prototype.once = function (type, listener) { }; // emits a 'removeListener' event iff the listener was removed -EventEmitter.prototype.removeListener = function (type, listener) { +EventEmitter.prototype.removeListener = function(type, listener) { var list, position, length, i; - if (!isFunction(listener)) throw TypeError('listener must be a function'); + if (!isFunction(listener)) + throw TypeError('listener must be a function'); - if (!this._events || !this._events[type]) return this; + 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) { + if (list === listener || + (isFunction(list.listener) && list.listener === listener)) { delete this._events[type]; - if (this._events.removeListener) this.emit('removeListener', type, listener); + 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) { + if (list[i] === listener || + (list[i].listener && list[i].listener === listener)) { position = i; break; } } - if (position < 0) return this; + if (position < 0) + return this; if (list.length === 1) { list.length = 0; @@ -138785,20 +146306,25 @@ EventEmitter.prototype.removeListener = function (type, listener) { list.splice(position, 1); } - if (this._events.removeListener) this.emit('removeListener', type, listener); + if (this._events.removeListener) + this.emit('removeListener', type, listener); } return this; }; -EventEmitter.prototype.removeAllListeners = function (type) { +EventEmitter.prototype.removeAllListeners = function(type) { var key, listeners; - if (!this._events) return this; + 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]; + if (arguments.length === 0) + this._events = {}; + else if (this._events[type]) + delete this._events[type]; return this; } @@ -138819,31 +146345,38 @@ EventEmitter.prototype.removeAllListeners = function (type) { this.removeListener(type, listeners); } else if (listeners) { // LIFO order - while (listeners.length) { + while (listeners.length) this.removeListener(type, listeners[listeners.length - 1]); - } } delete this._events[type]; return this; }; -EventEmitter.prototype.listeners = function (type) { +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(); + 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) { +EventEmitter.prototype.listenerCount = function(type) { if (this._events) { var evlistener = this._events[type]; - if (isFunction(evlistener)) return 1;else if (evlistener) return evlistener.length; + if (isFunction(evlistener)) + return 1; + else if (evlistener) + return evlistener.length; } return 0; }; -EventEmitter.listenerCount = function (emitter, type) { +EventEmitter.listenerCount = function(emitter, type) { return emitter.listenerCount(type); }; @@ -138856,336 +146389,320 @@ function isNumber(arg) { } function isObject(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null; + return typeof arg === 'object' && arg !== null; } function isUndefined(arg) { return arg === void 0; } -},{}],862:[function(require,module,exports){ -'use strict'; - -var Buffer = require('safe-buffer').Buffer; -var MD5 = require('md5.js'); +},{}],876:[function(require,module,exports){ +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'); +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'); + 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); + 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 hash = new MD5() + hash.update(tmp) + hash.update(password) + if (salt) hash.update(salt) + tmp = hash.digest() - var used = 0; + 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; + 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; + 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 }; + tmp.fill(0) + return { key: key, iv: iv } } -module.exports = EVP_BytesToKey; +module.exports = EVP_BytesToKey -},{"md5.js":896,"safe-buffer":937}],863:[function(require,module,exports){ +},{"md5.js":910,"safe-buffer":951}],877:[function(require,module,exports){ arguments[4][232][0].apply(exports,arguments) -},{"dup":232,"inherits":882,"safe-buffer":937,"stream":954}],864:[function(require,module,exports){ +},{"dup":232,"inherits":896,"safe-buffer":951,"stream":968}],878:[function(require,module,exports){ arguments[4][233][0].apply(exports,arguments) -},{"./hash/common":865,"./hash/hmac":866,"./hash/ripemd":867,"./hash/sha":868,"./hash/utils":875,"dup":233}],865:[function(require,module,exports){ +},{"./hash/common":879,"./hash/hmac":880,"./hash/ripemd":881,"./hash/sha":882,"./hash/utils":889,"dup":233}],879:[function(require,module,exports){ arguments[4][234][0].apply(exports,arguments) -},{"./utils":875,"dup":234,"minimalistic-assert":898}],866:[function(require,module,exports){ +},{"./utils":889,"dup":234,"minimalistic-assert":912}],880:[function(require,module,exports){ arguments[4][235][0].apply(exports,arguments) -},{"./utils":875,"dup":235,"minimalistic-assert":898}],867:[function(require,module,exports){ +},{"./utils":889,"dup":235,"minimalistic-assert":912}],881:[function(require,module,exports){ arguments[4][236][0].apply(exports,arguments) -},{"./common":865,"./utils":875,"dup":236}],868:[function(require,module,exports){ +},{"./common":879,"./utils":889,"dup":236}],882:[function(require,module,exports){ arguments[4][237][0].apply(exports,arguments) -},{"./sha/1":869,"./sha/224":870,"./sha/256":871,"./sha/384":872,"./sha/512":873,"dup":237}],869:[function(require,module,exports){ +},{"./sha/1":883,"./sha/224":884,"./sha/256":885,"./sha/384":886,"./sha/512":887,"dup":237}],883:[function(require,module,exports){ arguments[4][238][0].apply(exports,arguments) -},{"../common":865,"../utils":875,"./common":874,"dup":238}],870:[function(require,module,exports){ +},{"../common":879,"../utils":889,"./common":888,"dup":238}],884:[function(require,module,exports){ arguments[4][239][0].apply(exports,arguments) -},{"../utils":875,"./256":871,"dup":239}],871:[function(require,module,exports){ +},{"../utils":889,"./256":885,"dup":239}],885:[function(require,module,exports){ arguments[4][240][0].apply(exports,arguments) -},{"../common":865,"../utils":875,"./common":874,"dup":240,"minimalistic-assert":898}],872:[function(require,module,exports){ +},{"../common":879,"../utils":889,"./common":888,"dup":240,"minimalistic-assert":912}],886:[function(require,module,exports){ arguments[4][241][0].apply(exports,arguments) -},{"../utils":875,"./512":873,"dup":241}],873:[function(require,module,exports){ +},{"../utils":889,"./512":887,"dup":241}],887:[function(require,module,exports){ arguments[4][242][0].apply(exports,arguments) -},{"../common":865,"../utils":875,"dup":242,"minimalistic-assert":898}],874:[function(require,module,exports){ +},{"../common":879,"../utils":889,"dup":242,"minimalistic-assert":912}],888:[function(require,module,exports){ arguments[4][243][0].apply(exports,arguments) -},{"../utils":875,"dup":243}],875:[function(require,module,exports){ +},{"../utils":889,"dup":243}],889:[function(require,module,exports){ arguments[4][244][0].apply(exports,arguments) -},{"dup":244,"inherits":882,"minimalistic-assert":898}],876:[function(require,module,exports){ +},{"dup":244,"inherits":896,"minimalistic-assert":912}],890:[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 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; +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 }; +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; +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, 'fingerprint', { get: function () { return this._fingerprint } }) +Object.defineProperty(HDKey.prototype, 'identifier', { get: function () { return this._identifier } }) +Object.defineProperty(HDKey.prototype, 'pubKeyHash', { get: function () { return this.identifier } }) Object.defineProperty(HDKey.prototype, 'privateKey', { - get: function get() { - return this._privateKey; + get: function () { + 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'); + set: function (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); + 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; + get: function () { + 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'); + set: function (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; + 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; + get: function () { + 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)); + get: function () { + 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; + return this } - var entries = path.split('/'); - var hdkey = this; + var entries = path.split('/') + var hdkey = this entries.forEach(function (c, i) { if (i === 0) { - assert(c, 'm', 'Invalid path'); - return; + 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; + 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); - }); + hdkey = hdkey.deriveChild(childIndex) + }) - return hdkey; -}; + return hdkey +} HDKey.prototype.deriveChild = function (index) { - var isHardened = index >= HARDENED_OFFSET; - var indexBuffer = new Buffer(4); - indexBuffer.writeUInt32BE(index, 0); + var isHardened = index >= HARDENED_OFFSET + var indexBuffer = new Buffer(4) + indexBuffer.writeUInt32BE(index, 0) - var data; + var data - if (isHardened) { - // Hardened child - assert(this.privateKey, 'Could not derive hardened child key'); + 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]); + 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 = Buffer.concat([pk, indexBuffer]) + } else { // Normal child // data = serP(point(kpar)) || ser32(index) // = serP(Kpar) || ser32(index) - data = Buffer.concat([this.publicKey, indexBuffer]); + 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 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); + 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); + 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); + return this.derive(index + 1) } - // Public parent key -> public child key + // Public parent key -> public child key } else { // Ki = point(parse256(IL)) + Kpar // = G*IL + Kpar try { - hd.publicKey = secp256k1.publicKeyTweakAdd(this.publicKey, IL, true); + 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); + return this.derive(index + 1, isHardened) } } - hd.chainCode = IR; - hd.depth = this.depth + 1; - hd.parentFingerprint = this.fingerprint; // .readUInt32BE(0) - hd.index = index; + hd.chainCode = IR + hd.depth = this.depth + 1 + hd.parentFingerprint = this.fingerprint// .readUInt32BE(0) + hd.index = index - return hd; -}; + 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 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; + var hdkey = new HDKey(versions) + hdkey.chainCode = IR + hdkey.privateKey = IL - return hdkey; -}; + 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); + versions = versions || BITCOIN_VERSIONS + var hdkey = new HDKey(versions) - var keyBuffer = cs.decode(base58key); + 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'); + 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); + 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 + 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; + assert(version === versions.public, 'Version mismatch: version does not match public') + hdkey.publicKey = key } - return hdkey; -}; + return hdkey +} HDKey.fromJSON = function (obj) { - return HDKey.fromExtendedKey(obj.xpriv); -}; + return HDKey.fromExtendedKey(obj.xpriv) +} -function serialize(hdkey, version, key) { +function serialize (hdkey, version, key) { // => version(4) || depth(1) || fingerprint(4) || index(4) || chain(32) || key(33) - var buffer = new Buffer(LEN); + var buffer = new Buffer(LEN) - buffer.writeUInt32BE(version, 0); - buffer.writeUInt8(hdkey.depth, 4); + 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); + 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); + hdkey.chainCode.copy(buffer, 13) + key.copy(buffer, 45) - return buffer; + return buffer } -function hash160(buf) { - var sha = crypto.createHash('sha256').update(buf).digest(); - return crypto.createHash('rmd160').update(sha).digest(); +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; +HDKey.HARDENED_OFFSET = HARDENED_OFFSET +module.exports = HDKey }).call(this,require("buffer").Buffer) -},{"assert":335,"buffer":401,"coinstring":403,"crypto":827,"secp256k1":939}],877:[function(require,module,exports){ +},{"assert":349,"buffer":415,"coinstring":417,"crypto":841,"secp256k1":953}],891:[function(require,module,exports){ arguments[4][245][0].apply(exports,arguments) -},{"dup":245,"hash.js":864,"minimalistic-assert":898,"minimalistic-crypto-utils":899}],878:[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; }; - +},{"dup":245,"hash.js":878,"minimalistic-assert":912,"minimalistic-crypto-utils":913}],892:[function(require,module,exports){ /* This file is generated from the Unicode IDNA table, using the build-unicode-tables.py script. Please edit that script instead of this file. */ @@ -139193,286 +146710,968 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /* 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') { + define([], function () { return factory(); }); + } else if (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 = "صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(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点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧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]; +}(this, 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 = "صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(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点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧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 - }; -}); - -},{}],879:[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; }; +return { + mapStr: mappingStr, + mapChar: mapChar +}; +})); +},{}],893:[function(require,module,exports){ /* 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') { + } else if (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; - } - } +}(this, function (punycode, idna_map) { + +function mapLabel(label, useStd3ASCII, transitional) { + var mapped = []; + for (var ch of label) { + 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); + } + } + + 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; + }); - 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); + return labels.join("."); +} - // 4. The label must not contain a U+002E ( . ) FULL STOP. - if (label.includes('.')) throw new Error("Failed to validate " + label); +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); - if (mapLabel(label, useStd3ASCII, transitional) != label) 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); - // 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); - } + // 4. The label must not contain a U+002E ( . ) FULL STOP. + if (label.includes('.')) + throw new Error("Failed to validate " + label); - 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; + if (mapLabel(label, useStd3ASCII, transitional) != label) + throw new Error("Failed to validate " + label); - try { - for (var _iterator2 = asciiLabels[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var label = _step2.value; + // 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); +} - 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; - } - } - } +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); + } + for (var label of asciiLabels) { + if (label.length < 1 || label.length > 63) + throw new Error("DNS label has wrong length: " + label); } - return asciiString; - } - - function toUnicode(domain, options) { - if (options === undefined) options = {}; - var useStd3ASCII = 'useStd3ASCII' in options ? options.useStd3ASCII : false; - return process(domain, false, useStd3ASCII); } + return asciiString; +} - return { - toUnicode: toUnicode, - toAscii: toAscii - }; -}); +function toUnicode(domain, options) { + if (options === undefined) + options = { }; + var useStd3ASCII = 'useStd3ASCII' in options ? options.useStd3ASCII : false; + return process(domain, false, useStd3ASCII); +} -},{"./idna-map":878,"punycode":397}],880:[function(require,module,exports){ -"use strict"; +return { + toUnicode: toUnicode, + toAscii: toAscii, +}; +})); +},{"./idna-map":892,"punycode":411}],894:[function(require,module,exports){ 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) {} + 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; + e = 1 - eBias } else if (e === eMax) { - return m ? NaN : (s ? -1 : 1) * Infinity; + return m ? NaN : ((s ? -1 : 1) * Infinity) } else { - m = m + Math.pow(2, mLen); - e = e - eBias; + m = m + Math.pow(2, mLen) + e = e - eBias } - return (s ? -1 : 1) * m * Math.pow(2, e - mLen); -}; + 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; + 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); + value = Math.abs(value) if (isNaN(value) || value === Infinity) { - m = isNaN(value) ? 1 : 0; - e = eMax; + m = isNaN(value) ? 1 : 0 + e = eMax } else { - e = Math.floor(Math.log(value) / Math.LN2); + e = Math.floor(Math.log(value) / Math.LN2) if (value * (c = Math.pow(2, -e)) < 1) { - e--; - c *= 2; + e-- + c *= 2 } if (e + eBias >= 1) { - value += rt / c; + value += rt / c } else { - value += rt * Math.pow(2, 1 - eBias); + value += rt * Math.pow(2, 1 - eBias) } if (value * c >= 2) { - e++; - c /= 2; + e++ + c /= 2 } if (e + eBias >= eMax) { - m = 0; - e = eMax; + m = 0 + e = eMax } else if (e + eBias >= 1) { - m = (value * c - 1) * Math.pow(2, mLen); - e = e + eBias; + 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; + 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; + 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; -}; + buffer[offset + i - d] |= s * 128 +} -},{}],881:[function(require,module,exports){ +},{}],895:[function(require,module,exports){ arguments[4][246][0].apply(exports,arguments) -},{"dup":246}],882:[function(require,module,exports){ +},{"dup":246}],896:[function(require,module,exports){ arguments[4][247][0].apply(exports,arguments) -},{"dup":247}],883:[function(require,module,exports){ -'use strict'; - +},{"dup":247}],897:[function(require,module,exports){ /*! * Determine if an object is a Buffer * @@ -139483,23 +147682,23 @@ arguments[4][247][0].apply(exports,arguments) // 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); -}; + return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) +} -function isBuffer(obj) { - return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj); +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)); +function isSlowBuffer (obj) { + return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) } -},{}],884:[function(require,module,exports){ +},{}],898:[function(require,module,exports){ arguments[4][248][0].apply(exports,arguments) -},{"dup":248}],885:[function(require,module,exports){ +},{"dup":248}],899:[function(require,module,exports){ arguments[4][230][0].apply(exports,arguments) -},{"dup":230}],886:[function(require,module,exports){ +},{"dup":230}],900:[function(require,module,exports){ /* A JavaScript implementation of the SHA family of hashes, as defined in FIPS PUB 180-4 and FIPS PUB 202, as well as the corresponding @@ -139511,280 +147710,40 @@ arguments[4][230][0].apply(exports,arguments) Several functions taken from Paul Johnston */ -'use strict'; -(function (I) { - function w(c, a, d) { - var l = 0, - b = [], - g = 0, - f, - n, - k, - e, - h, - q, - y, - p, - m = !1, - t = [], - r = [], - u, - z = !1;d = d || {};f = d.encoding || "UTF8";u = d.numRounds || 1;if (u !== parseInt(u, 10) || 1 > u) throw Error("numRounds must a integer >= 1");if (0 === c.lastIndexOf("SHA-", 0)) { - if (q = function q(b, a) { - return A(b, a, c); - }, y = function y(b, a, l, f) { - var g, e;if ("SHA-224" === c || "SHA-256" === c) g = (a + 65 >>> 9 << 4) + 15, e = 16;else throw Error("Unexpected error in SHA-2 implementation");for (; b.length <= g;) { - b.push(0); - }b[a >>> 5] |= 128 << 24 - a % 32;a = a + l;b[g] = a & 4294967295; - b[g - 1] = a / 4294967296 | 0;l = b.length;for (a = 0; a < l; a += e) { - f = A(b.slice(a, a + e), f, c); - }if ("SHA-224" === c) b = [f[0], f[1], f[2], f[3], f[4], f[5], f[6]];else if ("SHA-256" === c) b = f;else throw Error("Unexpected error in SHA-2 implementation");return b; - }, p = function p(b) { - return b.slice(); - }, "SHA-224" === c) h = 512, e = 224;else if ("SHA-256" === c) h = 512, e = 256;else throw Error("Chosen SHA variant is not supported"); - } else throw Error("Chosen SHA variant is not supported");k = B(a, f);n = x(c);this.setHMACKey = function (b, a, g) { - var e;if (!0 === m) throw Error("HMAC key already set"); - if (!0 === z) throw Error("Cannot set HMAC key after calling update");f = (g || {}).encoding || "UTF8";a = B(a, f)(b);b = a.binLen;a = a.value;e = h >>> 3;g = e / 4 - 1;if (e < b / 8) { - for (a = y(a, b, 0, x(c)); a.length <= g;) { - a.push(0); - }a[g] &= 4294967040; - } else if (e > b / 8) { - for (; a.length <= g;) { - a.push(0); - }a[g] &= 4294967040; - }for (b = 0; b <= g; b += 1) { - t[b] = a[b] ^ 909522486, r[b] = a[b] ^ 1549556828; - }n = q(t, n);l = h;m = !0; - };this.update = function (a) { - var c, - f, - e, - d = 0, - p = h >>> 5;c = k(a, b, g);a = c.binLen;f = c.value;c = a >>> 5;for (e = 0; e < c; e += p) { - d + h <= a && (n = q(f.slice(e, e + p), n), d += h); - }l += d;b = f.slice(d >>> 5);g = a % h;z = !0; - };this.getHash = function (a, f) { - var d, h, k, q;if (!0 === m) throw Error("Cannot call getHash after setting HMAC key");k = C(f);switch (a) {case "HEX": - d = function d(a) { - return D(a, e, k); - };break;case "B64": - d = function d(a) { - return E(a, e, k); - };break;case "BYTES": - d = function d(a) { - return F(a, e); - };break;case "ARRAYBUFFER": - try { - h = new ArrayBuffer(0); - } catch (v) { - throw Error("ARRAYBUFFER not supported by this environment"); - }d = function d(a) { - return G(a, e); - };break;default: - throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER"); - }q = y(b.slice(), g, l, p(n));for (h = 1; h < u; h += 1) { - q = y(q, e, 0, x(c)); - }return d(q); - };this.getHMAC = function (a, f) { - var d, k, t, u;if (!1 === m) throw Error("Cannot call getHMAC without first setting HMAC key");t = C(f);switch (a) {case "HEX": - d = function d(a) { - return D(a, e, t); - };break;case "B64": - d = function d(a) { - return E(a, e, t); - };break;case "BYTES": - d = function d(a) { - return F(a, e); - };break;case "ARRAYBUFFER": - try { - d = new ArrayBuffer(0); - } catch (v) { - throw Error("ARRAYBUFFER not supported by this environment"); - }d = function d(a) { - return G(a, e); - };break;default: - throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER"); - }k = y(b.slice(), g, l, p(n));u = q(r, x(c));u = y(k, e, h, u);return d(u); - }; - }function m() {}function D(c, a, d) { - var l = "";a /= 8;var b, g;for (b = 0; b < a; b += 1) { - g = c[b >>> 2] >>> 8 * (3 + b % 4 * -1), l += "0123456789abcdef".charAt(g >>> 4 & 15) + "0123456789abcdef".charAt(g & 15); - }return d.outputUpper ? l.toUpperCase() : l; - }function E(c, a, d) { - var l = "", - b = a / 8, - g, - f, - n;for (g = 0; g < b; g += 3) { - for (f = g + 1 < b ? c[g + 1 >>> 2] : 0, n = g + 2 < b ? c[g + 2 >>> 2] : 0, n = (c[g >>> 2] >>> 8 * (3 + g % 4 * -1) & 255) << 16 | (f >>> 8 * (3 + (g + 1) % 4 * -1) & 255) << 8 | n >>> 8 * (3 + (g + 2) % 4 * -1) & 255, f = 0; 4 > f; f += 1) { - 8 * g + 6 * f <= a ? l += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n >>> 6 * (3 - f) & 63) : l += d.b64Pad; - } - }return l; - }function F(c, a) { - var d = "", - l = a / 8, - b, - g;for (b = 0; b < l; b += 1) { - g = c[b >>> 2] >>> 8 * (3 + b % 4 * -1) & 255, d += String.fromCharCode(g); - }return d; - }function G(c, a) { - var d = a / 8, - l, - b = new ArrayBuffer(d), - g;g = new Uint8Array(b);for (l = 0; l < d; l += 1) { - g[l] = c[l >>> 2] >>> 8 * (3 + l % 4 * -1) & 255; - }return b; - }function C(c) { - var a = { outputUpper: !1, b64Pad: "=", shakeLen: -1 };c = c || {};a.outputUpper = c.outputUpper || !1;!0 === c.hasOwnProperty("b64Pad") && (a.b64Pad = c.b64Pad);if ("boolean" !== typeof a.outputUpper) throw Error("Invalid outputUpper formatting option"); - if ("string" !== typeof a.b64Pad) throw Error("Invalid b64Pad formatting option");return a; - }function B(c, a) { - var d;switch (a) {case "UTF8":case "UTF16BE":case "UTF16LE": - break;default: - throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch (c) {case "HEX": - d = function d(a, b, c) { - var f = a.length, - d, - k, - e, - h, - q;if (0 !== f % 2) throw Error("String of HEX type must be in byte increments");b = b || [0];c = c || 0;q = c >>> 3;for (d = 0; d < f; d += 2) { - k = parseInt(a.substr(d, 2), 16);if (isNaN(k)) throw Error("String of HEX type contains invalid characters"); - h = (d >>> 1) + q;for (e = h >>> 2; b.length <= e;) { - b.push(0); - }b[e] |= k << 8 * (3 + h % 4 * -1); - }return { value: b, binLen: 4 * f + c }; - };break;case "TEXT": - d = function d(c, b, _d) { - var f, - n, - k = 0, - e, - h, - q, - m, - p, - r;b = b || [0];_d = _d || 0;q = _d >>> 3;if ("UTF8" === a) for (r = 3, e = 0; e < c.length; e += 1) { - for (f = c.charCodeAt(e), n = [], 128 > f ? n.push(f) : 2048 > f ? (n.push(192 | f >>> 6), n.push(128 | f & 63)) : 55296 > f || 57344 <= f ? n.push(224 | f >>> 12, 128 | f >>> 6 & 63, 128 | f & 63) : (e += 1, f = 65536 + ((f & 1023) << 10 | c.charCodeAt(e) & 1023), n.push(240 | f >>> 18, 128 | f >>> 12 & 63, 128 | f >>> 6 & 63, 128 | f & 63)), h = 0; h < n.length; h += 1) { - p = k + q;for (m = p >>> 2; b.length <= m;) { - b.push(0); - }b[m] |= n[h] << 8 * (r + p % 4 * -1);k += 1; - } - } else if ("UTF16BE" === a || "UTF16LE" === a) for (r = 2, n = "UTF16LE" === a && !0 || "UTF16LE" !== a && !1, e = 0; e < c.length; e += 1) { - f = c.charCodeAt(e);!0 === n && (h = f & 255, f = h << 8 | f >>> 8);p = k + q;for (m = p >>> 2; b.length <= m;) { - b.push(0); - }b[m] |= f << 8 * (r + p % 4 * -1);k += 2; - }return { value: b, binLen: 8 * k + _d }; - };break;case "B64": - d = function d(a, b, c) { - var f = 0, - d, - k, - e, - h, - q, - m, - p;if (-1 === a.search(/^[a-zA-Z0-9=+\/]+$/)) throw Error("Invalid character in base-64 string");k = a.indexOf("=");a = a.replace(/\=/g, "");if (-1 !== k && k < a.length) throw Error("Invalid '=' found in base-64 string");b = b || [0];c = c || 0;m = c >>> 3;for (k = 0; k < a.length; k += 4) { - q = a.substr(k, 4);for (e = h = 0; e < q.length; e += 1) { - d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(q[e]), h |= d << 18 - 6 * e; - }for (e = 0; e < q.length - 1; e += 1) { - p = f + m;for (d = p >>> 2; b.length <= d;) { - b.push(0); - }b[d] |= (h >>> 16 - 8 * e & 255) << 8 * (3 + p % 4 * -1);f += 1; - } - }return { value: b, binLen: 8 * f + c }; - };break;case "BYTES": - d = function d(a, b, c) { - var d, n, k, e, h;b = b || [0];c = c || 0;k = c >>> 3;for (n = 0; n < a.length; n += 1) { - d = a.charCodeAt(n), h = n + k, e = h >>> 2, b.length <= e && b.push(0), b[e] |= d << 8 * (3 + h % 4 * -1); - }return { value: b, binLen: 8 * a.length + c }; - };break;case "ARRAYBUFFER": - try { - d = new ArrayBuffer(0); - } catch (l) { - throw Error("ARRAYBUFFER not supported by this environment"); - }d = function d(a, b, c) { - var d, n, k, e, h;b = b || [0];c = c || 0;n = c >>> 3;h = new Uint8Array(a);for (d = 0; d < a.byteLength; d += 1) { - e = d + n, k = e >>> 2, b.length <= k && b.push(0), b[k] |= h[d] << 8 * (3 + e % 4 * -1); - }return { value: b, binLen: 8 * a.byteLength + c }; - };break;default: - throw Error("format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER"); - }return d; - }function r(c, a) { - return c >>> a | c << 32 - a; - }function J(c, a, d) { - return c & a ^ ~c & d; - }function K(c, a, d) { - return c & a ^ c & d ^ a & d; - }function L(c) { - return r(c, 2) ^ r(c, 13) ^ r(c, 22); - }function M(c) { - return r(c, 6) ^ r(c, 11) ^ r(c, 25); - }function N(c) { - return r(c, 7) ^ r(c, 18) ^ c >>> 3; - }function O(c) { - return r(c, 17) ^ r(c, 19) ^ c >>> 10; - }function P(c, a) { - var d = (c & 65535) + (a & 65535);return ((c >>> 16) + (a >>> 16) + (d >>> 16) & 65535) << 16 | d & 65535; - }function Q(c, a, d, l) { - var b = (c & 65535) + (a & 65535) + (d & 65535) + (l & 65535);return ((c >>> 16) + (a >>> 16) + (d >>> 16) + (l >>> 16) + (b >>> 16) & 65535) << 16 | b & 65535; - }function R(c, a, d, l, b) { - var g = (c & 65535) + (a & 65535) + (d & 65535) + (l & 65535) + (b & 65535);return ((c >>> 16) + (a >>> 16) + (d >>> 16) + (l >>> 16) + (b >>> 16) + (g >>> 16) & 65535) << 16 | g & 65535; - }function x(c) { - var a = [], - d;if (0 === c.lastIndexOf("SHA-", 0)) switch (a = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428], d = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], c) {case "SHA-224": - break;case "SHA-256": - a = d;break;case "SHA-384": - a = [new m(), new m(), new m(), new m(), new m(), new m(), new m(), new m()];break;case "SHA-512": - a = [new m(), new m(), new m(), new m(), new m(), new m(), new m(), new m()];break;default: - throw Error("Unknown SHA variant");} else throw Error("No SHA variants supported");return a; - }function A(c, a, d) { - var l, - b, - g, - f, - n, - k, - e, - h, - m, - r, - p, - w, - t, - x, - u, - z, - A, - B, - C, - D, - E, - F, - v = [], - G;if ("SHA-224" === d || "SHA-256" === d) r = 64, w = 1, F = Number, t = P, x = Q, u = R, z = N, A = O, B = L, C = M, E = K, D = J, G = H;else throw Error("Unexpected error in SHA-2 implementation");d = a[0];l = a[1];b = a[2];g = a[3];f = a[4];n = a[5];k = a[6];e = a[7];for (p = 0; p < r; p += 1) { - 16 > p ? (m = p * w, h = c.length <= m ? 0 : c[m], m = c.length <= m + 1 ? 0 : c[m + 1], v[p] = new F(h, m)) : v[p] = x(A(v[p - 2]), v[p - 7], z(v[p - 15]), v[p - 16]), h = u(e, C(f), D(f, n, k), G[p], v[p]), m = t(B(d), E(d, l, b)), e = k, k = n, n = f, f = t(g, h), g = b, b = l, l = d, d = t(h, m); - }a[0] = t(d, a[0]);a[1] = t(l, a[1]);a[2] = t(b, a[2]);a[3] = t(g, a[3]);a[4] = t(f, a[4]);a[5] = t(n, a[5]);a[6] = t(k, a[6]);a[7] = t(e, a[7]);return a; - }var H;H = [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];"function" === typeof define && define.amd ? define(function () { - return w; - }) : "undefined" !== typeof exports ? ("undefined" !== typeof module && module.exports && (module.exports = w), exports = w) : I.jsSHA = w; -})(undefined); +'use strict';(function(I){function w(c,a,d){var l=0,b=[],g=0,f,n,k,e,h,q,y,p,m=!1,t=[],r=[],u,z=!1;d=d||{};f=d.encoding||"UTF8";u=d.numRounds||1;if(u!==parseInt(u,10)||1>u)throw Error("numRounds must a integer >= 1");if(0===c.lastIndexOf("SHA-",0))if(q=function(b,a){return A(b,a,c)},y=function(b,a,l,f){var g,e;if("SHA-224"===c||"SHA-256"===c)g=(a+65>>>9<<4)+15,e=16;else throw Error("Unexpected error in SHA-2 implementation");for(;b.length<=g;)b.push(0);b[a>>>5]|=128<<24-a%32;a=a+l;b[g]=a&4294967295; +b[g-1]=a/4294967296|0;l=b.length;for(a=0;a>>3;g=e/4-1;if(eb/8){for(;a.length<=g;)a.push(0);a[g]&=4294967040}for(b=0;b<=g;b+=1)t[b]=a[b]^909522486,r[b]=a[b]^1549556828;n=q(t,n);l=h;m=!0};this.update=function(a){var c,f,e,d=0,p=h>>>5;c=k(a,b,g);a=c.binLen;f=c.value;c=a>>>5;for(e=0;e>> +5);g=a%h;z=!0};this.getHash=function(a,f){var d,h,k,q;if(!0===m)throw Error("Cannot call getHash after setting HMAC key");k=C(f);switch(a){case "HEX":d=function(a){return D(a,e,k)};break;case "B64":d=function(a){return E(a,e,k)};break;case "BYTES":d=function(a){return F(a,e)};break;case "ARRAYBUFFER":try{h=new ArrayBuffer(0)}catch(v){throw Error("ARRAYBUFFER not supported by this environment");}d=function(a){return G(a,e)};break;default:throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER"); +}q=y(b.slice(),g,l,p(n));for(h=1;h>>2]>>>8*(3+b%4*-1),l+="0123456789abcdef".charAt(g>>>4&15)+"0123456789abcdef".charAt(g&15);return d.outputUpper?l.toUpperCase():l}function E(c,a,d){var l="",b=a/8,g,f,n;for(g=0;g>>2]:0,n=g+2>>2]:0,n=(c[g>>>2]>>>8*(3+g%4*-1)&255)<<16|(f>>>8*(3+(g+1)%4*-1)&255)<<8|n>>>8*(3+(g+2)%4*-1)&255,f=0;4>f;f+=1)8*g+6*f<=a?l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>> +6*(3-f)&63):l+=d.b64Pad;return l}function F(c,a){var d="",l=a/8,b,g;for(b=0;b>>2]>>>8*(3+b%4*-1)&255,d+=String.fromCharCode(g);return d}function G(c,a){var d=a/8,l,b=new ArrayBuffer(d),g;g=new Uint8Array(b);for(l=0;l>>2]>>>8*(3+l%4*-1)&255;return b}function C(c){var a={outputUpper:!1,b64Pad:"=",shakeLen:-1};c=c||{};a.outputUpper=c.outputUpper||!1;!0===c.hasOwnProperty("b64Pad")&&(a.b64Pad=c.b64Pad);if("boolean"!==typeof a.outputUpper)throw Error("Invalid outputUpper formatting option"); +if("string"!==typeof a.b64Pad)throw Error("Invalid b64Pad formatting option");return a}function B(c,a){var d;switch(a){case "UTF8":case "UTF16BE":case "UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch(c){case "HEX":d=function(a,b,c){var f=a.length,d,k,e,h,q;if(0!==f%2)throw Error("String of HEX type must be in byte increments");b=b||[0];c=c||0;q=c>>>3;for(d=0;d>>1)+q;for(e=h>>>2;b.length<=e;)b.push(0);b[e]|=k<<8*(3+h%4*-1)}return{value:b,binLen:4*f+c}};break;case "TEXT":d=function(c,b,d){var f,n,k=0,e,h,q,m,p,r;b=b||[0];d=d||0;q=d>>>3;if("UTF8"===a)for(r=3,e=0;ef?n.push(f):2048>f?(n.push(192|f>>>6),n.push(128|f&63)):55296>f||57344<=f?n.push(224|f>>>12,128|f>>>6&63,128|f&63):(e+=1,f=65536+((f&1023)<<10|c.charCodeAt(e)&1023),n.push(240|f>>>18,128|f>>>12&63,128|f>>>6&63,128|f&63)),h=0;h>>2;b.length<=m;)b.push(0);b[m]|=n[h]<<8*(r+p%4*-1);k+=1}else if("UTF16BE"===a||"UTF16LE"===a)for(r=2,n="UTF16LE"===a&&!0||"UTF16LE"!==a&&!1,e=0;e>>8);p=k+q;for(m=p>>>2;b.length<=m;)b.push(0);b[m]|=f<<8*(r+p%4*-1);k+=2}return{value:b,binLen:8*k+d}};break;case "B64":d=function(a,b,c){var f=0,d,k,e,h,q,m,p;if(-1===a.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");k=a.indexOf("=");a=a.replace(/\=/g, +"");if(-1!==k&&k 0 && a.charCodeAt(~-aLen) === b.charCodeAt(~-bLen)) { + while (aLen > 0 && (a.charCodeAt(~-aLen) === b.charCodeAt(~-bLen))) { aLen--; bLen--; } @@ -139831,7 +147790,7 @@ module.exports = function (a, b) { // don't increase distance at all var start = 0; - while (start < aLen && a.charCodeAt(start) === b.charCodeAt(start)) { + while (start < aLen && (a.charCodeAt(start) === b.charCodeAt(start))) { start++; } @@ -139869,793 +147828,863 @@ module.exports = function (a, b) { return ret; }; -},{}],894:[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, factory) { - if (typeof define == 'function' && _typeof(define.amd) == 'object' && define.amd) { - define(function () { +},{}],908:[function(require,module,exports){ +(function(root, factory){ + if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { + define(function(){ return factory(root); }); - } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) == 'object' && module && module.exports) { + } else if (typeof module == 'object' && module && module.exports) { module.exports = factory(root); } else { root.Levenshtein = factory(root); } -})(undefined, function (root) { +}(this, function(root){ - function forEach(array, fn) { - var i, length; - i = -1; - length = array.length; - while (++i < length) { - fn(array[i], i, array); - } + function forEach( array, fn ) { var i, length + i = -1 + length = array.length + while ( ++i < length ) + fn( array[ i ], i, array ) } - function map(array, fn) { - var result; - result = Array(array.length); - forEach(array, function (val, i, array) { - result[i] = fn(val, i, array); - }); - return result; + function map( array, fn ) { var result + result = Array( array.length ) + forEach( array, function ( val, i, array ) { + result[i] = fn( val, i, array ) + }) + return result } - function reduce(array, fn, accumulator) { - forEach(array, function (val, i, array) { - accumulator = fn(val, i, array); - }); - return accumulator; + function reduce( array, fn, accumulator ) { + forEach( array, function( val, i, array ) { + accumulator = fn( val, i, array ) + }) + return accumulator } // Levenshtein distance - function Levenshtein(str_m, str_n) { - var previous, current, matrix; + function Levenshtein( str_m, str_n ) { var previous, current, matrix // Constructor - matrix = this._matrix = []; + matrix = this._matrix = [] // Sanity checks - if (str_m == str_n) return this.distance = 0;else if (str_m == '') return this.distance = str_n.length;else if (str_n == '') return this.distance = str_m.length;else { + if ( str_m == str_n ) + return this.distance = 0 + else if ( str_m == '' ) + return this.distance = str_n.length + else if ( str_n == '' ) + return this.distance = str_m.length + else { // Danger Will Robinson - previous = [0]; - forEach(str_m, function (v, i) { - i++, previous[i] = i; - }); - - matrix[0] = previous; - forEach(str_n, function (n_val, n_idx) { - current = [++n_idx]; - forEach(str_m, function (m_val, m_idx) { - m_idx++; - if (str_m.charAt(m_idx - 1) == str_n.charAt(n_idx - 1)) current[m_idx] = previous[m_idx - 1];else current[m_idx] = Math.min(previous[m_idx] + 1 // Deletion - , current[m_idx - 1] + 1 // Insertion - , previous[m_idx - 1] + 1 // Subtraction - ); - }); - previous = current; - matrix[matrix.length] = previous; - }); + previous = [ 0 ] + forEach( str_m, function( v, i ) { i++, previous[ i ] = i } ) + + matrix[0] = previous + forEach( str_n, function( n_val, n_idx ) { + current = [ ++n_idx ] + forEach( str_m, function( m_val, m_idx ) { + m_idx++ + if ( str_m.charAt( m_idx - 1 ) == str_n.charAt( n_idx - 1 ) ) + current[ m_idx ] = previous[ m_idx - 1 ] + else + current[ m_idx ] = Math.min + ( previous[ m_idx ] + 1 // Deletion + , current[ m_idx - 1 ] + 1 // Insertion + , previous[ m_idx - 1 ] + 1 // Subtraction + ) + }) + previous = current + matrix[ matrix.length ] = previous + }) - return this.distance = current[current.length - 1]; + return this.distance = current[ current.length - 1 ] } } - Levenshtein.prototype.toString = Levenshtein.prototype.inspect = function inspect(no_print) { - var matrix, max, buff, sep, rows; - matrix = this.getMatrix(); - max = reduce(matrix, function (m, o) { - return Math.max(m, reduce(o, Math.max, 0)); - }, 0); - buff = Array((max + '').length).join(' '); + Levenshtein.prototype.toString = Levenshtein.prototype.inspect = function inspect ( no_print ) { var matrix, max, buff, sep, rows + matrix = this.getMatrix() + max = reduce( matrix,function( m, o ) { + return Math.max( m, reduce( o, Math.max, 0 ) ) + }, 0 ) + buff = Array( ( max + '' ).length ).join( ' ' ) - sep = []; - while (sep.length < (matrix[0] && matrix[0].length || 0)) { - sep[sep.length] = Array(buff.length + 1).join('-'); - }sep = sep.join('-+') + '-'; + sep = [] + while ( sep.length < (matrix[0] && matrix[0].length || 0) ) + sep[ sep.length ] = Array( buff.length + 1 ).join( '-' ) + sep = sep.join( '-+' ) + '-' - rows = map(matrix, function (row) { - var cells; - cells = map(row, function (cell) { - return (buff + cell).slice(-buff.length); - }); - return cells.join(' |') + ' '; - }); + rows = map( matrix, function( row ) { var cells + cells = map( row, function( cell ) { + return ( buff + cell ).slice( - buff.length ) + }) + return cells.join( ' |' ) + ' ' + }) - return rows.join("\n" + sep + "\n"); - }; + return rows.join( "\n" + sep + "\n" ) + } Levenshtein.prototype.getMatrix = function () { - return this._matrix.slice(); - }; + return this._matrix.slice() + } - Levenshtein.prototype.valueOf = function () { - return this.distance; - }; + Levenshtein.prototype.valueOf = function() { + return this.distance + } - return Levenshtein; -}); + return Levenshtein -},{}],895:[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; }; +})); +},{}],909:[function(require,module,exports){ +(function (global){ /** * marked - a markdown parser * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) * https://github.com/markedjs/marked */ -;(function (root) { - 'use strict'; +;(function(root) { +'use strict'; - /** - * Block-Level Grammar - */ +/** + * Block-Level Grammar + */ - var block = { - newline: /^\n+/, - code: /^( {4}[^\n]+\n*)+/, - fences: noop, - hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/, - heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, - nptable: noop, - blockquote: /^( {0,3}> ?(paragraph|[^\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: /^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/, - table: noop, - lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, - paragraph: /^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/, - text: /^[^\n]+/ - }; +var block = { + newline: /^\n+/, + code: /^( {4}[^\n]+\n*)+/, + fences: noop, + hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/, + heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, + nptable: noop, + blockquote: /^( {0,3}> ?(paragraph|[^\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: /^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/, + table: noop, + lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, + paragraph: /^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/, + text: /^[^\n]+/ +}; - block._label = /(?:\\[\[\]]|[^\[\]])+/; - block._title = /(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/; - block.def = edit(block.def).replace('label', block._label).replace('title', block._title).getRegex(); +block._label = /(?:\\[\[\]]|[^\[\]])+/; +block._title = /(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/; +block.def = edit(block.def) + .replace('label', block._label) + .replace('title', block._title) + .getRegex(); - block.bullet = /(?:[*+-]|\d+\.)/; - block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/; - block.item = edit(block.item, 'gm').replace(/bull/g, block.bullet).getRegex(); +block.bullet = /(?:[*+-]|\d+\.)/; +block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/; +block.item = edit(block.item, 'gm') + .replace(/bull/g, block.bullet) + .getRegex(); - block.list = edit(block.list).replace(/bull/g, block.bullet).replace('hr', '\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))').replace('def', '\\n+(?=' + block.def.source + ')').getRegex(); +block.list = edit(block.list) + .replace(/bull/g, block.bullet) + .replace('hr', '\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))') + .replace('def', '\\n+(?=' + block.def.source + ')') + .getRegex(); - 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._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 = edit(block.html).replace('comment', //).replace('closed', /<(tag)[\s\S]+?<\/\1>/).replace('closing', /\s]*)*?\/?>/).replace(/tag/g, block._tag).getRegex(); +block.html = edit(block.html) + .replace('comment', //) + .replace('closed', /<(tag)[\s\S]+?<\/\1>/) + .replace('closing', /\s]*)*?\/?>/) + .replace(/tag/g, block._tag) + .getRegex(); - block.paragraph = edit(block.paragraph).replace('hr', block.hr).replace('heading', block.heading).replace('lheading', block.lheading).replace('tag', '<' + block._tag).getRegex(); +block.paragraph = edit(block.paragraph) + .replace('hr', block.hr) + .replace('heading', block.heading) + .replace('lheading', block.lheading) + .replace('tag', '<' + block._tag) + .getRegex(); - block.blockquote = edit(block.blockquote).replace('paragraph', block.paragraph).getRegex(); +block.blockquote = edit(block.blockquote) + .replace('paragraph', block.paragraph) + .getRegex(); - /** - * Normal Block Grammar - */ +/** + * Normal Block Grammar + */ - block.normal = merge({}, block); +block.normal = merge({}, block); - /** - * GFM Block Grammar - */ +/** + * GFM Block Grammar + */ - block.gfm = merge({}, block.normal, { - fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/, - paragraph: /^/, - heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/ - }); +block.gfm = merge({}, block.normal, { + fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/, + paragraph: /^/, + heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/ +}); - block.gfm.paragraph = edit(block.paragraph).replace('(?!', '(?!' + block.gfm.fences.source.replace('\\1', '\\2') + '|' + block.list.source.replace('\\1', '\\3') + '|').getRegex(); +block.gfm.paragraph = edit(block.paragraph) + .replace('(?!', '(?!' + + block.gfm.fences.source.replace('\\1', '\\2') + '|' + + block.list.source.replace('\\1', '\\3') + '|') + .getRegex(); - /** - * GFM + Tables Block Grammar - */ +/** + * GFM + Tables Block Grammar + */ - block.tables = merge({}, block.gfm, { - nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/, - table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/ - }); +block.tables = merge({}, block.gfm, { + nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/, + table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/ +}); - /** - * Block Lexer - */ +/** + * Block Lexer + */ - function Lexer(options) { - this.tokens = []; - this.tokens.links = {}; - this.options = options || marked.defaults; - this.rules = block.normal; +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; - } + if (this.options.gfm) { + if (this.options.tables) { + this.rules = block.tables; + } else { + this.rules = block.gfm; } } +} - /** - * Expose Block Rules - */ +/** + * Expose Block Rules + */ - Lexer.rules = block; +Lexer.rules = block; - /** - * Static Lex Method - */ +/** + * Static Lex Method + */ - Lexer.lex = function (src, options) { - var lexer = new Lexer(options); - return lexer.lex(src); - }; +Lexer.lex = function(src, options) { + var lexer = new Lexer(options); + return lexer.lex(src); +}; - /** - * Preprocessing - */ +/** + * Preprocessing + */ - Lexer.prototype.lex = function (src) { - src = src.replace(/\r\n|\r/g, '\n').replace(/\t/g, ' ').replace(/\u00a0/g, ' ').replace(/\u2424/g, '\n'); +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); - }; + return this.token(src, true); +}; - /** - * Lexing - */ +/** + * Lexing + */ - Lexer.prototype.token = function (src, top) { - src = src.replace(/^ +$/gm, ''); - var next, loose, cap, bull, b, item, space, i, tag, l, isordered; - - 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' - }); - } - } +Lexer.prototype.token = function(src, top) { + src = src.replace(/^ +$/gm, ''); + var next, + loose, + cap, + bull, + b, + item, + space, + i, + tag, + l, + isordered; - // code - if (cap = this.rules.code.exec(src)) { - src = src.substring(cap[0].length); - cap = cap[0].replace(/^ {4}/gm, ''); + 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: 'code', - text: !this.options.pedantic ? cap.replace(/\n+$/, '') : cap + type: 'space' }); - 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; - } + // 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; + } - // 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; - } + // 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; + } - // table no leading pipe (gfm) - if (top && (cap = this.rules.nptable.exec(src))) { - src = src.substring(cap[0].length); + // 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; + } - item = { - type: 'table', - header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), - align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), - cells: cap[3].replace(/\n$/, '').split('\n') - }; + // table no leading pipe (gfm) + if (top && (cap = this.rules.nptable.exec(src))) { + src = src.substring(cap[0].length); - 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; - } - } + 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.cells.length; i++) { - item.cells[i] = item.cells[i].split(/ *\| */); + 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; } - - this.tokens.push(item); - - continue; } - // hr - if (cap = this.rules.hr.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'hr' - }); - continue; + for (i = 0; i < item.cells.length; i++) { + item.cells[i] = item.cells[i].split(/ *\| */); } - // blockquote - if (cap = this.rules.blockquote.exec(src)) { - src = src.substring(cap[0].length); + this.tokens.push(item); - this.tokens.push({ - type: 'blockquote_start' - }); - - cap = cap[0].replace(/^ *> ?/gm, ''); + continue; + } - // Pass `top` to keep the current - // "toplevel" state. This is exactly - // how markdown.pl works. - this.token(cap, top); + // hr + if (cap = this.rules.hr.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({ + type: 'hr' + }); + continue; + } - this.tokens.push({ - type: 'blockquote_end' - }); + // blockquote + if (cap = this.rules.blockquote.exec(src)) { + src = src.substring(cap[0].length); - continue; - } + this.tokens.push({ + type: 'blockquote_start' + }); - // list - if (cap = this.rules.list.exec(src)) { - src = src.substring(cap[0].length); - bull = cap[2]; - isordered = bull.length > 1; + cap = cap[0].replace(/^ *> ?/gm, ''); - this.tokens.push({ - type: 'list_start', - ordered: isordered, - start: isordered ? +bull : '' - }); + // Pass `top` to keep the current + // "toplevel" state. This is exactly + // how markdown.pl works. + this.token(cap, top); - // Get each top-level item. - cap = cap[0].match(this.rules.item); + this.tokens.push({ + type: 'blockquote_end' + }); - next = false; - l = cap.length; - i = 0; + continue; + } - for (; i < l; i++) { - item = cap[i]; + // list + if (cap = this.rules.list.exec(src)) { + src = src.substring(cap[0].length); + bull = cap[2]; + isordered = bull.length > 1; - // Remove the list item's bullet - // so it is seen as the next token. - space = item.length; - item = item.replace(/^ *([*+-]|\d+\.) +/, ''); + this.tokens.push({ + type: 'list_start', + ordered: isordered, + start: isordered ? +bull : '' + }); - // 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, ''); - } + // Get each top-level item. + cap = cap[0].match(this.rules.item); - // 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; - } - } + next = false; + l = cap.length; + i = 0; - // 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; + 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; } + } - this.tokens.push({ - type: loose ? 'loose_item_start' : 'list_item_start' - }); - - // Recurse. - this.token(item, false); - - this.tokens.push({ - type: 'list_item_end' - }); + // 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: 'list_end' + type: loose + ? 'loose_item_start' + : 'list_item_start' }); - continue; - } + // Recurse. + this.token(item, false); - // 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] + type: 'list_item_end' }); - continue; } - // def - if (top && (cap = this.rules.def.exec(src))) { - src = src.substring(cap[0].length); - if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1); - tag = cap[1].toLowerCase(); - if (!this.tokens.links[tag]) { - this.tokens.links[tag] = { - href: cap[2], - title: cap[3] - }; - } - continue; - } + this.tokens.push({ + type: 'list_end' + }); - // table (gfm) - if (top && (cap = this.rules.table.exec(src))) { - src = src.substring(cap[0].length); + continue; + } - item = { - type: 'table', - header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), - align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), - cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') - }; + // 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; + } - 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; - } - } + // def + if (top && (cap = this.rules.def.exec(src))) { + src = src.substring(cap[0].length); + if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1); + tag = cap[1].toLowerCase(); + if (!this.tokens.links[tag]) { + this.tokens.links[tag] = { + href: cap[2], + title: cap[3] + }; + } + continue; + } - for (i = 0; i < item.cells.length; i++) { - item.cells[i] = item.cells[i].replace(/^ *\| *| *\| *$/g, '').split(/ *\| */); - } + // table (gfm) + if (top && (cap = this.rules.table.exec(src))) { + src = src.substring(cap[0].length); - this.tokens.push(item); + item = { + type: 'table', + header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), + align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), + cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') + }; - continue; + 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; + } } - // 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; + for (i = 0; i < item.cells.length; i++) { + item.cells[i] = item.cells[i] + .replace(/^ *\| *| *\| *$/g, '') + .split(/ *\| */); } - // 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; - } + this.tokens.push(item); - // 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; - } + continue; + } - if (src) { - throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); - } + // 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; } - return this.tokens; - }; + // 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; + } - /** - * Inline-Level Grammar - */ + // 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; + } - var inline = { - escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, - autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/, - url: noop, - tag: /^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/, - link: /^!?\[(inside)\]\(href\)/, - reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, - nolink: /^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/, - strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, - em: /^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/, - code: /^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/, - br: /^ {2,}\n(?!\s*$)/, - del: noop, - text: /^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/; +var inline = { + escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, + autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/, + url: noop, + tag: /^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/, + link: /^!?\[(inside)\]\(href\)/, + reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, + nolink: /^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/, + strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, + em: /^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/, + code: /^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/, + br: /^ {2,}\n(?!\s*$)/, + del: noop, + text: /^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/; - inline.normal = merge({}, inline); +inline.link = edit(inline.link) + .replace('inside', inline._inside) + .replace('href', inline._href) + .getRegex(); - /** - * Pedantic Inline Grammar - */ +inline.reflink = edit(inline.reflink) + .replace('inside', inline._inside) + .getRegex(); - inline.pedantic = merge({}, inline.normal, { - strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/, - em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/ - }); +/** + * Normal Inline Grammar + */ - /** - * GFM Inline Grammar - */ +inline.normal = merge({}, inline); - inline.gfm = merge({}, inline.normal, { - escape: edit(inline.escape).replace('])', '~|])').getRegex(), - url: edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace('email', inline._email).getRegex(), - _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/, - del: /^~~(?=\S)([\s\S]*?\S)~~/, - text: edit(inline.text).replace(']|', '~]|').replace('|', '|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&\'*+/=?^_`{\\|}~-]+@|').getRegex() - }); +/** + * Pedantic Inline Grammar + */ - /** - * GFM + Line Breaks 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)\*(?!\*)/ +}); - inline.breaks = merge({}, inline.gfm, { - br: edit(inline.br).replace('{2,}', '*').getRegex(), - text: edit(inline.gfm.text).replace('{2,}', '*').getRegex() - }); +/** + * GFM Inline Grammar + */ - /** - * Inline Lexer & Compiler - */ +inline.gfm = merge({}, inline.normal, { + escape: edit(inline.escape).replace('])', '~|])').getRegex(), + url: edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/) + .replace('email', inline._email) + .getRegex(), + _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/, + del: /^~~(?=\S)([\s\S]*?\S)~~/, + text: edit(inline.text) + .replace(']|', '~]|') + .replace('|', '|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&\'*+/=?^_`{\\|}~-]+@|') + .getRegex() +}); - 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; +/** + * GFM + Line Breaks Inline Grammar + */ - if (!this.links) { - throw new Error('Tokens array requires a `links` property.'); - } +inline.breaks = merge({}, inline.gfm, { + br: edit(inline.br).replace('{2,}', '*').getRegex(), + text: edit(inline.gfm.text).replace('{2,}', '*').getRegex() +}); - 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; +/** + * 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 - */ +/** + * Expose Inline Rules + */ - InlineLexer.rules = inline; +InlineLexer.rules = inline; - /** - * Static Lexing/Compiling Method - */ +/** + * Static Lexing/Compiling Method + */ - InlineLexer.output = function (src, links, options) { - var inline = new InlineLexer(links, options); - return inline.output(src); - }; +InlineLexer.output = function(src, links, options) { + var inline = new InlineLexer(links, options); + return inline.output(src); +}; - /** - * Lexing/Compiling - */ +/** + * 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; - } +InlineLexer.prototype.output = function(src) { + var out = '', + link, + text, + href, + cap; - // autolink - if (cap = this.rules.autolink.exec(src)) { - src = src.substring(cap[0].length); - if (cap[2] === '@') { - text = escape(this.mangle(cap[1])); - href = 'mailto:' + text; - } else { - text = escape(cap[1]); - href = text; - } - out += this.renderer.link(href, null, text); - continue; - } + while (src) { + // escape + if (cap = this.rules.escape.exec(src)) { + src = src.substring(cap[0].length); + out += cap[1]; + continue; + } - // url (gfm) - if (!this.inLink && (cap = this.rules.url.exec(src))) { - cap[0] = this.rules._backpedal.exec(cap[0])[0]; - src = src.substring(cap[0].length); - if (cap[2] === '@') { - text = escape(cap[0]); - href = 'mailto:' + text; - } else { - text = escape(cap[0]); - if (cap[1] === 'www.') { - href = 'http://' + text; - } else { - href = text; - } - } - out += this.renderer.link(href, null, text); - continue; + // autolink + if (cap = this.rules.autolink.exec(src)) { + src = src.substring(cap[0].length); + if (cap[2] === '@') { + text = escape(this.mangle(cap[1])); + href = 'mailto:' + text; + } else { + 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 && /^/i.test(cap[0])) { - this.inLink = false; + // url (gfm) + if (!this.inLink && (cap = this.rules.url.exec(src))) { + cap[0] = this.rules._backpedal.exec(cap[0])[0]; + src = src.substring(cap[0].length); + if (cap[2] === '@') { + text = escape(cap[0]); + href = 'mailto:' + text; + } else { + text = escape(cap[0]); + if (cap[1] === 'www.') { + href = 'http://' + text; + } else { + href = text; } - src = src.substring(cap[0].length); - out += this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape(cap[0]) : cap[0]; - continue; } + out += this.renderer.link(href, null, text); + continue; + } - // link - if (cap = this.rules.link.exec(src)) { - src = src.substring(cap[0].length); + // tag + if (cap = this.rules.tag.exec(src)) { + if (!this.inLink && /^/i.test(cap[0])) { this.inLink = false; - continue; } + src = src.substring(cap[0].length); + out += this.options.sanitize + ? this.options.sanitizer + ? this.options.sanitizer(cap[0]) + : escape(cap[0]) + : cap[0] + 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; - } + // 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; + } - // strong - if (cap = this.rules.strong.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.strong(this.output(cap[2] || cap[1])); + // 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; + } - // 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; - } + // 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; + } - // code - if (cap = this.rules.code.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.codespan(escape(cap[2].trim(), true)); - 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; + } - // br - if (cap = this.rules.br.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.br(); - 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; + } - // del (gfm) - if (cap = this.rules.del.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.del(this.output(cap[1])); - continue; - } + // br + if (cap = this.rules.br.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.br(); + 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; - } + // del (gfm) + if (cap = this.rules.del.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.del(this.output(cap[1])); + continue; + } - if (src) { - throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); - } + // text + if (cap = this.rules.text.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.text(escape(this.smartypants(cap[0]))); + continue; } - return out; - }; + if (src) { + throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); + } + } - /** - * Compile Link - */ + return out; +}; + +/** + * Compile Link + */ - InlineLexer.prototype.outputLink = function (cap, link) { - var href = escape(link.href), - title = link.title ? escape(link.title) : null; +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])); - }; + return cap[0].charAt(0) !== '!' + ? this.renderer.link(href, title, this.output(cap[1])) + : this.renderer.image(href, title, escape(cap[1])); +}; - /** - * Smartypants Transformations - */ +/** + * Smartypants Transformations + */ - InlineLexer.prototype.smartypants = function (text) { - if (!this.options.smartypants) return text; - return text +InlineLexer.prototype.smartypants = function(text) { + if (!this.options.smartypants) return text; + return text // em-dashes .replace(/---/g, '\u2014') // en-dashes @@ -140665,743 +148694,789 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // closing singles & apostrophes .replace(/'/g, '\u2019') // opening doubles - .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201C') + .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c') // closing doubles - .replace(/"/g, '\u201D') + .replace(/"/g, '\u201d') // ellipses .replace(/\.{3}/g, '\u2026'); - }; +}; - /** - * Mangle Links - */ +/** + * Mangle Links + */ - InlineLexer.prototype.mangle = function (text) { - if (!this.options.mangle) return text; - var out = '', - l = text.length, - i = 0, - ch; +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 + ';'; + for (; i < l; i++) { + ch = text.charCodeAt(i); + if (Math.random() > 0.5) { + ch = 'x' + ch.toString(16); } + out += '&#' + ch + ';'; + } - return out; - }; - - /** - * Renderer - */ + return out; +}; - function Renderer(options) { - this.options = options || {}; - } +/** + * Renderer + */ - 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; - } - } +function Renderer(options) { + this.options = options || {}; +} - if (!lang) { - return '
' + (escaped ? code : escape(code, true)) + '\n
'; +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; } + } - return '
' + (escaped ? code : escape(code, true)) + '\n
\n'; - }; + if (!lang) { + return '
'
+      + (escaped ? code : escape(code, true))
+      + '\n
'; + } - Renderer.prototype.blockquote = function (quote) { - return '
\n' + quote + '
\n'; - }; + return '
'
+    + (escaped ? code : escape(code, true))
+    + '\n
\n'; +}; - Renderer.prototype.html = function (html) { - return html; - }; +Renderer.prototype.blockquote = function(quote) { + return '
\n' + quote + '
\n'; +}; - Renderer.prototype.heading = function (text, level, raw) { - return '' + text + '\n'; - }; +Renderer.prototype.html = function(html) { + return html; +}; - Renderer.prototype.hr = function () { - return this.options.xhtml ? '
\n' : '
\n'; - }; +Renderer.prototype.heading = function(text, level, raw) { + return '' + + text + + '\n'; +}; - Renderer.prototype.list = function (body, ordered, start) { - var type = ordered ? 'ol' : 'ul', - startatt = ordered && start !== 1 ? ' start="' + start + '"' : ''; - return '<' + type + startatt + '>\n' + body + '\n'; - }; +Renderer.prototype.hr = function() { + return this.options.xhtml ? '
\n' : '
\n'; +}; - Renderer.prototype.listitem = function (text) { - return '
  • ' + text + '
  • \n'; - }; +Renderer.prototype.list = function(body, ordered, start) { + var type = ordered ? 'ol' : 'ul', + startatt = (ordered && start !== 1) ? (' start="' + start + '"') : ''; + return '<' + type + startatt + '>\n' + body + '\n'; +}; - Renderer.prototype.paragraph = function (text) { - return '

    ' + text + '

    \n'; - }; +Renderer.prototype.listitem = function(text) { + return '
  • ' + text + '
  • \n'; +}; - Renderer.prototype.table = function (header, body) { - return '\n' + '\n' + header + '\n' + '\n' + body + '\n' + '
    \n'; - }; +Renderer.prototype.paragraph = function(text) { + return '

    ' + text + '

    \n'; +}; - Renderer.prototype.tablerow = function (content) { - return '\n' + content + '\n'; - }; +Renderer.prototype.table = function(header, body) { + return '\n' + + '\n' + + header + + '\n' + + '\n' + + body + + '\n' + + '
    \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 + '\n'; - }; +Renderer.prototype.tablerow = function(content) { + return '\n' + content + '\n'; +}; - // span level renderer - Renderer.prototype.strong = function (text) { - return '' + text + ''; - }; +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 + '\n'; +}; - Renderer.prototype.em = function (text) { - return '' + text + ''; - }; +// span level renderer +Renderer.prototype.strong = function(text) { + return '' + text + ''; +}; - Renderer.prototype.codespan = function (text) { - return '' + text + ''; - }; +Renderer.prototype.em = function(text) { + return '' + text + ''; +}; - Renderer.prototype.br = function () { - return this.options.xhtml ? '
    ' : '
    '; - }; +Renderer.prototype.codespan = function(text) { + return '' + text + ''; +}; - Renderer.prototype.del = function (text) { - return '' + text + ''; - }; +Renderer.prototype.br = function() { + return this.options.xhtml ? '
    ' : '
    '; +}; - 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 = '
    '; - return out; - }; +Renderer.prototype.del = function(text) { + return '' + text + ''; +}; - Renderer.prototype.image = function (href, title, text) { - if (this.options.baseUrl && !originIndependentUrl.test(href)) { - href = resolveUrl(this.options.baseUrl, href); +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; } - var out = '' + text + '' : '>'; - return out; - }; + } + if (this.options.baseUrl && !originIndependentUrl.test(href)) { + href = resolveUrl(this.options.baseUrl, href); + } + var out = ''; + return out; +}; - Renderer.prototype.text = function (text) { - return text; - }; +Renderer.prototype.image = function(href, title, text) { + if (this.options.baseUrl && !originIndependentUrl.test(href)) { + href = resolveUrl(this.options.baseUrl, href); + } + var out = '' + text + '' : '>'; + return out; +}; - /** - * TextRenderer - * returns only the textual part of the token - */ +Renderer.prototype.text = function(text) { + return text; +}; - function TextRenderer() {} +/** + * TextRenderer + * returns only the textual part of the token + */ - // no need for block level renderers +function TextRenderer() {} - TextRenderer.prototype.strong = TextRenderer.prototype.em = TextRenderer.prototype.codespan = TextRenderer.prototype.del = TextRenderer.prototype.text = function (text) { - return text; - }; +// no need for block level renderers - TextRenderer.prototype.link = TextRenderer.prototype.image = function (href, title, text) { - return '' + text; - }; +TextRenderer.prototype.strong = +TextRenderer.prototype.em = +TextRenderer.prototype.codespan = +TextRenderer.prototype.del = +TextRenderer.prototype.text = function (text) { + return text; +} - TextRenderer.prototype.br = function () { - return ''; - }; +TextRenderer.prototype.link = +TextRenderer.prototype.image = function(href, title, text) { + return '' + text; +} - /** - * Parsing & Compiling - */ +TextRenderer.prototype.br = function() { + return ''; +} - 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; - } +/** + * Parsing & Compiling + */ - /** - * Static Parse Method - */ +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; +} - Parser.parse = function (src, options) { - var parser = new Parser(options); - return parser.parse(src); - }; +/** + * Static Parse Method + */ - /** - * Parse Loop - */ +Parser.parse = function(src, options) { + var parser = new Parser(options); + return parser.parse(src); +}; - Parser.prototype.parse = function (src) { - this.inline = new InlineLexer(src.links, this.options); - // use an InlineLexer with a TextRenderer to extract pure text - this.inlineText = new InlineLexer(src.links, merge({}, this.options, { renderer: new TextRenderer() })); - this.tokens = src.reverse(); +/** + * Parse Loop + */ - var out = ''; - while (this.next()) { - out += this.tok(); - } +Parser.prototype.parse = function(src) { + this.inline = new InlineLexer(src.links, this.options); + // use an InlineLexer with a TextRenderer to extract pure text + this.inlineText = new InlineLexer( + src.links, + merge({}, this.options, {renderer: new TextRenderer()}) + ); + this.tokens = src.reverse(); - return out; - }; + var out = ''; + while (this.next()) { + out += this.tok(); + } - /** - * Next Token - */ + return out; +}; - Parser.prototype.next = function () { - return this.token = this.tokens.pop(); - }; +/** + * Next Token + */ - /** - * Preview Next Token - */ +Parser.prototype.next = function() { + return this.token = this.tokens.pop(); +}; - Parser.prototype.peek = function () { - return this.tokens[this.tokens.length - 1] || 0; - }; +/** + * Preview Next Token + */ - /** - * Parse Text Tokens - */ +Parser.prototype.peek = function() { + return this.tokens[this.tokens.length - 1] || 0; +}; - Parser.prototype.parseText = function () { - var body = this.token.text; +/** + * Parse Text Tokens + */ - while (this.peek().type === 'text') { - body += '\n' + this.next().text; - } +Parser.prototype.parseText = function() { + var body = this.token.text; - return this.inline.output(body); - }; + while (this.peek().type === 'text') { + body += '\n' + this.next().text; + } - /** - * Parse Current Token - */ + return this.inline.output(body); +}; - 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, unescape(this.inlineText.output(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, - j; - - // header - cell = ''; - for (i = 0; i < this.token.header.length; i++) { - cell += this.renderer.tablecell(this.inline.output(this.token.header[i]), { header: true, align: this.token.align[i] }); - } - header += this.renderer.tablerow(cell); +/** + * Parse Current Token + */ - for (i = 0; i < this.token.cells.length; i++) { - row = this.token.cells[i]; +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, + unescape(this.inlineText.output(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, + j; + + // header + cell = ''; + for (i = 0; i < this.token.header.length; i++) { + cell += this.renderer.tablecell( + this.inline.output(this.token.header[i]), + { header: true, align: this.token.align[i] } + ); + } + header += this.renderer.tablerow(cell); - cell = ''; - for (j = 0; j < row.length; j++) { - cell += this.renderer.tablecell(this.inline.output(row[j]), { header: false, align: this.token.align[j] }); - } + for (i = 0; i < this.token.cells.length; i++) { + row = this.token.cells[i]; - body += this.renderer.tablerow(cell); - } - return this.renderer.table(header, body); + cell = ''; + for (j = 0; j < row.length; j++) { + cell += this.renderer.tablecell( + this.inline.output(row[j]), + { header: false, align: this.token.align[j] } + ); } - case 'blockquote_start': - { - body = ''; - - while (this.next().type !== 'blockquote_end') { - body += this.tok(); - } - return this.renderer.blockquote(body); - } - case 'list_start': - { - body = ''; - var ordered = this.token.ordered, - start = this.token.start; + body += this.renderer.tablerow(cell); + } + return this.renderer.table(header, body); + } + case 'blockquote_start': { + body = ''; - while (this.next().type !== 'list_end') { - body += this.tok(); - } + while (this.next().type !== 'blockquote_end') { + body += this.tok(); + } - return this.renderer.list(body, ordered, start); - } - case 'list_item_start': - { - body = ''; + return this.renderer.blockquote(body); + } + case 'list_start': { + body = ''; + var ordered = this.token.ordered, + start = this.token.start; - while (this.next().type !== 'list_item_end') { - body += this.token.type === 'text' ? this.parseText() : this.tok(); - } + while (this.next().type !== 'list_end') { + body += this.tok(); + } - return this.renderer.listitem(body); - } - case 'loose_item_start': - { - body = ''; + return this.renderer.list(body, ordered, start); + } + case 'list_item_start': { + body = ''; - while (this.next().type !== 'list_item_end') { - body += this.tok(); - } + while (this.next().type !== 'list_item_end') { + body += this.token.type === 'text' + ? this.parseText() + : 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()); - } + return this.renderer.listitem(body); } - }; + case 'loose_item_start': { + body = ''; - /** - * Helpers - */ + while (this.next().type !== 'list_item_end') { + body += this.tok(); + } - function escape(html, encode) { - return html.replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, '''); + 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()); + } } +}; - 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 ''; - }); - } +/** + * Helpers + */ - function edit(regex, opt) { - regex = regex.source; - opt = opt || ''; - return { - replace: function replace(name, val) { - val = val.source || val; - val = val.replace(/(^|[^\[])\^/g, '$1'); - regex = regex.replace(name, val); - return this; - }, - getRegex: function getRegex() { - return new RegExp(regex, opt); - } - }; - } +function escape(html, encode) { + return html + .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); +} - 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(/[^/]*$/, ''); - } +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 edit(regex, opt) { + regex = regex.source; + opt = opt || ''; + return { + replace: function(name, val) { + val = val.source || val; + val = val.replace(/(^|[^\[])\^/g, '$1'); + regex = regex.replace(name, val); + return this; + }, + getRegex: function() { + return new RegExp(regex, opt); } - 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; +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 { - return base + href; + baseUrls[' ' + base] = base.replace(/[^/]*$/, ''); } } - var baseUrls = {}; - var originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i; + base = baseUrls[' ' + base]; - function noop() {} - noop.exec = noop; + 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; +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]; - } + 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 - */ + return obj; +} + +/** + * Marked + */ + +function marked(src, opt, callback) { + // throw error in case of non string input + if (typeof src === 'undefined' || src === null) { + throw new Error('marked(): input parameter is undefined or null'); + } + if (typeof src !== 'string') { + throw new Error('marked(): input parameter is of type ' + + Object.prototype.toString.call(src) + ', string expected'); + } - function marked(src, opt, callback) { - // throw error in case of non string input - if (typeof src === 'undefined' || src === null) { - throw new Error('marked(): input parameter is undefined or null'); + if (callback || typeof opt === 'function') { + if (!callback) { + callback = opt; + opt = null; } - if (typeof src !== 'string') { - throw new Error('marked(): input parameter is of type ' + Object.prototype.toString.call(src) + ', string expected'); + + opt = merge({}, marked.defaults, opt || {}); + + var highlight = opt.highlight, + tokens, + pending, + i = 0; + + try { + tokens = Lexer.lex(src, opt) + } catch (e) { + return callback(e); } - if (callback || typeof opt === 'function') { - if (!callback) { - callback = opt; - opt = null; - } + pending = tokens.length; - opt = merge({}, marked.defaults, opt || {}); + var done = function(err) { + if (err) { + opt.highlight = highlight; + return callback(err); + } - var highlight = opt.highlight, - tokens, - pending, - i = 0; + var out; try { - tokens = Lexer.lex(src, opt); + out = Parser.parse(tokens, opt); } catch (e) { - return callback(e); + err = 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; + opt.highlight = highlight; - return err ? callback(err) : callback(null, out); - }; + return err + ? callback(err) + : callback(null, out); + }; - if (!highlight || highlight.length < 3) { - return done(); - } + if (!highlight || highlight.length < 3) { + return done(); + } - delete opt.highlight; + delete opt.highlight; - if (!pending) return done(); + if (!pending) return done(); - for (; i < tokens.length; i++) { - (function (token) { - if (token.type !== 'code') { + 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(); } - 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; + token.text = code; + token.escaped = true; + --pending || done(); + }); + })(tokens[i]); } - 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/markedjs/marked.'; - if ((opt || marked.defaults).silent) { - return '

    An error occurred:

    ' + escape(e.message + '', true) + '
    '; - } - throw e; + + 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/markedjs/marked.'; + if ((opt || marked.defaults).silent) { + return '

    An error occurred:

    '
    +        + escape(e.message + '', true)
    +        + '
    '; } + throw e; } +} - /** - * Options - */ +/** + * 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 - }; +marked.options = +marked.setOptions = function(opt) { + merge(marked.defaults, opt); + return marked; +}; - /** - * Expose - */ +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 +}; - marked.Parser = Parser; - marked.parser = Parser.parse; +/** + * Expose + */ - marked.Renderer = Renderer; - marked.TextRenderer = TextRenderer; +marked.Parser = Parser; +marked.parser = Parser.parse; - marked.Lexer = Lexer; - marked.lexer = Lexer.lex; +marked.Renderer = Renderer; +marked.TextRenderer = TextRenderer; - marked.InlineLexer = InlineLexer; - marked.inlineLexer = InlineLexer.output; +marked.Lexer = Lexer; +marked.lexer = Lexer.lex; - marked.parse = marked; +marked.InlineLexer = InlineLexer; +marked.inlineLexer = InlineLexer.output; - 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 { - root.marked = marked; - } -})(undefined || (typeof window !== 'undefined' ? window : global)); +marked.parse = marked; -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],896:[function(require,module,exports){ -'use strict'; +if (typeof module !== 'undefined' && typeof exports === 'object') { + module.exports = marked; +} else if (typeof define === 'function' && define.amd) { + define(function() { return marked; }); +} else { + root.marked = marked; +} +})(this || (typeof window !== 'undefined' ? window : global)); -var inherits = require('inherits'); -var HashBase = require('hash-base'); -var Buffer = require('safe-buffer').Buffer; +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}],910:[function(require,module,exports){ +'use strict' +var inherits = require('inherits') +var HashBase = require('hash-base') +var Buffer = require('safe-buffer').Buffer -var ARRAY16 = new Array(16); +var ARRAY16 = new Array(16) -function MD5() { - HashBase.call(this, 64); +function MD5 () { + HashBase.call(this, 64) // state - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; + this._a = 0x67452301 + this._b = 0xefcdab89 + this._c = 0x98badcfe + this._d = 0x10325476 } -inherits(MD5, HashBase); +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; -}; + 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; + 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, 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(); + 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 = Buffer.allocUnsafe(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; + var buffer = Buffer.allocUnsafe(16) + buffer.writeInt32LE(this._a, 0) + buffer.writeInt32LE(this._b, 4) + buffer.writeInt32LE(this._c, 8) + buffer.writeInt32LE(this._d, 12) + return buffer } -function fnF(a, b, c, d, m, k, s) { - return rotl(a + (b & c | ~b & d) + m + k | 0, s) + b | 0; +function rotl (x, n) { + return (x << n) | (x >>> (32 - n)) } -function fnG(a, b, c, d, m, k, s) { - return rotl(a + (b & d | c & ~d) + m + k | 0, s) + b | 0; +function fnF (a, b, c, d, m, k, s) { + return (rotl((a + ((b & c) | ((~b) & 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 fnG (a, b, c, d, m, k, s) { + return (rotl((a + ((b & d) | (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; +function fnH (a, b, c, d, m, k, s) { + return (rotl((a + (b ^ c ^ d) + m + k) | 0, s) + b) | 0 } -module.exports = MD5; +function fnI (a, b, c, d, m, k, s) { + return (rotl((a + ((c ^ (b | (~d)))) + m + k) | 0, s) + b) | 0 +} -},{"hash-base":863,"inherits":882,"safe-buffer":937}],897:[function(require,module,exports){ -'use strict'; +module.exports = MD5 +},{"hash-base":877,"inherits":896,"safe-buffer":951}],911:[function(require,module,exports){ var bn = require('bn.js'); var brorand = require('brorand'); @@ -141420,9 +149495,9 @@ MillerRabin.prototype._randbelow = function _randbelow(n) { // 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 { + do var a = new bn(this.rand.generate(min_bytes)); - } while (a.cmp(n) >= 0); + while (a.cmp(n) >= 0); return a; }; @@ -141438,7 +149513,8 @@ MillerRabin.prototype.test = function test(n, k, cb) { var red = bn.mont(n); var rone = new bn(1).toRed(red); - if (!k) k = Math.max(1, len / 48 | 0); + if (!k) + k = Math.max(1, (len / 48) | 0); // Find d and s, (n - 1) = (2 ^ s) * d; var n1 = n.subn(1); @@ -141450,19 +149526,24 @@ MillerRabin.prototype.test = function test(n, k, cb) { var prime = true; for (; k > 0; k--) { var a = this._randrange(new bn(2), n1); - if (cb) cb(a); + if (cb) + cb(a); var x = a.toRed(red).redPow(d); - if (x.cmp(rone) === 0 || x.cmp(rn1) === 0) continue; + 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 (x.cmp(rone) === 0) + return false; + if (x.cmp(rn1) === 0) + break; } - if (i === s) return false; + if (i === s) + return false; } return prime; @@ -141473,7 +149554,8 @@ MillerRabin.prototype.getDivisor = function getDivisor(n, k) { var red = bn.mont(n); var rone = new bn(1).toRed(red); - if (!k) k = Math.max(1, len / 48 | 0); + if (!k) + k = Math.max(1, (len / 48) | 0); // Find d and s, (n - 1) = (2 ^ s) * d; var n1 = n.subn(1); @@ -141486,16 +149568,20 @@ MillerRabin.prototype.getDivisor = function getDivisor(n, k) { var a = this._randrange(new bn(2), n1); var g = n.gcd(a); - if (g.cmpn(1) !== 0) return g; + if (g.cmpn(1) !== 0) + return g; var x = a.toRed(red).redPow(d); - if (x.cmp(rone) === 0 || x.cmp(rn1) === 0) continue; + 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 (x.cmp(rone) === 0) + return x.fromRed().subn(1).gcd(n); + if (x.cmp(rn1) === 0) + break; } if (i === s) { @@ -141507,11 +149593,11 @@ MillerRabin.prototype.getDivisor = function getDivisor(n, k) { return false; }; -},{"bn.js":367,"brorand":368}],898:[function(require,module,exports){ +},{"bn.js":381,"brorand":382}],912:[function(require,module,exports){ arguments[4][258][0].apply(exports,arguments) -},{"dup":258}],899:[function(require,module,exports){ +},{"dup":258}],913:[function(require,module,exports){ arguments[4][259][0].apply(exports,arguments) -},{"dup":259}],900:[function(require,module,exports){ +},{"dup":259}],914:[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", @@ -141525,297 +149611,377 @@ module.exports={"2.16.840.1.101.3.4.1.1": "aes-128-ecb", "2.16.840.1.101.3.4.1.43": "aes-256-ofb", "2.16.840.1.101.3.4.1.44": "aes-256-cfb" } -},{}],901:[function(require,module,exports){ +},{}],915:[function(require,module,exports){ // from https://github.com/indutny/self-signed/blob/gh-pages/lib/asn1.js // Fedor, you are amazing. -'use strict'; +'use strict' -var asn1 = require('asn1.js'); +var asn1 = require('asn1.js') -exports.certificate = require('./certificate'); +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; + 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; + 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; + 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()); -}); + 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; + 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; + 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; + 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(); -}); + 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; + 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()); -}); + this.seq().obj( + this.key('r').int(), + this.key('s').int() + ) +}) -},{"./certificate":902,"asn1.js":321}],902:[function(require,module,exports){ +},{"./certificate":916,"asn1.js":335}],916:[function(require,module,exports){ // from https://github.com/Rantanen/node-dtls/blob/25a7dc861bda38cfeac93a723500eea4f0ac2e86/Certificate.js // thanks to @Rantanen -'use strict'; +'use strict' -var asn = require('asn1.js'); +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()); -}); + 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()); -}); + 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()); -}); + this.seq().obj( + this.key('algorithm').use(AlgorithmIdentifier), + this.key('subjectPublicKey').bitstr() + ) +}) var RelativeDistinguishedName = asn.define('RelativeDistinguishedName', function () { - this.setof(AttributeTypeValue); -}); + this.setof(AttributeTypeValue) +}) var RDNSequence = asn.define('RDNSequence', function () { - this.seqof(RelativeDistinguishedName); -}); + 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)); -}); + 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()); -}); + 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()); -}); + 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()); -}); + this.seq().obj( + this.key('tbsCertificate').use(TBSCertificate), + this.key('signatureAlgorithm').use(AlgorithmIdentifier), + this.key('signatureValue').bitstr() + ) +}) -module.exports = X509Certificate; +module.exports = X509Certificate -},{"asn1.js":321}],903:[function(require,module,exports){ +},{"asn1.js":335}],917:[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]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m; -var startRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m; -var fullRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m; -var evp = require('evp_bytestokey'); -var ciphers = require('browserify-aes'); +var findProc = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m +var startRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m +var fullRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\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; + 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'); + 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]; + 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":372,"buffer":401,"evp_bytestokey":862}],904:[function(require,module,exports){ +},{"browserify-aes":386,"buffer":415,"evp_bytestokey":876}],918:[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; +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 === 'object' && !Buffer.isBuffer(buffer)) { + password = buffer.passphrase + buffer = buffer.key } if (typeof buffer === 'string') { - buffer = new Buffer(buffer); + buffer = new Buffer(buffer) } - var stripped = fixProc(buffer, password); + var stripped = fixProc(buffer, password) - var type = stripped.tag; - var data = stripped.data; - var subtype, ndata; + 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 + ndata = asn1.certificate.decode(data, 'der').tbsCertificate.subjectPublicKeyInfo + // falls through case 'PUBLIC KEY': if (!ndata) { - ndata = asn1.PublicKey.decode(data, 'der'); + ndata = asn1.PublicKey.decode(data, 'der') } - subtype = ndata.algorithm.algorithm.join('.'); + subtype = ndata.algorithm.algorithm.join('.') switch (subtype) { case '1.2.840.113549.1.1.1': - return asn1.RSAPublicKey.decode(ndata.subjectPublicKey.data, 'der'); + return asn1.RSAPublicKey.decode(ndata.subjectPublicKey.data, 'der') case '1.2.840.10045.2.1': - ndata.subjectPrivateKey = ndata.subjectPublicKey; + 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'); + 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); + } + default: throw new Error('unknown key id ' + subtype) } - throw new Error('unknown key type ' + type); + throw new Error('unknown key type ' + type) case 'ENCRYPTED PRIVATE KEY': - data = asn1.EncryptedPrivateKey.decode(data, 'der'); - data = decrypt(data, password); - // falls through + 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('.'); + 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'); + 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'); + 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); + } + default: throw new Error('unknown key id ' + subtype) } - throw new Error('unknown key type ' + type); + throw new Error('unknown key type ' + type) case 'RSA PUBLIC KEY': - return asn1.RSAPublicKey.decode(data, 'der'); + return asn1.RSAPublicKey.decode(data, 'der') case 'RSA PRIVATE KEY': - return asn1.RSAPrivateKey.decode(data, 'der'); + 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'); + 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); + } + 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":900,"./asn1":901,"./fixProc":903,"browserify-aes":372,"buffer":401,"pbkdf2":905}],905:[function(require,module,exports){ -'use strict'; - -exports.pbkdf2 = require('./lib/async'); -exports.pbkdf2Sync = require('./lib/sync'); +},{"./aesid.json":914,"./asn1":915,"./fixProc":917,"browserify-aes":386,"buffer":415,"pbkdf2":919}],919:[function(require,module,exports){ +exports.pbkdf2 = require('./lib/async') +exports.pbkdf2Sync = require('./lib/sync') -},{"./lib/async":906,"./lib/sync":909}],906:[function(require,module,exports){ +},{"./lib/async":920,"./lib/sync":923}],920:[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 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 ZERO_BUF +var subtle = global.crypto && global.crypto.subtle var toBrowser = { 'sha': 'SHA-1', 'sha-1': 'SHA-1', @@ -141826,30 +149992,33 @@ var toBrowser = { 'sha-384': 'SHA-384', 'sha-512': 'SHA-512', 'sha512': 'SHA-512' -}; -var checks = []; -function checkNative(algo) { +} +var checks = [] +function checkNative (algo) { if (global.process && !global.process.browser) { - return Promise.resolve(false); + return Promise.resolve(false) } if (!subtle || !subtle.importKey || !subtle.deriveBits) { - return Promise.resolve(false); + 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; + 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) { +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, @@ -141857,119 +150026,112 @@ function browserPbkdf2(password, salt, iterations, length, algo) { hash: { name: algo } - }, key, length << 3); + }, key, length << 3) }).then(function (res) { - return Buffer.from(res); - }); + return Buffer.from(res) + }) } -function resolvePromise(promise, callback) { +function resolvePromise (promise, callback) { promise.then(function (out) { process.nextTick(function () { - callback(null, out); - }); + callback(null, out) + }) }, function (e) { process.nextTick(function () { - callback(e); - }); - }); + callback(e) + }) + }) } module.exports = function (password, salt, iterations, keylen, digest, callback) { if (typeof digest === 'function') { - callback = digest; - digest = undefined; + callback = digest + digest = undefined } - digest = digest || 'sha1'; - var algo = toBrowser[digest.toLowerCase()]; + digest = digest || 'sha1' + var algo = toBrowser[digest.toLowerCase()] if (!algo || typeof global.Promise !== 'function') { return process.nextTick(function () { - var out; + var out try { - out = sync(password, salt, iterations, keylen, digest); + out = sync(password, salt, iterations, keylen, digest) } catch (e) { - return callback(e); + return callback(e) } - callback(null, out); - }); + callback(null, out) + }) } - checkParameters(password, salt, iterations, keylen); - if (typeof callback !== 'function') throw new Error('No callback provided to pbkdf2'); - if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding); - if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding); + checkParameters(password, salt, iterations, keylen) + if (typeof callback !== 'function') throw new Error('No callback provided to pbkdf2') + if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding) + if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding) resolvePromise(checkNative(algo).then(function (resp) { - if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo); + if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo) - return sync(password, salt, iterations, keylen, digest); - }), callback); -}; + 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":907,"./precondition":908,"./sync":909,"_process":911,"safe-buffer":937}],907:[function(require,module,exports){ +},{"./default-encoding":921,"./precondition":922,"./sync":923,"_process":925,"safe-buffer":951}],921:[function(require,module,exports){ (function (process){ -'use strict'; - -var defaultEncoding; +var defaultEncoding /* istanbul ignore next */ if (process.browser) { - defaultEncoding = 'utf-8'; + defaultEncoding = 'utf-8' } else { - var pVersionMajor = parseInt(process.version.split('.')[0].slice(1), 10); + var pVersionMajor = parseInt(process.version.split('.')[0].slice(1), 10) - defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary'; + defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary' } -module.exports = defaultEncoding; +module.exports = defaultEncoding }).call(this,require('_process')) -},{"_process":911}],908:[function(require,module,exports){ +},{"_process":925}],922:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var MAX_ALLOC = Math.pow(2, 30) - 1; // default in iojs +var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs -function checkBuffer(buf, name) { +function checkBuffer (buf, name) { if (typeof buf !== 'string' && !Buffer.isBuffer(buf)) { - throw new TypeError(name + ' must be a buffer or string'); + throw new TypeError(name + ' must be a buffer or string') } } module.exports = function (password, salt, iterations, keylen) { - checkBuffer(password, 'Password'); - checkBuffer(salt, 'Salt'); + checkBuffer(password, 'Password') + checkBuffer(salt, 'Salt') if (typeof iterations !== 'number') { - throw new TypeError('Iterations not a number'); + throw new TypeError('Iterations not a number') } if (iterations < 0) { - throw new TypeError('Bad iterations'); + throw new TypeError('Bad iterations') } if (typeof keylen !== 'number') { - throw new TypeError('Key length not a 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'); + if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) { /* eslint no-self-compare: 0 */ + throw new TypeError('Bad key length') } -}; +} }).call(this,{"isBuffer":require("../../is-buffer/index.js")}) -},{"../../is-buffer/index.js":883}],909:[function(require,module,exports){ -'use strict'; - -var md5 = require('create-hash/md5'); -var RIPEMD160 = 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); +},{"../../is-buffer/index.js":897}],923:[function(require,module,exports){ +var md5 = require('create-hash/md5') +var RIPEMD160 = 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, @@ -141979,101 +150141,97 @@ var sizes = { sha512: 64, rmd160: 20, ripemd160: 20 -}; +} -function Hmac(alg, key, saltLen) { - var hash = getDigest(alg); - var blocksize = alg === 'sha512' || alg === 'sha384' ? 128 : 64; +function Hmac (alg, key, saltLen) { + var hash = getDigest(alg) + var blocksize = (alg === 'sha512' || alg === 'sha384') ? 128 : 64 if (key.length > blocksize) { - key = hash(key); + key = hash(key) } else if (key.length < blocksize) { - key = Buffer.concat([key, ZEROS], blocksize); + key = Buffer.concat([key, ZEROS], blocksize) } - var ipad = Buffer.allocUnsafe(blocksize + sizes[alg]); - var opad = Buffer.allocUnsafe(blocksize + sizes[alg]); + 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; + 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]; + 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); -}; + 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(); +function getDigest (alg) { + function shaFunc (data) { + return sha(alg).update(data).digest() } - function rmd160Func(data) { - return new RIPEMD160().update(data).digest(); + function rmd160Func (data) { + return new RIPEMD160().update(data).digest() } - if (alg === 'rmd160' || alg === 'ripemd160') return rmd160Func; - if (alg === 'md5') return md5; - return shaFunc; + if (alg === 'rmd160' || alg === 'ripemd160') return rmd160Func + if (alg === 'md5') return md5 + return shaFunc } -function pbkdf2(password, salt, iterations, keylen, digest) { - checkParameters(password, salt, iterations, keylen); +function pbkdf2 (password, salt, iterations, keylen, digest) { + checkParameters(password, salt, iterations, keylen) - if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding); - if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding); + if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding) + if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding) - digest = digest || 'sha1'; + digest = digest || 'sha1' - var hmac = new Hmac(digest, password, salt.length); + 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 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); + 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); + block1.writeUInt32BE(i, salt.length) - var T = hmac.run(block1, hmac.ipad1); - var U = T; + 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]; - } + U = hmac.run(U, hmac.ipad2) + for (var k = 0; k < hLen; k++) T[k] ^= U[k] } - T.copy(DK, destPos); - destPos += hLen; + T.copy(DK, destPos) + destPos += hLen } - return DK; + return DK } -module.exports = pbkdf2; +module.exports = pbkdf2 -},{"./default-encoding":907,"./precondition":908,"create-hash/md5":824,"ripemd160":935,"safe-buffer":937,"sha.js":946}],910:[function(require,module,exports){ +},{"./default-encoding":921,"./precondition":922,"create-hash/md5":838,"ripemd160":949,"safe-buffer":951,"sha.js":960}],924:[function(require,module,exports){ arguments[4][263][0].apply(exports,arguments) -},{"_process":911,"dup":263}],911:[function(require,module,exports){ -'use strict'; - +},{"_process":925,"dup":263}],925:[function(require,module,exports){ // shim for using process in browser var process = module.exports = {}; @@ -142088,7 +150246,7 @@ var cachedClearTimeout; function defaultSetTimout() { throw new Error('setTimeout has not been defined'); } -function defaultClearTimeout() { +function defaultClearTimeout () { throw new Error('clearTimeout has not been defined'); } (function () { @@ -142110,7 +150268,7 @@ function defaultClearTimeout() { } catch (e) { cachedClearTimeout = defaultClearTimeout; } -})(); +} ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { //normal enviroments in sane situations @@ -142124,15 +150282,17 @@ function runTimeout(fun) { try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); - } catch (e) { + } 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) { + } 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) { @@ -142147,16 +150307,19 @@ function runClearTimeout(marker) { try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); - } catch (e) { + } 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) { + } 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; @@ -142186,7 +150349,7 @@ function drainQueue() { draining = true; var len = queue.length; - while (len) { + while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { @@ -142242,443 +150405,417 @@ process.emit = noop; process.prependListener = noop; process.prependOnceListener = noop; -process.listeners = function (name) { - return []; -}; +process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); }; -process.cwd = function () { - return '/'; -}; +process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; -process.umask = function () { - return 0; -}; +process.umask = function() { return 0; }; -},{}],912:[function(require,module,exports){ -'use strict'; - -exports.publicEncrypt = require('./publicEncrypt'); -exports.privateDecrypt = require('./privateDecrypt'); +},{}],926:[function(require,module,exports){ +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); -}; +exports.privateEncrypt = function privateEncrypt (key, buf) { + return exports.publicEncrypt(key, buf, true) +} -},{"./privateDecrypt":914,"./publicEncrypt":915}],913:[function(require,module,exports){ -'use strict'; +exports.publicDecrypt = function publicDecrypt (key, buf) { + return exports.privateDecrypt(key, buf, true) +} -var createHash = require('create-hash'); -var Buffer = require('safe-buffer').Buffer; +},{"./privateDecrypt":928,"./publicEncrypt":929}],927:[function(require,module,exports){ +var createHash = require('create-hash') +var Buffer = require('safe-buffer').Buffer module.exports = function (seed, len) { - var t = Buffer.alloc(0); - var i = 0; - var c; + var t = Buffer.alloc(0) + var i = 0 + var c while (t.length < len) { - c = i2ops(i++); - t = Buffer.concat([t, createHash('sha1').update(seed).update(c).digest()]); + c = i2ops(i++) + t = Buffer.concat([t, createHash('sha1').update(seed).update(c).digest()]) } - return t.slice(0, len); -}; - -function i2ops(c) { - var out = Buffer.allocUnsafe(4); - out.writeUInt32BE(c, 0); - return out; + return t.slice(0, len) } -},{"create-hash":823,"safe-buffer":937}],914:[function(require,module,exports){ -'use strict'; +function i2ops (c) { + var out = Buffer.allocUnsafe(4) + out.writeUInt32BE(c, 0) + return out +} -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'); -var Buffer = require('safe-buffer').Buffer; +},{"create-hash":837,"safe-buffer":951}],928:[function(require,module,exports){ +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') +var Buffer = require('safe-buffer').Buffer -module.exports = function privateDecrypt(privateKey, enc, reverse) { - var padding; +module.exports = function privateDecrypt (privateKey, enc, reverse) { + var padding if (privateKey.padding) { - padding = privateKey.padding; + padding = privateKey.padding } else if (reverse) { - padding = 1; + padding = 1 } else { - padding = 4; + padding = 4 } - var key = parseKeys(privateKey); - var k = key.modulus.byteLength(); + var key = parseKeys(privateKey) + var k = key.modulus.byteLength() if (enc.length > k || new BN(enc).cmp(key.modulus) >= 0) { - throw new Error('decryption error'); + throw new Error('decryption error') } - var msg; + var msg if (reverse) { - msg = withPublic(new BN(enc), key); + msg = withPublic(new BN(enc), key) } else { - msg = crt(enc, key); + msg = crt(enc, key) } - var zBuffer = Buffer.alloc(k - msg.length); - msg = Buffer.concat([zBuffer, msg], k); + var zBuffer = Buffer.alloc(k - msg.length) + msg = Buffer.concat([zBuffer, msg], k) if (padding === 4) { - return oaep(key, msg); + return oaep(key, msg) } else if (padding === 1) { - return pkcs1(key, msg, reverse); + return pkcs1(key, msg, reverse) } else if (padding === 3) { - return msg; + return msg } else { - throw new Error('unknown padding'); + throw new Error('unknown padding') } -}; +} -function oaep(key, msg) { - var k = key.modulus.byteLength(); - var iHash = createHash('sha1').update(Buffer.alloc(0)).digest(); - var hLen = iHash.length; +function oaep (key, msg) { + var k = key.modulus.byteLength() + var iHash = createHash('sha1').update(Buffer.alloc(0)).digest() + var hLen = iHash.length if (msg[0] !== 0) { - throw new Error('decryption error'); + 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)); + 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'); + throw new Error('decryption error') } - var i = hLen; + var i = hLen while (db[i] === 0) { - i++; + i++ } if (db[i++] !== 1) { - throw new Error('decryption error'); + throw new Error('decryption error') } - return db.slice(i); + return db.slice(i) } -function pkcs1(key, msg, reverse) { - var p1 = msg.slice(0, 2); - var i = 2; - var status = 0; +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; + status++ + break } } - var ps = msg.slice(2, i - 1); + var ps = msg.slice(2, i - 1) - if (p1.toString('hex') !== '0002' && !reverse || p1.toString('hex') !== '0001' && reverse) { - status++; + if ((p1.toString('hex') !== '0002' && !reverse) || (p1.toString('hex') !== '0001' && reverse)) { + status++ } if (ps.length < 8) { - status++; + status++ } if (status) { - throw new Error('decryption error'); + throw new Error('decryption error') } - return msg.slice(i); + return msg.slice(i) } -function compare(a, b) { - a = Buffer.from(a); - b = Buffer.from(b); - var dif = 0; - var len = a.length; +function compare (a, b) { + a = Buffer.from(a) + b = Buffer.from(b) + var dif = 0 + var len = a.length if (a.length !== b.length) { - dif++; - len = Math.min(a.length, b.length); + dif++ + len = Math.min(a.length, b.length) } - var i = -1; + var i = -1 while (++i < len) { - dif += a[i] ^ b[i]; + dif += (a[i] ^ b[i]) } - return dif; + return dif } -},{"./mgf":913,"./withPublic":916,"./xor":917,"bn.js":367,"browserify-rsa":390,"create-hash":823,"parse-asn1":904,"safe-buffer":937}],915:[function(require,module,exports){ -'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 Buffer = require('safe-buffer').Buffer; +},{"./mgf":927,"./withPublic":930,"./xor":931,"bn.js":381,"browserify-rsa":404,"create-hash":837,"parse-asn1":918,"safe-buffer":951}],929:[function(require,module,exports){ +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 Buffer = require('safe-buffer').Buffer -module.exports = function publicEncrypt(publicKey, msg, reverse) { - var padding; +module.exports = function publicEncrypt (publicKey, msg, reverse) { + var padding if (publicKey.padding) { - padding = publicKey.padding; + padding = publicKey.padding } else if (reverse) { - padding = 1; + padding = 1 } else { - padding = 4; + padding = 4 } - var key = parseKeys(publicKey); - var paddedMsg; + var key = parseKeys(publicKey) + var paddedMsg if (padding === 4) { - paddedMsg = oaep(key, msg); + paddedMsg = oaep(key, msg) } else if (padding === 1) { - paddedMsg = pkcs1(key, msg, reverse); + paddedMsg = pkcs1(key, msg, reverse) } else if (padding === 3) { - paddedMsg = new BN(msg); + paddedMsg = new BN(msg) if (paddedMsg.cmp(key.modulus) >= 0) { - throw new Error('data too long for modulus'); + throw new Error('data too long for modulus') } } else { - throw new Error('unknown padding'); + throw new Error('unknown padding') } if (reverse) { - return crt(paddedMsg, key); + return crt(paddedMsg, key) } else { - return withPublic(paddedMsg, key); + return withPublic(paddedMsg, key) } -}; +} -function oaep(key, msg) { - var k = key.modulus.byteLength(); - var mLen = msg.length; - var iHash = createHash('sha1').update(Buffer.alloc(0)).digest(); - var hLen = iHash.length; - var hLen2 = 2 * hLen; +function oaep (key, msg) { + var k = key.modulus.byteLength() + var mLen = msg.length + var iHash = createHash('sha1').update(Buffer.alloc(0)).digest() + var hLen = iHash.length + var hLen2 = 2 * hLen if (mLen > k - hLen2 - 2) { - throw new Error('message too long'); - } - var ps = Buffer.alloc(k - mLen - hLen2 - 2); - var dblen = k - hLen - 1; - var seed = randomBytes(hLen); - var maskedDb = xor(Buffer.concat([iHash, ps, Buffer.alloc(1, 1), msg], dblen), mgf(seed, dblen)); - var maskedSeed = xor(seed, mgf(maskedDb, hLen)); - return new BN(Buffer.concat([Buffer.alloc(1), maskedSeed, maskedDb], k)); -} -function pkcs1(key, msg, reverse) { - var mLen = msg.length; - var k = key.modulus.byteLength(); + throw new Error('message too long') + } + var ps = Buffer.alloc(k - mLen - hLen2 - 2) + var dblen = k - hLen - 1 + var seed = randomBytes(hLen) + var maskedDb = xor(Buffer.concat([iHash, ps, Buffer.alloc(1, 1), msg], dblen), mgf(seed, dblen)) + var maskedSeed = xor(seed, mgf(maskedDb, hLen)) + return new BN(Buffer.concat([Buffer.alloc(1), 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'); + throw new Error('message too long') } - var ps; + var ps if (reverse) { - ps = Buffer.alloc(k - mLen - 3, 0xff); + ps = Buffer.alloc(k - mLen - 3, 0xff) } else { - ps = nonZero(k - mLen - 3); + ps = nonZero(k - mLen - 3) } - return new BN(Buffer.concat([Buffer.from([0, reverse ? 1 : 2]), ps, Buffer.alloc(1), msg], k)); + return new BN(Buffer.concat([Buffer.from([0, reverse ? 1 : 2]), ps, Buffer.alloc(1), msg], k)) } -function nonZero(len) { - var out = Buffer.allocUnsafe(len); - var i = 0; - var cache = randomBytes(len * 2); - var cur = 0; - var num; +function nonZero (len) { + var out = Buffer.allocUnsafe(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; + cache = randomBytes(len * 2) + cur = 0 } - num = cache[cur++]; + num = cache[cur++] if (num) { - out[i++] = num; + out[i++] = num } } - return out; + return out } -},{"./mgf":913,"./withPublic":916,"./xor":917,"bn.js":367,"browserify-rsa":390,"create-hash":823,"parse-asn1":904,"randombytes":918,"safe-buffer":937}],916:[function(require,module,exports){ -'use strict'; - -var BN = require('bn.js'); -var Buffer = require('safe-buffer').Buffer; +},{"./mgf":927,"./withPublic":930,"./xor":931,"bn.js":381,"browserify-rsa":404,"create-hash":837,"parse-asn1":918,"randombytes":932,"safe-buffer":951}],930:[function(require,module,exports){ +var BN = require('bn.js') +var Buffer = require('safe-buffer').Buffer -function withPublic(paddedMsg, key) { - return Buffer.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray()); +function withPublic (paddedMsg, key) { + return Buffer.from(paddedMsg + .toRed(BN.mont(key.modulus)) + .redPow(new BN(key.publicExponent)) + .fromRed() + .toArray()) } -module.exports = withPublic; +module.exports = withPublic -},{"bn.js":367,"safe-buffer":937}],917:[function(require,module,exports){ -"use strict"; - -module.exports = function xor(a, b) { - var len = a.length; - var i = -1; +},{"bn.js":381,"safe-buffer":951}],931:[function(require,module,exports){ +module.exports = function xor (a, b) { + var len = a.length + var i = -1 while (++i < len) { - a[i] ^= b[i]; + a[i] ^= b[i] } - return a; -}; + return a +} -},{}],918:[function(require,module,exports){ +},{}],932:[function(require,module,exports){ arguments[4][264][0].apply(exports,arguments) -},{"_process":911,"dup":264,"safe-buffer":937}],919:[function(require,module,exports){ +},{"_process":925,"dup":264,"safe-buffer":951}],933:[function(require,module,exports){ (function (process,global){ -'use strict'; +'use strict' -function oldBrowser() { - throw new Error('secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11'); +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'); +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'); + throw new TypeError('offset must be a uint32') } if (offset > kBufferMaxLength || offset > length) { - throw new RangeError('offset out of range'); + 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'); +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'); + throw new TypeError('size must be a uint32') } if (size + offset > length || size > kBufferMaxLength) { - throw new RangeError('buffer too small'); + throw new RangeError('buffer too small') } } -if (crypto && crypto.getRandomValues || !process.browser) { - exports.randomFill = randomFill; - exports.randomFillSync = randomFillSync; +if ((crypto && crypto.getRandomValues) || !process.browser) { + exports.randomFill = randomFill + exports.randomFillSync = randomFillSync } else { - exports.randomFill = oldBrowser; - exports.randomFillSync = oldBrowser; + exports.randomFill = oldBrowser + exports.randomFillSync = oldBrowser } -function randomFill(buf, offset, size, cb) { +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'); + throw new TypeError('"buf" argument must be a Buffer or Uint8Array') } if (typeof offset === 'function') { - cb = offset; - offset = 0; - size = buf.length; + cb = offset + offset = 0 + size = buf.length } else if (typeof size === 'function') { - cb = size; - size = buf.length - offset; + cb = size + size = buf.length - offset } else if (typeof cb !== 'function') { - throw new TypeError('"cb" argument must be a 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); + assertOffset(offset, buf.length) + assertSize(size, offset, buf.length) + return actualFill(buf, offset, size, cb) } -function 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); + var ourBuf = buf.buffer + var uint = new Uint8Array(ourBuf, offset, size) + crypto.getRandomValues(uint) if (cb) { process.nextTick(function () { - cb(null, buf); - }); - return; + cb(null, buf) + }) + return } - return buf; + return buf } if (cb) { randombytes(size, function (err, bytes) { if (err) { - return cb(err); + return cb(err) } - bytes.copy(buf, offset); - cb(null, buf); - }); - return; + bytes.copy(buf, offset) + cb(null, buf) + }) + return } - var bytes = randombytes(size); - bytes.copy(buf, offset); - return buf; + var bytes = randombytes(size) + bytes.copy(buf, offset) + return buf } -function randomFillSync(buf, offset, size) { +function randomFillSync (buf, offset, size) { if (typeof offset === 'undefined') { - offset = 0; + offset = 0 } if (!Buffer.isBuffer(buf) && !(buf instanceof global.Uint8Array)) { - throw new TypeError('"buf" argument must be a Buffer or Uint8Array'); + throw new TypeError('"buf" argument must be a Buffer or Uint8Array') } - assertOffset(offset, buf.length); + assertOffset(offset, buf.length) - if (size === undefined) size = buf.length - offset; + if (size === undefined) size = buf.length - offset - assertSize(size, offset, buf.length); + assertSize(size, offset, buf.length) - return actualFill(buf, offset, size); + return actualFill(buf, offset, size) } }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"_process":911,"randombytes":918,"safe-buffer":937}],920:[function(require,module,exports){ -'use strict'; - +},{"_process":925,"randombytes":932,"safe-buffer":951}],934:[function(require,module,exports){ module.exports = require('./lib/_stream_duplex.js'); -},{"./lib/_stream_duplex.js":921}],921:[function(require,module,exports){ +},{"./lib/_stream_duplex.js":935}],935:[function(require,module,exports){ arguments[4][265][0].apply(exports,arguments) -},{"./_stream_readable":923,"./_stream_writable":925,"core-util-is":821,"dup":265,"inherits":882,"process-nextick-args":910}],922:[function(require,module,exports){ +},{"./_stream_readable":937,"./_stream_writable":939,"core-util-is":835,"dup":265,"inherits":896,"process-nextick-args":924}],936:[function(require,module,exports){ arguments[4][266][0].apply(exports,arguments) -},{"./_stream_transform":924,"core-util-is":821,"dup":266,"inherits":882}],923:[function(require,module,exports){ +},{"./_stream_transform":938,"core-util-is":835,"dup":266,"inherits":896}],937:[function(require,module,exports){ arguments[4][267][0].apply(exports,arguments) -},{"./_stream_duplex":921,"./internal/streams/BufferList":926,"./internal/streams/destroy":927,"./internal/streams/stream":928,"_process":911,"core-util-is":821,"dup":267,"events":861,"inherits":882,"isarray":885,"process-nextick-args":910,"safe-buffer":937,"string_decoder/":956,"util":369}],924:[function(require,module,exports){ +},{"./_stream_duplex":935,"./internal/streams/BufferList":940,"./internal/streams/destroy":941,"./internal/streams/stream":942,"_process":925,"core-util-is":835,"dup":267,"events":875,"inherits":896,"isarray":899,"process-nextick-args":924,"safe-buffer":951,"string_decoder/":970,"util":383}],938:[function(require,module,exports){ arguments[4][268][0].apply(exports,arguments) -},{"./_stream_duplex":921,"core-util-is":821,"dup":268,"inherits":882}],925:[function(require,module,exports){ +},{"./_stream_duplex":935,"core-util-is":835,"dup":268,"inherits":896}],939:[function(require,module,exports){ arguments[4][269][0].apply(exports,arguments) -},{"./_stream_duplex":921,"./internal/streams/destroy":927,"./internal/streams/stream":928,"_process":911,"core-util-is":821,"dup":269,"inherits":882,"process-nextick-args":910,"safe-buffer":937,"timers":958,"util-deprecate":989}],926:[function(require,module,exports){ +},{"./_stream_duplex":935,"./internal/streams/destroy":941,"./internal/streams/stream":942,"_process":925,"core-util-is":835,"dup":269,"inherits":896,"process-nextick-args":924,"safe-buffer":951,"timers":972,"util-deprecate":1003}],940:[function(require,module,exports){ arguments[4][270][0].apply(exports,arguments) -},{"dup":270,"safe-buffer":937,"util":369}],927:[function(require,module,exports){ +},{"dup":270,"safe-buffer":951,"util":383}],941:[function(require,module,exports){ arguments[4][271][0].apply(exports,arguments) -},{"dup":271,"process-nextick-args":910}],928:[function(require,module,exports){ +},{"dup":271,"process-nextick-args":924}],942:[function(require,module,exports){ arguments[4][272][0].apply(exports,arguments) -},{"dup":272,"events":861}],929:[function(require,module,exports){ -'use strict'; - -module.exports = require('./readable').PassThrough; +},{"dup":272,"events":875}],943:[function(require,module,exports){ +module.exports = require('./readable').PassThrough -},{"./readable":930}],930:[function(require,module,exports){ +},{"./readable":944}],944:[function(require,module,exports){ arguments[4][273][0].apply(exports,arguments) -},{"./lib/_stream_duplex.js":921,"./lib/_stream_passthrough.js":922,"./lib/_stream_readable.js":923,"./lib/_stream_transform.js":924,"./lib/_stream_writable.js":925,"dup":273}],931:[function(require,module,exports){ -'use strict'; - -module.exports = require('./readable').Transform; - -},{"./readable":930}],932:[function(require,module,exports){ -'use strict'; +},{"./lib/_stream_duplex.js":935,"./lib/_stream_passthrough.js":936,"./lib/_stream_readable.js":937,"./lib/_stream_transform.js":938,"./lib/_stream_writable.js":939,"dup":273}],945:[function(require,module,exports){ +module.exports = require('./readable').Transform +},{"./readable":944}],946:[function(require,module,exports){ module.exports = require('./lib/_stream_writable.js'); -},{"./lib/_stream_writable.js":925}],933:[function(require,module,exports){ -"use strict"; - +},{"./lib/_stream_writable.js":939}],947:[function(require,module,exports){ /** * Copyright (c) 2014-present, Facebook, Inc. * @@ -142688,13 +150825,12 @@ module.exports = require('./lib/_stream_writable.js'); // This method of obtaining a reference to the global object needs to be // kept identical to the way it is obtained in runtime.js -var g = function () { - return this; -}() || Function("return this")(); +var g = (function() { return this })() || Function("return this")(); // Use `getOwnPropertyNames` because not all browsers support calling // `hasOwnProperty` on the global `self` object in a worker. See #183. -var hadRuntime = g.regeneratorRuntime && Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; +var hadRuntime = g.regeneratorRuntime && + Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; // Save the old regeneratorRuntime in case it needs to be restored later. var oldRuntime = hadRuntime && g.regeneratorRuntime; @@ -142711,16 +150847,12 @@ if (hadRuntime) { // Remove the global property added by runtime.js. try { delete g.regeneratorRuntime; - } catch (e) { + } catch(e) { g.regeneratorRuntime = undefined; } } -},{"./runtime":934}],934:[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; }; - +},{"./runtime":948}],948:[function(require,module,exports){ /** * Copyright (c) 2014-present, Facebook, Inc. * @@ -142728,7 +150860,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * LICENSE file in the root directory of this source tree. */ -!function (global) { +!(function(global) { "use strict"; var Op = Object.prototype; @@ -142739,7 +150871,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - var inModule = (typeof module === "undefined" ? "undefined" : _typeof(module)) === "object"; + var inModule = typeof module === "object"; var runtime = global.regeneratorRuntime; if (runtime) { if (inModule) { @@ -142814,36 +150946,42 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var getProto = Object.getPrototypeOf; var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { // This environment has a native %IteratorPrototype%; use it instead // of the polyfill. IteratorPrototype = NativeIteratorPrototype; } - var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; GeneratorFunctionPrototype.constructor = GeneratorFunction; - GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function (method) { - prototype[method] = function (arg) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { return this._invoke(method, arg); }; }); } - runtime.isGeneratorFunction = function (genFun) { + runtime.isGeneratorFunction = function(genFun) { var ctor = typeof genFun === "function" && genFun.constructor; - return ctor ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" : false; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; }; - runtime.mark = function (genFun) { + runtime.mark = function(genFun) { if (Object.setPrototypeOf) { Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); } else { @@ -142860,7 +150998,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test // `hasOwn.call(value, "__await")` to determine if the yielded value is // meant to be awaited. - runtime.awrap = function (arg) { + runtime.awrap = function(arg) { return { __await: arg }; }; @@ -142872,15 +151010,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } else { var result = record.arg; var value = result.value; - if (value && (typeof value === "undefined" ? "undefined" : _typeof(value)) === "object" && hasOwn.call(value, "__await")) { - return Promise.resolve(value.__await).then(function (value) { + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { invoke("next", value, resolve, reject); - }, function (err) { + }, function(err) { invoke("throw", err, resolve, reject); }); } - return Promise.resolve(value).then(function (unwrapped) { + return Promise.resolve(value).then(function(unwrapped) { // When a yielded Promise is resolved, its final value becomes // the .value of the Promise<{value,done}> result for the // current iteration. If the Promise is rejected, however, the @@ -142906,28 +151046,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol function enqueue(method, arg) { function callInvokeWithMethodAndArg() { - return new Promise(function (resolve, reject) { + return new Promise(function(resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); } // Define the unified helper method that is used to implement .next, @@ -142944,13 +151086,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Note that simple async functions are implemented on top of // AsyncIterator objects; they just return a Promise for the value of // the final result produced by the iterator. - runtime.async = function (innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList)); + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); - return runtime.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function (result) { - return result.done ? result.value : iter.next(); - }); + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); }; function makeInvokeMethod(innerFn, self, context) { @@ -142988,6 +151133,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Setting context._sent for legacy support of Babel's // function.sent implementation. context.sent = context._sent = context.arg; + } else if (context.method === "throw") { if (state === GenStateSuspendedStart) { state = GenStateCompleted; @@ -142995,6 +151141,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } context.dispatchException(context.arg); + } else if (context.method === "return") { context.abrupt("return", context.arg); } @@ -143005,7 +151152,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (record.type === "normal") { // If an exception is thrown from innerFn, we leave state === // GenStateExecuting and loop back for another invocation. - state = context.done ? GenStateCompleted : GenStateSuspendedYield; + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; if (record.arg === ContinueSentinel) { continue; @@ -143015,6 +151164,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol value: record.arg, done: context.done }; + } else if (record.type === "throw") { state = GenStateCompleted; // Dispatch the exception by looping back around to the @@ -143053,7 +151203,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } context.method = "throw"; - context.arg = new TypeError("The iterator does not provide a 'throw' method"); + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); } return ContinueSentinel; @@ -143070,7 +151221,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var info = record.arg; - if (!info) { + if (! info) { context.method = "throw"; context.arg = new TypeError("iterator result is not an object"); context.delegate = null; @@ -143095,6 +151246,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol context.method = "next"; context.arg = undefined; } + } else { // Re-yield the result returned by the delegate method. return info; @@ -143117,11 +151269,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // iterator prototype chain incorrectly implement this, causing the Generator // object to not be returned from this call. This ensures that doesn't happen. // See https://github.com/facebook/regenerator/issues/274 for more details. - Gp[iteratorSymbol] = function () { + Gp[iteratorSymbol] = function() { return this; }; - Gp.toString = function () { + Gp.toString = function() { return "[object Generator]"; }; @@ -143156,7 +151308,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this.reset(true); } - runtime.keys = function (object) { + runtime.keys = function(object) { var keys = []; for (var key in object) { keys.push(key); @@ -143195,8 +151347,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { + var i = -1, next = function next() { while (++i < iterable.length) { if (hasOwn.call(iterable, i)) { next.value = iterable[i]; @@ -143227,7 +151378,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol Context.prototype = { constructor: Context, - reset: function reset(skipTempReset) { + reset: function(skipTempReset) { this.prev = 0; this.next = 0; // Resetting context._sent for legacy support of Babel's @@ -143244,14 +151395,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (!skipTempReset) { for (var name in this) { // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { this[name] = undefined; } } } }, - stop: function stop() { + stop: function() { this.done = true; var rootEntry = this.tryEntries[0]; @@ -143263,7 +151416,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.rval; }, - dispatchException: function dispatchException(exception) { + dispatchException: function(exception) { if (this.done) { throw exception; } @@ -143281,7 +151434,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol context.arg = undefined; } - return !!caught; + return !! caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { @@ -143305,14 +151458,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } else if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } + } else if (hasCatch) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } + } else if (hasFinally) { if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } + } else { throw new Error("try statement without catch or finally"); } @@ -143320,16 +151476,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }, - abrupt: function abrupt(type, arg) { + abrupt: function(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } - if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { // Ignore the finally entry if control is not jumping to a // location outside the try/catch block. finallyEntry = null; @@ -143348,12 +151510,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.complete(record); }, - complete: function complete(record, afterLoc) { + complete: function(record, afterLoc) { if (record.type === "throw") { throw record.arg; } - if (record.type === "break" || record.type === "continue") { + if (record.type === "break" || + record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { this.rval = this.arg = record.arg; @@ -143366,7 +151529,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return ContinueSentinel; }, - finish: function finish(finallyLoc) { + finish: function(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) { @@ -143377,7 +151540,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }, - "catch": function _catch(tryLoc) { + "catch": function(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { @@ -143395,7 +151558,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol throw new Error("illegal catch attempt"); }, - delegateYield: function delegateYield(iterable, resultName, nextLoc) { + delegateYield: function(iterable, resultName, nextLoc) { this.delegate = { iterator: values(iterable), resultName: resultName, @@ -143411,297 +151574,289 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return ContinueSentinel; } }; -}( -// In sloppy mode, unbound `this` refers to the global object, fallback to -// Function constructor if we're in global strict mode. That is sadly a form -// of indirect eval which violates Content Security Policy. -function () { - return this; -}() || Function("return this")()); +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { return this })() || Function("return this")() +); -},{}],935:[function(require,module,exports){ +},{}],949:[function(require,module,exports){ arguments[4][274][0].apply(exports,arguments) -},{"buffer":401,"dup":274,"hash-base":863,"inherits":882}],936:[function(require,module,exports){ +},{"buffer":415,"dup":274,"hash-base":877,"inherits":896}],950:[function(require,module,exports){ arguments[4][275][0].apply(exports,arguments) -},{"assert":335,"dup":275,"safe-buffer":937}],937:[function(require,module,exports){ -arguments[4][276][0].apply(exports,arguments) -},{"buffer":401,"dup":276}],938:[function(require,module,exports){ +},{"assert":349,"dup":275,"safe-buffer":951}],951:[function(require,module,exports){ +arguments[4][277][0].apply(exports,arguments) +},{"buffer":415,"dup":277}],952:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var crypto = require('crypto'); +var crypto = require('crypto') /* eslint-disable camelcase */ -var MAX_VALUE = 0x7fffffff; +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'); +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'); + 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); + 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 + 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 B = crypto.pbkdf2Sync(key, salt, 1, p * 128 * r, 'sha256') - var tickCallback; + var tickCallback if (progressCallback) { - var totalOps = p * N * 2; - var currentOp = 0; + var totalOps = p * N * 2 + var currentOp = 0 - tickCallback = function tickCallback() { - ++currentOp; + tickCallback = function () { + ++currentOp // send progress notifications once every 1,000 ops if (currentOp % 1000 === 0) { progressCallback({ current: currentOp, total: totalOps, - percent: currentOp / totalOps * 100.0 - }); + percent: (currentOp / totalOps) * 100.0 + }) } - }; + } } for (var i = 0; i < p; i++) { - smix(B, i * 128 * r, r, N, V, XY); + smix(B, i * 128 * r, r, N, V, XY) } - return crypto.pbkdf2Sync(key, B, 1, dkLen, 'sha256'); + 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; + function smix (B, Bi, r, N, V, XY) { + var Xi = 0 + var Yi = 128 * r + var i - B.copy(XY, Xi, Bi, Bi + Yi); + 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); + XY.copy(V, i * Yi, Xi, Xi + Yi) + blockmix_salsa8(XY, Xi, Yi, r) - if (tickCallback) tickCallback(); + 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); + 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(); + if (tickCallback) tickCallback() } - XY.copy(B, Bi, Xi, Xi + Yi); + XY.copy(B, Bi, Xi, Xi + Yi) } - function blockmix_salsa8(BY, Bi, Yi, r) { - var i; + function blockmix_salsa8 (BY, Bi, Yi, r) { + var i - arraycopy(BY, Bi + (2 * r - 1) * 64, _X, 0, 64); + 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); + 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); + 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); + arraycopy(BY, Yi + (i * 2 + 1) * 64, BY, Bi + (i + r) * 64, 64) } } - function R(a, b) { - return a << b | a >>> 32 - b; + function R (a, b) { + return (a << b) | (a >>> (32 - b)) } - function salsa20_8(B) { - var i; + 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[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); + 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; + 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) { + function blockxor (S, Si, D, Di, len) { for (var i = 0; i < len; i++) { - D[Di + i] ^= S[Si + i]; + D[Di + i] ^= S[Si + i] } } } -function arraycopy(src, srcPos, dest, destPos, length) { +function arraycopy (src, srcPos, dest, destPos, length) { if (Buffer.isBuffer(src) && Buffer.isBuffer(dest)) { - src.copy(dest, destPos, srcPos, srcPos + length); + src.copy(dest, destPos, srcPos, srcPos + length) } else { while (length--) { - dest[destPos++] = src[srcPos++]; + dest[destPos++] = src[srcPos++] } } } -module.exports = scrypt; +module.exports = scrypt }).call(this,require("buffer").Buffer) -},{"buffer":401,"crypto":827}],939:[function(require,module,exports){ -arguments[4][277][0].apply(exports,arguments) -},{"./lib":943,"./lib/elliptic":942,"dup":277}],940:[function(require,module,exports){ +},{"buffer":415,"crypto":841}],953:[function(require,module,exports){ +arguments[4][279][0].apply(exports,arguments) +},{"./lib":957,"./lib/elliptic":956,"dup":279}],954:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var toString = Object.prototype.toString; +'use strict' +var toString = Object.prototype.toString // TypeError exports.isArray = function (value, message) { - if (!Array.isArray(value)) throw TypeError(message); -}; + if (!Array.isArray(value)) throw TypeError(message) +} exports.isBoolean = function (value, message) { - if (toString.call(value) !== '[object Boolean]') throw TypeError(message); -}; + if (toString.call(value) !== '[object Boolean]') throw TypeError(message) +} exports.isBuffer = function (value, message) { - if (!Buffer.isBuffer(value)) throw TypeError(message); -}; + if (!Buffer.isBuffer(value)) throw TypeError(message) +} exports.isFunction = function (value, message) { - if (toString.call(value) !== '[object Function]') throw TypeError(message); -}; + if (toString.call(value) !== '[object Function]') throw TypeError(message) +} exports.isNumber = function (value, message) { - if (toString.call(value) !== '[object Number]') throw TypeError(message); -}; + if (toString.call(value) !== '[object Number]') throw TypeError(message) +} exports.isObject = function (value, message) { - if (toString.call(value) !== '[object Object]') throw TypeError(message); -}; + if (toString.call(value) !== '[object Object]') throw TypeError(message) +} // RangeError exports.isBufferLength = function (buffer, length, message) { - if (buffer.length !== length) throw RangeError(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); -}; + if (buffer.length !== length1 && buffer.length !== length2) throw RangeError(message) +} exports.isLengthGTZero = function (value, message) { - if (value.length === 0) throw RangeError(message); -}; + if (value.length === 0) throw RangeError(message) +} exports.isNumberInInterval = function (number, x, y, message) { - if (number <= x || number >= y) throw RangeError(message); -}; + if (number <= x || number >= y) throw RangeError(message) +} }).call(this,{"isBuffer":require("../../is-buffer/index.js")}) -},{"../../is-buffer/index.js":883}],941:[function(require,module,exports){ -arguments[4][279][0].apply(exports,arguments) -},{"bip66":366,"dup":279,"safe-buffer":937}],942:[function(require,module,exports){ -arguments[4][280][0].apply(exports,arguments) -},{"../messages.json":944,"bn.js":367,"create-hash":823,"dup":280,"elliptic":841,"safe-buffer":937}],943:[function(require,module,exports){ +},{"../../is-buffer/index.js":897}],955:[function(require,module,exports){ arguments[4][281][0].apply(exports,arguments) -},{"./assert":940,"./der":941,"./messages.json":944,"dup":281}],944:[function(require,module,exports){ +},{"bip66":380,"dup":281,"safe-buffer":951}],956:[function(require,module,exports){ arguments[4][282][0].apply(exports,arguments) -},{"dup":282}],945:[function(require,module,exports){ +},{"../messages.json":958,"bn.js":381,"create-hash":837,"dup":282,"elliptic":855,"safe-buffer":951}],957:[function(require,module,exports){ arguments[4][283][0].apply(exports,arguments) -},{"dup":283,"safe-buffer":937}],946:[function(require,module,exports){ +},{"./assert":954,"./der":955,"./messages.json":958,"dup":283}],958:[function(require,module,exports){ arguments[4][284][0].apply(exports,arguments) -},{"./sha":947,"./sha1":948,"./sha224":949,"./sha256":950,"./sha384":951,"./sha512":952,"dup":284}],947:[function(require,module,exports){ +},{"dup":284}],959:[function(require,module,exports){ arguments[4][285][0].apply(exports,arguments) -},{"./hash":945,"dup":285,"inherits":882,"safe-buffer":937}],948:[function(require,module,exports){ +},{"dup":285,"safe-buffer":951}],960:[function(require,module,exports){ arguments[4][286][0].apply(exports,arguments) -},{"./hash":945,"dup":286,"inherits":882,"safe-buffer":937}],949:[function(require,module,exports){ +},{"./sha":961,"./sha1":962,"./sha224":963,"./sha256":964,"./sha384":965,"./sha512":966,"dup":286}],961:[function(require,module,exports){ arguments[4][287][0].apply(exports,arguments) -},{"./hash":945,"./sha256":950,"dup":287,"inherits":882,"safe-buffer":937}],950:[function(require,module,exports){ +},{"./hash":959,"dup":287,"inherits":896,"safe-buffer":951}],962:[function(require,module,exports){ arguments[4][288][0].apply(exports,arguments) -},{"./hash":945,"dup":288,"inherits":882,"safe-buffer":937}],951:[function(require,module,exports){ +},{"./hash":959,"dup":288,"inherits":896,"safe-buffer":951}],963:[function(require,module,exports){ arguments[4][289][0].apply(exports,arguments) -},{"./hash":945,"./sha512":952,"dup":289,"inherits":882,"safe-buffer":937}],952:[function(require,module,exports){ +},{"./hash":959,"./sha256":964,"dup":289,"inherits":896,"safe-buffer":951}],964:[function(require,module,exports){ arguments[4][290][0].apply(exports,arguments) -},{"./hash":945,"dup":290,"inherits":882,"safe-buffer":937}],953:[function(require,module,exports){ -"use strict"; - -var distance = require("leven"); - -module.exports = function (a, b) { - if (!a || !b || !a.length || !b.length) return 0; - if (a === b) return 1; - var d = distance(a.toLowerCase(), b.toLowerCase()); - var longest = Math.max(a.length, b.length); - return (longest - d) / longest; -}; - -},{"leven":893}],954:[function(require,module,exports){ -'use strict'; - +},{"./hash":959,"dup":290,"inherits":896,"safe-buffer":951}],965:[function(require,module,exports){ +arguments[4][291][0].apply(exports,arguments) +},{"./hash":959,"./sha512":966,"dup":291,"inherits":896,"safe-buffer":951}],966:[function(require,module,exports){ +arguments[4][292][0].apply(exports,arguments) +},{"./hash":959,"dup":292,"inherits":896,"safe-buffer":951}],967:[function(require,module,exports){ +var distance = require("leven") + +module.exports = function(a,b) { + if (!a || !b || !a.length || !b.length) return 0 + if (a === b) return 1 + var d = distance(a.toLowerCase(),b.toLowerCase()) + var longest = Math.max(a.length, b.length) + return (longest-d)/longest +} + +},{"leven":907}],968:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -143738,6 +151893,8 @@ 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. @@ -143745,7 +151902,7 @@ function Stream() { EE.call(this); } -Stream.prototype.pipe = function (dest, options) { +Stream.prototype.pipe = function(dest, options) { var source = this; function ondata(chunk) { @@ -143781,6 +151938,7 @@ Stream.prototype.pipe = function (dest, options) { dest.end(); } + function onclose() { if (didOnEnd) return; didOnEnd = true; @@ -143827,29 +151985,15 @@ Stream.prototype.pipe = function (dest, options) { return dest; }; -},{"events":861,"inherits":882,"readable-stream/duplex.js":920,"readable-stream/passthrough.js":929,"readable-stream/readable.js":930,"readable-stream/transform.js":931,"readable-stream/writable.js":932}],955:[function(require,module,exports){ -'use strict'; - +},{"events":875,"inherits":896,"readable-stream/duplex.js":934,"readable-stream/passthrough.js":943,"readable-stream/readable.js":944,"readable-stream/transform.js":945,"readable-stream/writable.js":946}],969:[function(require,module,exports){ // 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) { +(function() { + var ValueError, create, explicitToImplicit, format, implicitToExplicit, lookup, resolve, + __hasProp = {}.hasOwnProperty, + __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + __slice = [].slice; + + ValueError = (function(_super) { __extends(ValueError, _super); function ValueError(message) { @@ -143859,23 +152003,24 @@ Stream.prototype.pipe = function (dest, options) { ValueError.prototype.name = 'ValueError'; return ValueError; - }(Error); + + })(Error); implicitToExplicit = 'cannot switch from implicit to explicit numbering'; explicitToImplicit = 'cannot switch from explicit to implicit numbering'; - create = function create(transformers) { + create = function(transformers) { if (transformers == null) { transformers = {}; } - return function () { + 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) { + return template.replace(/([{}])\1|[{](.*?)(?:!(.+?))?[}]/g, function(match, literal, key, transformer) { var value, _ref, _ref1; if (literal) { return literal; @@ -143902,7 +152047,7 @@ Stream.prototype.pipe = function (dest, options) { }; }; - lookup = function lookup(object, key) { + lookup = function(object, key) { var match; if (!/^(\d+)([.]|$)/.test(key)) { key = '0.' + key; @@ -143914,7 +152059,7 @@ Stream.prototype.pipe = function (dest, options) { return resolve(object, key); }; - resolve = function resolve(object, key) { + resolve = function(object, key) { var value; value = object[key]; if (typeof value === 'function') { @@ -143928,10 +152073,10 @@ Stream.prototype.pipe = function (dest, options) { format.create = create; - format.extend = function (prototype, transformers) { + format.extend = function(prototype, transformers) { var $format; $format = create(transformers); - prototype.format = function () { + prototype.format = function() { return $format.apply(null, [this].concat(__slice.call(arguments))); }; }; @@ -143943,16 +152088,15 @@ Stream.prototype.pipe = function (dest, options) { } else { window.format = format; } -}).call(undefined); -},{}],956:[function(require,module,exports){ -arguments[4][308][0].apply(exports,arguments) -},{"dup":308,"safe-buffer":937}],957:[function(require,module,exports){ -arguments[4][309][0].apply(exports,arguments) -},{"dup":309,"is-hex-prefixed":884}],958:[function(require,module,exports){ -(function (setImmediate,clearImmediate){ -"use strict"; +}).call(this); +},{}],970:[function(require,module,exports){ +arguments[4][310][0].apply(exports,arguments) +},{"dup":310,"safe-buffer":951}],971:[function(require,module,exports){ +arguments[4][311][0].apply(exports,arguments) +},{"dup":311,"is-hex-prefixed":898}],972:[function(require,module,exports){ +(function (setImmediate,clearImmediate){ var nextTick = require('process/browser.js').nextTick; var apply = Function.prototype.apply; var slice = Array.prototype.slice; @@ -143961,49 +152105,49 @@ var nextImmediateId = 0; // DOM APIs, for completeness -exports.setTimeout = function () { +exports.setTimeout = function() { return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout); }; -exports.setInterval = function () { +exports.setInterval = function() { return new Timeout(apply.call(setInterval, window, arguments), clearInterval); }; -exports.clearTimeout = exports.clearInterval = function (timeout) { - timeout.close(); -}; +exports.clearTimeout = +exports.clearInterval = function(timeout) { timeout.close(); }; function Timeout(id, clearFn) { this._id = id; this._clearFn = clearFn; } -Timeout.prototype.unref = Timeout.prototype.ref = function () {}; -Timeout.prototype.close = function () { +Timeout.prototype.unref = Timeout.prototype.ref = function() {}; +Timeout.prototype.close = function() { this._clearFn.call(window, this._id); }; // Does not start the time, just sets up the members needed. -exports.enroll = function (item, msecs) { +exports.enroll = function(item, msecs) { clearTimeout(item._idleTimeoutId); item._idleTimeout = msecs; }; -exports.unenroll = function (item) { +exports.unenroll = function(item) { clearTimeout(item._idleTimeoutId); item._idleTimeout = -1; }; -exports._unrefActive = exports.active = function (item) { +exports._unrefActive = exports.active = function(item) { clearTimeout(item._idleTimeoutId); var msecs = item._idleTimeout; if (msecs >= 0) { item._idleTimeoutId = setTimeout(function onTimeout() { - if (item._onTimeout) item._onTimeout(); + if (item._onTimeout) + item._onTimeout(); }, msecs); } }; // That's not how node.js implements it but the exposed api is the same. -exports.setImmediate = typeof setImmediate === "function" ? setImmediate : function (fn) { +exports.setImmediate = typeof setImmediate === "function" ? setImmediate : function(fn) { var id = nextImmediateId++; var args = arguments.length < 2 ? false : slice.call(arguments, 1); @@ -144026,12 +152170,11 @@ exports.setImmediate = typeof setImmediate === "function" ? setImmediate : funct return id; }; -exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : function (id) { +exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : function(id) { delete immediateIds[id]; }; - }).call(this,require("timers").setImmediate,require("timers").clearImmediate) -},{"process/browser.js":911,"timers":958}],959:[function(require,module,exports){ +},{"process/browser.js":925,"timers":972}],973:[function(require,module,exports){ 'use strict'; // device list events @@ -144061,8 +152204,7 @@ var WAIT_FOR_SELECTION = exports.WAIT_FOR_SELECTION = 'device-wait_for_selection // this string has different prefix than other constants and it's used as device path var UNREADABLE = exports.UNREADABLE = 'unreadable-device'; - -},{}],960:[function(require,module,exports){ +},{}],974:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144080,9 +152222,7 @@ var _inherits2 = require('babel-runtime/helpers/inherits'); var _inherits3 = _interopRequireDefault(_inherits2); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var TrezorError = exports.TrezorError = function (_Error) { (0, _inherits3.default)(TrezorError, _Error); @@ -144139,8 +152279,7 @@ var WEBUSB_ERROR_MESSAGE = exports.WEBUSB_ERROR_MESSAGE = 'NetworkError: Unable var BACKEND_NO_URL = exports.BACKEND_NO_URL = new TrezorError('Backend_init', 'Url not found'); var NO_COIN_INFO = exports.NO_COIN_INFO = invalidParameter('Coin not found.'); - -},{"babel-runtime/helpers/classCallCheck":348,"babel-runtime/helpers/inherits":350,"babel-runtime/helpers/possibleConstructorReturn":351}],961:[function(require,module,exports){ +},{"babel-runtime/helpers/classCallCheck":362,"babel-runtime/helpers/inherits":364,"babel-runtime/helpers/possibleConstructorReturn":365}],975:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144148,8 +152287,7 @@ var BOOTSTRAP = exports.BOOTSTRAP = 'iframe-bootstrap'; var ERROR = exports.ERROR = 'iframe-error'; var CALL = exports.CALL = 'iframe-call'; var RESPONSE = exports.RESPONSE = 'iframe-response'; - -},{}],962:[function(require,module,exports){ +},{}],976:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144158,8 +152296,7 @@ var UI_EVENT = exports.UI_EVENT = 'UI_EVENT'; var DEVICE_EVENT = exports.DEVICE_EVENT = 'DEVICE_EVENT'; var TRANSPORT_EVENT = exports.TRANSPORT_EVENT = 'TRANSPORT_EVENT'; var RESPONSE_EVENT = exports.RESPONSE_EVENT = 'RESPONSE_EVENT'; - -},{}],963:[function(require,module,exports){ +},{}],977:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144174,8 +152311,7 @@ var HANDSHAKE = exports.HANDSHAKE = 'popup-handshake'; var CLOSE = exports.CLOSE = 'popup-close'; var CLOSED = exports.CLOSED = 'popup-closed'; var CANCEL_POPUP_REQUEST = exports.CANCEL_POPUP_REQUEST = 'ui-cancel-popup-request'; - -},{}],964:[function(require,module,exports){ +},{}],978:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144186,8 +152322,7 @@ var STREAM = exports.STREAM = 'transport-stream'; var REQUEST = exports.REQUEST = 'transport-request_device'; var RECONNECT = exports.RECONNECT = 'transport-reconnect'; var START_PENDING = exports.START_PENDING = 'transport-start_pending'; - -},{}],965:[function(require,module,exports){ +},{}],979:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144242,8 +152377,7 @@ var LOGIN_CHALLENGE_REQUEST = exports.LOGIN_CHALLENGE_REQUEST = 'ui-login_challe var LOGIN_CHALLENGE_RESPONSE = exports.LOGIN_CHALLENGE_RESPONSE = 'ui-login_challenge_response'; var BUNDLE_PROGRESS = exports.BUNDLE_PROGRESS = 'ui-bundle_progress'; - -},{}],966:[function(require,module,exports){ +},{}],980:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144253,9 +152387,7 @@ var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* * Initial settings for connect. @@ -144346,8 +152478,7 @@ var parse = exports.parse = function parse(input) { currentSettings = settings; return currentSettings; }; - -},{"babel-runtime/helpers/extends":349}],967:[function(require,module,exports){ +},{"babel-runtime/helpers/extends":363}],981:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144371,9 +152502,7 @@ var _inlineStyles = require('./inline-styles'); var _inlineStyles2 = _interopRequireDefault(_inlineStyles); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var instance = exports.instance = void 0; var origin = exports.origin = void 0; @@ -144574,14 +152703,12 @@ var dispose = exports.dispose = function dispose() { var clearTimeout = exports.clearTimeout = function clearTimeout() { window.clearTimeout(timeout); }; - -},{"../constants/errors":960,"../constants/ui":965,"../utils/deferred":983,"./inline-styles":968,"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/regenerator":353}],968:[function(require,module,exports){ +},{"../constants/errors":974,"../constants/ui":979,"../utils/deferred":997,"./inline-styles":982,"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/regenerator":367}],982:[function(require,module,exports){ 'use strict'; exports.__esModule = true; var css = '.trezorconnect-container{position:fixed!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;-ms-flex-direction:column!important;flex-direction:column!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important;z-index:10000!important;width:100%!important;height:100%!important;top:0!important;left:0!important;background:rgba(0,0,0,.35)!important;overflow:auto!important;padding:20px!important;margin:0!important}.trezorconnect-container .trezorconnect-window{position:relative!important;display:block!important;width:370px!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;margin:auto!important;border-radius:3px!important;background-color:#fff!important;text-align:center!important;overflow:hidden!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head{text-align:left;padding:12px 24px!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-logo{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close{cursor:pointer!important;height:24px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close svg{fill:#757575;-webkit-transition:fill .3s ease-in-out!important;transition:fill .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close:hover svg{fill:#494949}.trezorconnect-container .trezorconnect-window .trezorconnect-body{padding:24px 24px 32px!important;background:#FBFBFB!important;border-top:1px solid #EBEBEB}.trezorconnect-container .trezorconnect-window .trezorconnect-body h3{color:#505050!important;font-size:16px!important;font-weight:500!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body p{margin:8px 0 24px!important;font-weight:400!important;color:#A9A9A9!important;font-size:12px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button{width:100%!important;padding:12px 24px!important;margin:0!important;border-radius:3px!important;font-size:14px!important;font-weight:300!important;cursor:pointer!important;background:#01B757!important;color:#fff!important;border:0!important;-webkit-transition:background-color .3s ease-in-out!important;transition:background-color .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:hover{background-color:#00AB51!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:active{background-color:#009546!important}/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0IiwiJHN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNBLHlCQUNJLFNBQUEsZ0JBQ0EsUUFBQSxzQkFDQSxRQUFBLHVCQUNBLFFBQUEsc0JBRUEsUUFBQSxlQUNBLG1CQUFBLG1CQUNBLHNCQUFBLGlCQUNBLHVCQUFBLGlCQUNBLG1CQUFBLGlCQUNBLGVBQUEsaUJBRUEsa0JBQUEsaUJBQ0Esb0JBQUEsaUJBQ0EsZUFBQSxpQkNmTSxZQUFhLGlCREFyQixRQUFTLGdCQWtCSCxNQUFBLGVBQ0EsT0FBQSxlQUNBLElBQUEsWUFDQSxLQUFBLFlBQ0EsV0FBQSwwQkFDQSxTQUFBLGVBQ0EsUUFBQSxlQUNBLE9BQUEsWUNkUiwrQ0RYRSxTQUFVLG1CQTZCQSxRQUFBLGdCQUNBLE1BQUEsZ0JBQ0EsWUFBQSxjQUFBLG1CQUFBLFdBQUEsT0FBQSxpQkFBQSxNQUFBLHFCQUNBLE9BQUEsZUNmVixjQUFlLGNEakJmLGlCQWlCRSxlQWtCWSxXQUFBLGlCQ2ZkLFNBQVUsaUJEbUJJLG1FQUNBLFdBQUEsS0NoQmQsUUFBUyxLQUFLLGVEeEJkLFFBQVMsc0JBMENTLFFBQUEsdUJBQ0EsUUFBQSxzQkNmbEIsUUFBUyxlRGlCSyxrQkE1QlosaUJBOEJvQixvQkFBQSxpQkNoQmxCLGVBQWdCLGlCRC9CWixZQWlCTixpQkFzQ1EsdUZBQ0EsaUJBQUEsRUNwQlYsYUFBYyxFRHBDVixTQUFVLEVBMkRBLEtBQUEsRUFFQSx3RkNwQmQsT0FBUSxrQkR6Q1IsT0FBUSxlQWlFTSw0RkFDQSxLQUFBLFFBQ0EsbUJBQUEsS0FBQSxJQUFBLHNCQ3BCZCxXQUFZLEtBQUssSUFBSyxzQkR3QlIsa0dBQ0EsS0FBQSxRQUVBLG1FQUNBLFFBQUEsS0FBQSxLQUFBLGVBQ0EsV0FBQSxrQkFDQSxXQUFBLElBQUEsTUFBQSxRQUVBLHNFQUNBLE1BQUEsa0JBQ0EsVUFBQSxlQ3JCZCxZQUFhLGNEd0JLLHFFQ3JCbEIsT0FBUSxJQUFJLEVBQUksZUR3QkYsWUFBQSxjQUNJLE1BQUEsa0JDdEJsQixVQUFXLGVBRWIsMEVBQ0UsTUFBTyxlQUNQLFFBQVMsS0FBSyxlQUNkLE9BQVEsWUFDUixjQUFlLGNBQ2YsVUFBVyxlQUNYLFlBQWEsY0FDYixPQUFRLGtCQUNSLFdBQVksa0JBQ1osTUFBTyxlQUNQLE9BQVEsWUFDUixtQkFBb0IsaUJBQWlCLElBQUssc0JBQzFDLFdBQVksaUJBQWlCLElBQUssc0JBRXBDLGdGQUNFLGlCQUFrQixrQkFFcEIsaUZBQ0UsaUJBQWtCIn0= */';exports.default = css; - -},{}],969:[function(require,module,exports){ +},{}],983:[function(require,module,exports){ 'use strict'; /** @@ -144660,21 +152787,9 @@ var _types = require('./types'); var $T = _interopRequireWildcard(_types); -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {};if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; - } - }newObj.default = obj;return newObj; - } -} +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var eventEmitter = new _events2.default(); var _log = (0, _debug.init)('[trezor-connect.js]'); @@ -145915,12 +154030,12 @@ exports.DEVICE = DEVICE; exports.UI_EVENT = _constants.UI_EVENT; exports.DEVICE_EVENT = _constants.DEVICE_EVENT; exports.TRANSPORT_EVENT = _constants.TRANSPORT_EVENT; - -},{"./constants":962,"./constants/device":959,"./constants/errors":960,"./constants/iframe":961,"./constants/popup":963,"./constants/transport":964,"./constants/ui":965,"./data/ConnectSettings":966,"./iframe/builder":967,"./message":970,"./popup/PopupManager":971,"./types":975,"./utils/debug":982,"./webusb/button":985,"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/helpers/classCallCheck":348,"babel-runtime/helpers/extends":349,"babel-runtime/regenerator":353,"events":861}],970:[function(require,module,exports){ +},{"./constants":976,"./constants/device":973,"./constants/errors":974,"./constants/iframe":975,"./constants/popup":977,"./constants/transport":978,"./constants/ui":979,"./data/ConnectSettings":980,"./iframe/builder":981,"./message":984,"./popup/PopupManager":985,"./types":989,"./utils/debug":996,"./webusb/button":999,"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/helpers/classCallCheck":362,"babel-runtime/helpers/extends":363,"babel-runtime/regenerator":367,"events":875}],984:[function(require,module,exports){ 'use strict'; exports.__esModule = true; + // parse MessageEvent .data into CoreMessage var parseMessage = exports.parseMessage = function parseMessage(messageData) { var message = { @@ -145939,8 +154054,7 @@ var parseMessage = exports.parseMessage = function parseMessage(messageData) { return message; }; - -},{}],971:[function(require,module,exports){ +},{}],985:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -145983,21 +154097,9 @@ var _networkUtils = require('../utils/networkUtils'); var _deferred = require('../utils/deferred'); -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {};if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; - } - }newObj.default = obj;return newObj; - } -} +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // const POPUP_REQUEST_TIMEOUT: number = 602; var POPUP_REQUEST_TIMEOUT = 999; @@ -146340,8 +154442,7 @@ var PopupManager = function (_EventEmitter) { }(_events2.default); exports.default = PopupManager; - -},{"../constants/errors":960,"../constants/popup":963,"../utils/deferred":983,"../utils/networkUtils":984,"./showPopupRequest":972,"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/helpers/classCallCheck":348,"babel-runtime/helpers/inherits":350,"babel-runtime/helpers/possibleConstructorReturn":351,"babel-runtime/regenerator":353,"events":861}],972:[function(require,module,exports){ +},{"../constants/errors":974,"../constants/popup":977,"../utils/deferred":997,"../utils/networkUtils":998,"./showPopupRequest":986,"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/helpers/classCallCheck":362,"babel-runtime/helpers/inherits":364,"babel-runtime/helpers/possibleConstructorReturn":365,"babel-runtime/regenerator":367,"events":875}],986:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -146379,14 +154480,11 @@ var showPopupRequest = exports.showPopupRequest = function showPopupRequest(open } }; }; - -},{}],973:[function(require,module,exports){ -'use strict'; - -},{}],974:[function(require,module,exports){ +},{}],987:[function(require,module,exports){ 'use strict'; - -},{}],975:[function(require,module,exports){ +},{}],988:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],989:[function(require,module,exports){ 'use strict'; /* @@ -146455,37 +154553,20 @@ var _lisk = require('./lisk'); var LISK = _interopRequireWildcard(_lisk); -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {};if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; - } - }newObj.default = obj;return newObj; - } -} - -},{"../constants":962,"../constants/device":959,"../constants/popup":963,"../constants/transport":964,"../constants/ui":965,"./cardano":973,"./ethereum":974,"./lisk":976,"./nem":977,"./params":978,"./response":979,"./ripple":980,"./stellar":981}],976:[function(require,module,exports){ -'use strict'; - -},{}],977:[function(require,module,exports){ -'use strict'; - -},{}],978:[function(require,module,exports){ -'use strict'; - -},{}],979:[function(require,module,exports){ -'use strict'; - -},{}],980:[function(require,module,exports){ -'use strict'; - -},{}],981:[function(require,module,exports){ -'use strict'; - -},{}],982:[function(require,module,exports){ +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } +},{"../constants":976,"../constants/device":973,"../constants/popup":977,"../constants/transport":978,"../constants/ui":979,"./cardano":987,"./ethereum":988,"./lisk":990,"./nem":991,"./params":992,"./response":993,"./ripple":994,"./stellar":995}],990:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],991:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],992:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],993:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],994:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],995:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],996:[function(require,module,exports){ (function (global){ 'use strict'; @@ -146501,9 +154582,7 @@ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var colors = { // green @@ -146596,6 +154675,7 @@ var Log = function () { exports.default = Log; + var _logs = {}; var init = exports.init = function init(prefix, enabled) { @@ -146687,9 +154767,8 @@ var popupConsole = exports.popupConsole = function popupConsole(tag, postMessage c[_level] = inject(orig[_level], _level); } }; - }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"babel-runtime/helpers/classCallCheck":348}],983:[function(require,module,exports){ +},{"babel-runtime/helpers/classCallCheck":362}],997:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -146707,9 +154786,7 @@ exports.createAsync = createAsync; exports.resolveTimeoutPromise = resolveTimeoutPromise; exports.rejectTimeoutPromise = rejectTimeoutPromise; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function create(arg, device) { var _this = this; @@ -146830,8 +154907,7 @@ function rejectTimeoutPromise(delay, error) { }, delay); }); } - -},{"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/regenerator":353}],984:[function(require,module,exports){ +},{"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/regenerator":367}],998:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -146847,9 +154923,7 @@ var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); require('whatwg-fetch'); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var httpRequest = exports.httpRequest = function () { var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(url) { @@ -146926,8 +155000,7 @@ var getOrigin = exports.getOrigin = function getOrigin(url) { var parts = url.match(/^.+\:\/\/[^\/]+/); return Array.isArray(parts) && parts.length > 0 ? parts[0] : 'unknown'; }; - -},{"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/regenerator":353,"whatwg-fetch":1004}],985:[function(require,module,exports){ +},{"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/regenerator":367,"whatwg-fetch":1018}],999:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -146966,43 +155039,29 @@ var render = function render(className, url, origin) { }; exports.default = render; - -},{}],986:[function(require,module,exports){ -"use strict"; - -module.exports = { 97: { "value": "0061", "name": "LATIN SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0041", "lowercase_mapping": "", "titlecase_mapping": "0041", "symbol": "\x61" }, 98: { "value": "0062", "name": "LATIN SMALL LETTER B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0042", "lowercase_mapping": "", "titlecase_mapping": "0042", "symbol": "\x62" }, 99: { "value": "0063", "name": "LATIN SMALL LETTER C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0043", "lowercase_mapping": "", "titlecase_mapping": "0043", "symbol": "\x63" }, 100: { "value": "0064", "name": "LATIN SMALL LETTER D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0044", "lowercase_mapping": "", "titlecase_mapping": "0044", "symbol": "\x64" }, 101: { "value": "0065", "name": "LATIN SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0045", "lowercase_mapping": "", "titlecase_mapping": "0045", "symbol": "\x65" }, 102: { "value": "0066", "name": "LATIN SMALL LETTER F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0046", "lowercase_mapping": "", "titlecase_mapping": "0046", "symbol": "\x66" }, 103: { "value": "0067", "name": "LATIN SMALL LETTER G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0047", "lowercase_mapping": "", "titlecase_mapping": "0047", "symbol": "\x67" }, 104: { "value": "0068", "name": "LATIN SMALL LETTER H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0048", "lowercase_mapping": "", "titlecase_mapping": "0048", "symbol": "\x68" }, 105: { "value": "0069", "name": "LATIN SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0049", "lowercase_mapping": "", "titlecase_mapping": "0049", "symbol": "\x69" }, 106: { "value": "006A", "name": "LATIN SMALL LETTER J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004A", "lowercase_mapping": "", "titlecase_mapping": "004A", "symbol": "\x6A" }, 107: { "value": "006B", "name": "LATIN SMALL LETTER K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004B", "lowercase_mapping": "", "titlecase_mapping": "004B", "symbol": "\x6B" }, 108: { "value": "006C", "name": "LATIN SMALL LETTER L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004C", "lowercase_mapping": "", "titlecase_mapping": "004C", "symbol": "\x6C" }, 109: { "value": "006D", "name": "LATIN SMALL LETTER M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004D", "lowercase_mapping": "", "titlecase_mapping": "004D", "symbol": "\x6D" }, 110: { "value": "006E", "name": "LATIN SMALL LETTER N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004E", "lowercase_mapping": "", "titlecase_mapping": "004E", "symbol": "\x6E" }, 111: { "value": "006F", "name": "LATIN SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004F", "lowercase_mapping": "", "titlecase_mapping": "004F", "symbol": "\x6F" }, 112: { "value": "0070", "name": "LATIN SMALL LETTER P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0050", "lowercase_mapping": "", "titlecase_mapping": "0050", "symbol": "\x70" }, 113: { "value": "0071", "name": "LATIN SMALL LETTER Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0051", "lowercase_mapping": "", "titlecase_mapping": "0051", "symbol": "\x71" }, 114: { "value": "0072", "name": "LATIN SMALL LETTER R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0052", "lowercase_mapping": "", "titlecase_mapping": "0052", "symbol": "\x72" }, 115: { "value": "0073", "name": "LATIN SMALL LETTER S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0053", "lowercase_mapping": "", "titlecase_mapping": "0053", "symbol": "\x73" }, 116: { "value": "0074", "name": "LATIN SMALL LETTER T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0054", "lowercase_mapping": "", "titlecase_mapping": "0054", "symbol": "\x74" }, 117: { "value": "0075", "name": "LATIN SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0055", "lowercase_mapping": "", "titlecase_mapping": "0055", "symbol": "\x75" }, 118: { "value": "0076", "name": "LATIN SMALL LETTER V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0056", "lowercase_mapping": "", "titlecase_mapping": "0056", "symbol": "\x76" }, 119: { "value": "0077", "name": "LATIN SMALL LETTER W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0057", "lowercase_mapping": "", "titlecase_mapping": "0057", "symbol": "\x77" }, 120: { "value": "0078", "name": "LATIN SMALL LETTER X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0058", "lowercase_mapping": "", "titlecase_mapping": "0058", "symbol": "\x78" }, 121: { "value": "0079", "name": "LATIN SMALL LETTER Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0059", "lowercase_mapping": "", "titlecase_mapping": "0059", "symbol": "\x79" }, 122: { "value": "007A", "name": "LATIN SMALL LETTER Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "005A", "lowercase_mapping": "", "titlecase_mapping": "005A", "symbol": "\x7A" }, 181: { "value": "00B5", "name": "MICRO SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039C", "lowercase_mapping": "", "titlecase_mapping": "039C", "symbol": "\xB5" }, 223: { "value": "00DF", "name": "LATIN SMALL LETTER SHARP S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\xDF" }, 224: { "value": "00E0", "name": "LATIN SMALL LETTER A WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A GRAVE", "comment": "", "uppercase_mapping": "00C0", "lowercase_mapping": "", "titlecase_mapping": "00C0", "symbol": "\xE0" }, 225: { "value": "00E1", "name": "LATIN SMALL LETTER A WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A ACUTE", "comment": "", "uppercase_mapping": "00C1", "lowercase_mapping": "", "titlecase_mapping": "00C1", "symbol": "\xE1" }, 226: { "value": "00E2", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A CIRCUMFLEX", "comment": "", "uppercase_mapping": "00C2", "lowercase_mapping": "", "titlecase_mapping": "00C2", "symbol": "\xE2" }, 227: { "value": "00E3", "name": "LATIN SMALL LETTER A WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A TILDE", "comment": "", "uppercase_mapping": "00C3", "lowercase_mapping": "", "titlecase_mapping": "00C3", "symbol": "\xE3" }, 228: { "value": "00E4", "name": "LATIN SMALL LETTER A WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A DIAERESIS", "comment": "", "uppercase_mapping": "00C4", "lowercase_mapping": "", "titlecase_mapping": "00C4", "symbol": "\xE4" }, 229: { "value": "00E5", "name": "LATIN SMALL LETTER A WITH RING ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 030A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A RING", "comment": "", "uppercase_mapping": "00C5", "lowercase_mapping": "", "titlecase_mapping": "00C5", "symbol": "\xE5" }, 230: { "value": "00E6", "name": "LATIN SMALL LETTER AE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A E", "comment": "", "uppercase_mapping": "00C6", "lowercase_mapping": "", "titlecase_mapping": "00C6", "symbol": "\xE6" }, 231: { "value": "00E7", "name": "LATIN SMALL LETTER C WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C CEDILLA", "comment": "", "uppercase_mapping": "00C7", "lowercase_mapping": "", "titlecase_mapping": "00C7", "symbol": "\xE7" }, 232: { "value": "00E8", "name": "LATIN SMALL LETTER E WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E GRAVE", "comment": "", "uppercase_mapping": "00C8", "lowercase_mapping": "", "titlecase_mapping": "00C8", "symbol": "\xE8" }, 233: { "value": "00E9", "name": "LATIN SMALL LETTER E WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E ACUTE", "comment": "", "uppercase_mapping": "00C9", "lowercase_mapping": "", "titlecase_mapping": "00C9", "symbol": "\xE9" }, 234: { "value": "00EA", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E CIRCUMFLEX", "comment": "", "uppercase_mapping": "00CA", "lowercase_mapping": "", "titlecase_mapping": "00CA", "symbol": "\xEA" }, 235: { "value": "00EB", "name": "LATIN SMALL LETTER E WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E DIAERESIS", "comment": "", "uppercase_mapping": "00CB", "lowercase_mapping": "", "titlecase_mapping": "00CB", "symbol": "\xEB" }, 236: { "value": "00EC", "name": "LATIN SMALL LETTER I WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I GRAVE", "comment": "", "uppercase_mapping": "00CC", "lowercase_mapping": "", "titlecase_mapping": "00CC", "symbol": "\xEC" }, 237: { "value": "00ED", "name": "LATIN SMALL LETTER I WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I ACUTE", "comment": "", "uppercase_mapping": "00CD", "lowercase_mapping": "", "titlecase_mapping": "00CD", "symbol": "\xED" }, 238: { "value": "00EE", "name": "LATIN SMALL LETTER I WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I CIRCUMFLEX", "comment": "", "uppercase_mapping": "00CE", "lowercase_mapping": "", "titlecase_mapping": "00CE", "symbol": "\xEE" }, 239: { "value": "00EF", "name": "LATIN SMALL LETTER I WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I DIAERESIS", "comment": "", "uppercase_mapping": "00CF", "lowercase_mapping": "", "titlecase_mapping": "00CF", "symbol": "\xEF" }, 240: { "value": "00F0", "name": "LATIN SMALL LETTER ETH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "00D0", "lowercase_mapping": "", "titlecase_mapping": "00D0", "symbol": "\xF0" }, 241: { "value": "00F1", "name": "LATIN SMALL LETTER N WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N TILDE", "comment": "", "uppercase_mapping": "00D1", "lowercase_mapping": "", "titlecase_mapping": "00D1", "symbol": "\xF1" }, 242: { "value": "00F2", "name": "LATIN SMALL LETTER O WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O GRAVE", "comment": "", "uppercase_mapping": "00D2", "lowercase_mapping": "", "titlecase_mapping": "00D2", "symbol": "\xF2" }, 243: { "value": "00F3", "name": "LATIN SMALL LETTER O WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O ACUTE", "comment": "", "uppercase_mapping": "00D3", "lowercase_mapping": "", "titlecase_mapping": "00D3", "symbol": "\xF3" }, 244: { "value": "00F4", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O CIRCUMFLEX", "comment": "", "uppercase_mapping": "00D4", "lowercase_mapping": "", "titlecase_mapping": "00D4", "symbol": "\xF4" }, 245: { "value": "00F5", "name": "LATIN SMALL LETTER O WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O TILDE", "comment": "", "uppercase_mapping": "00D5", "lowercase_mapping": "", "titlecase_mapping": "00D5", "symbol": "\xF5" }, 246: { "value": "00F6", "name": "LATIN SMALL LETTER O WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O DIAERESIS", "comment": "", "uppercase_mapping": "00D6", "lowercase_mapping": "", "titlecase_mapping": "00D6", "symbol": "\xF6" }, 248: { "value": "00F8", "name": "LATIN SMALL LETTER O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O SLASH", "comment": "", "uppercase_mapping": "00D8", "lowercase_mapping": "", "titlecase_mapping": "00D8", "symbol": "\xF8" }, 249: { "value": "00F9", "name": "LATIN SMALL LETTER U WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U GRAVE", "comment": "", "uppercase_mapping": "00D9", "lowercase_mapping": "", "titlecase_mapping": "00D9", "symbol": "\xF9" }, 250: { "value": "00FA", "name": "LATIN SMALL LETTER U WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U ACUTE", "comment": "", "uppercase_mapping": "00DA", "lowercase_mapping": "", "titlecase_mapping": "00DA", "symbol": "\xFA" }, 251: { "value": "00FB", "name": "LATIN SMALL LETTER U WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U CIRCUMFLEX", "comment": "", "uppercase_mapping": "00DB", "lowercase_mapping": "", "titlecase_mapping": "00DB", "symbol": "\xFB" }, 252: { "value": "00FC", "name": "LATIN SMALL LETTER U WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS", "comment": "", "uppercase_mapping": "00DC", "lowercase_mapping": "", "titlecase_mapping": "00DC", "symbol": "\xFC" }, 253: { "value": "00FD", "name": "LATIN SMALL LETTER Y WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Y ACUTE", "comment": "", "uppercase_mapping": "00DD", "lowercase_mapping": "", "titlecase_mapping": "00DD", "symbol": "\xFD" }, 254: { "value": "00FE", "name": "LATIN SMALL LETTER THORN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "00DE", "lowercase_mapping": "", "titlecase_mapping": "00DE", "symbol": "\xFE" }, 255: { "value": "00FF", "name": "LATIN SMALL LETTER Y WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Y DIAERESIS", "comment": "", "uppercase_mapping": "0178", "lowercase_mapping": "", "titlecase_mapping": "0178", "symbol": "\xFF" }, 257: { "value": "0101", "name": "LATIN SMALL LETTER A WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A MACRON", "comment": "", "uppercase_mapping": "0100", "lowercase_mapping": "", "titlecase_mapping": "0100", "symbol": "\u0101" }, 259: { "value": "0103", "name": "LATIN SMALL LETTER A WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A BREVE", "comment": "", "uppercase_mapping": "0102", "lowercase_mapping": "", "titlecase_mapping": "0102", "symbol": "\u0103" }, 261: { "value": "0105", "name": "LATIN SMALL LETTER A WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A OGONEK", "comment": "", "uppercase_mapping": "0104", "lowercase_mapping": "", "titlecase_mapping": "0104", "symbol": "\u0105" }, 263: { "value": "0107", "name": "LATIN SMALL LETTER C WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C ACUTE", "comment": "", "uppercase_mapping": "0106", "lowercase_mapping": "", "titlecase_mapping": "0106", "symbol": "\u0107" }, 265: { "value": "0109", "name": "LATIN SMALL LETTER C WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C CIRCUMFLEX", "comment": "", "uppercase_mapping": "0108", "lowercase_mapping": "", "titlecase_mapping": "0108", "symbol": "\u0109" }, 267: { "value": "010B", "name": "LATIN SMALL LETTER C WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C DOT", "comment": "", "uppercase_mapping": "010A", "lowercase_mapping": "", "titlecase_mapping": "010A", "symbol": "\u010B" }, 269: { "value": "010D", "name": "LATIN SMALL LETTER C WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C HACEK", "comment": "", "uppercase_mapping": "010C", "lowercase_mapping": "", "titlecase_mapping": "010C", "symbol": "\u010D" }, 271: { "value": "010F", "name": "LATIN SMALL LETTER D WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D HACEK", "comment": "", "uppercase_mapping": "010E", "lowercase_mapping": "", "titlecase_mapping": "010E", "symbol": "\u010F" }, 273: { "value": "0111", "name": "LATIN SMALL LETTER D WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D BAR", "comment": "", "uppercase_mapping": "0110", "lowercase_mapping": "", "titlecase_mapping": "0110", "symbol": "\u0111" }, 275: { "value": "0113", "name": "LATIN SMALL LETTER E WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E MACRON", "comment": "", "uppercase_mapping": "0112", "lowercase_mapping": "", "titlecase_mapping": "0112", "symbol": "\u0113" }, 277: { "value": "0115", "name": "LATIN SMALL LETTER E WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E BREVE", "comment": "", "uppercase_mapping": "0114", "lowercase_mapping": "", "titlecase_mapping": "0114", "symbol": "\u0115" }, 279: { "value": "0117", "name": "LATIN SMALL LETTER E WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E DOT", "comment": "", "uppercase_mapping": "0116", "lowercase_mapping": "", "titlecase_mapping": "0116", "symbol": "\u0117" }, 281: { "value": "0119", "name": "LATIN SMALL LETTER E WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E OGONEK", "comment": "", "uppercase_mapping": "0118", "lowercase_mapping": "", "titlecase_mapping": "0118", "symbol": "\u0119" }, 283: { "value": "011B", "name": "LATIN SMALL LETTER E WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E HACEK", "comment": "", "uppercase_mapping": "011A", "lowercase_mapping": "", "titlecase_mapping": "011A", "symbol": "\u011B" }, 285: { "value": "011D", "name": "LATIN SMALL LETTER G WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G CIRCUMFLEX", "comment": "", "uppercase_mapping": "011C", "lowercase_mapping": "", "titlecase_mapping": "011C", "symbol": "\u011D" }, 287: { "value": "011F", "name": "LATIN SMALL LETTER G WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G BREVE", "comment": "", "uppercase_mapping": "011E", "lowercase_mapping": "", "titlecase_mapping": "011E", "symbol": "\u011F" }, 289: { "value": "0121", "name": "LATIN SMALL LETTER G WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G DOT", "comment": "", "uppercase_mapping": "0120", "lowercase_mapping": "", "titlecase_mapping": "0120", "symbol": "\u0121" }, 291: { "value": "0123", "name": "LATIN SMALL LETTER G WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G CEDILLA", "comment": "", "uppercase_mapping": "0122", "lowercase_mapping": "", "titlecase_mapping": "0122", "symbol": "\u0123" }, 293: { "value": "0125", "name": "LATIN SMALL LETTER H WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER H CIRCUMFLEX", "comment": "", "uppercase_mapping": "0124", "lowercase_mapping": "", "titlecase_mapping": "0124", "symbol": "\u0125" }, 295: { "value": "0127", "name": "LATIN SMALL LETTER H WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER H BAR", "comment": "", "uppercase_mapping": "0126", "lowercase_mapping": "", "titlecase_mapping": "0126", "symbol": "\u0127" }, 297: { "value": "0129", "name": "LATIN SMALL LETTER I WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I TILDE", "comment": "", "uppercase_mapping": "0128", "lowercase_mapping": "", "titlecase_mapping": "0128", "symbol": "\u0129" }, 299: { "value": "012B", "name": "LATIN SMALL LETTER I WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I MACRON", "comment": "", "uppercase_mapping": "012A", "lowercase_mapping": "", "titlecase_mapping": "012A", "symbol": "\u012B" }, 301: { "value": "012D", "name": "LATIN SMALL LETTER I WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I BREVE", "comment": "", "uppercase_mapping": "012C", "lowercase_mapping": "", "titlecase_mapping": "012C", "symbol": "\u012D" }, 303: { "value": "012F", "name": "LATIN SMALL LETTER I WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I OGONEK", "comment": "", "uppercase_mapping": "012E", "lowercase_mapping": "", "titlecase_mapping": "012E", "symbol": "\u012F" }, 305: { "value": "0131", "name": "LATIN SMALL LETTER DOTLESS I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0049", "lowercase_mapping": "", "titlecase_mapping": "0049", "symbol": "\u0131" }, 307: { "value": "0133", "name": "LATIN SMALL LIGATURE IJ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I J", "comment": "", "uppercase_mapping": "0132", "lowercase_mapping": "", "titlecase_mapping": "0132", "symbol": "\u0133" }, 309: { "value": "0135", "name": "LATIN SMALL LETTER J WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006A 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER J CIRCUMFLEX", "comment": "", "uppercase_mapping": "0134", "lowercase_mapping": "", "titlecase_mapping": "0134", "symbol": "\u0135" }, 311: { "value": "0137", "name": "LATIN SMALL LETTER K WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER K CEDILLA", "comment": "", "uppercase_mapping": "0136", "lowercase_mapping": "", "titlecase_mapping": "0136", "symbol": "\u0137" }, 312: { "value": "0138", "name": "LATIN SMALL LETTER KRA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0138" }, 314: { "value": "013A", "name": "LATIN SMALL LETTER L WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L ACUTE", "comment": "", "uppercase_mapping": "0139", "lowercase_mapping": "", "titlecase_mapping": "0139", "symbol": "\u013A" }, 316: { "value": "013C", "name": "LATIN SMALL LETTER L WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L CEDILLA", "comment": "", "uppercase_mapping": "013B", "lowercase_mapping": "", "titlecase_mapping": "013B", "symbol": "\u013C" }, 318: { "value": "013E", "name": "LATIN SMALL LETTER L WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L HACEK", "comment": "", "uppercase_mapping": "013D", "lowercase_mapping": "", "titlecase_mapping": "013D", "symbol": "\u013E" }, 320: { "value": "0140", "name": "LATIN SMALL LETTER L WITH MIDDLE DOT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C 00B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "013F", "lowercase_mapping": "", "titlecase_mapping": "013F", "symbol": "\u0140" }, 322: { "value": "0142", "name": "LATIN SMALL LETTER L WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L SLASH", "comment": "", "uppercase_mapping": "0141", "lowercase_mapping": "", "titlecase_mapping": "0141", "symbol": "\u0142" }, 324: { "value": "0144", "name": "LATIN SMALL LETTER N WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N ACUTE", "comment": "", "uppercase_mapping": "0143", "lowercase_mapping": "", "titlecase_mapping": "0143", "symbol": "\u0144" }, 326: { "value": "0146", "name": "LATIN SMALL LETTER N WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N CEDILLA", "comment": "", "uppercase_mapping": "0145", "lowercase_mapping": "", "titlecase_mapping": "0145", "symbol": "\u0146" }, 328: { "value": "0148", "name": "LATIN SMALL LETTER N WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N HACEK", "comment": "", "uppercase_mapping": "0147", "lowercase_mapping": "", "titlecase_mapping": "0147", "symbol": "\u0148" }, 329: { "value": "0149", "name": "LATIN SMALL LETTER N PRECEDED BY APOSTROPHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 02BC 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER APOSTROPHE N", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0149" }, 331: { "value": "014B", "name": "LATIN SMALL LETTER ENG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "014A", "lowercase_mapping": "", "titlecase_mapping": "014A", "symbol": "\u014B" }, 333: { "value": "014D", "name": "LATIN SMALL LETTER O WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O MACRON", "comment": "", "uppercase_mapping": "014C", "lowercase_mapping": "", "titlecase_mapping": "014C", "symbol": "\u014D" }, 335: { "value": "014F", "name": "LATIN SMALL LETTER O WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O BREVE", "comment": "", "uppercase_mapping": "014E", "lowercase_mapping": "", "titlecase_mapping": "014E", "symbol": "\u014F" }, 337: { "value": "0151", "name": "LATIN SMALL LETTER O WITH DOUBLE ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 030B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O DOUBLE ACUTE", "comment": "", "uppercase_mapping": "0150", "lowercase_mapping": "", "titlecase_mapping": "0150", "symbol": "\u0151" }, 339: { "value": "0153", "name": "LATIN SMALL LIGATURE OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O E", "comment": "", "uppercase_mapping": "0152", "lowercase_mapping": "", "titlecase_mapping": "0152", "symbol": "\u0153" }, 341: { "value": "0155", "name": "LATIN SMALL LETTER R WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER R ACUTE", "comment": "", "uppercase_mapping": "0154", "lowercase_mapping": "", "titlecase_mapping": "0154", "symbol": "\u0155" }, 343: { "value": "0157", "name": "LATIN SMALL LETTER R WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER R CEDILLA", "comment": "", "uppercase_mapping": "0156", "lowercase_mapping": "", "titlecase_mapping": "0156", "symbol": "\u0157" }, 345: { "value": "0159", "name": "LATIN SMALL LETTER R WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER R HACEK", "comment": "", "uppercase_mapping": "0158", "lowercase_mapping": "", "titlecase_mapping": "0158", "symbol": "\u0159" }, 347: { "value": "015B", "name": "LATIN SMALL LETTER S WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S ACUTE", "comment": "", "uppercase_mapping": "015A", "lowercase_mapping": "", "titlecase_mapping": "015A", "symbol": "\u015B" }, 349: { "value": "015D", "name": "LATIN SMALL LETTER S WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S CIRCUMFLEX", "comment": "", "uppercase_mapping": "015C", "lowercase_mapping": "", "titlecase_mapping": "015C", "symbol": "\u015D" }, 351: { "value": "015F", "name": "LATIN SMALL LETTER S WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S CEDILLA", "comment": "", "uppercase_mapping": "015E", "lowercase_mapping": "", "titlecase_mapping": "015E", "symbol": "\u015F" }, 353: { "value": "0161", "name": "LATIN SMALL LETTER S WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S HACEK", "comment": "", "uppercase_mapping": "0160", "lowercase_mapping": "", "titlecase_mapping": "0160", "symbol": "\u0161" }, 355: { "value": "0163", "name": "LATIN SMALL LETTER T WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T CEDILLA", "comment": "", "uppercase_mapping": "0162", "lowercase_mapping": "", "titlecase_mapping": "0162", "symbol": "\u0163" }, 357: { "value": "0165", "name": "LATIN SMALL LETTER T WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T HACEK", "comment": "", "uppercase_mapping": "0164", "lowercase_mapping": "", "titlecase_mapping": "0164", "symbol": "\u0165" }, 359: { "value": "0167", "name": "LATIN SMALL LETTER T WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T BAR", "comment": "", "uppercase_mapping": "0166", "lowercase_mapping": "", "titlecase_mapping": "0166", "symbol": "\u0167" }, 361: { "value": "0169", "name": "LATIN SMALL LETTER U WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U TILDE", "comment": "", "uppercase_mapping": "0168", "lowercase_mapping": "", "titlecase_mapping": "0168", "symbol": "\u0169" }, 363: { "value": "016B", "name": "LATIN SMALL LETTER U WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U MACRON", "comment": "", "uppercase_mapping": "016A", "lowercase_mapping": "", "titlecase_mapping": "016A", "symbol": "\u016B" }, 365: { "value": "016D", "name": "LATIN SMALL LETTER U WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U BREVE", "comment": "", "uppercase_mapping": "016C", "lowercase_mapping": "", "titlecase_mapping": "016C", "symbol": "\u016D" }, 367: { "value": "016F", "name": "LATIN SMALL LETTER U WITH RING ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 030A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U RING", "comment": "", "uppercase_mapping": "016E", "lowercase_mapping": "", "titlecase_mapping": "016E", "symbol": "\u016F" }, 369: { "value": "0171", "name": "LATIN SMALL LETTER U WITH DOUBLE ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 030B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DOUBLE ACUTE", "comment": "", "uppercase_mapping": "0170", "lowercase_mapping": "", "titlecase_mapping": "0170", "symbol": "\u0171" }, 371: { "value": "0173", "name": "LATIN SMALL LETTER U WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U OGONEK", "comment": "", "uppercase_mapping": "0172", "lowercase_mapping": "", "titlecase_mapping": "0172", "symbol": "\u0173" }, 373: { "value": "0175", "name": "LATIN SMALL LETTER W WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER W CIRCUMFLEX", "comment": "", "uppercase_mapping": "0174", "lowercase_mapping": "", "titlecase_mapping": "0174", "symbol": "\u0175" }, 375: { "value": "0177", "name": "LATIN SMALL LETTER Y WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Y CIRCUMFLEX", "comment": "", "uppercase_mapping": "0176", "lowercase_mapping": "", "titlecase_mapping": "0176", "symbol": "\u0177" }, 378: { "value": "017A", "name": "LATIN SMALL LETTER Z WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z ACUTE", "comment": "", "uppercase_mapping": "0179", "lowercase_mapping": "", "titlecase_mapping": "0179", "symbol": "\u017A" }, 380: { "value": "017C", "name": "LATIN SMALL LETTER Z WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z DOT", "comment": "", "uppercase_mapping": "017B", "lowercase_mapping": "", "titlecase_mapping": "017B", "symbol": "\u017C" }, 382: { "value": "017E", "name": "LATIN SMALL LETTER Z WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z HACEK", "comment": "", "uppercase_mapping": "017D", "lowercase_mapping": "", "titlecase_mapping": "017D", "symbol": "\u017E" }, 383: { "value": "017F", "name": "LATIN SMALL LETTER LONG S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0053", "lowercase_mapping": "", "titlecase_mapping": "0053", "symbol": "\u017F" }, 384: { "value": "0180", "name": "LATIN SMALL LETTER B WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER B BAR", "comment": "", "uppercase_mapping": "0243", "lowercase_mapping": "", "titlecase_mapping": "0243", "symbol": "\u0180" }, 387: { "value": "0183", "name": "LATIN SMALL LETTER B WITH TOPBAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER B TOPBAR", "comment": "", "uppercase_mapping": "0182", "lowercase_mapping": "", "titlecase_mapping": "0182", "symbol": "\u0183" }, 389: { "value": "0185", "name": "LATIN SMALL LETTER TONE SIX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0184", "lowercase_mapping": "", "titlecase_mapping": "0184", "symbol": "\u0185" }, 392: { "value": "0188", "name": "LATIN SMALL LETTER C WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C HOOK", "comment": "", "uppercase_mapping": "0187", "lowercase_mapping": "", "titlecase_mapping": "0187", "symbol": "\u0188" }, 396: { "value": "018C", "name": "LATIN SMALL LETTER D WITH TOPBAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D TOPBAR", "comment": "", "uppercase_mapping": "018B", "lowercase_mapping": "", "titlecase_mapping": "018B", "symbol": "\u018C" }, 397: { "value": "018D", "name": "LATIN SMALL LETTER TURNED DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u018D" }, 402: { "value": "0192", "name": "LATIN SMALL LETTER F WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER SCRIPT F", "comment": "", "uppercase_mapping": "0191", "lowercase_mapping": "", "titlecase_mapping": "0191", "symbol": "\u0192" }, 405: { "value": "0195", "name": "LATIN SMALL LETTER HV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER H V", "comment": "", "uppercase_mapping": "01F6", "lowercase_mapping": "", "titlecase_mapping": "01F6", "symbol": "\u0195" }, 409: { "value": "0199", "name": "LATIN SMALL LETTER K WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER K HOOK", "comment": "", "uppercase_mapping": "0198", "lowercase_mapping": "", "titlecase_mapping": "0198", "symbol": "\u0199" }, 410: { "value": "019A", "name": "LATIN SMALL LETTER L WITH BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER BARRED L", "comment": "", "uppercase_mapping": "023D", "lowercase_mapping": "", "titlecase_mapping": "023D", "symbol": "\u019A" }, 411: { "value": "019B", "name": "LATIN SMALL LETTER LAMBDA WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER BARRED LAMBDA", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u019B" }, 414: { "value": "019E", "name": "LATIN SMALL LETTER N WITH LONG RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0220", "lowercase_mapping": "", "titlecase_mapping": "0220", "symbol": "\u019E" }, 417: { "value": "01A1", "name": "LATIN SMALL LETTER O WITH HORN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 031B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O HORN", "comment": "", "uppercase_mapping": "01A0", "lowercase_mapping": "", "titlecase_mapping": "01A0", "symbol": "\u01A1" }, 419: { "value": "01A3", "name": "LATIN SMALL LETTER OI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O I", "comment": "", "uppercase_mapping": "01A2", "lowercase_mapping": "", "titlecase_mapping": "01A2", "symbol": "\u01A3" }, 421: { "value": "01A5", "name": "LATIN SMALL LETTER P WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER P HOOK", "comment": "", "uppercase_mapping": "01A4", "lowercase_mapping": "", "titlecase_mapping": "01A4", "symbol": "\u01A5" }, 424: { "value": "01A8", "name": "LATIN SMALL LETTER TONE TWO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01A7", "lowercase_mapping": "", "titlecase_mapping": "01A7", "symbol": "\u01A8" }, 426: { "value": "01AA", "name": "LATIN LETTER REVERSED ESH LOOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01AA" }, 427: { "value": "01AB", "name": "LATIN SMALL LETTER T WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T PALATAL HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01AB" }, 429: { "value": "01AD", "name": "LATIN SMALL LETTER T WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T HOOK", "comment": "", "uppercase_mapping": "01AC", "lowercase_mapping": "", "titlecase_mapping": "01AC", "symbol": "\u01AD" }, 432: { "value": "01B0", "name": "LATIN SMALL LETTER U WITH HORN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 031B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U HORN", "comment": "", "uppercase_mapping": "01AF", "lowercase_mapping": "", "titlecase_mapping": "01AF", "symbol": "\u01B0" }, 436: { "value": "01B4", "name": "LATIN SMALL LETTER Y WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Y HOOK", "comment": "", "uppercase_mapping": "01B3", "lowercase_mapping": "", "titlecase_mapping": "01B3", "symbol": "\u01B4" }, 438: { "value": "01B6", "name": "LATIN SMALL LETTER Z WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z BAR", "comment": "", "uppercase_mapping": "01B5", "lowercase_mapping": "", "titlecase_mapping": "01B5", "symbol": "\u01B6" }, 441: { "value": "01B9", "name": "LATIN SMALL LETTER EZH REVERSED", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER REVERSED YOGH", "comment": "", "uppercase_mapping": "01B8", "lowercase_mapping": "", "titlecase_mapping": "01B8", "symbol": "\u01B9" }, 442: { "value": "01BA", "name": "LATIN SMALL LETTER EZH WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER YOGH WITH TAIL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01BA" }, 445: { "value": "01BD", "name": "LATIN SMALL LETTER TONE FIVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01BC", "lowercase_mapping": "", "titlecase_mapping": "01BC", "symbol": "\u01BD" }, 446: { "value": "01BE", "name": "LATIN LETTER INVERTED GLOTTAL STOP WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER INVERTED GLOTTAL STOP BAR", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01BE" }, 447: { "value": "01BF", "name": "LATIN LETTER WYNN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01F7", "lowercase_mapping": "", "titlecase_mapping": "01F7", "symbol": "\u01BF" }, 454: { "value": "01C6", "name": "LATIN SMALL LETTER DZ WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064 017E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D Z HACEK", "comment": "", "uppercase_mapping": "01C4", "lowercase_mapping": "", "titlecase_mapping": "01C5", "symbol": "\u01C6" }, 457: { "value": "01C9", "name": "LATIN SMALL LETTER LJ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L J", "comment": "", "uppercase_mapping": "01C7", "lowercase_mapping": "", "titlecase_mapping": "01C8", "symbol": "\u01C9" }, 460: { "value": "01CC", "name": "LATIN SMALL LETTER NJ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N J", "comment": "", "uppercase_mapping": "01CA", "lowercase_mapping": "", "titlecase_mapping": "01CB", "symbol": "\u01CC" }, 462: { "value": "01CE", "name": "LATIN SMALL LETTER A WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A HACEK", "comment": "", "uppercase_mapping": "01CD", "lowercase_mapping": "", "titlecase_mapping": "01CD", "symbol": "\u01CE" }, 464: { "value": "01D0", "name": "LATIN SMALL LETTER I WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I HACEK", "comment": "", "uppercase_mapping": "01CF", "lowercase_mapping": "", "titlecase_mapping": "01CF", "symbol": "\u01D0" }, 466: { "value": "01D2", "name": "LATIN SMALL LETTER O WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O HACEK", "comment": "", "uppercase_mapping": "01D1", "lowercase_mapping": "", "titlecase_mapping": "01D1", "symbol": "\u01D2" }, 468: { "value": "01D4", "name": "LATIN SMALL LETTER U WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U HACEK", "comment": "", "uppercase_mapping": "01D3", "lowercase_mapping": "", "titlecase_mapping": "01D3", "symbol": "\u01D4" }, 470: { "value": "01D6", "name": "LATIN SMALL LETTER U WITH DIAERESIS AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00FC 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS MACRON", "comment": "", "uppercase_mapping": "01D5", "lowercase_mapping": "", "titlecase_mapping": "01D5", "symbol": "\u01D6" }, 472: { "value": "01D8", "name": "LATIN SMALL LETTER U WITH DIAERESIS AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00FC 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS ACUTE", "comment": "", "uppercase_mapping": "01D7", "lowercase_mapping": "", "titlecase_mapping": "01D7", "symbol": "\u01D8" }, 474: { "value": "01DA", "name": "LATIN SMALL LETTER U WITH DIAERESIS AND CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00FC 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS HACEK", "comment": "", "uppercase_mapping": "01D9", "lowercase_mapping": "", "titlecase_mapping": "01D9", "symbol": "\u01DA" }, 476: { "value": "01DC", "name": "LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00FC 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS GRAVE", "comment": "", "uppercase_mapping": "01DB", "lowercase_mapping": "", "titlecase_mapping": "01DB", "symbol": "\u01DC" }, 477: { "value": "01DD", "name": "LATIN SMALL LETTER TURNED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "018E", "lowercase_mapping": "", "titlecase_mapping": "018E", "symbol": "\u01DD" }, 479: { "value": "01DF", "name": "LATIN SMALL LETTER A WITH DIAERESIS AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E4 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A DIAERESIS MACRON", "comment": "", "uppercase_mapping": "01DE", "lowercase_mapping": "", "titlecase_mapping": "01DE", "symbol": "\u01DF" }, 481: { "value": "01E1", "name": "LATIN SMALL LETTER A WITH DOT ABOVE AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0227 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A DOT MACRON", "comment": "", "uppercase_mapping": "01E0", "lowercase_mapping": "", "titlecase_mapping": "01E0", "symbol": "\u01E1" }, 483: { "value": "01E3", "name": "LATIN SMALL LETTER AE WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E6 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A E MACRON", "comment": "", "uppercase_mapping": "01E2", "lowercase_mapping": "", "titlecase_mapping": "01E2", "symbol": "\u01E3" }, 485: { "value": "01E5", "name": "LATIN SMALL LETTER G WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G BAR", "comment": "", "uppercase_mapping": "01E4", "lowercase_mapping": "", "titlecase_mapping": "01E4", "symbol": "\u01E5" }, 487: { "value": "01E7", "name": "LATIN SMALL LETTER G WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G HACEK", "comment": "", "uppercase_mapping": "01E6", "lowercase_mapping": "", "titlecase_mapping": "01E6", "symbol": "\u01E7" }, 489: { "value": "01E9", "name": "LATIN SMALL LETTER K WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER K HACEK", "comment": "", "uppercase_mapping": "01E8", "lowercase_mapping": "", "titlecase_mapping": "01E8", "symbol": "\u01E9" }, 491: { "value": "01EB", "name": "LATIN SMALL LETTER O WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O OGONEK", "comment": "", "uppercase_mapping": "01EA", "lowercase_mapping": "", "titlecase_mapping": "01EA", "symbol": "\u01EB" }, 493: { "value": "01ED", "name": "LATIN SMALL LETTER O WITH OGONEK AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01EB 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O OGONEK MACRON", "comment": "", "uppercase_mapping": "01EC", "lowercase_mapping": "", "titlecase_mapping": "01EC", "symbol": "\u01ED" }, 495: { "value": "01EF", "name": "LATIN SMALL LETTER EZH WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0292 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER YOGH HACEK", "comment": "", "uppercase_mapping": "01EE", "lowercase_mapping": "", "titlecase_mapping": "01EE", "symbol": "\u01EF" }, 496: { "value": "01F0", "name": "LATIN SMALL LETTER J WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006A 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER J HACEK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01F0" }, 499: { "value": "01F3", "name": "LATIN SMALL LETTER DZ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01F1", "lowercase_mapping": "", "titlecase_mapping": "01F2", "symbol": "\u01F3" }, 501: { "value": "01F5", "name": "LATIN SMALL LETTER G WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01F4", "lowercase_mapping": "", "titlecase_mapping": "01F4", "symbol": "\u01F5" }, 505: { "value": "01F9", "name": "LATIN SMALL LETTER N WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01F8", "lowercase_mapping": "", "titlecase_mapping": "01F8", "symbol": "\u01F9" }, 507: { "value": "01FB", "name": "LATIN SMALL LETTER A WITH RING ABOVE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E5 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01FA", "lowercase_mapping": "", "titlecase_mapping": "01FA", "symbol": "\u01FB" }, 509: { "value": "01FD", "name": "LATIN SMALL LETTER AE WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E6 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01FC", "lowercase_mapping": "", "titlecase_mapping": "01FC", "symbol": "\u01FD" }, 511: { "value": "01FF", "name": "LATIN SMALL LETTER O WITH STROKE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F8 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01FE", "lowercase_mapping": "", "titlecase_mapping": "01FE", "symbol": "\u01FF" }, 513: { "value": "0201", "name": "LATIN SMALL LETTER A WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0200", "lowercase_mapping": "", "titlecase_mapping": "0200", "symbol": "\u0201" }, 515: { "value": "0203", "name": "LATIN SMALL LETTER A WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0202", "lowercase_mapping": "", "titlecase_mapping": "0202", "symbol": "\u0203" }, 517: { "value": "0205", "name": "LATIN SMALL LETTER E WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0204", "lowercase_mapping": "", "titlecase_mapping": "0204", "symbol": "\u0205" }, 519: { "value": "0207", "name": "LATIN SMALL LETTER E WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0206", "lowercase_mapping": "", "titlecase_mapping": "0206", "symbol": "\u0207" }, 521: { "value": "0209", "name": "LATIN SMALL LETTER I WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0208", "lowercase_mapping": "", "titlecase_mapping": "0208", "symbol": "\u0209" }, 523: { "value": "020B", "name": "LATIN SMALL LETTER I WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "020A", "lowercase_mapping": "", "titlecase_mapping": "020A", "symbol": "\u020B" }, 525: { "value": "020D", "name": "LATIN SMALL LETTER O WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "020C", "lowercase_mapping": "", "titlecase_mapping": "020C", "symbol": "\u020D" }, 527: { "value": "020F", "name": "LATIN SMALL LETTER O WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "020E", "lowercase_mapping": "", "titlecase_mapping": "020E", "symbol": "\u020F" }, 529: { "value": "0211", "name": "LATIN SMALL LETTER R WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0210", "lowercase_mapping": "", "titlecase_mapping": "0210", "symbol": "\u0211" }, 531: { "value": "0213", "name": "LATIN SMALL LETTER R WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0212", "lowercase_mapping": "", "titlecase_mapping": "0212", "symbol": "\u0213" }, 533: { "value": "0215", "name": "LATIN SMALL LETTER U WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0214", "lowercase_mapping": "", "titlecase_mapping": "0214", "symbol": "\u0215" }, 535: { "value": "0217", "name": "LATIN SMALL LETTER U WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0216", "lowercase_mapping": "", "titlecase_mapping": "0216", "symbol": "\u0217" }, 537: { "value": "0219", "name": "LATIN SMALL LETTER S WITH COMMA BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0326", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0218", "lowercase_mapping": "", "titlecase_mapping": "0218", "symbol": "\u0219" }, 539: { "value": "021B", "name": "LATIN SMALL LETTER T WITH COMMA BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0326", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "021A", "lowercase_mapping": "", "titlecase_mapping": "021A", "symbol": "\u021B" }, 541: { "value": "021D", "name": "LATIN SMALL LETTER YOGH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "021C", "lowercase_mapping": "", "titlecase_mapping": "021C", "symbol": "\u021D" }, 543: { "value": "021F", "name": "LATIN SMALL LETTER H WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "021E", "lowercase_mapping": "", "titlecase_mapping": "021E", "symbol": "\u021F" }, 545: { "value": "0221", "name": "LATIN SMALL LETTER D WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0221" }, 547: { "value": "0223", "name": "LATIN SMALL LETTER OU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0222", "lowercase_mapping": "", "titlecase_mapping": "0222", "symbol": "\u0223" }, 549: { "value": "0225", "name": "LATIN SMALL LETTER Z WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0224", "lowercase_mapping": "", "titlecase_mapping": "0224", "symbol": "\u0225" }, 551: { "value": "0227", "name": "LATIN SMALL LETTER A WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0226", "lowercase_mapping": "", "titlecase_mapping": "0226", "symbol": "\u0227" }, 553: { "value": "0229", "name": "LATIN SMALL LETTER E WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0228", "lowercase_mapping": "", "titlecase_mapping": "0228", "symbol": "\u0229" }, 555: { "value": "022B", "name": "LATIN SMALL LETTER O WITH DIAERESIS AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F6 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "022A", "lowercase_mapping": "", "titlecase_mapping": "022A", "symbol": "\u022B" }, 557: { "value": "022D", "name": "LATIN SMALL LETTER O WITH TILDE AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F5 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "022C", "lowercase_mapping": "", "titlecase_mapping": "022C", "symbol": "\u022D" }, 559: { "value": "022F", "name": "LATIN SMALL LETTER O WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "022E", "lowercase_mapping": "", "titlecase_mapping": "022E", "symbol": "\u022F" }, 561: { "value": "0231", "name": "LATIN SMALL LETTER O WITH DOT ABOVE AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "022F 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0230", "lowercase_mapping": "", "titlecase_mapping": "0230", "symbol": "\u0231" }, 563: { "value": "0233", "name": "LATIN SMALL LETTER Y WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0232", "lowercase_mapping": "", "titlecase_mapping": "0232", "symbol": "\u0233" }, 564: { "value": "0234", "name": "LATIN SMALL LETTER L WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0234" }, 565: { "value": "0235", "name": "LATIN SMALL LETTER N WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0235" }, 566: { "value": "0236", "name": "LATIN SMALL LETTER T WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0236" }, 567: { "value": "0237", "name": "LATIN SMALL LETTER DOTLESS J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0237" }, 568: { "value": "0238", "name": "LATIN SMALL LETTER DB DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0238" }, 569: { "value": "0239", "name": "LATIN SMALL LETTER QP DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0239" }, 572: { "value": "023C", "name": "LATIN SMALL LETTER C WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "023B", "lowercase_mapping": "", "titlecase_mapping": "023B", "symbol": "\u023C" }, 575: { "value": "023F", "name": "LATIN SMALL LETTER S WITH SWASH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C7E", "lowercase_mapping": "", "titlecase_mapping": "2C7E", "symbol": "\u023F" }, 576: { "value": "0240", "name": "LATIN SMALL LETTER Z WITH SWASH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C7F", "lowercase_mapping": "", "titlecase_mapping": "2C7F", "symbol": "\u0240" }, 578: { "value": "0242", "name": "LATIN SMALL LETTER GLOTTAL STOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0241", "lowercase_mapping": "", "titlecase_mapping": "0241", "symbol": "\u0242" }, 583: { "value": "0247", "name": "LATIN SMALL LETTER E WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0246", "lowercase_mapping": "", "titlecase_mapping": "0246", "symbol": "\u0247" }, 585: { "value": "0249", "name": "LATIN SMALL LETTER J WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0248", "lowercase_mapping": "", "titlecase_mapping": "0248", "symbol": "\u0249" }, 587: { "value": "024B", "name": "LATIN SMALL LETTER Q WITH HOOK TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "024A", "lowercase_mapping": "", "titlecase_mapping": "024A", "symbol": "\u024B" }, 589: { "value": "024D", "name": "LATIN SMALL LETTER R WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "024C", "lowercase_mapping": "", "titlecase_mapping": "024C", "symbol": "\u024D" }, 591: { "value": "024F", "name": "LATIN SMALL LETTER Y WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "024E", "lowercase_mapping": "", "titlecase_mapping": "024E", "symbol": "\u024F" }, 592: { "value": "0250", "name": "LATIN SMALL LETTER TURNED A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C6F", "lowercase_mapping": "", "titlecase_mapping": "2C6F", "symbol": "\u0250" }, 593: { "value": "0251", "name": "LATIN SMALL LETTER ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER SCRIPT A", "comment": "", "uppercase_mapping": "2C6D", "lowercase_mapping": "", "titlecase_mapping": "2C6D", "symbol": "\u0251" }, 594: { "value": "0252", "name": "LATIN SMALL LETTER TURNED ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER TURNED SCRIPT A", "comment": "", "uppercase_mapping": "2C70", "lowercase_mapping": "", "titlecase_mapping": "2C70", "symbol": "\u0252" }, 595: { "value": "0253", "name": "LATIN SMALL LETTER B WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER B HOOK", "comment": "", "uppercase_mapping": "0181", "lowercase_mapping": "", "titlecase_mapping": "0181", "symbol": "\u0253" }, 596: { "value": "0254", "name": "LATIN SMALL LETTER OPEN O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0186", "lowercase_mapping": "", "titlecase_mapping": "0186", "symbol": "\u0254" }, 597: { "value": "0255", "name": "LATIN SMALL LETTER C WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0255" }, 598: { "value": "0256", "name": "LATIN SMALL LETTER D WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D RETROFLEX HOOK", "comment": "", "uppercase_mapping": "0189", "lowercase_mapping": "", "titlecase_mapping": "0189", "symbol": "\u0256" }, 599: { "value": "0257", "name": "LATIN SMALL LETTER D WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D HOOK", "comment": "", "uppercase_mapping": "018A", "lowercase_mapping": "", "titlecase_mapping": "018A", "symbol": "\u0257" }, 600: { "value": "0258", "name": "LATIN SMALL LETTER REVERSED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0258" }, 601: { "value": "0259", "name": "LATIN SMALL LETTER SCHWA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "018F", "lowercase_mapping": "", "titlecase_mapping": "018F", "symbol": "\u0259" }, 602: { "value": "025A", "name": "LATIN SMALL LETTER SCHWA WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER SCHWA HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u025A" }, 603: { "value": "025B", "name": "LATIN SMALL LETTER OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER EPSILON", "comment": "", "uppercase_mapping": "0190", "lowercase_mapping": "", "titlecase_mapping": "0190", "symbol": "\u025B" }, 604: { "value": "025C", "name": "LATIN SMALL LETTER REVERSED OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER REVERSED EPSILON", "comment": "", "uppercase_mapping": "A7AB", "lowercase_mapping": "", "titlecase_mapping": "A7AB", "symbol": "\u025C" }, 605: { "value": "025D", "name": "LATIN SMALL LETTER REVERSED OPEN E WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER REVERSED EPSILON HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u025D" }, 606: { "value": "025E", "name": "LATIN SMALL LETTER CLOSED REVERSED OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER CLOSED REVERSED EPSILON", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u025E" }, 607: { "value": "025F", "name": "LATIN SMALL LETTER DOTLESS J WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER DOTLESS J BAR", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u025F" }, 608: { "value": "0260", "name": "LATIN SMALL LETTER G WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G HOOK", "comment": "", "uppercase_mapping": "0193", "lowercase_mapping": "", "titlecase_mapping": "0193", "symbol": "\u0260" }, 609: { "value": "0261", "name": "LATIN SMALL LETTER SCRIPT G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7AC", "lowercase_mapping": "", "titlecase_mapping": "A7AC", "symbol": "\u0261" }, 610: { "value": "0262", "name": "LATIN LETTER SMALL CAPITAL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0262" }, 611: { "value": "0263", "name": "LATIN SMALL LETTER GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0194", "lowercase_mapping": "", "titlecase_mapping": "0194", "symbol": "\u0263" }, 612: { "value": "0264", "name": "LATIN SMALL LETTER RAMS HORN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER BABY GAMMA", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0264" }, 613: { "value": "0265", "name": "LATIN SMALL LETTER TURNED H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A78D", "lowercase_mapping": "", "titlecase_mapping": "A78D", "symbol": "\u0265" }, 614: { "value": "0266", "name": "LATIN SMALL LETTER H WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER H HOOK", "comment": "", "uppercase_mapping": "A7AA", "lowercase_mapping": "", "titlecase_mapping": "A7AA", "symbol": "\u0266" }, 615: { "value": "0267", "name": "LATIN SMALL LETTER HENG WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER HENG HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0267" }, 616: { "value": "0268", "name": "LATIN SMALL LETTER I WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER BARRED I", "comment": "", "uppercase_mapping": "0197", "lowercase_mapping": "", "titlecase_mapping": "0197", "symbol": "\u0268" }, 617: { "value": "0269", "name": "LATIN SMALL LETTER IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0196", "lowercase_mapping": "", "titlecase_mapping": "0196", "symbol": "\u0269" }, 618: { "value": "026A", "name": "LATIN LETTER SMALL CAPITAL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7AE", "lowercase_mapping": "", "titlecase_mapping": "A7AE", "symbol": "\u026A" }, 619: { "value": "026B", "name": "LATIN SMALL LETTER L WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C62", "lowercase_mapping": "", "titlecase_mapping": "2C62", "symbol": "\u026B" }, 620: { "value": "026C", "name": "LATIN SMALL LETTER L WITH BELT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L BELT", "comment": "", "uppercase_mapping": "A7AD", "lowercase_mapping": "", "titlecase_mapping": "A7AD", "symbol": "\u026C" }, 621: { "value": "026D", "name": "LATIN SMALL LETTER L WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L RETROFLEX HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u026D" }, 622: { "value": "026E", "name": "LATIN SMALL LETTER LEZH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L YOGH", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u026E" }, 623: { "value": "026F", "name": "LATIN SMALL LETTER TURNED M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "019C", "lowercase_mapping": "", "titlecase_mapping": "019C", "symbol": "\u026F" }, 624: { "value": "0270", "name": "LATIN SMALL LETTER TURNED M WITH LONG LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0270" }, 625: { "value": "0271", "name": "LATIN SMALL LETTER M WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER M HOOK", "comment": "", "uppercase_mapping": "2C6E", "lowercase_mapping": "", "titlecase_mapping": "2C6E", "symbol": "\u0271" }, 626: { "value": "0272", "name": "LATIN SMALL LETTER N WITH LEFT HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N HOOK", "comment": "", "uppercase_mapping": "019D", "lowercase_mapping": "", "titlecase_mapping": "019D", "symbol": "\u0272" }, 627: { "value": "0273", "name": "LATIN SMALL LETTER N WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N RETROFLEX HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0273" }, 628: { "value": "0274", "name": "LATIN LETTER SMALL CAPITAL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0274" }, 629: { "value": "0275", "name": "LATIN SMALL LETTER BARRED O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "019F", "lowercase_mapping": "", "titlecase_mapping": "019F", "symbol": "\u0275" }, 630: { "value": "0276", "name": "LATIN LETTER SMALL CAPITAL OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER SMALL CAPITAL O E", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0276" }, 631: { "value": "0277", "name": "LATIN SMALL LETTER CLOSED OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0277" }, 632: { "value": "0278", "name": "LATIN SMALL LETTER PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0278" }, 633: { "value": "0279", "name": "LATIN SMALL LETTER TURNED R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0279" }, 634: { "value": "027A", "name": "LATIN SMALL LETTER TURNED R WITH LONG LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027A" }, 635: { "value": "027B", "name": "LATIN SMALL LETTER TURNED R WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER TURNED R HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027B" }, 636: { "value": "027C", "name": "LATIN SMALL LETTER R WITH LONG LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027C" }, 637: { "value": "027D", "name": "LATIN SMALL LETTER R WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER R HOOK", "comment": "", "uppercase_mapping": "2C64", "lowercase_mapping": "", "titlecase_mapping": "2C64", "symbol": "\u027D" }, 638: { "value": "027E", "name": "LATIN SMALL LETTER R WITH FISHHOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER FISHHOOK R", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027E" }, 639: { "value": "027F", "name": "LATIN SMALL LETTER REVERSED R WITH FISHHOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER REVERSED FISHHOOK R", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027F" }, 640: { "value": "0280", "name": "LATIN LETTER SMALL CAPITAL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01A6", "lowercase_mapping": "", "titlecase_mapping": "01A6", "symbol": "\u0280" }, 641: { "value": "0281", "name": "LATIN LETTER SMALL CAPITAL INVERTED R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0281" }, 642: { "value": "0282", "name": "LATIN SMALL LETTER S WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0282" }, 643: { "value": "0283", "name": "LATIN SMALL LETTER ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01A9", "lowercase_mapping": "", "titlecase_mapping": "01A9", "symbol": "\u0283" }, 644: { "value": "0284", "name": "LATIN SMALL LETTER DOTLESS J WITH STROKE AND HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER DOTLESS J BAR HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0284" }, 645: { "value": "0285", "name": "LATIN SMALL LETTER SQUAT REVERSED ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0285" }, 646: { "value": "0286", "name": "LATIN SMALL LETTER ESH WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER ESH CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0286" }, 647: { "value": "0287", "name": "LATIN SMALL LETTER TURNED T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B1", "lowercase_mapping": "", "titlecase_mapping": "A7B1", "symbol": "\u0287" }, 648: { "value": "0288", "name": "LATIN SMALL LETTER T WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T RETROFLEX HOOK", "comment": "", "uppercase_mapping": "01AE", "lowercase_mapping": "", "titlecase_mapping": "01AE", "symbol": "\u0288" }, 649: { "value": "0289", "name": "LATIN SMALL LETTER U BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0244", "lowercase_mapping": "", "titlecase_mapping": "0244", "symbol": "\u0289" }, 650: { "value": "028A", "name": "LATIN SMALL LETTER UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01B1", "lowercase_mapping": "", "titlecase_mapping": "01B1", "symbol": "\u028A" }, 651: { "value": "028B", "name": "LATIN SMALL LETTER V WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER SCRIPT V", "comment": "", "uppercase_mapping": "01B2", "lowercase_mapping": "", "titlecase_mapping": "01B2", "symbol": "\u028B" }, 652: { "value": "028C", "name": "LATIN SMALL LETTER TURNED V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0245", "lowercase_mapping": "", "titlecase_mapping": "0245", "symbol": "\u028C" }, 653: { "value": "028D", "name": "LATIN SMALL LETTER TURNED W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u028D" }, 654: { "value": "028E", "name": "LATIN SMALL LETTER TURNED Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u028E" }, 655: { "value": "028F", "name": "LATIN LETTER SMALL CAPITAL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u028F" }, 656: { "value": "0290", "name": "LATIN SMALL LETTER Z WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z RETROFLEX HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0290" }, 657: { "value": "0291", "name": "LATIN SMALL LETTER Z WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0291" }, 658: { "value": "0292", "name": "LATIN SMALL LETTER EZH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER YOGH", "comment": "", "uppercase_mapping": "01B7", "lowercase_mapping": "", "titlecase_mapping": "01B7", "symbol": "\u0292" }, 659: { "value": "0293", "name": "LATIN SMALL LETTER EZH WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER YOGH CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0293" }, 661: { "value": "0295", "name": "LATIN LETTER PHARYNGEAL VOICED FRICATIVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER REVERSED GLOTTAL STOP", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0295" }, 662: { "value": "0296", "name": "LATIN LETTER INVERTED GLOTTAL STOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0296" }, 663: { "value": "0297", "name": "LATIN LETTER STRETCHED C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0297" }, 664: { "value": "0298", "name": "LATIN LETTER BILABIAL CLICK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER BULLSEYE", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0298" }, 665: { "value": "0299", "name": "LATIN LETTER SMALL CAPITAL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0299" }, 666: { "value": "029A", "name": "LATIN SMALL LETTER CLOSED OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER CLOSED EPSILON", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u029A" }, 667: { "value": "029B", "name": "LATIN LETTER SMALL CAPITAL G WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER SMALL CAPITAL G HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u029B" }, 668: { "value": "029C", "name": "LATIN LETTER SMALL CAPITAL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u029C" }, 669: { "value": "029D", "name": "LATIN SMALL LETTER J WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER CROSSED-TAIL J", "comment": "", "uppercase_mapping": "A7B2", "lowercase_mapping": "", "titlecase_mapping": "A7B2", "symbol": "\u029D" }, 670: { "value": "029E", "name": "LATIN SMALL LETTER TURNED K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B0", "lowercase_mapping": "", "titlecase_mapping": "A7B0", "symbol": "\u029E" }, 671: { "value": "029F", "name": "LATIN LETTER SMALL CAPITAL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u029F" }, 672: { "value": "02A0", "name": "LATIN SMALL LETTER Q WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Q HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A0" }, 673: { "value": "02A1", "name": "LATIN LETTER GLOTTAL STOP WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER GLOTTAL STOP BAR", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A1" }, 674: { "value": "02A2", "name": "LATIN LETTER REVERSED GLOTTAL STOP WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER REVERSED GLOTTAL STOP BAR", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A2" }, 675: { "value": "02A3", "name": "LATIN SMALL LETTER DZ DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D Z", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A3" }, 676: { "value": "02A4", "name": "LATIN SMALL LETTER DEZH DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D YOGH", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A4" }, 677: { "value": "02A5", "name": "LATIN SMALL LETTER DZ DIGRAPH WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D Z CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A5" }, 678: { "value": "02A6", "name": "LATIN SMALL LETTER TS DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T S", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A6" }, 679: { "value": "02A7", "name": "LATIN SMALL LETTER TESH DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T ESH", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A7" }, 680: { "value": "02A8", "name": "LATIN SMALL LETTER TC DIGRAPH WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T C CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A8" }, 681: { "value": "02A9", "name": "LATIN SMALL LETTER FENG DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A9" }, 682: { "value": "02AA", "name": "LATIN SMALL LETTER LS DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AA" }, 683: { "value": "02AB", "name": "LATIN SMALL LETTER LZ DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AB" }, 684: { "value": "02AC", "name": "LATIN LETTER BILABIAL PERCUSSIVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AC" }, 685: { "value": "02AD", "name": "LATIN LETTER BIDENTAL PERCUSSIVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AD" }, 686: { "value": "02AE", "name": "LATIN SMALL LETTER TURNED H WITH FISHHOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AE" }, 687: { "value": "02AF", "name": "LATIN SMALL LETTER TURNED H WITH FISHHOOK AND TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AF" }, 881: { "value": "0371", "name": "GREEK SMALL LETTER HETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0370", "lowercase_mapping": "", "titlecase_mapping": "0370", "symbol": "\u0371" }, 883: { "value": "0373", "name": "GREEK SMALL LETTER ARCHAIC SAMPI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0372", "lowercase_mapping": "", "titlecase_mapping": "0372", "symbol": "\u0373" }, 887: { "value": "0377", "name": "GREEK SMALL LETTER PAMPHYLIAN DIGAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0376", "lowercase_mapping": "", "titlecase_mapping": "0376", "symbol": "\u0377" }, 891: { "value": "037B", "name": "GREEK SMALL REVERSED LUNATE SIGMA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03FD", "lowercase_mapping": "", "titlecase_mapping": "03FD", "symbol": "\u037B" }, 892: { "value": "037C", "name": "GREEK SMALL DOTTED LUNATE SIGMA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03FE", "lowercase_mapping": "", "titlecase_mapping": "03FE", "symbol": "\u037C" }, 893: { "value": "037D", "name": "GREEK SMALL REVERSED DOTTED LUNATE SIGMA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03FF", "lowercase_mapping": "", "titlecase_mapping": "03FF", "symbol": "\u037D" }, 912: { "value": "0390", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CA 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER IOTA DIAERESIS TONOS", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0390" }, 940: { "value": "03AC", "name": "GREEK SMALL LETTER ALPHA WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER ALPHA TONOS", "comment": "", "uppercase_mapping": "0386", "lowercase_mapping": "", "titlecase_mapping": "0386", "symbol": "\u03AC" }, 941: { "value": "03AD", "name": "GREEK SMALL LETTER EPSILON WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B5 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER EPSILON TONOS", "comment": "", "uppercase_mapping": "0388", "lowercase_mapping": "", "titlecase_mapping": "0388", "symbol": "\u03AD" }, 942: { "value": "03AE", "name": "GREEK SMALL LETTER ETA WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER ETA TONOS", "comment": "", "uppercase_mapping": "0389", "lowercase_mapping": "", "titlecase_mapping": "0389", "symbol": "\u03AE" }, 943: { "value": "03AF", "name": "GREEK SMALL LETTER IOTA WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER IOTA TONOS", "comment": "", "uppercase_mapping": "038A", "lowercase_mapping": "", "titlecase_mapping": "038A", "symbol": "\u03AF" }, 944: { "value": "03B0", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CB 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER UPSILON DIAERESIS TONOS", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u03B0" }, 945: { "value": "03B1", "name": "GREEK SMALL LETTER ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0391", "lowercase_mapping": "", "titlecase_mapping": "0391", "symbol": "\u03B1" }, 946: { "value": "03B2", "name": "GREEK SMALL LETTER BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0392", "lowercase_mapping": "", "titlecase_mapping": "0392", "symbol": "\u03B2" }, 947: { "value": "03B3", "name": "GREEK SMALL LETTER GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0393", "lowercase_mapping": "", "titlecase_mapping": "0393", "symbol": "\u03B3" }, 948: { "value": "03B4", "name": "GREEK SMALL LETTER DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0394", "lowercase_mapping": "", "titlecase_mapping": "0394", "symbol": "\u03B4" }, 949: { "value": "03B5", "name": "GREEK SMALL LETTER EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0395", "lowercase_mapping": "", "titlecase_mapping": "0395", "symbol": "\u03B5" }, 950: { "value": "03B6", "name": "GREEK SMALL LETTER ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0396", "lowercase_mapping": "", "titlecase_mapping": "0396", "symbol": "\u03B6" }, 951: { "value": "03B7", "name": "GREEK SMALL LETTER ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0397", "lowercase_mapping": "", "titlecase_mapping": "0397", "symbol": "\u03B7" }, 952: { "value": "03B8", "name": "GREEK SMALL LETTER THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0398", "lowercase_mapping": "", "titlecase_mapping": "0398", "symbol": "\u03B8" }, 953: { "value": "03B9", "name": "GREEK SMALL LETTER IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0399", "lowercase_mapping": "", "titlecase_mapping": "0399", "symbol": "\u03B9" }, 954: { "value": "03BA", "name": "GREEK SMALL LETTER KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039A", "lowercase_mapping": "", "titlecase_mapping": "039A", "symbol": "\u03BA" }, 955: { "value": "03BB", "name": "GREEK SMALL LETTER LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER LAMBDA", "comment": "", "uppercase_mapping": "039B", "lowercase_mapping": "", "titlecase_mapping": "039B", "symbol": "\u03BB" }, 956: { "value": "03BC", "name": "GREEK SMALL LETTER MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039C", "lowercase_mapping": "", "titlecase_mapping": "039C", "symbol": "\u03BC" }, 957: { "value": "03BD", "name": "GREEK SMALL LETTER NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039D", "lowercase_mapping": "", "titlecase_mapping": "039D", "symbol": "\u03BD" }, 958: { "value": "03BE", "name": "GREEK SMALL LETTER XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039E", "lowercase_mapping": "", "titlecase_mapping": "039E", "symbol": "\u03BE" }, 959: { "value": "03BF", "name": "GREEK SMALL LETTER OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039F", "lowercase_mapping": "", "titlecase_mapping": "039F", "symbol": "\u03BF" }, 960: { "value": "03C0", "name": "GREEK SMALL LETTER PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A0", "lowercase_mapping": "", "titlecase_mapping": "03A0", "symbol": "\u03C0" }, 961: { "value": "03C1", "name": "GREEK SMALL LETTER RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A1", "lowercase_mapping": "", "titlecase_mapping": "03A1", "symbol": "\u03C1" }, 962: { "value": "03C2", "name": "GREEK SMALL LETTER FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A3", "lowercase_mapping": "", "titlecase_mapping": "03A3", "symbol": "\u03C2" }, 963: { "value": "03C3", "name": "GREEK SMALL LETTER SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A3", "lowercase_mapping": "", "titlecase_mapping": "03A3", "symbol": "\u03C3" }, 964: { "value": "03C4", "name": "GREEK SMALL LETTER TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A4", "lowercase_mapping": "", "titlecase_mapping": "03A4", "symbol": "\u03C4" }, 965: { "value": "03C5", "name": "GREEK SMALL LETTER UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A5", "lowercase_mapping": "", "titlecase_mapping": "03A5", "symbol": "\u03C5" }, 966: { "value": "03C6", "name": "GREEK SMALL LETTER PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A6", "lowercase_mapping": "", "titlecase_mapping": "03A6", "symbol": "\u03C6" }, 967: { "value": "03C7", "name": "GREEK SMALL LETTER CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A7", "lowercase_mapping": "", "titlecase_mapping": "03A7", "symbol": "\u03C7" }, 968: { "value": "03C8", "name": "GREEK SMALL LETTER PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A8", "lowercase_mapping": "", "titlecase_mapping": "03A8", "symbol": "\u03C8" }, 969: { "value": "03C9", "name": "GREEK SMALL LETTER OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A9", "lowercase_mapping": "", "titlecase_mapping": "03A9", "symbol": "\u03C9" }, 970: { "value": "03CA", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER IOTA DIAERESIS", "comment": "", "uppercase_mapping": "03AA", "lowercase_mapping": "", "titlecase_mapping": "03AA", "symbol": "\u03CA" }, 971: { "value": "03CB", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER UPSILON DIAERESIS", "comment": "", "uppercase_mapping": "03AB", "lowercase_mapping": "", "titlecase_mapping": "03AB", "symbol": "\u03CB" }, 972: { "value": "03CC", "name": "GREEK SMALL LETTER OMICRON WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03BF 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER OMICRON TONOS", "comment": "", "uppercase_mapping": "038C", "lowercase_mapping": "", "titlecase_mapping": "038C", "symbol": "\u03CC" }, 973: { "value": "03CD", "name": "GREEK SMALL LETTER UPSILON WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER UPSILON TONOS", "comment": "", "uppercase_mapping": "038E", "lowercase_mapping": "", "titlecase_mapping": "038E", "symbol": "\u03CD" }, 974: { "value": "03CE", "name": "GREEK SMALL LETTER OMEGA WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER OMEGA TONOS", "comment": "", "uppercase_mapping": "038F", "lowercase_mapping": "", "titlecase_mapping": "038F", "symbol": "\u03CE" }, 976: { "value": "03D0", "name": "GREEK BETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER CURLED BETA", "comment": "", "uppercase_mapping": "0392", "lowercase_mapping": "", "titlecase_mapping": "0392", "symbol": "\u03D0" }, 977: { "value": "03D1", "name": "GREEK THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SCRIPT THETA", "comment": "", "uppercase_mapping": "0398", "lowercase_mapping": "", "titlecase_mapping": "0398", "symbol": "\u03D1" }, 981: { "value": "03D5", "name": "GREEK PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SCRIPT PHI", "comment": "", "uppercase_mapping": "03A6", "lowercase_mapping": "", "titlecase_mapping": "03A6", "symbol": "\u03D5" }, 982: { "value": "03D6", "name": "GREEK PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER OMEGA PI", "comment": "", "uppercase_mapping": "03A0", "lowercase_mapping": "", "titlecase_mapping": "03A0", "symbol": "\u03D6" }, 983: { "value": "03D7", "name": "GREEK KAI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03CF", "lowercase_mapping": "", "titlecase_mapping": "03CF", "symbol": "\u03D7" }, 985: { "value": "03D9", "name": "GREEK SMALL LETTER ARCHAIC KOPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03D8", "lowercase_mapping": "", "titlecase_mapping": "03D8", "symbol": "\u03D9" }, 987: { "value": "03DB", "name": "GREEK SMALL LETTER STIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03DA", "lowercase_mapping": "", "titlecase_mapping": "03DA", "symbol": "\u03DB" }, 989: { "value": "03DD", "name": "GREEK SMALL LETTER DIGAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03DC", "lowercase_mapping": "", "titlecase_mapping": "03DC", "symbol": "\u03DD" }, 991: { "value": "03DF", "name": "GREEK SMALL LETTER KOPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03DE", "lowercase_mapping": "", "titlecase_mapping": "03DE", "symbol": "\u03DF" }, 993: { "value": "03E1", "name": "GREEK SMALL LETTER SAMPI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03E0", "lowercase_mapping": "", "titlecase_mapping": "03E0", "symbol": "\u03E1" }, 995: { "value": "03E3", "name": "COPTIC SMALL LETTER SHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SHEI", "comment": "", "uppercase_mapping": "03E2", "lowercase_mapping": "", "titlecase_mapping": "03E2", "symbol": "\u03E3" }, 997: { "value": "03E5", "name": "COPTIC SMALL LETTER FEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER FEI", "comment": "", "uppercase_mapping": "03E4", "lowercase_mapping": "", "titlecase_mapping": "03E4", "symbol": "\u03E5" }, 999: { "value": "03E7", "name": "COPTIC SMALL LETTER KHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER KHEI", "comment": "", "uppercase_mapping": "03E6", "lowercase_mapping": "", "titlecase_mapping": "03E6", "symbol": "\u03E7" }, 1001: { "value": "03E9", "name": "COPTIC SMALL LETTER HORI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER HORI", "comment": "", "uppercase_mapping": "03E8", "lowercase_mapping": "", "titlecase_mapping": "03E8", "symbol": "\u03E9" }, 1003: { "value": "03EB", "name": "COPTIC SMALL LETTER GANGIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER GANGIA", "comment": "", "uppercase_mapping": "03EA", "lowercase_mapping": "", "titlecase_mapping": "03EA", "symbol": "\u03EB" }, 1005: { "value": "03ED", "name": "COPTIC SMALL LETTER SHIMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SHIMA", "comment": "", "uppercase_mapping": "03EC", "lowercase_mapping": "", "titlecase_mapping": "03EC", "symbol": "\u03ED" }, 1007: { "value": "03EF", "name": "COPTIC SMALL LETTER DEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER DEI", "comment": "", "uppercase_mapping": "03EE", "lowercase_mapping": "", "titlecase_mapping": "03EE", "symbol": "\u03EF" }, 1008: { "value": "03F0", "name": "GREEK KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SCRIPT KAPPA", "comment": "", "uppercase_mapping": "039A", "lowercase_mapping": "", "titlecase_mapping": "039A", "symbol": "\u03F0" }, 1009: { "value": "03F1", "name": "GREEK RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER TAILED RHO", "comment": "", "uppercase_mapping": "03A1", "lowercase_mapping": "", "titlecase_mapping": "03A1", "symbol": "\u03F1" }, 1010: { "value": "03F2", "name": "GREEK LUNATE SIGMA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER LUNATE SIGMA", "comment": "", "uppercase_mapping": "03F9", "lowercase_mapping": "", "titlecase_mapping": "03F9", "symbol": "\u03F2" }, 1011: { "value": "03F3", "name": "GREEK LETTER YOT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "037F", "lowercase_mapping": "", "titlecase_mapping": "037F", "symbol": "\u03F3" }, 1013: { "value": "03F5", "name": "GREEK LUNATE EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0395", "lowercase_mapping": "", "titlecase_mapping": "0395", "symbol": "\u03F5" }, 1016: { "value": "03F8", "name": "GREEK SMALL LETTER SHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03F7", "lowercase_mapping": "", "titlecase_mapping": "03F7", "symbol": "\u03F8" }, 1019: { "value": "03FB", "name": "GREEK SMALL LETTER SAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03FA", "lowercase_mapping": "", "titlecase_mapping": "03FA", "symbol": "\u03FB" }, 1020: { "value": "03FC", "name": "GREEK RHO WITH STROKE SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u03FC" }, 1072: { "value": "0430", "name": "CYRILLIC SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0410", "lowercase_mapping": "", "titlecase_mapping": "0410", "symbol": "\u0430" }, 1073: { "value": "0431", "name": "CYRILLIC SMALL LETTER BE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0411", "lowercase_mapping": "", "titlecase_mapping": "0411", "symbol": "\u0431" }, 1074: { "value": "0432", "name": "CYRILLIC SMALL LETTER VE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0412", "lowercase_mapping": "", "titlecase_mapping": "0412", "symbol": "\u0432" }, 1075: { "value": "0433", "name": "CYRILLIC SMALL LETTER GHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER GE", "comment": "", "uppercase_mapping": "0413", "lowercase_mapping": "", "titlecase_mapping": "0413", "symbol": "\u0433" }, 1076: { "value": "0434", "name": "CYRILLIC SMALL LETTER DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0414", "lowercase_mapping": "", "titlecase_mapping": "0414", "symbol": "\u0434" }, 1077: { "value": "0435", "name": "CYRILLIC SMALL LETTER IE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0415", "lowercase_mapping": "", "titlecase_mapping": "0415", "symbol": "\u0435" }, 1078: { "value": "0436", "name": "CYRILLIC SMALL LETTER ZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0416", "lowercase_mapping": "", "titlecase_mapping": "0416", "symbol": "\u0436" }, 1079: { "value": "0437", "name": "CYRILLIC SMALL LETTER ZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0417", "lowercase_mapping": "", "titlecase_mapping": "0417", "symbol": "\u0437" }, 1080: { "value": "0438", "name": "CYRILLIC SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER II", "comment": "", "uppercase_mapping": "0418", "lowercase_mapping": "", "titlecase_mapping": "0418", "symbol": "\u0438" }, 1081: { "value": "0439", "name": "CYRILLIC SMALL LETTER SHORT I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0438 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER SHORT II", "comment": "", "uppercase_mapping": "0419", "lowercase_mapping": "", "titlecase_mapping": "0419", "symbol": "\u0439" }, 1082: { "value": "043A", "name": "CYRILLIC SMALL LETTER KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041A", "lowercase_mapping": "", "titlecase_mapping": "041A", "symbol": "\u043A" }, 1083: { "value": "043B", "name": "CYRILLIC SMALL LETTER EL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041B", "lowercase_mapping": "", "titlecase_mapping": "041B", "symbol": "\u043B" }, 1084: { "value": "043C", "name": "CYRILLIC SMALL LETTER EM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041C", "lowercase_mapping": "", "titlecase_mapping": "041C", "symbol": "\u043C" }, 1085: { "value": "043D", "name": "CYRILLIC SMALL LETTER EN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041D", "lowercase_mapping": "", "titlecase_mapping": "041D", "symbol": "\u043D" }, 1086: { "value": "043E", "name": "CYRILLIC SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041E", "lowercase_mapping": "", "titlecase_mapping": "041E", "symbol": "\u043E" }, 1087: { "value": "043F", "name": "CYRILLIC SMALL LETTER PE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041F", "lowercase_mapping": "", "titlecase_mapping": "041F", "symbol": "\u043F" }, 1088: { "value": "0440", "name": "CYRILLIC SMALL LETTER ER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0420", "lowercase_mapping": "", "titlecase_mapping": "0420", "symbol": "\u0440" }, 1089: { "value": "0441", "name": "CYRILLIC SMALL LETTER ES", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0421", "lowercase_mapping": "", "titlecase_mapping": "0421", "symbol": "\u0441" }, 1090: { "value": "0442", "name": "CYRILLIC SMALL LETTER TE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0422", "lowercase_mapping": "", "titlecase_mapping": "0422", "symbol": "\u0442" }, 1091: { "value": "0443", "name": "CYRILLIC SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0423", "lowercase_mapping": "", "titlecase_mapping": "0423", "symbol": "\u0443" }, 1092: { "value": "0444", "name": "CYRILLIC SMALL LETTER EF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0424", "lowercase_mapping": "", "titlecase_mapping": "0424", "symbol": "\u0444" }, 1093: { "value": "0445", "name": "CYRILLIC SMALL LETTER HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KHA", "comment": "", "uppercase_mapping": "0425", "lowercase_mapping": "", "titlecase_mapping": "0425", "symbol": "\u0445" }, 1094: { "value": "0446", "name": "CYRILLIC SMALL LETTER TSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0426", "lowercase_mapping": "", "titlecase_mapping": "0426", "symbol": "\u0446" }, 1095: { "value": "0447", "name": "CYRILLIC SMALL LETTER CHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0427", "lowercase_mapping": "", "titlecase_mapping": "0427", "symbol": "\u0447" }, 1096: { "value": "0448", "name": "CYRILLIC SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0428", "lowercase_mapping": "", "titlecase_mapping": "0428", "symbol": "\u0448" }, 1097: { "value": "0449", "name": "CYRILLIC SMALL LETTER SHCHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0429", "lowercase_mapping": "", "titlecase_mapping": "0429", "symbol": "\u0449" }, 1098: { "value": "044A", "name": "CYRILLIC SMALL LETTER HARD SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "042A", "lowercase_mapping": "", "titlecase_mapping": "042A", "symbol": "\u044A" }, 1099: { "value": "044B", "name": "CYRILLIC SMALL LETTER YERU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER YERI", "comment": "", "uppercase_mapping": "042B", "lowercase_mapping": "", "titlecase_mapping": "042B", "symbol": "\u044B" }, 1100: { "value": "044C", "name": "CYRILLIC SMALL LETTER SOFT SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "042C", "lowercase_mapping": "", "titlecase_mapping": "042C", "symbol": "\u044C" }, 1101: { "value": "044D", "name": "CYRILLIC SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER REVERSED E", "comment": "", "uppercase_mapping": "042D", "lowercase_mapping": "", "titlecase_mapping": "042D", "symbol": "\u044D" }, 1102: { "value": "044E", "name": "CYRILLIC SMALL LETTER YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IU", "comment": "", "uppercase_mapping": "042E", "lowercase_mapping": "", "titlecase_mapping": "042E", "symbol": "\u044E" }, 1103: { "value": "044F", "name": "CYRILLIC SMALL LETTER YA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IA", "comment": "", "uppercase_mapping": "042F", "lowercase_mapping": "", "titlecase_mapping": "042F", "symbol": "\u044F" }, 1104: { "value": "0450", "name": "CYRILLIC SMALL LETTER IE WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0435 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0400", "lowercase_mapping": "", "titlecase_mapping": "0400", "symbol": "\u0450" }, 1105: { "value": "0451", "name": "CYRILLIC SMALL LETTER IO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0435 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0401", "lowercase_mapping": "", "titlecase_mapping": "0401", "symbol": "\u0451" }, 1106: { "value": "0452", "name": "CYRILLIC SMALL LETTER DJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0402", "lowercase_mapping": "", "titlecase_mapping": "0402", "symbol": "\u0452" }, 1107: { "value": "0453", "name": "CYRILLIC SMALL LETTER GJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0433 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0403", "lowercase_mapping": "", "titlecase_mapping": "0403", "symbol": "\u0453" }, 1108: { "value": "0454", "name": "CYRILLIC SMALL LETTER UKRAINIAN IE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER E", "comment": "", "uppercase_mapping": "0404", "lowercase_mapping": "", "titlecase_mapping": "0404", "symbol": "\u0454" }, 1109: { "value": "0455", "name": "CYRILLIC SMALL LETTER DZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0405", "lowercase_mapping": "", "titlecase_mapping": "0405", "symbol": "\u0455" }, 1110: { "value": "0456", "name": "CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER I", "comment": "", "uppercase_mapping": "0406", "lowercase_mapping": "", "titlecase_mapping": "0406", "symbol": "\u0456" }, 1111: { "value": "0457", "name": "CYRILLIC SMALL LETTER YI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0456 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0407", "lowercase_mapping": "", "titlecase_mapping": "0407", "symbol": "\u0457" }, 1112: { "value": "0458", "name": "CYRILLIC SMALL LETTER JE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0408", "lowercase_mapping": "", "titlecase_mapping": "0408", "symbol": "\u0458" }, 1113: { "value": "0459", "name": "CYRILLIC SMALL LETTER LJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0409", "lowercase_mapping": "", "titlecase_mapping": "0409", "symbol": "\u0459" }, 1114: { "value": "045A", "name": "CYRILLIC SMALL LETTER NJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040A", "lowercase_mapping": "", "titlecase_mapping": "040A", "symbol": "\u045A" }, 1115: { "value": "045B", "name": "CYRILLIC SMALL LETTER TSHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040B", "lowercase_mapping": "", "titlecase_mapping": "040B", "symbol": "\u045B" }, 1116: { "value": "045C", "name": "CYRILLIC SMALL LETTER KJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "043A 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040C", "lowercase_mapping": "", "titlecase_mapping": "040C", "symbol": "\u045C" }, 1117: { "value": "045D", "name": "CYRILLIC SMALL LETTER I WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0438 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040D", "lowercase_mapping": "", "titlecase_mapping": "040D", "symbol": "\u045D" }, 1118: { "value": "045E", "name": "CYRILLIC SMALL LETTER SHORT U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0443 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040E", "lowercase_mapping": "", "titlecase_mapping": "040E", "symbol": "\u045E" }, 1119: { "value": "045F", "name": "CYRILLIC SMALL LETTER DZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040F", "lowercase_mapping": "", "titlecase_mapping": "040F", "symbol": "\u045F" }, 1121: { "value": "0461", "name": "CYRILLIC SMALL LETTER OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0460", "lowercase_mapping": "", "titlecase_mapping": "0460", "symbol": "\u0461" }, 1123: { "value": "0463", "name": "CYRILLIC SMALL LETTER YAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0462", "lowercase_mapping": "", "titlecase_mapping": "0462", "symbol": "\u0463" }, 1125: { "value": "0465", "name": "CYRILLIC SMALL LETTER IOTIFIED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0464", "lowercase_mapping": "", "titlecase_mapping": "0464", "symbol": "\u0465" }, 1127: { "value": "0467", "name": "CYRILLIC SMALL LETTER LITTLE YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0466", "lowercase_mapping": "", "titlecase_mapping": "0466", "symbol": "\u0467" }, 1129: { "value": "0469", "name": "CYRILLIC SMALL LETTER IOTIFIED LITTLE YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0468", "lowercase_mapping": "", "titlecase_mapping": "0468", "symbol": "\u0469" }, 1131: { "value": "046B", "name": "CYRILLIC SMALL LETTER BIG YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "046A", "lowercase_mapping": "", "titlecase_mapping": "046A", "symbol": "\u046B" }, 1133: { "value": "046D", "name": "CYRILLIC SMALL LETTER IOTIFIED BIG YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "046C", "lowercase_mapping": "", "titlecase_mapping": "046C", "symbol": "\u046D" }, 1135: { "value": "046F", "name": "CYRILLIC SMALL LETTER KSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "046E", "lowercase_mapping": "", "titlecase_mapping": "046E", "symbol": "\u046F" }, 1137: { "value": "0471", "name": "CYRILLIC SMALL LETTER PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0470", "lowercase_mapping": "", "titlecase_mapping": "0470", "symbol": "\u0471" }, 1139: { "value": "0473", "name": "CYRILLIC SMALL LETTER FITA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0472", "lowercase_mapping": "", "titlecase_mapping": "0472", "symbol": "\u0473" }, 1141: { "value": "0475", "name": "CYRILLIC SMALL LETTER IZHITSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0474", "lowercase_mapping": "", "titlecase_mapping": "0474", "symbol": "\u0475" }, 1143: { "value": "0477", "name": "CYRILLIC SMALL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0475 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IZHITSA DOUBLE GRAVE", "comment": "", "uppercase_mapping": "0476", "lowercase_mapping": "", "titlecase_mapping": "0476", "symbol": "\u0477" }, 1145: { "value": "0479", "name": "CYRILLIC SMALL LETTER UK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER UK DIGRAPH", "comment": "", "uppercase_mapping": "0478", "lowercase_mapping": "", "titlecase_mapping": "0478", "symbol": "\u0479" }, 1147: { "value": "047B", "name": "CYRILLIC SMALL LETTER ROUND OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "047A", "lowercase_mapping": "", "titlecase_mapping": "047A", "symbol": "\u047B" }, 1149: { "value": "047D", "name": "CYRILLIC SMALL LETTER OMEGA WITH TITLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER OMEGA TITLO", "comment": "", "uppercase_mapping": "047C", "lowercase_mapping": "", "titlecase_mapping": "047C", "symbol": "\u047D" }, 1151: { "value": "047F", "name": "CYRILLIC SMALL LETTER OT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "047E", "lowercase_mapping": "", "titlecase_mapping": "047E", "symbol": "\u047F" }, 1153: { "value": "0481", "name": "CYRILLIC SMALL LETTER KOPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0480", "lowercase_mapping": "", "titlecase_mapping": "0480", "symbol": "\u0481" }, 1163: { "value": "048B", "name": "CYRILLIC SMALL LETTER SHORT I WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "048A", "lowercase_mapping": "", "titlecase_mapping": "048A", "symbol": "\u048B" }, 1165: { "value": "048D", "name": "CYRILLIC SMALL LETTER SEMISOFT SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "048C", "lowercase_mapping": "", "titlecase_mapping": "048C", "symbol": "\u048D" }, 1167: { "value": "048F", "name": "CYRILLIC SMALL LETTER ER WITH TICK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "048E", "lowercase_mapping": "", "titlecase_mapping": "048E", "symbol": "\u048F" }, 1169: { "value": "0491", "name": "CYRILLIC SMALL LETTER GHE WITH UPTURN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER GE WITH UPTURN", "comment": "", "uppercase_mapping": "0490", "lowercase_mapping": "", "titlecase_mapping": "0490", "symbol": "\u0491" }, 1171: { "value": "0493", "name": "CYRILLIC SMALL LETTER GHE WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER GE BAR", "comment": "", "uppercase_mapping": "0492", "lowercase_mapping": "", "titlecase_mapping": "0492", "symbol": "\u0493" }, 1173: { "value": "0495", "name": "CYRILLIC SMALL LETTER GHE WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER GE HOOK", "comment": "", "uppercase_mapping": "0494", "lowercase_mapping": "", "titlecase_mapping": "0494", "symbol": "\u0495" }, 1175: { "value": "0497", "name": "CYRILLIC SMALL LETTER ZHE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER ZHE WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "0496", "lowercase_mapping": "", "titlecase_mapping": "0496", "symbol": "\u0497" }, 1177: { "value": "0499", "name": "CYRILLIC SMALL LETTER ZE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER ZE CEDILLA", "comment": "", "uppercase_mapping": "0498", "lowercase_mapping": "", "titlecase_mapping": "0498", "symbol": "\u0499" }, 1179: { "value": "049B", "name": "CYRILLIC SMALL LETTER KA WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KA WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "049A", "lowercase_mapping": "", "titlecase_mapping": "049A", "symbol": "\u049B" }, 1181: { "value": "049D", "name": "CYRILLIC SMALL LETTER KA WITH VERTICAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KA VERTICAL BAR", "comment": "", "uppercase_mapping": "049C", "lowercase_mapping": "", "titlecase_mapping": "049C", "symbol": "\u049D" }, 1183: { "value": "049F", "name": "CYRILLIC SMALL LETTER KA WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KA BAR", "comment": "", "uppercase_mapping": "049E", "lowercase_mapping": "", "titlecase_mapping": "049E", "symbol": "\u049F" }, 1185: { "value": "04A1", "name": "CYRILLIC SMALL LETTER BASHKIR KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER REVERSED GE KA", "comment": "", "uppercase_mapping": "04A0", "lowercase_mapping": "", "titlecase_mapping": "04A0", "symbol": "\u04A1" }, 1187: { "value": "04A3", "name": "CYRILLIC SMALL LETTER EN WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER EN WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "04A2", "lowercase_mapping": "", "titlecase_mapping": "04A2", "symbol": "\u04A3" }, 1189: { "value": "04A5", "name": "CYRILLIC SMALL LIGATURE EN GHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER EN GE", "comment": "", "uppercase_mapping": "04A4", "lowercase_mapping": "", "titlecase_mapping": "04A4", "symbol": "\u04A5" }, 1191: { "value": "04A7", "name": "CYRILLIC SMALL LETTER PE WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER PE HOOK", "comment": "", "uppercase_mapping": "04A6", "lowercase_mapping": "", "titlecase_mapping": "04A6", "symbol": "\u04A7" }, 1193: { "value": "04A9", "name": "CYRILLIC SMALL LETTER ABKHASIAN HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER O HOOK", "comment": "", "uppercase_mapping": "04A8", "lowercase_mapping": "", "titlecase_mapping": "04A8", "symbol": "\u04A9" }, 1195: { "value": "04AB", "name": "CYRILLIC SMALL LETTER ES WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER ES CEDILLA", "comment": "", "uppercase_mapping": "04AA", "lowercase_mapping": "", "titlecase_mapping": "04AA", "symbol": "\u04AB" }, 1197: { "value": "04AD", "name": "CYRILLIC SMALL LETTER TE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER TE WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "04AC", "lowercase_mapping": "", "titlecase_mapping": "04AC", "symbol": "\u04AD" }, 1199: { "value": "04AF", "name": "CYRILLIC SMALL LETTER STRAIGHT U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04AE", "lowercase_mapping": "", "titlecase_mapping": "04AE", "symbol": "\u04AF" }, 1201: { "value": "04B1", "name": "CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER STRAIGHT U BAR", "comment": "", "uppercase_mapping": "04B0", "lowercase_mapping": "", "titlecase_mapping": "04B0", "symbol": "\u04B1" }, 1203: { "value": "04B3", "name": "CYRILLIC SMALL LETTER HA WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KHA WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "04B2", "lowercase_mapping": "", "titlecase_mapping": "04B2", "symbol": "\u04B3" }, 1205: { "value": "04B5", "name": "CYRILLIC SMALL LIGATURE TE TSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER TE TSE", "comment": "", "uppercase_mapping": "04B4", "lowercase_mapping": "", "titlecase_mapping": "04B4", "symbol": "\u04B5" }, 1207: { "value": "04B7", "name": "CYRILLIC SMALL LETTER CHE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER CHE WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "04B6", "lowercase_mapping": "", "titlecase_mapping": "04B6", "symbol": "\u04B7" }, 1209: { "value": "04B9", "name": "CYRILLIC SMALL LETTER CHE WITH VERTICAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER CHE VERTICAL BAR", "comment": "", "uppercase_mapping": "04B8", "lowercase_mapping": "", "titlecase_mapping": "04B8", "symbol": "\u04B9" }, 1211: { "value": "04BB", "name": "CYRILLIC SMALL LETTER SHHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER H", "comment": "", "uppercase_mapping": "04BA", "lowercase_mapping": "", "titlecase_mapping": "04BA", "symbol": "\u04BB" }, 1213: { "value": "04BD", "name": "CYRILLIC SMALL LETTER ABKHASIAN CHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IE HOOK", "comment": "", "uppercase_mapping": "04BC", "lowercase_mapping": "", "titlecase_mapping": "04BC", "symbol": "\u04BD" }, 1215: { "value": "04BF", "name": "CYRILLIC SMALL LETTER ABKHASIAN CHE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IE HOOK OGONEK", "comment": "", "uppercase_mapping": "04BE", "lowercase_mapping": "", "titlecase_mapping": "04BE", "symbol": "\u04BF" }, 1218: { "value": "04C2", "name": "CYRILLIC SMALL LETTER ZHE WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0436 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER SHORT ZHE", "comment": "", "uppercase_mapping": "04C1", "lowercase_mapping": "", "titlecase_mapping": "04C1", "symbol": "\u04C2" }, 1220: { "value": "04C4", "name": "CYRILLIC SMALL LETTER KA WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KA HOOK", "comment": "", "uppercase_mapping": "04C3", "lowercase_mapping": "", "titlecase_mapping": "04C3", "symbol": "\u04C4" }, 1222: { "value": "04C6", "name": "CYRILLIC SMALL LETTER EL WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04C5", "lowercase_mapping": "", "titlecase_mapping": "04C5", "symbol": "\u04C6" }, 1224: { "value": "04C8", "name": "CYRILLIC SMALL LETTER EN WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER EN HOOK", "comment": "", "uppercase_mapping": "04C7", "lowercase_mapping": "", "titlecase_mapping": "04C7", "symbol": "\u04C8" }, 1226: { "value": "04CA", "name": "CYRILLIC SMALL LETTER EN WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04C9", "lowercase_mapping": "", "titlecase_mapping": "04C9", "symbol": "\u04CA" }, 1228: { "value": "04CC", "name": "CYRILLIC SMALL LETTER KHAKASSIAN CHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER CHE WITH LEFT DESCENDER", "comment": "", "uppercase_mapping": "04CB", "lowercase_mapping": "", "titlecase_mapping": "04CB", "symbol": "\u04CC" }, 1230: { "value": "04CE", "name": "CYRILLIC SMALL LETTER EM WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04CD", "lowercase_mapping": "", "titlecase_mapping": "04CD", "symbol": "\u04CE" }, 1231: { "value": "04CF", "name": "CYRILLIC SMALL LETTER PALOCHKA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04C0", "lowercase_mapping": "", "titlecase_mapping": "04C0", "symbol": "\u04CF" }, 1233: { "value": "04D1", "name": "CYRILLIC SMALL LETTER A WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0430 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D0", "lowercase_mapping": "", "titlecase_mapping": "04D0", "symbol": "\u04D1" }, 1235: { "value": "04D3", "name": "CYRILLIC SMALL LETTER A WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0430 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D2", "lowercase_mapping": "", "titlecase_mapping": "04D2", "symbol": "\u04D3" }, 1237: { "value": "04D5", "name": "CYRILLIC SMALL LIGATURE A IE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D4", "lowercase_mapping": "", "titlecase_mapping": "04D4", "symbol": "\u04D5" }, 1239: { "value": "04D7", "name": "CYRILLIC SMALL LETTER IE WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0435 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D6", "lowercase_mapping": "", "titlecase_mapping": "04D6", "symbol": "\u04D7" }, 1241: { "value": "04D9", "name": "CYRILLIC SMALL LETTER SCHWA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D8", "lowercase_mapping": "", "titlecase_mapping": "04D8", "symbol": "\u04D9" }, 1243: { "value": "04DB", "name": "CYRILLIC SMALL LETTER SCHWA WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "04D9 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04DA", "lowercase_mapping": "", "titlecase_mapping": "04DA", "symbol": "\u04DB" }, 1245: { "value": "04DD", "name": "CYRILLIC SMALL LETTER ZHE WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0436 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04DC", "lowercase_mapping": "", "titlecase_mapping": "04DC", "symbol": "\u04DD" }, 1247: { "value": "04DF", "name": "CYRILLIC SMALL LETTER ZE WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0437 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04DE", "lowercase_mapping": "", "titlecase_mapping": "04DE", "symbol": "\u04DF" }, 1249: { "value": "04E1", "name": "CYRILLIC SMALL LETTER ABKHASIAN DZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E0", "lowercase_mapping": "", "titlecase_mapping": "04E0", "symbol": "\u04E1" }, 1251: { "value": "04E3", "name": "CYRILLIC SMALL LETTER I WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0438 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E2", "lowercase_mapping": "", "titlecase_mapping": "04E2", "symbol": "\u04E3" }, 1253: { "value": "04E5", "name": "CYRILLIC SMALL LETTER I WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0438 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E4", "lowercase_mapping": "", "titlecase_mapping": "04E4", "symbol": "\u04E5" }, 1255: { "value": "04E7", "name": "CYRILLIC SMALL LETTER O WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "043E 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E6", "lowercase_mapping": "", "titlecase_mapping": "04E6", "symbol": "\u04E7" }, 1257: { "value": "04E9", "name": "CYRILLIC SMALL LETTER BARRED O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E8", "lowercase_mapping": "", "titlecase_mapping": "04E8", "symbol": "\u04E9" }, 1259: { "value": "04EB", "name": "CYRILLIC SMALL LETTER BARRED O WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "04E9 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04EA", "lowercase_mapping": "", "titlecase_mapping": "04EA", "symbol": "\u04EB" }, 1261: { "value": "04ED", "name": "CYRILLIC SMALL LETTER E WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "044D 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04EC", "lowercase_mapping": "", "titlecase_mapping": "04EC", "symbol": "\u04ED" }, 1263: { "value": "04EF", "name": "CYRILLIC SMALL LETTER U WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0443 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04EE", "lowercase_mapping": "", "titlecase_mapping": "04EE", "symbol": "\u04EF" }, 1265: { "value": "04F1", "name": "CYRILLIC SMALL LETTER U WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0443 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F0", "lowercase_mapping": "", "titlecase_mapping": "04F0", "symbol": "\u04F1" }, 1267: { "value": "04F3", "name": "CYRILLIC SMALL LETTER U WITH DOUBLE ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0443 030B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F2", "lowercase_mapping": "", "titlecase_mapping": "04F2", "symbol": "\u04F3" }, 1269: { "value": "04F5", "name": "CYRILLIC SMALL LETTER CHE WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0447 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F4", "lowercase_mapping": "", "titlecase_mapping": "04F4", "symbol": "\u04F5" }, 1271: { "value": "04F7", "name": "CYRILLIC SMALL LETTER GHE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F6", "lowercase_mapping": "", "titlecase_mapping": "04F6", "symbol": "\u04F7" }, 1273: { "value": "04F9", "name": "CYRILLIC SMALL LETTER YERU WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "044B 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F8", "lowercase_mapping": "", "titlecase_mapping": "04F8", "symbol": "\u04F9" }, 1275: { "value": "04FB", "name": "CYRILLIC SMALL LETTER GHE WITH STROKE AND HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04FA", "lowercase_mapping": "", "titlecase_mapping": "04FA", "symbol": "\u04FB" }, 1277: { "value": "04FD", "name": "CYRILLIC SMALL LETTER HA WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04FC", "lowercase_mapping": "", "titlecase_mapping": "04FC", "symbol": "\u04FD" }, 1279: { "value": "04FF", "name": "CYRILLIC SMALL LETTER HA WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04FE", "lowercase_mapping": "", "titlecase_mapping": "04FE", "symbol": "\u04FF" }, 1281: { "value": "0501", "name": "CYRILLIC SMALL LETTER KOMI DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0500", "lowercase_mapping": "", "titlecase_mapping": "0500", "symbol": "\u0501" }, 1283: { "value": "0503", "name": "CYRILLIC SMALL LETTER KOMI DJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0502", "lowercase_mapping": "", "titlecase_mapping": "0502", "symbol": "\u0503" }, 1285: { "value": "0505", "name": "CYRILLIC SMALL LETTER KOMI ZJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0504", "lowercase_mapping": "", "titlecase_mapping": "0504", "symbol": "\u0505" }, 1287: { "value": "0507", "name": "CYRILLIC SMALL LETTER KOMI DZJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0506", "lowercase_mapping": "", "titlecase_mapping": "0506", "symbol": "\u0507" }, 1289: { "value": "0509", "name": "CYRILLIC SMALL LETTER KOMI LJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0508", "lowercase_mapping": "", "titlecase_mapping": "0508", "symbol": "\u0509" }, 1291: { "value": "050B", "name": "CYRILLIC SMALL LETTER KOMI NJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "050A", "lowercase_mapping": "", "titlecase_mapping": "050A", "symbol": "\u050B" }, 1293: { "value": "050D", "name": "CYRILLIC SMALL LETTER KOMI SJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "050C", "lowercase_mapping": "", "titlecase_mapping": "050C", "symbol": "\u050D" }, 1295: { "value": "050F", "name": "CYRILLIC SMALL LETTER KOMI TJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "050E", "lowercase_mapping": "", "titlecase_mapping": "050E", "symbol": "\u050F" }, 1297: { "value": "0511", "name": "CYRILLIC SMALL LETTER REVERSED ZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0510", "lowercase_mapping": "", "titlecase_mapping": "0510", "symbol": "\u0511" }, 1299: { "value": "0513", "name": "CYRILLIC SMALL LETTER EL WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0512", "lowercase_mapping": "", "titlecase_mapping": "0512", "symbol": "\u0513" }, 1301: { "value": "0515", "name": "CYRILLIC SMALL LETTER LHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0514", "lowercase_mapping": "", "titlecase_mapping": "0514", "symbol": "\u0515" }, 1303: { "value": "0517", "name": "CYRILLIC SMALL LETTER RHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0516", "lowercase_mapping": "", "titlecase_mapping": "0516", "symbol": "\u0517" }, 1305: { "value": "0519", "name": "CYRILLIC SMALL LETTER YAE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0518", "lowercase_mapping": "", "titlecase_mapping": "0518", "symbol": "\u0519" }, 1307: { "value": "051B", "name": "CYRILLIC SMALL LETTER QA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "051A", "lowercase_mapping": "", "titlecase_mapping": "051A", "symbol": "\u051B" }, 1309: { "value": "051D", "name": "CYRILLIC SMALL LETTER WE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "051C", "lowercase_mapping": "", "titlecase_mapping": "051C", "symbol": "\u051D" }, 1311: { "value": "051F", "name": "CYRILLIC SMALL LETTER ALEUT KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "051E", "lowercase_mapping": "", "titlecase_mapping": "051E", "symbol": "\u051F" }, 1313: { "value": "0521", "name": "CYRILLIC SMALL LETTER EL WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0520", "lowercase_mapping": "", "titlecase_mapping": "0520", "symbol": "\u0521" }, 1315: { "value": "0523", "name": "CYRILLIC SMALL LETTER EN WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0522", "lowercase_mapping": "", "titlecase_mapping": "0522", "symbol": "\u0523" }, 1317: { "value": "0525", "name": "CYRILLIC SMALL LETTER PE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0524", "lowercase_mapping": "", "titlecase_mapping": "0524", "symbol": "\u0525" }, 1319: { "value": "0527", "name": "CYRILLIC SMALL LETTER SHHA WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0526", "lowercase_mapping": "", "titlecase_mapping": "0526", "symbol": "\u0527" }, 1321: { "value": "0529", "name": "CYRILLIC SMALL LETTER EN WITH LEFT HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0528", "lowercase_mapping": "", "titlecase_mapping": "0528", "symbol": "\u0529" }, 1323: { "value": "052B", "name": "CYRILLIC SMALL LETTER DZZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "052A", "lowercase_mapping": "", "titlecase_mapping": "052A", "symbol": "\u052B" }, 1325: { "value": "052D", "name": "CYRILLIC SMALL LETTER DCHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "052C", "lowercase_mapping": "", "titlecase_mapping": "052C", "symbol": "\u052D" }, 1327: { "value": "052F", "name": "CYRILLIC SMALL LETTER EL WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "052E", "lowercase_mapping": "", "titlecase_mapping": "052E", "symbol": "\u052F" }, 1377: { "value": "0561", "name": "ARMENIAN SMALL LETTER AYB", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0531", "lowercase_mapping": "", "titlecase_mapping": "0531", "symbol": "\u0561" }, 1378: { "value": "0562", "name": "ARMENIAN SMALL LETTER BEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0532", "lowercase_mapping": "", "titlecase_mapping": "0532", "symbol": "\u0562" }, 1379: { "value": "0563", "name": "ARMENIAN SMALL LETTER GIM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0533", "lowercase_mapping": "", "titlecase_mapping": "0533", "symbol": "\u0563" }, 1380: { "value": "0564", "name": "ARMENIAN SMALL LETTER DA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0534", "lowercase_mapping": "", "titlecase_mapping": "0534", "symbol": "\u0564" }, 1381: { "value": "0565", "name": "ARMENIAN SMALL LETTER ECH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0535", "lowercase_mapping": "", "titlecase_mapping": "0535", "symbol": "\u0565" }, 1382: { "value": "0566", "name": "ARMENIAN SMALL LETTER ZA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0536", "lowercase_mapping": "", "titlecase_mapping": "0536", "symbol": "\u0566" }, 1383: { "value": "0567", "name": "ARMENIAN SMALL LETTER EH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0537", "lowercase_mapping": "", "titlecase_mapping": "0537", "symbol": "\u0567" }, 1384: { "value": "0568", "name": "ARMENIAN SMALL LETTER ET", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0538", "lowercase_mapping": "", "titlecase_mapping": "0538", "symbol": "\u0568" }, 1385: { "value": "0569", "name": "ARMENIAN SMALL LETTER TO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0539", "lowercase_mapping": "", "titlecase_mapping": "0539", "symbol": "\u0569" }, 1386: { "value": "056A", "name": "ARMENIAN SMALL LETTER ZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053A", "lowercase_mapping": "", "titlecase_mapping": "053A", "symbol": "\u056A" }, 1387: { "value": "056B", "name": "ARMENIAN SMALL LETTER INI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053B", "lowercase_mapping": "", "titlecase_mapping": "053B", "symbol": "\u056B" }, 1388: { "value": "056C", "name": "ARMENIAN SMALL LETTER LIWN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053C", "lowercase_mapping": "", "titlecase_mapping": "053C", "symbol": "\u056C" }, 1389: { "value": "056D", "name": "ARMENIAN SMALL LETTER XEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053D", "lowercase_mapping": "", "titlecase_mapping": "053D", "symbol": "\u056D" }, 1390: { "value": "056E", "name": "ARMENIAN SMALL LETTER CA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053E", "lowercase_mapping": "", "titlecase_mapping": "053E", "symbol": "\u056E" }, 1391: { "value": "056F", "name": "ARMENIAN SMALL LETTER KEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053F", "lowercase_mapping": "", "titlecase_mapping": "053F", "symbol": "\u056F" }, 1392: { "value": "0570", "name": "ARMENIAN SMALL LETTER HO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0540", "lowercase_mapping": "", "titlecase_mapping": "0540", "symbol": "\u0570" }, 1393: { "value": "0571", "name": "ARMENIAN SMALL LETTER JA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0541", "lowercase_mapping": "", "titlecase_mapping": "0541", "symbol": "\u0571" }, 1394: { "value": "0572", "name": "ARMENIAN SMALL LETTER GHAD", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "ARMENIAN SMALL LETTER LAD", "comment": "", "uppercase_mapping": "0542", "lowercase_mapping": "", "titlecase_mapping": "0542", "symbol": "\u0572" }, 1395: { "value": "0573", "name": "ARMENIAN SMALL LETTER CHEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0543", "lowercase_mapping": "", "titlecase_mapping": "0543", "symbol": "\u0573" }, 1396: { "value": "0574", "name": "ARMENIAN SMALL LETTER MEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0544", "lowercase_mapping": "", "titlecase_mapping": "0544", "symbol": "\u0574" }, 1397: { "value": "0575", "name": "ARMENIAN SMALL LETTER YI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0545", "lowercase_mapping": "", "titlecase_mapping": "0545", "symbol": "\u0575" }, 1398: { "value": "0576", "name": "ARMENIAN SMALL LETTER NOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0546", "lowercase_mapping": "", "titlecase_mapping": "0546", "symbol": "\u0576" }, 1399: { "value": "0577", "name": "ARMENIAN SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0547", "lowercase_mapping": "", "titlecase_mapping": "0547", "symbol": "\u0577" }, 1400: { "value": "0578", "name": "ARMENIAN SMALL LETTER VO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0548", "lowercase_mapping": "", "titlecase_mapping": "0548", "symbol": "\u0578" }, 1401: { "value": "0579", "name": "ARMENIAN SMALL LETTER CHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0549", "lowercase_mapping": "", "titlecase_mapping": "0549", "symbol": "\u0579" }, 1402: { "value": "057A", "name": "ARMENIAN SMALL LETTER PEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054A", "lowercase_mapping": "", "titlecase_mapping": "054A", "symbol": "\u057A" }, 1403: { "value": "057B", "name": "ARMENIAN SMALL LETTER JHEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054B", "lowercase_mapping": "", "titlecase_mapping": "054B", "symbol": "\u057B" }, 1404: { "value": "057C", "name": "ARMENIAN SMALL LETTER RA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054C", "lowercase_mapping": "", "titlecase_mapping": "054C", "symbol": "\u057C" }, 1405: { "value": "057D", "name": "ARMENIAN SMALL LETTER SEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054D", "lowercase_mapping": "", "titlecase_mapping": "054D", "symbol": "\u057D" }, 1406: { "value": "057E", "name": "ARMENIAN SMALL LETTER VEW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054E", "lowercase_mapping": "", "titlecase_mapping": "054E", "symbol": "\u057E" }, 1407: { "value": "057F", "name": "ARMENIAN SMALL LETTER TIWN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054F", "lowercase_mapping": "", "titlecase_mapping": "054F", "symbol": "\u057F" }, 1408: { "value": "0580", "name": "ARMENIAN SMALL LETTER REH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0550", "lowercase_mapping": "", "titlecase_mapping": "0550", "symbol": "\u0580" }, 1409: { "value": "0581", "name": "ARMENIAN SMALL LETTER CO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0551", "lowercase_mapping": "", "titlecase_mapping": "0551", "symbol": "\u0581" }, 1410: { "value": "0582", "name": "ARMENIAN SMALL LETTER YIWN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0552", "lowercase_mapping": "", "titlecase_mapping": "0552", "symbol": "\u0582" }, 1411: { "value": "0583", "name": "ARMENIAN SMALL LETTER PIWR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0553", "lowercase_mapping": "", "titlecase_mapping": "0553", "symbol": "\u0583" }, 1412: { "value": "0584", "name": "ARMENIAN SMALL LETTER KEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0554", "lowercase_mapping": "", "titlecase_mapping": "0554", "symbol": "\u0584" }, 1413: { "value": "0585", "name": "ARMENIAN SMALL LETTER OH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0555", "lowercase_mapping": "", "titlecase_mapping": "0555", "symbol": "\u0585" }, 1414: { "value": "0586", "name": "ARMENIAN SMALL LETTER FEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0556", "lowercase_mapping": "", "titlecase_mapping": "0556", "symbol": "\u0586" }, 1415: { "value": "0587", "name": "ARMENIAN SMALL LIGATURE ECH YIWN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0565 0582", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0587" }, 5112: { "value": "13F8", "name": "CHEROKEE SMALL LETTER YE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F0", "lowercase_mapping": "", "titlecase_mapping": "13F0", "symbol": "\u13F8" }, 5113: { "value": "13F9", "name": "CHEROKEE SMALL LETTER YI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F1", "lowercase_mapping": "", "titlecase_mapping": "13F1", "symbol": "\u13F9" }, 5114: { "value": "13FA", "name": "CHEROKEE SMALL LETTER YO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F2", "lowercase_mapping": "", "titlecase_mapping": "13F2", "symbol": "\u13FA" }, 5115: { "value": "13FB", "name": "CHEROKEE SMALL LETTER YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F3", "lowercase_mapping": "", "titlecase_mapping": "13F3", "symbol": "\u13FB" }, 5116: { "value": "13FC", "name": "CHEROKEE SMALL LETTER YV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F4", "lowercase_mapping": "", "titlecase_mapping": "13F4", "symbol": "\u13FC" }, 5117: { "value": "13FD", "name": "CHEROKEE SMALL LETTER MV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F5", "lowercase_mapping": "", "titlecase_mapping": "13F5", "symbol": "\u13FD" }, 7296: { "value": "1C80", "name": "CYRILLIC SMALL LETTER ROUNDED VE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0412", "lowercase_mapping": "", "titlecase_mapping": "0412", "symbol": "\u1C80" }, 7297: { "value": "1C81", "name": "CYRILLIC SMALL LETTER LONG-LEGGED DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0414", "lowercase_mapping": "", "titlecase_mapping": "0414", "symbol": "\u1C81" }, 7298: { "value": "1C82", "name": "CYRILLIC SMALL LETTER NARROW O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041E", "lowercase_mapping": "", "titlecase_mapping": "041E", "symbol": "\u1C82" }, 7299: { "value": "1C83", "name": "CYRILLIC SMALL LETTER WIDE ES", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0421", "lowercase_mapping": "", "titlecase_mapping": "0421", "symbol": "\u1C83" }, 7300: { "value": "1C84", "name": "CYRILLIC SMALL LETTER TALL TE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0422", "lowercase_mapping": "", "titlecase_mapping": "0422", "symbol": "\u1C84" }, 7301: { "value": "1C85", "name": "CYRILLIC SMALL LETTER THREE-LEGGED TE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0422", "lowercase_mapping": "", "titlecase_mapping": "0422", "symbol": "\u1C85" }, 7302: { "value": "1C86", "name": "CYRILLIC SMALL LETTER TALL HARD SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "042A", "lowercase_mapping": "", "titlecase_mapping": "042A", "symbol": "\u1C86" }, 7303: { "value": "1C87", "name": "CYRILLIC SMALL LETTER TALL YAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0462", "lowercase_mapping": "", "titlecase_mapping": "0462", "symbol": "\u1C87" }, 7304: { "value": "1C88", "name": "CYRILLIC SMALL LETTER UNBLENDED UK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A64A", "lowercase_mapping": "", "titlecase_mapping": "A64A", "symbol": "\u1C88" }, 7424: { "value": "1D00", "name": "LATIN LETTER SMALL CAPITAL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D00" }, 7425: { "value": "1D01", "name": "LATIN LETTER SMALL CAPITAL AE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D01" }, 7426: { "value": "1D02", "name": "LATIN SMALL LETTER TURNED AE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D02" }, 7427: { "value": "1D03", "name": "LATIN LETTER SMALL CAPITAL BARRED B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D03" }, 7428: { "value": "1D04", "name": "LATIN LETTER SMALL CAPITAL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D04" }, 7429: { "value": "1D05", "name": "LATIN LETTER SMALL CAPITAL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D05" }, 7430: { "value": "1D06", "name": "LATIN LETTER SMALL CAPITAL ETH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D06" }, 7431: { "value": "1D07", "name": "LATIN LETTER SMALL CAPITAL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D07" }, 7432: { "value": "1D08", "name": "LATIN SMALL LETTER TURNED OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D08" }, 7433: { "value": "1D09", "name": "LATIN SMALL LETTER TURNED I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D09" }, 7434: { "value": "1D0A", "name": "LATIN LETTER SMALL CAPITAL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0A" }, 7435: { "value": "1D0B", "name": "LATIN LETTER SMALL CAPITAL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0B" }, 7436: { "value": "1D0C", "name": "LATIN LETTER SMALL CAPITAL L WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0C" }, 7437: { "value": "1D0D", "name": "LATIN LETTER SMALL CAPITAL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0D" }, 7438: { "value": "1D0E", "name": "LATIN LETTER SMALL CAPITAL REVERSED N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0E" }, 7439: { "value": "1D0F", "name": "LATIN LETTER SMALL CAPITAL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0F" }, 7440: { "value": "1D10", "name": "LATIN LETTER SMALL CAPITAL OPEN O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D10" }, 7441: { "value": "1D11", "name": "LATIN SMALL LETTER SIDEWAYS O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D11" }, 7442: { "value": "1D12", "name": "LATIN SMALL LETTER SIDEWAYS OPEN O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D12" }, 7443: { "value": "1D13", "name": "LATIN SMALL LETTER SIDEWAYS O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D13" }, 7444: { "value": "1D14", "name": "LATIN SMALL LETTER TURNED OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D14" }, 7445: { "value": "1D15", "name": "LATIN LETTER SMALL CAPITAL OU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D15" }, 7446: { "value": "1D16", "name": "LATIN SMALL LETTER TOP HALF O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D16" }, 7447: { "value": "1D17", "name": "LATIN SMALL LETTER BOTTOM HALF O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D17" }, 7448: { "value": "1D18", "name": "LATIN LETTER SMALL CAPITAL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D18" }, 7449: { "value": "1D19", "name": "LATIN LETTER SMALL CAPITAL REVERSED R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D19" }, 7450: { "value": "1D1A", "name": "LATIN LETTER SMALL CAPITAL TURNED R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1A" }, 7451: { "value": "1D1B", "name": "LATIN LETTER SMALL CAPITAL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1B" }, 7452: { "value": "1D1C", "name": "LATIN LETTER SMALL CAPITAL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1C" }, 7453: { "value": "1D1D", "name": "LATIN SMALL LETTER SIDEWAYS U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1D" }, 7454: { "value": "1D1E", "name": "LATIN SMALL LETTER SIDEWAYS DIAERESIZED U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1E" }, 7455: { "value": "1D1F", "name": "LATIN SMALL LETTER SIDEWAYS TURNED M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1F" }, 7456: { "value": "1D20", "name": "LATIN LETTER SMALL CAPITAL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D20" }, 7457: { "value": "1D21", "name": "LATIN LETTER SMALL CAPITAL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D21" }, 7458: { "value": "1D22", "name": "LATIN LETTER SMALL CAPITAL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D22" }, 7459: { "value": "1D23", "name": "LATIN LETTER SMALL CAPITAL EZH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D23" }, 7460: { "value": "1D24", "name": "LATIN LETTER VOICED LARYNGEAL SPIRANT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D24" }, 7461: { "value": "1D25", "name": "LATIN LETTER AIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D25" }, 7462: { "value": "1D26", "name": "GREEK LETTER SMALL CAPITAL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D26" }, 7463: { "value": "1D27", "name": "GREEK LETTER SMALL CAPITAL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D27" }, 7464: { "value": "1D28", "name": "GREEK LETTER SMALL CAPITAL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D28" }, 7465: { "value": "1D29", "name": "GREEK LETTER SMALL CAPITAL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D29" }, 7466: { "value": "1D2A", "name": "GREEK LETTER SMALL CAPITAL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D2A" }, 7467: { "value": "1D2B", "name": "CYRILLIC LETTER SMALL CAPITAL EL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D2B" }, 7531: { "value": "1D6B", "name": "LATIN SMALL LETTER UE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6B" }, 7532: { "value": "1D6C", "name": "LATIN SMALL LETTER B WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6C" }, 7533: { "value": "1D6D", "name": "LATIN SMALL LETTER D WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6D" }, 7534: { "value": "1D6E", "name": "LATIN SMALL LETTER F WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6E" }, 7535: { "value": "1D6F", "name": "LATIN SMALL LETTER M WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6F" }, 7536: { "value": "1D70", "name": "LATIN SMALL LETTER N WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D70" }, 7537: { "value": "1D71", "name": "LATIN SMALL LETTER P WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D71" }, 7538: { "value": "1D72", "name": "LATIN SMALL LETTER R WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D72" }, 7539: { "value": "1D73", "name": "LATIN SMALL LETTER R WITH FISHHOOK AND MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D73" }, 7540: { "value": "1D74", "name": "LATIN SMALL LETTER S WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D74" }, 7541: { "value": "1D75", "name": "LATIN SMALL LETTER T WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D75" }, 7542: { "value": "1D76", "name": "LATIN SMALL LETTER Z WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D76" }, 7543: { "value": "1D77", "name": "LATIN SMALL LETTER TURNED G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D77" }, 7545: { "value": "1D79", "name": "LATIN SMALL LETTER INSULAR G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A77D", "lowercase_mapping": "", "titlecase_mapping": "A77D", "symbol": "\u1D79" }, 7546: { "value": "1D7A", "name": "LATIN SMALL LETTER TH WITH STRIKETHROUGH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7A" }, 7547: { "value": "1D7B", "name": "LATIN SMALL CAPITAL LETTER I WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7B" }, 7548: { "value": "1D7C", "name": "LATIN SMALL LETTER IOTA WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7C" }, 7549: { "value": "1D7D", "name": "LATIN SMALL LETTER P WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C63", "lowercase_mapping": "", "titlecase_mapping": "2C63", "symbol": "\u1D7D" }, 7550: { "value": "1D7E", "name": "LATIN SMALL CAPITAL LETTER U WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7E" }, 7551: { "value": "1D7F", "name": "LATIN SMALL LETTER UPSILON WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7F" }, 7552: { "value": "1D80", "name": "LATIN SMALL LETTER B WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D80" }, 7553: { "value": "1D81", "name": "LATIN SMALL LETTER D WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D81" }, 7554: { "value": "1D82", "name": "LATIN SMALL LETTER F WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D82" }, 7555: { "value": "1D83", "name": "LATIN SMALL LETTER G WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D83" }, 7556: { "value": "1D84", "name": "LATIN SMALL LETTER K WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D84" }, 7557: { "value": "1D85", "name": "LATIN SMALL LETTER L WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D85" }, 7558: { "value": "1D86", "name": "LATIN SMALL LETTER M WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D86" }, 7559: { "value": "1D87", "name": "LATIN SMALL LETTER N WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D87" }, 7560: { "value": "1D88", "name": "LATIN SMALL LETTER P WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D88" }, 7561: { "value": "1D89", "name": "LATIN SMALL LETTER R WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D89" }, 7562: { "value": "1D8A", "name": "LATIN SMALL LETTER S WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8A" }, 7563: { "value": "1D8B", "name": "LATIN SMALL LETTER ESH WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8B" }, 7564: { "value": "1D8C", "name": "LATIN SMALL LETTER V WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8C" }, 7565: { "value": "1D8D", "name": "LATIN SMALL LETTER X WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8D" }, 7566: { "value": "1D8E", "name": "LATIN SMALL LETTER Z WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8E" }, 7567: { "value": "1D8F", "name": "LATIN SMALL LETTER A WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8F" }, 7568: { "value": "1D90", "name": "LATIN SMALL LETTER ALPHA WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D90" }, 7569: { "value": "1D91", "name": "LATIN SMALL LETTER D WITH HOOK AND TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D91" }, 7570: { "value": "1D92", "name": "LATIN SMALL LETTER E WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D92" }, 7571: { "value": "1D93", "name": "LATIN SMALL LETTER OPEN E WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D93" }, 7572: { "value": "1D94", "name": "LATIN SMALL LETTER REVERSED OPEN E WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D94" }, 7573: { "value": "1D95", "name": "LATIN SMALL LETTER SCHWA WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D95" }, 7574: { "value": "1D96", "name": "LATIN SMALL LETTER I WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D96" }, 7575: { "value": "1D97", "name": "LATIN SMALL LETTER OPEN O WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D97" }, 7576: { "value": "1D98", "name": "LATIN SMALL LETTER ESH WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D98" }, 7577: { "value": "1D99", "name": "LATIN SMALL LETTER U WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D99" }, 7578: { "value": "1D9A", "name": "LATIN SMALL LETTER EZH WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D9A" }, 7681: { "value": "1E01", "name": "LATIN SMALL LETTER A WITH RING BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0325", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E00", "lowercase_mapping": "", "titlecase_mapping": "1E00", "symbol": "\u1E01" }, 7683: { "value": "1E03", "name": "LATIN SMALL LETTER B WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0062 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E02", "lowercase_mapping": "", "titlecase_mapping": "1E02", "symbol": "\u1E03" }, 7685: { "value": "1E05", "name": "LATIN SMALL LETTER B WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0062 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E04", "lowercase_mapping": "", "titlecase_mapping": "1E04", "symbol": "\u1E05" }, 7687: { "value": "1E07", "name": "LATIN SMALL LETTER B WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0062 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E06", "lowercase_mapping": "", "titlecase_mapping": "1E06", "symbol": "\u1E07" }, 7689: { "value": "1E09", "name": "LATIN SMALL LETTER C WITH CEDILLA AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E7 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E08", "lowercase_mapping": "", "titlecase_mapping": "1E08", "symbol": "\u1E09" }, 7691: { "value": "1E0B", "name": "LATIN SMALL LETTER D WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E0A", "lowercase_mapping": "", "titlecase_mapping": "1E0A", "symbol": "\u1E0B" }, 7693: { "value": "1E0D", "name": "LATIN SMALL LETTER D WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E0C", "lowercase_mapping": "", "titlecase_mapping": "1E0C", "symbol": "\u1E0D" }, 7695: { "value": "1E0F", "name": "LATIN SMALL LETTER D WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E0E", "lowercase_mapping": "", "titlecase_mapping": "1E0E", "symbol": "\u1E0F" }, 7697: { "value": "1E11", "name": "LATIN SMALL LETTER D WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E10", "lowercase_mapping": "", "titlecase_mapping": "1E10", "symbol": "\u1E11" }, 7699: { "value": "1E13", "name": "LATIN SMALL LETTER D WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E12", "lowercase_mapping": "", "titlecase_mapping": "1E12", "symbol": "\u1E13" }, 7701: { "value": "1E15", "name": "LATIN SMALL LETTER E WITH MACRON AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0113 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E14", "lowercase_mapping": "", "titlecase_mapping": "1E14", "symbol": "\u1E15" }, 7703: { "value": "1E17", "name": "LATIN SMALL LETTER E WITH MACRON AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0113 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E16", "lowercase_mapping": "", "titlecase_mapping": "1E16", "symbol": "\u1E17" }, 7705: { "value": "1E19", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E18", "lowercase_mapping": "", "titlecase_mapping": "1E18", "symbol": "\u1E19" }, 7707: { "value": "1E1B", "name": "LATIN SMALL LETTER E WITH TILDE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0330", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E1A", "lowercase_mapping": "", "titlecase_mapping": "1E1A", "symbol": "\u1E1B" }, 7709: { "value": "1E1D", "name": "LATIN SMALL LETTER E WITH CEDILLA AND BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0229 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E1C", "lowercase_mapping": "", "titlecase_mapping": "1E1C", "symbol": "\u1E1D" }, 7711: { "value": "1E1F", "name": "LATIN SMALL LETTER F WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0066 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E1E", "lowercase_mapping": "", "titlecase_mapping": "1E1E", "symbol": "\u1E1F" }, 7713: { "value": "1E21", "name": "LATIN SMALL LETTER G WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E20", "lowercase_mapping": "", "titlecase_mapping": "1E20", "symbol": "\u1E21" }, 7715: { "value": "1E23", "name": "LATIN SMALL LETTER H WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E22", "lowercase_mapping": "", "titlecase_mapping": "1E22", "symbol": "\u1E23" }, 7717: { "value": "1E25", "name": "LATIN SMALL LETTER H WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E24", "lowercase_mapping": "", "titlecase_mapping": "1E24", "symbol": "\u1E25" }, 7719: { "value": "1E27", "name": "LATIN SMALL LETTER H WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E26", "lowercase_mapping": "", "titlecase_mapping": "1E26", "symbol": "\u1E27" }, 7721: { "value": "1E29", "name": "LATIN SMALL LETTER H WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E28", "lowercase_mapping": "", "titlecase_mapping": "1E28", "symbol": "\u1E29" }, 7723: { "value": "1E2B", "name": "LATIN SMALL LETTER H WITH BREVE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 032E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E2A", "lowercase_mapping": "", "titlecase_mapping": "1E2A", "symbol": "\u1E2B" }, 7725: { "value": "1E2D", "name": "LATIN SMALL LETTER I WITH TILDE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0330", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E2C", "lowercase_mapping": "", "titlecase_mapping": "1E2C", "symbol": "\u1E2D" }, 7727: { "value": "1E2F", "name": "LATIN SMALL LETTER I WITH DIAERESIS AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EF 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E2E", "lowercase_mapping": "", "titlecase_mapping": "1E2E", "symbol": "\u1E2F" }, 7729: { "value": "1E31", "name": "LATIN SMALL LETTER K WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E30", "lowercase_mapping": "", "titlecase_mapping": "1E30", "symbol": "\u1E31" }, 7731: { "value": "1E33", "name": "LATIN SMALL LETTER K WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E32", "lowercase_mapping": "", "titlecase_mapping": "1E32", "symbol": "\u1E33" }, 7733: { "value": "1E35", "name": "LATIN SMALL LETTER K WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E34", "lowercase_mapping": "", "titlecase_mapping": "1E34", "symbol": "\u1E35" }, 7735: { "value": "1E37", "name": "LATIN SMALL LETTER L WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E36", "lowercase_mapping": "", "titlecase_mapping": "1E36", "symbol": "\u1E37" }, 7737: { "value": "1E39", "name": "LATIN SMALL LETTER L WITH DOT BELOW AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1E37 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E38", "lowercase_mapping": "", "titlecase_mapping": "1E38", "symbol": "\u1E39" }, 7739: { "value": "1E3B", "name": "LATIN SMALL LETTER L WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E3A", "lowercase_mapping": "", "titlecase_mapping": "1E3A", "symbol": "\u1E3B" }, 7741: { "value": "1E3D", "name": "LATIN SMALL LETTER L WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E3C", "lowercase_mapping": "", "titlecase_mapping": "1E3C", "symbol": "\u1E3D" }, 7743: { "value": "1E3F", "name": "LATIN SMALL LETTER M WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006D 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E3E", "lowercase_mapping": "", "titlecase_mapping": "1E3E", "symbol": "\u1E3F" }, 7745: { "value": "1E41", "name": "LATIN SMALL LETTER M WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006D 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E40", "lowercase_mapping": "", "titlecase_mapping": "1E40", "symbol": "\u1E41" }, 7747: { "value": "1E43", "name": "LATIN SMALL LETTER M WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006D 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E42", "lowercase_mapping": "", "titlecase_mapping": "1E42", "symbol": "\u1E43" }, 7749: { "value": "1E45", "name": "LATIN SMALL LETTER N WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E44", "lowercase_mapping": "", "titlecase_mapping": "1E44", "symbol": "\u1E45" }, 7751: { "value": "1E47", "name": "LATIN SMALL LETTER N WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E46", "lowercase_mapping": "", "titlecase_mapping": "1E46", "symbol": "\u1E47" }, 7753: { "value": "1E49", "name": "LATIN SMALL LETTER N WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E48", "lowercase_mapping": "", "titlecase_mapping": "1E48", "symbol": "\u1E49" }, 7755: { "value": "1E4B", "name": "LATIN SMALL LETTER N WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E4A", "lowercase_mapping": "", "titlecase_mapping": "1E4A", "symbol": "\u1E4B" }, 7757: { "value": "1E4D", "name": "LATIN SMALL LETTER O WITH TILDE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F5 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E4C", "lowercase_mapping": "", "titlecase_mapping": "1E4C", "symbol": "\u1E4D" }, 7759: { "value": "1E4F", "name": "LATIN SMALL LETTER O WITH TILDE AND DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F5 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E4E", "lowercase_mapping": "", "titlecase_mapping": "1E4E", "symbol": "\u1E4F" }, 7761: { "value": "1E51", "name": "LATIN SMALL LETTER O WITH MACRON AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "014D 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E50", "lowercase_mapping": "", "titlecase_mapping": "1E50", "symbol": "\u1E51" }, 7763: { "value": "1E53", "name": "LATIN SMALL LETTER O WITH MACRON AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "014D 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E52", "lowercase_mapping": "", "titlecase_mapping": "1E52", "symbol": "\u1E53" }, 7765: { "value": "1E55", "name": "LATIN SMALL LETTER P WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0070 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E54", "lowercase_mapping": "", "titlecase_mapping": "1E54", "symbol": "\u1E55" }, 7767: { "value": "1E57", "name": "LATIN SMALL LETTER P WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0070 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E56", "lowercase_mapping": "", "titlecase_mapping": "1E56", "symbol": "\u1E57" }, 7769: { "value": "1E59", "name": "LATIN SMALL LETTER R WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E58", "lowercase_mapping": "", "titlecase_mapping": "1E58", "symbol": "\u1E59" }, 7771: { "value": "1E5B", "name": "LATIN SMALL LETTER R WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E5A", "lowercase_mapping": "", "titlecase_mapping": "1E5A", "symbol": "\u1E5B" }, 7773: { "value": "1E5D", "name": "LATIN SMALL LETTER R WITH DOT BELOW AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1E5B 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E5C", "lowercase_mapping": "", "titlecase_mapping": "1E5C", "symbol": "\u1E5D" }, 7775: { "value": "1E5F", "name": "LATIN SMALL LETTER R WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E5E", "lowercase_mapping": "", "titlecase_mapping": "1E5E", "symbol": "\u1E5F" }, 7777: { "value": "1E61", "name": "LATIN SMALL LETTER S WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E60", "lowercase_mapping": "", "titlecase_mapping": "1E60", "symbol": "\u1E61" }, 7779: { "value": "1E63", "name": "LATIN SMALL LETTER S WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E62", "lowercase_mapping": "", "titlecase_mapping": "1E62", "symbol": "\u1E63" }, 7781: { "value": "1E65", "name": "LATIN SMALL LETTER S WITH ACUTE AND DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "015B 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E64", "lowercase_mapping": "", "titlecase_mapping": "1E64", "symbol": "\u1E65" }, 7783: { "value": "1E67", "name": "LATIN SMALL LETTER S WITH CARON AND DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0161 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E66", "lowercase_mapping": "", "titlecase_mapping": "1E66", "symbol": "\u1E67" }, 7785: { "value": "1E69", "name": "LATIN SMALL LETTER S WITH DOT BELOW AND DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1E63 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E68", "lowercase_mapping": "", "titlecase_mapping": "1E68", "symbol": "\u1E69" }, 7787: { "value": "1E6B", "name": "LATIN SMALL LETTER T WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E6A", "lowercase_mapping": "", "titlecase_mapping": "1E6A", "symbol": "\u1E6B" }, 7789: { "value": "1E6D", "name": "LATIN SMALL LETTER T WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E6C", "lowercase_mapping": "", "titlecase_mapping": "1E6C", "symbol": "\u1E6D" }, 7791: { "value": "1E6F", "name": "LATIN SMALL LETTER T WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E6E", "lowercase_mapping": "", "titlecase_mapping": "1E6E", "symbol": "\u1E6F" }, 7793: { "value": "1E71", "name": "LATIN SMALL LETTER T WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E70", "lowercase_mapping": "", "titlecase_mapping": "1E70", "symbol": "\u1E71" }, 7795: { "value": "1E73", "name": "LATIN SMALL LETTER U WITH DIAERESIS BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0324", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E72", "lowercase_mapping": "", "titlecase_mapping": "1E72", "symbol": "\u1E73" }, 7797: { "value": "1E75", "name": "LATIN SMALL LETTER U WITH TILDE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0330", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E74", "lowercase_mapping": "", "titlecase_mapping": "1E74", "symbol": "\u1E75" }, 7799: { "value": "1E77", "name": "LATIN SMALL LETTER U WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E76", "lowercase_mapping": "", "titlecase_mapping": "1E76", "symbol": "\u1E77" }, 7801: { "value": "1E79", "name": "LATIN SMALL LETTER U WITH TILDE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0169 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E78", "lowercase_mapping": "", "titlecase_mapping": "1E78", "symbol": "\u1E79" }, 7803: { "value": "1E7B", "name": "LATIN SMALL LETTER U WITH MACRON AND DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "016B 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E7A", "lowercase_mapping": "", "titlecase_mapping": "1E7A", "symbol": "\u1E7B" }, 7805: { "value": "1E7D", "name": "LATIN SMALL LETTER V WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0076 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E7C", "lowercase_mapping": "", "titlecase_mapping": "1E7C", "symbol": "\u1E7D" }, 7807: { "value": "1E7F", "name": "LATIN SMALL LETTER V WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0076 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E7E", "lowercase_mapping": "", "titlecase_mapping": "1E7E", "symbol": "\u1E7F" }, 7809: { "value": "1E81", "name": "LATIN SMALL LETTER W WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E80", "lowercase_mapping": "", "titlecase_mapping": "1E80", "symbol": "\u1E81" }, 7811: { "value": "1E83", "name": "LATIN SMALL LETTER W WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E82", "lowercase_mapping": "", "titlecase_mapping": "1E82", "symbol": "\u1E83" }, 7813: { "value": "1E85", "name": "LATIN SMALL LETTER W WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E84", "lowercase_mapping": "", "titlecase_mapping": "1E84", "symbol": "\u1E85" }, 7815: { "value": "1E87", "name": "LATIN SMALL LETTER W WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E86", "lowercase_mapping": "", "titlecase_mapping": "1E86", "symbol": "\u1E87" }, 7817: { "value": "1E89", "name": "LATIN SMALL LETTER W WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E88", "lowercase_mapping": "", "titlecase_mapping": "1E88", "symbol": "\u1E89" }, 7819: { "value": "1E8B", "name": "LATIN SMALL LETTER X WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0078 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E8A", "lowercase_mapping": "", "titlecase_mapping": "1E8A", "symbol": "\u1E8B" }, 7821: { "value": "1E8D", "name": "LATIN SMALL LETTER X WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0078 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E8C", "lowercase_mapping": "", "titlecase_mapping": "1E8C", "symbol": "\u1E8D" }, 7823: { "value": "1E8F", "name": "LATIN SMALL LETTER Y WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E8E", "lowercase_mapping": "", "titlecase_mapping": "1E8E", "symbol": "\u1E8F" }, 7825: { "value": "1E91", "name": "LATIN SMALL LETTER Z WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90", "lowercase_mapping": "", "titlecase_mapping": "1E90", "symbol": "\u1E91" }, 7827: { "value": "1E93", "name": "LATIN SMALL LETTER Z WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E92", "lowercase_mapping": "", "titlecase_mapping": "1E92", "symbol": "\u1E93" }, 7829: { "value": "1E95", "name": "LATIN SMALL LETTER Z WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E94", "lowercase_mapping": "", "titlecase_mapping": "1E94", "symbol": "\u1E95" }, 7830: { "value": "1E96", "name": "LATIN SMALL LETTER H WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E96" }, 7831: { "value": "1E97", "name": "LATIN SMALL LETTER T WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E97" }, 7832: { "value": "1E98", "name": "LATIN SMALL LETTER W WITH RING ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 030A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E98" }, 7833: { "value": "1E99", "name": "LATIN SMALL LETTER Y WITH RING ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 030A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E99" }, 7834: { "value": "1E9A", "name": "LATIN SMALL LETTER A WITH RIGHT HALF RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061 02BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E9A" }, 7835: { "value": "1E9B", "name": "LATIN SMALL LETTER LONG S WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "017F 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E60", "lowercase_mapping": "", "titlecase_mapping": "1E60", "symbol": "\u1E9B" }, 7836: { "value": "1E9C", "name": "LATIN SMALL LETTER LONG S WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E9C" }, 7837: { "value": "1E9D", "name": "LATIN SMALL LETTER LONG S WITH HIGH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E9D" }, 7839: { "value": "1E9F", "name": "LATIN SMALL LETTER DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E9F" }, 7841: { "value": "1EA1", "name": "LATIN SMALL LETTER A WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA0", "lowercase_mapping": "", "titlecase_mapping": "1EA0", "symbol": "\u1EA1" }, 7843: { "value": "1EA3", "name": "LATIN SMALL LETTER A WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA2", "lowercase_mapping": "", "titlecase_mapping": "1EA2", "symbol": "\u1EA3" }, 7845: { "value": "1EA5", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E2 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA4", "lowercase_mapping": "", "titlecase_mapping": "1EA4", "symbol": "\u1EA5" }, 7847: { "value": "1EA7", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E2 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA6", "lowercase_mapping": "", "titlecase_mapping": "1EA6", "symbol": "\u1EA7" }, 7849: { "value": "1EA9", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E2 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA8", "lowercase_mapping": "", "titlecase_mapping": "1EA8", "symbol": "\u1EA9" }, 7851: { "value": "1EAB", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E2 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EAA", "lowercase_mapping": "", "titlecase_mapping": "1EAA", "symbol": "\u1EAB" }, 7853: { "value": "1EAD", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1EA1 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EAC", "lowercase_mapping": "", "titlecase_mapping": "1EAC", "symbol": "\u1EAD" }, 7855: { "value": "1EAF", "name": "LATIN SMALL LETTER A WITH BREVE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0103 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EAE", "lowercase_mapping": "", "titlecase_mapping": "1EAE", "symbol": "\u1EAF" }, 7857: { "value": "1EB1", "name": "LATIN SMALL LETTER A WITH BREVE AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0103 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB0", "lowercase_mapping": "", "titlecase_mapping": "1EB0", "symbol": "\u1EB1" }, 7859: { "value": "1EB3", "name": "LATIN SMALL LETTER A WITH BREVE AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0103 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB2", "lowercase_mapping": "", "titlecase_mapping": "1EB2", "symbol": "\u1EB3" }, 7861: { "value": "1EB5", "name": "LATIN SMALL LETTER A WITH BREVE AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0103 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB4", "lowercase_mapping": "", "titlecase_mapping": "1EB4", "symbol": "\u1EB5" }, 7863: { "value": "1EB7", "name": "LATIN SMALL LETTER A WITH BREVE AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1EA1 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB6", "lowercase_mapping": "", "titlecase_mapping": "1EB6", "symbol": "\u1EB7" }, 7865: { "value": "1EB9", "name": "LATIN SMALL LETTER E WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB8", "lowercase_mapping": "", "titlecase_mapping": "1EB8", "symbol": "\u1EB9" }, 7867: { "value": "1EBB", "name": "LATIN SMALL LETTER E WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EBA", "lowercase_mapping": "", "titlecase_mapping": "1EBA", "symbol": "\u1EBB" }, 7869: { "value": "1EBD", "name": "LATIN SMALL LETTER E WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EBC", "lowercase_mapping": "", "titlecase_mapping": "1EBC", "symbol": "\u1EBD" }, 7871: { "value": "1EBF", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EA 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EBE", "lowercase_mapping": "", "titlecase_mapping": "1EBE", "symbol": "\u1EBF" }, 7873: { "value": "1EC1", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EA 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC0", "lowercase_mapping": "", "titlecase_mapping": "1EC0", "symbol": "\u1EC1" }, 7875: { "value": "1EC3", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EA 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC2", "lowercase_mapping": "", "titlecase_mapping": "1EC2", "symbol": "\u1EC3" }, 7877: { "value": "1EC5", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EA 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC4", "lowercase_mapping": "", "titlecase_mapping": "1EC4", "symbol": "\u1EC5" }, 7879: { "value": "1EC7", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1EB9 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC6", "lowercase_mapping": "", "titlecase_mapping": "1EC6", "symbol": "\u1EC7" }, 7881: { "value": "1EC9", "name": "LATIN SMALL LETTER I WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC8", "lowercase_mapping": "", "titlecase_mapping": "1EC8", "symbol": "\u1EC9" }, 7883: { "value": "1ECB", "name": "LATIN SMALL LETTER I WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ECA", "lowercase_mapping": "", "titlecase_mapping": "1ECA", "symbol": "\u1ECB" }, 7885: { "value": "1ECD", "name": "LATIN SMALL LETTER O WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ECC", "lowercase_mapping": "", "titlecase_mapping": "1ECC", "symbol": "\u1ECD" }, 7887: { "value": "1ECF", "name": "LATIN SMALL LETTER O WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ECE", "lowercase_mapping": "", "titlecase_mapping": "1ECE", "symbol": "\u1ECF" }, 7889: { "value": "1ED1", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F4 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED0", "lowercase_mapping": "", "titlecase_mapping": "1ED0", "symbol": "\u1ED1" }, 7891: { "value": "1ED3", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F4 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED2", "lowercase_mapping": "", "titlecase_mapping": "1ED2", "symbol": "\u1ED3" }, 7893: { "value": "1ED5", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F4 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED4", "lowercase_mapping": "", "titlecase_mapping": "1ED4", "symbol": "\u1ED5" }, 7895: { "value": "1ED7", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F4 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED6", "lowercase_mapping": "", "titlecase_mapping": "1ED6", "symbol": "\u1ED7" }, 7897: { "value": "1ED9", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1ECD 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED8", "lowercase_mapping": "", "titlecase_mapping": "1ED8", "symbol": "\u1ED9" }, 7899: { "value": "1EDB", "name": "LATIN SMALL LETTER O WITH HORN AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EDA", "lowercase_mapping": "", "titlecase_mapping": "1EDA", "symbol": "\u1EDB" }, 7901: { "value": "1EDD", "name": "LATIN SMALL LETTER O WITH HORN AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EDC", "lowercase_mapping": "", "titlecase_mapping": "1EDC", "symbol": "\u1EDD" }, 7903: { "value": "1EDF", "name": "LATIN SMALL LETTER O WITH HORN AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EDE", "lowercase_mapping": "", "titlecase_mapping": "1EDE", "symbol": "\u1EDF" }, 7905: { "value": "1EE1", "name": "LATIN SMALL LETTER O WITH HORN AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE0", "lowercase_mapping": "", "titlecase_mapping": "1EE0", "symbol": "\u1EE1" }, 7907: { "value": "1EE3", "name": "LATIN SMALL LETTER O WITH HORN AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE2", "lowercase_mapping": "", "titlecase_mapping": "1EE2", "symbol": "\u1EE3" }, 7909: { "value": "1EE5", "name": "LATIN SMALL LETTER U WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE4", "lowercase_mapping": "", "titlecase_mapping": "1EE4", "symbol": "\u1EE5" }, 7911: { "value": "1EE7", "name": "LATIN SMALL LETTER U WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE6", "lowercase_mapping": "", "titlecase_mapping": "1EE6", "symbol": "\u1EE7" }, 7913: { "value": "1EE9", "name": "LATIN SMALL LETTER U WITH HORN AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE8", "lowercase_mapping": "", "titlecase_mapping": "1EE8", "symbol": "\u1EE9" }, 7915: { "value": "1EEB", "name": "LATIN SMALL LETTER U WITH HORN AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EEA", "lowercase_mapping": "", "titlecase_mapping": "1EEA", "symbol": "\u1EEB" }, 7917: { "value": "1EED", "name": "LATIN SMALL LETTER U WITH HORN AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EEC", "lowercase_mapping": "", "titlecase_mapping": "1EEC", "symbol": "\u1EED" }, 7919: { "value": "1EEF", "name": "LATIN SMALL LETTER U WITH HORN AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EEE", "lowercase_mapping": "", "titlecase_mapping": "1EEE", "symbol": "\u1EEF" }, 7921: { "value": "1EF1", "name": "LATIN SMALL LETTER U WITH HORN AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF0", "lowercase_mapping": "", "titlecase_mapping": "1EF0", "symbol": "\u1EF1" }, 7923: { "value": "1EF3", "name": "LATIN SMALL LETTER Y WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF2", "lowercase_mapping": "", "titlecase_mapping": "1EF2", "symbol": "\u1EF3" }, 7925: { "value": "1EF5", "name": "LATIN SMALL LETTER Y WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF4", "lowercase_mapping": "", "titlecase_mapping": "1EF4", "symbol": "\u1EF5" }, 7927: { "value": "1EF7", "name": "LATIN SMALL LETTER Y WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF6", "lowercase_mapping": "", "titlecase_mapping": "1EF6", "symbol": "\u1EF7" }, 7929: { "value": "1EF9", "name": "LATIN SMALL LETTER Y WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF8", "lowercase_mapping": "", "titlecase_mapping": "1EF8", "symbol": "\u1EF9" }, 7931: { "value": "1EFB", "name": "LATIN SMALL LETTER MIDDLE-WELSH LL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EFA", "lowercase_mapping": "", "titlecase_mapping": "1EFA", "symbol": "\u1EFB" }, 7933: { "value": "1EFD", "name": "LATIN SMALL LETTER MIDDLE-WELSH V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EFC", "lowercase_mapping": "", "titlecase_mapping": "1EFC", "symbol": "\u1EFD" }, 7935: { "value": "1EFF", "name": "LATIN SMALL LETTER Y WITH LOOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EFE", "lowercase_mapping": "", "titlecase_mapping": "1EFE", "symbol": "\u1EFF" }, 7936: { "value": "1F00", "name": "GREEK SMALL LETTER ALPHA WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F08", "lowercase_mapping": "", "titlecase_mapping": "1F08", "symbol": "\u1F00" }, 7937: { "value": "1F01", "name": "GREEK SMALL LETTER ALPHA WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F09", "lowercase_mapping": "", "titlecase_mapping": "1F09", "symbol": "\u1F01" }, 7938: { "value": "1F02", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F00 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0A", "lowercase_mapping": "", "titlecase_mapping": "1F0A", "symbol": "\u1F02" }, 7939: { "value": "1F03", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F01 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0B", "lowercase_mapping": "", "titlecase_mapping": "1F0B", "symbol": "\u1F03" }, 7940: { "value": "1F04", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F00 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0C", "lowercase_mapping": "", "titlecase_mapping": "1F0C", "symbol": "\u1F04" }, 7941: { "value": "1F05", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F01 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0D", "lowercase_mapping": "", "titlecase_mapping": "1F0D", "symbol": "\u1F05" }, 7942: { "value": "1F06", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F00 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0E", "lowercase_mapping": "", "titlecase_mapping": "1F0E", "symbol": "\u1F06" }, 7943: { "value": "1F07", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F01 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0F", "lowercase_mapping": "", "titlecase_mapping": "1F0F", "symbol": "\u1F07" }, 7952: { "value": "1F10", "name": "GREEK SMALL LETTER EPSILON WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B5 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F18", "lowercase_mapping": "", "titlecase_mapping": "1F18", "symbol": "\u1F10" }, 7953: { "value": "1F11", "name": "GREEK SMALL LETTER EPSILON WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B5 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F19", "lowercase_mapping": "", "titlecase_mapping": "1F19", "symbol": "\u1F11" }, 7954: { "value": "1F12", "name": "GREEK SMALL LETTER EPSILON WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F10 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F1A", "lowercase_mapping": "", "titlecase_mapping": "1F1A", "symbol": "\u1F12" }, 7955: { "value": "1F13", "name": "GREEK SMALL LETTER EPSILON WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F11 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F1B", "lowercase_mapping": "", "titlecase_mapping": "1F1B", "symbol": "\u1F13" }, 7956: { "value": "1F14", "name": "GREEK SMALL LETTER EPSILON WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F10 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F1C", "lowercase_mapping": "", "titlecase_mapping": "1F1C", "symbol": "\u1F14" }, 7957: { "value": "1F15", "name": "GREEK SMALL LETTER EPSILON WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F11 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F1D", "lowercase_mapping": "", "titlecase_mapping": "1F1D", "symbol": "\u1F15" }, 7968: { "value": "1F20", "name": "GREEK SMALL LETTER ETA WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F28", "lowercase_mapping": "", "titlecase_mapping": "1F28", "symbol": "\u1F20" }, 7969: { "value": "1F21", "name": "GREEK SMALL LETTER ETA WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F29", "lowercase_mapping": "", "titlecase_mapping": "1F29", "symbol": "\u1F21" }, 7970: { "value": "1F22", "name": "GREEK SMALL LETTER ETA WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F20 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2A", "lowercase_mapping": "", "titlecase_mapping": "1F2A", "symbol": "\u1F22" }, 7971: { "value": "1F23", "name": "GREEK SMALL LETTER ETA WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F21 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2B", "lowercase_mapping": "", "titlecase_mapping": "1F2B", "symbol": "\u1F23" }, 7972: { "value": "1F24", "name": "GREEK SMALL LETTER ETA WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F20 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2C", "lowercase_mapping": "", "titlecase_mapping": "1F2C", "symbol": "\u1F24" }, 7973: { "value": "1F25", "name": "GREEK SMALL LETTER ETA WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F21 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2D", "lowercase_mapping": "", "titlecase_mapping": "1F2D", "symbol": "\u1F25" }, 7974: { "value": "1F26", "name": "GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F20 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2E", "lowercase_mapping": "", "titlecase_mapping": "1F2E", "symbol": "\u1F26" }, 7975: { "value": "1F27", "name": "GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F21 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2F", "lowercase_mapping": "", "titlecase_mapping": "1F2F", "symbol": "\u1F27" }, 7984: { "value": "1F30", "name": "GREEK SMALL LETTER IOTA WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F38", "lowercase_mapping": "", "titlecase_mapping": "1F38", "symbol": "\u1F30" }, 7985: { "value": "1F31", "name": "GREEK SMALL LETTER IOTA WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F39", "lowercase_mapping": "", "titlecase_mapping": "1F39", "symbol": "\u1F31" }, 7986: { "value": "1F32", "name": "GREEK SMALL LETTER IOTA WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F30 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3A", "lowercase_mapping": "", "titlecase_mapping": "1F3A", "symbol": "\u1F32" }, 7987: { "value": "1F33", "name": "GREEK SMALL LETTER IOTA WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F31 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3B", "lowercase_mapping": "", "titlecase_mapping": "1F3B", "symbol": "\u1F33" }, 7988: { "value": "1F34", "name": "GREEK SMALL LETTER IOTA WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F30 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3C", "lowercase_mapping": "", "titlecase_mapping": "1F3C", "symbol": "\u1F34" }, 7989: { "value": "1F35", "name": "GREEK SMALL LETTER IOTA WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F31 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3D", "lowercase_mapping": "", "titlecase_mapping": "1F3D", "symbol": "\u1F35" }, 7990: { "value": "1F36", "name": "GREEK SMALL LETTER IOTA WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F30 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3E", "lowercase_mapping": "", "titlecase_mapping": "1F3E", "symbol": "\u1F36" }, 7991: { "value": "1F37", "name": "GREEK SMALL LETTER IOTA WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F31 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3F", "lowercase_mapping": "", "titlecase_mapping": "1F3F", "symbol": "\u1F37" }, 8000: { "value": "1F40", "name": "GREEK SMALL LETTER OMICRON WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03BF 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F48", "lowercase_mapping": "", "titlecase_mapping": "1F48", "symbol": "\u1F40" }, 8001: { "value": "1F41", "name": "GREEK SMALL LETTER OMICRON WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03BF 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F49", "lowercase_mapping": "", "titlecase_mapping": "1F49", "symbol": "\u1F41" }, 8002: { "value": "1F42", "name": "GREEK SMALL LETTER OMICRON WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F40 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F4A", "lowercase_mapping": "", "titlecase_mapping": "1F4A", "symbol": "\u1F42" }, 8003: { "value": "1F43", "name": "GREEK SMALL LETTER OMICRON WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F41 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F4B", "lowercase_mapping": "", "titlecase_mapping": "1F4B", "symbol": "\u1F43" }, 8004: { "value": "1F44", "name": "GREEK SMALL LETTER OMICRON WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F40 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F4C", "lowercase_mapping": "", "titlecase_mapping": "1F4C", "symbol": "\u1F44" }, 8005: { "value": "1F45", "name": "GREEK SMALL LETTER OMICRON WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F41 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F4D", "lowercase_mapping": "", "titlecase_mapping": "1F4D", "symbol": "\u1F45" }, 8016: { "value": "1F50", "name": "GREEK SMALL LETTER UPSILON WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1F50" }, 8017: { "value": "1F51", "name": "GREEK SMALL LETTER UPSILON WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F59", "lowercase_mapping": "", "titlecase_mapping": "1F59", "symbol": "\u1F51" }, 8018: { "value": "1F52", "name": "GREEK SMALL LETTER UPSILON WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F50 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1F52" }, 8019: { "value": "1F53", "name": "GREEK SMALL LETTER UPSILON WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F51 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F5B", "lowercase_mapping": "", "titlecase_mapping": "1F5B", "symbol": "\u1F53" }, 8020: { "value": "1F54", "name": "GREEK SMALL LETTER UPSILON WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F50 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1F54" }, 8021: { "value": "1F55", "name": "GREEK SMALL LETTER UPSILON WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F51 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F5D", "lowercase_mapping": "", "titlecase_mapping": "1F5D", "symbol": "\u1F55" }, 8022: { "value": "1F56", "name": "GREEK SMALL LETTER UPSILON WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F50 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1F56" }, 8023: { "value": "1F57", "name": "GREEK SMALL LETTER UPSILON WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F51 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F5F", "lowercase_mapping": "", "titlecase_mapping": "1F5F", "symbol": "\u1F57" }, 8032: { "value": "1F60", "name": "GREEK SMALL LETTER OMEGA WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F68", "lowercase_mapping": "", "titlecase_mapping": "1F68", "symbol": "\u1F60" }, 8033: { "value": "1F61", "name": "GREEK SMALL LETTER OMEGA WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F69", "lowercase_mapping": "", "titlecase_mapping": "1F69", "symbol": "\u1F61" }, 8034: { "value": "1F62", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F60 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6A", "lowercase_mapping": "", "titlecase_mapping": "1F6A", "symbol": "\u1F62" }, 8035: { "value": "1F63", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F61 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6B", "lowercase_mapping": "", "titlecase_mapping": "1F6B", "symbol": "\u1F63" }, 8036: { "value": "1F64", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F60 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6C", "lowercase_mapping": "", "titlecase_mapping": "1F6C", "symbol": "\u1F64" }, 8037: { "value": "1F65", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F61 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6D", "lowercase_mapping": "", "titlecase_mapping": "1F6D", "symbol": "\u1F65" }, 8038: { "value": "1F66", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F60 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6E", "lowercase_mapping": "", "titlecase_mapping": "1F6E", "symbol": "\u1F66" }, 8039: { "value": "1F67", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F61 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6F", "lowercase_mapping": "", "titlecase_mapping": "1F6F", "symbol": "\u1F67" }, 8048: { "value": "1F70", "name": "GREEK SMALL LETTER ALPHA WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FBA", "lowercase_mapping": "", "titlecase_mapping": "1FBA", "symbol": "\u1F70" }, 8049: { "value": "1F71", "name": "GREEK SMALL LETTER ALPHA WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FBB", "lowercase_mapping": "", "titlecase_mapping": "1FBB", "symbol": "\u1F71" }, 8050: { "value": "1F72", "name": "GREEK SMALL LETTER EPSILON WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B5 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FC8", "lowercase_mapping": "", "titlecase_mapping": "1FC8", "symbol": "\u1F72" }, 8051: { "value": "1F73", "name": "GREEK SMALL LETTER EPSILON WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FC9", "lowercase_mapping": "", "titlecase_mapping": "1FC9", "symbol": "\u1F73" }, 8052: { "value": "1F74", "name": "GREEK SMALL LETTER ETA WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FCA", "lowercase_mapping": "", "titlecase_mapping": "1FCA", "symbol": "\u1F74" }, 8053: { "value": "1F75", "name": "GREEK SMALL LETTER ETA WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FCB", "lowercase_mapping": "", "titlecase_mapping": "1FCB", "symbol": "\u1F75" }, 8054: { "value": "1F76", "name": "GREEK SMALL LETTER IOTA WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FDA", "lowercase_mapping": "", "titlecase_mapping": "1FDA", "symbol": "\u1F76" }, 8055: { "value": "1F77", "name": "GREEK SMALL LETTER IOTA WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FDB", "lowercase_mapping": "", "titlecase_mapping": "1FDB", "symbol": "\u1F77" }, 8056: { "value": "1F78", "name": "GREEK SMALL LETTER OMICRON WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03BF 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FF8", "lowercase_mapping": "", "titlecase_mapping": "1FF8", "symbol": "\u1F78" }, 8057: { "value": "1F79", "name": "GREEK SMALL LETTER OMICRON WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FF9", "lowercase_mapping": "", "titlecase_mapping": "1FF9", "symbol": "\u1F79" }, 8058: { "value": "1F7A", "name": "GREEK SMALL LETTER UPSILON WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FEA", "lowercase_mapping": "", "titlecase_mapping": "1FEA", "symbol": "\u1F7A" }, 8059: { "value": "1F7B", "name": "GREEK SMALL LETTER UPSILON WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FEB", "lowercase_mapping": "", "titlecase_mapping": "1FEB", "symbol": "\u1F7B" }, 8060: { "value": "1F7C", "name": "GREEK SMALL LETTER OMEGA WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FFA", "lowercase_mapping": "", "titlecase_mapping": "1FFA", "symbol": "\u1F7C" }, 8061: { "value": "1F7D", "name": "GREEK SMALL LETTER OMEGA WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FFB", "lowercase_mapping": "", "titlecase_mapping": "1FFB", "symbol": "\u1F7D" }, 8064: { "value": "1F80", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F00 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F88", "lowercase_mapping": "", "titlecase_mapping": "1F88", "symbol": "\u1F80" }, 8065: { "value": "1F81", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F01 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F89", "lowercase_mapping": "", "titlecase_mapping": "1F89", "symbol": "\u1F81" }, 8066: { "value": "1F82", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F02 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8A", "lowercase_mapping": "", "titlecase_mapping": "1F8A", "symbol": "\u1F82" }, 8067: { "value": "1F83", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F03 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8B", "lowercase_mapping": "", "titlecase_mapping": "1F8B", "symbol": "\u1F83" }, 8068: { "value": "1F84", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F04 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8C", "lowercase_mapping": "", "titlecase_mapping": "1F8C", "symbol": "\u1F84" }, 8069: { "value": "1F85", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F05 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8D", "lowercase_mapping": "", "titlecase_mapping": "1F8D", "symbol": "\u1F85" }, 8070: { "value": "1F86", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F06 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8E", "lowercase_mapping": "", "titlecase_mapping": "1F8E", "symbol": "\u1F86" }, 8071: { "value": "1F87", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F07 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8F", "lowercase_mapping": "", "titlecase_mapping": "1F8F", "symbol": "\u1F87" }, 8080: { "value": "1F90", "name": "GREEK SMALL LETTER ETA WITH PSILI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F20 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F98", "lowercase_mapping": "", "titlecase_mapping": "1F98", "symbol": "\u1F90" }, 8081: { "value": "1F91", "name": "GREEK SMALL LETTER ETA WITH DASIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F21 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F99", "lowercase_mapping": "", "titlecase_mapping": "1F99", "symbol": "\u1F91" }, 8082: { "value": "1F92", "name": "GREEK SMALL LETTER ETA WITH PSILI AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F22 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9A", "lowercase_mapping": "", "titlecase_mapping": "1F9A", "symbol": "\u1F92" }, 8083: { "value": "1F93", "name": "GREEK SMALL LETTER ETA WITH DASIA AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F23 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9B", "lowercase_mapping": "", "titlecase_mapping": "1F9B", "symbol": "\u1F93" }, 8084: { "value": "1F94", "name": "GREEK SMALL LETTER ETA WITH PSILI AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F24 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9C", "lowercase_mapping": "", "titlecase_mapping": "1F9C", "symbol": "\u1F94" }, 8085: { "value": "1F95", "name": "GREEK SMALL LETTER ETA WITH DASIA AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F25 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9D", "lowercase_mapping": "", "titlecase_mapping": "1F9D", "symbol": "\u1F95" }, 8086: { "value": "1F96", "name": "GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F26 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9E", "lowercase_mapping": "", "titlecase_mapping": "1F9E", "symbol": "\u1F96" }, 8087: { "value": "1F97", "name": "GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F27 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9F", "lowercase_mapping": "", "titlecase_mapping": "1F9F", "symbol": "\u1F97" }, 8096: { "value": "1FA0", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F60 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FA8", "lowercase_mapping": "", "titlecase_mapping": "1FA8", "symbol": "\u1FA0" }, 8097: { "value": "1FA1", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F61 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FA9", "lowercase_mapping": "", "titlecase_mapping": "1FA9", "symbol": "\u1FA1" }, 8098: { "value": "1FA2", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F62 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAA", "lowercase_mapping": "", "titlecase_mapping": "1FAA", "symbol": "\u1FA2" }, 8099: { "value": "1FA3", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F63 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAB", "lowercase_mapping": "", "titlecase_mapping": "1FAB", "symbol": "\u1FA3" }, 8100: { "value": "1FA4", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F64 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAC", "lowercase_mapping": "", "titlecase_mapping": "1FAC", "symbol": "\u1FA4" }, 8101: { "value": "1FA5", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F65 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAD", "lowercase_mapping": "", "titlecase_mapping": "1FAD", "symbol": "\u1FA5" }, 8102: { "value": "1FA6", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F66 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAE", "lowercase_mapping": "", "titlecase_mapping": "1FAE", "symbol": "\u1FA6" }, 8103: { "value": "1FA7", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F67 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAF", "lowercase_mapping": "", "titlecase_mapping": "1FAF", "symbol": "\u1FA7" }, 8112: { "value": "1FB0", "name": "GREEK SMALL LETTER ALPHA WITH VRACHY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FB8", "lowercase_mapping": "", "titlecase_mapping": "1FB8", "symbol": "\u1FB0" }, 8113: { "value": "1FB1", "name": "GREEK SMALL LETTER ALPHA WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FB9", "lowercase_mapping": "", "titlecase_mapping": "1FB9", "symbol": "\u1FB1" }, 8114: { "value": "1FB2", "name": "GREEK SMALL LETTER ALPHA WITH VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F70 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FB2" }, 8115: { "value": "1FB3", "name": "GREEK SMALL LETTER ALPHA WITH YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FBC", "lowercase_mapping": "", "titlecase_mapping": "1FBC", "symbol": "\u1FB3" }, 8116: { "value": "1FB4", "name": "GREEK SMALL LETTER ALPHA WITH OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AC 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FB4" }, 8118: { "value": "1FB6", "name": "GREEK SMALL LETTER ALPHA WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FB6" }, 8119: { "value": "1FB7", "name": "GREEK SMALL LETTER ALPHA WITH PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1FB6 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FB7" }, 8126: { "value": "1FBE", "name": "GREEK PROSGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0399", "lowercase_mapping": "", "titlecase_mapping": "0399", "symbol": "\u1FBE" }, 8130: { "value": "1FC2", "name": "GREEK SMALL LETTER ETA WITH VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F74 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FC2" }, 8131: { "value": "1FC3", "name": "GREEK SMALL LETTER ETA WITH YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FCC", "lowercase_mapping": "", "titlecase_mapping": "1FCC", "symbol": "\u1FC3" }, 8132: { "value": "1FC4", "name": "GREEK SMALL LETTER ETA WITH OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AE 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FC4" }, 8134: { "value": "1FC6", "name": "GREEK SMALL LETTER ETA WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FC6" }, 8135: { "value": "1FC7", "name": "GREEK SMALL LETTER ETA WITH PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1FC6 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FC7" }, 8144: { "value": "1FD0", "name": "GREEK SMALL LETTER IOTA WITH VRACHY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FD8", "lowercase_mapping": "", "titlecase_mapping": "1FD8", "symbol": "\u1FD0" }, 8145: { "value": "1FD1", "name": "GREEK SMALL LETTER IOTA WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FD9", "lowercase_mapping": "", "titlecase_mapping": "1FD9", "symbol": "\u1FD1" }, 8146: { "value": "1FD2", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CA 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FD2" }, 8147: { "value": "1FD3", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0390", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FD3" }, 8150: { "value": "1FD6", "name": "GREEK SMALL LETTER IOTA WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FD6" }, 8151: { "value": "1FD7", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CA 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FD7" }, 8160: { "value": "1FE0", "name": "GREEK SMALL LETTER UPSILON WITH VRACHY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FE8", "lowercase_mapping": "", "titlecase_mapping": "1FE8", "symbol": "\u1FE0" }, 8161: { "value": "1FE1", "name": "GREEK SMALL LETTER UPSILON WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FE9", "lowercase_mapping": "", "titlecase_mapping": "1FE9", "symbol": "\u1FE1" }, 8162: { "value": "1FE2", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CB 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE2" }, 8163: { "value": "1FE3", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE3" }, 8164: { "value": "1FE4", "name": "GREEK SMALL LETTER RHO WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C1 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE4" }, 8165: { "value": "1FE5", "name": "GREEK SMALL LETTER RHO WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C1 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FEC", "lowercase_mapping": "", "titlecase_mapping": "1FEC", "symbol": "\u1FE5" }, 8166: { "value": "1FE6", "name": "GREEK SMALL LETTER UPSILON WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE6" }, 8167: { "value": "1FE7", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CB 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE7" }, 8178: { "value": "1FF2", "name": "GREEK SMALL LETTER OMEGA WITH VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F7C 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FF2" }, 8179: { "value": "1FF3", "name": "GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FFC", "lowercase_mapping": "", "titlecase_mapping": "1FFC", "symbol": "\u1FF3" }, 8180: { "value": "1FF4", "name": "GREEK SMALL LETTER OMEGA WITH OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CE 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FF4" }, 8182: { "value": "1FF6", "name": "GREEK SMALL LETTER OMEGA WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FF6" }, 8183: { "value": "1FF7", "name": "GREEK SMALL LETTER OMEGA WITH PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1FF6 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FF7" }, 8458: { "value": "210A", "name": "SCRIPT SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u210A" }, 8462: { "value": "210E", "name": "PLANCK CONSTANT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u210E" }, 8463: { "value": "210F", "name": "PLANCK CONSTANT OVER TWO PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0127", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "PLANCK CONSTANT OVER 2 PI", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u210F" }, 8467: { "value": "2113", "name": "SCRIPT SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2113" }, 8495: { "value": "212F", "name": "SCRIPT SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u212F" }, 8500: { "value": "2134", "name": "SCRIPT SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2134" }, 8505: { "value": "2139", "name": "INFORMATION SOURCE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2139" }, 8508: { "value": "213C", "name": "DOUBLE-STRUCK SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u213C" }, 8509: { "value": "213D", "name": "DOUBLE-STRUCK SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u213D" }, 8518: { "value": "2146", "name": "DOUBLE-STRUCK ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2146" }, 8519: { "value": "2147", "name": "DOUBLE-STRUCK ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2147" }, 8520: { "value": "2148", "name": "DOUBLE-STRUCK ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2148" }, 8521: { "value": "2149", "name": "DOUBLE-STRUCK ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2149" }, 8526: { "value": "214E", "name": "TURNED SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2132", "lowercase_mapping": "", "titlecase_mapping": "2132", "symbol": "\u214E" }, 8580: { "value": "2184", "name": "LATIN SMALL LETTER REVERSED C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2183", "lowercase_mapping": "", "titlecase_mapping": "2183", "symbol": "\u2184" }, 11312: { "value": "2C30", "name": "GLAGOLITIC SMALL LETTER AZU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C00", "lowercase_mapping": "", "titlecase_mapping": "2C00", "symbol": "\u2C30" }, 11313: { "value": "2C31", "name": "GLAGOLITIC SMALL LETTER BUKY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C01", "lowercase_mapping": "", "titlecase_mapping": "2C01", "symbol": "\u2C31" }, 11314: { "value": "2C32", "name": "GLAGOLITIC SMALL LETTER VEDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C02", "lowercase_mapping": "", "titlecase_mapping": "2C02", "symbol": "\u2C32" }, 11315: { "value": "2C33", "name": "GLAGOLITIC SMALL LETTER GLAGOLI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C03", "lowercase_mapping": "", "titlecase_mapping": "2C03", "symbol": "\u2C33" }, 11316: { "value": "2C34", "name": "GLAGOLITIC SMALL LETTER DOBRO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C04", "lowercase_mapping": "", "titlecase_mapping": "2C04", "symbol": "\u2C34" }, 11317: { "value": "2C35", "name": "GLAGOLITIC SMALL LETTER YESTU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C05", "lowercase_mapping": "", "titlecase_mapping": "2C05", "symbol": "\u2C35" }, 11318: { "value": "2C36", "name": "GLAGOLITIC SMALL LETTER ZHIVETE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C06", "lowercase_mapping": "", "titlecase_mapping": "2C06", "symbol": "\u2C36" }, 11319: { "value": "2C37", "name": "GLAGOLITIC SMALL LETTER DZELO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C07", "lowercase_mapping": "", "titlecase_mapping": "2C07", "symbol": "\u2C37" }, 11320: { "value": "2C38", "name": "GLAGOLITIC SMALL LETTER ZEMLJA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C08", "lowercase_mapping": "", "titlecase_mapping": "2C08", "symbol": "\u2C38" }, 11321: { "value": "2C39", "name": "GLAGOLITIC SMALL LETTER IZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C09", "lowercase_mapping": "", "titlecase_mapping": "2C09", "symbol": "\u2C39" }, 11322: { "value": "2C3A", "name": "GLAGOLITIC SMALL LETTER INITIAL IZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0A", "lowercase_mapping": "", "titlecase_mapping": "2C0A", "symbol": "\u2C3A" }, 11323: { "value": "2C3B", "name": "GLAGOLITIC SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0B", "lowercase_mapping": "", "titlecase_mapping": "2C0B", "symbol": "\u2C3B" }, 11324: { "value": "2C3C", "name": "GLAGOLITIC SMALL LETTER DJERVI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0C", "lowercase_mapping": "", "titlecase_mapping": "2C0C", "symbol": "\u2C3C" }, 11325: { "value": "2C3D", "name": "GLAGOLITIC SMALL LETTER KAKO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0D", "lowercase_mapping": "", "titlecase_mapping": "2C0D", "symbol": "\u2C3D" }, 11326: { "value": "2C3E", "name": "GLAGOLITIC SMALL LETTER LJUDIJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0E", "lowercase_mapping": "", "titlecase_mapping": "2C0E", "symbol": "\u2C3E" }, 11327: { "value": "2C3F", "name": "GLAGOLITIC SMALL LETTER MYSLITE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0F", "lowercase_mapping": "", "titlecase_mapping": "2C0F", "symbol": "\u2C3F" }, 11328: { "value": "2C40", "name": "GLAGOLITIC SMALL LETTER NASHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C10", "lowercase_mapping": "", "titlecase_mapping": "2C10", "symbol": "\u2C40" }, 11329: { "value": "2C41", "name": "GLAGOLITIC SMALL LETTER ONU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C11", "lowercase_mapping": "", "titlecase_mapping": "2C11", "symbol": "\u2C41" }, 11330: { "value": "2C42", "name": "GLAGOLITIC SMALL LETTER POKOJI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C12", "lowercase_mapping": "", "titlecase_mapping": "2C12", "symbol": "\u2C42" }, 11331: { "value": "2C43", "name": "GLAGOLITIC SMALL LETTER RITSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C13", "lowercase_mapping": "", "titlecase_mapping": "2C13", "symbol": "\u2C43" }, 11332: { "value": "2C44", "name": "GLAGOLITIC SMALL LETTER SLOVO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C14", "lowercase_mapping": "", "titlecase_mapping": "2C14", "symbol": "\u2C44" }, 11333: { "value": "2C45", "name": "GLAGOLITIC SMALL LETTER TVRIDO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C15", "lowercase_mapping": "", "titlecase_mapping": "2C15", "symbol": "\u2C45" }, 11334: { "value": "2C46", "name": "GLAGOLITIC SMALL LETTER UKU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C16", "lowercase_mapping": "", "titlecase_mapping": "2C16", "symbol": "\u2C46" }, 11335: { "value": "2C47", "name": "GLAGOLITIC SMALL LETTER FRITU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C17", "lowercase_mapping": "", "titlecase_mapping": "2C17", "symbol": "\u2C47" }, 11336: { "value": "2C48", "name": "GLAGOLITIC SMALL LETTER HERU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C18", "lowercase_mapping": "", "titlecase_mapping": "2C18", "symbol": "\u2C48" }, 11337: { "value": "2C49", "name": "GLAGOLITIC SMALL LETTER OTU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C19", "lowercase_mapping": "", "titlecase_mapping": "2C19", "symbol": "\u2C49" }, 11338: { "value": "2C4A", "name": "GLAGOLITIC SMALL LETTER PE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1A", "lowercase_mapping": "", "titlecase_mapping": "2C1A", "symbol": "\u2C4A" }, 11339: { "value": "2C4B", "name": "GLAGOLITIC SMALL LETTER SHTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1B", "lowercase_mapping": "", "titlecase_mapping": "2C1B", "symbol": "\u2C4B" }, 11340: { "value": "2C4C", "name": "GLAGOLITIC SMALL LETTER TSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1C", "lowercase_mapping": "", "titlecase_mapping": "2C1C", "symbol": "\u2C4C" }, 11341: { "value": "2C4D", "name": "GLAGOLITIC SMALL LETTER CHRIVI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1D", "lowercase_mapping": "", "titlecase_mapping": "2C1D", "symbol": "\u2C4D" }, 11342: { "value": "2C4E", "name": "GLAGOLITIC SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1E", "lowercase_mapping": "", "titlecase_mapping": "2C1E", "symbol": "\u2C4E" }, 11343: { "value": "2C4F", "name": "GLAGOLITIC SMALL LETTER YERU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1F", "lowercase_mapping": "", "titlecase_mapping": "2C1F", "symbol": "\u2C4F" }, 11344: { "value": "2C50", "name": "GLAGOLITIC SMALL LETTER YERI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C20", "lowercase_mapping": "", "titlecase_mapping": "2C20", "symbol": "\u2C50" }, 11345: { "value": "2C51", "name": "GLAGOLITIC SMALL LETTER YATI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C21", "lowercase_mapping": "", "titlecase_mapping": "2C21", "symbol": "\u2C51" }, 11346: { "value": "2C52", "name": "GLAGOLITIC SMALL LETTER SPIDERY HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C22", "lowercase_mapping": "", "titlecase_mapping": "2C22", "symbol": "\u2C52" }, 11347: { "value": "2C53", "name": "GLAGOLITIC SMALL LETTER YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C23", "lowercase_mapping": "", "titlecase_mapping": "2C23", "symbol": "\u2C53" }, 11348: { "value": "2C54", "name": "GLAGOLITIC SMALL LETTER SMALL YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C24", "lowercase_mapping": "", "titlecase_mapping": "2C24", "symbol": "\u2C54" }, 11349: { "value": "2C55", "name": "GLAGOLITIC SMALL LETTER SMALL YUS WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C25", "lowercase_mapping": "", "titlecase_mapping": "2C25", "symbol": "\u2C55" }, 11350: { "value": "2C56", "name": "GLAGOLITIC SMALL LETTER YO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C26", "lowercase_mapping": "", "titlecase_mapping": "2C26", "symbol": "\u2C56" }, 11351: { "value": "2C57", "name": "GLAGOLITIC SMALL LETTER IOTATED SMALL YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C27", "lowercase_mapping": "", "titlecase_mapping": "2C27", "symbol": "\u2C57" }, 11352: { "value": "2C58", "name": "GLAGOLITIC SMALL LETTER BIG YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C28", "lowercase_mapping": "", "titlecase_mapping": "2C28", "symbol": "\u2C58" }, 11353: { "value": "2C59", "name": "GLAGOLITIC SMALL LETTER IOTATED BIG YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C29", "lowercase_mapping": "", "titlecase_mapping": "2C29", "symbol": "\u2C59" }, 11354: { "value": "2C5A", "name": "GLAGOLITIC SMALL LETTER FITA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2A", "lowercase_mapping": "", "titlecase_mapping": "2C2A", "symbol": "\u2C5A" }, 11355: { "value": "2C5B", "name": "GLAGOLITIC SMALL LETTER IZHITSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2B", "lowercase_mapping": "", "titlecase_mapping": "2C2B", "symbol": "\u2C5B" }, 11356: { "value": "2C5C", "name": "GLAGOLITIC SMALL LETTER SHTAPIC", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2C", "lowercase_mapping": "", "titlecase_mapping": "2C2C", "symbol": "\u2C5C" }, 11357: { "value": "2C5D", "name": "GLAGOLITIC SMALL LETTER TROKUTASTI A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2D", "lowercase_mapping": "", "titlecase_mapping": "2C2D", "symbol": "\u2C5D" }, 11358: { "value": "2C5E", "name": "GLAGOLITIC SMALL LETTER LATINATE MYSLITE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2E", "lowercase_mapping": "", "titlecase_mapping": "2C2E", "symbol": "\u2C5E" }, 11361: { "value": "2C61", "name": "LATIN SMALL LETTER L WITH DOUBLE BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C60", "lowercase_mapping": "", "titlecase_mapping": "2C60", "symbol": "\u2C61" }, 11365: { "value": "2C65", "name": "LATIN SMALL LETTER A WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "023A", "lowercase_mapping": "", "titlecase_mapping": "023A", "symbol": "\u2C65" }, 11366: { "value": "2C66", "name": "LATIN SMALL LETTER T WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "023E", "lowercase_mapping": "", "titlecase_mapping": "023E", "symbol": "\u2C66" }, 11368: { "value": "2C68", "name": "LATIN SMALL LETTER H WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C67", "lowercase_mapping": "", "titlecase_mapping": "2C67", "symbol": "\u2C68" }, 11370: { "value": "2C6A", "name": "LATIN SMALL LETTER K WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C69", "lowercase_mapping": "", "titlecase_mapping": "2C69", "symbol": "\u2C6A" }, 11372: { "value": "2C6C", "name": "LATIN SMALL LETTER Z WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C6B", "lowercase_mapping": "", "titlecase_mapping": "2C6B", "symbol": "\u2C6C" }, 11377: { "value": "2C71", "name": "LATIN SMALL LETTER V WITH RIGHT HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C71" }, 11379: { "value": "2C73", "name": "LATIN SMALL LETTER W WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C72", "lowercase_mapping": "", "titlecase_mapping": "2C72", "symbol": "\u2C73" }, 11380: { "value": "2C74", "name": "LATIN SMALL LETTER V WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C74" }, 11382: { "value": "2C76", "name": "LATIN SMALL LETTER HALF H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C75", "lowercase_mapping": "", "titlecase_mapping": "2C75", "symbol": "\u2C76" }, 11383: { "value": "2C77", "name": "LATIN SMALL LETTER TAILLESS PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C77" }, 11384: { "value": "2C78", "name": "LATIN SMALL LETTER E WITH NOTCH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C78" }, 11385: { "value": "2C79", "name": "LATIN SMALL LETTER TURNED R WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C79" }, 11386: { "value": "2C7A", "name": "LATIN SMALL LETTER O WITH LOW RING INSIDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C7A" }, 11387: { "value": "2C7B", "name": "LATIN LETTER SMALL CAPITAL TURNED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C7B" }, 11393: { "value": "2C81", "name": "COPTIC SMALL LETTER ALFA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C80", "lowercase_mapping": "", "titlecase_mapping": "2C80", "symbol": "\u2C81" }, 11395: { "value": "2C83", "name": "COPTIC SMALL LETTER VIDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C82", "lowercase_mapping": "", "titlecase_mapping": "2C82", "symbol": "\u2C83" }, 11397: { "value": "2C85", "name": "COPTIC SMALL LETTER GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C84", "lowercase_mapping": "", "titlecase_mapping": "2C84", "symbol": "\u2C85" }, 11399: { "value": "2C87", "name": "COPTIC SMALL LETTER DALDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C86", "lowercase_mapping": "", "titlecase_mapping": "2C86", "symbol": "\u2C87" }, 11401: { "value": "2C89", "name": "COPTIC SMALL LETTER EIE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C88", "lowercase_mapping": "", "titlecase_mapping": "2C88", "symbol": "\u2C89" }, 11403: { "value": "2C8B", "name": "COPTIC SMALL LETTER SOU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C8A", "lowercase_mapping": "", "titlecase_mapping": "2C8A", "symbol": "\u2C8B" }, 11405: { "value": "2C8D", "name": "COPTIC SMALL LETTER ZATA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C8C", "lowercase_mapping": "", "titlecase_mapping": "2C8C", "symbol": "\u2C8D" }, 11407: { "value": "2C8F", "name": "COPTIC SMALL LETTER HATE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C8E", "lowercase_mapping": "", "titlecase_mapping": "2C8E", "symbol": "\u2C8F" }, 11409: { "value": "2C91", "name": "COPTIC SMALL LETTER THETHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C90", "lowercase_mapping": "", "titlecase_mapping": "2C90", "symbol": "\u2C91" }, 11411: { "value": "2C93", "name": "COPTIC SMALL LETTER IAUDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C92", "lowercase_mapping": "", "titlecase_mapping": "2C92", "symbol": "\u2C93" }, 11413: { "value": "2C95", "name": "COPTIC SMALL LETTER KAPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C94", "lowercase_mapping": "", "titlecase_mapping": "2C94", "symbol": "\u2C95" }, 11415: { "value": "2C97", "name": "COPTIC SMALL LETTER LAULA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C96", "lowercase_mapping": "", "titlecase_mapping": "2C96", "symbol": "\u2C97" }, 11417: { "value": "2C99", "name": "COPTIC SMALL LETTER MI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C98", "lowercase_mapping": "", "titlecase_mapping": "2C98", "symbol": "\u2C99" }, 11419: { "value": "2C9B", "name": "COPTIC SMALL LETTER NI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C9A", "lowercase_mapping": "", "titlecase_mapping": "2C9A", "symbol": "\u2C9B" }, 11421: { "value": "2C9D", "name": "COPTIC SMALL LETTER KSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C9C", "lowercase_mapping": "", "titlecase_mapping": "2C9C", "symbol": "\u2C9D" }, 11423: { "value": "2C9F", "name": "COPTIC SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C9E", "lowercase_mapping": "", "titlecase_mapping": "2C9E", "symbol": "\u2C9F" }, 11425: { "value": "2CA1", "name": "COPTIC SMALL LETTER PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA0", "lowercase_mapping": "", "titlecase_mapping": "2CA0", "symbol": "\u2CA1" }, 11427: { "value": "2CA3", "name": "COPTIC SMALL LETTER RO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA2", "lowercase_mapping": "", "titlecase_mapping": "2CA2", "symbol": "\u2CA3" }, 11429: { "value": "2CA5", "name": "COPTIC SMALL LETTER SIMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA4", "lowercase_mapping": "", "titlecase_mapping": "2CA4", "symbol": "\u2CA5" }, 11431: { "value": "2CA7", "name": "COPTIC SMALL LETTER TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA6", "lowercase_mapping": "", "titlecase_mapping": "2CA6", "symbol": "\u2CA7" }, 11433: { "value": "2CA9", "name": "COPTIC SMALL LETTER UA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA8", "lowercase_mapping": "", "titlecase_mapping": "2CA8", "symbol": "\u2CA9" }, 11435: { "value": "2CAB", "name": "COPTIC SMALL LETTER FI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CAA", "lowercase_mapping": "", "titlecase_mapping": "2CAA", "symbol": "\u2CAB" }, 11437: { "value": "2CAD", "name": "COPTIC SMALL LETTER KHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CAC", "lowercase_mapping": "", "titlecase_mapping": "2CAC", "symbol": "\u2CAD" }, 11439: { "value": "2CAF", "name": "COPTIC SMALL LETTER PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CAE", "lowercase_mapping": "", "titlecase_mapping": "2CAE", "symbol": "\u2CAF" }, 11441: { "value": "2CB1", "name": "COPTIC SMALL LETTER OOU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB0", "lowercase_mapping": "", "titlecase_mapping": "2CB0", "symbol": "\u2CB1" }, 11443: { "value": "2CB3", "name": "COPTIC SMALL LETTER DIALECT-P ALEF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB2", "lowercase_mapping": "", "titlecase_mapping": "2CB2", "symbol": "\u2CB3" }, 11445: { "value": "2CB5", "name": "COPTIC SMALL LETTER OLD COPTIC AIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB4", "lowercase_mapping": "", "titlecase_mapping": "2CB4", "symbol": "\u2CB5" }, 11447: { "value": "2CB7", "name": "COPTIC SMALL LETTER CRYPTOGRAMMIC EIE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB6", "lowercase_mapping": "", "titlecase_mapping": "2CB6", "symbol": "\u2CB7" }, 11449: { "value": "2CB9", "name": "COPTIC SMALL LETTER DIALECT-P KAPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB8", "lowercase_mapping": "", "titlecase_mapping": "2CB8", "symbol": "\u2CB9" }, 11451: { "value": "2CBB", "name": "COPTIC SMALL LETTER DIALECT-P NI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CBA", "lowercase_mapping": "", "titlecase_mapping": "2CBA", "symbol": "\u2CBB" }, 11453: { "value": "2CBD", "name": "COPTIC SMALL LETTER CRYPTOGRAMMIC NI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CBC", "lowercase_mapping": "", "titlecase_mapping": "2CBC", "symbol": "\u2CBD" }, 11455: { "value": "2CBF", "name": "COPTIC SMALL LETTER OLD COPTIC OOU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CBE", "lowercase_mapping": "", "titlecase_mapping": "2CBE", "symbol": "\u2CBF" }, 11457: { "value": "2CC1", "name": "COPTIC SMALL LETTER SAMPI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC0", "lowercase_mapping": "", "titlecase_mapping": "2CC0", "symbol": "\u2CC1" }, 11459: { "value": "2CC3", "name": "COPTIC SMALL LETTER CROSSED SHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC2", "lowercase_mapping": "", "titlecase_mapping": "2CC2", "symbol": "\u2CC3" }, 11461: { "value": "2CC5", "name": "COPTIC SMALL LETTER OLD COPTIC SHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC4", "lowercase_mapping": "", "titlecase_mapping": "2CC4", "symbol": "\u2CC5" }, 11463: { "value": "2CC7", "name": "COPTIC SMALL LETTER OLD COPTIC ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC6", "lowercase_mapping": "", "titlecase_mapping": "2CC6", "symbol": "\u2CC7" }, 11465: { "value": "2CC9", "name": "COPTIC SMALL LETTER AKHMIMIC KHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC8", "lowercase_mapping": "", "titlecase_mapping": "2CC8", "symbol": "\u2CC9" }, 11467: { "value": "2CCB", "name": "COPTIC SMALL LETTER DIALECT-P HORI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CCA", "lowercase_mapping": "", "titlecase_mapping": "2CCA", "symbol": "\u2CCB" }, 11469: { "value": "2CCD", "name": "COPTIC SMALL LETTER OLD COPTIC HORI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CCC", "lowercase_mapping": "", "titlecase_mapping": "2CCC", "symbol": "\u2CCD" }, 11471: { "value": "2CCF", "name": "COPTIC SMALL LETTER OLD COPTIC HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CCE", "lowercase_mapping": "", "titlecase_mapping": "2CCE", "symbol": "\u2CCF" }, 11473: { "value": "2CD1", "name": "COPTIC SMALL LETTER L-SHAPED HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD0", "lowercase_mapping": "", "titlecase_mapping": "2CD0", "symbol": "\u2CD1" }, 11475: { "value": "2CD3", "name": "COPTIC SMALL LETTER OLD COPTIC HEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD2", "lowercase_mapping": "", "titlecase_mapping": "2CD2", "symbol": "\u2CD3" }, 11477: { "value": "2CD5", "name": "COPTIC SMALL LETTER OLD COPTIC HAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD4", "lowercase_mapping": "", "titlecase_mapping": "2CD4", "symbol": "\u2CD5" }, 11479: { "value": "2CD7", "name": "COPTIC SMALL LETTER OLD COPTIC GANGIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD6", "lowercase_mapping": "", "titlecase_mapping": "2CD6", "symbol": "\u2CD7" }, 11481: { "value": "2CD9", "name": "COPTIC SMALL LETTER OLD COPTIC DJA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD8", "lowercase_mapping": "", "titlecase_mapping": "2CD8", "symbol": "\u2CD9" }, 11483: { "value": "2CDB", "name": "COPTIC SMALL LETTER OLD COPTIC SHIMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CDA", "lowercase_mapping": "", "titlecase_mapping": "2CDA", "symbol": "\u2CDB" }, 11485: { "value": "2CDD", "name": "COPTIC SMALL LETTER OLD NUBIAN SHIMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CDC", "lowercase_mapping": "", "titlecase_mapping": "2CDC", "symbol": "\u2CDD" }, 11487: { "value": "2CDF", "name": "COPTIC SMALL LETTER OLD NUBIAN NGI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CDE", "lowercase_mapping": "", "titlecase_mapping": "2CDE", "symbol": "\u2CDF" }, 11489: { "value": "2CE1", "name": "COPTIC SMALL LETTER OLD NUBIAN NYI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CE0", "lowercase_mapping": "", "titlecase_mapping": "2CE0", "symbol": "\u2CE1" }, 11491: { "value": "2CE3", "name": "COPTIC SMALL LETTER OLD NUBIAN WAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CE2", "lowercase_mapping": "", "titlecase_mapping": "2CE2", "symbol": "\u2CE3" }, 11492: { "value": "2CE4", "name": "COPTIC SYMBOL KAI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2CE4" }, 11500: { "value": "2CEC", "name": "COPTIC SMALL LETTER CRYPTOGRAMMIC SHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CEB", "lowercase_mapping": "", "titlecase_mapping": "2CEB", "symbol": "\u2CEC" }, 11502: { "value": "2CEE", "name": "COPTIC SMALL LETTER CRYPTOGRAMMIC GANGIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CED", "lowercase_mapping": "", "titlecase_mapping": "2CED", "symbol": "\u2CEE" }, 11507: { "value": "2CF3", "name": "COPTIC SMALL LETTER BOHAIRIC KHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CF2", "lowercase_mapping": "", "titlecase_mapping": "2CF2", "symbol": "\u2CF3" }, 11520: { "value": "2D00", "name": "GEORGIAN SMALL LETTER AN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A0", "lowercase_mapping": "", "titlecase_mapping": "10A0", "symbol": "\u2D00" }, 11521: { "value": "2D01", "name": "GEORGIAN SMALL LETTER BAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A1", "lowercase_mapping": "", "titlecase_mapping": "10A1", "symbol": "\u2D01" }, 11522: { "value": "2D02", "name": "GEORGIAN SMALL LETTER GAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A2", "lowercase_mapping": "", "titlecase_mapping": "10A2", "symbol": "\u2D02" }, 11523: { "value": "2D03", "name": "GEORGIAN SMALL LETTER DON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A3", "lowercase_mapping": "", "titlecase_mapping": "10A3", "symbol": "\u2D03" }, 11524: { "value": "2D04", "name": "GEORGIAN SMALL LETTER EN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A4", "lowercase_mapping": "", "titlecase_mapping": "10A4", "symbol": "\u2D04" }, 11525: { "value": "2D05", "name": "GEORGIAN SMALL LETTER VIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A5", "lowercase_mapping": "", "titlecase_mapping": "10A5", "symbol": "\u2D05" }, 11526: { "value": "2D06", "name": "GEORGIAN SMALL LETTER ZEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A6", "lowercase_mapping": "", "titlecase_mapping": "10A6", "symbol": "\u2D06" }, 11527: { "value": "2D07", "name": "GEORGIAN SMALL LETTER TAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A7", "lowercase_mapping": "", "titlecase_mapping": "10A7", "symbol": "\u2D07" }, 11528: { "value": "2D08", "name": "GEORGIAN SMALL LETTER IN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A8", "lowercase_mapping": "", "titlecase_mapping": "10A8", "symbol": "\u2D08" }, 11529: { "value": "2D09", "name": "GEORGIAN SMALL LETTER KAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A9", "lowercase_mapping": "", "titlecase_mapping": "10A9", "symbol": "\u2D09" }, 11530: { "value": "2D0A", "name": "GEORGIAN SMALL LETTER LAS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AA", "lowercase_mapping": "", "titlecase_mapping": "10AA", "symbol": "\u2D0A" }, 11531: { "value": "2D0B", "name": "GEORGIAN SMALL LETTER MAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AB", "lowercase_mapping": "", "titlecase_mapping": "10AB", "symbol": "\u2D0B" }, 11532: { "value": "2D0C", "name": "GEORGIAN SMALL LETTER NAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AC", "lowercase_mapping": "", "titlecase_mapping": "10AC", "symbol": "\u2D0C" }, 11533: { "value": "2D0D", "name": "GEORGIAN SMALL LETTER ON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AD", "lowercase_mapping": "", "titlecase_mapping": "10AD", "symbol": "\u2D0D" }, 11534: { "value": "2D0E", "name": "GEORGIAN SMALL LETTER PAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AE", "lowercase_mapping": "", "titlecase_mapping": "10AE", "symbol": "\u2D0E" }, 11535: { "value": "2D0F", "name": "GEORGIAN SMALL LETTER ZHAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AF", "lowercase_mapping": "", "titlecase_mapping": "10AF", "symbol": "\u2D0F" }, 11536: { "value": "2D10", "name": "GEORGIAN SMALL LETTER RAE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B0", "lowercase_mapping": "", "titlecase_mapping": "10B0", "symbol": "\u2D10" }, 11537: { "value": "2D11", "name": "GEORGIAN SMALL LETTER SAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B1", "lowercase_mapping": "", "titlecase_mapping": "10B1", "symbol": "\u2D11" }, 11538: { "value": "2D12", "name": "GEORGIAN SMALL LETTER TAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B2", "lowercase_mapping": "", "titlecase_mapping": "10B2", "symbol": "\u2D12" }, 11539: { "value": "2D13", "name": "GEORGIAN SMALL LETTER UN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B3", "lowercase_mapping": "", "titlecase_mapping": "10B3", "symbol": "\u2D13" }, 11540: { "value": "2D14", "name": "GEORGIAN SMALL LETTER PHAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B4", "lowercase_mapping": "", "titlecase_mapping": "10B4", "symbol": "\u2D14" }, 11541: { "value": "2D15", "name": "GEORGIAN SMALL LETTER KHAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B5", "lowercase_mapping": "", "titlecase_mapping": "10B5", "symbol": "\u2D15" }, 11542: { "value": "2D16", "name": "GEORGIAN SMALL LETTER GHAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B6", "lowercase_mapping": "", "titlecase_mapping": "10B6", "symbol": "\u2D16" }, 11543: { "value": "2D17", "name": "GEORGIAN SMALL LETTER QAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B7", "lowercase_mapping": "", "titlecase_mapping": "10B7", "symbol": "\u2D17" }, 11544: { "value": "2D18", "name": "GEORGIAN SMALL LETTER SHIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B8", "lowercase_mapping": "", "titlecase_mapping": "10B8", "symbol": "\u2D18" }, 11545: { "value": "2D19", "name": "GEORGIAN SMALL LETTER CHIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B9", "lowercase_mapping": "", "titlecase_mapping": "10B9", "symbol": "\u2D19" }, 11546: { "value": "2D1A", "name": "GEORGIAN SMALL LETTER CAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BA", "lowercase_mapping": "", "titlecase_mapping": "10BA", "symbol": "\u2D1A" }, 11547: { "value": "2D1B", "name": "GEORGIAN SMALL LETTER JIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BB", "lowercase_mapping": "", "titlecase_mapping": "10BB", "symbol": "\u2D1B" }, 11548: { "value": "2D1C", "name": "GEORGIAN SMALL LETTER CIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BC", "lowercase_mapping": "", "titlecase_mapping": "10BC", "symbol": "\u2D1C" }, 11549: { "value": "2D1D", "name": "GEORGIAN SMALL LETTER CHAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BD", "lowercase_mapping": "", "titlecase_mapping": "10BD", "symbol": "\u2D1D" }, 11550: { "value": "2D1E", "name": "GEORGIAN SMALL LETTER XAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BE", "lowercase_mapping": "", "titlecase_mapping": "10BE", "symbol": "\u2D1E" }, 11551: { "value": "2D1F", "name": "GEORGIAN SMALL LETTER JHAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BF", "lowercase_mapping": "", "titlecase_mapping": "10BF", "symbol": "\u2D1F" }, 11552: { "value": "2D20", "name": "GEORGIAN SMALL LETTER HAE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C0", "lowercase_mapping": "", "titlecase_mapping": "10C0", "symbol": "\u2D20" }, 11553: { "value": "2D21", "name": "GEORGIAN SMALL LETTER HE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C1", "lowercase_mapping": "", "titlecase_mapping": "10C1", "symbol": "\u2D21" }, 11554: { "value": "2D22", "name": "GEORGIAN SMALL LETTER HIE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C2", "lowercase_mapping": "", "titlecase_mapping": "10C2", "symbol": "\u2D22" }, 11555: { "value": "2D23", "name": "GEORGIAN SMALL LETTER WE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C3", "lowercase_mapping": "", "titlecase_mapping": "10C3", "symbol": "\u2D23" }, 11556: { "value": "2D24", "name": "GEORGIAN SMALL LETTER HAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C4", "lowercase_mapping": "", "titlecase_mapping": "10C4", "symbol": "\u2D24" }, 11557: { "value": "2D25", "name": "GEORGIAN SMALL LETTER HOE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C5", "lowercase_mapping": "", "titlecase_mapping": "10C5", "symbol": "\u2D25" }, 11559: { "value": "2D27", "name": "GEORGIAN SMALL LETTER YN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C7", "lowercase_mapping": "", "titlecase_mapping": "10C7", "symbol": "\u2D27" }, 11565: { "value": "2D2D", "name": "GEORGIAN SMALL LETTER AEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CD", "lowercase_mapping": "", "titlecase_mapping": "10CD", "symbol": "\u2D2D" }, 42561: { "value": "A641", "name": "CYRILLIC SMALL LETTER ZEMLYA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A640", "lowercase_mapping": "", "titlecase_mapping": "A640", "symbol": "\uA641" }, 42563: { "value": "A643", "name": "CYRILLIC SMALL LETTER DZELO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A642", "lowercase_mapping": "", "titlecase_mapping": "A642", "symbol": "\uA643" }, 42565: { "value": "A645", "name": "CYRILLIC SMALL LETTER REVERSED DZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A644", "lowercase_mapping": "", "titlecase_mapping": "A644", "symbol": "\uA645" }, 42567: { "value": "A647", "name": "CYRILLIC SMALL LETTER IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A646", "lowercase_mapping": "", "titlecase_mapping": "A646", "symbol": "\uA647" }, 42569: { "value": "A649", "name": "CYRILLIC SMALL LETTER DJERV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A648", "lowercase_mapping": "", "titlecase_mapping": "A648", "symbol": "\uA649" }, 42571: { "value": "A64B", "name": "CYRILLIC SMALL LETTER MONOGRAPH UK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A64A", "lowercase_mapping": "", "titlecase_mapping": "A64A", "symbol": "\uA64B" }, 42573: { "value": "A64D", "name": "CYRILLIC SMALL LETTER BROAD OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A64C", "lowercase_mapping": "", "titlecase_mapping": "A64C", "symbol": "\uA64D" }, 42575: { "value": "A64F", "name": "CYRILLIC SMALL LETTER NEUTRAL YER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A64E", "lowercase_mapping": "", "titlecase_mapping": "A64E", "symbol": "\uA64F" }, 42577: { "value": "A651", "name": "CYRILLIC SMALL LETTER YERU WITH BACK YER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A650", "lowercase_mapping": "", "titlecase_mapping": "A650", "symbol": "\uA651" }, 42579: { "value": "A653", "name": "CYRILLIC SMALL LETTER IOTIFIED YAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A652", "lowercase_mapping": "", "titlecase_mapping": "A652", "symbol": "\uA653" }, 42581: { "value": "A655", "name": "CYRILLIC SMALL LETTER REVERSED YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A654", "lowercase_mapping": "", "titlecase_mapping": "A654", "symbol": "\uA655" }, 42583: { "value": "A657", "name": "CYRILLIC SMALL LETTER IOTIFIED A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A656", "lowercase_mapping": "", "titlecase_mapping": "A656", "symbol": "\uA657" }, 42585: { "value": "A659", "name": "CYRILLIC SMALL LETTER CLOSED LITTLE YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A658", "lowercase_mapping": "", "titlecase_mapping": "A658", "symbol": "\uA659" }, 42587: { "value": "A65B", "name": "CYRILLIC SMALL LETTER BLENDED YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A65A", "lowercase_mapping": "", "titlecase_mapping": "A65A", "symbol": "\uA65B" }, 42589: { "value": "A65D", "name": "CYRILLIC SMALL LETTER IOTIFIED CLOSED LITTLE YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A65C", "lowercase_mapping": "", "titlecase_mapping": "A65C", "symbol": "\uA65D" }, 42591: { "value": "A65F", "name": "CYRILLIC SMALL LETTER YN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A65E", "lowercase_mapping": "", "titlecase_mapping": "A65E", "symbol": "\uA65F" }, 42593: { "value": "A661", "name": "CYRILLIC SMALL LETTER REVERSED TSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A660", "lowercase_mapping": "", "titlecase_mapping": "A660", "symbol": "\uA661" }, 42595: { "value": "A663", "name": "CYRILLIC SMALL LETTER SOFT DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A662", "lowercase_mapping": "", "titlecase_mapping": "A662", "symbol": "\uA663" }, 42597: { "value": "A665", "name": "CYRILLIC SMALL LETTER SOFT EL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A664", "lowercase_mapping": "", "titlecase_mapping": "A664", "symbol": "\uA665" }, 42599: { "value": "A667", "name": "CYRILLIC SMALL LETTER SOFT EM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A666", "lowercase_mapping": "", "titlecase_mapping": "A666", "symbol": "\uA667" }, 42601: { "value": "A669", "name": "CYRILLIC SMALL LETTER MONOCULAR O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A668", "lowercase_mapping": "", "titlecase_mapping": "A668", "symbol": "\uA669" }, 42603: { "value": "A66B", "name": "CYRILLIC SMALL LETTER BINOCULAR O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A66A", "lowercase_mapping": "", "titlecase_mapping": "A66A", "symbol": "\uA66B" }, 42605: { "value": "A66D", "name": "CYRILLIC SMALL LETTER DOUBLE MONOCULAR O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A66C", "lowercase_mapping": "", "titlecase_mapping": "A66C", "symbol": "\uA66D" }, 42625: { "value": "A681", "name": "CYRILLIC SMALL LETTER DWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A680", "lowercase_mapping": "", "titlecase_mapping": "A680", "symbol": "\uA681" }, 42627: { "value": "A683", "name": "CYRILLIC SMALL LETTER DZWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A682", "lowercase_mapping": "", "titlecase_mapping": "A682", "symbol": "\uA683" }, 42629: { "value": "A685", "name": "CYRILLIC SMALL LETTER ZHWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A684", "lowercase_mapping": "", "titlecase_mapping": "A684", "symbol": "\uA685" }, 42631: { "value": "A687", "name": "CYRILLIC SMALL LETTER CCHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A686", "lowercase_mapping": "", "titlecase_mapping": "A686", "symbol": "\uA687" }, 42633: { "value": "A689", "name": "CYRILLIC SMALL LETTER DZZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A688", "lowercase_mapping": "", "titlecase_mapping": "A688", "symbol": "\uA689" }, 42635: { "value": "A68B", "name": "CYRILLIC SMALL LETTER TE WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A68A", "lowercase_mapping": "", "titlecase_mapping": "A68A", "symbol": "\uA68B" }, 42637: { "value": "A68D", "name": "CYRILLIC SMALL LETTER TWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A68C", "lowercase_mapping": "", "titlecase_mapping": "A68C", "symbol": "\uA68D" }, 42639: { "value": "A68F", "name": "CYRILLIC SMALL LETTER TSWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A68E", "lowercase_mapping": "", "titlecase_mapping": "A68E", "symbol": "\uA68F" }, 42641: { "value": "A691", "name": "CYRILLIC SMALL LETTER TSSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A690", "lowercase_mapping": "", "titlecase_mapping": "A690", "symbol": "\uA691" }, 42643: { "value": "A693", "name": "CYRILLIC SMALL LETTER TCHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A692", "lowercase_mapping": "", "titlecase_mapping": "A692", "symbol": "\uA693" }, 42645: { "value": "A695", "name": "CYRILLIC SMALL LETTER HWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A694", "lowercase_mapping": "", "titlecase_mapping": "A694", "symbol": "\uA695" }, 42647: { "value": "A697", "name": "CYRILLIC SMALL LETTER SHWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A696", "lowercase_mapping": "", "titlecase_mapping": "A696", "symbol": "\uA697" }, 42649: { "value": "A699", "name": "CYRILLIC SMALL LETTER DOUBLE O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A698", "lowercase_mapping": "", "titlecase_mapping": "A698", "symbol": "\uA699" }, 42651: { "value": "A69B", "name": "CYRILLIC SMALL LETTER CROSSED O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A69A", "lowercase_mapping": "", "titlecase_mapping": "A69A", "symbol": "\uA69B" }, 42787: { "value": "A723", "name": "LATIN SMALL LETTER EGYPTOLOGICAL ALEF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A722", "lowercase_mapping": "", "titlecase_mapping": "A722", "symbol": "\uA723" }, 42789: { "value": "A725", "name": "LATIN SMALL LETTER EGYPTOLOGICAL AIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A724", "lowercase_mapping": "", "titlecase_mapping": "A724", "symbol": "\uA725" }, 42791: { "value": "A727", "name": "LATIN SMALL LETTER HENG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A726", "lowercase_mapping": "", "titlecase_mapping": "A726", "symbol": "\uA727" }, 42793: { "value": "A729", "name": "LATIN SMALL LETTER TZ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A728", "lowercase_mapping": "", "titlecase_mapping": "A728", "symbol": "\uA729" }, 42795: { "value": "A72B", "name": "LATIN SMALL LETTER TRESILLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A72A", "lowercase_mapping": "", "titlecase_mapping": "A72A", "symbol": "\uA72B" }, 42797: { "value": "A72D", "name": "LATIN SMALL LETTER CUATRILLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A72C", "lowercase_mapping": "", "titlecase_mapping": "A72C", "symbol": "\uA72D" }, 42799: { "value": "A72F", "name": "LATIN SMALL LETTER CUATRILLO WITH COMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A72E", "lowercase_mapping": "", "titlecase_mapping": "A72E", "symbol": "\uA72F" }, 42800: { "value": "A730", "name": "LATIN LETTER SMALL CAPITAL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA730" }, 42801: { "value": "A731", "name": "LATIN LETTER SMALL CAPITAL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA731" }, 42803: { "value": "A733", "name": "LATIN SMALL LETTER AA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A732", "lowercase_mapping": "", "titlecase_mapping": "A732", "symbol": "\uA733" }, 42805: { "value": "A735", "name": "LATIN SMALL LETTER AO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A734", "lowercase_mapping": "", "titlecase_mapping": "A734", "symbol": "\uA735" }, 42807: { "value": "A737", "name": "LATIN SMALL LETTER AU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A736", "lowercase_mapping": "", "titlecase_mapping": "A736", "symbol": "\uA737" }, 42809: { "value": "A739", "name": "LATIN SMALL LETTER AV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A738", "lowercase_mapping": "", "titlecase_mapping": "A738", "symbol": "\uA739" }, 42811: { "value": "A73B", "name": "LATIN SMALL LETTER AV WITH HORIZONTAL BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A73A", "lowercase_mapping": "", "titlecase_mapping": "A73A", "symbol": "\uA73B" }, 42813: { "value": "A73D", "name": "LATIN SMALL LETTER AY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A73C", "lowercase_mapping": "", "titlecase_mapping": "A73C", "symbol": "\uA73D" }, 42815: { "value": "A73F", "name": "LATIN SMALL LETTER REVERSED C WITH DOT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A73E", "lowercase_mapping": "", "titlecase_mapping": "A73E", "symbol": "\uA73F" }, 42817: { "value": "A741", "name": "LATIN SMALL LETTER K WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A740", "lowercase_mapping": "", "titlecase_mapping": "A740", "symbol": "\uA741" }, 42819: { "value": "A743", "name": "LATIN SMALL LETTER K WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A742", "lowercase_mapping": "", "titlecase_mapping": "A742", "symbol": "\uA743" }, 42821: { "value": "A745", "name": "LATIN SMALL LETTER K WITH STROKE AND DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A744", "lowercase_mapping": "", "titlecase_mapping": "A744", "symbol": "\uA745" }, 42823: { "value": "A747", "name": "LATIN SMALL LETTER BROKEN L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A746", "lowercase_mapping": "", "titlecase_mapping": "A746", "symbol": "\uA747" }, 42825: { "value": "A749", "name": "LATIN SMALL LETTER L WITH HIGH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A748", "lowercase_mapping": "", "titlecase_mapping": "A748", "symbol": "\uA749" }, 42827: { "value": "A74B", "name": "LATIN SMALL LETTER O WITH LONG STROKE OVERLAY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A74A", "lowercase_mapping": "", "titlecase_mapping": "A74A", "symbol": "\uA74B" }, 42829: { "value": "A74D", "name": "LATIN SMALL LETTER O WITH LOOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A74C", "lowercase_mapping": "", "titlecase_mapping": "A74C", "symbol": "\uA74D" }, 42831: { "value": "A74F", "name": "LATIN SMALL LETTER OO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A74E", "lowercase_mapping": "", "titlecase_mapping": "A74E", "symbol": "\uA74F" }, 42833: { "value": "A751", "name": "LATIN SMALL LETTER P WITH STROKE THROUGH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A750", "lowercase_mapping": "", "titlecase_mapping": "A750", "symbol": "\uA751" }, 42835: { "value": "A753", "name": "LATIN SMALL LETTER P WITH FLOURISH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A752", "lowercase_mapping": "", "titlecase_mapping": "A752", "symbol": "\uA753" }, 42837: { "value": "A755", "name": "LATIN SMALL LETTER P WITH SQUIRREL TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A754", "lowercase_mapping": "", "titlecase_mapping": "A754", "symbol": "\uA755" }, 42839: { "value": "A757", "name": "LATIN SMALL LETTER Q WITH STROKE THROUGH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A756", "lowercase_mapping": "", "titlecase_mapping": "A756", "symbol": "\uA757" }, 42841: { "value": "A759", "name": "LATIN SMALL LETTER Q WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A758", "lowercase_mapping": "", "titlecase_mapping": "A758", "symbol": "\uA759" }, 42843: { "value": "A75B", "name": "LATIN SMALL LETTER R ROTUNDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A75A", "lowercase_mapping": "", "titlecase_mapping": "A75A", "symbol": "\uA75B" }, 42845: { "value": "A75D", "name": "LATIN SMALL LETTER RUM ROTUNDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A75C", "lowercase_mapping": "", "titlecase_mapping": "A75C", "symbol": "\uA75D" }, 42847: { "value": "A75F", "name": "LATIN SMALL LETTER V WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A75E", "lowercase_mapping": "", "titlecase_mapping": "A75E", "symbol": "\uA75F" }, 42849: { "value": "A761", "name": "LATIN SMALL LETTER VY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A760", "lowercase_mapping": "", "titlecase_mapping": "A760", "symbol": "\uA761" }, 42851: { "value": "A763", "name": "LATIN SMALL LETTER VISIGOTHIC Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A762", "lowercase_mapping": "", "titlecase_mapping": "A762", "symbol": "\uA763" }, 42853: { "value": "A765", "name": "LATIN SMALL LETTER THORN WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A764", "lowercase_mapping": "", "titlecase_mapping": "A764", "symbol": "\uA765" }, 42855: { "value": "A767", "name": "LATIN SMALL LETTER THORN WITH STROKE THROUGH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A766", "lowercase_mapping": "", "titlecase_mapping": "A766", "symbol": "\uA767" }, 42857: { "value": "A769", "name": "LATIN SMALL LETTER VEND", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A768", "lowercase_mapping": "", "titlecase_mapping": "A768", "symbol": "\uA769" }, 42859: { "value": "A76B", "name": "LATIN SMALL LETTER ET", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A76A", "lowercase_mapping": "", "titlecase_mapping": "A76A", "symbol": "\uA76B" }, 42861: { "value": "A76D", "name": "LATIN SMALL LETTER IS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A76C", "lowercase_mapping": "", "titlecase_mapping": "A76C", "symbol": "\uA76D" }, 42863: { "value": "A76F", "name": "LATIN SMALL LETTER CON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A76E", "lowercase_mapping": "", "titlecase_mapping": "A76E", "symbol": "\uA76F" }, 42865: { "value": "A771", "name": "LATIN SMALL LETTER DUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA771" }, 42866: { "value": "A772", "name": "LATIN SMALL LETTER LUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA772" }, 42867: { "value": "A773", "name": "LATIN SMALL LETTER MUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA773" }, 42868: { "value": "A774", "name": "LATIN SMALL LETTER NUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA774" }, 42869: { "value": "A775", "name": "LATIN SMALL LETTER RUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA775" }, 42870: { "value": "A776", "name": "LATIN LETTER SMALL CAPITAL RUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA776" }, 42871: { "value": "A777", "name": "LATIN SMALL LETTER TUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA777" }, 42872: { "value": "A778", "name": "LATIN SMALL LETTER UM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA778" }, 42874: { "value": "A77A", "name": "LATIN SMALL LETTER INSULAR D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A779", "lowercase_mapping": "", "titlecase_mapping": "A779", "symbol": "\uA77A" }, 42876: { "value": "A77C", "name": "LATIN SMALL LETTER INSULAR F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A77B", "lowercase_mapping": "", "titlecase_mapping": "A77B", "symbol": "\uA77C" }, 42879: { "value": "A77F", "name": "LATIN SMALL LETTER TURNED INSULAR G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A77E", "lowercase_mapping": "", "titlecase_mapping": "A77E", "symbol": "\uA77F" }, 42881: { "value": "A781", "name": "LATIN SMALL LETTER TURNED L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A780", "lowercase_mapping": "", "titlecase_mapping": "A780", "symbol": "\uA781" }, 42883: { "value": "A783", "name": "LATIN SMALL LETTER INSULAR R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A782", "lowercase_mapping": "", "titlecase_mapping": "A782", "symbol": "\uA783" }, 42885: { "value": "A785", "name": "LATIN SMALL LETTER INSULAR S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A784", "lowercase_mapping": "", "titlecase_mapping": "A784", "symbol": "\uA785" }, 42887: { "value": "A787", "name": "LATIN SMALL LETTER INSULAR T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A786", "lowercase_mapping": "", "titlecase_mapping": "A786", "symbol": "\uA787" }, 42892: { "value": "A78C", "name": "LATIN SMALL LETTER SALTILLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A78B", "lowercase_mapping": "", "titlecase_mapping": "A78B", "symbol": "\uA78C" }, 42894: { "value": "A78E", "name": "LATIN SMALL LETTER L WITH RETROFLEX HOOK AND BELT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA78E" }, 42897: { "value": "A791", "name": "LATIN SMALL LETTER N WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A790", "lowercase_mapping": "", "titlecase_mapping": "A790", "symbol": "\uA791" }, 42899: { "value": "A793", "name": "LATIN SMALL LETTER C WITH BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A792", "lowercase_mapping": "", "titlecase_mapping": "A792", "symbol": "\uA793" }, 42900: { "value": "A794", "name": "LATIN SMALL LETTER C WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA794" }, 42901: { "value": "A795", "name": "LATIN SMALL LETTER H WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA795" }, 42903: { "value": "A797", "name": "LATIN SMALL LETTER B WITH FLOURISH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A796", "lowercase_mapping": "", "titlecase_mapping": "A796", "symbol": "\uA797" }, 42905: { "value": "A799", "name": "LATIN SMALL LETTER F WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A798", "lowercase_mapping": "", "titlecase_mapping": "A798", "symbol": "\uA799" }, 42907: { "value": "A79B", "name": "LATIN SMALL LETTER VOLAPUK AE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A79A", "lowercase_mapping": "", "titlecase_mapping": "A79A", "symbol": "\uA79B" }, 42909: { "value": "A79D", "name": "LATIN SMALL LETTER VOLAPUK OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A79C", "lowercase_mapping": "", "titlecase_mapping": "A79C", "symbol": "\uA79D" }, 42911: { "value": "A79F", "name": "LATIN SMALL LETTER VOLAPUK UE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A79E", "lowercase_mapping": "", "titlecase_mapping": "A79E", "symbol": "\uA79F" }, 42913: { "value": "A7A1", "name": "LATIN SMALL LETTER G WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A0", "lowercase_mapping": "", "titlecase_mapping": "A7A0", "symbol": "\uA7A1" }, 42915: { "value": "A7A3", "name": "LATIN SMALL LETTER K WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A2", "lowercase_mapping": "", "titlecase_mapping": "A7A2", "symbol": "\uA7A3" }, 42917: { "value": "A7A5", "name": "LATIN SMALL LETTER N WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A4", "lowercase_mapping": "", "titlecase_mapping": "A7A4", "symbol": "\uA7A5" }, 42919: { "value": "A7A7", "name": "LATIN SMALL LETTER R WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A6", "lowercase_mapping": "", "titlecase_mapping": "A7A6", "symbol": "\uA7A7" }, 42921: { "value": "A7A9", "name": "LATIN SMALL LETTER S WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A8", "lowercase_mapping": "", "titlecase_mapping": "A7A8", "symbol": "\uA7A9" }, 42933: { "value": "A7B5", "name": "LATIN SMALL LETTER BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B4", "lowercase_mapping": "", "titlecase_mapping": "A7B4", "symbol": "\uA7B5" }, 42935: { "value": "A7B7", "name": "LATIN SMALL LETTER OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B6", "lowercase_mapping": "", "titlecase_mapping": "A7B6", "symbol": "\uA7B7" }, 43002: { "value": "A7FA", "name": "LATIN LETTER SMALL CAPITAL TURNED M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA7FA" }, 43824: { "value": "AB30", "name": "LATIN SMALL LETTER BARRED ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB30" }, 43825: { "value": "AB31", "name": "LATIN SMALL LETTER A REVERSED-SCHWA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB31" }, 43826: { "value": "AB32", "name": "LATIN SMALL LETTER BLACKLETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB32" }, 43827: { "value": "AB33", "name": "LATIN SMALL LETTER BARRED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB33" }, 43828: { "value": "AB34", "name": "LATIN SMALL LETTER E WITH FLOURISH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB34" }, 43829: { "value": "AB35", "name": "LATIN SMALL LETTER LENIS F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB35" }, 43830: { "value": "AB36", "name": "LATIN SMALL LETTER SCRIPT G WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB36" }, 43831: { "value": "AB37", "name": "LATIN SMALL LETTER L WITH INVERTED LAZY S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB37" }, 43832: { "value": "AB38", "name": "LATIN SMALL LETTER L WITH DOUBLE MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB38" }, 43833: { "value": "AB39", "name": "LATIN SMALL LETTER L WITH MIDDLE RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB39" }, 43834: { "value": "AB3A", "name": "LATIN SMALL LETTER M WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3A" }, 43835: { "value": "AB3B", "name": "LATIN SMALL LETTER N WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3B" }, 43836: { "value": "AB3C", "name": "LATIN SMALL LETTER ENG WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3C" }, 43837: { "value": "AB3D", "name": "LATIN SMALL LETTER BLACKLETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3D" }, 43838: { "value": "AB3E", "name": "LATIN SMALL LETTER BLACKLETTER O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3E" }, 43839: { "value": "AB3F", "name": "LATIN SMALL LETTER OPEN O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3F" }, 43840: { "value": "AB40", "name": "LATIN SMALL LETTER INVERTED OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB40" }, 43841: { "value": "AB41", "name": "LATIN SMALL LETTER TURNED OE WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB41" }, 43842: { "value": "AB42", "name": "LATIN SMALL LETTER TURNED OE WITH HORIZONTAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB42" }, 43843: { "value": "AB43", "name": "LATIN SMALL LETTER TURNED O OPEN-O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB43" }, 43844: { "value": "AB44", "name": "LATIN SMALL LETTER TURNED O OPEN-O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB44" }, 43845: { "value": "AB45", "name": "LATIN SMALL LETTER STIRRUP R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB45" }, 43846: { "value": "AB46", "name": "LATIN LETTER SMALL CAPITAL R WITH RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB46" }, 43847: { "value": "AB47", "name": "LATIN SMALL LETTER R WITHOUT HANDLE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB47" }, 43848: { "value": "AB48", "name": "LATIN SMALL LETTER DOUBLE R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB48" }, 43849: { "value": "AB49", "name": "LATIN SMALL LETTER R WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB49" }, 43850: { "value": "AB4A", "name": "LATIN SMALL LETTER DOUBLE R WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4A" }, 43851: { "value": "AB4B", "name": "LATIN SMALL LETTER SCRIPT R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4B" }, 43852: { "value": "AB4C", "name": "LATIN SMALL LETTER SCRIPT R WITH RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4C" }, 43853: { "value": "AB4D", "name": "LATIN SMALL LETTER BASELINE ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4D" }, 43854: { "value": "AB4E", "name": "LATIN SMALL LETTER U WITH SHORT RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4E" }, 43855: { "value": "AB4F", "name": "LATIN SMALL LETTER U BAR WITH SHORT RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4F" }, 43856: { "value": "AB50", "name": "LATIN SMALL LETTER UI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB50" }, 43857: { "value": "AB51", "name": "LATIN SMALL LETTER TURNED UI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB51" }, 43858: { "value": "AB52", "name": "LATIN SMALL LETTER U WITH LEFT HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB52" }, 43859: { "value": "AB53", "name": "LATIN SMALL LETTER CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B3", "lowercase_mapping": "", "titlecase_mapping": "A7B3", "symbol": "\uAB53" }, 43860: { "value": "AB54", "name": "LATIN SMALL LETTER CHI WITH LOW RIGHT RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB54" }, 43861: { "value": "AB55", "name": "LATIN SMALL LETTER CHI WITH LOW LEFT SERIF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB55" }, 43862: { "value": "AB56", "name": "LATIN SMALL LETTER X WITH LOW RIGHT RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB56" }, 43863: { "value": "AB57", "name": "LATIN SMALL LETTER X WITH LONG LEFT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB57" }, 43864: { "value": "AB58", "name": "LATIN SMALL LETTER X WITH LONG LEFT LEG AND LOW RIGHT RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB58" }, 43865: { "value": "AB59", "name": "LATIN SMALL LETTER X WITH LONG LEFT LEG WITH SERIF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB59" }, 43866: { "value": "AB5A", "name": "LATIN SMALL LETTER Y WITH SHORT RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB5A" }, 43872: { "value": "AB60", "name": "LATIN SMALL LETTER SAKHA YAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB60" }, 43873: { "value": "AB61", "name": "LATIN SMALL LETTER IOTIFIED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB61" }, 43874: { "value": "AB62", "name": "LATIN SMALL LETTER OPEN OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB62" }, 43875: { "value": "AB63", "name": "LATIN SMALL LETTER UO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB63" }, 43876: { "value": "AB64", "name": "LATIN SMALL LETTER INVERTED ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB64" }, 43877: { "value": "AB65", "name": "GREEK LETTER SMALL CAPITAL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB65" }, 43888: { "value": "AB70", "name": "CHEROKEE SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A0", "lowercase_mapping": "", "titlecase_mapping": "13A0", "symbol": "\uAB70" }, 43889: { "value": "AB71", "name": "CHEROKEE SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A1", "lowercase_mapping": "", "titlecase_mapping": "13A1", "symbol": "\uAB71" }, 43890: { "value": "AB72", "name": "CHEROKEE SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A2", "lowercase_mapping": "", "titlecase_mapping": "13A2", "symbol": "\uAB72" }, 43891: { "value": "AB73", "name": "CHEROKEE SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A3", "lowercase_mapping": "", "titlecase_mapping": "13A3", "symbol": "\uAB73" }, 43892: { "value": "AB74", "name": "CHEROKEE SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A4", "lowercase_mapping": "", "titlecase_mapping": "13A4", "symbol": "\uAB74" }, 43893: { "value": "AB75", "name": "CHEROKEE SMALL LETTER V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A5", "lowercase_mapping": "", "titlecase_mapping": "13A5", "symbol": "\uAB75" }, 43894: { "value": "AB76", "name": "CHEROKEE SMALL LETTER GA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A6", "lowercase_mapping": "", "titlecase_mapping": "13A6", "symbol": "\uAB76" }, 43895: { "value": "AB77", "name": "CHEROKEE SMALL LETTER KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A7", "lowercase_mapping": "", "titlecase_mapping": "13A7", "symbol": "\uAB77" }, 43896: { "value": "AB78", "name": "CHEROKEE SMALL LETTER GE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A8", "lowercase_mapping": "", "titlecase_mapping": "13A8", "symbol": "\uAB78" }, 43897: { "value": "AB79", "name": "CHEROKEE SMALL LETTER GI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A9", "lowercase_mapping": "", "titlecase_mapping": "13A9", "symbol": "\uAB79" }, 43898: { "value": "AB7A", "name": "CHEROKEE SMALL LETTER GO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AA", "lowercase_mapping": "", "titlecase_mapping": "13AA", "symbol": "\uAB7A" }, 43899: { "value": "AB7B", "name": "CHEROKEE SMALL LETTER GU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AB", "lowercase_mapping": "", "titlecase_mapping": "13AB", "symbol": "\uAB7B" }, 43900: { "value": "AB7C", "name": "CHEROKEE SMALL LETTER GV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AC", "lowercase_mapping": "", "titlecase_mapping": "13AC", "symbol": "\uAB7C" }, 43901: { "value": "AB7D", "name": "CHEROKEE SMALL LETTER HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AD", "lowercase_mapping": "", "titlecase_mapping": "13AD", "symbol": "\uAB7D" }, 43902: { "value": "AB7E", "name": "CHEROKEE SMALL LETTER HE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AE", "lowercase_mapping": "", "titlecase_mapping": "13AE", "symbol": "\uAB7E" }, 43903: { "value": "AB7F", "name": "CHEROKEE SMALL LETTER HI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AF", "lowercase_mapping": "", "titlecase_mapping": "13AF", "symbol": "\uAB7F" }, 43904: { "value": "AB80", "name": "CHEROKEE SMALL LETTER HO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B0", "lowercase_mapping": "", "titlecase_mapping": "13B0", "symbol": "\uAB80" }, 43905: { "value": "AB81", "name": "CHEROKEE SMALL LETTER HU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B1", "lowercase_mapping": "", "titlecase_mapping": "13B1", "symbol": "\uAB81" }, 43906: { "value": "AB82", "name": "CHEROKEE SMALL LETTER HV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B2", "lowercase_mapping": "", "titlecase_mapping": "13B2", "symbol": "\uAB82" }, 43907: { "value": "AB83", "name": "CHEROKEE SMALL LETTER LA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B3", "lowercase_mapping": "", "titlecase_mapping": "13B3", "symbol": "\uAB83" }, 43908: { "value": "AB84", "name": "CHEROKEE SMALL LETTER LE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B4", "lowercase_mapping": "", "titlecase_mapping": "13B4", "symbol": "\uAB84" }, 43909: { "value": "AB85", "name": "CHEROKEE SMALL LETTER LI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B5", "lowercase_mapping": "", "titlecase_mapping": "13B5", "symbol": "\uAB85" }, 43910: { "value": "AB86", "name": "CHEROKEE SMALL LETTER LO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B6", "lowercase_mapping": "", "titlecase_mapping": "13B6", "symbol": "\uAB86" }, 43911: { "value": "AB87", "name": "CHEROKEE SMALL LETTER LU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B7", "lowercase_mapping": "", "titlecase_mapping": "13B7", "symbol": "\uAB87" }, 43912: { "value": "AB88", "name": "CHEROKEE SMALL LETTER LV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B8", "lowercase_mapping": "", "titlecase_mapping": "13B8", "symbol": "\uAB88" }, 43913: { "value": "AB89", "name": "CHEROKEE SMALL LETTER MA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B9", "lowercase_mapping": "", "titlecase_mapping": "13B9", "symbol": "\uAB89" }, 43914: { "value": "AB8A", "name": "CHEROKEE SMALL LETTER ME", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BA", "lowercase_mapping": "", "titlecase_mapping": "13BA", "symbol": "\uAB8A" }, 43915: { "value": "AB8B", "name": "CHEROKEE SMALL LETTER MI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BB", "lowercase_mapping": "", "titlecase_mapping": "13BB", "symbol": "\uAB8B" }, 43916: { "value": "AB8C", "name": "CHEROKEE SMALL LETTER MO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BC", "lowercase_mapping": "", "titlecase_mapping": "13BC", "symbol": "\uAB8C" }, 43917: { "value": "AB8D", "name": "CHEROKEE SMALL LETTER MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BD", "lowercase_mapping": "", "titlecase_mapping": "13BD", "symbol": "\uAB8D" }, 43918: { "value": "AB8E", "name": "CHEROKEE SMALL LETTER NA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BE", "lowercase_mapping": "", "titlecase_mapping": "13BE", "symbol": "\uAB8E" }, 43919: { "value": "AB8F", "name": "CHEROKEE SMALL LETTER HNA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BF", "lowercase_mapping": "", "titlecase_mapping": "13BF", "symbol": "\uAB8F" }, 43920: { "value": "AB90", "name": "CHEROKEE SMALL LETTER NAH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C0", "lowercase_mapping": "", "titlecase_mapping": "13C0", "symbol": "\uAB90" }, 43921: { "value": "AB91", "name": "CHEROKEE SMALL LETTER NE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C1", "lowercase_mapping": "", "titlecase_mapping": "13C1", "symbol": "\uAB91" }, 43922: { "value": "AB92", "name": "CHEROKEE SMALL LETTER NI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C2", "lowercase_mapping": "", "titlecase_mapping": "13C2", "symbol": "\uAB92" }, 43923: { "value": "AB93", "name": "CHEROKEE SMALL LETTER NO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C3", "lowercase_mapping": "", "titlecase_mapping": "13C3", "symbol": "\uAB93" }, 43924: { "value": "AB94", "name": "CHEROKEE SMALL LETTER NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C4", "lowercase_mapping": "", "titlecase_mapping": "13C4", "symbol": "\uAB94" }, 43925: { "value": "AB95", "name": "CHEROKEE SMALL LETTER NV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C5", "lowercase_mapping": "", "titlecase_mapping": "13C5", "symbol": "\uAB95" }, 43926: { "value": "AB96", "name": "CHEROKEE SMALL LETTER QUA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C6", "lowercase_mapping": "", "titlecase_mapping": "13C6", "symbol": "\uAB96" }, 43927: { "value": "AB97", "name": "CHEROKEE SMALL LETTER QUE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C7", "lowercase_mapping": "", "titlecase_mapping": "13C7", "symbol": "\uAB97" }, 43928: { "value": "AB98", "name": "CHEROKEE SMALL LETTER QUI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C8", "lowercase_mapping": "", "titlecase_mapping": "13C8", "symbol": "\uAB98" }, 43929: { "value": "AB99", "name": "CHEROKEE SMALL LETTER QUO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C9", "lowercase_mapping": "", "titlecase_mapping": "13C9", "symbol": "\uAB99" }, 43930: { "value": "AB9A", "name": "CHEROKEE SMALL LETTER QUU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CA", "lowercase_mapping": "", "titlecase_mapping": "13CA", "symbol": "\uAB9A" }, 43931: { "value": "AB9B", "name": "CHEROKEE SMALL LETTER QUV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CB", "lowercase_mapping": "", "titlecase_mapping": "13CB", "symbol": "\uAB9B" }, 43932: { "value": "AB9C", "name": "CHEROKEE SMALL LETTER SA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CC", "lowercase_mapping": "", "titlecase_mapping": "13CC", "symbol": "\uAB9C" }, 43933: { "value": "AB9D", "name": "CHEROKEE SMALL LETTER S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CD", "lowercase_mapping": "", "titlecase_mapping": "13CD", "symbol": "\uAB9D" }, 43934: { "value": "AB9E", "name": "CHEROKEE SMALL LETTER SE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CE", "lowercase_mapping": "", "titlecase_mapping": "13CE", "symbol": "\uAB9E" }, 43935: { "value": "AB9F", "name": "CHEROKEE SMALL LETTER SI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CF", "lowercase_mapping": "", "titlecase_mapping": "13CF", "symbol": "\uAB9F" }, 43936: { "value": "ABA0", "name": "CHEROKEE SMALL LETTER SO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D0", "lowercase_mapping": "", "titlecase_mapping": "13D0", "symbol": "\uABA0" }, 43937: { "value": "ABA1", "name": "CHEROKEE SMALL LETTER SU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D1", "lowercase_mapping": "", "titlecase_mapping": "13D1", "symbol": "\uABA1" }, 43938: { "value": "ABA2", "name": "CHEROKEE SMALL LETTER SV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D2", "lowercase_mapping": "", "titlecase_mapping": "13D2", "symbol": "\uABA2" }, 43939: { "value": "ABA3", "name": "CHEROKEE SMALL LETTER DA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D3", "lowercase_mapping": "", "titlecase_mapping": "13D3", "symbol": "\uABA3" }, 43940: { "value": "ABA4", "name": "CHEROKEE SMALL LETTER TA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D4", "lowercase_mapping": "", "titlecase_mapping": "13D4", "symbol": "\uABA4" }, 43941: { "value": "ABA5", "name": "CHEROKEE SMALL LETTER DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D5", "lowercase_mapping": "", "titlecase_mapping": "13D5", "symbol": "\uABA5" }, 43942: { "value": "ABA6", "name": "CHEROKEE SMALL LETTER TE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D6", "lowercase_mapping": "", "titlecase_mapping": "13D6", "symbol": "\uABA6" }, 43943: { "value": "ABA7", "name": "CHEROKEE SMALL LETTER DI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D7", "lowercase_mapping": "", "titlecase_mapping": "13D7", "symbol": "\uABA7" }, 43944: { "value": "ABA8", "name": "CHEROKEE SMALL LETTER TI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D8", "lowercase_mapping": "", "titlecase_mapping": "13D8", "symbol": "\uABA8" }, 43945: { "value": "ABA9", "name": "CHEROKEE SMALL LETTER DO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D9", "lowercase_mapping": "", "titlecase_mapping": "13D9", "symbol": "\uABA9" }, 43946: { "value": "ABAA", "name": "CHEROKEE SMALL LETTER DU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DA", "lowercase_mapping": "", "titlecase_mapping": "13DA", "symbol": "\uABAA" }, 43947: { "value": "ABAB", "name": "CHEROKEE SMALL LETTER DV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DB", "lowercase_mapping": "", "titlecase_mapping": "13DB", "symbol": "\uABAB" }, 43948: { "value": "ABAC", "name": "CHEROKEE SMALL LETTER DLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DC", "lowercase_mapping": "", "titlecase_mapping": "13DC", "symbol": "\uABAC" }, 43949: { "value": "ABAD", "name": "CHEROKEE SMALL LETTER TLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DD", "lowercase_mapping": "", "titlecase_mapping": "13DD", "symbol": "\uABAD" }, 43950: { "value": "ABAE", "name": "CHEROKEE SMALL LETTER TLE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DE", "lowercase_mapping": "", "titlecase_mapping": "13DE", "symbol": "\uABAE" }, 43951: { "value": "ABAF", "name": "CHEROKEE SMALL LETTER TLI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DF", "lowercase_mapping": "", "titlecase_mapping": "13DF", "symbol": "\uABAF" }, 43952: { "value": "ABB0", "name": "CHEROKEE SMALL LETTER TLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E0", "lowercase_mapping": "", "titlecase_mapping": "13E0", "symbol": "\uABB0" }, 43953: { "value": "ABB1", "name": "CHEROKEE SMALL LETTER TLU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E1", "lowercase_mapping": "", "titlecase_mapping": "13E1", "symbol": "\uABB1" }, 43954: { "value": "ABB2", "name": "CHEROKEE SMALL LETTER TLV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E2", "lowercase_mapping": "", "titlecase_mapping": "13E2", "symbol": "\uABB2" }, 43955: { "value": "ABB3", "name": "CHEROKEE SMALL LETTER TSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E3", "lowercase_mapping": "", "titlecase_mapping": "13E3", "symbol": "\uABB3" }, 43956: { "value": "ABB4", "name": "CHEROKEE SMALL LETTER TSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E4", "lowercase_mapping": "", "titlecase_mapping": "13E4", "symbol": "\uABB4" }, 43957: { "value": "ABB5", "name": "CHEROKEE SMALL LETTER TSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E5", "lowercase_mapping": "", "titlecase_mapping": "13E5", "symbol": "\uABB5" }, 43958: { "value": "ABB6", "name": "CHEROKEE SMALL LETTER TSO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E6", "lowercase_mapping": "", "titlecase_mapping": "13E6", "symbol": "\uABB6" }, 43959: { "value": "ABB7", "name": "CHEROKEE SMALL LETTER TSU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E7", "lowercase_mapping": "", "titlecase_mapping": "13E7", "symbol": "\uABB7" }, 43960: { "value": "ABB8", "name": "CHEROKEE SMALL LETTER TSV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E8", "lowercase_mapping": "", "titlecase_mapping": "13E8", "symbol": "\uABB8" }, 43961: { "value": "ABB9", "name": "CHEROKEE SMALL LETTER WA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E9", "lowercase_mapping": "", "titlecase_mapping": "13E9", "symbol": "\uABB9" }, 43962: { "value": "ABBA", "name": "CHEROKEE SMALL LETTER WE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EA", "lowercase_mapping": "", "titlecase_mapping": "13EA", "symbol": "\uABBA" }, 43963: { "value": "ABBB", "name": "CHEROKEE SMALL LETTER WI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EB", "lowercase_mapping": "", "titlecase_mapping": "13EB", "symbol": "\uABBB" }, 43964: { "value": "ABBC", "name": "CHEROKEE SMALL LETTER WO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EC", "lowercase_mapping": "", "titlecase_mapping": "13EC", "symbol": "\uABBC" }, 43965: { "value": "ABBD", "name": "CHEROKEE SMALL LETTER WU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13ED", "lowercase_mapping": "", "titlecase_mapping": "13ED", "symbol": "\uABBD" }, 43966: { "value": "ABBE", "name": "CHEROKEE SMALL LETTER WV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EE", "lowercase_mapping": "", "titlecase_mapping": "13EE", "symbol": "\uABBE" }, 43967: { "value": "ABBF", "name": "CHEROKEE SMALL LETTER YA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EF", "lowercase_mapping": "", "titlecase_mapping": "13EF", "symbol": "\uABBF" }, 64256: { "value": "FB00", "name": "LATIN SMALL LIGATURE FF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB00" }, 64257: { "value": "FB01", "name": "LATIN SMALL LIGATURE FI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB01" }, 64258: { "value": "FB02", "name": "LATIN SMALL LIGATURE FL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB02" }, 64259: { "value": "FB03", "name": "LATIN SMALL LIGATURE FFI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 0066 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB03" }, 64260: { "value": "FB04", "name": "LATIN SMALL LIGATURE FFL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 0066 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB04" }, 64261: { "value": "FB05", "name": "LATIN SMALL LIGATURE LONG S T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 017F 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB05" }, 64262: { "value": "FB06", "name": "LATIN SMALL LIGATURE ST", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB06" }, 64275: { "value": "FB13", "name": "ARMENIAN SMALL LIGATURE MEN NOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0574 0576", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB13" }, 64276: { "value": "FB14", "name": "ARMENIAN SMALL LIGATURE MEN ECH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0574 0565", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB14" }, 64277: { "value": "FB15", "name": "ARMENIAN SMALL LIGATURE MEN INI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0574 056B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB15" }, 64278: { "value": "FB16", "name": "ARMENIAN SMALL LIGATURE VEW NOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 057E 0576", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB16" }, 64279: { "value": "FB17", "name": "ARMENIAN SMALL LIGATURE MEN XEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0574 056D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB17" }, 65345: { "value": "FF41", "name": "FULLWIDTH LATIN SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF21", "lowercase_mapping": "", "titlecase_mapping": "FF21", "symbol": "\uFF41" }, 65346: { "value": "FF42", "name": "FULLWIDTH LATIN SMALL LETTER B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF22", "lowercase_mapping": "", "titlecase_mapping": "FF22", "symbol": "\uFF42" }, 65347: { "value": "FF43", "name": "FULLWIDTH LATIN SMALL LETTER C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF23", "lowercase_mapping": "", "titlecase_mapping": "FF23", "symbol": "\uFF43" }, 65348: { "value": "FF44", "name": "FULLWIDTH LATIN SMALL LETTER D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF24", "lowercase_mapping": "", "titlecase_mapping": "FF24", "symbol": "\uFF44" }, 65349: { "value": "FF45", "name": "FULLWIDTH LATIN SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF25", "lowercase_mapping": "", "titlecase_mapping": "FF25", "symbol": "\uFF45" }, 65350: { "value": "FF46", "name": "FULLWIDTH LATIN SMALL LETTER F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF26", "lowercase_mapping": "", "titlecase_mapping": "FF26", "symbol": "\uFF46" }, 65351: { "value": "FF47", "name": "FULLWIDTH LATIN SMALL LETTER G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF27", "lowercase_mapping": "", "titlecase_mapping": "FF27", "symbol": "\uFF47" }, 65352: { "value": "FF48", "name": "FULLWIDTH LATIN SMALL LETTER H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF28", "lowercase_mapping": "", "titlecase_mapping": "FF28", "symbol": "\uFF48" }, 65353: { "value": "FF49", "name": "FULLWIDTH LATIN SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF29", "lowercase_mapping": "", "titlecase_mapping": "FF29", "symbol": "\uFF49" }, 65354: { "value": "FF4A", "name": "FULLWIDTH LATIN SMALL LETTER J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2A", "lowercase_mapping": "", "titlecase_mapping": "FF2A", "symbol": "\uFF4A" }, 65355: { "value": "FF4B", "name": "FULLWIDTH LATIN SMALL LETTER K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2B", "lowercase_mapping": "", "titlecase_mapping": "FF2B", "symbol": "\uFF4B" }, 65356: { "value": "FF4C", "name": "FULLWIDTH LATIN SMALL LETTER L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2C", "lowercase_mapping": "", "titlecase_mapping": "FF2C", "symbol": "\uFF4C" }, 65357: { "value": "FF4D", "name": "FULLWIDTH LATIN SMALL LETTER M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2D", "lowercase_mapping": "", "titlecase_mapping": "FF2D", "symbol": "\uFF4D" }, 65358: { "value": "FF4E", "name": "FULLWIDTH LATIN SMALL LETTER N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2E", "lowercase_mapping": "", "titlecase_mapping": "FF2E", "symbol": "\uFF4E" }, 65359: { "value": "FF4F", "name": "FULLWIDTH LATIN SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2F", "lowercase_mapping": "", "titlecase_mapping": "FF2F", "symbol": "\uFF4F" }, 65360: { "value": "FF50", "name": "FULLWIDTH LATIN SMALL LETTER P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF30", "lowercase_mapping": "", "titlecase_mapping": "FF30", "symbol": "\uFF50" }, 65361: { "value": "FF51", "name": "FULLWIDTH LATIN SMALL LETTER Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF31", "lowercase_mapping": "", "titlecase_mapping": "FF31", "symbol": "\uFF51" }, 65362: { "value": "FF52", "name": "FULLWIDTH LATIN SMALL LETTER R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF32", "lowercase_mapping": "", "titlecase_mapping": "FF32", "symbol": "\uFF52" }, 65363: { "value": "FF53", "name": "FULLWIDTH LATIN SMALL LETTER S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF33", "lowercase_mapping": "", "titlecase_mapping": "FF33", "symbol": "\uFF53" }, 65364: { "value": "FF54", "name": "FULLWIDTH LATIN SMALL LETTER T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF34", "lowercase_mapping": "", "titlecase_mapping": "FF34", "symbol": "\uFF54" }, 65365: { "value": "FF55", "name": "FULLWIDTH LATIN SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF35", "lowercase_mapping": "", "titlecase_mapping": "FF35", "symbol": "\uFF55" }, 65366: { "value": "FF56", "name": "FULLWIDTH LATIN SMALL LETTER V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF36", "lowercase_mapping": "", "titlecase_mapping": "FF36", "symbol": "\uFF56" }, 65367: { "value": "FF57", "name": "FULLWIDTH LATIN SMALL LETTER W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF37", "lowercase_mapping": "", "titlecase_mapping": "FF37", "symbol": "\uFF57" }, 65368: { "value": "FF58", "name": "FULLWIDTH LATIN SMALL LETTER X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF38", "lowercase_mapping": "", "titlecase_mapping": "FF38", "symbol": "\uFF58" }, 65369: { "value": "FF59", "name": "FULLWIDTH LATIN SMALL LETTER Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF39", "lowercase_mapping": "", "titlecase_mapping": "FF39", "symbol": "\uFF59" }, 65370: { "value": "FF5A", "name": "FULLWIDTH LATIN SMALL LETTER Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF3A", "lowercase_mapping": "", "titlecase_mapping": "FF3A", "symbol": "\uFF5A" }, 66600: { "value": "10428", "name": "DESERET SMALL LETTER LONG I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10400", "lowercase_mapping": "", "titlecase_mapping": "10400", "symbol": "\u0428" }, 66601: { "value": "10429", "name": "DESERET SMALL LETTER LONG E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10401", "lowercase_mapping": "", "titlecase_mapping": "10401", "symbol": "\u0429" }, 66602: { "value": "1042A", "name": "DESERET SMALL LETTER LONG A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10402", "lowercase_mapping": "", "titlecase_mapping": "10402", "symbol": "\u042A" }, 66603: { "value": "1042B", "name": "DESERET SMALL LETTER LONG AH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10403", "lowercase_mapping": "", "titlecase_mapping": "10403", "symbol": "\u042B" }, 66604: { "value": "1042C", "name": "DESERET SMALL LETTER LONG O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10404", "lowercase_mapping": "", "titlecase_mapping": "10404", "symbol": "\u042C" }, 66605: { "value": "1042D", "name": "DESERET SMALL LETTER LONG OO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10405", "lowercase_mapping": "", "titlecase_mapping": "10405", "symbol": "\u042D" }, 66606: { "value": "1042E", "name": "DESERET SMALL LETTER SHORT I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10406", "lowercase_mapping": "", "titlecase_mapping": "10406", "symbol": "\u042E" }, 66607: { "value": "1042F", "name": "DESERET SMALL LETTER SHORT E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10407", "lowercase_mapping": "", "titlecase_mapping": "10407", "symbol": "\u042F" }, 66608: { "value": "10430", "name": "DESERET SMALL LETTER SHORT A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10408", "lowercase_mapping": "", "titlecase_mapping": "10408", "symbol": "\u0430" }, 66609: { "value": "10431", "name": "DESERET SMALL LETTER SHORT AH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10409", "lowercase_mapping": "", "titlecase_mapping": "10409", "symbol": "\u0431" }, 66610: { "value": "10432", "name": "DESERET SMALL LETTER SHORT O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040A", "lowercase_mapping": "", "titlecase_mapping": "1040A", "symbol": "\u0432" }, 66611: { "value": "10433", "name": "DESERET SMALL LETTER SHORT OO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040B", "lowercase_mapping": "", "titlecase_mapping": "1040B", "symbol": "\u0433" }, 66612: { "value": "10434", "name": "DESERET SMALL LETTER AY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040C", "lowercase_mapping": "", "titlecase_mapping": "1040C", "symbol": "\u0434" }, 66613: { "value": "10435", "name": "DESERET SMALL LETTER OW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040D", "lowercase_mapping": "", "titlecase_mapping": "1040D", "symbol": "\u0435" }, 66614: { "value": "10436", "name": "DESERET SMALL LETTER WU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040E", "lowercase_mapping": "", "titlecase_mapping": "1040E", "symbol": "\u0436" }, 66615: { "value": "10437", "name": "DESERET SMALL LETTER YEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040F", "lowercase_mapping": "", "titlecase_mapping": "1040F", "symbol": "\u0437" }, 66616: { "value": "10438", "name": "DESERET SMALL LETTER H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10410", "lowercase_mapping": "", "titlecase_mapping": "10410", "symbol": "\u0438" }, 66617: { "value": "10439", "name": "DESERET SMALL LETTER PEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10411", "lowercase_mapping": "", "titlecase_mapping": "10411", "symbol": "\u0439" }, 66618: { "value": "1043A", "name": "DESERET SMALL LETTER BEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10412", "lowercase_mapping": "", "titlecase_mapping": "10412", "symbol": "\u043A" }, 66619: { "value": "1043B", "name": "DESERET SMALL LETTER TEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10413", "lowercase_mapping": "", "titlecase_mapping": "10413", "symbol": "\u043B" }, 66620: { "value": "1043C", "name": "DESERET SMALL LETTER DEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10414", "lowercase_mapping": "", "titlecase_mapping": "10414", "symbol": "\u043C" }, 66621: { "value": "1043D", "name": "DESERET SMALL LETTER CHEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10415", "lowercase_mapping": "", "titlecase_mapping": "10415", "symbol": "\u043D" }, 66622: { "value": "1043E", "name": "DESERET SMALL LETTER JEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10416", "lowercase_mapping": "", "titlecase_mapping": "10416", "symbol": "\u043E" }, 66623: { "value": "1043F", "name": "DESERET SMALL LETTER KAY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10417", "lowercase_mapping": "", "titlecase_mapping": "10417", "symbol": "\u043F" }, 66624: { "value": "10440", "name": "DESERET SMALL LETTER GAY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10418", "lowercase_mapping": "", "titlecase_mapping": "10418", "symbol": "\u0440" }, 66625: { "value": "10441", "name": "DESERET SMALL LETTER EF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10419", "lowercase_mapping": "", "titlecase_mapping": "10419", "symbol": "\u0441" }, 66626: { "value": "10442", "name": "DESERET SMALL LETTER VEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041A", "lowercase_mapping": "", "titlecase_mapping": "1041A", "symbol": "\u0442" }, 66627: { "value": "10443", "name": "DESERET SMALL LETTER ETH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041B", "lowercase_mapping": "", "titlecase_mapping": "1041B", "symbol": "\u0443" }, 66628: { "value": "10444", "name": "DESERET SMALL LETTER THEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041C", "lowercase_mapping": "", "titlecase_mapping": "1041C", "symbol": "\u0444" }, 66629: { "value": "10445", "name": "DESERET SMALL LETTER ES", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041D", "lowercase_mapping": "", "titlecase_mapping": "1041D", "symbol": "\u0445" }, 66630: { "value": "10446", "name": "DESERET SMALL LETTER ZEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041E", "lowercase_mapping": "", "titlecase_mapping": "1041E", "symbol": "\u0446" }, 66631: { "value": "10447", "name": "DESERET SMALL LETTER ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041F", "lowercase_mapping": "", "titlecase_mapping": "1041F", "symbol": "\u0447" }, 66632: { "value": "10448", "name": "DESERET SMALL LETTER ZHEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10420", "lowercase_mapping": "", "titlecase_mapping": "10420", "symbol": "\u0448" }, 66633: { "value": "10449", "name": "DESERET SMALL LETTER ER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10421", "lowercase_mapping": "", "titlecase_mapping": "10421", "symbol": "\u0449" }, 66634: { "value": "1044A", "name": "DESERET SMALL LETTER EL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10422", "lowercase_mapping": "", "titlecase_mapping": "10422", "symbol": "\u044A" }, 66635: { "value": "1044B", "name": "DESERET SMALL LETTER EM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10423", "lowercase_mapping": "", "titlecase_mapping": "10423", "symbol": "\u044B" }, 66636: { "value": "1044C", "name": "DESERET SMALL LETTER EN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10424", "lowercase_mapping": "", "titlecase_mapping": "10424", "symbol": "\u044C" }, 66637: { "value": "1044D", "name": "DESERET SMALL LETTER ENG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10425", "lowercase_mapping": "", "titlecase_mapping": "10425", "symbol": "\u044D" }, 66638: { "value": "1044E", "name": "DESERET SMALL LETTER OI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10426", "lowercase_mapping": "", "titlecase_mapping": "10426", "symbol": "\u044E" }, 66639: { "value": "1044F", "name": "DESERET SMALL LETTER EW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10427", "lowercase_mapping": "", "titlecase_mapping": "10427", "symbol": "\u044F" }, 66776: { "value": "104D8", "name": "OSAGE SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B0", "lowercase_mapping": "", "titlecase_mapping": "104B0", "symbol": "\u04D8" }, 66777: { "value": "104D9", "name": "OSAGE SMALL LETTER AI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B1", "lowercase_mapping": "", "titlecase_mapping": "104B1", "symbol": "\u04D9" }, 66778: { "value": "104DA", "name": "OSAGE SMALL LETTER AIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B2", "lowercase_mapping": "", "titlecase_mapping": "104B2", "symbol": "\u04DA" }, 66779: { "value": "104DB", "name": "OSAGE SMALL LETTER AH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B3", "lowercase_mapping": "", "titlecase_mapping": "104B3", "symbol": "\u04DB" }, 66780: { "value": "104DC", "name": "OSAGE SMALL LETTER BRA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B4", "lowercase_mapping": "", "titlecase_mapping": "104B4", "symbol": "\u04DC" }, 66781: { "value": "104DD", "name": "OSAGE SMALL LETTER CHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B5", "lowercase_mapping": "", "titlecase_mapping": "104B5", "symbol": "\u04DD" }, 66782: { "value": "104DE", "name": "OSAGE SMALL LETTER EHCHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B6", "lowercase_mapping": "", "titlecase_mapping": "104B6", "symbol": "\u04DE" }, 66783: { "value": "104DF", "name": "OSAGE SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B7", "lowercase_mapping": "", "titlecase_mapping": "104B7", "symbol": "\u04DF" }, 66784: { "value": "104E0", "name": "OSAGE SMALL LETTER EIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B8", "lowercase_mapping": "", "titlecase_mapping": "104B8", "symbol": "\u04E0" }, 66785: { "value": "104E1", "name": "OSAGE SMALL LETTER HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B9", "lowercase_mapping": "", "titlecase_mapping": "104B9", "symbol": "\u04E1" }, 66786: { "value": "104E2", "name": "OSAGE SMALL LETTER HYA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BA", "lowercase_mapping": "", "titlecase_mapping": "104BA", "symbol": "\u04E2" }, 66787: { "value": "104E3", "name": "OSAGE SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BB", "lowercase_mapping": "", "titlecase_mapping": "104BB", "symbol": "\u04E3" }, 66788: { "value": "104E4", "name": "OSAGE SMALL LETTER KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BC", "lowercase_mapping": "", "titlecase_mapping": "104BC", "symbol": "\u04E4" }, 66789: { "value": "104E5", "name": "OSAGE SMALL LETTER EHKA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BD", "lowercase_mapping": "", "titlecase_mapping": "104BD", "symbol": "\u04E5" }, 66790: { "value": "104E6", "name": "OSAGE SMALL LETTER KYA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BE", "lowercase_mapping": "", "titlecase_mapping": "104BE", "symbol": "\u04E6" }, 66791: { "value": "104E7", "name": "OSAGE SMALL LETTER LA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BF", "lowercase_mapping": "", "titlecase_mapping": "104BF", "symbol": "\u04E7" }, 66792: { "value": "104E8", "name": "OSAGE SMALL LETTER MA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C0", "lowercase_mapping": "", "titlecase_mapping": "104C0", "symbol": "\u04E8" }, 66793: { "value": "104E9", "name": "OSAGE SMALL LETTER NA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C1", "lowercase_mapping": "", "titlecase_mapping": "104C1", "symbol": "\u04E9" }, 66794: { "value": "104EA", "name": "OSAGE SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C2", "lowercase_mapping": "", "titlecase_mapping": "104C2", "symbol": "\u04EA" }, 66795: { "value": "104EB", "name": "OSAGE SMALL LETTER OIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C3", "lowercase_mapping": "", "titlecase_mapping": "104C3", "symbol": "\u04EB" }, 66796: { "value": "104EC", "name": "OSAGE SMALL LETTER PA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C4", "lowercase_mapping": "", "titlecase_mapping": "104C4", "symbol": "\u04EC" }, 66797: { "value": "104ED", "name": "OSAGE SMALL LETTER EHPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C5", "lowercase_mapping": "", "titlecase_mapping": "104C5", "symbol": "\u04ED" }, 66798: { "value": "104EE", "name": "OSAGE SMALL LETTER SA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C6", "lowercase_mapping": "", "titlecase_mapping": "104C6", "symbol": "\u04EE" }, 66799: { "value": "104EF", "name": "OSAGE SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C7", "lowercase_mapping": "", "titlecase_mapping": "104C7", "symbol": "\u04EF" }, 66800: { "value": "104F0", "name": "OSAGE SMALL LETTER TA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C8", "lowercase_mapping": "", "titlecase_mapping": "104C8", "symbol": "\u04F0" }, 66801: { "value": "104F1", "name": "OSAGE SMALL LETTER EHTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C9", "lowercase_mapping": "", "titlecase_mapping": "104C9", "symbol": "\u04F1" }, 66802: { "value": "104F2", "name": "OSAGE SMALL LETTER TSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CA", "lowercase_mapping": "", "titlecase_mapping": "104CA", "symbol": "\u04F2" }, 66803: { "value": "104F3", "name": "OSAGE SMALL LETTER EHTSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CB", "lowercase_mapping": "", "titlecase_mapping": "104CB", "symbol": "\u04F3" }, 66804: { "value": "104F4", "name": "OSAGE SMALL LETTER TSHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CC", "lowercase_mapping": "", "titlecase_mapping": "104CC", "symbol": "\u04F4" }, 66805: { "value": "104F5", "name": "OSAGE SMALL LETTER DHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CD", "lowercase_mapping": "", "titlecase_mapping": "104CD", "symbol": "\u04F5" }, 66806: { "value": "104F6", "name": "OSAGE SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CE", "lowercase_mapping": "", "titlecase_mapping": "104CE", "symbol": "\u04F6" }, 66807: { "value": "104F7", "name": "OSAGE SMALL LETTER WA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CF", "lowercase_mapping": "", "titlecase_mapping": "104CF", "symbol": "\u04F7" }, 66808: { "value": "104F8", "name": "OSAGE SMALL LETTER KHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104D0", "lowercase_mapping": "", "titlecase_mapping": "104D0", "symbol": "\u04F8" }, 66809: { "value": "104F9", "name": "OSAGE SMALL LETTER GHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104D1", "lowercase_mapping": "", "titlecase_mapping": "104D1", "symbol": "\u04F9" }, 66810: { "value": "104FA", "name": "OSAGE SMALL LETTER ZA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104D2", "lowercase_mapping": "", "titlecase_mapping": "104D2", "symbol": "\u04FA" }, 66811: { "value": "104FB", "name": "OSAGE SMALL LETTER ZHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104D3", "lowercase_mapping": "", "titlecase_mapping": "104D3", "symbol": "\u04FB" }, 68800: { "value": "10CC0", "name": "OLD HUNGARIAN SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C80", "lowercase_mapping": "", "titlecase_mapping": "10C80", "symbol": "\u0CC0" }, 68801: { "value": "10CC1", "name": "OLD HUNGARIAN SMALL LETTER AA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C81", "lowercase_mapping": "", "titlecase_mapping": "10C81", "symbol": "\u0CC1" }, 68802: { "value": "10CC2", "name": "OLD HUNGARIAN SMALL LETTER EB", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C82", "lowercase_mapping": "", "titlecase_mapping": "10C82", "symbol": "\u0CC2" }, 68803: { "value": "10CC3", "name": "OLD HUNGARIAN SMALL LETTER AMB", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C83", "lowercase_mapping": "", "titlecase_mapping": "10C83", "symbol": "\u0CC3" }, 68804: { "value": "10CC4", "name": "OLD HUNGARIAN SMALL LETTER EC", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C84", "lowercase_mapping": "", "titlecase_mapping": "10C84", "symbol": "\u0CC4" }, 68805: { "value": "10CC5", "name": "OLD HUNGARIAN SMALL LETTER ENC", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C85", "lowercase_mapping": "", "titlecase_mapping": "10C85", "symbol": "\u0CC5" }, 68806: { "value": "10CC6", "name": "OLD HUNGARIAN SMALL LETTER ECS", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C86", "lowercase_mapping": "", "titlecase_mapping": "10C86", "symbol": "\u0CC6" }, 68807: { "value": "10CC7", "name": "OLD HUNGARIAN SMALL LETTER ED", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C87", "lowercase_mapping": "", "titlecase_mapping": "10C87", "symbol": "\u0CC7" }, 68808: { "value": "10CC8", "name": "OLD HUNGARIAN SMALL LETTER AND", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C88", "lowercase_mapping": "", "titlecase_mapping": "10C88", "symbol": "\u0CC8" }, 68809: { "value": "10CC9", "name": "OLD HUNGARIAN SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C89", "lowercase_mapping": "", "titlecase_mapping": "10C89", "symbol": "\u0CC9" }, 68810: { "value": "10CCA", "name": "OLD HUNGARIAN SMALL LETTER CLOSE E", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8A", "lowercase_mapping": "", "titlecase_mapping": "10C8A", "symbol": "\u0CCA" }, 68811: { "value": "10CCB", "name": "OLD HUNGARIAN SMALL LETTER EE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8B", "lowercase_mapping": "", "titlecase_mapping": "10C8B", "symbol": "\u0CCB" }, 68812: { "value": "10CCC", "name": "OLD HUNGARIAN SMALL LETTER EF", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8C", "lowercase_mapping": "", "titlecase_mapping": "10C8C", "symbol": "\u0CCC" }, 68813: { "value": "10CCD", "name": "OLD HUNGARIAN SMALL LETTER EG", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8D", "lowercase_mapping": "", "titlecase_mapping": "10C8D", "symbol": "\u0CCD" }, 68814: { "value": "10CCE", "name": "OLD HUNGARIAN SMALL LETTER EGY", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8E", "lowercase_mapping": "", "titlecase_mapping": "10C8E", "symbol": "\u0CCE" }, 68815: { "value": "10CCF", "name": "OLD HUNGARIAN SMALL LETTER EH", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8F", "lowercase_mapping": "", "titlecase_mapping": "10C8F", "symbol": "\u0CCF" }, 68816: { "value": "10CD0", "name": "OLD HUNGARIAN SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C90", "lowercase_mapping": "", "titlecase_mapping": "10C90", "symbol": "\u0CD0" }, 68817: { "value": "10CD1", "name": "OLD HUNGARIAN SMALL LETTER II", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C91", "lowercase_mapping": "", "titlecase_mapping": "10C91", "symbol": "\u0CD1" }, 68818: { "value": "10CD2", "name": "OLD HUNGARIAN SMALL LETTER EJ", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C92", "lowercase_mapping": "", "titlecase_mapping": "10C92", "symbol": "\u0CD2" }, 68819: { "value": "10CD3", "name": "OLD HUNGARIAN SMALL LETTER EK", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C93", "lowercase_mapping": "", "titlecase_mapping": "10C93", "symbol": "\u0CD3" }, 68820: { "value": "10CD4", "name": "OLD HUNGARIAN SMALL LETTER AK", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C94", "lowercase_mapping": "", "titlecase_mapping": "10C94", "symbol": "\u0CD4" }, 68821: { "value": "10CD5", "name": "OLD HUNGARIAN SMALL LETTER UNK", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C95", "lowercase_mapping": "", "titlecase_mapping": "10C95", "symbol": "\u0CD5" }, 68822: { "value": "10CD6", "name": "OLD HUNGARIAN SMALL LETTER EL", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C96", "lowercase_mapping": "", "titlecase_mapping": "10C96", "symbol": "\u0CD6" }, 68823: { "value": "10CD7", "name": "OLD HUNGARIAN SMALL LETTER ELY", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C97", "lowercase_mapping": "", "titlecase_mapping": "10C97", "symbol": "\u0CD7" }, 68824: { "value": "10CD8", "name": "OLD HUNGARIAN SMALL LETTER EM", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C98", "lowercase_mapping": "", "titlecase_mapping": "10C98", "symbol": "\u0CD8" }, 68825: { "value": "10CD9", "name": "OLD HUNGARIAN SMALL LETTER EN", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C99", "lowercase_mapping": "", "titlecase_mapping": "10C99", "symbol": "\u0CD9" }, 68826: { "value": "10CDA", "name": "OLD HUNGARIAN SMALL LETTER ENY", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9A", "lowercase_mapping": "", "titlecase_mapping": "10C9A", "symbol": "\u0CDA" }, 68827: { "value": "10CDB", "name": "OLD HUNGARIAN SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9B", "lowercase_mapping": "", "titlecase_mapping": "10C9B", "symbol": "\u0CDB" }, 68828: { "value": "10CDC", "name": "OLD HUNGARIAN SMALL LETTER OO", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9C", "lowercase_mapping": "", "titlecase_mapping": "10C9C", "symbol": "\u0CDC" }, 68829: { "value": "10CDD", "name": "OLD HUNGARIAN SMALL LETTER NIKOLSBURG OE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9D", "lowercase_mapping": "", "titlecase_mapping": "10C9D", "symbol": "\u0CDD" }, 68830: { "value": "10CDE", "name": "OLD HUNGARIAN SMALL LETTER RUDIMENTA OE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9E", "lowercase_mapping": "", "titlecase_mapping": "10C9E", "symbol": "\u0CDE" }, 68831: { "value": "10CDF", "name": "OLD HUNGARIAN SMALL LETTER OEE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9F", "lowercase_mapping": "", "titlecase_mapping": "10C9F", "symbol": "\u0CDF" }, 68832: { "value": "10CE0", "name": "OLD HUNGARIAN SMALL LETTER EP", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA0", "lowercase_mapping": "", "titlecase_mapping": "10CA0", "symbol": "\u0CE0" }, 68833: { "value": "10CE1", "name": "OLD HUNGARIAN SMALL LETTER EMP", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA1", "lowercase_mapping": "", "titlecase_mapping": "10CA1", "symbol": "\u0CE1" }, 68834: { "value": "10CE2", "name": "OLD HUNGARIAN SMALL LETTER ER", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA2", "lowercase_mapping": "", "titlecase_mapping": "10CA2", "symbol": "\u0CE2" }, 68835: { "value": "10CE3", "name": "OLD HUNGARIAN SMALL LETTER SHORT ER", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA3", "lowercase_mapping": "", "titlecase_mapping": "10CA3", "symbol": "\u0CE3" }, 68836: { "value": "10CE4", "name": "OLD HUNGARIAN SMALL LETTER ES", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA4", "lowercase_mapping": "", "titlecase_mapping": "10CA4", "symbol": "\u0CE4" }, 68837: { "value": "10CE5", "name": "OLD HUNGARIAN SMALL LETTER ESZ", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA5", "lowercase_mapping": "", "titlecase_mapping": "10CA5", "symbol": "\u0CE5" }, 68838: { "value": "10CE6", "name": "OLD HUNGARIAN SMALL LETTER ET", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA6", "lowercase_mapping": "", "titlecase_mapping": "10CA6", "symbol": "\u0CE6" }, 68839: { "value": "10CE7", "name": "OLD HUNGARIAN SMALL LETTER ENT", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA7", "lowercase_mapping": "", "titlecase_mapping": "10CA7", "symbol": "\u0CE7" }, 68840: { "value": "10CE8", "name": "OLD HUNGARIAN SMALL LETTER ETY", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA8", "lowercase_mapping": "", "titlecase_mapping": "10CA8", "symbol": "\u0CE8" }, 68841: { "value": "10CE9", "name": "OLD HUNGARIAN SMALL LETTER ECH", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA9", "lowercase_mapping": "", "titlecase_mapping": "10CA9", "symbol": "\u0CE9" }, 68842: { "value": "10CEA", "name": "OLD HUNGARIAN SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAA", "lowercase_mapping": "", "titlecase_mapping": "10CAA", "symbol": "\u0CEA" }, 68843: { "value": "10CEB", "name": "OLD HUNGARIAN SMALL LETTER UU", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAB", "lowercase_mapping": "", "titlecase_mapping": "10CAB", "symbol": "\u0CEB" }, 68844: { "value": "10CEC", "name": "OLD HUNGARIAN SMALL LETTER NIKOLSBURG UE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAC", "lowercase_mapping": "", "titlecase_mapping": "10CAC", "symbol": "\u0CEC" }, 68845: { "value": "10CED", "name": "OLD HUNGARIAN SMALL LETTER RUDIMENTA UE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAD", "lowercase_mapping": "", "titlecase_mapping": "10CAD", "symbol": "\u0CED" }, 68846: { "value": "10CEE", "name": "OLD HUNGARIAN SMALL LETTER EV", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAE", "lowercase_mapping": "", "titlecase_mapping": "10CAE", "symbol": "\u0CEE" }, 68847: { "value": "10CEF", "name": "OLD HUNGARIAN SMALL LETTER EZ", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAF", "lowercase_mapping": "", "titlecase_mapping": "10CAF", "symbol": "\u0CEF" }, 68848: { "value": "10CF0", "name": "OLD HUNGARIAN SMALL LETTER EZS", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CB0", "lowercase_mapping": "", "titlecase_mapping": "10CB0", "symbol": "\u0CF0" }, 68849: { "value": "10CF1", "name": "OLD HUNGARIAN SMALL LETTER ENT-SHAPED SIGN", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CB1", "lowercase_mapping": "", "titlecase_mapping": "10CB1", "symbol": "\u0CF1" }, 68850: { "value": "10CF2", "name": "OLD HUNGARIAN SMALL LETTER US", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CB2", "lowercase_mapping": "", "titlecase_mapping": "10CB2", "symbol": "\u0CF2" }, 71872: { "value": "118C0", "name": "WARANG CITI SMALL LETTER NGAA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A0", "lowercase_mapping": "", "titlecase_mapping": "118A0", "symbol": "\u18C0" }, 71873: { "value": "118C1", "name": "WARANG CITI SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A1", "lowercase_mapping": "", "titlecase_mapping": "118A1", "symbol": "\u18C1" }, 71874: { "value": "118C2", "name": "WARANG CITI SMALL LETTER WI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A2", "lowercase_mapping": "", "titlecase_mapping": "118A2", "symbol": "\u18C2" }, 71875: { "value": "118C3", "name": "WARANG CITI SMALL LETTER YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A3", "lowercase_mapping": "", "titlecase_mapping": "118A3", "symbol": "\u18C3" }, 71876: { "value": "118C4", "name": "WARANG CITI SMALL LETTER YA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A4", "lowercase_mapping": "", "titlecase_mapping": "118A4", "symbol": "\u18C4" }, 71877: { "value": "118C5", "name": "WARANG CITI SMALL LETTER YO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A5", "lowercase_mapping": "", "titlecase_mapping": "118A5", "symbol": "\u18C5" }, 71878: { "value": "118C6", "name": "WARANG CITI SMALL LETTER II", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A6", "lowercase_mapping": "", "titlecase_mapping": "118A6", "symbol": "\u18C6" }, 71879: { "value": "118C7", "name": "WARANG CITI SMALL LETTER UU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A7", "lowercase_mapping": "", "titlecase_mapping": "118A7", "symbol": "\u18C7" }, 71880: { "value": "118C8", "name": "WARANG CITI SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A8", "lowercase_mapping": "", "titlecase_mapping": "118A8", "symbol": "\u18C8" }, 71881: { "value": "118C9", "name": "WARANG CITI SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A9", "lowercase_mapping": "", "titlecase_mapping": "118A9", "symbol": "\u18C9" }, 71882: { "value": "118CA", "name": "WARANG CITI SMALL LETTER ANG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AA", "lowercase_mapping": "", "titlecase_mapping": "118AA", "symbol": "\u18CA" }, 71883: { "value": "118CB", "name": "WARANG CITI SMALL LETTER GA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AB", "lowercase_mapping": "", "titlecase_mapping": "118AB", "symbol": "\u18CB" }, 71884: { "value": "118CC", "name": "WARANG CITI SMALL LETTER KO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AC", "lowercase_mapping": "", "titlecase_mapping": "118AC", "symbol": "\u18CC" }, 71885: { "value": "118CD", "name": "WARANG CITI SMALL LETTER ENY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AD", "lowercase_mapping": "", "titlecase_mapping": "118AD", "symbol": "\u18CD" }, 71886: { "value": "118CE", "name": "WARANG CITI SMALL LETTER YUJ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AE", "lowercase_mapping": "", "titlecase_mapping": "118AE", "symbol": "\u18CE" }, 71887: { "value": "118CF", "name": "WARANG CITI SMALL LETTER UC", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AF", "lowercase_mapping": "", "titlecase_mapping": "118AF", "symbol": "\u18CF" }, 71888: { "value": "118D0", "name": "WARANG CITI SMALL LETTER ENN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B0", "lowercase_mapping": "", "titlecase_mapping": "118B0", "symbol": "\u18D0" }, 71889: { "value": "118D1", "name": "WARANG CITI SMALL LETTER ODD", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B1", "lowercase_mapping": "", "titlecase_mapping": "118B1", "symbol": "\u18D1" }, 71890: { "value": "118D2", "name": "WARANG CITI SMALL LETTER TTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B2", "lowercase_mapping": "", "titlecase_mapping": "118B2", "symbol": "\u18D2" }, 71891: { "value": "118D3", "name": "WARANG CITI SMALL LETTER NUNG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B3", "lowercase_mapping": "", "titlecase_mapping": "118B3", "symbol": "\u18D3" }, 71892: { "value": "118D4", "name": "WARANG CITI SMALL LETTER DA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B4", "lowercase_mapping": "", "titlecase_mapping": "118B4", "symbol": "\u18D4" }, 71893: { "value": "118D5", "name": "WARANG CITI SMALL LETTER AT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B5", "lowercase_mapping": "", "titlecase_mapping": "118B5", "symbol": "\u18D5" }, 71894: { "value": "118D6", "name": "WARANG CITI SMALL LETTER AM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B6", "lowercase_mapping": "", "titlecase_mapping": "118B6", "symbol": "\u18D6" }, 71895: { "value": "118D7", "name": "WARANG CITI SMALL LETTER BU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B7", "lowercase_mapping": "", "titlecase_mapping": "118B7", "symbol": "\u18D7" }, 71896: { "value": "118D8", "name": "WARANG CITI SMALL LETTER PU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B8", "lowercase_mapping": "", "titlecase_mapping": "118B8", "symbol": "\u18D8" }, 71897: { "value": "118D9", "name": "WARANG CITI SMALL LETTER HIYO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B9", "lowercase_mapping": "", "titlecase_mapping": "118B9", "symbol": "\u18D9" }, 71898: { "value": "118DA", "name": "WARANG CITI SMALL LETTER HOLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BA", "lowercase_mapping": "", "titlecase_mapping": "118BA", "symbol": "\u18DA" }, 71899: { "value": "118DB", "name": "WARANG CITI SMALL LETTER HORR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BB", "lowercase_mapping": "", "titlecase_mapping": "118BB", "symbol": "\u18DB" }, 71900: { "value": "118DC", "name": "WARANG CITI SMALL LETTER HAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BC", "lowercase_mapping": "", "titlecase_mapping": "118BC", "symbol": "\u18DC" }, 71901: { "value": "118DD", "name": "WARANG CITI SMALL LETTER SSUU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BD", "lowercase_mapping": "", "titlecase_mapping": "118BD", "symbol": "\u18DD" }, 71902: { "value": "118DE", "name": "WARANG CITI SMALL LETTER SII", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BE", "lowercase_mapping": "", "titlecase_mapping": "118BE", "symbol": "\u18DE" }, 71903: { "value": "118DF", "name": "WARANG CITI SMALL LETTER VIYO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BF", "lowercase_mapping": "", "titlecase_mapping": "118BF", "symbol": "\u18DF" }, 119834: { "value": "1D41A", "name": "MATHEMATICAL BOLD SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41A" }, 119835: { "value": "1D41B", "name": "MATHEMATICAL BOLD SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41B" }, 119836: { "value": "1D41C", "name": "MATHEMATICAL BOLD SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41C" }, 119837: { "value": "1D41D", "name": "MATHEMATICAL BOLD SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41D" }, 119838: { "value": "1D41E", "name": "MATHEMATICAL BOLD SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41E" }, 119839: { "value": "1D41F", "name": "MATHEMATICAL BOLD SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41F" }, 119840: { "value": "1D420", "name": "MATHEMATICAL BOLD SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD420" }, 119841: { "value": "1D421", "name": "MATHEMATICAL BOLD SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD421" }, 119842: { "value": "1D422", "name": "MATHEMATICAL BOLD SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD422" }, 119843: { "value": "1D423", "name": "MATHEMATICAL BOLD SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD423" }, 119844: { "value": "1D424", "name": "MATHEMATICAL BOLD SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD424" }, 119845: { "value": "1D425", "name": "MATHEMATICAL BOLD SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD425" }, 119846: { "value": "1D426", "name": "MATHEMATICAL BOLD SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD426" }, 119847: { "value": "1D427", "name": "MATHEMATICAL BOLD SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD427" }, 119848: { "value": "1D428", "name": "MATHEMATICAL BOLD SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD428" }, 119849: { "value": "1D429", "name": "MATHEMATICAL BOLD SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD429" }, 119850: { "value": "1D42A", "name": "MATHEMATICAL BOLD SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42A" }, 119851: { "value": "1D42B", "name": "MATHEMATICAL BOLD SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42B" }, 119852: { "value": "1D42C", "name": "MATHEMATICAL BOLD SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42C" }, 119853: { "value": "1D42D", "name": "MATHEMATICAL BOLD SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42D" }, 119854: { "value": "1D42E", "name": "MATHEMATICAL BOLD SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42E" }, 119855: { "value": "1D42F", "name": "MATHEMATICAL BOLD SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42F" }, 119856: { "value": "1D430", "name": "MATHEMATICAL BOLD SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD430" }, 119857: { "value": "1D431", "name": "MATHEMATICAL BOLD SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD431" }, 119858: { "value": "1D432", "name": "MATHEMATICAL BOLD SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD432" }, 119859: { "value": "1D433", "name": "MATHEMATICAL BOLD SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD433" }, 119886: { "value": "1D44E", "name": "MATHEMATICAL ITALIC SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD44E" }, 119887: { "value": "1D44F", "name": "MATHEMATICAL ITALIC SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD44F" }, 119888: { "value": "1D450", "name": "MATHEMATICAL ITALIC SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD450" }, 119889: { "value": "1D451", "name": "MATHEMATICAL ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD451" }, 119890: { "value": "1D452", "name": "MATHEMATICAL ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD452" }, 119891: { "value": "1D453", "name": "MATHEMATICAL ITALIC SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD453" }, 119892: { "value": "1D454", "name": "MATHEMATICAL ITALIC SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD454" }, 119894: { "value": "1D456", "name": "MATHEMATICAL ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD456" }, 119895: { "value": "1D457", "name": "MATHEMATICAL ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD457" }, 119896: { "value": "1D458", "name": "MATHEMATICAL ITALIC SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD458" }, 119897: { "value": "1D459", "name": "MATHEMATICAL ITALIC SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD459" }, 119898: { "value": "1D45A", "name": "MATHEMATICAL ITALIC SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45A" }, 119899: { "value": "1D45B", "name": "MATHEMATICAL ITALIC SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45B" }, 119900: { "value": "1D45C", "name": "MATHEMATICAL ITALIC SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45C" }, 119901: { "value": "1D45D", "name": "MATHEMATICAL ITALIC SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45D" }, 119902: { "value": "1D45E", "name": "MATHEMATICAL ITALIC SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45E" }, 119903: { "value": "1D45F", "name": "MATHEMATICAL ITALIC SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45F" }, 119904: { "value": "1D460", "name": "MATHEMATICAL ITALIC SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD460" }, 119905: { "value": "1D461", "name": "MATHEMATICAL ITALIC SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD461" }, 119906: { "value": "1D462", "name": "MATHEMATICAL ITALIC SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD462" }, 119907: { "value": "1D463", "name": "MATHEMATICAL ITALIC SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD463" }, 119908: { "value": "1D464", "name": "MATHEMATICAL ITALIC SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD464" }, 119909: { "value": "1D465", "name": "MATHEMATICAL ITALIC SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD465" }, 119910: { "value": "1D466", "name": "MATHEMATICAL ITALIC SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD466" }, 119911: { "value": "1D467", "name": "MATHEMATICAL ITALIC SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD467" }, 119938: { "value": "1D482", "name": "MATHEMATICAL BOLD ITALIC SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD482" }, 119939: { "value": "1D483", "name": "MATHEMATICAL BOLD ITALIC SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD483" }, 119940: { "value": "1D484", "name": "MATHEMATICAL BOLD ITALIC SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD484" }, 119941: { "value": "1D485", "name": "MATHEMATICAL BOLD ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD485" }, 119942: { "value": "1D486", "name": "MATHEMATICAL BOLD ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD486" }, 119943: { "value": "1D487", "name": "MATHEMATICAL BOLD ITALIC SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD487" }, 119944: { "value": "1D488", "name": "MATHEMATICAL BOLD ITALIC SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD488" }, 119945: { "value": "1D489", "name": "MATHEMATICAL BOLD ITALIC SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD489" }, 119946: { "value": "1D48A", "name": "MATHEMATICAL BOLD ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48A" }, 119947: { "value": "1D48B", "name": "MATHEMATICAL BOLD ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48B" }, 119948: { "value": "1D48C", "name": "MATHEMATICAL BOLD ITALIC SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48C" }, 119949: { "value": "1D48D", "name": "MATHEMATICAL BOLD ITALIC SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48D" }, 119950: { "value": "1D48E", "name": "MATHEMATICAL BOLD ITALIC SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48E" }, 119951: { "value": "1D48F", "name": "MATHEMATICAL BOLD ITALIC SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48F" }, 119952: { "value": "1D490", "name": "MATHEMATICAL BOLD ITALIC SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD490" }, 119953: { "value": "1D491", "name": "MATHEMATICAL BOLD ITALIC SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD491" }, 119954: { "value": "1D492", "name": "MATHEMATICAL BOLD ITALIC SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD492" }, 119955: { "value": "1D493", "name": "MATHEMATICAL BOLD ITALIC SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD493" }, 119956: { "value": "1D494", "name": "MATHEMATICAL BOLD ITALIC SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD494" }, 119957: { "value": "1D495", "name": "MATHEMATICAL BOLD ITALIC SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD495" }, 119958: { "value": "1D496", "name": "MATHEMATICAL BOLD ITALIC SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD496" }, 119959: { "value": "1D497", "name": "MATHEMATICAL BOLD ITALIC SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD497" }, 119960: { "value": "1D498", "name": "MATHEMATICAL BOLD ITALIC SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD498" }, 119961: { "value": "1D499", "name": "MATHEMATICAL BOLD ITALIC SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD499" }, 119962: { "value": "1D49A", "name": "MATHEMATICAL BOLD ITALIC SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD49A" }, 119963: { "value": "1D49B", "name": "MATHEMATICAL BOLD ITALIC SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD49B" }, 119990: { "value": "1D4B6", "name": "MATHEMATICAL SCRIPT SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4B6" }, 119991: { "value": "1D4B7", "name": "MATHEMATICAL SCRIPT SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4B7" }, 119992: { "value": "1D4B8", "name": "MATHEMATICAL SCRIPT SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4B8" }, 119993: { "value": "1D4B9", "name": "MATHEMATICAL SCRIPT SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4B9" }, 119995: { "value": "1D4BB", "name": "MATHEMATICAL SCRIPT SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4BB" }, 119997: { "value": "1D4BD", "name": "MATHEMATICAL SCRIPT SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4BD" }, 119998: { "value": "1D4BE", "name": "MATHEMATICAL SCRIPT SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4BE" }, 119999: { "value": "1D4BF", "name": "MATHEMATICAL SCRIPT SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4BF" }, 120000: { "value": "1D4C0", "name": "MATHEMATICAL SCRIPT SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C0" }, 120001: { "value": "1D4C1", "name": "MATHEMATICAL SCRIPT SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C1" }, 120002: { "value": "1D4C2", "name": "MATHEMATICAL SCRIPT SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C2" }, 120003: { "value": "1D4C3", "name": "MATHEMATICAL SCRIPT SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C3" }, 120005: { "value": "1D4C5", "name": "MATHEMATICAL SCRIPT SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C5" }, 120006: { "value": "1D4C6", "name": "MATHEMATICAL SCRIPT SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C6" }, 120007: { "value": "1D4C7", "name": "MATHEMATICAL SCRIPT SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C7" }, 120008: { "value": "1D4C8", "name": "MATHEMATICAL SCRIPT SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C8" }, 120009: { "value": "1D4C9", "name": "MATHEMATICAL SCRIPT SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C9" }, 120010: { "value": "1D4CA", "name": "MATHEMATICAL SCRIPT SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CA" }, 120011: { "value": "1D4CB", "name": "MATHEMATICAL SCRIPT SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CB" }, 120012: { "value": "1D4CC", "name": "MATHEMATICAL SCRIPT SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CC" }, 120013: { "value": "1D4CD", "name": "MATHEMATICAL SCRIPT SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CD" }, 120014: { "value": "1D4CE", "name": "MATHEMATICAL SCRIPT SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CE" }, 120015: { "value": "1D4CF", "name": "MATHEMATICAL SCRIPT SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CF" }, 120042: { "value": "1D4EA", "name": "MATHEMATICAL BOLD SCRIPT SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EA" }, 120043: { "value": "1D4EB", "name": "MATHEMATICAL BOLD SCRIPT SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EB" }, 120044: { "value": "1D4EC", "name": "MATHEMATICAL BOLD SCRIPT SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EC" }, 120045: { "value": "1D4ED", "name": "MATHEMATICAL BOLD SCRIPT SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4ED" }, 120046: { "value": "1D4EE", "name": "MATHEMATICAL BOLD SCRIPT SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EE" }, 120047: { "value": "1D4EF", "name": "MATHEMATICAL BOLD SCRIPT SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EF" }, 120048: { "value": "1D4F0", "name": "MATHEMATICAL BOLD SCRIPT SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F0" }, 120049: { "value": "1D4F1", "name": "MATHEMATICAL BOLD SCRIPT SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F1" }, 120050: { "value": "1D4F2", "name": "MATHEMATICAL BOLD SCRIPT SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F2" }, 120051: { "value": "1D4F3", "name": "MATHEMATICAL BOLD SCRIPT SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F3" }, 120052: { "value": "1D4F4", "name": "MATHEMATICAL BOLD SCRIPT SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F4" }, 120053: { "value": "1D4F5", "name": "MATHEMATICAL BOLD SCRIPT SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F5" }, 120054: { "value": "1D4F6", "name": "MATHEMATICAL BOLD SCRIPT SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F6" }, 120055: { "value": "1D4F7", "name": "MATHEMATICAL BOLD SCRIPT SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F7" }, 120056: { "value": "1D4F8", "name": "MATHEMATICAL BOLD SCRIPT SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F8" }, 120057: { "value": "1D4F9", "name": "MATHEMATICAL BOLD SCRIPT SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F9" }, 120058: { "value": "1D4FA", "name": "MATHEMATICAL BOLD SCRIPT SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FA" }, 120059: { "value": "1D4FB", "name": "MATHEMATICAL BOLD SCRIPT SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FB" }, 120060: { "value": "1D4FC", "name": "MATHEMATICAL BOLD SCRIPT SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FC" }, 120061: { "value": "1D4FD", "name": "MATHEMATICAL BOLD SCRIPT SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FD" }, 120062: { "value": "1D4FE", "name": "MATHEMATICAL BOLD SCRIPT SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FE" }, 120063: { "value": "1D4FF", "name": "MATHEMATICAL BOLD SCRIPT SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FF" }, 120064: { "value": "1D500", "name": "MATHEMATICAL BOLD SCRIPT SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD500" }, 120065: { "value": "1D501", "name": "MATHEMATICAL BOLD SCRIPT SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD501" }, 120066: { "value": "1D502", "name": "MATHEMATICAL BOLD SCRIPT SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD502" }, 120067: { "value": "1D503", "name": "MATHEMATICAL BOLD SCRIPT SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD503" }, 120094: { "value": "1D51E", "name": "MATHEMATICAL FRAKTUR SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD51E" }, 120095: { "value": "1D51F", "name": "MATHEMATICAL FRAKTUR SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD51F" }, 120096: { "value": "1D520", "name": "MATHEMATICAL FRAKTUR SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD520" }, 120097: { "value": "1D521", "name": "MATHEMATICAL FRAKTUR SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD521" }, 120098: { "value": "1D522", "name": "MATHEMATICAL FRAKTUR SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD522" }, 120099: { "value": "1D523", "name": "MATHEMATICAL FRAKTUR SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD523" }, 120100: { "value": "1D524", "name": "MATHEMATICAL FRAKTUR SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD524" }, 120101: { "value": "1D525", "name": "MATHEMATICAL FRAKTUR SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD525" }, 120102: { "value": "1D526", "name": "MATHEMATICAL FRAKTUR SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD526" }, 120103: { "value": "1D527", "name": "MATHEMATICAL FRAKTUR SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD527" }, 120104: { "value": "1D528", "name": "MATHEMATICAL FRAKTUR SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD528" }, 120105: { "value": "1D529", "name": "MATHEMATICAL FRAKTUR SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD529" }, 120106: { "value": "1D52A", "name": "MATHEMATICAL FRAKTUR SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52A" }, 120107: { "value": "1D52B", "name": "MATHEMATICAL FRAKTUR SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52B" }, 120108: { "value": "1D52C", "name": "MATHEMATICAL FRAKTUR SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52C" }, 120109: { "value": "1D52D", "name": "MATHEMATICAL FRAKTUR SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52D" }, 120110: { "value": "1D52E", "name": "MATHEMATICAL FRAKTUR SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52E" }, 120111: { "value": "1D52F", "name": "MATHEMATICAL FRAKTUR SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52F" }, 120112: { "value": "1D530", "name": "MATHEMATICAL FRAKTUR SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD530" }, 120113: { "value": "1D531", "name": "MATHEMATICAL FRAKTUR SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD531" }, 120114: { "value": "1D532", "name": "MATHEMATICAL FRAKTUR SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD532" }, 120115: { "value": "1D533", "name": "MATHEMATICAL FRAKTUR SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD533" }, 120116: { "value": "1D534", "name": "MATHEMATICAL FRAKTUR SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD534" }, 120117: { "value": "1D535", "name": "MATHEMATICAL FRAKTUR SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD535" }, 120118: { "value": "1D536", "name": "MATHEMATICAL FRAKTUR SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD536" }, 120119: { "value": "1D537", "name": "MATHEMATICAL FRAKTUR SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD537" }, 120146: { "value": "1D552", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD552" }, 120147: { "value": "1D553", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD553" }, 120148: { "value": "1D554", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD554" }, 120149: { "value": "1D555", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD555" }, 120150: { "value": "1D556", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD556" }, 120151: { "value": "1D557", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD557" }, 120152: { "value": "1D558", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD558" }, 120153: { "value": "1D559", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD559" }, 120154: { "value": "1D55A", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55A" }, 120155: { "value": "1D55B", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55B" }, 120156: { "value": "1D55C", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55C" }, 120157: { "value": "1D55D", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55D" }, 120158: { "value": "1D55E", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55E" }, 120159: { "value": "1D55F", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55F" }, 120160: { "value": "1D560", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD560" }, 120161: { "value": "1D561", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD561" }, 120162: { "value": "1D562", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD562" }, 120163: { "value": "1D563", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD563" }, 120164: { "value": "1D564", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD564" }, 120165: { "value": "1D565", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD565" }, 120166: { "value": "1D566", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD566" }, 120167: { "value": "1D567", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD567" }, 120168: { "value": "1D568", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD568" }, 120169: { "value": "1D569", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD569" }, 120170: { "value": "1D56A", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD56A" }, 120171: { "value": "1D56B", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD56B" }, 120198: { "value": "1D586", "name": "MATHEMATICAL BOLD FRAKTUR SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD586" }, 120199: { "value": "1D587", "name": "MATHEMATICAL BOLD FRAKTUR SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD587" }, 120200: { "value": "1D588", "name": "MATHEMATICAL BOLD FRAKTUR SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD588" }, 120201: { "value": "1D589", "name": "MATHEMATICAL BOLD FRAKTUR SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD589" }, 120202: { "value": "1D58A", "name": "MATHEMATICAL BOLD FRAKTUR SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58A" }, 120203: { "value": "1D58B", "name": "MATHEMATICAL BOLD FRAKTUR SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58B" }, 120204: { "value": "1D58C", "name": "MATHEMATICAL BOLD FRAKTUR SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58C" }, 120205: { "value": "1D58D", "name": "MATHEMATICAL BOLD FRAKTUR SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58D" }, 120206: { "value": "1D58E", "name": "MATHEMATICAL BOLD FRAKTUR SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58E" }, 120207: { "value": "1D58F", "name": "MATHEMATICAL BOLD FRAKTUR SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58F" }, 120208: { "value": "1D590", "name": "MATHEMATICAL BOLD FRAKTUR SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD590" }, 120209: { "value": "1D591", "name": "MATHEMATICAL BOLD FRAKTUR SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD591" }, 120210: { "value": "1D592", "name": "MATHEMATICAL BOLD FRAKTUR SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD592" }, 120211: { "value": "1D593", "name": "MATHEMATICAL BOLD FRAKTUR SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD593" }, 120212: { "value": "1D594", "name": "MATHEMATICAL BOLD FRAKTUR SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD594" }, 120213: { "value": "1D595", "name": "MATHEMATICAL BOLD FRAKTUR SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD595" }, 120214: { "value": "1D596", "name": "MATHEMATICAL BOLD FRAKTUR SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD596" }, 120215: { "value": "1D597", "name": "MATHEMATICAL BOLD FRAKTUR SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD597" }, 120216: { "value": "1D598", "name": "MATHEMATICAL BOLD FRAKTUR SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD598" }, 120217: { "value": "1D599", "name": "MATHEMATICAL BOLD FRAKTUR SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD599" }, 120218: { "value": "1D59A", "name": "MATHEMATICAL BOLD FRAKTUR SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59A" }, 120219: { "value": "1D59B", "name": "MATHEMATICAL BOLD FRAKTUR SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59B" }, 120220: { "value": "1D59C", "name": "MATHEMATICAL BOLD FRAKTUR SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59C" }, 120221: { "value": "1D59D", "name": "MATHEMATICAL BOLD FRAKTUR SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59D" }, 120222: { "value": "1D59E", "name": "MATHEMATICAL BOLD FRAKTUR SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59E" }, 120223: { "value": "1D59F", "name": "MATHEMATICAL BOLD FRAKTUR SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59F" }, 120250: { "value": "1D5BA", "name": "MATHEMATICAL SANS-SERIF SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BA" }, 120251: { "value": "1D5BB", "name": "MATHEMATICAL SANS-SERIF SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BB" }, 120252: { "value": "1D5BC", "name": "MATHEMATICAL SANS-SERIF SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BC" }, 120253: { "value": "1D5BD", "name": "MATHEMATICAL SANS-SERIF SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BD" }, 120254: { "value": "1D5BE", "name": "MATHEMATICAL SANS-SERIF SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BE" }, 120255: { "value": "1D5BF", "name": "MATHEMATICAL SANS-SERIF SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BF" }, 120256: { "value": "1D5C0", "name": "MATHEMATICAL SANS-SERIF SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C0" }, 120257: { "value": "1D5C1", "name": "MATHEMATICAL SANS-SERIF SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C1" }, 120258: { "value": "1D5C2", "name": "MATHEMATICAL SANS-SERIF SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C2" }, 120259: { "value": "1D5C3", "name": "MATHEMATICAL SANS-SERIF SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C3" }, 120260: { "value": "1D5C4", "name": "MATHEMATICAL SANS-SERIF SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C4" }, 120261: { "value": "1D5C5", "name": "MATHEMATICAL SANS-SERIF SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C5" }, 120262: { "value": "1D5C6", "name": "MATHEMATICAL SANS-SERIF SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C6" }, 120263: { "value": "1D5C7", "name": "MATHEMATICAL SANS-SERIF SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C7" }, 120264: { "value": "1D5C8", "name": "MATHEMATICAL SANS-SERIF SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C8" }, 120265: { "value": "1D5C9", "name": "MATHEMATICAL SANS-SERIF SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C9" }, 120266: { "value": "1D5CA", "name": "MATHEMATICAL SANS-SERIF SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CA" }, 120267: { "value": "1D5CB", "name": "MATHEMATICAL SANS-SERIF SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CB" }, 120268: { "value": "1D5CC", "name": "MATHEMATICAL SANS-SERIF SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CC" }, 120269: { "value": "1D5CD", "name": "MATHEMATICAL SANS-SERIF SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CD" }, 120270: { "value": "1D5CE", "name": "MATHEMATICAL SANS-SERIF SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CE" }, 120271: { "value": "1D5CF", "name": "MATHEMATICAL SANS-SERIF SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CF" }, 120272: { "value": "1D5D0", "name": "MATHEMATICAL SANS-SERIF SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5D0" }, 120273: { "value": "1D5D1", "name": "MATHEMATICAL SANS-SERIF SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5D1" }, 120274: { "value": "1D5D2", "name": "MATHEMATICAL SANS-SERIF SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5D2" }, 120275: { "value": "1D5D3", "name": "MATHEMATICAL SANS-SERIF SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5D3" }, 120302: { "value": "1D5EE", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5EE" }, 120303: { "value": "1D5EF", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5EF" }, 120304: { "value": "1D5F0", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F0" }, 120305: { "value": "1D5F1", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F1" }, 120306: { "value": "1D5F2", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F2" }, 120307: { "value": "1D5F3", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F3" }, 120308: { "value": "1D5F4", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F4" }, 120309: { "value": "1D5F5", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F5" }, 120310: { "value": "1D5F6", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F6" }, 120311: { "value": "1D5F7", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F7" }, 120312: { "value": "1D5F8", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F8" }, 120313: { "value": "1D5F9", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F9" }, 120314: { "value": "1D5FA", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FA" }, 120315: { "value": "1D5FB", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FB" }, 120316: { "value": "1D5FC", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FC" }, 120317: { "value": "1D5FD", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FD" }, 120318: { "value": "1D5FE", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FE" }, 120319: { "value": "1D5FF", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FF" }, 120320: { "value": "1D600", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD600" }, 120321: { "value": "1D601", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD601" }, 120322: { "value": "1D602", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD602" }, 120323: { "value": "1D603", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD603" }, 120324: { "value": "1D604", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD604" }, 120325: { "value": "1D605", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD605" }, 120326: { "value": "1D606", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD606" }, 120327: { "value": "1D607", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD607" }, 120354: { "value": "1D622", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD622" }, 120355: { "value": "1D623", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD623" }, 120356: { "value": "1D624", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD624" }, 120357: { "value": "1D625", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD625" }, 120358: { "value": "1D626", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD626" }, 120359: { "value": "1D627", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD627" }, 120360: { "value": "1D628", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD628" }, 120361: { "value": "1D629", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD629" }, 120362: { "value": "1D62A", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62A" }, 120363: { "value": "1D62B", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62B" }, 120364: { "value": "1D62C", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62C" }, 120365: { "value": "1D62D", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62D" }, 120366: { "value": "1D62E", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62E" }, 120367: { "value": "1D62F", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62F" }, 120368: { "value": "1D630", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD630" }, 120369: { "value": "1D631", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD631" }, 120370: { "value": "1D632", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD632" }, 120371: { "value": "1D633", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD633" }, 120372: { "value": "1D634", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD634" }, 120373: { "value": "1D635", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD635" }, 120374: { "value": "1D636", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD636" }, 120375: { "value": "1D637", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD637" }, 120376: { "value": "1D638", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD638" }, 120377: { "value": "1D639", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD639" }, 120378: { "value": "1D63A", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD63A" }, 120379: { "value": "1D63B", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD63B" }, 120406: { "value": "1D656", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD656" }, 120407: { "value": "1D657", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD657" }, 120408: { "value": "1D658", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD658" }, 120409: { "value": "1D659", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD659" }, 120410: { "value": "1D65A", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65A" }, 120411: { "value": "1D65B", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65B" }, 120412: { "value": "1D65C", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65C" }, 120413: { "value": "1D65D", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65D" }, 120414: { "value": "1D65E", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65E" }, 120415: { "value": "1D65F", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65F" }, 120416: { "value": "1D660", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD660" }, 120417: { "value": "1D661", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD661" }, 120418: { "value": "1D662", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD662" }, 120419: { "value": "1D663", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD663" }, 120420: { "value": "1D664", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD664" }, 120421: { "value": "1D665", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD665" }, 120422: { "value": "1D666", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD666" }, 120423: { "value": "1D667", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD667" }, 120424: { "value": "1D668", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD668" }, 120425: { "value": "1D669", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD669" }, 120426: { "value": "1D66A", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66A" }, 120427: { "value": "1D66B", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66B" }, 120428: { "value": "1D66C", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66C" }, 120429: { "value": "1D66D", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66D" }, 120430: { "value": "1D66E", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66E" }, 120431: { "value": "1D66F", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66F" }, 120458: { "value": "1D68A", "name": "MATHEMATICAL MONOSPACE SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68A" }, 120459: { "value": "1D68B", "name": "MATHEMATICAL MONOSPACE SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68B" }, 120460: { "value": "1D68C", "name": "MATHEMATICAL MONOSPACE SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68C" }, 120461: { "value": "1D68D", "name": "MATHEMATICAL MONOSPACE SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68D" }, 120462: { "value": "1D68E", "name": "MATHEMATICAL MONOSPACE SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68E" }, 120463: { "value": "1D68F", "name": "MATHEMATICAL MONOSPACE SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68F" }, 120464: { "value": "1D690", "name": "MATHEMATICAL MONOSPACE SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD690" }, 120465: { "value": "1D691", "name": "MATHEMATICAL MONOSPACE SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD691" }, 120466: { "value": "1D692", "name": "MATHEMATICAL MONOSPACE SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD692" }, 120467: { "value": "1D693", "name": "MATHEMATICAL MONOSPACE SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD693" }, 120468: { "value": "1D694", "name": "MATHEMATICAL MONOSPACE SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD694" }, 120469: { "value": "1D695", "name": "MATHEMATICAL MONOSPACE SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD695" }, 120470: { "value": "1D696", "name": "MATHEMATICAL MONOSPACE SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD696" }, 120471: { "value": "1D697", "name": "MATHEMATICAL MONOSPACE SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD697" }, 120472: { "value": "1D698", "name": "MATHEMATICAL MONOSPACE SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD698" }, 120473: { "value": "1D699", "name": "MATHEMATICAL MONOSPACE SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD699" }, 120474: { "value": "1D69A", "name": "MATHEMATICAL MONOSPACE SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69A" }, 120475: { "value": "1D69B", "name": "MATHEMATICAL MONOSPACE SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69B" }, 120476: { "value": "1D69C", "name": "MATHEMATICAL MONOSPACE SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69C" }, 120477: { "value": "1D69D", "name": "MATHEMATICAL MONOSPACE SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69D" }, 120478: { "value": "1D69E", "name": "MATHEMATICAL MONOSPACE SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69E" }, 120479: { "value": "1D69F", "name": "MATHEMATICAL MONOSPACE SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69F" }, 120480: { "value": "1D6A0", "name": "MATHEMATICAL MONOSPACE SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A0" }, 120481: { "value": "1D6A1", "name": "MATHEMATICAL MONOSPACE SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A1" }, 120482: { "value": "1D6A2", "name": "MATHEMATICAL MONOSPACE SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A2" }, 120483: { "value": "1D6A3", "name": "MATHEMATICAL MONOSPACE SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A3" }, 120484: { "value": "1D6A4", "name": "MATHEMATICAL ITALIC SMALL DOTLESS I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0131", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A4" }, 120485: { "value": "1D6A5", "name": "MATHEMATICAL ITALIC SMALL DOTLESS J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0237", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A5" }, 120514: { "value": "1D6C2", "name": "MATHEMATICAL BOLD SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C2" }, 120515: { "value": "1D6C3", "name": "MATHEMATICAL BOLD SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C3" }, 120516: { "value": "1D6C4", "name": "MATHEMATICAL BOLD SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C4" }, 120517: { "value": "1D6C5", "name": "MATHEMATICAL BOLD SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C5" }, 120518: { "value": "1D6C6", "name": "MATHEMATICAL BOLD SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C6" }, 120519: { "value": "1D6C7", "name": "MATHEMATICAL BOLD SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C7" }, 120520: { "value": "1D6C8", "name": "MATHEMATICAL BOLD SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C8" }, 120521: { "value": "1D6C9", "name": "MATHEMATICAL BOLD SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C9" }, 120522: { "value": "1D6CA", "name": "MATHEMATICAL BOLD SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CA" }, 120523: { "value": "1D6CB", "name": "MATHEMATICAL BOLD SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CB" }, 120524: { "value": "1D6CC", "name": "MATHEMATICAL BOLD SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CC" }, 120525: { "value": "1D6CD", "name": "MATHEMATICAL BOLD SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CD" }, 120526: { "value": "1D6CE", "name": "MATHEMATICAL BOLD SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CE" }, 120527: { "value": "1D6CF", "name": "MATHEMATICAL BOLD SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CF" }, 120528: { "value": "1D6D0", "name": "MATHEMATICAL BOLD SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D0" }, 120529: { "value": "1D6D1", "name": "MATHEMATICAL BOLD SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D1" }, 120530: { "value": "1D6D2", "name": "MATHEMATICAL BOLD SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D2" }, 120531: { "value": "1D6D3", "name": "MATHEMATICAL BOLD SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D3" }, 120532: { "value": "1D6D4", "name": "MATHEMATICAL BOLD SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D4" }, 120533: { "value": "1D6D5", "name": "MATHEMATICAL BOLD SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D5" }, 120534: { "value": "1D6D6", "name": "MATHEMATICAL BOLD SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D6" }, 120535: { "value": "1D6D7", "name": "MATHEMATICAL BOLD SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D7" }, 120536: { "value": "1D6D8", "name": "MATHEMATICAL BOLD SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D8" }, 120537: { "value": "1D6D9", "name": "MATHEMATICAL BOLD SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D9" }, 120538: { "value": "1D6DA", "name": "MATHEMATICAL BOLD SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DA" }, 120540: { "value": "1D6DC", "name": "MATHEMATICAL BOLD EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DC" }, 120541: { "value": "1D6DD", "name": "MATHEMATICAL BOLD THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DD" }, 120542: { "value": "1D6DE", "name": "MATHEMATICAL BOLD KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DE" }, 120543: { "value": "1D6DF", "name": "MATHEMATICAL BOLD PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DF" }, 120544: { "value": "1D6E0", "name": "MATHEMATICAL BOLD RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6E0" }, 120545: { "value": "1D6E1", "name": "MATHEMATICAL BOLD PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6E1" }, 120572: { "value": "1D6FC", "name": "MATHEMATICAL ITALIC SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6FC" }, 120573: { "value": "1D6FD", "name": "MATHEMATICAL ITALIC SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6FD" }, 120574: { "value": "1D6FE", "name": "MATHEMATICAL ITALIC SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6FE" }, 120575: { "value": "1D6FF", "name": "MATHEMATICAL ITALIC SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6FF" }, 120576: { "value": "1D700", "name": "MATHEMATICAL ITALIC SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD700" }, 120577: { "value": "1D701", "name": "MATHEMATICAL ITALIC SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD701" }, 120578: { "value": "1D702", "name": "MATHEMATICAL ITALIC SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD702" }, 120579: { "value": "1D703", "name": "MATHEMATICAL ITALIC SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD703" }, 120580: { "value": "1D704", "name": "MATHEMATICAL ITALIC SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD704" }, 120581: { "value": "1D705", "name": "MATHEMATICAL ITALIC SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD705" }, 120582: { "value": "1D706", "name": "MATHEMATICAL ITALIC SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD706" }, 120583: { "value": "1D707", "name": "MATHEMATICAL ITALIC SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD707" }, 120584: { "value": "1D708", "name": "MATHEMATICAL ITALIC SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD708" }, 120585: { "value": "1D709", "name": "MATHEMATICAL ITALIC SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD709" }, 120586: { "value": "1D70A", "name": "MATHEMATICAL ITALIC SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70A" }, 120587: { "value": "1D70B", "name": "MATHEMATICAL ITALIC SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70B" }, 120588: { "value": "1D70C", "name": "MATHEMATICAL ITALIC SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70C" }, 120589: { "value": "1D70D", "name": "MATHEMATICAL ITALIC SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70D" }, 120590: { "value": "1D70E", "name": "MATHEMATICAL ITALIC SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70E" }, 120591: { "value": "1D70F", "name": "MATHEMATICAL ITALIC SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70F" }, 120592: { "value": "1D710", "name": "MATHEMATICAL ITALIC SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD710" }, 120593: { "value": "1D711", "name": "MATHEMATICAL ITALIC SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD711" }, 120594: { "value": "1D712", "name": "MATHEMATICAL ITALIC SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD712" }, 120595: { "value": "1D713", "name": "MATHEMATICAL ITALIC SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD713" }, 120596: { "value": "1D714", "name": "MATHEMATICAL ITALIC SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD714" }, 120598: { "value": "1D716", "name": "MATHEMATICAL ITALIC EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD716" }, 120599: { "value": "1D717", "name": "MATHEMATICAL ITALIC THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD717" }, 120600: { "value": "1D718", "name": "MATHEMATICAL ITALIC KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD718" }, 120601: { "value": "1D719", "name": "MATHEMATICAL ITALIC PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD719" }, 120602: { "value": "1D71A", "name": "MATHEMATICAL ITALIC RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD71A" }, 120603: { "value": "1D71B", "name": "MATHEMATICAL ITALIC PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD71B" }, 120630: { "value": "1D736", "name": "MATHEMATICAL BOLD ITALIC SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD736" }, 120631: { "value": "1D737", "name": "MATHEMATICAL BOLD ITALIC SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD737" }, 120632: { "value": "1D738", "name": "MATHEMATICAL BOLD ITALIC SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD738" }, 120633: { "value": "1D739", "name": "MATHEMATICAL BOLD ITALIC SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD739" }, 120634: { "value": "1D73A", "name": "MATHEMATICAL BOLD ITALIC SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73A" }, 120635: { "value": "1D73B", "name": "MATHEMATICAL BOLD ITALIC SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73B" }, 120636: { "value": "1D73C", "name": "MATHEMATICAL BOLD ITALIC SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73C" }, 120637: { "value": "1D73D", "name": "MATHEMATICAL BOLD ITALIC SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73D" }, 120638: { "value": "1D73E", "name": "MATHEMATICAL BOLD ITALIC SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73E" }, 120639: { "value": "1D73F", "name": "MATHEMATICAL BOLD ITALIC SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73F" }, 120640: { "value": "1D740", "name": "MATHEMATICAL BOLD ITALIC SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD740" }, 120641: { "value": "1D741", "name": "MATHEMATICAL BOLD ITALIC SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD741" }, 120642: { "value": "1D742", "name": "MATHEMATICAL BOLD ITALIC SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD742" }, 120643: { "value": "1D743", "name": "MATHEMATICAL BOLD ITALIC SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD743" }, 120644: { "value": "1D744", "name": "MATHEMATICAL BOLD ITALIC SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD744" }, 120645: { "value": "1D745", "name": "MATHEMATICAL BOLD ITALIC SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD745" }, 120646: { "value": "1D746", "name": "MATHEMATICAL BOLD ITALIC SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD746" }, 120647: { "value": "1D747", "name": "MATHEMATICAL BOLD ITALIC SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD747" }, 120648: { "value": "1D748", "name": "MATHEMATICAL BOLD ITALIC SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD748" }, 120649: { "value": "1D749", "name": "MATHEMATICAL BOLD ITALIC SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD749" }, 120650: { "value": "1D74A", "name": "MATHEMATICAL BOLD ITALIC SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74A" }, 120651: { "value": "1D74B", "name": "MATHEMATICAL BOLD ITALIC SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74B" }, 120652: { "value": "1D74C", "name": "MATHEMATICAL BOLD ITALIC SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74C" }, 120653: { "value": "1D74D", "name": "MATHEMATICAL BOLD ITALIC SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74D" }, 120654: { "value": "1D74E", "name": "MATHEMATICAL BOLD ITALIC SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74E" }, 120656: { "value": "1D750", "name": "MATHEMATICAL BOLD ITALIC EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD750" }, 120657: { "value": "1D751", "name": "MATHEMATICAL BOLD ITALIC THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD751" }, 120658: { "value": "1D752", "name": "MATHEMATICAL BOLD ITALIC KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD752" }, 120659: { "value": "1D753", "name": "MATHEMATICAL BOLD ITALIC PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD753" }, 120660: { "value": "1D754", "name": "MATHEMATICAL BOLD ITALIC RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD754" }, 120661: { "value": "1D755", "name": "MATHEMATICAL BOLD ITALIC PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD755" }, 120688: { "value": "1D770", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD770" }, 120689: { "value": "1D771", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD771" }, 120690: { "value": "1D772", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD772" }, 120691: { "value": "1D773", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD773" }, 120692: { "value": "1D774", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD774" }, 120693: { "value": "1D775", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD775" }, 120694: { "value": "1D776", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD776" }, 120695: { "value": "1D777", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD777" }, 120696: { "value": "1D778", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD778" }, 120697: { "value": "1D779", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD779" }, 120698: { "value": "1D77A", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77A" }, 120699: { "value": "1D77B", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77B" }, 120700: { "value": "1D77C", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77C" }, 120701: { "value": "1D77D", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77D" }, 120702: { "value": "1D77E", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77E" }, 120703: { "value": "1D77F", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77F" }, 120704: { "value": "1D780", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD780" }, 120705: { "value": "1D781", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD781" }, 120706: { "value": "1D782", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD782" }, 120707: { "value": "1D783", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD783" }, 120708: { "value": "1D784", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD784" }, 120709: { "value": "1D785", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD785" }, 120710: { "value": "1D786", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD786" }, 120711: { "value": "1D787", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD787" }, 120712: { "value": "1D788", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD788" }, 120714: { "value": "1D78A", "name": "MATHEMATICAL SANS-SERIF BOLD EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78A" }, 120715: { "value": "1D78B", "name": "MATHEMATICAL SANS-SERIF BOLD THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78B" }, 120716: { "value": "1D78C", "name": "MATHEMATICAL SANS-SERIF BOLD KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78C" }, 120717: { "value": "1D78D", "name": "MATHEMATICAL SANS-SERIF BOLD PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78D" }, 120718: { "value": "1D78E", "name": "MATHEMATICAL SANS-SERIF BOLD RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78E" }, 120719: { "value": "1D78F", "name": "MATHEMATICAL SANS-SERIF BOLD PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78F" }, 120746: { "value": "1D7AA", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AA" }, 120747: { "value": "1D7AB", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AB" }, 120748: { "value": "1D7AC", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AC" }, 120749: { "value": "1D7AD", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AD" }, 120750: { "value": "1D7AE", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AE" }, 120751: { "value": "1D7AF", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AF" }, 120752: { "value": "1D7B0", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B0" }, 120753: { "value": "1D7B1", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B1" }, 120754: { "value": "1D7B2", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B2" }, 120755: { "value": "1D7B3", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B3" }, 120756: { "value": "1D7B4", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B4" }, 120757: { "value": "1D7B5", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B5" }, 120758: { "value": "1D7B6", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B6" }, 120759: { "value": "1D7B7", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B7" }, 120760: { "value": "1D7B8", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B8" }, 120761: { "value": "1D7B9", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B9" }, 120762: { "value": "1D7BA", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BA" }, 120763: { "value": "1D7BB", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BB" }, 120764: { "value": "1D7BC", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BC" }, 120765: { "value": "1D7BD", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BD" }, 120766: { "value": "1D7BE", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BE" }, 120767: { "value": "1D7BF", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BF" }, 120768: { "value": "1D7C0", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C0" }, 120769: { "value": "1D7C1", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C1" }, 120770: { "value": "1D7C2", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C2" }, 120772: { "value": "1D7C4", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C4" }, 120773: { "value": "1D7C5", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C5" }, 120774: { "value": "1D7C6", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C6" }, 120775: { "value": "1D7C7", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C7" }, 120776: { "value": "1D7C8", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C8" }, 120777: { "value": "1D7C9", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C9" }, 120779: { "value": "1D7CB", "name": "MATHEMATICAL BOLD SMALL DIGAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03DD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7CB" }, 125218: { "value": "1E922", "name": "ADLAM SMALL LETTER ALIF", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E900", "lowercase_mapping": "", "titlecase_mapping": "1E900", "symbol": "\uE922" }, 125219: { "value": "1E923", "name": "ADLAM SMALL LETTER DAALI", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E901", "lowercase_mapping": "", "titlecase_mapping": "1E901", "symbol": "\uE923" }, 125220: { "value": "1E924", "name": "ADLAM SMALL LETTER LAAM", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E902", "lowercase_mapping": "", "titlecase_mapping": "1E902", "symbol": "\uE924" }, 125221: { "value": "1E925", "name": "ADLAM SMALL LETTER MIIM", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E903", "lowercase_mapping": "", "titlecase_mapping": "1E903", "symbol": "\uE925" }, 125222: { "value": "1E926", "name": "ADLAM SMALL LETTER BA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E904", "lowercase_mapping": "", "titlecase_mapping": "1E904", "symbol": "\uE926" }, 125223: { "value": "1E927", "name": "ADLAM SMALL LETTER SINNYIIYHE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E905", "lowercase_mapping": "", "titlecase_mapping": "1E905", "symbol": "\uE927" }, 125224: { "value": "1E928", "name": "ADLAM SMALL LETTER PE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E906", "lowercase_mapping": "", "titlecase_mapping": "1E906", "symbol": "\uE928" }, 125225: { "value": "1E929", "name": "ADLAM SMALL LETTER BHE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E907", "lowercase_mapping": "", "titlecase_mapping": "1E907", "symbol": "\uE929" }, 125226: { "value": "1E92A", "name": "ADLAM SMALL LETTER RA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E908", "lowercase_mapping": "", "titlecase_mapping": "1E908", "symbol": "\uE92A" }, 125227: { "value": "1E92B", "name": "ADLAM SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E909", "lowercase_mapping": "", "titlecase_mapping": "1E909", "symbol": "\uE92B" }, 125228: { "value": "1E92C", "name": "ADLAM SMALL LETTER FA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90A", "lowercase_mapping": "", "titlecase_mapping": "1E90A", "symbol": "\uE92C" }, 125229: { "value": "1E92D", "name": "ADLAM SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90B", "lowercase_mapping": "", "titlecase_mapping": "1E90B", "symbol": "\uE92D" }, 125230: { "value": "1E92E", "name": "ADLAM SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90C", "lowercase_mapping": "", "titlecase_mapping": "1E90C", "symbol": "\uE92E" }, 125231: { "value": "1E92F", "name": "ADLAM SMALL LETTER DHA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90D", "lowercase_mapping": "", "titlecase_mapping": "1E90D", "symbol": "\uE92F" }, 125232: { "value": "1E930", "name": "ADLAM SMALL LETTER YHE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90E", "lowercase_mapping": "", "titlecase_mapping": "1E90E", "symbol": "\uE930" }, 125233: { "value": "1E931", "name": "ADLAM SMALL LETTER WAW", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90F", "lowercase_mapping": "", "titlecase_mapping": "1E90F", "symbol": "\uE931" }, 125234: { "value": "1E932", "name": "ADLAM SMALL LETTER NUN", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E910", "lowercase_mapping": "", "titlecase_mapping": "1E910", "symbol": "\uE932" }, 125235: { "value": "1E933", "name": "ADLAM SMALL LETTER KAF", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E911", "lowercase_mapping": "", "titlecase_mapping": "1E911", "symbol": "\uE933" }, 125236: { "value": "1E934", "name": "ADLAM SMALL LETTER YA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E912", "lowercase_mapping": "", "titlecase_mapping": "1E912", "symbol": "\uE934" }, 125237: { "value": "1E935", "name": "ADLAM SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E913", "lowercase_mapping": "", "titlecase_mapping": "1E913", "symbol": "\uE935" }, 125238: { "value": "1E936", "name": "ADLAM SMALL LETTER JIIM", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E914", "lowercase_mapping": "", "titlecase_mapping": "1E914", "symbol": "\uE936" }, 125239: { "value": "1E937", "name": "ADLAM SMALL LETTER CHI", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E915", "lowercase_mapping": "", "titlecase_mapping": "1E915", "symbol": "\uE937" }, 125240: { "value": "1E938", "name": "ADLAM SMALL LETTER HA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E916", "lowercase_mapping": "", "titlecase_mapping": "1E916", "symbol": "\uE938" }, 125241: { "value": "1E939", "name": "ADLAM SMALL LETTER QAAF", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E917", "lowercase_mapping": "", "titlecase_mapping": "1E917", "symbol": "\uE939" }, 125242: { "value": "1E93A", "name": "ADLAM SMALL LETTER GA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E918", "lowercase_mapping": "", "titlecase_mapping": "1E918", "symbol": "\uE93A" }, 125243: { "value": "1E93B", "name": "ADLAM SMALL LETTER NYA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E919", "lowercase_mapping": "", "titlecase_mapping": "1E919", "symbol": "\uE93B" }, 125244: { "value": "1E93C", "name": "ADLAM SMALL LETTER TU", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91A", "lowercase_mapping": "", "titlecase_mapping": "1E91A", "symbol": "\uE93C" }, 125245: { "value": "1E93D", "name": "ADLAM SMALL LETTER NHA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91B", "lowercase_mapping": "", "titlecase_mapping": "1E91B", "symbol": "\uE93D" }, 125246: { "value": "1E93E", "name": "ADLAM SMALL LETTER VA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91C", "lowercase_mapping": "", "titlecase_mapping": "1E91C", "symbol": "\uE93E" }, 125247: { "value": "1E93F", "name": "ADLAM SMALL LETTER KHA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91D", "lowercase_mapping": "", "titlecase_mapping": "1E91D", "symbol": "\uE93F" }, 125248: { "value": "1E940", "name": "ADLAM SMALL LETTER GBE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91E", "lowercase_mapping": "", "titlecase_mapping": "1E91E", "symbol": "\uE940" }, 125249: { "value": "1E941", "name": "ADLAM SMALL LETTER ZAL", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91F", "lowercase_mapping": "", "titlecase_mapping": "1E91F", "symbol": "\uE941" }, 125250: { "value": "1E942", "name": "ADLAM SMALL LETTER KPO", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E920", "lowercase_mapping": "", "titlecase_mapping": "1E920", "symbol": "\uE942" }, 125251: { "value": "1E943", "name": "ADLAM SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E921", "lowercase_mapping": "", "titlecase_mapping": "1E921", "symbol": "\uE943" } }; - -},{}],987:[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; }; - +},{}],1000:[function(require,module,exports){ +module.exports={97:{"value":"0061","name":"LATIN SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0041","lowercase_mapping":"","titlecase_mapping":"0041","symbol":"\x61"},98:{"value":"0062","name":"LATIN SMALL LETTER B","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0042","lowercase_mapping":"","titlecase_mapping":"0042","symbol":"\x62"},99:{"value":"0063","name":"LATIN SMALL LETTER C","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0043","lowercase_mapping":"","titlecase_mapping":"0043","symbol":"\x63"},100:{"value":"0064","name":"LATIN SMALL LETTER D","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0044","lowercase_mapping":"","titlecase_mapping":"0044","symbol":"\x64"},101:{"value":"0065","name":"LATIN SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0045","lowercase_mapping":"","titlecase_mapping":"0045","symbol":"\x65"},102:{"value":"0066","name":"LATIN SMALL LETTER F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0046","lowercase_mapping":"","titlecase_mapping":"0046","symbol":"\x66"},103:{"value":"0067","name":"LATIN SMALL LETTER G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0047","lowercase_mapping":"","titlecase_mapping":"0047","symbol":"\x67"},104:{"value":"0068","name":"LATIN SMALL LETTER H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0048","lowercase_mapping":"","titlecase_mapping":"0048","symbol":"\x68"},105:{"value":"0069","name":"LATIN SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0049","lowercase_mapping":"","titlecase_mapping":"0049","symbol":"\x69"},106:{"value":"006A","name":"LATIN SMALL LETTER J","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004A","lowercase_mapping":"","titlecase_mapping":"004A","symbol":"\x6A"},107:{"value":"006B","name":"LATIN SMALL LETTER K","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004B","lowercase_mapping":"","titlecase_mapping":"004B","symbol":"\x6B"},108:{"value":"006C","name":"LATIN SMALL LETTER L","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004C","lowercase_mapping":"","titlecase_mapping":"004C","symbol":"\x6C"},109:{"value":"006D","name":"LATIN SMALL LETTER M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004D","lowercase_mapping":"","titlecase_mapping":"004D","symbol":"\x6D"},110:{"value":"006E","name":"LATIN SMALL LETTER N","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004E","lowercase_mapping":"","titlecase_mapping":"004E","symbol":"\x6E"},111:{"value":"006F","name":"LATIN SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004F","lowercase_mapping":"","titlecase_mapping":"004F","symbol":"\x6F"},112:{"value":"0070","name":"LATIN SMALL LETTER P","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0050","lowercase_mapping":"","titlecase_mapping":"0050","symbol":"\x70"},113:{"value":"0071","name":"LATIN SMALL LETTER Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0051","lowercase_mapping":"","titlecase_mapping":"0051","symbol":"\x71"},114:{"value":"0072","name":"LATIN SMALL LETTER R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0052","lowercase_mapping":"","titlecase_mapping":"0052","symbol":"\x72"},115:{"value":"0073","name":"LATIN SMALL LETTER S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0053","lowercase_mapping":"","titlecase_mapping":"0053","symbol":"\x73"},116:{"value":"0074","name":"LATIN SMALL LETTER T","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0054","lowercase_mapping":"","titlecase_mapping":"0054","symbol":"\x74"},117:{"value":"0075","name":"LATIN SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0055","lowercase_mapping":"","titlecase_mapping":"0055","symbol":"\x75"},118:{"value":"0076","name":"LATIN SMALL LETTER V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0056","lowercase_mapping":"","titlecase_mapping":"0056","symbol":"\x76"},119:{"value":"0077","name":"LATIN SMALL LETTER W","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0057","lowercase_mapping":"","titlecase_mapping":"0057","symbol":"\x77"},120:{"value":"0078","name":"LATIN SMALL LETTER X","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0058","lowercase_mapping":"","titlecase_mapping":"0058","symbol":"\x78"},121:{"value":"0079","name":"LATIN SMALL LETTER Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0059","lowercase_mapping":"","titlecase_mapping":"0059","symbol":"\x79"},122:{"value":"007A","name":"LATIN SMALL LETTER Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"005A","lowercase_mapping":"","titlecase_mapping":"005A","symbol":"\x7A"},181:{"value":"00B5","name":"MICRO SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039C","lowercase_mapping":"","titlecase_mapping":"039C","symbol":"\xB5"},223:{"value":"00DF","name":"LATIN SMALL LETTER SHARP S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\xDF"},224:{"value":"00E0","name":"LATIN SMALL LETTER A WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A GRAVE","comment":"","uppercase_mapping":"00C0","lowercase_mapping":"","titlecase_mapping":"00C0","symbol":"\xE0"},225:{"value":"00E1","name":"LATIN SMALL LETTER A WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A ACUTE","comment":"","uppercase_mapping":"00C1","lowercase_mapping":"","titlecase_mapping":"00C1","symbol":"\xE1"},226:{"value":"00E2","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A CIRCUMFLEX","comment":"","uppercase_mapping":"00C2","lowercase_mapping":"","titlecase_mapping":"00C2","symbol":"\xE2"},227:{"value":"00E3","name":"LATIN SMALL LETTER A WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A TILDE","comment":"","uppercase_mapping":"00C3","lowercase_mapping":"","titlecase_mapping":"00C3","symbol":"\xE3"},228:{"value":"00E4","name":"LATIN SMALL LETTER A WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A DIAERESIS","comment":"","uppercase_mapping":"00C4","lowercase_mapping":"","titlecase_mapping":"00C4","symbol":"\xE4"},229:{"value":"00E5","name":"LATIN SMALL LETTER A WITH RING ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 030A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A RING","comment":"","uppercase_mapping":"00C5","lowercase_mapping":"","titlecase_mapping":"00C5","symbol":"\xE5"},230:{"value":"00E6","name":"LATIN SMALL LETTER AE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A E","comment":"","uppercase_mapping":"00C6","lowercase_mapping":"","titlecase_mapping":"00C6","symbol":"\xE6"},231:{"value":"00E7","name":"LATIN SMALL LETTER C WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C CEDILLA","comment":"","uppercase_mapping":"00C7","lowercase_mapping":"","titlecase_mapping":"00C7","symbol":"\xE7"},232:{"value":"00E8","name":"LATIN SMALL LETTER E WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E GRAVE","comment":"","uppercase_mapping":"00C8","lowercase_mapping":"","titlecase_mapping":"00C8","symbol":"\xE8"},233:{"value":"00E9","name":"LATIN SMALL LETTER E WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E ACUTE","comment":"","uppercase_mapping":"00C9","lowercase_mapping":"","titlecase_mapping":"00C9","symbol":"\xE9"},234:{"value":"00EA","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E CIRCUMFLEX","comment":"","uppercase_mapping":"00CA","lowercase_mapping":"","titlecase_mapping":"00CA","symbol":"\xEA"},235:{"value":"00EB","name":"LATIN SMALL LETTER E WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E DIAERESIS","comment":"","uppercase_mapping":"00CB","lowercase_mapping":"","titlecase_mapping":"00CB","symbol":"\xEB"},236:{"value":"00EC","name":"LATIN SMALL LETTER I WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I GRAVE","comment":"","uppercase_mapping":"00CC","lowercase_mapping":"","titlecase_mapping":"00CC","symbol":"\xEC"},237:{"value":"00ED","name":"LATIN SMALL LETTER I WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I ACUTE","comment":"","uppercase_mapping":"00CD","lowercase_mapping":"","titlecase_mapping":"00CD","symbol":"\xED"},238:{"value":"00EE","name":"LATIN SMALL LETTER I WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I CIRCUMFLEX","comment":"","uppercase_mapping":"00CE","lowercase_mapping":"","titlecase_mapping":"00CE","symbol":"\xEE"},239:{"value":"00EF","name":"LATIN SMALL LETTER I WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I DIAERESIS","comment":"","uppercase_mapping":"00CF","lowercase_mapping":"","titlecase_mapping":"00CF","symbol":"\xEF"},240:{"value":"00F0","name":"LATIN SMALL LETTER ETH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"00D0","lowercase_mapping":"","titlecase_mapping":"00D0","symbol":"\xF0"},241:{"value":"00F1","name":"LATIN SMALL LETTER N WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N TILDE","comment":"","uppercase_mapping":"00D1","lowercase_mapping":"","titlecase_mapping":"00D1","symbol":"\xF1"},242:{"value":"00F2","name":"LATIN SMALL LETTER O WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O GRAVE","comment":"","uppercase_mapping":"00D2","lowercase_mapping":"","titlecase_mapping":"00D2","symbol":"\xF2"},243:{"value":"00F3","name":"LATIN SMALL LETTER O WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O ACUTE","comment":"","uppercase_mapping":"00D3","lowercase_mapping":"","titlecase_mapping":"00D3","symbol":"\xF3"},244:{"value":"00F4","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O CIRCUMFLEX","comment":"","uppercase_mapping":"00D4","lowercase_mapping":"","titlecase_mapping":"00D4","symbol":"\xF4"},245:{"value":"00F5","name":"LATIN SMALL LETTER O WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O TILDE","comment":"","uppercase_mapping":"00D5","lowercase_mapping":"","titlecase_mapping":"00D5","symbol":"\xF5"},246:{"value":"00F6","name":"LATIN SMALL LETTER O WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O DIAERESIS","comment":"","uppercase_mapping":"00D6","lowercase_mapping":"","titlecase_mapping":"00D6","symbol":"\xF6"},248:{"value":"00F8","name":"LATIN SMALL LETTER O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O SLASH","comment":"","uppercase_mapping":"00D8","lowercase_mapping":"","titlecase_mapping":"00D8","symbol":"\xF8"},249:{"value":"00F9","name":"LATIN SMALL LETTER U WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U GRAVE","comment":"","uppercase_mapping":"00D9","lowercase_mapping":"","titlecase_mapping":"00D9","symbol":"\xF9"},250:{"value":"00FA","name":"LATIN SMALL LETTER U WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U ACUTE","comment":"","uppercase_mapping":"00DA","lowercase_mapping":"","titlecase_mapping":"00DA","symbol":"\xFA"},251:{"value":"00FB","name":"LATIN SMALL LETTER U WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U CIRCUMFLEX","comment":"","uppercase_mapping":"00DB","lowercase_mapping":"","titlecase_mapping":"00DB","symbol":"\xFB"},252:{"value":"00FC","name":"LATIN SMALL LETTER U WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS","comment":"","uppercase_mapping":"00DC","lowercase_mapping":"","titlecase_mapping":"00DC","symbol":"\xFC"},253:{"value":"00FD","name":"LATIN SMALL LETTER Y WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Y ACUTE","comment":"","uppercase_mapping":"00DD","lowercase_mapping":"","titlecase_mapping":"00DD","symbol":"\xFD"},254:{"value":"00FE","name":"LATIN SMALL LETTER THORN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"00DE","lowercase_mapping":"","titlecase_mapping":"00DE","symbol":"\xFE"},255:{"value":"00FF","name":"LATIN SMALL LETTER Y WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Y DIAERESIS","comment":"","uppercase_mapping":"0178","lowercase_mapping":"","titlecase_mapping":"0178","symbol":"\xFF"},257:{"value":"0101","name":"LATIN SMALL LETTER A WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A MACRON","comment":"","uppercase_mapping":"0100","lowercase_mapping":"","titlecase_mapping":"0100","symbol":"\u0101"},259:{"value":"0103","name":"LATIN SMALL LETTER A WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A BREVE","comment":"","uppercase_mapping":"0102","lowercase_mapping":"","titlecase_mapping":"0102","symbol":"\u0103"},261:{"value":"0105","name":"LATIN SMALL LETTER A WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A OGONEK","comment":"","uppercase_mapping":"0104","lowercase_mapping":"","titlecase_mapping":"0104","symbol":"\u0105"},263:{"value":"0107","name":"LATIN SMALL LETTER C WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C ACUTE","comment":"","uppercase_mapping":"0106","lowercase_mapping":"","titlecase_mapping":"0106","symbol":"\u0107"},265:{"value":"0109","name":"LATIN SMALL LETTER C WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C CIRCUMFLEX","comment":"","uppercase_mapping":"0108","lowercase_mapping":"","titlecase_mapping":"0108","symbol":"\u0109"},267:{"value":"010B","name":"LATIN SMALL LETTER C WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C DOT","comment":"","uppercase_mapping":"010A","lowercase_mapping":"","titlecase_mapping":"010A","symbol":"\u010B"},269:{"value":"010D","name":"LATIN SMALL LETTER C WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C HACEK","comment":"","uppercase_mapping":"010C","lowercase_mapping":"","titlecase_mapping":"010C","symbol":"\u010D"},271:{"value":"010F","name":"LATIN SMALL LETTER D WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D HACEK","comment":"","uppercase_mapping":"010E","lowercase_mapping":"","titlecase_mapping":"010E","symbol":"\u010F"},273:{"value":"0111","name":"LATIN SMALL LETTER D WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D BAR","comment":"","uppercase_mapping":"0110","lowercase_mapping":"","titlecase_mapping":"0110","symbol":"\u0111"},275:{"value":"0113","name":"LATIN SMALL LETTER E WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E MACRON","comment":"","uppercase_mapping":"0112","lowercase_mapping":"","titlecase_mapping":"0112","symbol":"\u0113"},277:{"value":"0115","name":"LATIN SMALL LETTER E WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E BREVE","comment":"","uppercase_mapping":"0114","lowercase_mapping":"","titlecase_mapping":"0114","symbol":"\u0115"},279:{"value":"0117","name":"LATIN SMALL LETTER E WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E DOT","comment":"","uppercase_mapping":"0116","lowercase_mapping":"","titlecase_mapping":"0116","symbol":"\u0117"},281:{"value":"0119","name":"LATIN SMALL LETTER E WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E OGONEK","comment":"","uppercase_mapping":"0118","lowercase_mapping":"","titlecase_mapping":"0118","symbol":"\u0119"},283:{"value":"011B","name":"LATIN SMALL LETTER E WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E HACEK","comment":"","uppercase_mapping":"011A","lowercase_mapping":"","titlecase_mapping":"011A","symbol":"\u011B"},285:{"value":"011D","name":"LATIN SMALL LETTER G WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G CIRCUMFLEX","comment":"","uppercase_mapping":"011C","lowercase_mapping":"","titlecase_mapping":"011C","symbol":"\u011D"},287:{"value":"011F","name":"LATIN SMALL LETTER G WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G BREVE","comment":"","uppercase_mapping":"011E","lowercase_mapping":"","titlecase_mapping":"011E","symbol":"\u011F"},289:{"value":"0121","name":"LATIN SMALL LETTER G WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G DOT","comment":"","uppercase_mapping":"0120","lowercase_mapping":"","titlecase_mapping":"0120","symbol":"\u0121"},291:{"value":"0123","name":"LATIN SMALL LETTER G WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G CEDILLA","comment":"","uppercase_mapping":"0122","lowercase_mapping":"","titlecase_mapping":"0122","symbol":"\u0123"},293:{"value":"0125","name":"LATIN SMALL LETTER H WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER H CIRCUMFLEX","comment":"","uppercase_mapping":"0124","lowercase_mapping":"","titlecase_mapping":"0124","symbol":"\u0125"},295:{"value":"0127","name":"LATIN SMALL LETTER H WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER H BAR","comment":"","uppercase_mapping":"0126","lowercase_mapping":"","titlecase_mapping":"0126","symbol":"\u0127"},297:{"value":"0129","name":"LATIN SMALL LETTER I WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I TILDE","comment":"","uppercase_mapping":"0128","lowercase_mapping":"","titlecase_mapping":"0128","symbol":"\u0129"},299:{"value":"012B","name":"LATIN SMALL LETTER I WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I MACRON","comment":"","uppercase_mapping":"012A","lowercase_mapping":"","titlecase_mapping":"012A","symbol":"\u012B"},301:{"value":"012D","name":"LATIN SMALL LETTER I WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I BREVE","comment":"","uppercase_mapping":"012C","lowercase_mapping":"","titlecase_mapping":"012C","symbol":"\u012D"},303:{"value":"012F","name":"LATIN SMALL LETTER I WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I OGONEK","comment":"","uppercase_mapping":"012E","lowercase_mapping":"","titlecase_mapping":"012E","symbol":"\u012F"},305:{"value":"0131","name":"LATIN SMALL LETTER DOTLESS I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0049","lowercase_mapping":"","titlecase_mapping":"0049","symbol":"\u0131"},307:{"value":"0133","name":"LATIN SMALL LIGATURE IJ","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I J","comment":"","uppercase_mapping":"0132","lowercase_mapping":"","titlecase_mapping":"0132","symbol":"\u0133"},309:{"value":"0135","name":"LATIN SMALL LETTER J WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006A 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER J CIRCUMFLEX","comment":"","uppercase_mapping":"0134","lowercase_mapping":"","titlecase_mapping":"0134","symbol":"\u0135"},311:{"value":"0137","name":"LATIN SMALL LETTER K WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER K CEDILLA","comment":"","uppercase_mapping":"0136","lowercase_mapping":"","titlecase_mapping":"0136","symbol":"\u0137"},312:{"value":"0138","name":"LATIN SMALL LETTER KRA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0138"},314:{"value":"013A","name":"LATIN SMALL LETTER L WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L ACUTE","comment":"","uppercase_mapping":"0139","lowercase_mapping":"","titlecase_mapping":"0139","symbol":"\u013A"},316:{"value":"013C","name":"LATIN SMALL LETTER L WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L CEDILLA","comment":"","uppercase_mapping":"013B","lowercase_mapping":"","titlecase_mapping":"013B","symbol":"\u013C"},318:{"value":"013E","name":"LATIN SMALL LETTER L WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L HACEK","comment":"","uppercase_mapping":"013D","lowercase_mapping":"","titlecase_mapping":"013D","symbol":"\u013E"},320:{"value":"0140","name":"LATIN SMALL LETTER L WITH MIDDLE DOT","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C 00B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"013F","lowercase_mapping":"","titlecase_mapping":"013F","symbol":"\u0140"},322:{"value":"0142","name":"LATIN SMALL LETTER L WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L SLASH","comment":"","uppercase_mapping":"0141","lowercase_mapping":"","titlecase_mapping":"0141","symbol":"\u0142"},324:{"value":"0144","name":"LATIN SMALL LETTER N WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N ACUTE","comment":"","uppercase_mapping":"0143","lowercase_mapping":"","titlecase_mapping":"0143","symbol":"\u0144"},326:{"value":"0146","name":"LATIN SMALL LETTER N WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N CEDILLA","comment":"","uppercase_mapping":"0145","lowercase_mapping":"","titlecase_mapping":"0145","symbol":"\u0146"},328:{"value":"0148","name":"LATIN SMALL LETTER N WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N HACEK","comment":"","uppercase_mapping":"0147","lowercase_mapping":"","titlecase_mapping":"0147","symbol":"\u0148"},329:{"value":"0149","name":"LATIN SMALL LETTER N PRECEDED BY APOSTROPHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 02BC 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER APOSTROPHE N","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0149"},331:{"value":"014B","name":"LATIN SMALL LETTER ENG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"014A","lowercase_mapping":"","titlecase_mapping":"014A","symbol":"\u014B"},333:{"value":"014D","name":"LATIN SMALL LETTER O WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O MACRON","comment":"","uppercase_mapping":"014C","lowercase_mapping":"","titlecase_mapping":"014C","symbol":"\u014D"},335:{"value":"014F","name":"LATIN SMALL LETTER O WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O BREVE","comment":"","uppercase_mapping":"014E","lowercase_mapping":"","titlecase_mapping":"014E","symbol":"\u014F"},337:{"value":"0151","name":"LATIN SMALL LETTER O WITH DOUBLE ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 030B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O DOUBLE ACUTE","comment":"","uppercase_mapping":"0150","lowercase_mapping":"","titlecase_mapping":"0150","symbol":"\u0151"},339:{"value":"0153","name":"LATIN SMALL LIGATURE OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O E","comment":"","uppercase_mapping":"0152","lowercase_mapping":"","titlecase_mapping":"0152","symbol":"\u0153"},341:{"value":"0155","name":"LATIN SMALL LETTER R WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER R ACUTE","comment":"","uppercase_mapping":"0154","lowercase_mapping":"","titlecase_mapping":"0154","symbol":"\u0155"},343:{"value":"0157","name":"LATIN SMALL LETTER R WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER R CEDILLA","comment":"","uppercase_mapping":"0156","lowercase_mapping":"","titlecase_mapping":"0156","symbol":"\u0157"},345:{"value":"0159","name":"LATIN SMALL LETTER R WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER R HACEK","comment":"","uppercase_mapping":"0158","lowercase_mapping":"","titlecase_mapping":"0158","symbol":"\u0159"},347:{"value":"015B","name":"LATIN SMALL LETTER S WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S ACUTE","comment":"","uppercase_mapping":"015A","lowercase_mapping":"","titlecase_mapping":"015A","symbol":"\u015B"},349:{"value":"015D","name":"LATIN SMALL LETTER S WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S CIRCUMFLEX","comment":"","uppercase_mapping":"015C","lowercase_mapping":"","titlecase_mapping":"015C","symbol":"\u015D"},351:{"value":"015F","name":"LATIN SMALL LETTER S WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S CEDILLA","comment":"","uppercase_mapping":"015E","lowercase_mapping":"","titlecase_mapping":"015E","symbol":"\u015F"},353:{"value":"0161","name":"LATIN SMALL LETTER S WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S HACEK","comment":"","uppercase_mapping":"0160","lowercase_mapping":"","titlecase_mapping":"0160","symbol":"\u0161"},355:{"value":"0163","name":"LATIN SMALL LETTER T WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T CEDILLA","comment":"","uppercase_mapping":"0162","lowercase_mapping":"","titlecase_mapping":"0162","symbol":"\u0163"},357:{"value":"0165","name":"LATIN SMALL LETTER T WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T HACEK","comment":"","uppercase_mapping":"0164","lowercase_mapping":"","titlecase_mapping":"0164","symbol":"\u0165"},359:{"value":"0167","name":"LATIN SMALL LETTER T WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T BAR","comment":"","uppercase_mapping":"0166","lowercase_mapping":"","titlecase_mapping":"0166","symbol":"\u0167"},361:{"value":"0169","name":"LATIN SMALL LETTER U WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U TILDE","comment":"","uppercase_mapping":"0168","lowercase_mapping":"","titlecase_mapping":"0168","symbol":"\u0169"},363:{"value":"016B","name":"LATIN SMALL LETTER U WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U MACRON","comment":"","uppercase_mapping":"016A","lowercase_mapping":"","titlecase_mapping":"016A","symbol":"\u016B"},365:{"value":"016D","name":"LATIN SMALL LETTER U WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U BREVE","comment":"","uppercase_mapping":"016C","lowercase_mapping":"","titlecase_mapping":"016C","symbol":"\u016D"},367:{"value":"016F","name":"LATIN SMALL LETTER U WITH RING ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 030A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U RING","comment":"","uppercase_mapping":"016E","lowercase_mapping":"","titlecase_mapping":"016E","symbol":"\u016F"},369:{"value":"0171","name":"LATIN SMALL LETTER U WITH DOUBLE ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 030B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DOUBLE ACUTE","comment":"","uppercase_mapping":"0170","lowercase_mapping":"","titlecase_mapping":"0170","symbol":"\u0171"},371:{"value":"0173","name":"LATIN SMALL LETTER U WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U OGONEK","comment":"","uppercase_mapping":"0172","lowercase_mapping":"","titlecase_mapping":"0172","symbol":"\u0173"},373:{"value":"0175","name":"LATIN SMALL LETTER W WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER W CIRCUMFLEX","comment":"","uppercase_mapping":"0174","lowercase_mapping":"","titlecase_mapping":"0174","symbol":"\u0175"},375:{"value":"0177","name":"LATIN SMALL LETTER Y WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Y CIRCUMFLEX","comment":"","uppercase_mapping":"0176","lowercase_mapping":"","titlecase_mapping":"0176","symbol":"\u0177"},378:{"value":"017A","name":"LATIN SMALL LETTER Z WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z ACUTE","comment":"","uppercase_mapping":"0179","lowercase_mapping":"","titlecase_mapping":"0179","symbol":"\u017A"},380:{"value":"017C","name":"LATIN SMALL LETTER Z WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z DOT","comment":"","uppercase_mapping":"017B","lowercase_mapping":"","titlecase_mapping":"017B","symbol":"\u017C"},382:{"value":"017E","name":"LATIN SMALL LETTER Z WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z HACEK","comment":"","uppercase_mapping":"017D","lowercase_mapping":"","titlecase_mapping":"017D","symbol":"\u017E"},383:{"value":"017F","name":"LATIN SMALL LETTER LONG S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0053","lowercase_mapping":"","titlecase_mapping":"0053","symbol":"\u017F"},384:{"value":"0180","name":"LATIN SMALL LETTER B WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER B BAR","comment":"","uppercase_mapping":"0243","lowercase_mapping":"","titlecase_mapping":"0243","symbol":"\u0180"},387:{"value":"0183","name":"LATIN SMALL LETTER B WITH TOPBAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER B TOPBAR","comment":"","uppercase_mapping":"0182","lowercase_mapping":"","titlecase_mapping":"0182","symbol":"\u0183"},389:{"value":"0185","name":"LATIN SMALL LETTER TONE SIX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0184","lowercase_mapping":"","titlecase_mapping":"0184","symbol":"\u0185"},392:{"value":"0188","name":"LATIN SMALL LETTER C WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C HOOK","comment":"","uppercase_mapping":"0187","lowercase_mapping":"","titlecase_mapping":"0187","symbol":"\u0188"},396:{"value":"018C","name":"LATIN SMALL LETTER D WITH TOPBAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D TOPBAR","comment":"","uppercase_mapping":"018B","lowercase_mapping":"","titlecase_mapping":"018B","symbol":"\u018C"},397:{"value":"018D","name":"LATIN SMALL LETTER TURNED DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u018D"},402:{"value":"0192","name":"LATIN SMALL LETTER F WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER SCRIPT F","comment":"","uppercase_mapping":"0191","lowercase_mapping":"","titlecase_mapping":"0191","symbol":"\u0192"},405:{"value":"0195","name":"LATIN SMALL LETTER HV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER H V","comment":"","uppercase_mapping":"01F6","lowercase_mapping":"","titlecase_mapping":"01F6","symbol":"\u0195"},409:{"value":"0199","name":"LATIN SMALL LETTER K WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER K HOOK","comment":"","uppercase_mapping":"0198","lowercase_mapping":"","titlecase_mapping":"0198","symbol":"\u0199"},410:{"value":"019A","name":"LATIN SMALL LETTER L WITH BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER BARRED L","comment":"","uppercase_mapping":"023D","lowercase_mapping":"","titlecase_mapping":"023D","symbol":"\u019A"},411:{"value":"019B","name":"LATIN SMALL LETTER LAMBDA WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER BARRED LAMBDA","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u019B"},414:{"value":"019E","name":"LATIN SMALL LETTER N WITH LONG RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0220","lowercase_mapping":"","titlecase_mapping":"0220","symbol":"\u019E"},417:{"value":"01A1","name":"LATIN SMALL LETTER O WITH HORN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 031B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O HORN","comment":"","uppercase_mapping":"01A0","lowercase_mapping":"","titlecase_mapping":"01A0","symbol":"\u01A1"},419:{"value":"01A3","name":"LATIN SMALL LETTER OI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O I","comment":"","uppercase_mapping":"01A2","lowercase_mapping":"","titlecase_mapping":"01A2","symbol":"\u01A3"},421:{"value":"01A5","name":"LATIN SMALL LETTER P WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER P HOOK","comment":"","uppercase_mapping":"01A4","lowercase_mapping":"","titlecase_mapping":"01A4","symbol":"\u01A5"},424:{"value":"01A8","name":"LATIN SMALL LETTER TONE TWO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01A7","lowercase_mapping":"","titlecase_mapping":"01A7","symbol":"\u01A8"},426:{"value":"01AA","name":"LATIN LETTER REVERSED ESH LOOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01AA"},427:{"value":"01AB","name":"LATIN SMALL LETTER T WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T PALATAL HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01AB"},429:{"value":"01AD","name":"LATIN SMALL LETTER T WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T HOOK","comment":"","uppercase_mapping":"01AC","lowercase_mapping":"","titlecase_mapping":"01AC","symbol":"\u01AD"},432:{"value":"01B0","name":"LATIN SMALL LETTER U WITH HORN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 031B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U HORN","comment":"","uppercase_mapping":"01AF","lowercase_mapping":"","titlecase_mapping":"01AF","symbol":"\u01B0"},436:{"value":"01B4","name":"LATIN SMALL LETTER Y WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Y HOOK","comment":"","uppercase_mapping":"01B3","lowercase_mapping":"","titlecase_mapping":"01B3","symbol":"\u01B4"},438:{"value":"01B6","name":"LATIN SMALL LETTER Z WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z BAR","comment":"","uppercase_mapping":"01B5","lowercase_mapping":"","titlecase_mapping":"01B5","symbol":"\u01B6"},441:{"value":"01B9","name":"LATIN SMALL LETTER EZH REVERSED","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER REVERSED YOGH","comment":"","uppercase_mapping":"01B8","lowercase_mapping":"","titlecase_mapping":"01B8","symbol":"\u01B9"},442:{"value":"01BA","name":"LATIN SMALL LETTER EZH WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER YOGH WITH TAIL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01BA"},445:{"value":"01BD","name":"LATIN SMALL LETTER TONE FIVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01BC","lowercase_mapping":"","titlecase_mapping":"01BC","symbol":"\u01BD"},446:{"value":"01BE","name":"LATIN LETTER INVERTED GLOTTAL STOP WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER INVERTED GLOTTAL STOP BAR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01BE"},447:{"value":"01BF","name":"LATIN LETTER WYNN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01F7","lowercase_mapping":"","titlecase_mapping":"01F7","symbol":"\u01BF"},454:{"value":"01C6","name":"LATIN SMALL LETTER DZ WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064 017E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D Z HACEK","comment":"","uppercase_mapping":"01C4","lowercase_mapping":"","titlecase_mapping":"01C5","symbol":"\u01C6"},457:{"value":"01C9","name":"LATIN SMALL LETTER LJ","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L J","comment":"","uppercase_mapping":"01C7","lowercase_mapping":"","titlecase_mapping":"01C8","symbol":"\u01C9"},460:{"value":"01CC","name":"LATIN SMALL LETTER NJ","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N J","comment":"","uppercase_mapping":"01CA","lowercase_mapping":"","titlecase_mapping":"01CB","symbol":"\u01CC"},462:{"value":"01CE","name":"LATIN SMALL LETTER A WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A HACEK","comment":"","uppercase_mapping":"01CD","lowercase_mapping":"","titlecase_mapping":"01CD","symbol":"\u01CE"},464:{"value":"01D0","name":"LATIN SMALL LETTER I WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I HACEK","comment":"","uppercase_mapping":"01CF","lowercase_mapping":"","titlecase_mapping":"01CF","symbol":"\u01D0"},466:{"value":"01D2","name":"LATIN SMALL LETTER O WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O HACEK","comment":"","uppercase_mapping":"01D1","lowercase_mapping":"","titlecase_mapping":"01D1","symbol":"\u01D2"},468:{"value":"01D4","name":"LATIN SMALL LETTER U WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U HACEK","comment":"","uppercase_mapping":"01D3","lowercase_mapping":"","titlecase_mapping":"01D3","symbol":"\u01D4"},470:{"value":"01D6","name":"LATIN SMALL LETTER U WITH DIAERESIS AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00FC 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS MACRON","comment":"","uppercase_mapping":"01D5","lowercase_mapping":"","titlecase_mapping":"01D5","symbol":"\u01D6"},472:{"value":"01D8","name":"LATIN SMALL LETTER U WITH DIAERESIS AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00FC 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS ACUTE","comment":"","uppercase_mapping":"01D7","lowercase_mapping":"","titlecase_mapping":"01D7","symbol":"\u01D8"},474:{"value":"01DA","name":"LATIN SMALL LETTER U WITH DIAERESIS AND CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00FC 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS HACEK","comment":"","uppercase_mapping":"01D9","lowercase_mapping":"","titlecase_mapping":"01D9","symbol":"\u01DA"},476:{"value":"01DC","name":"LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00FC 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS GRAVE","comment":"","uppercase_mapping":"01DB","lowercase_mapping":"","titlecase_mapping":"01DB","symbol":"\u01DC"},477:{"value":"01DD","name":"LATIN SMALL LETTER TURNED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"018E","lowercase_mapping":"","titlecase_mapping":"018E","symbol":"\u01DD"},479:{"value":"01DF","name":"LATIN SMALL LETTER A WITH DIAERESIS AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E4 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A DIAERESIS MACRON","comment":"","uppercase_mapping":"01DE","lowercase_mapping":"","titlecase_mapping":"01DE","symbol":"\u01DF"},481:{"value":"01E1","name":"LATIN SMALL LETTER A WITH DOT ABOVE AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0227 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A DOT MACRON","comment":"","uppercase_mapping":"01E0","lowercase_mapping":"","titlecase_mapping":"01E0","symbol":"\u01E1"},483:{"value":"01E3","name":"LATIN SMALL LETTER AE WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E6 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A E MACRON","comment":"","uppercase_mapping":"01E2","lowercase_mapping":"","titlecase_mapping":"01E2","symbol":"\u01E3"},485:{"value":"01E5","name":"LATIN SMALL LETTER G WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G BAR","comment":"","uppercase_mapping":"01E4","lowercase_mapping":"","titlecase_mapping":"01E4","symbol":"\u01E5"},487:{"value":"01E7","name":"LATIN SMALL LETTER G WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G HACEK","comment":"","uppercase_mapping":"01E6","lowercase_mapping":"","titlecase_mapping":"01E6","symbol":"\u01E7"},489:{"value":"01E9","name":"LATIN SMALL LETTER K WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER K HACEK","comment":"","uppercase_mapping":"01E8","lowercase_mapping":"","titlecase_mapping":"01E8","symbol":"\u01E9"},491:{"value":"01EB","name":"LATIN SMALL LETTER O WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O OGONEK","comment":"","uppercase_mapping":"01EA","lowercase_mapping":"","titlecase_mapping":"01EA","symbol":"\u01EB"},493:{"value":"01ED","name":"LATIN SMALL LETTER O WITH OGONEK AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01EB 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O OGONEK MACRON","comment":"","uppercase_mapping":"01EC","lowercase_mapping":"","titlecase_mapping":"01EC","symbol":"\u01ED"},495:{"value":"01EF","name":"LATIN SMALL LETTER EZH WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0292 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER YOGH HACEK","comment":"","uppercase_mapping":"01EE","lowercase_mapping":"","titlecase_mapping":"01EE","symbol":"\u01EF"},496:{"value":"01F0","name":"LATIN SMALL LETTER J WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006A 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER J HACEK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01F0"},499:{"value":"01F3","name":"LATIN SMALL LETTER DZ","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01F1","lowercase_mapping":"","titlecase_mapping":"01F2","symbol":"\u01F3"},501:{"value":"01F5","name":"LATIN SMALL LETTER G WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01F4","lowercase_mapping":"","titlecase_mapping":"01F4","symbol":"\u01F5"},505:{"value":"01F9","name":"LATIN SMALL LETTER N WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01F8","lowercase_mapping":"","titlecase_mapping":"01F8","symbol":"\u01F9"},507:{"value":"01FB","name":"LATIN SMALL LETTER A WITH RING ABOVE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E5 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01FA","lowercase_mapping":"","titlecase_mapping":"01FA","symbol":"\u01FB"},509:{"value":"01FD","name":"LATIN SMALL LETTER AE WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E6 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01FC","lowercase_mapping":"","titlecase_mapping":"01FC","symbol":"\u01FD"},511:{"value":"01FF","name":"LATIN SMALL LETTER O WITH STROKE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F8 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01FE","lowercase_mapping":"","titlecase_mapping":"01FE","symbol":"\u01FF"},513:{"value":"0201","name":"LATIN SMALL LETTER A WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0200","lowercase_mapping":"","titlecase_mapping":"0200","symbol":"\u0201"},515:{"value":"0203","name":"LATIN SMALL LETTER A WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0202","lowercase_mapping":"","titlecase_mapping":"0202","symbol":"\u0203"},517:{"value":"0205","name":"LATIN SMALL LETTER E WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0204","lowercase_mapping":"","titlecase_mapping":"0204","symbol":"\u0205"},519:{"value":"0207","name":"LATIN SMALL LETTER E WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0206","lowercase_mapping":"","titlecase_mapping":"0206","symbol":"\u0207"},521:{"value":"0209","name":"LATIN SMALL LETTER I WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0208","lowercase_mapping":"","titlecase_mapping":"0208","symbol":"\u0209"},523:{"value":"020B","name":"LATIN SMALL LETTER I WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"020A","lowercase_mapping":"","titlecase_mapping":"020A","symbol":"\u020B"},525:{"value":"020D","name":"LATIN SMALL LETTER O WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"020C","lowercase_mapping":"","titlecase_mapping":"020C","symbol":"\u020D"},527:{"value":"020F","name":"LATIN SMALL LETTER O WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"020E","lowercase_mapping":"","titlecase_mapping":"020E","symbol":"\u020F"},529:{"value":"0211","name":"LATIN SMALL LETTER R WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0210","lowercase_mapping":"","titlecase_mapping":"0210","symbol":"\u0211"},531:{"value":"0213","name":"LATIN SMALL LETTER R WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0212","lowercase_mapping":"","titlecase_mapping":"0212","symbol":"\u0213"},533:{"value":"0215","name":"LATIN SMALL LETTER U WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0214","lowercase_mapping":"","titlecase_mapping":"0214","symbol":"\u0215"},535:{"value":"0217","name":"LATIN SMALL LETTER U WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0216","lowercase_mapping":"","titlecase_mapping":"0216","symbol":"\u0217"},537:{"value":"0219","name":"LATIN SMALL LETTER S WITH COMMA BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0326","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0218","lowercase_mapping":"","titlecase_mapping":"0218","symbol":"\u0219"},539:{"value":"021B","name":"LATIN SMALL LETTER T WITH COMMA BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0326","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"021A","lowercase_mapping":"","titlecase_mapping":"021A","symbol":"\u021B"},541:{"value":"021D","name":"LATIN SMALL LETTER YOGH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"021C","lowercase_mapping":"","titlecase_mapping":"021C","symbol":"\u021D"},543:{"value":"021F","name":"LATIN SMALL LETTER H WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"021E","lowercase_mapping":"","titlecase_mapping":"021E","symbol":"\u021F"},545:{"value":"0221","name":"LATIN SMALL LETTER D WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0221"},547:{"value":"0223","name":"LATIN SMALL LETTER OU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0222","lowercase_mapping":"","titlecase_mapping":"0222","symbol":"\u0223"},549:{"value":"0225","name":"LATIN SMALL LETTER Z WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0224","lowercase_mapping":"","titlecase_mapping":"0224","symbol":"\u0225"},551:{"value":"0227","name":"LATIN SMALL LETTER A WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0226","lowercase_mapping":"","titlecase_mapping":"0226","symbol":"\u0227"},553:{"value":"0229","name":"LATIN SMALL LETTER E WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0228","lowercase_mapping":"","titlecase_mapping":"0228","symbol":"\u0229"},555:{"value":"022B","name":"LATIN SMALL LETTER O WITH DIAERESIS AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F6 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"022A","lowercase_mapping":"","titlecase_mapping":"022A","symbol":"\u022B"},557:{"value":"022D","name":"LATIN SMALL LETTER O WITH TILDE AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F5 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"022C","lowercase_mapping":"","titlecase_mapping":"022C","symbol":"\u022D"},559:{"value":"022F","name":"LATIN SMALL LETTER O WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"022E","lowercase_mapping":"","titlecase_mapping":"022E","symbol":"\u022F"},561:{"value":"0231","name":"LATIN SMALL LETTER O WITH DOT ABOVE AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"022F 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0230","lowercase_mapping":"","titlecase_mapping":"0230","symbol":"\u0231"},563:{"value":"0233","name":"LATIN SMALL LETTER Y WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0232","lowercase_mapping":"","titlecase_mapping":"0232","symbol":"\u0233"},564:{"value":"0234","name":"LATIN SMALL LETTER L WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0234"},565:{"value":"0235","name":"LATIN SMALL LETTER N WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0235"},566:{"value":"0236","name":"LATIN SMALL LETTER T WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0236"},567:{"value":"0237","name":"LATIN SMALL LETTER DOTLESS J","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0237"},568:{"value":"0238","name":"LATIN SMALL LETTER DB DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0238"},569:{"value":"0239","name":"LATIN SMALL LETTER QP DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0239"},572:{"value":"023C","name":"LATIN SMALL LETTER C WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"023B","lowercase_mapping":"","titlecase_mapping":"023B","symbol":"\u023C"},575:{"value":"023F","name":"LATIN SMALL LETTER S WITH SWASH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C7E","lowercase_mapping":"","titlecase_mapping":"2C7E","symbol":"\u023F"},576:{"value":"0240","name":"LATIN SMALL LETTER Z WITH SWASH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C7F","lowercase_mapping":"","titlecase_mapping":"2C7F","symbol":"\u0240"},578:{"value":"0242","name":"LATIN SMALL LETTER GLOTTAL STOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0241","lowercase_mapping":"","titlecase_mapping":"0241","symbol":"\u0242"},583:{"value":"0247","name":"LATIN SMALL LETTER E WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0246","lowercase_mapping":"","titlecase_mapping":"0246","symbol":"\u0247"},585:{"value":"0249","name":"LATIN SMALL LETTER J WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0248","lowercase_mapping":"","titlecase_mapping":"0248","symbol":"\u0249"},587:{"value":"024B","name":"LATIN SMALL LETTER Q WITH HOOK TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"024A","lowercase_mapping":"","titlecase_mapping":"024A","symbol":"\u024B"},589:{"value":"024D","name":"LATIN SMALL LETTER R WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"024C","lowercase_mapping":"","titlecase_mapping":"024C","symbol":"\u024D"},591:{"value":"024F","name":"LATIN SMALL LETTER Y WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"024E","lowercase_mapping":"","titlecase_mapping":"024E","symbol":"\u024F"},592:{"value":"0250","name":"LATIN SMALL LETTER TURNED A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C6F","lowercase_mapping":"","titlecase_mapping":"2C6F","symbol":"\u0250"},593:{"value":"0251","name":"LATIN SMALL LETTER ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER SCRIPT A","comment":"","uppercase_mapping":"2C6D","lowercase_mapping":"","titlecase_mapping":"2C6D","symbol":"\u0251"},594:{"value":"0252","name":"LATIN SMALL LETTER TURNED ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER TURNED SCRIPT A","comment":"","uppercase_mapping":"2C70","lowercase_mapping":"","titlecase_mapping":"2C70","symbol":"\u0252"},595:{"value":"0253","name":"LATIN SMALL LETTER B WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER B HOOK","comment":"","uppercase_mapping":"0181","lowercase_mapping":"","titlecase_mapping":"0181","symbol":"\u0253"},596:{"value":"0254","name":"LATIN SMALL LETTER OPEN O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0186","lowercase_mapping":"","titlecase_mapping":"0186","symbol":"\u0254"},597:{"value":"0255","name":"LATIN SMALL LETTER C WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0255"},598:{"value":"0256","name":"LATIN SMALL LETTER D WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D RETROFLEX HOOK","comment":"","uppercase_mapping":"0189","lowercase_mapping":"","titlecase_mapping":"0189","symbol":"\u0256"},599:{"value":"0257","name":"LATIN SMALL LETTER D WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D HOOK","comment":"","uppercase_mapping":"018A","lowercase_mapping":"","titlecase_mapping":"018A","symbol":"\u0257"},600:{"value":"0258","name":"LATIN SMALL LETTER REVERSED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0258"},601:{"value":"0259","name":"LATIN SMALL LETTER SCHWA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"018F","lowercase_mapping":"","titlecase_mapping":"018F","symbol":"\u0259"},602:{"value":"025A","name":"LATIN SMALL LETTER SCHWA WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER SCHWA HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u025A"},603:{"value":"025B","name":"LATIN SMALL LETTER OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER EPSILON","comment":"","uppercase_mapping":"0190","lowercase_mapping":"","titlecase_mapping":"0190","symbol":"\u025B"},604:{"value":"025C","name":"LATIN SMALL LETTER REVERSED OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER REVERSED EPSILON","comment":"","uppercase_mapping":"A7AB","lowercase_mapping":"","titlecase_mapping":"A7AB","symbol":"\u025C"},605:{"value":"025D","name":"LATIN SMALL LETTER REVERSED OPEN E WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER REVERSED EPSILON HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u025D"},606:{"value":"025E","name":"LATIN SMALL LETTER CLOSED REVERSED OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER CLOSED REVERSED EPSILON","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u025E"},607:{"value":"025F","name":"LATIN SMALL LETTER DOTLESS J WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER DOTLESS J BAR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u025F"},608:{"value":"0260","name":"LATIN SMALL LETTER G WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G HOOK","comment":"","uppercase_mapping":"0193","lowercase_mapping":"","titlecase_mapping":"0193","symbol":"\u0260"},609:{"value":"0261","name":"LATIN SMALL LETTER SCRIPT G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7AC","lowercase_mapping":"","titlecase_mapping":"A7AC","symbol":"\u0261"},610:{"value":"0262","name":"LATIN LETTER SMALL CAPITAL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0262"},611:{"value":"0263","name":"LATIN SMALL LETTER GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0194","lowercase_mapping":"","titlecase_mapping":"0194","symbol":"\u0263"},612:{"value":"0264","name":"LATIN SMALL LETTER RAMS HORN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER BABY GAMMA","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0264"},613:{"value":"0265","name":"LATIN SMALL LETTER TURNED H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A78D","lowercase_mapping":"","titlecase_mapping":"A78D","symbol":"\u0265"},614:{"value":"0266","name":"LATIN SMALL LETTER H WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER H HOOK","comment":"","uppercase_mapping":"A7AA","lowercase_mapping":"","titlecase_mapping":"A7AA","symbol":"\u0266"},615:{"value":"0267","name":"LATIN SMALL LETTER HENG WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER HENG HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0267"},616:{"value":"0268","name":"LATIN SMALL LETTER I WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER BARRED I","comment":"","uppercase_mapping":"0197","lowercase_mapping":"","titlecase_mapping":"0197","symbol":"\u0268"},617:{"value":"0269","name":"LATIN SMALL LETTER IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0196","lowercase_mapping":"","titlecase_mapping":"0196","symbol":"\u0269"},618:{"value":"026A","name":"LATIN LETTER SMALL CAPITAL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7AE","lowercase_mapping":"","titlecase_mapping":"A7AE","symbol":"\u026A"},619:{"value":"026B","name":"LATIN SMALL LETTER L WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C62","lowercase_mapping":"","titlecase_mapping":"2C62","symbol":"\u026B"},620:{"value":"026C","name":"LATIN SMALL LETTER L WITH BELT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L BELT","comment":"","uppercase_mapping":"A7AD","lowercase_mapping":"","titlecase_mapping":"A7AD","symbol":"\u026C"},621:{"value":"026D","name":"LATIN SMALL LETTER L WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L RETROFLEX HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u026D"},622:{"value":"026E","name":"LATIN SMALL LETTER LEZH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L YOGH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u026E"},623:{"value":"026F","name":"LATIN SMALL LETTER TURNED M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"019C","lowercase_mapping":"","titlecase_mapping":"019C","symbol":"\u026F"},624:{"value":"0270","name":"LATIN SMALL LETTER TURNED M WITH LONG LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0270"},625:{"value":"0271","name":"LATIN SMALL LETTER M WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER M HOOK","comment":"","uppercase_mapping":"2C6E","lowercase_mapping":"","titlecase_mapping":"2C6E","symbol":"\u0271"},626:{"value":"0272","name":"LATIN SMALL LETTER N WITH LEFT HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N HOOK","comment":"","uppercase_mapping":"019D","lowercase_mapping":"","titlecase_mapping":"019D","symbol":"\u0272"},627:{"value":"0273","name":"LATIN SMALL LETTER N WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N RETROFLEX HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0273"},628:{"value":"0274","name":"LATIN LETTER SMALL CAPITAL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0274"},629:{"value":"0275","name":"LATIN SMALL LETTER BARRED O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"019F","lowercase_mapping":"","titlecase_mapping":"019F","symbol":"\u0275"},630:{"value":"0276","name":"LATIN LETTER SMALL CAPITAL OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER SMALL CAPITAL O E","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0276"},631:{"value":"0277","name":"LATIN SMALL LETTER CLOSED OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0277"},632:{"value":"0278","name":"LATIN SMALL LETTER PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0278"},633:{"value":"0279","name":"LATIN SMALL LETTER TURNED R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0279"},634:{"value":"027A","name":"LATIN SMALL LETTER TURNED R WITH LONG LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027A"},635:{"value":"027B","name":"LATIN SMALL LETTER TURNED R WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER TURNED R HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027B"},636:{"value":"027C","name":"LATIN SMALL LETTER R WITH LONG LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027C"},637:{"value":"027D","name":"LATIN SMALL LETTER R WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER R HOOK","comment":"","uppercase_mapping":"2C64","lowercase_mapping":"","titlecase_mapping":"2C64","symbol":"\u027D"},638:{"value":"027E","name":"LATIN SMALL LETTER R WITH FISHHOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER FISHHOOK R","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027E"},639:{"value":"027F","name":"LATIN SMALL LETTER REVERSED R WITH FISHHOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER REVERSED FISHHOOK R","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027F"},640:{"value":"0280","name":"LATIN LETTER SMALL CAPITAL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01A6","lowercase_mapping":"","titlecase_mapping":"01A6","symbol":"\u0280"},641:{"value":"0281","name":"LATIN LETTER SMALL CAPITAL INVERTED R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0281"},642:{"value":"0282","name":"LATIN SMALL LETTER S WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0282"},643:{"value":"0283","name":"LATIN SMALL LETTER ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01A9","lowercase_mapping":"","titlecase_mapping":"01A9","symbol":"\u0283"},644:{"value":"0284","name":"LATIN SMALL LETTER DOTLESS J WITH STROKE AND HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER DOTLESS J BAR HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0284"},645:{"value":"0285","name":"LATIN SMALL LETTER SQUAT REVERSED ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0285"},646:{"value":"0286","name":"LATIN SMALL LETTER ESH WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER ESH CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0286"},647:{"value":"0287","name":"LATIN SMALL LETTER TURNED T","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B1","lowercase_mapping":"","titlecase_mapping":"A7B1","symbol":"\u0287"},648:{"value":"0288","name":"LATIN SMALL LETTER T WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T RETROFLEX HOOK","comment":"","uppercase_mapping":"01AE","lowercase_mapping":"","titlecase_mapping":"01AE","symbol":"\u0288"},649:{"value":"0289","name":"LATIN SMALL LETTER U BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0244","lowercase_mapping":"","titlecase_mapping":"0244","symbol":"\u0289"},650:{"value":"028A","name":"LATIN SMALL LETTER UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01B1","lowercase_mapping":"","titlecase_mapping":"01B1","symbol":"\u028A"},651:{"value":"028B","name":"LATIN SMALL LETTER V WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER SCRIPT V","comment":"","uppercase_mapping":"01B2","lowercase_mapping":"","titlecase_mapping":"01B2","symbol":"\u028B"},652:{"value":"028C","name":"LATIN SMALL LETTER TURNED V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0245","lowercase_mapping":"","titlecase_mapping":"0245","symbol":"\u028C"},653:{"value":"028D","name":"LATIN SMALL LETTER TURNED W","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u028D"},654:{"value":"028E","name":"LATIN SMALL LETTER TURNED Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u028E"},655:{"value":"028F","name":"LATIN LETTER SMALL CAPITAL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u028F"},656:{"value":"0290","name":"LATIN SMALL LETTER Z WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z RETROFLEX HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0290"},657:{"value":"0291","name":"LATIN SMALL LETTER Z WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0291"},658:{"value":"0292","name":"LATIN SMALL LETTER EZH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER YOGH","comment":"","uppercase_mapping":"01B7","lowercase_mapping":"","titlecase_mapping":"01B7","symbol":"\u0292"},659:{"value":"0293","name":"LATIN SMALL LETTER EZH WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER YOGH CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0293"},661:{"value":"0295","name":"LATIN LETTER PHARYNGEAL VOICED FRICATIVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER REVERSED GLOTTAL STOP","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0295"},662:{"value":"0296","name":"LATIN LETTER INVERTED GLOTTAL STOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0296"},663:{"value":"0297","name":"LATIN LETTER STRETCHED C","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0297"},664:{"value":"0298","name":"LATIN LETTER BILABIAL CLICK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER BULLSEYE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0298"},665:{"value":"0299","name":"LATIN LETTER SMALL CAPITAL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0299"},666:{"value":"029A","name":"LATIN SMALL LETTER CLOSED OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER CLOSED EPSILON","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u029A"},667:{"value":"029B","name":"LATIN LETTER SMALL CAPITAL G WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER SMALL CAPITAL G HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u029B"},668:{"value":"029C","name":"LATIN LETTER SMALL CAPITAL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u029C"},669:{"value":"029D","name":"LATIN SMALL LETTER J WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER CROSSED-TAIL J","comment":"","uppercase_mapping":"A7B2","lowercase_mapping":"","titlecase_mapping":"A7B2","symbol":"\u029D"},670:{"value":"029E","name":"LATIN SMALL LETTER TURNED K","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B0","lowercase_mapping":"","titlecase_mapping":"A7B0","symbol":"\u029E"},671:{"value":"029F","name":"LATIN LETTER SMALL CAPITAL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u029F"},672:{"value":"02A0","name":"LATIN SMALL LETTER Q WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Q HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A0"},673:{"value":"02A1","name":"LATIN LETTER GLOTTAL STOP WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER GLOTTAL STOP BAR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A1"},674:{"value":"02A2","name":"LATIN LETTER REVERSED GLOTTAL STOP WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER REVERSED GLOTTAL STOP BAR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A2"},675:{"value":"02A3","name":"LATIN SMALL LETTER DZ DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D Z","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A3"},676:{"value":"02A4","name":"LATIN SMALL LETTER DEZH DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D YOGH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A4"},677:{"value":"02A5","name":"LATIN SMALL LETTER DZ DIGRAPH WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D Z CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A5"},678:{"value":"02A6","name":"LATIN SMALL LETTER TS DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T S","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A6"},679:{"value":"02A7","name":"LATIN SMALL LETTER TESH DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T ESH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A7"},680:{"value":"02A8","name":"LATIN SMALL LETTER TC DIGRAPH WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T C CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A8"},681:{"value":"02A9","name":"LATIN SMALL LETTER FENG DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A9"},682:{"value":"02AA","name":"LATIN SMALL LETTER LS DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AA"},683:{"value":"02AB","name":"LATIN SMALL LETTER LZ DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AB"},684:{"value":"02AC","name":"LATIN LETTER BILABIAL PERCUSSIVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AC"},685:{"value":"02AD","name":"LATIN LETTER BIDENTAL PERCUSSIVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AD"},686:{"value":"02AE","name":"LATIN SMALL LETTER TURNED H WITH FISHHOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AE"},687:{"value":"02AF","name":"LATIN SMALL LETTER TURNED H WITH FISHHOOK AND TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AF"},881:{"value":"0371","name":"GREEK SMALL LETTER HETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0370","lowercase_mapping":"","titlecase_mapping":"0370","symbol":"\u0371"},883:{"value":"0373","name":"GREEK SMALL LETTER ARCHAIC SAMPI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0372","lowercase_mapping":"","titlecase_mapping":"0372","symbol":"\u0373"},887:{"value":"0377","name":"GREEK SMALL LETTER PAMPHYLIAN DIGAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0376","lowercase_mapping":"","titlecase_mapping":"0376","symbol":"\u0377"},891:{"value":"037B","name":"GREEK SMALL REVERSED LUNATE SIGMA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03FD","lowercase_mapping":"","titlecase_mapping":"03FD","symbol":"\u037B"},892:{"value":"037C","name":"GREEK SMALL DOTTED LUNATE SIGMA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03FE","lowercase_mapping":"","titlecase_mapping":"03FE","symbol":"\u037C"},893:{"value":"037D","name":"GREEK SMALL REVERSED DOTTED LUNATE SIGMA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03FF","lowercase_mapping":"","titlecase_mapping":"03FF","symbol":"\u037D"},912:{"value":"0390","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CA 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER IOTA DIAERESIS TONOS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0390"},940:{"value":"03AC","name":"GREEK SMALL LETTER ALPHA WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER ALPHA TONOS","comment":"","uppercase_mapping":"0386","lowercase_mapping":"","titlecase_mapping":"0386","symbol":"\u03AC"},941:{"value":"03AD","name":"GREEK SMALL LETTER EPSILON WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B5 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER EPSILON TONOS","comment":"","uppercase_mapping":"0388","lowercase_mapping":"","titlecase_mapping":"0388","symbol":"\u03AD"},942:{"value":"03AE","name":"GREEK SMALL LETTER ETA WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER ETA TONOS","comment":"","uppercase_mapping":"0389","lowercase_mapping":"","titlecase_mapping":"0389","symbol":"\u03AE"},943:{"value":"03AF","name":"GREEK SMALL LETTER IOTA WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER IOTA TONOS","comment":"","uppercase_mapping":"038A","lowercase_mapping":"","titlecase_mapping":"038A","symbol":"\u03AF"},944:{"value":"03B0","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CB 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER UPSILON DIAERESIS TONOS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u03B0"},945:{"value":"03B1","name":"GREEK SMALL LETTER ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0391","lowercase_mapping":"","titlecase_mapping":"0391","symbol":"\u03B1"},946:{"value":"03B2","name":"GREEK SMALL LETTER BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0392","lowercase_mapping":"","titlecase_mapping":"0392","symbol":"\u03B2"},947:{"value":"03B3","name":"GREEK SMALL LETTER GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0393","lowercase_mapping":"","titlecase_mapping":"0393","symbol":"\u03B3"},948:{"value":"03B4","name":"GREEK SMALL LETTER DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0394","lowercase_mapping":"","titlecase_mapping":"0394","symbol":"\u03B4"},949:{"value":"03B5","name":"GREEK SMALL LETTER EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0395","lowercase_mapping":"","titlecase_mapping":"0395","symbol":"\u03B5"},950:{"value":"03B6","name":"GREEK SMALL LETTER ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0396","lowercase_mapping":"","titlecase_mapping":"0396","symbol":"\u03B6"},951:{"value":"03B7","name":"GREEK SMALL LETTER ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0397","lowercase_mapping":"","titlecase_mapping":"0397","symbol":"\u03B7"},952:{"value":"03B8","name":"GREEK SMALL LETTER THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0398","lowercase_mapping":"","titlecase_mapping":"0398","symbol":"\u03B8"},953:{"value":"03B9","name":"GREEK SMALL LETTER IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0399","lowercase_mapping":"","titlecase_mapping":"0399","symbol":"\u03B9"},954:{"value":"03BA","name":"GREEK SMALL LETTER KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039A","lowercase_mapping":"","titlecase_mapping":"039A","symbol":"\u03BA"},955:{"value":"03BB","name":"GREEK SMALL LETTER LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER LAMBDA","comment":"","uppercase_mapping":"039B","lowercase_mapping":"","titlecase_mapping":"039B","symbol":"\u03BB"},956:{"value":"03BC","name":"GREEK SMALL LETTER MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039C","lowercase_mapping":"","titlecase_mapping":"039C","symbol":"\u03BC"},957:{"value":"03BD","name":"GREEK SMALL LETTER NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039D","lowercase_mapping":"","titlecase_mapping":"039D","symbol":"\u03BD"},958:{"value":"03BE","name":"GREEK SMALL LETTER XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039E","lowercase_mapping":"","titlecase_mapping":"039E","symbol":"\u03BE"},959:{"value":"03BF","name":"GREEK SMALL LETTER OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039F","lowercase_mapping":"","titlecase_mapping":"039F","symbol":"\u03BF"},960:{"value":"03C0","name":"GREEK SMALL LETTER PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A0","lowercase_mapping":"","titlecase_mapping":"03A0","symbol":"\u03C0"},961:{"value":"03C1","name":"GREEK SMALL LETTER RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A1","lowercase_mapping":"","titlecase_mapping":"03A1","symbol":"\u03C1"},962:{"value":"03C2","name":"GREEK SMALL LETTER FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A3","lowercase_mapping":"","titlecase_mapping":"03A3","symbol":"\u03C2"},963:{"value":"03C3","name":"GREEK SMALL LETTER SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A3","lowercase_mapping":"","titlecase_mapping":"03A3","symbol":"\u03C3"},964:{"value":"03C4","name":"GREEK SMALL LETTER TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A4","lowercase_mapping":"","titlecase_mapping":"03A4","symbol":"\u03C4"},965:{"value":"03C5","name":"GREEK SMALL LETTER UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A5","lowercase_mapping":"","titlecase_mapping":"03A5","symbol":"\u03C5"},966:{"value":"03C6","name":"GREEK SMALL LETTER PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A6","lowercase_mapping":"","titlecase_mapping":"03A6","symbol":"\u03C6"},967:{"value":"03C7","name":"GREEK SMALL LETTER CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A7","lowercase_mapping":"","titlecase_mapping":"03A7","symbol":"\u03C7"},968:{"value":"03C8","name":"GREEK SMALL LETTER PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A8","lowercase_mapping":"","titlecase_mapping":"03A8","symbol":"\u03C8"},969:{"value":"03C9","name":"GREEK SMALL LETTER OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A9","lowercase_mapping":"","titlecase_mapping":"03A9","symbol":"\u03C9"},970:{"value":"03CA","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER IOTA DIAERESIS","comment":"","uppercase_mapping":"03AA","lowercase_mapping":"","titlecase_mapping":"03AA","symbol":"\u03CA"},971:{"value":"03CB","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER UPSILON DIAERESIS","comment":"","uppercase_mapping":"03AB","lowercase_mapping":"","titlecase_mapping":"03AB","symbol":"\u03CB"},972:{"value":"03CC","name":"GREEK SMALL LETTER OMICRON WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03BF 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER OMICRON TONOS","comment":"","uppercase_mapping":"038C","lowercase_mapping":"","titlecase_mapping":"038C","symbol":"\u03CC"},973:{"value":"03CD","name":"GREEK SMALL LETTER UPSILON WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER UPSILON TONOS","comment":"","uppercase_mapping":"038E","lowercase_mapping":"","titlecase_mapping":"038E","symbol":"\u03CD"},974:{"value":"03CE","name":"GREEK SMALL LETTER OMEGA WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER OMEGA TONOS","comment":"","uppercase_mapping":"038F","lowercase_mapping":"","titlecase_mapping":"038F","symbol":"\u03CE"},976:{"value":"03D0","name":"GREEK BETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER CURLED BETA","comment":"","uppercase_mapping":"0392","lowercase_mapping":"","titlecase_mapping":"0392","symbol":"\u03D0"},977:{"value":"03D1","name":"GREEK THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SCRIPT THETA","comment":"","uppercase_mapping":"0398","lowercase_mapping":"","titlecase_mapping":"0398","symbol":"\u03D1"},981:{"value":"03D5","name":"GREEK PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SCRIPT PHI","comment":"","uppercase_mapping":"03A6","lowercase_mapping":"","titlecase_mapping":"03A6","symbol":"\u03D5"},982:{"value":"03D6","name":"GREEK PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER OMEGA PI","comment":"","uppercase_mapping":"03A0","lowercase_mapping":"","titlecase_mapping":"03A0","symbol":"\u03D6"},983:{"value":"03D7","name":"GREEK KAI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03CF","lowercase_mapping":"","titlecase_mapping":"03CF","symbol":"\u03D7"},985:{"value":"03D9","name":"GREEK SMALL LETTER ARCHAIC KOPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03D8","lowercase_mapping":"","titlecase_mapping":"03D8","symbol":"\u03D9"},987:{"value":"03DB","name":"GREEK SMALL LETTER STIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03DA","lowercase_mapping":"","titlecase_mapping":"03DA","symbol":"\u03DB"},989:{"value":"03DD","name":"GREEK SMALL LETTER DIGAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03DC","lowercase_mapping":"","titlecase_mapping":"03DC","symbol":"\u03DD"},991:{"value":"03DF","name":"GREEK SMALL LETTER KOPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03DE","lowercase_mapping":"","titlecase_mapping":"03DE","symbol":"\u03DF"},993:{"value":"03E1","name":"GREEK SMALL LETTER SAMPI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03E0","lowercase_mapping":"","titlecase_mapping":"03E0","symbol":"\u03E1"},995:{"value":"03E3","name":"COPTIC SMALL LETTER SHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SHEI","comment":"","uppercase_mapping":"03E2","lowercase_mapping":"","titlecase_mapping":"03E2","symbol":"\u03E3"},997:{"value":"03E5","name":"COPTIC SMALL LETTER FEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER FEI","comment":"","uppercase_mapping":"03E4","lowercase_mapping":"","titlecase_mapping":"03E4","symbol":"\u03E5"},999:{"value":"03E7","name":"COPTIC SMALL LETTER KHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER KHEI","comment":"","uppercase_mapping":"03E6","lowercase_mapping":"","titlecase_mapping":"03E6","symbol":"\u03E7"},1001:{"value":"03E9","name":"COPTIC SMALL LETTER HORI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER HORI","comment":"","uppercase_mapping":"03E8","lowercase_mapping":"","titlecase_mapping":"03E8","symbol":"\u03E9"},1003:{"value":"03EB","name":"COPTIC SMALL LETTER GANGIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER GANGIA","comment":"","uppercase_mapping":"03EA","lowercase_mapping":"","titlecase_mapping":"03EA","symbol":"\u03EB"},1005:{"value":"03ED","name":"COPTIC SMALL LETTER SHIMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SHIMA","comment":"","uppercase_mapping":"03EC","lowercase_mapping":"","titlecase_mapping":"03EC","symbol":"\u03ED"},1007:{"value":"03EF","name":"COPTIC SMALL LETTER DEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER DEI","comment":"","uppercase_mapping":"03EE","lowercase_mapping":"","titlecase_mapping":"03EE","symbol":"\u03EF"},1008:{"value":"03F0","name":"GREEK KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SCRIPT KAPPA","comment":"","uppercase_mapping":"039A","lowercase_mapping":"","titlecase_mapping":"039A","symbol":"\u03F0"},1009:{"value":"03F1","name":"GREEK RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER TAILED RHO","comment":"","uppercase_mapping":"03A1","lowercase_mapping":"","titlecase_mapping":"03A1","symbol":"\u03F1"},1010:{"value":"03F2","name":"GREEK LUNATE SIGMA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER LUNATE SIGMA","comment":"","uppercase_mapping":"03F9","lowercase_mapping":"","titlecase_mapping":"03F9","symbol":"\u03F2"},1011:{"value":"03F3","name":"GREEK LETTER YOT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"037F","lowercase_mapping":"","titlecase_mapping":"037F","symbol":"\u03F3"},1013:{"value":"03F5","name":"GREEK LUNATE EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0395","lowercase_mapping":"","titlecase_mapping":"0395","symbol":"\u03F5"},1016:{"value":"03F8","name":"GREEK SMALL LETTER SHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03F7","lowercase_mapping":"","titlecase_mapping":"03F7","symbol":"\u03F8"},1019:{"value":"03FB","name":"GREEK SMALL LETTER SAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03FA","lowercase_mapping":"","titlecase_mapping":"03FA","symbol":"\u03FB"},1020:{"value":"03FC","name":"GREEK RHO WITH STROKE SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u03FC"},1072:{"value":"0430","name":"CYRILLIC SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0410","lowercase_mapping":"","titlecase_mapping":"0410","symbol":"\u0430"},1073:{"value":"0431","name":"CYRILLIC SMALL LETTER BE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0411","lowercase_mapping":"","titlecase_mapping":"0411","symbol":"\u0431"},1074:{"value":"0432","name":"CYRILLIC SMALL LETTER VE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0412","lowercase_mapping":"","titlecase_mapping":"0412","symbol":"\u0432"},1075:{"value":"0433","name":"CYRILLIC SMALL LETTER GHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER GE","comment":"","uppercase_mapping":"0413","lowercase_mapping":"","titlecase_mapping":"0413","symbol":"\u0433"},1076:{"value":"0434","name":"CYRILLIC SMALL LETTER DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0414","lowercase_mapping":"","titlecase_mapping":"0414","symbol":"\u0434"},1077:{"value":"0435","name":"CYRILLIC SMALL LETTER IE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0415","lowercase_mapping":"","titlecase_mapping":"0415","symbol":"\u0435"},1078:{"value":"0436","name":"CYRILLIC SMALL LETTER ZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0416","lowercase_mapping":"","titlecase_mapping":"0416","symbol":"\u0436"},1079:{"value":"0437","name":"CYRILLIC SMALL LETTER ZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0417","lowercase_mapping":"","titlecase_mapping":"0417","symbol":"\u0437"},1080:{"value":"0438","name":"CYRILLIC SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER II","comment":"","uppercase_mapping":"0418","lowercase_mapping":"","titlecase_mapping":"0418","symbol":"\u0438"},1081:{"value":"0439","name":"CYRILLIC SMALL LETTER SHORT I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0438 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER SHORT II","comment":"","uppercase_mapping":"0419","lowercase_mapping":"","titlecase_mapping":"0419","symbol":"\u0439"},1082:{"value":"043A","name":"CYRILLIC SMALL LETTER KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041A","lowercase_mapping":"","titlecase_mapping":"041A","symbol":"\u043A"},1083:{"value":"043B","name":"CYRILLIC SMALL LETTER EL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041B","lowercase_mapping":"","titlecase_mapping":"041B","symbol":"\u043B"},1084:{"value":"043C","name":"CYRILLIC SMALL LETTER EM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041C","lowercase_mapping":"","titlecase_mapping":"041C","symbol":"\u043C"},1085:{"value":"043D","name":"CYRILLIC SMALL LETTER EN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041D","lowercase_mapping":"","titlecase_mapping":"041D","symbol":"\u043D"},1086:{"value":"043E","name":"CYRILLIC SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041E","lowercase_mapping":"","titlecase_mapping":"041E","symbol":"\u043E"},1087:{"value":"043F","name":"CYRILLIC SMALL LETTER PE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041F","lowercase_mapping":"","titlecase_mapping":"041F","symbol":"\u043F"},1088:{"value":"0440","name":"CYRILLIC SMALL LETTER ER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0420","lowercase_mapping":"","titlecase_mapping":"0420","symbol":"\u0440"},1089:{"value":"0441","name":"CYRILLIC SMALL LETTER ES","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0421","lowercase_mapping":"","titlecase_mapping":"0421","symbol":"\u0441"},1090:{"value":"0442","name":"CYRILLIC SMALL LETTER TE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0422","lowercase_mapping":"","titlecase_mapping":"0422","symbol":"\u0442"},1091:{"value":"0443","name":"CYRILLIC SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0423","lowercase_mapping":"","titlecase_mapping":"0423","symbol":"\u0443"},1092:{"value":"0444","name":"CYRILLIC SMALL LETTER EF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0424","lowercase_mapping":"","titlecase_mapping":"0424","symbol":"\u0444"},1093:{"value":"0445","name":"CYRILLIC SMALL LETTER HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KHA","comment":"","uppercase_mapping":"0425","lowercase_mapping":"","titlecase_mapping":"0425","symbol":"\u0445"},1094:{"value":"0446","name":"CYRILLIC SMALL LETTER TSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0426","lowercase_mapping":"","titlecase_mapping":"0426","symbol":"\u0446"},1095:{"value":"0447","name":"CYRILLIC SMALL LETTER CHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0427","lowercase_mapping":"","titlecase_mapping":"0427","symbol":"\u0447"},1096:{"value":"0448","name":"CYRILLIC SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0428","lowercase_mapping":"","titlecase_mapping":"0428","symbol":"\u0448"},1097:{"value":"0449","name":"CYRILLIC SMALL LETTER SHCHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0429","lowercase_mapping":"","titlecase_mapping":"0429","symbol":"\u0449"},1098:{"value":"044A","name":"CYRILLIC SMALL LETTER HARD SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"042A","lowercase_mapping":"","titlecase_mapping":"042A","symbol":"\u044A"},1099:{"value":"044B","name":"CYRILLIC SMALL LETTER YERU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER YERI","comment":"","uppercase_mapping":"042B","lowercase_mapping":"","titlecase_mapping":"042B","symbol":"\u044B"},1100:{"value":"044C","name":"CYRILLIC SMALL LETTER SOFT SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"042C","lowercase_mapping":"","titlecase_mapping":"042C","symbol":"\u044C"},1101:{"value":"044D","name":"CYRILLIC SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER REVERSED E","comment":"","uppercase_mapping":"042D","lowercase_mapping":"","titlecase_mapping":"042D","symbol":"\u044D"},1102:{"value":"044E","name":"CYRILLIC SMALL LETTER YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IU","comment":"","uppercase_mapping":"042E","lowercase_mapping":"","titlecase_mapping":"042E","symbol":"\u044E"},1103:{"value":"044F","name":"CYRILLIC SMALL LETTER YA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IA","comment":"","uppercase_mapping":"042F","lowercase_mapping":"","titlecase_mapping":"042F","symbol":"\u044F"},1104:{"value":"0450","name":"CYRILLIC SMALL LETTER IE WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0435 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0400","lowercase_mapping":"","titlecase_mapping":"0400","symbol":"\u0450"},1105:{"value":"0451","name":"CYRILLIC SMALL LETTER IO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0435 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0401","lowercase_mapping":"","titlecase_mapping":"0401","symbol":"\u0451"},1106:{"value":"0452","name":"CYRILLIC SMALL LETTER DJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0402","lowercase_mapping":"","titlecase_mapping":"0402","symbol":"\u0452"},1107:{"value":"0453","name":"CYRILLIC SMALL LETTER GJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0433 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0403","lowercase_mapping":"","titlecase_mapping":"0403","symbol":"\u0453"},1108:{"value":"0454","name":"CYRILLIC SMALL LETTER UKRAINIAN IE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER E","comment":"","uppercase_mapping":"0404","lowercase_mapping":"","titlecase_mapping":"0404","symbol":"\u0454"},1109:{"value":"0455","name":"CYRILLIC SMALL LETTER DZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0405","lowercase_mapping":"","titlecase_mapping":"0405","symbol":"\u0455"},1110:{"value":"0456","name":"CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER I","comment":"","uppercase_mapping":"0406","lowercase_mapping":"","titlecase_mapping":"0406","symbol":"\u0456"},1111:{"value":"0457","name":"CYRILLIC SMALL LETTER YI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0456 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0407","lowercase_mapping":"","titlecase_mapping":"0407","symbol":"\u0457"},1112:{"value":"0458","name":"CYRILLIC SMALL LETTER JE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0408","lowercase_mapping":"","titlecase_mapping":"0408","symbol":"\u0458"},1113:{"value":"0459","name":"CYRILLIC SMALL LETTER LJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0409","lowercase_mapping":"","titlecase_mapping":"0409","symbol":"\u0459"},1114:{"value":"045A","name":"CYRILLIC SMALL LETTER NJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040A","lowercase_mapping":"","titlecase_mapping":"040A","symbol":"\u045A"},1115:{"value":"045B","name":"CYRILLIC SMALL LETTER TSHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040B","lowercase_mapping":"","titlecase_mapping":"040B","symbol":"\u045B"},1116:{"value":"045C","name":"CYRILLIC SMALL LETTER KJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"043A 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040C","lowercase_mapping":"","titlecase_mapping":"040C","symbol":"\u045C"},1117:{"value":"045D","name":"CYRILLIC SMALL LETTER I WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0438 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040D","lowercase_mapping":"","titlecase_mapping":"040D","symbol":"\u045D"},1118:{"value":"045E","name":"CYRILLIC SMALL LETTER SHORT U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0443 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040E","lowercase_mapping":"","titlecase_mapping":"040E","symbol":"\u045E"},1119:{"value":"045F","name":"CYRILLIC SMALL LETTER DZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040F","lowercase_mapping":"","titlecase_mapping":"040F","symbol":"\u045F"},1121:{"value":"0461","name":"CYRILLIC SMALL LETTER OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0460","lowercase_mapping":"","titlecase_mapping":"0460","symbol":"\u0461"},1123:{"value":"0463","name":"CYRILLIC SMALL LETTER YAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0462","lowercase_mapping":"","titlecase_mapping":"0462","symbol":"\u0463"},1125:{"value":"0465","name":"CYRILLIC SMALL LETTER IOTIFIED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0464","lowercase_mapping":"","titlecase_mapping":"0464","symbol":"\u0465"},1127:{"value":"0467","name":"CYRILLIC SMALL LETTER LITTLE YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0466","lowercase_mapping":"","titlecase_mapping":"0466","symbol":"\u0467"},1129:{"value":"0469","name":"CYRILLIC SMALL LETTER IOTIFIED LITTLE YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0468","lowercase_mapping":"","titlecase_mapping":"0468","symbol":"\u0469"},1131:{"value":"046B","name":"CYRILLIC SMALL LETTER BIG YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"046A","lowercase_mapping":"","titlecase_mapping":"046A","symbol":"\u046B"},1133:{"value":"046D","name":"CYRILLIC SMALL LETTER IOTIFIED BIG YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"046C","lowercase_mapping":"","titlecase_mapping":"046C","symbol":"\u046D"},1135:{"value":"046F","name":"CYRILLIC SMALL LETTER KSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"046E","lowercase_mapping":"","titlecase_mapping":"046E","symbol":"\u046F"},1137:{"value":"0471","name":"CYRILLIC SMALL LETTER PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0470","lowercase_mapping":"","titlecase_mapping":"0470","symbol":"\u0471"},1139:{"value":"0473","name":"CYRILLIC SMALL LETTER FITA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0472","lowercase_mapping":"","titlecase_mapping":"0472","symbol":"\u0473"},1141:{"value":"0475","name":"CYRILLIC SMALL LETTER IZHITSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0474","lowercase_mapping":"","titlecase_mapping":"0474","symbol":"\u0475"},1143:{"value":"0477","name":"CYRILLIC SMALL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0475 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IZHITSA DOUBLE GRAVE","comment":"","uppercase_mapping":"0476","lowercase_mapping":"","titlecase_mapping":"0476","symbol":"\u0477"},1145:{"value":"0479","name":"CYRILLIC SMALL LETTER UK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER UK DIGRAPH","comment":"","uppercase_mapping":"0478","lowercase_mapping":"","titlecase_mapping":"0478","symbol":"\u0479"},1147:{"value":"047B","name":"CYRILLIC SMALL LETTER ROUND OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"047A","lowercase_mapping":"","titlecase_mapping":"047A","symbol":"\u047B"},1149:{"value":"047D","name":"CYRILLIC SMALL LETTER OMEGA WITH TITLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER OMEGA TITLO","comment":"","uppercase_mapping":"047C","lowercase_mapping":"","titlecase_mapping":"047C","symbol":"\u047D"},1151:{"value":"047F","name":"CYRILLIC SMALL LETTER OT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"047E","lowercase_mapping":"","titlecase_mapping":"047E","symbol":"\u047F"},1153:{"value":"0481","name":"CYRILLIC SMALL LETTER KOPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0480","lowercase_mapping":"","titlecase_mapping":"0480","symbol":"\u0481"},1163:{"value":"048B","name":"CYRILLIC SMALL LETTER SHORT I WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"048A","lowercase_mapping":"","titlecase_mapping":"048A","symbol":"\u048B"},1165:{"value":"048D","name":"CYRILLIC SMALL LETTER SEMISOFT SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"048C","lowercase_mapping":"","titlecase_mapping":"048C","symbol":"\u048D"},1167:{"value":"048F","name":"CYRILLIC SMALL LETTER ER WITH TICK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"048E","lowercase_mapping":"","titlecase_mapping":"048E","symbol":"\u048F"},1169:{"value":"0491","name":"CYRILLIC SMALL LETTER GHE WITH UPTURN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER GE WITH UPTURN","comment":"","uppercase_mapping":"0490","lowercase_mapping":"","titlecase_mapping":"0490","symbol":"\u0491"},1171:{"value":"0493","name":"CYRILLIC SMALL LETTER GHE WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER GE BAR","comment":"","uppercase_mapping":"0492","lowercase_mapping":"","titlecase_mapping":"0492","symbol":"\u0493"},1173:{"value":"0495","name":"CYRILLIC SMALL LETTER GHE WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER GE HOOK","comment":"","uppercase_mapping":"0494","lowercase_mapping":"","titlecase_mapping":"0494","symbol":"\u0495"},1175:{"value":"0497","name":"CYRILLIC SMALL LETTER ZHE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER ZHE WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"0496","lowercase_mapping":"","titlecase_mapping":"0496","symbol":"\u0497"},1177:{"value":"0499","name":"CYRILLIC SMALL LETTER ZE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER ZE CEDILLA","comment":"","uppercase_mapping":"0498","lowercase_mapping":"","titlecase_mapping":"0498","symbol":"\u0499"},1179:{"value":"049B","name":"CYRILLIC SMALL LETTER KA WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KA WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"049A","lowercase_mapping":"","titlecase_mapping":"049A","symbol":"\u049B"},1181:{"value":"049D","name":"CYRILLIC SMALL LETTER KA WITH VERTICAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KA VERTICAL BAR","comment":"","uppercase_mapping":"049C","lowercase_mapping":"","titlecase_mapping":"049C","symbol":"\u049D"},1183:{"value":"049F","name":"CYRILLIC SMALL LETTER KA WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KA BAR","comment":"","uppercase_mapping":"049E","lowercase_mapping":"","titlecase_mapping":"049E","symbol":"\u049F"},1185:{"value":"04A1","name":"CYRILLIC SMALL LETTER BASHKIR KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER REVERSED GE KA","comment":"","uppercase_mapping":"04A0","lowercase_mapping":"","titlecase_mapping":"04A0","symbol":"\u04A1"},1187:{"value":"04A3","name":"CYRILLIC SMALL LETTER EN WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER EN WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"04A2","lowercase_mapping":"","titlecase_mapping":"04A2","symbol":"\u04A3"},1189:{"value":"04A5","name":"CYRILLIC SMALL LIGATURE EN GHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER EN GE","comment":"","uppercase_mapping":"04A4","lowercase_mapping":"","titlecase_mapping":"04A4","symbol":"\u04A5"},1191:{"value":"04A7","name":"CYRILLIC SMALL LETTER PE WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER PE HOOK","comment":"","uppercase_mapping":"04A6","lowercase_mapping":"","titlecase_mapping":"04A6","symbol":"\u04A7"},1193:{"value":"04A9","name":"CYRILLIC SMALL LETTER ABKHASIAN HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER O HOOK","comment":"","uppercase_mapping":"04A8","lowercase_mapping":"","titlecase_mapping":"04A8","symbol":"\u04A9"},1195:{"value":"04AB","name":"CYRILLIC SMALL LETTER ES WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER ES CEDILLA","comment":"","uppercase_mapping":"04AA","lowercase_mapping":"","titlecase_mapping":"04AA","symbol":"\u04AB"},1197:{"value":"04AD","name":"CYRILLIC SMALL LETTER TE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER TE WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"04AC","lowercase_mapping":"","titlecase_mapping":"04AC","symbol":"\u04AD"},1199:{"value":"04AF","name":"CYRILLIC SMALL LETTER STRAIGHT U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04AE","lowercase_mapping":"","titlecase_mapping":"04AE","symbol":"\u04AF"},1201:{"value":"04B1","name":"CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER STRAIGHT U BAR","comment":"","uppercase_mapping":"04B0","lowercase_mapping":"","titlecase_mapping":"04B0","symbol":"\u04B1"},1203:{"value":"04B3","name":"CYRILLIC SMALL LETTER HA WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KHA WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"04B2","lowercase_mapping":"","titlecase_mapping":"04B2","symbol":"\u04B3"},1205:{"value":"04B5","name":"CYRILLIC SMALL LIGATURE TE TSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER TE TSE","comment":"","uppercase_mapping":"04B4","lowercase_mapping":"","titlecase_mapping":"04B4","symbol":"\u04B5"},1207:{"value":"04B7","name":"CYRILLIC SMALL LETTER CHE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER CHE WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"04B6","lowercase_mapping":"","titlecase_mapping":"04B6","symbol":"\u04B7"},1209:{"value":"04B9","name":"CYRILLIC SMALL LETTER CHE WITH VERTICAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER CHE VERTICAL BAR","comment":"","uppercase_mapping":"04B8","lowercase_mapping":"","titlecase_mapping":"04B8","symbol":"\u04B9"},1211:{"value":"04BB","name":"CYRILLIC SMALL LETTER SHHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER H","comment":"","uppercase_mapping":"04BA","lowercase_mapping":"","titlecase_mapping":"04BA","symbol":"\u04BB"},1213:{"value":"04BD","name":"CYRILLIC SMALL LETTER ABKHASIAN CHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IE HOOK","comment":"","uppercase_mapping":"04BC","lowercase_mapping":"","titlecase_mapping":"04BC","symbol":"\u04BD"},1215:{"value":"04BF","name":"CYRILLIC SMALL LETTER ABKHASIAN CHE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IE HOOK OGONEK","comment":"","uppercase_mapping":"04BE","lowercase_mapping":"","titlecase_mapping":"04BE","symbol":"\u04BF"},1218:{"value":"04C2","name":"CYRILLIC SMALL LETTER ZHE WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0436 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER SHORT ZHE","comment":"","uppercase_mapping":"04C1","lowercase_mapping":"","titlecase_mapping":"04C1","symbol":"\u04C2"},1220:{"value":"04C4","name":"CYRILLIC SMALL LETTER KA WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KA HOOK","comment":"","uppercase_mapping":"04C3","lowercase_mapping":"","titlecase_mapping":"04C3","symbol":"\u04C4"},1222:{"value":"04C6","name":"CYRILLIC SMALL LETTER EL WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04C5","lowercase_mapping":"","titlecase_mapping":"04C5","symbol":"\u04C6"},1224:{"value":"04C8","name":"CYRILLIC SMALL LETTER EN WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER EN HOOK","comment":"","uppercase_mapping":"04C7","lowercase_mapping":"","titlecase_mapping":"04C7","symbol":"\u04C8"},1226:{"value":"04CA","name":"CYRILLIC SMALL LETTER EN WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04C9","lowercase_mapping":"","titlecase_mapping":"04C9","symbol":"\u04CA"},1228:{"value":"04CC","name":"CYRILLIC SMALL LETTER KHAKASSIAN CHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER CHE WITH LEFT DESCENDER","comment":"","uppercase_mapping":"04CB","lowercase_mapping":"","titlecase_mapping":"04CB","symbol":"\u04CC"},1230:{"value":"04CE","name":"CYRILLIC SMALL LETTER EM WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04CD","lowercase_mapping":"","titlecase_mapping":"04CD","symbol":"\u04CE"},1231:{"value":"04CF","name":"CYRILLIC SMALL LETTER PALOCHKA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04C0","lowercase_mapping":"","titlecase_mapping":"04C0","symbol":"\u04CF"},1233:{"value":"04D1","name":"CYRILLIC SMALL LETTER A WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0430 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D0","lowercase_mapping":"","titlecase_mapping":"04D0","symbol":"\u04D1"},1235:{"value":"04D3","name":"CYRILLIC SMALL LETTER A WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0430 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D2","lowercase_mapping":"","titlecase_mapping":"04D2","symbol":"\u04D3"},1237:{"value":"04D5","name":"CYRILLIC SMALL LIGATURE A IE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D4","lowercase_mapping":"","titlecase_mapping":"04D4","symbol":"\u04D5"},1239:{"value":"04D7","name":"CYRILLIC SMALL LETTER IE WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0435 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D6","lowercase_mapping":"","titlecase_mapping":"04D6","symbol":"\u04D7"},1241:{"value":"04D9","name":"CYRILLIC SMALL LETTER SCHWA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D8","lowercase_mapping":"","titlecase_mapping":"04D8","symbol":"\u04D9"},1243:{"value":"04DB","name":"CYRILLIC SMALL LETTER SCHWA WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"04D9 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04DA","lowercase_mapping":"","titlecase_mapping":"04DA","symbol":"\u04DB"},1245:{"value":"04DD","name":"CYRILLIC SMALL LETTER ZHE WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0436 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04DC","lowercase_mapping":"","titlecase_mapping":"04DC","symbol":"\u04DD"},1247:{"value":"04DF","name":"CYRILLIC SMALL LETTER ZE WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0437 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04DE","lowercase_mapping":"","titlecase_mapping":"04DE","symbol":"\u04DF"},1249:{"value":"04E1","name":"CYRILLIC SMALL LETTER ABKHASIAN DZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E0","lowercase_mapping":"","titlecase_mapping":"04E0","symbol":"\u04E1"},1251:{"value":"04E3","name":"CYRILLIC SMALL LETTER I WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0438 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E2","lowercase_mapping":"","titlecase_mapping":"04E2","symbol":"\u04E3"},1253:{"value":"04E5","name":"CYRILLIC SMALL LETTER I WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0438 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E4","lowercase_mapping":"","titlecase_mapping":"04E4","symbol":"\u04E5"},1255:{"value":"04E7","name":"CYRILLIC SMALL LETTER O WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"043E 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E6","lowercase_mapping":"","titlecase_mapping":"04E6","symbol":"\u04E7"},1257:{"value":"04E9","name":"CYRILLIC SMALL LETTER BARRED O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E8","lowercase_mapping":"","titlecase_mapping":"04E8","symbol":"\u04E9"},1259:{"value":"04EB","name":"CYRILLIC SMALL LETTER BARRED O WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"04E9 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04EA","lowercase_mapping":"","titlecase_mapping":"04EA","symbol":"\u04EB"},1261:{"value":"04ED","name":"CYRILLIC SMALL LETTER E WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"044D 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04EC","lowercase_mapping":"","titlecase_mapping":"04EC","symbol":"\u04ED"},1263:{"value":"04EF","name":"CYRILLIC SMALL LETTER U WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0443 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04EE","lowercase_mapping":"","titlecase_mapping":"04EE","symbol":"\u04EF"},1265:{"value":"04F1","name":"CYRILLIC SMALL LETTER U WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0443 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F0","lowercase_mapping":"","titlecase_mapping":"04F0","symbol":"\u04F1"},1267:{"value":"04F3","name":"CYRILLIC SMALL LETTER U WITH DOUBLE ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0443 030B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F2","lowercase_mapping":"","titlecase_mapping":"04F2","symbol":"\u04F3"},1269:{"value":"04F5","name":"CYRILLIC SMALL LETTER CHE WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0447 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F4","lowercase_mapping":"","titlecase_mapping":"04F4","symbol":"\u04F5"},1271:{"value":"04F7","name":"CYRILLIC SMALL LETTER GHE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F6","lowercase_mapping":"","titlecase_mapping":"04F6","symbol":"\u04F7"},1273:{"value":"04F9","name":"CYRILLIC SMALL LETTER YERU WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"044B 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F8","lowercase_mapping":"","titlecase_mapping":"04F8","symbol":"\u04F9"},1275:{"value":"04FB","name":"CYRILLIC SMALL LETTER GHE WITH STROKE AND HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04FA","lowercase_mapping":"","titlecase_mapping":"04FA","symbol":"\u04FB"},1277:{"value":"04FD","name":"CYRILLIC SMALL LETTER HA WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04FC","lowercase_mapping":"","titlecase_mapping":"04FC","symbol":"\u04FD"},1279:{"value":"04FF","name":"CYRILLIC SMALL LETTER HA WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04FE","lowercase_mapping":"","titlecase_mapping":"04FE","symbol":"\u04FF"},1281:{"value":"0501","name":"CYRILLIC SMALL LETTER KOMI DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0500","lowercase_mapping":"","titlecase_mapping":"0500","symbol":"\u0501"},1283:{"value":"0503","name":"CYRILLIC SMALL LETTER KOMI DJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0502","lowercase_mapping":"","titlecase_mapping":"0502","symbol":"\u0503"},1285:{"value":"0505","name":"CYRILLIC SMALL LETTER KOMI ZJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0504","lowercase_mapping":"","titlecase_mapping":"0504","symbol":"\u0505"},1287:{"value":"0507","name":"CYRILLIC SMALL LETTER KOMI DZJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0506","lowercase_mapping":"","titlecase_mapping":"0506","symbol":"\u0507"},1289:{"value":"0509","name":"CYRILLIC SMALL LETTER KOMI LJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0508","lowercase_mapping":"","titlecase_mapping":"0508","symbol":"\u0509"},1291:{"value":"050B","name":"CYRILLIC SMALL LETTER KOMI NJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"050A","lowercase_mapping":"","titlecase_mapping":"050A","symbol":"\u050B"},1293:{"value":"050D","name":"CYRILLIC SMALL LETTER KOMI SJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"050C","lowercase_mapping":"","titlecase_mapping":"050C","symbol":"\u050D"},1295:{"value":"050F","name":"CYRILLIC SMALL LETTER KOMI TJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"050E","lowercase_mapping":"","titlecase_mapping":"050E","symbol":"\u050F"},1297:{"value":"0511","name":"CYRILLIC SMALL LETTER REVERSED ZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0510","lowercase_mapping":"","titlecase_mapping":"0510","symbol":"\u0511"},1299:{"value":"0513","name":"CYRILLIC SMALL LETTER EL WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0512","lowercase_mapping":"","titlecase_mapping":"0512","symbol":"\u0513"},1301:{"value":"0515","name":"CYRILLIC SMALL LETTER LHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0514","lowercase_mapping":"","titlecase_mapping":"0514","symbol":"\u0515"},1303:{"value":"0517","name":"CYRILLIC SMALL LETTER RHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0516","lowercase_mapping":"","titlecase_mapping":"0516","symbol":"\u0517"},1305:{"value":"0519","name":"CYRILLIC SMALL LETTER YAE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0518","lowercase_mapping":"","titlecase_mapping":"0518","symbol":"\u0519"},1307:{"value":"051B","name":"CYRILLIC SMALL LETTER QA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"051A","lowercase_mapping":"","titlecase_mapping":"051A","symbol":"\u051B"},1309:{"value":"051D","name":"CYRILLIC SMALL LETTER WE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"051C","lowercase_mapping":"","titlecase_mapping":"051C","symbol":"\u051D"},1311:{"value":"051F","name":"CYRILLIC SMALL LETTER ALEUT KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"051E","lowercase_mapping":"","titlecase_mapping":"051E","symbol":"\u051F"},1313:{"value":"0521","name":"CYRILLIC SMALL LETTER EL WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0520","lowercase_mapping":"","titlecase_mapping":"0520","symbol":"\u0521"},1315:{"value":"0523","name":"CYRILLIC SMALL LETTER EN WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0522","lowercase_mapping":"","titlecase_mapping":"0522","symbol":"\u0523"},1317:{"value":"0525","name":"CYRILLIC SMALL LETTER PE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0524","lowercase_mapping":"","titlecase_mapping":"0524","symbol":"\u0525"},1319:{"value":"0527","name":"CYRILLIC SMALL LETTER SHHA WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0526","lowercase_mapping":"","titlecase_mapping":"0526","symbol":"\u0527"},1321:{"value":"0529","name":"CYRILLIC SMALL LETTER EN WITH LEFT HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0528","lowercase_mapping":"","titlecase_mapping":"0528","symbol":"\u0529"},1323:{"value":"052B","name":"CYRILLIC SMALL LETTER DZZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"052A","lowercase_mapping":"","titlecase_mapping":"052A","symbol":"\u052B"},1325:{"value":"052D","name":"CYRILLIC SMALL LETTER DCHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"052C","lowercase_mapping":"","titlecase_mapping":"052C","symbol":"\u052D"},1327:{"value":"052F","name":"CYRILLIC SMALL LETTER EL WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"052E","lowercase_mapping":"","titlecase_mapping":"052E","symbol":"\u052F"},1377:{"value":"0561","name":"ARMENIAN SMALL LETTER AYB","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0531","lowercase_mapping":"","titlecase_mapping":"0531","symbol":"\u0561"},1378:{"value":"0562","name":"ARMENIAN SMALL LETTER BEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0532","lowercase_mapping":"","titlecase_mapping":"0532","symbol":"\u0562"},1379:{"value":"0563","name":"ARMENIAN SMALL LETTER GIM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0533","lowercase_mapping":"","titlecase_mapping":"0533","symbol":"\u0563"},1380:{"value":"0564","name":"ARMENIAN SMALL LETTER DA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0534","lowercase_mapping":"","titlecase_mapping":"0534","symbol":"\u0564"},1381:{"value":"0565","name":"ARMENIAN SMALL LETTER ECH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0535","lowercase_mapping":"","titlecase_mapping":"0535","symbol":"\u0565"},1382:{"value":"0566","name":"ARMENIAN SMALL LETTER ZA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0536","lowercase_mapping":"","titlecase_mapping":"0536","symbol":"\u0566"},1383:{"value":"0567","name":"ARMENIAN SMALL LETTER EH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0537","lowercase_mapping":"","titlecase_mapping":"0537","symbol":"\u0567"},1384:{"value":"0568","name":"ARMENIAN SMALL LETTER ET","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0538","lowercase_mapping":"","titlecase_mapping":"0538","symbol":"\u0568"},1385:{"value":"0569","name":"ARMENIAN SMALL LETTER TO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0539","lowercase_mapping":"","titlecase_mapping":"0539","symbol":"\u0569"},1386:{"value":"056A","name":"ARMENIAN SMALL LETTER ZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053A","lowercase_mapping":"","titlecase_mapping":"053A","symbol":"\u056A"},1387:{"value":"056B","name":"ARMENIAN SMALL LETTER INI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053B","lowercase_mapping":"","titlecase_mapping":"053B","symbol":"\u056B"},1388:{"value":"056C","name":"ARMENIAN SMALL LETTER LIWN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053C","lowercase_mapping":"","titlecase_mapping":"053C","symbol":"\u056C"},1389:{"value":"056D","name":"ARMENIAN SMALL LETTER XEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053D","lowercase_mapping":"","titlecase_mapping":"053D","symbol":"\u056D"},1390:{"value":"056E","name":"ARMENIAN SMALL LETTER CA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053E","lowercase_mapping":"","titlecase_mapping":"053E","symbol":"\u056E"},1391:{"value":"056F","name":"ARMENIAN SMALL LETTER KEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053F","lowercase_mapping":"","titlecase_mapping":"053F","symbol":"\u056F"},1392:{"value":"0570","name":"ARMENIAN SMALL LETTER HO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0540","lowercase_mapping":"","titlecase_mapping":"0540","symbol":"\u0570"},1393:{"value":"0571","name":"ARMENIAN SMALL LETTER JA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0541","lowercase_mapping":"","titlecase_mapping":"0541","symbol":"\u0571"},1394:{"value":"0572","name":"ARMENIAN SMALL LETTER GHAD","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"ARMENIAN SMALL LETTER LAD","comment":"","uppercase_mapping":"0542","lowercase_mapping":"","titlecase_mapping":"0542","symbol":"\u0572"},1395:{"value":"0573","name":"ARMENIAN SMALL LETTER CHEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0543","lowercase_mapping":"","titlecase_mapping":"0543","symbol":"\u0573"},1396:{"value":"0574","name":"ARMENIAN SMALL LETTER MEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0544","lowercase_mapping":"","titlecase_mapping":"0544","symbol":"\u0574"},1397:{"value":"0575","name":"ARMENIAN SMALL LETTER YI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0545","lowercase_mapping":"","titlecase_mapping":"0545","symbol":"\u0575"},1398:{"value":"0576","name":"ARMENIAN SMALL LETTER NOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0546","lowercase_mapping":"","titlecase_mapping":"0546","symbol":"\u0576"},1399:{"value":"0577","name":"ARMENIAN SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0547","lowercase_mapping":"","titlecase_mapping":"0547","symbol":"\u0577"},1400:{"value":"0578","name":"ARMENIAN SMALL LETTER VO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0548","lowercase_mapping":"","titlecase_mapping":"0548","symbol":"\u0578"},1401:{"value":"0579","name":"ARMENIAN SMALL LETTER CHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0549","lowercase_mapping":"","titlecase_mapping":"0549","symbol":"\u0579"},1402:{"value":"057A","name":"ARMENIAN SMALL LETTER PEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054A","lowercase_mapping":"","titlecase_mapping":"054A","symbol":"\u057A"},1403:{"value":"057B","name":"ARMENIAN SMALL LETTER JHEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054B","lowercase_mapping":"","titlecase_mapping":"054B","symbol":"\u057B"},1404:{"value":"057C","name":"ARMENIAN SMALL LETTER RA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054C","lowercase_mapping":"","titlecase_mapping":"054C","symbol":"\u057C"},1405:{"value":"057D","name":"ARMENIAN SMALL LETTER SEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054D","lowercase_mapping":"","titlecase_mapping":"054D","symbol":"\u057D"},1406:{"value":"057E","name":"ARMENIAN SMALL LETTER VEW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054E","lowercase_mapping":"","titlecase_mapping":"054E","symbol":"\u057E"},1407:{"value":"057F","name":"ARMENIAN SMALL LETTER TIWN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054F","lowercase_mapping":"","titlecase_mapping":"054F","symbol":"\u057F"},1408:{"value":"0580","name":"ARMENIAN SMALL LETTER REH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0550","lowercase_mapping":"","titlecase_mapping":"0550","symbol":"\u0580"},1409:{"value":"0581","name":"ARMENIAN SMALL LETTER CO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0551","lowercase_mapping":"","titlecase_mapping":"0551","symbol":"\u0581"},1410:{"value":"0582","name":"ARMENIAN SMALL LETTER YIWN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0552","lowercase_mapping":"","titlecase_mapping":"0552","symbol":"\u0582"},1411:{"value":"0583","name":"ARMENIAN SMALL LETTER PIWR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0553","lowercase_mapping":"","titlecase_mapping":"0553","symbol":"\u0583"},1412:{"value":"0584","name":"ARMENIAN SMALL LETTER KEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0554","lowercase_mapping":"","titlecase_mapping":"0554","symbol":"\u0584"},1413:{"value":"0585","name":"ARMENIAN SMALL LETTER OH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0555","lowercase_mapping":"","titlecase_mapping":"0555","symbol":"\u0585"},1414:{"value":"0586","name":"ARMENIAN SMALL LETTER FEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0556","lowercase_mapping":"","titlecase_mapping":"0556","symbol":"\u0586"},1415:{"value":"0587","name":"ARMENIAN SMALL LIGATURE ECH YIWN","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0565 0582","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0587"},5112:{"value":"13F8","name":"CHEROKEE SMALL LETTER YE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F0","lowercase_mapping":"","titlecase_mapping":"13F0","symbol":"\u13F8"},5113:{"value":"13F9","name":"CHEROKEE SMALL LETTER YI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F1","lowercase_mapping":"","titlecase_mapping":"13F1","symbol":"\u13F9"},5114:{"value":"13FA","name":"CHEROKEE SMALL LETTER YO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F2","lowercase_mapping":"","titlecase_mapping":"13F2","symbol":"\u13FA"},5115:{"value":"13FB","name":"CHEROKEE SMALL LETTER YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F3","lowercase_mapping":"","titlecase_mapping":"13F3","symbol":"\u13FB"},5116:{"value":"13FC","name":"CHEROKEE SMALL LETTER YV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F4","lowercase_mapping":"","titlecase_mapping":"13F4","symbol":"\u13FC"},5117:{"value":"13FD","name":"CHEROKEE SMALL LETTER MV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F5","lowercase_mapping":"","titlecase_mapping":"13F5","symbol":"\u13FD"},7296:{"value":"1C80","name":"CYRILLIC SMALL LETTER ROUNDED VE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0412","lowercase_mapping":"","titlecase_mapping":"0412","symbol":"\u1C80"},7297:{"value":"1C81","name":"CYRILLIC SMALL LETTER LONG-LEGGED DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0414","lowercase_mapping":"","titlecase_mapping":"0414","symbol":"\u1C81"},7298:{"value":"1C82","name":"CYRILLIC SMALL LETTER NARROW O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041E","lowercase_mapping":"","titlecase_mapping":"041E","symbol":"\u1C82"},7299:{"value":"1C83","name":"CYRILLIC SMALL LETTER WIDE ES","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0421","lowercase_mapping":"","titlecase_mapping":"0421","symbol":"\u1C83"},7300:{"value":"1C84","name":"CYRILLIC SMALL LETTER TALL TE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0422","lowercase_mapping":"","titlecase_mapping":"0422","symbol":"\u1C84"},7301:{"value":"1C85","name":"CYRILLIC SMALL LETTER THREE-LEGGED TE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0422","lowercase_mapping":"","titlecase_mapping":"0422","symbol":"\u1C85"},7302:{"value":"1C86","name":"CYRILLIC SMALL LETTER TALL HARD SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"042A","lowercase_mapping":"","titlecase_mapping":"042A","symbol":"\u1C86"},7303:{"value":"1C87","name":"CYRILLIC SMALL LETTER TALL YAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0462","lowercase_mapping":"","titlecase_mapping":"0462","symbol":"\u1C87"},7304:{"value":"1C88","name":"CYRILLIC SMALL LETTER UNBLENDED UK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A64A","lowercase_mapping":"","titlecase_mapping":"A64A","symbol":"\u1C88"},7424:{"value":"1D00","name":"LATIN LETTER SMALL CAPITAL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D00"},7425:{"value":"1D01","name":"LATIN LETTER SMALL CAPITAL AE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D01"},7426:{"value":"1D02","name":"LATIN SMALL LETTER TURNED AE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D02"},7427:{"value":"1D03","name":"LATIN LETTER SMALL CAPITAL BARRED B","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D03"},7428:{"value":"1D04","name":"LATIN LETTER SMALL CAPITAL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D04"},7429:{"value":"1D05","name":"LATIN LETTER SMALL CAPITAL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D05"},7430:{"value":"1D06","name":"LATIN LETTER SMALL CAPITAL ETH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D06"},7431:{"value":"1D07","name":"LATIN LETTER SMALL CAPITAL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D07"},7432:{"value":"1D08","name":"LATIN SMALL LETTER TURNED OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D08"},7433:{"value":"1D09","name":"LATIN SMALL LETTER TURNED I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D09"},7434:{"value":"1D0A","name":"LATIN LETTER SMALL CAPITAL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0A"},7435:{"value":"1D0B","name":"LATIN LETTER SMALL CAPITAL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0B"},7436:{"value":"1D0C","name":"LATIN LETTER SMALL CAPITAL L WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0C"},7437:{"value":"1D0D","name":"LATIN LETTER SMALL CAPITAL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0D"},7438:{"value":"1D0E","name":"LATIN LETTER SMALL CAPITAL REVERSED N","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0E"},7439:{"value":"1D0F","name":"LATIN LETTER SMALL CAPITAL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0F"},7440:{"value":"1D10","name":"LATIN LETTER SMALL CAPITAL OPEN O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D10"},7441:{"value":"1D11","name":"LATIN SMALL LETTER SIDEWAYS O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D11"},7442:{"value":"1D12","name":"LATIN SMALL LETTER SIDEWAYS OPEN O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D12"},7443:{"value":"1D13","name":"LATIN SMALL LETTER SIDEWAYS O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D13"},7444:{"value":"1D14","name":"LATIN SMALL LETTER TURNED OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D14"},7445:{"value":"1D15","name":"LATIN LETTER SMALL CAPITAL OU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D15"},7446:{"value":"1D16","name":"LATIN SMALL LETTER TOP HALF O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D16"},7447:{"value":"1D17","name":"LATIN SMALL LETTER BOTTOM HALF O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D17"},7448:{"value":"1D18","name":"LATIN LETTER SMALL CAPITAL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D18"},7449:{"value":"1D19","name":"LATIN LETTER SMALL CAPITAL REVERSED R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D19"},7450:{"value":"1D1A","name":"LATIN LETTER SMALL CAPITAL TURNED R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1A"},7451:{"value":"1D1B","name":"LATIN LETTER SMALL CAPITAL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1B"},7452:{"value":"1D1C","name":"LATIN LETTER SMALL CAPITAL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1C"},7453:{"value":"1D1D","name":"LATIN SMALL LETTER SIDEWAYS U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1D"},7454:{"value":"1D1E","name":"LATIN SMALL LETTER SIDEWAYS DIAERESIZED U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1E"},7455:{"value":"1D1F","name":"LATIN SMALL LETTER SIDEWAYS TURNED M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1F"},7456:{"value":"1D20","name":"LATIN LETTER SMALL CAPITAL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D20"},7457:{"value":"1D21","name":"LATIN LETTER SMALL CAPITAL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D21"},7458:{"value":"1D22","name":"LATIN LETTER SMALL CAPITAL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D22"},7459:{"value":"1D23","name":"LATIN LETTER SMALL CAPITAL EZH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D23"},7460:{"value":"1D24","name":"LATIN LETTER VOICED LARYNGEAL SPIRANT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D24"},7461:{"value":"1D25","name":"LATIN LETTER AIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D25"},7462:{"value":"1D26","name":"GREEK LETTER SMALL CAPITAL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D26"},7463:{"value":"1D27","name":"GREEK LETTER SMALL CAPITAL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D27"},7464:{"value":"1D28","name":"GREEK LETTER SMALL CAPITAL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D28"},7465:{"value":"1D29","name":"GREEK LETTER SMALL CAPITAL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D29"},7466:{"value":"1D2A","name":"GREEK LETTER SMALL CAPITAL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D2A"},7467:{"value":"1D2B","name":"CYRILLIC LETTER SMALL CAPITAL EL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D2B"},7531:{"value":"1D6B","name":"LATIN SMALL LETTER UE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6B"},7532:{"value":"1D6C","name":"LATIN SMALL LETTER B WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6C"},7533:{"value":"1D6D","name":"LATIN SMALL LETTER D WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6D"},7534:{"value":"1D6E","name":"LATIN SMALL LETTER F WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6E"},7535:{"value":"1D6F","name":"LATIN SMALL LETTER M WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6F"},7536:{"value":"1D70","name":"LATIN SMALL LETTER N WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D70"},7537:{"value":"1D71","name":"LATIN SMALL LETTER P WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D71"},7538:{"value":"1D72","name":"LATIN SMALL LETTER R WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D72"},7539:{"value":"1D73","name":"LATIN SMALL LETTER R WITH FISHHOOK AND MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D73"},7540:{"value":"1D74","name":"LATIN SMALL LETTER S WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D74"},7541:{"value":"1D75","name":"LATIN SMALL LETTER T WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D75"},7542:{"value":"1D76","name":"LATIN SMALL LETTER Z WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D76"},7543:{"value":"1D77","name":"LATIN SMALL LETTER TURNED G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D77"},7545:{"value":"1D79","name":"LATIN SMALL LETTER INSULAR G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A77D","lowercase_mapping":"","titlecase_mapping":"A77D","symbol":"\u1D79"},7546:{"value":"1D7A","name":"LATIN SMALL LETTER TH WITH STRIKETHROUGH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7A"},7547:{"value":"1D7B","name":"LATIN SMALL CAPITAL LETTER I WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7B"},7548:{"value":"1D7C","name":"LATIN SMALL LETTER IOTA WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7C"},7549:{"value":"1D7D","name":"LATIN SMALL LETTER P WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C63","lowercase_mapping":"","titlecase_mapping":"2C63","symbol":"\u1D7D"},7550:{"value":"1D7E","name":"LATIN SMALL CAPITAL LETTER U WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7E"},7551:{"value":"1D7F","name":"LATIN SMALL LETTER UPSILON WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7F"},7552:{"value":"1D80","name":"LATIN SMALL LETTER B WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D80"},7553:{"value":"1D81","name":"LATIN SMALL LETTER D WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D81"},7554:{"value":"1D82","name":"LATIN SMALL LETTER F WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D82"},7555:{"value":"1D83","name":"LATIN SMALL LETTER G WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D83"},7556:{"value":"1D84","name":"LATIN SMALL LETTER K WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D84"},7557:{"value":"1D85","name":"LATIN SMALL LETTER L WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D85"},7558:{"value":"1D86","name":"LATIN SMALL LETTER M WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D86"},7559:{"value":"1D87","name":"LATIN SMALL LETTER N WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D87"},7560:{"value":"1D88","name":"LATIN SMALL LETTER P WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D88"},7561:{"value":"1D89","name":"LATIN SMALL LETTER R WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D89"},7562:{"value":"1D8A","name":"LATIN SMALL LETTER S WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8A"},7563:{"value":"1D8B","name":"LATIN SMALL LETTER ESH WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8B"},7564:{"value":"1D8C","name":"LATIN SMALL LETTER V WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8C"},7565:{"value":"1D8D","name":"LATIN SMALL LETTER X WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8D"},7566:{"value":"1D8E","name":"LATIN SMALL LETTER Z WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8E"},7567:{"value":"1D8F","name":"LATIN SMALL LETTER A WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8F"},7568:{"value":"1D90","name":"LATIN SMALL LETTER ALPHA WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D90"},7569:{"value":"1D91","name":"LATIN SMALL LETTER D WITH HOOK AND TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D91"},7570:{"value":"1D92","name":"LATIN SMALL LETTER E WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D92"},7571:{"value":"1D93","name":"LATIN SMALL LETTER OPEN E WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D93"},7572:{"value":"1D94","name":"LATIN SMALL LETTER REVERSED OPEN E WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D94"},7573:{"value":"1D95","name":"LATIN SMALL LETTER SCHWA WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D95"},7574:{"value":"1D96","name":"LATIN SMALL LETTER I WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D96"},7575:{"value":"1D97","name":"LATIN SMALL LETTER OPEN O WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D97"},7576:{"value":"1D98","name":"LATIN SMALL LETTER ESH WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D98"},7577:{"value":"1D99","name":"LATIN SMALL LETTER U WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D99"},7578:{"value":"1D9A","name":"LATIN SMALL LETTER EZH WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D9A"},7681:{"value":"1E01","name":"LATIN SMALL LETTER A WITH RING BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0325","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E00","lowercase_mapping":"","titlecase_mapping":"1E00","symbol":"\u1E01"},7683:{"value":"1E03","name":"LATIN SMALL LETTER B WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0062 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E02","lowercase_mapping":"","titlecase_mapping":"1E02","symbol":"\u1E03"},7685:{"value":"1E05","name":"LATIN SMALL LETTER B WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0062 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E04","lowercase_mapping":"","titlecase_mapping":"1E04","symbol":"\u1E05"},7687:{"value":"1E07","name":"LATIN SMALL LETTER B WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0062 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E06","lowercase_mapping":"","titlecase_mapping":"1E06","symbol":"\u1E07"},7689:{"value":"1E09","name":"LATIN SMALL LETTER C WITH CEDILLA AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E7 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E08","lowercase_mapping":"","titlecase_mapping":"1E08","symbol":"\u1E09"},7691:{"value":"1E0B","name":"LATIN SMALL LETTER D WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E0A","lowercase_mapping":"","titlecase_mapping":"1E0A","symbol":"\u1E0B"},7693:{"value":"1E0D","name":"LATIN SMALL LETTER D WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E0C","lowercase_mapping":"","titlecase_mapping":"1E0C","symbol":"\u1E0D"},7695:{"value":"1E0F","name":"LATIN SMALL LETTER D WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E0E","lowercase_mapping":"","titlecase_mapping":"1E0E","symbol":"\u1E0F"},7697:{"value":"1E11","name":"LATIN SMALL LETTER D WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E10","lowercase_mapping":"","titlecase_mapping":"1E10","symbol":"\u1E11"},7699:{"value":"1E13","name":"LATIN SMALL LETTER D WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E12","lowercase_mapping":"","titlecase_mapping":"1E12","symbol":"\u1E13"},7701:{"value":"1E15","name":"LATIN SMALL LETTER E WITH MACRON AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0113 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E14","lowercase_mapping":"","titlecase_mapping":"1E14","symbol":"\u1E15"},7703:{"value":"1E17","name":"LATIN SMALL LETTER E WITH MACRON AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0113 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E16","lowercase_mapping":"","titlecase_mapping":"1E16","symbol":"\u1E17"},7705:{"value":"1E19","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E18","lowercase_mapping":"","titlecase_mapping":"1E18","symbol":"\u1E19"},7707:{"value":"1E1B","name":"LATIN SMALL LETTER E WITH TILDE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0330","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E1A","lowercase_mapping":"","titlecase_mapping":"1E1A","symbol":"\u1E1B"},7709:{"value":"1E1D","name":"LATIN SMALL LETTER E WITH CEDILLA AND BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0229 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E1C","lowercase_mapping":"","titlecase_mapping":"1E1C","symbol":"\u1E1D"},7711:{"value":"1E1F","name":"LATIN SMALL LETTER F WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0066 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E1E","lowercase_mapping":"","titlecase_mapping":"1E1E","symbol":"\u1E1F"},7713:{"value":"1E21","name":"LATIN SMALL LETTER G WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E20","lowercase_mapping":"","titlecase_mapping":"1E20","symbol":"\u1E21"},7715:{"value":"1E23","name":"LATIN SMALL LETTER H WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E22","lowercase_mapping":"","titlecase_mapping":"1E22","symbol":"\u1E23"},7717:{"value":"1E25","name":"LATIN SMALL LETTER H WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E24","lowercase_mapping":"","titlecase_mapping":"1E24","symbol":"\u1E25"},7719:{"value":"1E27","name":"LATIN SMALL LETTER H WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E26","lowercase_mapping":"","titlecase_mapping":"1E26","symbol":"\u1E27"},7721:{"value":"1E29","name":"LATIN SMALL LETTER H WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E28","lowercase_mapping":"","titlecase_mapping":"1E28","symbol":"\u1E29"},7723:{"value":"1E2B","name":"LATIN SMALL LETTER H WITH BREVE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 032E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E2A","lowercase_mapping":"","titlecase_mapping":"1E2A","symbol":"\u1E2B"},7725:{"value":"1E2D","name":"LATIN SMALL LETTER I WITH TILDE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0330","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E2C","lowercase_mapping":"","titlecase_mapping":"1E2C","symbol":"\u1E2D"},7727:{"value":"1E2F","name":"LATIN SMALL LETTER I WITH DIAERESIS AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EF 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E2E","lowercase_mapping":"","titlecase_mapping":"1E2E","symbol":"\u1E2F"},7729:{"value":"1E31","name":"LATIN SMALL LETTER K WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E30","lowercase_mapping":"","titlecase_mapping":"1E30","symbol":"\u1E31"},7731:{"value":"1E33","name":"LATIN SMALL LETTER K WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E32","lowercase_mapping":"","titlecase_mapping":"1E32","symbol":"\u1E33"},7733:{"value":"1E35","name":"LATIN SMALL LETTER K WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E34","lowercase_mapping":"","titlecase_mapping":"1E34","symbol":"\u1E35"},7735:{"value":"1E37","name":"LATIN SMALL LETTER L WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E36","lowercase_mapping":"","titlecase_mapping":"1E36","symbol":"\u1E37"},7737:{"value":"1E39","name":"LATIN SMALL LETTER L WITH DOT BELOW AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1E37 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E38","lowercase_mapping":"","titlecase_mapping":"1E38","symbol":"\u1E39"},7739:{"value":"1E3B","name":"LATIN SMALL LETTER L WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E3A","lowercase_mapping":"","titlecase_mapping":"1E3A","symbol":"\u1E3B"},7741:{"value":"1E3D","name":"LATIN SMALL LETTER L WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E3C","lowercase_mapping":"","titlecase_mapping":"1E3C","symbol":"\u1E3D"},7743:{"value":"1E3F","name":"LATIN SMALL LETTER M WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006D 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E3E","lowercase_mapping":"","titlecase_mapping":"1E3E","symbol":"\u1E3F"},7745:{"value":"1E41","name":"LATIN SMALL LETTER M WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006D 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E40","lowercase_mapping":"","titlecase_mapping":"1E40","symbol":"\u1E41"},7747:{"value":"1E43","name":"LATIN SMALL LETTER M WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006D 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E42","lowercase_mapping":"","titlecase_mapping":"1E42","symbol":"\u1E43"},7749:{"value":"1E45","name":"LATIN SMALL LETTER N WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E44","lowercase_mapping":"","titlecase_mapping":"1E44","symbol":"\u1E45"},7751:{"value":"1E47","name":"LATIN SMALL LETTER N WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E46","lowercase_mapping":"","titlecase_mapping":"1E46","symbol":"\u1E47"},7753:{"value":"1E49","name":"LATIN SMALL LETTER N WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E48","lowercase_mapping":"","titlecase_mapping":"1E48","symbol":"\u1E49"},7755:{"value":"1E4B","name":"LATIN SMALL LETTER N WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E4A","lowercase_mapping":"","titlecase_mapping":"1E4A","symbol":"\u1E4B"},7757:{"value":"1E4D","name":"LATIN SMALL LETTER O WITH TILDE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F5 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E4C","lowercase_mapping":"","titlecase_mapping":"1E4C","symbol":"\u1E4D"},7759:{"value":"1E4F","name":"LATIN SMALL LETTER O WITH TILDE AND DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F5 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E4E","lowercase_mapping":"","titlecase_mapping":"1E4E","symbol":"\u1E4F"},7761:{"value":"1E51","name":"LATIN SMALL LETTER O WITH MACRON AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"014D 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E50","lowercase_mapping":"","titlecase_mapping":"1E50","symbol":"\u1E51"},7763:{"value":"1E53","name":"LATIN SMALL LETTER O WITH MACRON AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"014D 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E52","lowercase_mapping":"","titlecase_mapping":"1E52","symbol":"\u1E53"},7765:{"value":"1E55","name":"LATIN SMALL LETTER P WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0070 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E54","lowercase_mapping":"","titlecase_mapping":"1E54","symbol":"\u1E55"},7767:{"value":"1E57","name":"LATIN SMALL LETTER P WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0070 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E56","lowercase_mapping":"","titlecase_mapping":"1E56","symbol":"\u1E57"},7769:{"value":"1E59","name":"LATIN SMALL LETTER R WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E58","lowercase_mapping":"","titlecase_mapping":"1E58","symbol":"\u1E59"},7771:{"value":"1E5B","name":"LATIN SMALL LETTER R WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E5A","lowercase_mapping":"","titlecase_mapping":"1E5A","symbol":"\u1E5B"},7773:{"value":"1E5D","name":"LATIN SMALL LETTER R WITH DOT BELOW AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1E5B 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E5C","lowercase_mapping":"","titlecase_mapping":"1E5C","symbol":"\u1E5D"},7775:{"value":"1E5F","name":"LATIN SMALL LETTER R WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E5E","lowercase_mapping":"","titlecase_mapping":"1E5E","symbol":"\u1E5F"},7777:{"value":"1E61","name":"LATIN SMALL LETTER S WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E60","lowercase_mapping":"","titlecase_mapping":"1E60","symbol":"\u1E61"},7779:{"value":"1E63","name":"LATIN SMALL LETTER S WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E62","lowercase_mapping":"","titlecase_mapping":"1E62","symbol":"\u1E63"},7781:{"value":"1E65","name":"LATIN SMALL LETTER S WITH ACUTE AND DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"015B 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E64","lowercase_mapping":"","titlecase_mapping":"1E64","symbol":"\u1E65"},7783:{"value":"1E67","name":"LATIN SMALL LETTER S WITH CARON AND DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0161 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E66","lowercase_mapping":"","titlecase_mapping":"1E66","symbol":"\u1E67"},7785:{"value":"1E69","name":"LATIN SMALL LETTER S WITH DOT BELOW AND DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1E63 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E68","lowercase_mapping":"","titlecase_mapping":"1E68","symbol":"\u1E69"},7787:{"value":"1E6B","name":"LATIN SMALL LETTER T WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E6A","lowercase_mapping":"","titlecase_mapping":"1E6A","symbol":"\u1E6B"},7789:{"value":"1E6D","name":"LATIN SMALL LETTER T WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E6C","lowercase_mapping":"","titlecase_mapping":"1E6C","symbol":"\u1E6D"},7791:{"value":"1E6F","name":"LATIN SMALL LETTER T WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E6E","lowercase_mapping":"","titlecase_mapping":"1E6E","symbol":"\u1E6F"},7793:{"value":"1E71","name":"LATIN SMALL LETTER T WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E70","lowercase_mapping":"","titlecase_mapping":"1E70","symbol":"\u1E71"},7795:{"value":"1E73","name":"LATIN SMALL LETTER U WITH DIAERESIS BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0324","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E72","lowercase_mapping":"","titlecase_mapping":"1E72","symbol":"\u1E73"},7797:{"value":"1E75","name":"LATIN SMALL LETTER U WITH TILDE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0330","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E74","lowercase_mapping":"","titlecase_mapping":"1E74","symbol":"\u1E75"},7799:{"value":"1E77","name":"LATIN SMALL LETTER U WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E76","lowercase_mapping":"","titlecase_mapping":"1E76","symbol":"\u1E77"},7801:{"value":"1E79","name":"LATIN SMALL LETTER U WITH TILDE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0169 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E78","lowercase_mapping":"","titlecase_mapping":"1E78","symbol":"\u1E79"},7803:{"value":"1E7B","name":"LATIN SMALL LETTER U WITH MACRON AND DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"016B 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E7A","lowercase_mapping":"","titlecase_mapping":"1E7A","symbol":"\u1E7B"},7805:{"value":"1E7D","name":"LATIN SMALL LETTER V WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0076 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E7C","lowercase_mapping":"","titlecase_mapping":"1E7C","symbol":"\u1E7D"},7807:{"value":"1E7F","name":"LATIN SMALL LETTER V WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0076 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E7E","lowercase_mapping":"","titlecase_mapping":"1E7E","symbol":"\u1E7F"},7809:{"value":"1E81","name":"LATIN SMALL LETTER W WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E80","lowercase_mapping":"","titlecase_mapping":"1E80","symbol":"\u1E81"},7811:{"value":"1E83","name":"LATIN SMALL LETTER W WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E82","lowercase_mapping":"","titlecase_mapping":"1E82","symbol":"\u1E83"},7813:{"value":"1E85","name":"LATIN SMALL LETTER W WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E84","lowercase_mapping":"","titlecase_mapping":"1E84","symbol":"\u1E85"},7815:{"value":"1E87","name":"LATIN SMALL LETTER W WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E86","lowercase_mapping":"","titlecase_mapping":"1E86","symbol":"\u1E87"},7817:{"value":"1E89","name":"LATIN SMALL LETTER W WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E88","lowercase_mapping":"","titlecase_mapping":"1E88","symbol":"\u1E89"},7819:{"value":"1E8B","name":"LATIN SMALL LETTER X WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0078 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E8A","lowercase_mapping":"","titlecase_mapping":"1E8A","symbol":"\u1E8B"},7821:{"value":"1E8D","name":"LATIN SMALL LETTER X WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0078 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E8C","lowercase_mapping":"","titlecase_mapping":"1E8C","symbol":"\u1E8D"},7823:{"value":"1E8F","name":"LATIN SMALL LETTER Y WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E8E","lowercase_mapping":"","titlecase_mapping":"1E8E","symbol":"\u1E8F"},7825:{"value":"1E91","name":"LATIN SMALL LETTER Z WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90","lowercase_mapping":"","titlecase_mapping":"1E90","symbol":"\u1E91"},7827:{"value":"1E93","name":"LATIN SMALL LETTER Z WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E92","lowercase_mapping":"","titlecase_mapping":"1E92","symbol":"\u1E93"},7829:{"value":"1E95","name":"LATIN SMALL LETTER Z WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E94","lowercase_mapping":"","titlecase_mapping":"1E94","symbol":"\u1E95"},7830:{"value":"1E96","name":"LATIN SMALL LETTER H WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E96"},7831:{"value":"1E97","name":"LATIN SMALL LETTER T WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E97"},7832:{"value":"1E98","name":"LATIN SMALL LETTER W WITH RING ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 030A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E98"},7833:{"value":"1E99","name":"LATIN SMALL LETTER Y WITH RING ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 030A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E99"},7834:{"value":"1E9A","name":"LATIN SMALL LETTER A WITH RIGHT HALF RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061 02BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E9A"},7835:{"value":"1E9B","name":"LATIN SMALL LETTER LONG S WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"017F 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E60","lowercase_mapping":"","titlecase_mapping":"1E60","symbol":"\u1E9B"},7836:{"value":"1E9C","name":"LATIN SMALL LETTER LONG S WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E9C"},7837:{"value":"1E9D","name":"LATIN SMALL LETTER LONG S WITH HIGH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E9D"},7839:{"value":"1E9F","name":"LATIN SMALL LETTER DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E9F"},7841:{"value":"1EA1","name":"LATIN SMALL LETTER A WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA0","lowercase_mapping":"","titlecase_mapping":"1EA0","symbol":"\u1EA1"},7843:{"value":"1EA3","name":"LATIN SMALL LETTER A WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA2","lowercase_mapping":"","titlecase_mapping":"1EA2","symbol":"\u1EA3"},7845:{"value":"1EA5","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E2 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA4","lowercase_mapping":"","titlecase_mapping":"1EA4","symbol":"\u1EA5"},7847:{"value":"1EA7","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E2 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA6","lowercase_mapping":"","titlecase_mapping":"1EA6","symbol":"\u1EA7"},7849:{"value":"1EA9","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E2 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA8","lowercase_mapping":"","titlecase_mapping":"1EA8","symbol":"\u1EA9"},7851:{"value":"1EAB","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E2 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EAA","lowercase_mapping":"","titlecase_mapping":"1EAA","symbol":"\u1EAB"},7853:{"value":"1EAD","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1EA1 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EAC","lowercase_mapping":"","titlecase_mapping":"1EAC","symbol":"\u1EAD"},7855:{"value":"1EAF","name":"LATIN SMALL LETTER A WITH BREVE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0103 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EAE","lowercase_mapping":"","titlecase_mapping":"1EAE","symbol":"\u1EAF"},7857:{"value":"1EB1","name":"LATIN SMALL LETTER A WITH BREVE AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0103 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB0","lowercase_mapping":"","titlecase_mapping":"1EB0","symbol":"\u1EB1"},7859:{"value":"1EB3","name":"LATIN SMALL LETTER A WITH BREVE AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0103 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB2","lowercase_mapping":"","titlecase_mapping":"1EB2","symbol":"\u1EB3"},7861:{"value":"1EB5","name":"LATIN SMALL LETTER A WITH BREVE AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0103 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB4","lowercase_mapping":"","titlecase_mapping":"1EB4","symbol":"\u1EB5"},7863:{"value":"1EB7","name":"LATIN SMALL LETTER A WITH BREVE AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1EA1 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB6","lowercase_mapping":"","titlecase_mapping":"1EB6","symbol":"\u1EB7"},7865:{"value":"1EB9","name":"LATIN SMALL LETTER E WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB8","lowercase_mapping":"","titlecase_mapping":"1EB8","symbol":"\u1EB9"},7867:{"value":"1EBB","name":"LATIN SMALL LETTER E WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EBA","lowercase_mapping":"","titlecase_mapping":"1EBA","symbol":"\u1EBB"},7869:{"value":"1EBD","name":"LATIN SMALL LETTER E WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EBC","lowercase_mapping":"","titlecase_mapping":"1EBC","symbol":"\u1EBD"},7871:{"value":"1EBF","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EA 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EBE","lowercase_mapping":"","titlecase_mapping":"1EBE","symbol":"\u1EBF"},7873:{"value":"1EC1","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EA 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC0","lowercase_mapping":"","titlecase_mapping":"1EC0","symbol":"\u1EC1"},7875:{"value":"1EC3","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EA 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC2","lowercase_mapping":"","titlecase_mapping":"1EC2","symbol":"\u1EC3"},7877:{"value":"1EC5","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EA 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC4","lowercase_mapping":"","titlecase_mapping":"1EC4","symbol":"\u1EC5"},7879:{"value":"1EC7","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1EB9 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC6","lowercase_mapping":"","titlecase_mapping":"1EC6","symbol":"\u1EC7"},7881:{"value":"1EC9","name":"LATIN SMALL LETTER I WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC8","lowercase_mapping":"","titlecase_mapping":"1EC8","symbol":"\u1EC9"},7883:{"value":"1ECB","name":"LATIN SMALL LETTER I WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ECA","lowercase_mapping":"","titlecase_mapping":"1ECA","symbol":"\u1ECB"},7885:{"value":"1ECD","name":"LATIN SMALL LETTER O WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ECC","lowercase_mapping":"","titlecase_mapping":"1ECC","symbol":"\u1ECD"},7887:{"value":"1ECF","name":"LATIN SMALL LETTER O WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ECE","lowercase_mapping":"","titlecase_mapping":"1ECE","symbol":"\u1ECF"},7889:{"value":"1ED1","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F4 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED0","lowercase_mapping":"","titlecase_mapping":"1ED0","symbol":"\u1ED1"},7891:{"value":"1ED3","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F4 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED2","lowercase_mapping":"","titlecase_mapping":"1ED2","symbol":"\u1ED3"},7893:{"value":"1ED5","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F4 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED4","lowercase_mapping":"","titlecase_mapping":"1ED4","symbol":"\u1ED5"},7895:{"value":"1ED7","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F4 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED6","lowercase_mapping":"","titlecase_mapping":"1ED6","symbol":"\u1ED7"},7897:{"value":"1ED9","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1ECD 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED8","lowercase_mapping":"","titlecase_mapping":"1ED8","symbol":"\u1ED9"},7899:{"value":"1EDB","name":"LATIN SMALL LETTER O WITH HORN AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EDA","lowercase_mapping":"","titlecase_mapping":"1EDA","symbol":"\u1EDB"},7901:{"value":"1EDD","name":"LATIN SMALL LETTER O WITH HORN AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EDC","lowercase_mapping":"","titlecase_mapping":"1EDC","symbol":"\u1EDD"},7903:{"value":"1EDF","name":"LATIN SMALL LETTER O WITH HORN AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EDE","lowercase_mapping":"","titlecase_mapping":"1EDE","symbol":"\u1EDF"},7905:{"value":"1EE1","name":"LATIN SMALL LETTER O WITH HORN AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE0","lowercase_mapping":"","titlecase_mapping":"1EE0","symbol":"\u1EE1"},7907:{"value":"1EE3","name":"LATIN SMALL LETTER O WITH HORN AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE2","lowercase_mapping":"","titlecase_mapping":"1EE2","symbol":"\u1EE3"},7909:{"value":"1EE5","name":"LATIN SMALL LETTER U WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE4","lowercase_mapping":"","titlecase_mapping":"1EE4","symbol":"\u1EE5"},7911:{"value":"1EE7","name":"LATIN SMALL LETTER U WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE6","lowercase_mapping":"","titlecase_mapping":"1EE6","symbol":"\u1EE7"},7913:{"value":"1EE9","name":"LATIN SMALL LETTER U WITH HORN AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE8","lowercase_mapping":"","titlecase_mapping":"1EE8","symbol":"\u1EE9"},7915:{"value":"1EEB","name":"LATIN SMALL LETTER U WITH HORN AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EEA","lowercase_mapping":"","titlecase_mapping":"1EEA","symbol":"\u1EEB"},7917:{"value":"1EED","name":"LATIN SMALL LETTER U WITH HORN AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EEC","lowercase_mapping":"","titlecase_mapping":"1EEC","symbol":"\u1EED"},7919:{"value":"1EEF","name":"LATIN SMALL LETTER U WITH HORN AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EEE","lowercase_mapping":"","titlecase_mapping":"1EEE","symbol":"\u1EEF"},7921:{"value":"1EF1","name":"LATIN SMALL LETTER U WITH HORN AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF0","lowercase_mapping":"","titlecase_mapping":"1EF0","symbol":"\u1EF1"},7923:{"value":"1EF3","name":"LATIN SMALL LETTER Y WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF2","lowercase_mapping":"","titlecase_mapping":"1EF2","symbol":"\u1EF3"},7925:{"value":"1EF5","name":"LATIN SMALL LETTER Y WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF4","lowercase_mapping":"","titlecase_mapping":"1EF4","symbol":"\u1EF5"},7927:{"value":"1EF7","name":"LATIN SMALL LETTER Y WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF6","lowercase_mapping":"","titlecase_mapping":"1EF6","symbol":"\u1EF7"},7929:{"value":"1EF9","name":"LATIN SMALL LETTER Y WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF8","lowercase_mapping":"","titlecase_mapping":"1EF8","symbol":"\u1EF9"},7931:{"value":"1EFB","name":"LATIN SMALL LETTER MIDDLE-WELSH LL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EFA","lowercase_mapping":"","titlecase_mapping":"1EFA","symbol":"\u1EFB"},7933:{"value":"1EFD","name":"LATIN SMALL LETTER MIDDLE-WELSH V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EFC","lowercase_mapping":"","titlecase_mapping":"1EFC","symbol":"\u1EFD"},7935:{"value":"1EFF","name":"LATIN SMALL LETTER Y WITH LOOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EFE","lowercase_mapping":"","titlecase_mapping":"1EFE","symbol":"\u1EFF"},7936:{"value":"1F00","name":"GREEK SMALL LETTER ALPHA WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F08","lowercase_mapping":"","titlecase_mapping":"1F08","symbol":"\u1F00"},7937:{"value":"1F01","name":"GREEK SMALL LETTER ALPHA WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F09","lowercase_mapping":"","titlecase_mapping":"1F09","symbol":"\u1F01"},7938:{"value":"1F02","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F00 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0A","lowercase_mapping":"","titlecase_mapping":"1F0A","symbol":"\u1F02"},7939:{"value":"1F03","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F01 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0B","lowercase_mapping":"","titlecase_mapping":"1F0B","symbol":"\u1F03"},7940:{"value":"1F04","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F00 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0C","lowercase_mapping":"","titlecase_mapping":"1F0C","symbol":"\u1F04"},7941:{"value":"1F05","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F01 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0D","lowercase_mapping":"","titlecase_mapping":"1F0D","symbol":"\u1F05"},7942:{"value":"1F06","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F00 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0E","lowercase_mapping":"","titlecase_mapping":"1F0E","symbol":"\u1F06"},7943:{"value":"1F07","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F01 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0F","lowercase_mapping":"","titlecase_mapping":"1F0F","symbol":"\u1F07"},7952:{"value":"1F10","name":"GREEK SMALL LETTER EPSILON WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B5 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F18","lowercase_mapping":"","titlecase_mapping":"1F18","symbol":"\u1F10"},7953:{"value":"1F11","name":"GREEK SMALL LETTER EPSILON WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B5 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F19","lowercase_mapping":"","titlecase_mapping":"1F19","symbol":"\u1F11"},7954:{"value":"1F12","name":"GREEK SMALL LETTER EPSILON WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F10 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F1A","lowercase_mapping":"","titlecase_mapping":"1F1A","symbol":"\u1F12"},7955:{"value":"1F13","name":"GREEK SMALL LETTER EPSILON WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F11 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F1B","lowercase_mapping":"","titlecase_mapping":"1F1B","symbol":"\u1F13"},7956:{"value":"1F14","name":"GREEK SMALL LETTER EPSILON WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F10 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F1C","lowercase_mapping":"","titlecase_mapping":"1F1C","symbol":"\u1F14"},7957:{"value":"1F15","name":"GREEK SMALL LETTER EPSILON WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F11 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F1D","lowercase_mapping":"","titlecase_mapping":"1F1D","symbol":"\u1F15"},7968:{"value":"1F20","name":"GREEK SMALL LETTER ETA WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F28","lowercase_mapping":"","titlecase_mapping":"1F28","symbol":"\u1F20"},7969:{"value":"1F21","name":"GREEK SMALL LETTER ETA WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F29","lowercase_mapping":"","titlecase_mapping":"1F29","symbol":"\u1F21"},7970:{"value":"1F22","name":"GREEK SMALL LETTER ETA WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F20 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2A","lowercase_mapping":"","titlecase_mapping":"1F2A","symbol":"\u1F22"},7971:{"value":"1F23","name":"GREEK SMALL LETTER ETA WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F21 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2B","lowercase_mapping":"","titlecase_mapping":"1F2B","symbol":"\u1F23"},7972:{"value":"1F24","name":"GREEK SMALL LETTER ETA WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F20 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2C","lowercase_mapping":"","titlecase_mapping":"1F2C","symbol":"\u1F24"},7973:{"value":"1F25","name":"GREEK SMALL LETTER ETA WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F21 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2D","lowercase_mapping":"","titlecase_mapping":"1F2D","symbol":"\u1F25"},7974:{"value":"1F26","name":"GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F20 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2E","lowercase_mapping":"","titlecase_mapping":"1F2E","symbol":"\u1F26"},7975:{"value":"1F27","name":"GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F21 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2F","lowercase_mapping":"","titlecase_mapping":"1F2F","symbol":"\u1F27"},7984:{"value":"1F30","name":"GREEK SMALL LETTER IOTA WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F38","lowercase_mapping":"","titlecase_mapping":"1F38","symbol":"\u1F30"},7985:{"value":"1F31","name":"GREEK SMALL LETTER IOTA WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F39","lowercase_mapping":"","titlecase_mapping":"1F39","symbol":"\u1F31"},7986:{"value":"1F32","name":"GREEK SMALL LETTER IOTA WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F30 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3A","lowercase_mapping":"","titlecase_mapping":"1F3A","symbol":"\u1F32"},7987:{"value":"1F33","name":"GREEK SMALL LETTER IOTA WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F31 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3B","lowercase_mapping":"","titlecase_mapping":"1F3B","symbol":"\u1F33"},7988:{"value":"1F34","name":"GREEK SMALL LETTER IOTA WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F30 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3C","lowercase_mapping":"","titlecase_mapping":"1F3C","symbol":"\u1F34"},7989:{"value":"1F35","name":"GREEK SMALL LETTER IOTA WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F31 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3D","lowercase_mapping":"","titlecase_mapping":"1F3D","symbol":"\u1F35"},7990:{"value":"1F36","name":"GREEK SMALL LETTER IOTA WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F30 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3E","lowercase_mapping":"","titlecase_mapping":"1F3E","symbol":"\u1F36"},7991:{"value":"1F37","name":"GREEK SMALL LETTER IOTA WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F31 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3F","lowercase_mapping":"","titlecase_mapping":"1F3F","symbol":"\u1F37"},8000:{"value":"1F40","name":"GREEK SMALL LETTER OMICRON WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03BF 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F48","lowercase_mapping":"","titlecase_mapping":"1F48","symbol":"\u1F40"},8001:{"value":"1F41","name":"GREEK SMALL LETTER OMICRON WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03BF 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F49","lowercase_mapping":"","titlecase_mapping":"1F49","symbol":"\u1F41"},8002:{"value":"1F42","name":"GREEK SMALL LETTER OMICRON WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F40 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F4A","lowercase_mapping":"","titlecase_mapping":"1F4A","symbol":"\u1F42"},8003:{"value":"1F43","name":"GREEK SMALL LETTER OMICRON WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F41 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F4B","lowercase_mapping":"","titlecase_mapping":"1F4B","symbol":"\u1F43"},8004:{"value":"1F44","name":"GREEK SMALL LETTER OMICRON WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F40 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F4C","lowercase_mapping":"","titlecase_mapping":"1F4C","symbol":"\u1F44"},8005:{"value":"1F45","name":"GREEK SMALL LETTER OMICRON WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F41 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F4D","lowercase_mapping":"","titlecase_mapping":"1F4D","symbol":"\u1F45"},8016:{"value":"1F50","name":"GREEK SMALL LETTER UPSILON WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1F50"},8017:{"value":"1F51","name":"GREEK SMALL LETTER UPSILON WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F59","lowercase_mapping":"","titlecase_mapping":"1F59","symbol":"\u1F51"},8018:{"value":"1F52","name":"GREEK SMALL LETTER UPSILON WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F50 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1F52"},8019:{"value":"1F53","name":"GREEK SMALL LETTER UPSILON WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F51 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F5B","lowercase_mapping":"","titlecase_mapping":"1F5B","symbol":"\u1F53"},8020:{"value":"1F54","name":"GREEK SMALL LETTER UPSILON WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F50 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1F54"},8021:{"value":"1F55","name":"GREEK SMALL LETTER UPSILON WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F51 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F5D","lowercase_mapping":"","titlecase_mapping":"1F5D","symbol":"\u1F55"},8022:{"value":"1F56","name":"GREEK SMALL LETTER UPSILON WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F50 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1F56"},8023:{"value":"1F57","name":"GREEK SMALL LETTER UPSILON WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F51 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F5F","lowercase_mapping":"","titlecase_mapping":"1F5F","symbol":"\u1F57"},8032:{"value":"1F60","name":"GREEK SMALL LETTER OMEGA WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F68","lowercase_mapping":"","titlecase_mapping":"1F68","symbol":"\u1F60"},8033:{"value":"1F61","name":"GREEK SMALL LETTER OMEGA WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F69","lowercase_mapping":"","titlecase_mapping":"1F69","symbol":"\u1F61"},8034:{"value":"1F62","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F60 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6A","lowercase_mapping":"","titlecase_mapping":"1F6A","symbol":"\u1F62"},8035:{"value":"1F63","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F61 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6B","lowercase_mapping":"","titlecase_mapping":"1F6B","symbol":"\u1F63"},8036:{"value":"1F64","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F60 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6C","lowercase_mapping":"","titlecase_mapping":"1F6C","symbol":"\u1F64"},8037:{"value":"1F65","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F61 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6D","lowercase_mapping":"","titlecase_mapping":"1F6D","symbol":"\u1F65"},8038:{"value":"1F66","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F60 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6E","lowercase_mapping":"","titlecase_mapping":"1F6E","symbol":"\u1F66"},8039:{"value":"1F67","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F61 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6F","lowercase_mapping":"","titlecase_mapping":"1F6F","symbol":"\u1F67"},8048:{"value":"1F70","name":"GREEK SMALL LETTER ALPHA WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FBA","lowercase_mapping":"","titlecase_mapping":"1FBA","symbol":"\u1F70"},8049:{"value":"1F71","name":"GREEK SMALL LETTER ALPHA WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FBB","lowercase_mapping":"","titlecase_mapping":"1FBB","symbol":"\u1F71"},8050:{"value":"1F72","name":"GREEK SMALL LETTER EPSILON WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B5 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FC8","lowercase_mapping":"","titlecase_mapping":"1FC8","symbol":"\u1F72"},8051:{"value":"1F73","name":"GREEK SMALL LETTER EPSILON WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FC9","lowercase_mapping":"","titlecase_mapping":"1FC9","symbol":"\u1F73"},8052:{"value":"1F74","name":"GREEK SMALL LETTER ETA WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FCA","lowercase_mapping":"","titlecase_mapping":"1FCA","symbol":"\u1F74"},8053:{"value":"1F75","name":"GREEK SMALL LETTER ETA WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FCB","lowercase_mapping":"","titlecase_mapping":"1FCB","symbol":"\u1F75"},8054:{"value":"1F76","name":"GREEK SMALL LETTER IOTA WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FDA","lowercase_mapping":"","titlecase_mapping":"1FDA","symbol":"\u1F76"},8055:{"value":"1F77","name":"GREEK SMALL LETTER IOTA WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FDB","lowercase_mapping":"","titlecase_mapping":"1FDB","symbol":"\u1F77"},8056:{"value":"1F78","name":"GREEK SMALL LETTER OMICRON WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03BF 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FF8","lowercase_mapping":"","titlecase_mapping":"1FF8","symbol":"\u1F78"},8057:{"value":"1F79","name":"GREEK SMALL LETTER OMICRON WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FF9","lowercase_mapping":"","titlecase_mapping":"1FF9","symbol":"\u1F79"},8058:{"value":"1F7A","name":"GREEK SMALL LETTER UPSILON WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FEA","lowercase_mapping":"","titlecase_mapping":"1FEA","symbol":"\u1F7A"},8059:{"value":"1F7B","name":"GREEK SMALL LETTER UPSILON WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FEB","lowercase_mapping":"","titlecase_mapping":"1FEB","symbol":"\u1F7B"},8060:{"value":"1F7C","name":"GREEK SMALL LETTER OMEGA WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FFA","lowercase_mapping":"","titlecase_mapping":"1FFA","symbol":"\u1F7C"},8061:{"value":"1F7D","name":"GREEK SMALL LETTER OMEGA WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FFB","lowercase_mapping":"","titlecase_mapping":"1FFB","symbol":"\u1F7D"},8064:{"value":"1F80","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F00 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F88","lowercase_mapping":"","titlecase_mapping":"1F88","symbol":"\u1F80"},8065:{"value":"1F81","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F01 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F89","lowercase_mapping":"","titlecase_mapping":"1F89","symbol":"\u1F81"},8066:{"value":"1F82","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F02 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8A","lowercase_mapping":"","titlecase_mapping":"1F8A","symbol":"\u1F82"},8067:{"value":"1F83","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F03 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8B","lowercase_mapping":"","titlecase_mapping":"1F8B","symbol":"\u1F83"},8068:{"value":"1F84","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F04 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8C","lowercase_mapping":"","titlecase_mapping":"1F8C","symbol":"\u1F84"},8069:{"value":"1F85","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F05 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8D","lowercase_mapping":"","titlecase_mapping":"1F8D","symbol":"\u1F85"},8070:{"value":"1F86","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F06 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8E","lowercase_mapping":"","titlecase_mapping":"1F8E","symbol":"\u1F86"},8071:{"value":"1F87","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F07 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8F","lowercase_mapping":"","titlecase_mapping":"1F8F","symbol":"\u1F87"},8080:{"value":"1F90","name":"GREEK SMALL LETTER ETA WITH PSILI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F20 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F98","lowercase_mapping":"","titlecase_mapping":"1F98","symbol":"\u1F90"},8081:{"value":"1F91","name":"GREEK SMALL LETTER ETA WITH DASIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F21 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F99","lowercase_mapping":"","titlecase_mapping":"1F99","symbol":"\u1F91"},8082:{"value":"1F92","name":"GREEK SMALL LETTER ETA WITH PSILI AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F22 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9A","lowercase_mapping":"","titlecase_mapping":"1F9A","symbol":"\u1F92"},8083:{"value":"1F93","name":"GREEK SMALL LETTER ETA WITH DASIA AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F23 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9B","lowercase_mapping":"","titlecase_mapping":"1F9B","symbol":"\u1F93"},8084:{"value":"1F94","name":"GREEK SMALL LETTER ETA WITH PSILI AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F24 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9C","lowercase_mapping":"","titlecase_mapping":"1F9C","symbol":"\u1F94"},8085:{"value":"1F95","name":"GREEK SMALL LETTER ETA WITH DASIA AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F25 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9D","lowercase_mapping":"","titlecase_mapping":"1F9D","symbol":"\u1F95"},8086:{"value":"1F96","name":"GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F26 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9E","lowercase_mapping":"","titlecase_mapping":"1F9E","symbol":"\u1F96"},8087:{"value":"1F97","name":"GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F27 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9F","lowercase_mapping":"","titlecase_mapping":"1F9F","symbol":"\u1F97"},8096:{"value":"1FA0","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F60 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FA8","lowercase_mapping":"","titlecase_mapping":"1FA8","symbol":"\u1FA0"},8097:{"value":"1FA1","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F61 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FA9","lowercase_mapping":"","titlecase_mapping":"1FA9","symbol":"\u1FA1"},8098:{"value":"1FA2","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F62 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAA","lowercase_mapping":"","titlecase_mapping":"1FAA","symbol":"\u1FA2"},8099:{"value":"1FA3","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F63 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAB","lowercase_mapping":"","titlecase_mapping":"1FAB","symbol":"\u1FA3"},8100:{"value":"1FA4","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F64 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAC","lowercase_mapping":"","titlecase_mapping":"1FAC","symbol":"\u1FA4"},8101:{"value":"1FA5","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F65 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAD","lowercase_mapping":"","titlecase_mapping":"1FAD","symbol":"\u1FA5"},8102:{"value":"1FA6","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F66 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAE","lowercase_mapping":"","titlecase_mapping":"1FAE","symbol":"\u1FA6"},8103:{"value":"1FA7","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F67 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAF","lowercase_mapping":"","titlecase_mapping":"1FAF","symbol":"\u1FA7"},8112:{"value":"1FB0","name":"GREEK SMALL LETTER ALPHA WITH VRACHY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FB8","lowercase_mapping":"","titlecase_mapping":"1FB8","symbol":"\u1FB0"},8113:{"value":"1FB1","name":"GREEK SMALL LETTER ALPHA WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FB9","lowercase_mapping":"","titlecase_mapping":"1FB9","symbol":"\u1FB1"},8114:{"value":"1FB2","name":"GREEK SMALL LETTER ALPHA WITH VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F70 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FB2"},8115:{"value":"1FB3","name":"GREEK SMALL LETTER ALPHA WITH YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FBC","lowercase_mapping":"","titlecase_mapping":"1FBC","symbol":"\u1FB3"},8116:{"value":"1FB4","name":"GREEK SMALL LETTER ALPHA WITH OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AC 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FB4"},8118:{"value":"1FB6","name":"GREEK SMALL LETTER ALPHA WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FB6"},8119:{"value":"1FB7","name":"GREEK SMALL LETTER ALPHA WITH PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1FB6 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FB7"},8126:{"value":"1FBE","name":"GREEK PROSGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0399","lowercase_mapping":"","titlecase_mapping":"0399","symbol":"\u1FBE"},8130:{"value":"1FC2","name":"GREEK SMALL LETTER ETA WITH VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F74 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FC2"},8131:{"value":"1FC3","name":"GREEK SMALL LETTER ETA WITH YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FCC","lowercase_mapping":"","titlecase_mapping":"1FCC","symbol":"\u1FC3"},8132:{"value":"1FC4","name":"GREEK SMALL LETTER ETA WITH OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AE 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FC4"},8134:{"value":"1FC6","name":"GREEK SMALL LETTER ETA WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FC6"},8135:{"value":"1FC7","name":"GREEK SMALL LETTER ETA WITH PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1FC6 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FC7"},8144:{"value":"1FD0","name":"GREEK SMALL LETTER IOTA WITH VRACHY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FD8","lowercase_mapping":"","titlecase_mapping":"1FD8","symbol":"\u1FD0"},8145:{"value":"1FD1","name":"GREEK SMALL LETTER IOTA WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FD9","lowercase_mapping":"","titlecase_mapping":"1FD9","symbol":"\u1FD1"},8146:{"value":"1FD2","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CA 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FD2"},8147:{"value":"1FD3","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0390","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FD3"},8150:{"value":"1FD6","name":"GREEK SMALL LETTER IOTA WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FD6"},8151:{"value":"1FD7","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CA 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FD7"},8160:{"value":"1FE0","name":"GREEK SMALL LETTER UPSILON WITH VRACHY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FE8","lowercase_mapping":"","titlecase_mapping":"1FE8","symbol":"\u1FE0"},8161:{"value":"1FE1","name":"GREEK SMALL LETTER UPSILON WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FE9","lowercase_mapping":"","titlecase_mapping":"1FE9","symbol":"\u1FE1"},8162:{"value":"1FE2","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CB 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE2"},8163:{"value":"1FE3","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE3"},8164:{"value":"1FE4","name":"GREEK SMALL LETTER RHO WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C1 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE4"},8165:{"value":"1FE5","name":"GREEK SMALL LETTER RHO WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C1 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FEC","lowercase_mapping":"","titlecase_mapping":"1FEC","symbol":"\u1FE5"},8166:{"value":"1FE6","name":"GREEK SMALL LETTER UPSILON WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE6"},8167:{"value":"1FE7","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CB 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE7"},8178:{"value":"1FF2","name":"GREEK SMALL LETTER OMEGA WITH VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F7C 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FF2"},8179:{"value":"1FF3","name":"GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FFC","lowercase_mapping":"","titlecase_mapping":"1FFC","symbol":"\u1FF3"},8180:{"value":"1FF4","name":"GREEK SMALL LETTER OMEGA WITH OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CE 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FF4"},8182:{"value":"1FF6","name":"GREEK SMALL LETTER OMEGA WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FF6"},8183:{"value":"1FF7","name":"GREEK SMALL LETTER OMEGA WITH PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1FF6 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FF7"},8458:{"value":"210A","name":"SCRIPT SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u210A"},8462:{"value":"210E","name":"PLANCK CONSTANT","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u210E"},8463:{"value":"210F","name":"PLANCK CONSTANT OVER TWO PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0127","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"PLANCK CONSTANT OVER 2 PI","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u210F"},8467:{"value":"2113","name":"SCRIPT SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2113"},8495:{"value":"212F","name":"SCRIPT SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u212F"},8500:{"value":"2134","name":"SCRIPT SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2134"},8505:{"value":"2139","name":"INFORMATION SOURCE","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2139"},8508:{"value":"213C","name":"DOUBLE-STRUCK SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u213C"},8509:{"value":"213D","name":"DOUBLE-STRUCK SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u213D"},8518:{"value":"2146","name":"DOUBLE-STRUCK ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2146"},8519:{"value":"2147","name":"DOUBLE-STRUCK ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2147"},8520:{"value":"2148","name":"DOUBLE-STRUCK ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2148"},8521:{"value":"2149","name":"DOUBLE-STRUCK ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2149"},8526:{"value":"214E","name":"TURNED SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2132","lowercase_mapping":"","titlecase_mapping":"2132","symbol":"\u214E"},8580:{"value":"2184","name":"LATIN SMALL LETTER REVERSED C","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2183","lowercase_mapping":"","titlecase_mapping":"2183","symbol":"\u2184"},11312:{"value":"2C30","name":"GLAGOLITIC SMALL LETTER AZU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C00","lowercase_mapping":"","titlecase_mapping":"2C00","symbol":"\u2C30"},11313:{"value":"2C31","name":"GLAGOLITIC SMALL LETTER BUKY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C01","lowercase_mapping":"","titlecase_mapping":"2C01","symbol":"\u2C31"},11314:{"value":"2C32","name":"GLAGOLITIC SMALL LETTER VEDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C02","lowercase_mapping":"","titlecase_mapping":"2C02","symbol":"\u2C32"},11315:{"value":"2C33","name":"GLAGOLITIC SMALL LETTER GLAGOLI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C03","lowercase_mapping":"","titlecase_mapping":"2C03","symbol":"\u2C33"},11316:{"value":"2C34","name":"GLAGOLITIC SMALL LETTER DOBRO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C04","lowercase_mapping":"","titlecase_mapping":"2C04","symbol":"\u2C34"},11317:{"value":"2C35","name":"GLAGOLITIC SMALL LETTER YESTU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C05","lowercase_mapping":"","titlecase_mapping":"2C05","symbol":"\u2C35"},11318:{"value":"2C36","name":"GLAGOLITIC SMALL LETTER ZHIVETE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C06","lowercase_mapping":"","titlecase_mapping":"2C06","symbol":"\u2C36"},11319:{"value":"2C37","name":"GLAGOLITIC SMALL LETTER DZELO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C07","lowercase_mapping":"","titlecase_mapping":"2C07","symbol":"\u2C37"},11320:{"value":"2C38","name":"GLAGOLITIC SMALL LETTER ZEMLJA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C08","lowercase_mapping":"","titlecase_mapping":"2C08","symbol":"\u2C38"},11321:{"value":"2C39","name":"GLAGOLITIC SMALL LETTER IZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C09","lowercase_mapping":"","titlecase_mapping":"2C09","symbol":"\u2C39"},11322:{"value":"2C3A","name":"GLAGOLITIC SMALL LETTER INITIAL IZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0A","lowercase_mapping":"","titlecase_mapping":"2C0A","symbol":"\u2C3A"},11323:{"value":"2C3B","name":"GLAGOLITIC SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0B","lowercase_mapping":"","titlecase_mapping":"2C0B","symbol":"\u2C3B"},11324:{"value":"2C3C","name":"GLAGOLITIC SMALL LETTER DJERVI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0C","lowercase_mapping":"","titlecase_mapping":"2C0C","symbol":"\u2C3C"},11325:{"value":"2C3D","name":"GLAGOLITIC SMALL LETTER KAKO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0D","lowercase_mapping":"","titlecase_mapping":"2C0D","symbol":"\u2C3D"},11326:{"value":"2C3E","name":"GLAGOLITIC SMALL LETTER LJUDIJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0E","lowercase_mapping":"","titlecase_mapping":"2C0E","symbol":"\u2C3E"},11327:{"value":"2C3F","name":"GLAGOLITIC SMALL LETTER MYSLITE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0F","lowercase_mapping":"","titlecase_mapping":"2C0F","symbol":"\u2C3F"},11328:{"value":"2C40","name":"GLAGOLITIC SMALL LETTER NASHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C10","lowercase_mapping":"","titlecase_mapping":"2C10","symbol":"\u2C40"},11329:{"value":"2C41","name":"GLAGOLITIC SMALL LETTER ONU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C11","lowercase_mapping":"","titlecase_mapping":"2C11","symbol":"\u2C41"},11330:{"value":"2C42","name":"GLAGOLITIC SMALL LETTER POKOJI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C12","lowercase_mapping":"","titlecase_mapping":"2C12","symbol":"\u2C42"},11331:{"value":"2C43","name":"GLAGOLITIC SMALL LETTER RITSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C13","lowercase_mapping":"","titlecase_mapping":"2C13","symbol":"\u2C43"},11332:{"value":"2C44","name":"GLAGOLITIC SMALL LETTER SLOVO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C14","lowercase_mapping":"","titlecase_mapping":"2C14","symbol":"\u2C44"},11333:{"value":"2C45","name":"GLAGOLITIC SMALL LETTER TVRIDO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C15","lowercase_mapping":"","titlecase_mapping":"2C15","symbol":"\u2C45"},11334:{"value":"2C46","name":"GLAGOLITIC SMALL LETTER UKU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C16","lowercase_mapping":"","titlecase_mapping":"2C16","symbol":"\u2C46"},11335:{"value":"2C47","name":"GLAGOLITIC SMALL LETTER FRITU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C17","lowercase_mapping":"","titlecase_mapping":"2C17","symbol":"\u2C47"},11336:{"value":"2C48","name":"GLAGOLITIC SMALL LETTER HERU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C18","lowercase_mapping":"","titlecase_mapping":"2C18","symbol":"\u2C48"},11337:{"value":"2C49","name":"GLAGOLITIC SMALL LETTER OTU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C19","lowercase_mapping":"","titlecase_mapping":"2C19","symbol":"\u2C49"},11338:{"value":"2C4A","name":"GLAGOLITIC SMALL LETTER PE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1A","lowercase_mapping":"","titlecase_mapping":"2C1A","symbol":"\u2C4A"},11339:{"value":"2C4B","name":"GLAGOLITIC SMALL LETTER SHTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1B","lowercase_mapping":"","titlecase_mapping":"2C1B","symbol":"\u2C4B"},11340:{"value":"2C4C","name":"GLAGOLITIC SMALL LETTER TSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1C","lowercase_mapping":"","titlecase_mapping":"2C1C","symbol":"\u2C4C"},11341:{"value":"2C4D","name":"GLAGOLITIC SMALL LETTER CHRIVI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1D","lowercase_mapping":"","titlecase_mapping":"2C1D","symbol":"\u2C4D"},11342:{"value":"2C4E","name":"GLAGOLITIC SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1E","lowercase_mapping":"","titlecase_mapping":"2C1E","symbol":"\u2C4E"},11343:{"value":"2C4F","name":"GLAGOLITIC SMALL LETTER YERU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1F","lowercase_mapping":"","titlecase_mapping":"2C1F","symbol":"\u2C4F"},11344:{"value":"2C50","name":"GLAGOLITIC SMALL LETTER YERI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C20","lowercase_mapping":"","titlecase_mapping":"2C20","symbol":"\u2C50"},11345:{"value":"2C51","name":"GLAGOLITIC SMALL LETTER YATI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C21","lowercase_mapping":"","titlecase_mapping":"2C21","symbol":"\u2C51"},11346:{"value":"2C52","name":"GLAGOLITIC SMALL LETTER SPIDERY HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C22","lowercase_mapping":"","titlecase_mapping":"2C22","symbol":"\u2C52"},11347:{"value":"2C53","name":"GLAGOLITIC SMALL LETTER YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C23","lowercase_mapping":"","titlecase_mapping":"2C23","symbol":"\u2C53"},11348:{"value":"2C54","name":"GLAGOLITIC SMALL LETTER SMALL YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C24","lowercase_mapping":"","titlecase_mapping":"2C24","symbol":"\u2C54"},11349:{"value":"2C55","name":"GLAGOLITIC SMALL LETTER SMALL YUS WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C25","lowercase_mapping":"","titlecase_mapping":"2C25","symbol":"\u2C55"},11350:{"value":"2C56","name":"GLAGOLITIC SMALL LETTER YO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C26","lowercase_mapping":"","titlecase_mapping":"2C26","symbol":"\u2C56"},11351:{"value":"2C57","name":"GLAGOLITIC SMALL LETTER IOTATED SMALL YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C27","lowercase_mapping":"","titlecase_mapping":"2C27","symbol":"\u2C57"},11352:{"value":"2C58","name":"GLAGOLITIC SMALL LETTER BIG YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C28","lowercase_mapping":"","titlecase_mapping":"2C28","symbol":"\u2C58"},11353:{"value":"2C59","name":"GLAGOLITIC SMALL LETTER IOTATED BIG YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C29","lowercase_mapping":"","titlecase_mapping":"2C29","symbol":"\u2C59"},11354:{"value":"2C5A","name":"GLAGOLITIC SMALL LETTER FITA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2A","lowercase_mapping":"","titlecase_mapping":"2C2A","symbol":"\u2C5A"},11355:{"value":"2C5B","name":"GLAGOLITIC SMALL LETTER IZHITSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2B","lowercase_mapping":"","titlecase_mapping":"2C2B","symbol":"\u2C5B"},11356:{"value":"2C5C","name":"GLAGOLITIC SMALL LETTER SHTAPIC","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2C","lowercase_mapping":"","titlecase_mapping":"2C2C","symbol":"\u2C5C"},11357:{"value":"2C5D","name":"GLAGOLITIC SMALL LETTER TROKUTASTI A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2D","lowercase_mapping":"","titlecase_mapping":"2C2D","symbol":"\u2C5D"},11358:{"value":"2C5E","name":"GLAGOLITIC SMALL LETTER LATINATE MYSLITE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2E","lowercase_mapping":"","titlecase_mapping":"2C2E","symbol":"\u2C5E"},11361:{"value":"2C61","name":"LATIN SMALL LETTER L WITH DOUBLE BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C60","lowercase_mapping":"","titlecase_mapping":"2C60","symbol":"\u2C61"},11365:{"value":"2C65","name":"LATIN SMALL LETTER A WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"023A","lowercase_mapping":"","titlecase_mapping":"023A","symbol":"\u2C65"},11366:{"value":"2C66","name":"LATIN SMALL LETTER T WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"023E","lowercase_mapping":"","titlecase_mapping":"023E","symbol":"\u2C66"},11368:{"value":"2C68","name":"LATIN SMALL LETTER H WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C67","lowercase_mapping":"","titlecase_mapping":"2C67","symbol":"\u2C68"},11370:{"value":"2C6A","name":"LATIN SMALL LETTER K WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C69","lowercase_mapping":"","titlecase_mapping":"2C69","symbol":"\u2C6A"},11372:{"value":"2C6C","name":"LATIN SMALL LETTER Z WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C6B","lowercase_mapping":"","titlecase_mapping":"2C6B","symbol":"\u2C6C"},11377:{"value":"2C71","name":"LATIN SMALL LETTER V WITH RIGHT HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C71"},11379:{"value":"2C73","name":"LATIN SMALL LETTER W WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C72","lowercase_mapping":"","titlecase_mapping":"2C72","symbol":"\u2C73"},11380:{"value":"2C74","name":"LATIN SMALL LETTER V WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C74"},11382:{"value":"2C76","name":"LATIN SMALL LETTER HALF H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C75","lowercase_mapping":"","titlecase_mapping":"2C75","symbol":"\u2C76"},11383:{"value":"2C77","name":"LATIN SMALL LETTER TAILLESS PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C77"},11384:{"value":"2C78","name":"LATIN SMALL LETTER E WITH NOTCH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C78"},11385:{"value":"2C79","name":"LATIN SMALL LETTER TURNED R WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C79"},11386:{"value":"2C7A","name":"LATIN SMALL LETTER O WITH LOW RING INSIDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C7A"},11387:{"value":"2C7B","name":"LATIN LETTER SMALL CAPITAL TURNED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C7B"},11393:{"value":"2C81","name":"COPTIC SMALL LETTER ALFA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C80","lowercase_mapping":"","titlecase_mapping":"2C80","symbol":"\u2C81"},11395:{"value":"2C83","name":"COPTIC SMALL LETTER VIDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C82","lowercase_mapping":"","titlecase_mapping":"2C82","symbol":"\u2C83"},11397:{"value":"2C85","name":"COPTIC SMALL LETTER GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C84","lowercase_mapping":"","titlecase_mapping":"2C84","symbol":"\u2C85"},11399:{"value":"2C87","name":"COPTIC SMALL LETTER DALDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C86","lowercase_mapping":"","titlecase_mapping":"2C86","symbol":"\u2C87"},11401:{"value":"2C89","name":"COPTIC SMALL LETTER EIE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C88","lowercase_mapping":"","titlecase_mapping":"2C88","symbol":"\u2C89"},11403:{"value":"2C8B","name":"COPTIC SMALL LETTER SOU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C8A","lowercase_mapping":"","titlecase_mapping":"2C8A","symbol":"\u2C8B"},11405:{"value":"2C8D","name":"COPTIC SMALL LETTER ZATA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C8C","lowercase_mapping":"","titlecase_mapping":"2C8C","symbol":"\u2C8D"},11407:{"value":"2C8F","name":"COPTIC SMALL LETTER HATE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C8E","lowercase_mapping":"","titlecase_mapping":"2C8E","symbol":"\u2C8F"},11409:{"value":"2C91","name":"COPTIC SMALL LETTER THETHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C90","lowercase_mapping":"","titlecase_mapping":"2C90","symbol":"\u2C91"},11411:{"value":"2C93","name":"COPTIC SMALL LETTER IAUDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C92","lowercase_mapping":"","titlecase_mapping":"2C92","symbol":"\u2C93"},11413:{"value":"2C95","name":"COPTIC SMALL LETTER KAPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C94","lowercase_mapping":"","titlecase_mapping":"2C94","symbol":"\u2C95"},11415:{"value":"2C97","name":"COPTIC SMALL LETTER LAULA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C96","lowercase_mapping":"","titlecase_mapping":"2C96","symbol":"\u2C97"},11417:{"value":"2C99","name":"COPTIC SMALL LETTER MI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C98","lowercase_mapping":"","titlecase_mapping":"2C98","symbol":"\u2C99"},11419:{"value":"2C9B","name":"COPTIC SMALL LETTER NI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C9A","lowercase_mapping":"","titlecase_mapping":"2C9A","symbol":"\u2C9B"},11421:{"value":"2C9D","name":"COPTIC SMALL LETTER KSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C9C","lowercase_mapping":"","titlecase_mapping":"2C9C","symbol":"\u2C9D"},11423:{"value":"2C9F","name":"COPTIC SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C9E","lowercase_mapping":"","titlecase_mapping":"2C9E","symbol":"\u2C9F"},11425:{"value":"2CA1","name":"COPTIC SMALL LETTER PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA0","lowercase_mapping":"","titlecase_mapping":"2CA0","symbol":"\u2CA1"},11427:{"value":"2CA3","name":"COPTIC SMALL LETTER RO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA2","lowercase_mapping":"","titlecase_mapping":"2CA2","symbol":"\u2CA3"},11429:{"value":"2CA5","name":"COPTIC SMALL LETTER SIMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA4","lowercase_mapping":"","titlecase_mapping":"2CA4","symbol":"\u2CA5"},11431:{"value":"2CA7","name":"COPTIC SMALL LETTER TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA6","lowercase_mapping":"","titlecase_mapping":"2CA6","symbol":"\u2CA7"},11433:{"value":"2CA9","name":"COPTIC SMALL LETTER UA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA8","lowercase_mapping":"","titlecase_mapping":"2CA8","symbol":"\u2CA9"},11435:{"value":"2CAB","name":"COPTIC SMALL LETTER FI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CAA","lowercase_mapping":"","titlecase_mapping":"2CAA","symbol":"\u2CAB"},11437:{"value":"2CAD","name":"COPTIC SMALL LETTER KHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CAC","lowercase_mapping":"","titlecase_mapping":"2CAC","symbol":"\u2CAD"},11439:{"value":"2CAF","name":"COPTIC SMALL LETTER PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CAE","lowercase_mapping":"","titlecase_mapping":"2CAE","symbol":"\u2CAF"},11441:{"value":"2CB1","name":"COPTIC SMALL LETTER OOU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB0","lowercase_mapping":"","titlecase_mapping":"2CB0","symbol":"\u2CB1"},11443:{"value":"2CB3","name":"COPTIC SMALL LETTER DIALECT-P ALEF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB2","lowercase_mapping":"","titlecase_mapping":"2CB2","symbol":"\u2CB3"},11445:{"value":"2CB5","name":"COPTIC SMALL LETTER OLD COPTIC AIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB4","lowercase_mapping":"","titlecase_mapping":"2CB4","symbol":"\u2CB5"},11447:{"value":"2CB7","name":"COPTIC SMALL LETTER CRYPTOGRAMMIC EIE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB6","lowercase_mapping":"","titlecase_mapping":"2CB6","symbol":"\u2CB7"},11449:{"value":"2CB9","name":"COPTIC SMALL LETTER DIALECT-P KAPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB8","lowercase_mapping":"","titlecase_mapping":"2CB8","symbol":"\u2CB9"},11451:{"value":"2CBB","name":"COPTIC SMALL LETTER DIALECT-P NI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CBA","lowercase_mapping":"","titlecase_mapping":"2CBA","symbol":"\u2CBB"},11453:{"value":"2CBD","name":"COPTIC SMALL LETTER CRYPTOGRAMMIC NI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CBC","lowercase_mapping":"","titlecase_mapping":"2CBC","symbol":"\u2CBD"},11455:{"value":"2CBF","name":"COPTIC SMALL LETTER OLD COPTIC OOU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CBE","lowercase_mapping":"","titlecase_mapping":"2CBE","symbol":"\u2CBF"},11457:{"value":"2CC1","name":"COPTIC SMALL LETTER SAMPI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC0","lowercase_mapping":"","titlecase_mapping":"2CC0","symbol":"\u2CC1"},11459:{"value":"2CC3","name":"COPTIC SMALL LETTER CROSSED SHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC2","lowercase_mapping":"","titlecase_mapping":"2CC2","symbol":"\u2CC3"},11461:{"value":"2CC5","name":"COPTIC SMALL LETTER OLD COPTIC SHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC4","lowercase_mapping":"","titlecase_mapping":"2CC4","symbol":"\u2CC5"},11463:{"value":"2CC7","name":"COPTIC SMALL LETTER OLD COPTIC ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC6","lowercase_mapping":"","titlecase_mapping":"2CC6","symbol":"\u2CC7"},11465:{"value":"2CC9","name":"COPTIC SMALL LETTER AKHMIMIC KHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC8","lowercase_mapping":"","titlecase_mapping":"2CC8","symbol":"\u2CC9"},11467:{"value":"2CCB","name":"COPTIC SMALL LETTER DIALECT-P HORI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CCA","lowercase_mapping":"","titlecase_mapping":"2CCA","symbol":"\u2CCB"},11469:{"value":"2CCD","name":"COPTIC SMALL LETTER OLD COPTIC HORI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CCC","lowercase_mapping":"","titlecase_mapping":"2CCC","symbol":"\u2CCD"},11471:{"value":"2CCF","name":"COPTIC SMALL LETTER OLD COPTIC HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CCE","lowercase_mapping":"","titlecase_mapping":"2CCE","symbol":"\u2CCF"},11473:{"value":"2CD1","name":"COPTIC SMALL LETTER L-SHAPED HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD0","lowercase_mapping":"","titlecase_mapping":"2CD0","symbol":"\u2CD1"},11475:{"value":"2CD3","name":"COPTIC SMALL LETTER OLD COPTIC HEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD2","lowercase_mapping":"","titlecase_mapping":"2CD2","symbol":"\u2CD3"},11477:{"value":"2CD5","name":"COPTIC SMALL LETTER OLD COPTIC HAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD4","lowercase_mapping":"","titlecase_mapping":"2CD4","symbol":"\u2CD5"},11479:{"value":"2CD7","name":"COPTIC SMALL LETTER OLD COPTIC GANGIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD6","lowercase_mapping":"","titlecase_mapping":"2CD6","symbol":"\u2CD7"},11481:{"value":"2CD9","name":"COPTIC SMALL LETTER OLD COPTIC DJA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD8","lowercase_mapping":"","titlecase_mapping":"2CD8","symbol":"\u2CD9"},11483:{"value":"2CDB","name":"COPTIC SMALL LETTER OLD COPTIC SHIMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CDA","lowercase_mapping":"","titlecase_mapping":"2CDA","symbol":"\u2CDB"},11485:{"value":"2CDD","name":"COPTIC SMALL LETTER OLD NUBIAN SHIMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CDC","lowercase_mapping":"","titlecase_mapping":"2CDC","symbol":"\u2CDD"},11487:{"value":"2CDF","name":"COPTIC SMALL LETTER OLD NUBIAN NGI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CDE","lowercase_mapping":"","titlecase_mapping":"2CDE","symbol":"\u2CDF"},11489:{"value":"2CE1","name":"COPTIC SMALL LETTER OLD NUBIAN NYI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CE0","lowercase_mapping":"","titlecase_mapping":"2CE0","symbol":"\u2CE1"},11491:{"value":"2CE3","name":"COPTIC SMALL LETTER OLD NUBIAN WAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CE2","lowercase_mapping":"","titlecase_mapping":"2CE2","symbol":"\u2CE3"},11492:{"value":"2CE4","name":"COPTIC SYMBOL KAI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2CE4"},11500:{"value":"2CEC","name":"COPTIC SMALL LETTER CRYPTOGRAMMIC SHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CEB","lowercase_mapping":"","titlecase_mapping":"2CEB","symbol":"\u2CEC"},11502:{"value":"2CEE","name":"COPTIC SMALL LETTER CRYPTOGRAMMIC GANGIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CED","lowercase_mapping":"","titlecase_mapping":"2CED","symbol":"\u2CEE"},11507:{"value":"2CF3","name":"COPTIC SMALL LETTER BOHAIRIC KHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CF2","lowercase_mapping":"","titlecase_mapping":"2CF2","symbol":"\u2CF3"},11520:{"value":"2D00","name":"GEORGIAN SMALL LETTER AN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A0","lowercase_mapping":"","titlecase_mapping":"10A0","symbol":"\u2D00"},11521:{"value":"2D01","name":"GEORGIAN SMALL LETTER BAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A1","lowercase_mapping":"","titlecase_mapping":"10A1","symbol":"\u2D01"},11522:{"value":"2D02","name":"GEORGIAN SMALL LETTER GAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A2","lowercase_mapping":"","titlecase_mapping":"10A2","symbol":"\u2D02"},11523:{"value":"2D03","name":"GEORGIAN SMALL LETTER DON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A3","lowercase_mapping":"","titlecase_mapping":"10A3","symbol":"\u2D03"},11524:{"value":"2D04","name":"GEORGIAN SMALL LETTER EN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A4","lowercase_mapping":"","titlecase_mapping":"10A4","symbol":"\u2D04"},11525:{"value":"2D05","name":"GEORGIAN SMALL LETTER VIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A5","lowercase_mapping":"","titlecase_mapping":"10A5","symbol":"\u2D05"},11526:{"value":"2D06","name":"GEORGIAN SMALL LETTER ZEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A6","lowercase_mapping":"","titlecase_mapping":"10A6","symbol":"\u2D06"},11527:{"value":"2D07","name":"GEORGIAN SMALL LETTER TAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A7","lowercase_mapping":"","titlecase_mapping":"10A7","symbol":"\u2D07"},11528:{"value":"2D08","name":"GEORGIAN SMALL LETTER IN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A8","lowercase_mapping":"","titlecase_mapping":"10A8","symbol":"\u2D08"},11529:{"value":"2D09","name":"GEORGIAN SMALL LETTER KAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A9","lowercase_mapping":"","titlecase_mapping":"10A9","symbol":"\u2D09"},11530:{"value":"2D0A","name":"GEORGIAN SMALL LETTER LAS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AA","lowercase_mapping":"","titlecase_mapping":"10AA","symbol":"\u2D0A"},11531:{"value":"2D0B","name":"GEORGIAN SMALL LETTER MAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AB","lowercase_mapping":"","titlecase_mapping":"10AB","symbol":"\u2D0B"},11532:{"value":"2D0C","name":"GEORGIAN SMALL LETTER NAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AC","lowercase_mapping":"","titlecase_mapping":"10AC","symbol":"\u2D0C"},11533:{"value":"2D0D","name":"GEORGIAN SMALL LETTER ON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AD","lowercase_mapping":"","titlecase_mapping":"10AD","symbol":"\u2D0D"},11534:{"value":"2D0E","name":"GEORGIAN SMALL LETTER PAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AE","lowercase_mapping":"","titlecase_mapping":"10AE","symbol":"\u2D0E"},11535:{"value":"2D0F","name":"GEORGIAN SMALL LETTER ZHAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AF","lowercase_mapping":"","titlecase_mapping":"10AF","symbol":"\u2D0F"},11536:{"value":"2D10","name":"GEORGIAN SMALL LETTER RAE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B0","lowercase_mapping":"","titlecase_mapping":"10B0","symbol":"\u2D10"},11537:{"value":"2D11","name":"GEORGIAN SMALL LETTER SAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B1","lowercase_mapping":"","titlecase_mapping":"10B1","symbol":"\u2D11"},11538:{"value":"2D12","name":"GEORGIAN SMALL LETTER TAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B2","lowercase_mapping":"","titlecase_mapping":"10B2","symbol":"\u2D12"},11539:{"value":"2D13","name":"GEORGIAN SMALL LETTER UN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B3","lowercase_mapping":"","titlecase_mapping":"10B3","symbol":"\u2D13"},11540:{"value":"2D14","name":"GEORGIAN SMALL LETTER PHAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B4","lowercase_mapping":"","titlecase_mapping":"10B4","symbol":"\u2D14"},11541:{"value":"2D15","name":"GEORGIAN SMALL LETTER KHAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B5","lowercase_mapping":"","titlecase_mapping":"10B5","symbol":"\u2D15"},11542:{"value":"2D16","name":"GEORGIAN SMALL LETTER GHAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B6","lowercase_mapping":"","titlecase_mapping":"10B6","symbol":"\u2D16"},11543:{"value":"2D17","name":"GEORGIAN SMALL LETTER QAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B7","lowercase_mapping":"","titlecase_mapping":"10B7","symbol":"\u2D17"},11544:{"value":"2D18","name":"GEORGIAN SMALL LETTER SHIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B8","lowercase_mapping":"","titlecase_mapping":"10B8","symbol":"\u2D18"},11545:{"value":"2D19","name":"GEORGIAN SMALL LETTER CHIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B9","lowercase_mapping":"","titlecase_mapping":"10B9","symbol":"\u2D19"},11546:{"value":"2D1A","name":"GEORGIAN SMALL LETTER CAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BA","lowercase_mapping":"","titlecase_mapping":"10BA","symbol":"\u2D1A"},11547:{"value":"2D1B","name":"GEORGIAN SMALL LETTER JIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BB","lowercase_mapping":"","titlecase_mapping":"10BB","symbol":"\u2D1B"},11548:{"value":"2D1C","name":"GEORGIAN SMALL LETTER CIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BC","lowercase_mapping":"","titlecase_mapping":"10BC","symbol":"\u2D1C"},11549:{"value":"2D1D","name":"GEORGIAN SMALL LETTER CHAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BD","lowercase_mapping":"","titlecase_mapping":"10BD","symbol":"\u2D1D"},11550:{"value":"2D1E","name":"GEORGIAN SMALL LETTER XAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BE","lowercase_mapping":"","titlecase_mapping":"10BE","symbol":"\u2D1E"},11551:{"value":"2D1F","name":"GEORGIAN SMALL LETTER JHAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BF","lowercase_mapping":"","titlecase_mapping":"10BF","symbol":"\u2D1F"},11552:{"value":"2D20","name":"GEORGIAN SMALL LETTER HAE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C0","lowercase_mapping":"","titlecase_mapping":"10C0","symbol":"\u2D20"},11553:{"value":"2D21","name":"GEORGIAN SMALL LETTER HE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C1","lowercase_mapping":"","titlecase_mapping":"10C1","symbol":"\u2D21"},11554:{"value":"2D22","name":"GEORGIAN SMALL LETTER HIE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C2","lowercase_mapping":"","titlecase_mapping":"10C2","symbol":"\u2D22"},11555:{"value":"2D23","name":"GEORGIAN SMALL LETTER WE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C3","lowercase_mapping":"","titlecase_mapping":"10C3","symbol":"\u2D23"},11556:{"value":"2D24","name":"GEORGIAN SMALL LETTER HAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C4","lowercase_mapping":"","titlecase_mapping":"10C4","symbol":"\u2D24"},11557:{"value":"2D25","name":"GEORGIAN SMALL LETTER HOE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C5","lowercase_mapping":"","titlecase_mapping":"10C5","symbol":"\u2D25"},11559:{"value":"2D27","name":"GEORGIAN SMALL LETTER YN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C7","lowercase_mapping":"","titlecase_mapping":"10C7","symbol":"\u2D27"},11565:{"value":"2D2D","name":"GEORGIAN SMALL LETTER AEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CD","lowercase_mapping":"","titlecase_mapping":"10CD","symbol":"\u2D2D"},42561:{"value":"A641","name":"CYRILLIC SMALL LETTER ZEMLYA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A640","lowercase_mapping":"","titlecase_mapping":"A640","symbol":"\uA641"},42563:{"value":"A643","name":"CYRILLIC SMALL LETTER DZELO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A642","lowercase_mapping":"","titlecase_mapping":"A642","symbol":"\uA643"},42565:{"value":"A645","name":"CYRILLIC SMALL LETTER REVERSED DZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A644","lowercase_mapping":"","titlecase_mapping":"A644","symbol":"\uA645"},42567:{"value":"A647","name":"CYRILLIC SMALL LETTER IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A646","lowercase_mapping":"","titlecase_mapping":"A646","symbol":"\uA647"},42569:{"value":"A649","name":"CYRILLIC SMALL LETTER DJERV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A648","lowercase_mapping":"","titlecase_mapping":"A648","symbol":"\uA649"},42571:{"value":"A64B","name":"CYRILLIC SMALL LETTER MONOGRAPH UK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A64A","lowercase_mapping":"","titlecase_mapping":"A64A","symbol":"\uA64B"},42573:{"value":"A64D","name":"CYRILLIC SMALL LETTER BROAD OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A64C","lowercase_mapping":"","titlecase_mapping":"A64C","symbol":"\uA64D"},42575:{"value":"A64F","name":"CYRILLIC SMALL LETTER NEUTRAL YER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A64E","lowercase_mapping":"","titlecase_mapping":"A64E","symbol":"\uA64F"},42577:{"value":"A651","name":"CYRILLIC SMALL LETTER YERU WITH BACK YER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A650","lowercase_mapping":"","titlecase_mapping":"A650","symbol":"\uA651"},42579:{"value":"A653","name":"CYRILLIC SMALL LETTER IOTIFIED YAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A652","lowercase_mapping":"","titlecase_mapping":"A652","symbol":"\uA653"},42581:{"value":"A655","name":"CYRILLIC SMALL LETTER REVERSED YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A654","lowercase_mapping":"","titlecase_mapping":"A654","symbol":"\uA655"},42583:{"value":"A657","name":"CYRILLIC SMALL LETTER IOTIFIED A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A656","lowercase_mapping":"","titlecase_mapping":"A656","symbol":"\uA657"},42585:{"value":"A659","name":"CYRILLIC SMALL LETTER CLOSED LITTLE YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A658","lowercase_mapping":"","titlecase_mapping":"A658","symbol":"\uA659"},42587:{"value":"A65B","name":"CYRILLIC SMALL LETTER BLENDED YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A65A","lowercase_mapping":"","titlecase_mapping":"A65A","symbol":"\uA65B"},42589:{"value":"A65D","name":"CYRILLIC SMALL LETTER IOTIFIED CLOSED LITTLE YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A65C","lowercase_mapping":"","titlecase_mapping":"A65C","symbol":"\uA65D"},42591:{"value":"A65F","name":"CYRILLIC SMALL LETTER YN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A65E","lowercase_mapping":"","titlecase_mapping":"A65E","symbol":"\uA65F"},42593:{"value":"A661","name":"CYRILLIC SMALL LETTER REVERSED TSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A660","lowercase_mapping":"","titlecase_mapping":"A660","symbol":"\uA661"},42595:{"value":"A663","name":"CYRILLIC SMALL LETTER SOFT DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A662","lowercase_mapping":"","titlecase_mapping":"A662","symbol":"\uA663"},42597:{"value":"A665","name":"CYRILLIC SMALL LETTER SOFT EL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A664","lowercase_mapping":"","titlecase_mapping":"A664","symbol":"\uA665"},42599:{"value":"A667","name":"CYRILLIC SMALL LETTER SOFT EM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A666","lowercase_mapping":"","titlecase_mapping":"A666","symbol":"\uA667"},42601:{"value":"A669","name":"CYRILLIC SMALL LETTER MONOCULAR O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A668","lowercase_mapping":"","titlecase_mapping":"A668","symbol":"\uA669"},42603:{"value":"A66B","name":"CYRILLIC SMALL LETTER BINOCULAR O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A66A","lowercase_mapping":"","titlecase_mapping":"A66A","symbol":"\uA66B"},42605:{"value":"A66D","name":"CYRILLIC SMALL LETTER DOUBLE MONOCULAR O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A66C","lowercase_mapping":"","titlecase_mapping":"A66C","symbol":"\uA66D"},42625:{"value":"A681","name":"CYRILLIC SMALL LETTER DWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A680","lowercase_mapping":"","titlecase_mapping":"A680","symbol":"\uA681"},42627:{"value":"A683","name":"CYRILLIC SMALL LETTER DZWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A682","lowercase_mapping":"","titlecase_mapping":"A682","symbol":"\uA683"},42629:{"value":"A685","name":"CYRILLIC SMALL LETTER ZHWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A684","lowercase_mapping":"","titlecase_mapping":"A684","symbol":"\uA685"},42631:{"value":"A687","name":"CYRILLIC SMALL LETTER CCHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A686","lowercase_mapping":"","titlecase_mapping":"A686","symbol":"\uA687"},42633:{"value":"A689","name":"CYRILLIC SMALL LETTER DZZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A688","lowercase_mapping":"","titlecase_mapping":"A688","symbol":"\uA689"},42635:{"value":"A68B","name":"CYRILLIC SMALL LETTER TE WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A68A","lowercase_mapping":"","titlecase_mapping":"A68A","symbol":"\uA68B"},42637:{"value":"A68D","name":"CYRILLIC SMALL LETTER TWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A68C","lowercase_mapping":"","titlecase_mapping":"A68C","symbol":"\uA68D"},42639:{"value":"A68F","name":"CYRILLIC SMALL LETTER TSWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A68E","lowercase_mapping":"","titlecase_mapping":"A68E","symbol":"\uA68F"},42641:{"value":"A691","name":"CYRILLIC SMALL LETTER TSSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A690","lowercase_mapping":"","titlecase_mapping":"A690","symbol":"\uA691"},42643:{"value":"A693","name":"CYRILLIC SMALL LETTER TCHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A692","lowercase_mapping":"","titlecase_mapping":"A692","symbol":"\uA693"},42645:{"value":"A695","name":"CYRILLIC SMALL LETTER HWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A694","lowercase_mapping":"","titlecase_mapping":"A694","symbol":"\uA695"},42647:{"value":"A697","name":"CYRILLIC SMALL LETTER SHWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A696","lowercase_mapping":"","titlecase_mapping":"A696","symbol":"\uA697"},42649:{"value":"A699","name":"CYRILLIC SMALL LETTER DOUBLE O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A698","lowercase_mapping":"","titlecase_mapping":"A698","symbol":"\uA699"},42651:{"value":"A69B","name":"CYRILLIC SMALL LETTER CROSSED O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A69A","lowercase_mapping":"","titlecase_mapping":"A69A","symbol":"\uA69B"},42787:{"value":"A723","name":"LATIN SMALL LETTER EGYPTOLOGICAL ALEF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A722","lowercase_mapping":"","titlecase_mapping":"A722","symbol":"\uA723"},42789:{"value":"A725","name":"LATIN SMALL LETTER EGYPTOLOGICAL AIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A724","lowercase_mapping":"","titlecase_mapping":"A724","symbol":"\uA725"},42791:{"value":"A727","name":"LATIN SMALL LETTER HENG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A726","lowercase_mapping":"","titlecase_mapping":"A726","symbol":"\uA727"},42793:{"value":"A729","name":"LATIN SMALL LETTER TZ","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A728","lowercase_mapping":"","titlecase_mapping":"A728","symbol":"\uA729"},42795:{"value":"A72B","name":"LATIN SMALL LETTER TRESILLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A72A","lowercase_mapping":"","titlecase_mapping":"A72A","symbol":"\uA72B"},42797:{"value":"A72D","name":"LATIN SMALL LETTER CUATRILLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A72C","lowercase_mapping":"","titlecase_mapping":"A72C","symbol":"\uA72D"},42799:{"value":"A72F","name":"LATIN SMALL LETTER CUATRILLO WITH COMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A72E","lowercase_mapping":"","titlecase_mapping":"A72E","symbol":"\uA72F"},42800:{"value":"A730","name":"LATIN LETTER SMALL CAPITAL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA730"},42801:{"value":"A731","name":"LATIN LETTER SMALL CAPITAL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA731"},42803:{"value":"A733","name":"LATIN SMALL LETTER AA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A732","lowercase_mapping":"","titlecase_mapping":"A732","symbol":"\uA733"},42805:{"value":"A735","name":"LATIN SMALL LETTER AO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A734","lowercase_mapping":"","titlecase_mapping":"A734","symbol":"\uA735"},42807:{"value":"A737","name":"LATIN SMALL LETTER AU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A736","lowercase_mapping":"","titlecase_mapping":"A736","symbol":"\uA737"},42809:{"value":"A739","name":"LATIN SMALL LETTER AV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A738","lowercase_mapping":"","titlecase_mapping":"A738","symbol":"\uA739"},42811:{"value":"A73B","name":"LATIN SMALL LETTER AV WITH HORIZONTAL BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A73A","lowercase_mapping":"","titlecase_mapping":"A73A","symbol":"\uA73B"},42813:{"value":"A73D","name":"LATIN SMALL LETTER AY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A73C","lowercase_mapping":"","titlecase_mapping":"A73C","symbol":"\uA73D"},42815:{"value":"A73F","name":"LATIN SMALL LETTER REVERSED C WITH DOT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A73E","lowercase_mapping":"","titlecase_mapping":"A73E","symbol":"\uA73F"},42817:{"value":"A741","name":"LATIN SMALL LETTER K WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A740","lowercase_mapping":"","titlecase_mapping":"A740","symbol":"\uA741"},42819:{"value":"A743","name":"LATIN SMALL LETTER K WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A742","lowercase_mapping":"","titlecase_mapping":"A742","symbol":"\uA743"},42821:{"value":"A745","name":"LATIN SMALL LETTER K WITH STROKE AND DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A744","lowercase_mapping":"","titlecase_mapping":"A744","symbol":"\uA745"},42823:{"value":"A747","name":"LATIN SMALL LETTER BROKEN L","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A746","lowercase_mapping":"","titlecase_mapping":"A746","symbol":"\uA747"},42825:{"value":"A749","name":"LATIN SMALL LETTER L WITH HIGH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A748","lowercase_mapping":"","titlecase_mapping":"A748","symbol":"\uA749"},42827:{"value":"A74B","name":"LATIN SMALL LETTER O WITH LONG STROKE OVERLAY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A74A","lowercase_mapping":"","titlecase_mapping":"A74A","symbol":"\uA74B"},42829:{"value":"A74D","name":"LATIN SMALL LETTER O WITH LOOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A74C","lowercase_mapping":"","titlecase_mapping":"A74C","symbol":"\uA74D"},42831:{"value":"A74F","name":"LATIN SMALL LETTER OO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A74E","lowercase_mapping":"","titlecase_mapping":"A74E","symbol":"\uA74F"},42833:{"value":"A751","name":"LATIN SMALL LETTER P WITH STROKE THROUGH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A750","lowercase_mapping":"","titlecase_mapping":"A750","symbol":"\uA751"},42835:{"value":"A753","name":"LATIN SMALL LETTER P WITH FLOURISH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A752","lowercase_mapping":"","titlecase_mapping":"A752","symbol":"\uA753"},42837:{"value":"A755","name":"LATIN SMALL LETTER P WITH SQUIRREL TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A754","lowercase_mapping":"","titlecase_mapping":"A754","symbol":"\uA755"},42839:{"value":"A757","name":"LATIN SMALL LETTER Q WITH STROKE THROUGH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A756","lowercase_mapping":"","titlecase_mapping":"A756","symbol":"\uA757"},42841:{"value":"A759","name":"LATIN SMALL LETTER Q WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A758","lowercase_mapping":"","titlecase_mapping":"A758","symbol":"\uA759"},42843:{"value":"A75B","name":"LATIN SMALL LETTER R ROTUNDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A75A","lowercase_mapping":"","titlecase_mapping":"A75A","symbol":"\uA75B"},42845:{"value":"A75D","name":"LATIN SMALL LETTER RUM ROTUNDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A75C","lowercase_mapping":"","titlecase_mapping":"A75C","symbol":"\uA75D"},42847:{"value":"A75F","name":"LATIN SMALL LETTER V WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A75E","lowercase_mapping":"","titlecase_mapping":"A75E","symbol":"\uA75F"},42849:{"value":"A761","name":"LATIN SMALL LETTER VY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A760","lowercase_mapping":"","titlecase_mapping":"A760","symbol":"\uA761"},42851:{"value":"A763","name":"LATIN SMALL LETTER VISIGOTHIC Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A762","lowercase_mapping":"","titlecase_mapping":"A762","symbol":"\uA763"},42853:{"value":"A765","name":"LATIN SMALL LETTER THORN WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A764","lowercase_mapping":"","titlecase_mapping":"A764","symbol":"\uA765"},42855:{"value":"A767","name":"LATIN SMALL LETTER THORN WITH STROKE THROUGH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A766","lowercase_mapping":"","titlecase_mapping":"A766","symbol":"\uA767"},42857:{"value":"A769","name":"LATIN SMALL LETTER VEND","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A768","lowercase_mapping":"","titlecase_mapping":"A768","symbol":"\uA769"},42859:{"value":"A76B","name":"LATIN SMALL LETTER ET","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A76A","lowercase_mapping":"","titlecase_mapping":"A76A","symbol":"\uA76B"},42861:{"value":"A76D","name":"LATIN SMALL LETTER IS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A76C","lowercase_mapping":"","titlecase_mapping":"A76C","symbol":"\uA76D"},42863:{"value":"A76F","name":"LATIN SMALL LETTER CON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A76E","lowercase_mapping":"","titlecase_mapping":"A76E","symbol":"\uA76F"},42865:{"value":"A771","name":"LATIN SMALL LETTER DUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA771"},42866:{"value":"A772","name":"LATIN SMALL LETTER LUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA772"},42867:{"value":"A773","name":"LATIN SMALL LETTER MUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA773"},42868:{"value":"A774","name":"LATIN SMALL LETTER NUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA774"},42869:{"value":"A775","name":"LATIN SMALL LETTER RUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA775"},42870:{"value":"A776","name":"LATIN LETTER SMALL CAPITAL RUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA776"},42871:{"value":"A777","name":"LATIN SMALL LETTER TUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA777"},42872:{"value":"A778","name":"LATIN SMALL LETTER UM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA778"},42874:{"value":"A77A","name":"LATIN SMALL LETTER INSULAR D","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A779","lowercase_mapping":"","titlecase_mapping":"A779","symbol":"\uA77A"},42876:{"value":"A77C","name":"LATIN SMALL LETTER INSULAR F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A77B","lowercase_mapping":"","titlecase_mapping":"A77B","symbol":"\uA77C"},42879:{"value":"A77F","name":"LATIN SMALL LETTER TURNED INSULAR G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A77E","lowercase_mapping":"","titlecase_mapping":"A77E","symbol":"\uA77F"},42881:{"value":"A781","name":"LATIN SMALL LETTER TURNED L","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A780","lowercase_mapping":"","titlecase_mapping":"A780","symbol":"\uA781"},42883:{"value":"A783","name":"LATIN SMALL LETTER INSULAR R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A782","lowercase_mapping":"","titlecase_mapping":"A782","symbol":"\uA783"},42885:{"value":"A785","name":"LATIN SMALL LETTER INSULAR S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A784","lowercase_mapping":"","titlecase_mapping":"A784","symbol":"\uA785"},42887:{"value":"A787","name":"LATIN SMALL LETTER INSULAR T","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A786","lowercase_mapping":"","titlecase_mapping":"A786","symbol":"\uA787"},42892:{"value":"A78C","name":"LATIN SMALL LETTER SALTILLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A78B","lowercase_mapping":"","titlecase_mapping":"A78B","symbol":"\uA78C"},42894:{"value":"A78E","name":"LATIN SMALL LETTER L WITH RETROFLEX HOOK AND BELT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA78E"},42897:{"value":"A791","name":"LATIN SMALL LETTER N WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A790","lowercase_mapping":"","titlecase_mapping":"A790","symbol":"\uA791"},42899:{"value":"A793","name":"LATIN SMALL LETTER C WITH BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A792","lowercase_mapping":"","titlecase_mapping":"A792","symbol":"\uA793"},42900:{"value":"A794","name":"LATIN SMALL LETTER C WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA794"},42901:{"value":"A795","name":"LATIN SMALL LETTER H WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA795"},42903:{"value":"A797","name":"LATIN SMALL LETTER B WITH FLOURISH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A796","lowercase_mapping":"","titlecase_mapping":"A796","symbol":"\uA797"},42905:{"value":"A799","name":"LATIN SMALL LETTER F WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A798","lowercase_mapping":"","titlecase_mapping":"A798","symbol":"\uA799"},42907:{"value":"A79B","name":"LATIN SMALL LETTER VOLAPUK AE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A79A","lowercase_mapping":"","titlecase_mapping":"A79A","symbol":"\uA79B"},42909:{"value":"A79D","name":"LATIN SMALL LETTER VOLAPUK OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A79C","lowercase_mapping":"","titlecase_mapping":"A79C","symbol":"\uA79D"},42911:{"value":"A79F","name":"LATIN SMALL LETTER VOLAPUK UE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A79E","lowercase_mapping":"","titlecase_mapping":"A79E","symbol":"\uA79F"},42913:{"value":"A7A1","name":"LATIN SMALL LETTER G WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A0","lowercase_mapping":"","titlecase_mapping":"A7A0","symbol":"\uA7A1"},42915:{"value":"A7A3","name":"LATIN SMALL LETTER K WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A2","lowercase_mapping":"","titlecase_mapping":"A7A2","symbol":"\uA7A3"},42917:{"value":"A7A5","name":"LATIN SMALL LETTER N WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A4","lowercase_mapping":"","titlecase_mapping":"A7A4","symbol":"\uA7A5"},42919:{"value":"A7A7","name":"LATIN SMALL LETTER R WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A6","lowercase_mapping":"","titlecase_mapping":"A7A6","symbol":"\uA7A7"},42921:{"value":"A7A9","name":"LATIN SMALL LETTER S WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A8","lowercase_mapping":"","titlecase_mapping":"A7A8","symbol":"\uA7A9"},42933:{"value":"A7B5","name":"LATIN SMALL LETTER BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B4","lowercase_mapping":"","titlecase_mapping":"A7B4","symbol":"\uA7B5"},42935:{"value":"A7B7","name":"LATIN SMALL LETTER OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B6","lowercase_mapping":"","titlecase_mapping":"A7B6","symbol":"\uA7B7"},43002:{"value":"A7FA","name":"LATIN LETTER SMALL CAPITAL TURNED M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA7FA"},43824:{"value":"AB30","name":"LATIN SMALL LETTER BARRED ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB30"},43825:{"value":"AB31","name":"LATIN SMALL LETTER A REVERSED-SCHWA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB31"},43826:{"value":"AB32","name":"LATIN SMALL LETTER BLACKLETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB32"},43827:{"value":"AB33","name":"LATIN SMALL LETTER BARRED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB33"},43828:{"value":"AB34","name":"LATIN SMALL LETTER E WITH FLOURISH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB34"},43829:{"value":"AB35","name":"LATIN SMALL LETTER LENIS F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB35"},43830:{"value":"AB36","name":"LATIN SMALL LETTER SCRIPT G WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB36"},43831:{"value":"AB37","name":"LATIN SMALL LETTER L WITH INVERTED LAZY S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB37"},43832:{"value":"AB38","name":"LATIN SMALL LETTER L WITH DOUBLE MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB38"},43833:{"value":"AB39","name":"LATIN SMALL LETTER L WITH MIDDLE RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB39"},43834:{"value":"AB3A","name":"LATIN SMALL LETTER M WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3A"},43835:{"value":"AB3B","name":"LATIN SMALL LETTER N WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3B"},43836:{"value":"AB3C","name":"LATIN SMALL LETTER ENG WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3C"},43837:{"value":"AB3D","name":"LATIN SMALL LETTER BLACKLETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3D"},43838:{"value":"AB3E","name":"LATIN SMALL LETTER BLACKLETTER O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3E"},43839:{"value":"AB3F","name":"LATIN SMALL LETTER OPEN O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3F"},43840:{"value":"AB40","name":"LATIN SMALL LETTER INVERTED OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB40"},43841:{"value":"AB41","name":"LATIN SMALL LETTER TURNED OE WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB41"},43842:{"value":"AB42","name":"LATIN SMALL LETTER TURNED OE WITH HORIZONTAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB42"},43843:{"value":"AB43","name":"LATIN SMALL LETTER TURNED O OPEN-O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB43"},43844:{"value":"AB44","name":"LATIN SMALL LETTER TURNED O OPEN-O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB44"},43845:{"value":"AB45","name":"LATIN SMALL LETTER STIRRUP R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB45"},43846:{"value":"AB46","name":"LATIN LETTER SMALL CAPITAL R WITH RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB46"},43847:{"value":"AB47","name":"LATIN SMALL LETTER R WITHOUT HANDLE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB47"},43848:{"value":"AB48","name":"LATIN SMALL LETTER DOUBLE R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB48"},43849:{"value":"AB49","name":"LATIN SMALL LETTER R WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB49"},43850:{"value":"AB4A","name":"LATIN SMALL LETTER DOUBLE R WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4A"},43851:{"value":"AB4B","name":"LATIN SMALL LETTER SCRIPT R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4B"},43852:{"value":"AB4C","name":"LATIN SMALL LETTER SCRIPT R WITH RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4C"},43853:{"value":"AB4D","name":"LATIN SMALL LETTER BASELINE ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4D"},43854:{"value":"AB4E","name":"LATIN SMALL LETTER U WITH SHORT RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4E"},43855:{"value":"AB4F","name":"LATIN SMALL LETTER U BAR WITH SHORT RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4F"},43856:{"value":"AB50","name":"LATIN SMALL LETTER UI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB50"},43857:{"value":"AB51","name":"LATIN SMALL LETTER TURNED UI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB51"},43858:{"value":"AB52","name":"LATIN SMALL LETTER U WITH LEFT HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB52"},43859:{"value":"AB53","name":"LATIN SMALL LETTER CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B3","lowercase_mapping":"","titlecase_mapping":"A7B3","symbol":"\uAB53"},43860:{"value":"AB54","name":"LATIN SMALL LETTER CHI WITH LOW RIGHT RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB54"},43861:{"value":"AB55","name":"LATIN SMALL LETTER CHI WITH LOW LEFT SERIF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB55"},43862:{"value":"AB56","name":"LATIN SMALL LETTER X WITH LOW RIGHT RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB56"},43863:{"value":"AB57","name":"LATIN SMALL LETTER X WITH LONG LEFT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB57"},43864:{"value":"AB58","name":"LATIN SMALL LETTER X WITH LONG LEFT LEG AND LOW RIGHT RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB58"},43865:{"value":"AB59","name":"LATIN SMALL LETTER X WITH LONG LEFT LEG WITH SERIF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB59"},43866:{"value":"AB5A","name":"LATIN SMALL LETTER Y WITH SHORT RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB5A"},43872:{"value":"AB60","name":"LATIN SMALL LETTER SAKHA YAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB60"},43873:{"value":"AB61","name":"LATIN SMALL LETTER IOTIFIED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB61"},43874:{"value":"AB62","name":"LATIN SMALL LETTER OPEN OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB62"},43875:{"value":"AB63","name":"LATIN SMALL LETTER UO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB63"},43876:{"value":"AB64","name":"LATIN SMALL LETTER INVERTED ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB64"},43877:{"value":"AB65","name":"GREEK LETTER SMALL CAPITAL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB65"},43888:{"value":"AB70","name":"CHEROKEE SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A0","lowercase_mapping":"","titlecase_mapping":"13A0","symbol":"\uAB70"},43889:{"value":"AB71","name":"CHEROKEE SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A1","lowercase_mapping":"","titlecase_mapping":"13A1","symbol":"\uAB71"},43890:{"value":"AB72","name":"CHEROKEE SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A2","lowercase_mapping":"","titlecase_mapping":"13A2","symbol":"\uAB72"},43891:{"value":"AB73","name":"CHEROKEE SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A3","lowercase_mapping":"","titlecase_mapping":"13A3","symbol":"\uAB73"},43892:{"value":"AB74","name":"CHEROKEE SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A4","lowercase_mapping":"","titlecase_mapping":"13A4","symbol":"\uAB74"},43893:{"value":"AB75","name":"CHEROKEE SMALL LETTER V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A5","lowercase_mapping":"","titlecase_mapping":"13A5","symbol":"\uAB75"},43894:{"value":"AB76","name":"CHEROKEE SMALL LETTER GA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A6","lowercase_mapping":"","titlecase_mapping":"13A6","symbol":"\uAB76"},43895:{"value":"AB77","name":"CHEROKEE SMALL LETTER KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A7","lowercase_mapping":"","titlecase_mapping":"13A7","symbol":"\uAB77"},43896:{"value":"AB78","name":"CHEROKEE SMALL LETTER GE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A8","lowercase_mapping":"","titlecase_mapping":"13A8","symbol":"\uAB78"},43897:{"value":"AB79","name":"CHEROKEE SMALL LETTER GI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A9","lowercase_mapping":"","titlecase_mapping":"13A9","symbol":"\uAB79"},43898:{"value":"AB7A","name":"CHEROKEE SMALL LETTER GO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AA","lowercase_mapping":"","titlecase_mapping":"13AA","symbol":"\uAB7A"},43899:{"value":"AB7B","name":"CHEROKEE SMALL LETTER GU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AB","lowercase_mapping":"","titlecase_mapping":"13AB","symbol":"\uAB7B"},43900:{"value":"AB7C","name":"CHEROKEE SMALL LETTER GV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AC","lowercase_mapping":"","titlecase_mapping":"13AC","symbol":"\uAB7C"},43901:{"value":"AB7D","name":"CHEROKEE SMALL LETTER HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AD","lowercase_mapping":"","titlecase_mapping":"13AD","symbol":"\uAB7D"},43902:{"value":"AB7E","name":"CHEROKEE SMALL LETTER HE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AE","lowercase_mapping":"","titlecase_mapping":"13AE","symbol":"\uAB7E"},43903:{"value":"AB7F","name":"CHEROKEE SMALL LETTER HI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AF","lowercase_mapping":"","titlecase_mapping":"13AF","symbol":"\uAB7F"},43904:{"value":"AB80","name":"CHEROKEE SMALL LETTER HO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B0","lowercase_mapping":"","titlecase_mapping":"13B0","symbol":"\uAB80"},43905:{"value":"AB81","name":"CHEROKEE SMALL LETTER HU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B1","lowercase_mapping":"","titlecase_mapping":"13B1","symbol":"\uAB81"},43906:{"value":"AB82","name":"CHEROKEE SMALL LETTER HV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B2","lowercase_mapping":"","titlecase_mapping":"13B2","symbol":"\uAB82"},43907:{"value":"AB83","name":"CHEROKEE SMALL LETTER LA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B3","lowercase_mapping":"","titlecase_mapping":"13B3","symbol":"\uAB83"},43908:{"value":"AB84","name":"CHEROKEE SMALL LETTER LE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B4","lowercase_mapping":"","titlecase_mapping":"13B4","symbol":"\uAB84"},43909:{"value":"AB85","name":"CHEROKEE SMALL LETTER LI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B5","lowercase_mapping":"","titlecase_mapping":"13B5","symbol":"\uAB85"},43910:{"value":"AB86","name":"CHEROKEE SMALL LETTER LO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B6","lowercase_mapping":"","titlecase_mapping":"13B6","symbol":"\uAB86"},43911:{"value":"AB87","name":"CHEROKEE SMALL LETTER LU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B7","lowercase_mapping":"","titlecase_mapping":"13B7","symbol":"\uAB87"},43912:{"value":"AB88","name":"CHEROKEE SMALL LETTER LV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B8","lowercase_mapping":"","titlecase_mapping":"13B8","symbol":"\uAB88"},43913:{"value":"AB89","name":"CHEROKEE SMALL LETTER MA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B9","lowercase_mapping":"","titlecase_mapping":"13B9","symbol":"\uAB89"},43914:{"value":"AB8A","name":"CHEROKEE SMALL LETTER ME","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BA","lowercase_mapping":"","titlecase_mapping":"13BA","symbol":"\uAB8A"},43915:{"value":"AB8B","name":"CHEROKEE SMALL LETTER MI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BB","lowercase_mapping":"","titlecase_mapping":"13BB","symbol":"\uAB8B"},43916:{"value":"AB8C","name":"CHEROKEE SMALL LETTER MO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BC","lowercase_mapping":"","titlecase_mapping":"13BC","symbol":"\uAB8C"},43917:{"value":"AB8D","name":"CHEROKEE SMALL LETTER MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BD","lowercase_mapping":"","titlecase_mapping":"13BD","symbol":"\uAB8D"},43918:{"value":"AB8E","name":"CHEROKEE SMALL LETTER NA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BE","lowercase_mapping":"","titlecase_mapping":"13BE","symbol":"\uAB8E"},43919:{"value":"AB8F","name":"CHEROKEE SMALL LETTER HNA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BF","lowercase_mapping":"","titlecase_mapping":"13BF","symbol":"\uAB8F"},43920:{"value":"AB90","name":"CHEROKEE SMALL LETTER NAH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C0","lowercase_mapping":"","titlecase_mapping":"13C0","symbol":"\uAB90"},43921:{"value":"AB91","name":"CHEROKEE SMALL LETTER NE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C1","lowercase_mapping":"","titlecase_mapping":"13C1","symbol":"\uAB91"},43922:{"value":"AB92","name":"CHEROKEE SMALL LETTER NI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C2","lowercase_mapping":"","titlecase_mapping":"13C2","symbol":"\uAB92"},43923:{"value":"AB93","name":"CHEROKEE SMALL LETTER NO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C3","lowercase_mapping":"","titlecase_mapping":"13C3","symbol":"\uAB93"},43924:{"value":"AB94","name":"CHEROKEE SMALL LETTER NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C4","lowercase_mapping":"","titlecase_mapping":"13C4","symbol":"\uAB94"},43925:{"value":"AB95","name":"CHEROKEE SMALL LETTER NV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C5","lowercase_mapping":"","titlecase_mapping":"13C5","symbol":"\uAB95"},43926:{"value":"AB96","name":"CHEROKEE SMALL LETTER QUA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C6","lowercase_mapping":"","titlecase_mapping":"13C6","symbol":"\uAB96"},43927:{"value":"AB97","name":"CHEROKEE SMALL LETTER QUE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C7","lowercase_mapping":"","titlecase_mapping":"13C7","symbol":"\uAB97"},43928:{"value":"AB98","name":"CHEROKEE SMALL LETTER QUI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C8","lowercase_mapping":"","titlecase_mapping":"13C8","symbol":"\uAB98"},43929:{"value":"AB99","name":"CHEROKEE SMALL LETTER QUO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C9","lowercase_mapping":"","titlecase_mapping":"13C9","symbol":"\uAB99"},43930:{"value":"AB9A","name":"CHEROKEE SMALL LETTER QUU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CA","lowercase_mapping":"","titlecase_mapping":"13CA","symbol":"\uAB9A"},43931:{"value":"AB9B","name":"CHEROKEE SMALL LETTER QUV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CB","lowercase_mapping":"","titlecase_mapping":"13CB","symbol":"\uAB9B"},43932:{"value":"AB9C","name":"CHEROKEE SMALL LETTER SA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CC","lowercase_mapping":"","titlecase_mapping":"13CC","symbol":"\uAB9C"},43933:{"value":"AB9D","name":"CHEROKEE SMALL LETTER S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CD","lowercase_mapping":"","titlecase_mapping":"13CD","symbol":"\uAB9D"},43934:{"value":"AB9E","name":"CHEROKEE SMALL LETTER SE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CE","lowercase_mapping":"","titlecase_mapping":"13CE","symbol":"\uAB9E"},43935:{"value":"AB9F","name":"CHEROKEE SMALL LETTER SI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CF","lowercase_mapping":"","titlecase_mapping":"13CF","symbol":"\uAB9F"},43936:{"value":"ABA0","name":"CHEROKEE SMALL LETTER SO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D0","lowercase_mapping":"","titlecase_mapping":"13D0","symbol":"\uABA0"},43937:{"value":"ABA1","name":"CHEROKEE SMALL LETTER SU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D1","lowercase_mapping":"","titlecase_mapping":"13D1","symbol":"\uABA1"},43938:{"value":"ABA2","name":"CHEROKEE SMALL LETTER SV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D2","lowercase_mapping":"","titlecase_mapping":"13D2","symbol":"\uABA2"},43939:{"value":"ABA3","name":"CHEROKEE SMALL LETTER DA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D3","lowercase_mapping":"","titlecase_mapping":"13D3","symbol":"\uABA3"},43940:{"value":"ABA4","name":"CHEROKEE SMALL LETTER TA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D4","lowercase_mapping":"","titlecase_mapping":"13D4","symbol":"\uABA4"},43941:{"value":"ABA5","name":"CHEROKEE SMALL LETTER DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D5","lowercase_mapping":"","titlecase_mapping":"13D5","symbol":"\uABA5"},43942:{"value":"ABA6","name":"CHEROKEE SMALL LETTER TE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D6","lowercase_mapping":"","titlecase_mapping":"13D6","symbol":"\uABA6"},43943:{"value":"ABA7","name":"CHEROKEE SMALL LETTER DI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D7","lowercase_mapping":"","titlecase_mapping":"13D7","symbol":"\uABA7"},43944:{"value":"ABA8","name":"CHEROKEE SMALL LETTER TI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D8","lowercase_mapping":"","titlecase_mapping":"13D8","symbol":"\uABA8"},43945:{"value":"ABA9","name":"CHEROKEE SMALL LETTER DO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D9","lowercase_mapping":"","titlecase_mapping":"13D9","symbol":"\uABA9"},43946:{"value":"ABAA","name":"CHEROKEE SMALL LETTER DU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DA","lowercase_mapping":"","titlecase_mapping":"13DA","symbol":"\uABAA"},43947:{"value":"ABAB","name":"CHEROKEE SMALL LETTER DV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DB","lowercase_mapping":"","titlecase_mapping":"13DB","symbol":"\uABAB"},43948:{"value":"ABAC","name":"CHEROKEE SMALL LETTER DLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DC","lowercase_mapping":"","titlecase_mapping":"13DC","symbol":"\uABAC"},43949:{"value":"ABAD","name":"CHEROKEE SMALL LETTER TLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DD","lowercase_mapping":"","titlecase_mapping":"13DD","symbol":"\uABAD"},43950:{"value":"ABAE","name":"CHEROKEE SMALL LETTER TLE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DE","lowercase_mapping":"","titlecase_mapping":"13DE","symbol":"\uABAE"},43951:{"value":"ABAF","name":"CHEROKEE SMALL LETTER TLI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DF","lowercase_mapping":"","titlecase_mapping":"13DF","symbol":"\uABAF"},43952:{"value":"ABB0","name":"CHEROKEE SMALL LETTER TLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E0","lowercase_mapping":"","titlecase_mapping":"13E0","symbol":"\uABB0"},43953:{"value":"ABB1","name":"CHEROKEE SMALL LETTER TLU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E1","lowercase_mapping":"","titlecase_mapping":"13E1","symbol":"\uABB1"},43954:{"value":"ABB2","name":"CHEROKEE SMALL LETTER TLV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E2","lowercase_mapping":"","titlecase_mapping":"13E2","symbol":"\uABB2"},43955:{"value":"ABB3","name":"CHEROKEE SMALL LETTER TSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E3","lowercase_mapping":"","titlecase_mapping":"13E3","symbol":"\uABB3"},43956:{"value":"ABB4","name":"CHEROKEE SMALL LETTER TSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E4","lowercase_mapping":"","titlecase_mapping":"13E4","symbol":"\uABB4"},43957:{"value":"ABB5","name":"CHEROKEE SMALL LETTER TSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E5","lowercase_mapping":"","titlecase_mapping":"13E5","symbol":"\uABB5"},43958:{"value":"ABB6","name":"CHEROKEE SMALL LETTER TSO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E6","lowercase_mapping":"","titlecase_mapping":"13E6","symbol":"\uABB6"},43959:{"value":"ABB7","name":"CHEROKEE SMALL LETTER TSU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E7","lowercase_mapping":"","titlecase_mapping":"13E7","symbol":"\uABB7"},43960:{"value":"ABB8","name":"CHEROKEE SMALL LETTER TSV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E8","lowercase_mapping":"","titlecase_mapping":"13E8","symbol":"\uABB8"},43961:{"value":"ABB9","name":"CHEROKEE SMALL LETTER WA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E9","lowercase_mapping":"","titlecase_mapping":"13E9","symbol":"\uABB9"},43962:{"value":"ABBA","name":"CHEROKEE SMALL LETTER WE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EA","lowercase_mapping":"","titlecase_mapping":"13EA","symbol":"\uABBA"},43963:{"value":"ABBB","name":"CHEROKEE SMALL LETTER WI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EB","lowercase_mapping":"","titlecase_mapping":"13EB","symbol":"\uABBB"},43964:{"value":"ABBC","name":"CHEROKEE SMALL LETTER WO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EC","lowercase_mapping":"","titlecase_mapping":"13EC","symbol":"\uABBC"},43965:{"value":"ABBD","name":"CHEROKEE SMALL LETTER WU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13ED","lowercase_mapping":"","titlecase_mapping":"13ED","symbol":"\uABBD"},43966:{"value":"ABBE","name":"CHEROKEE SMALL LETTER WV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EE","lowercase_mapping":"","titlecase_mapping":"13EE","symbol":"\uABBE"},43967:{"value":"ABBF","name":"CHEROKEE SMALL LETTER YA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EF","lowercase_mapping":"","titlecase_mapping":"13EF","symbol":"\uABBF"},64256:{"value":"FB00","name":"LATIN SMALL LIGATURE FF","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB00"},64257:{"value":"FB01","name":"LATIN SMALL LIGATURE FI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB01"},64258:{"value":"FB02","name":"LATIN SMALL LIGATURE FL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB02"},64259:{"value":"FB03","name":"LATIN SMALL LIGATURE FFI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 0066 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB03"},64260:{"value":"FB04","name":"LATIN SMALL LIGATURE FFL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 0066 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB04"},64261:{"value":"FB05","name":"LATIN SMALL LIGATURE LONG S T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 017F 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB05"},64262:{"value":"FB06","name":"LATIN SMALL LIGATURE ST","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB06"},64275:{"value":"FB13","name":"ARMENIAN SMALL LIGATURE MEN NOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0574 0576","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB13"},64276:{"value":"FB14","name":"ARMENIAN SMALL LIGATURE MEN ECH","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0574 0565","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB14"},64277:{"value":"FB15","name":"ARMENIAN SMALL LIGATURE MEN INI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0574 056B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB15"},64278:{"value":"FB16","name":"ARMENIAN SMALL LIGATURE VEW NOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 057E 0576","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB16"},64279:{"value":"FB17","name":"ARMENIAN SMALL LIGATURE MEN XEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0574 056D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB17"},65345:{"value":"FF41","name":"FULLWIDTH LATIN SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF21","lowercase_mapping":"","titlecase_mapping":"FF21","symbol":"\uFF41"},65346:{"value":"FF42","name":"FULLWIDTH LATIN SMALL LETTER B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF22","lowercase_mapping":"","titlecase_mapping":"FF22","symbol":"\uFF42"},65347:{"value":"FF43","name":"FULLWIDTH LATIN SMALL LETTER C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF23","lowercase_mapping":"","titlecase_mapping":"FF23","symbol":"\uFF43"},65348:{"value":"FF44","name":"FULLWIDTH LATIN SMALL LETTER D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF24","lowercase_mapping":"","titlecase_mapping":"FF24","symbol":"\uFF44"},65349:{"value":"FF45","name":"FULLWIDTH LATIN SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF25","lowercase_mapping":"","titlecase_mapping":"FF25","symbol":"\uFF45"},65350:{"value":"FF46","name":"FULLWIDTH LATIN SMALL LETTER F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF26","lowercase_mapping":"","titlecase_mapping":"FF26","symbol":"\uFF46"},65351:{"value":"FF47","name":"FULLWIDTH LATIN SMALL LETTER G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF27","lowercase_mapping":"","titlecase_mapping":"FF27","symbol":"\uFF47"},65352:{"value":"FF48","name":"FULLWIDTH LATIN SMALL LETTER H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF28","lowercase_mapping":"","titlecase_mapping":"FF28","symbol":"\uFF48"},65353:{"value":"FF49","name":"FULLWIDTH LATIN SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF29","lowercase_mapping":"","titlecase_mapping":"FF29","symbol":"\uFF49"},65354:{"value":"FF4A","name":"FULLWIDTH LATIN SMALL LETTER J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2A","lowercase_mapping":"","titlecase_mapping":"FF2A","symbol":"\uFF4A"},65355:{"value":"FF4B","name":"FULLWIDTH LATIN SMALL LETTER K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2B","lowercase_mapping":"","titlecase_mapping":"FF2B","symbol":"\uFF4B"},65356:{"value":"FF4C","name":"FULLWIDTH LATIN SMALL LETTER L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2C","lowercase_mapping":"","titlecase_mapping":"FF2C","symbol":"\uFF4C"},65357:{"value":"FF4D","name":"FULLWIDTH LATIN SMALL LETTER M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2D","lowercase_mapping":"","titlecase_mapping":"FF2D","symbol":"\uFF4D"},65358:{"value":"FF4E","name":"FULLWIDTH LATIN SMALL LETTER N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2E","lowercase_mapping":"","titlecase_mapping":"FF2E","symbol":"\uFF4E"},65359:{"value":"FF4F","name":"FULLWIDTH LATIN SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2F","lowercase_mapping":"","titlecase_mapping":"FF2F","symbol":"\uFF4F"},65360:{"value":"FF50","name":"FULLWIDTH LATIN SMALL LETTER P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF30","lowercase_mapping":"","titlecase_mapping":"FF30","symbol":"\uFF50"},65361:{"value":"FF51","name":"FULLWIDTH LATIN SMALL LETTER Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF31","lowercase_mapping":"","titlecase_mapping":"FF31","symbol":"\uFF51"},65362:{"value":"FF52","name":"FULLWIDTH LATIN SMALL LETTER R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF32","lowercase_mapping":"","titlecase_mapping":"FF32","symbol":"\uFF52"},65363:{"value":"FF53","name":"FULLWIDTH LATIN SMALL LETTER S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF33","lowercase_mapping":"","titlecase_mapping":"FF33","symbol":"\uFF53"},65364:{"value":"FF54","name":"FULLWIDTH LATIN SMALL LETTER T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF34","lowercase_mapping":"","titlecase_mapping":"FF34","symbol":"\uFF54"},65365:{"value":"FF55","name":"FULLWIDTH LATIN SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF35","lowercase_mapping":"","titlecase_mapping":"FF35","symbol":"\uFF55"},65366:{"value":"FF56","name":"FULLWIDTH LATIN SMALL LETTER V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF36","lowercase_mapping":"","titlecase_mapping":"FF36","symbol":"\uFF56"},65367:{"value":"FF57","name":"FULLWIDTH LATIN SMALL LETTER W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF37","lowercase_mapping":"","titlecase_mapping":"FF37","symbol":"\uFF57"},65368:{"value":"FF58","name":"FULLWIDTH LATIN SMALL LETTER X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF38","lowercase_mapping":"","titlecase_mapping":"FF38","symbol":"\uFF58"},65369:{"value":"FF59","name":"FULLWIDTH LATIN SMALL LETTER Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF39","lowercase_mapping":"","titlecase_mapping":"FF39","symbol":"\uFF59"},65370:{"value":"FF5A","name":"FULLWIDTH LATIN SMALL LETTER Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF3A","lowercase_mapping":"","titlecase_mapping":"FF3A","symbol":"\uFF5A"},66600:{"value":"10428","name":"DESERET SMALL LETTER LONG I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10400","lowercase_mapping":"","titlecase_mapping":"10400","symbol":"\u0428"},66601:{"value":"10429","name":"DESERET SMALL LETTER LONG E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10401","lowercase_mapping":"","titlecase_mapping":"10401","symbol":"\u0429"},66602:{"value":"1042A","name":"DESERET SMALL LETTER LONG A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10402","lowercase_mapping":"","titlecase_mapping":"10402","symbol":"\u042A"},66603:{"value":"1042B","name":"DESERET SMALL LETTER LONG AH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10403","lowercase_mapping":"","titlecase_mapping":"10403","symbol":"\u042B"},66604:{"value":"1042C","name":"DESERET SMALL LETTER LONG O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10404","lowercase_mapping":"","titlecase_mapping":"10404","symbol":"\u042C"},66605:{"value":"1042D","name":"DESERET SMALL LETTER LONG OO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10405","lowercase_mapping":"","titlecase_mapping":"10405","symbol":"\u042D"},66606:{"value":"1042E","name":"DESERET SMALL LETTER SHORT I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10406","lowercase_mapping":"","titlecase_mapping":"10406","symbol":"\u042E"},66607:{"value":"1042F","name":"DESERET SMALL LETTER SHORT E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10407","lowercase_mapping":"","titlecase_mapping":"10407","symbol":"\u042F"},66608:{"value":"10430","name":"DESERET SMALL LETTER SHORT A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10408","lowercase_mapping":"","titlecase_mapping":"10408","symbol":"\u0430"},66609:{"value":"10431","name":"DESERET SMALL LETTER SHORT AH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10409","lowercase_mapping":"","titlecase_mapping":"10409","symbol":"\u0431"},66610:{"value":"10432","name":"DESERET SMALL LETTER SHORT O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040A","lowercase_mapping":"","titlecase_mapping":"1040A","symbol":"\u0432"},66611:{"value":"10433","name":"DESERET SMALL LETTER SHORT OO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040B","lowercase_mapping":"","titlecase_mapping":"1040B","symbol":"\u0433"},66612:{"value":"10434","name":"DESERET SMALL LETTER AY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040C","lowercase_mapping":"","titlecase_mapping":"1040C","symbol":"\u0434"},66613:{"value":"10435","name":"DESERET SMALL LETTER OW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040D","lowercase_mapping":"","titlecase_mapping":"1040D","symbol":"\u0435"},66614:{"value":"10436","name":"DESERET SMALL LETTER WU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040E","lowercase_mapping":"","titlecase_mapping":"1040E","symbol":"\u0436"},66615:{"value":"10437","name":"DESERET SMALL LETTER YEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040F","lowercase_mapping":"","titlecase_mapping":"1040F","symbol":"\u0437"},66616:{"value":"10438","name":"DESERET SMALL LETTER H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10410","lowercase_mapping":"","titlecase_mapping":"10410","symbol":"\u0438"},66617:{"value":"10439","name":"DESERET SMALL LETTER PEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10411","lowercase_mapping":"","titlecase_mapping":"10411","symbol":"\u0439"},66618:{"value":"1043A","name":"DESERET SMALL LETTER BEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10412","lowercase_mapping":"","titlecase_mapping":"10412","symbol":"\u043A"},66619:{"value":"1043B","name":"DESERET SMALL LETTER TEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10413","lowercase_mapping":"","titlecase_mapping":"10413","symbol":"\u043B"},66620:{"value":"1043C","name":"DESERET SMALL LETTER DEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10414","lowercase_mapping":"","titlecase_mapping":"10414","symbol":"\u043C"},66621:{"value":"1043D","name":"DESERET SMALL LETTER CHEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10415","lowercase_mapping":"","titlecase_mapping":"10415","symbol":"\u043D"},66622:{"value":"1043E","name":"DESERET SMALL LETTER JEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10416","lowercase_mapping":"","titlecase_mapping":"10416","symbol":"\u043E"},66623:{"value":"1043F","name":"DESERET SMALL LETTER KAY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10417","lowercase_mapping":"","titlecase_mapping":"10417","symbol":"\u043F"},66624:{"value":"10440","name":"DESERET SMALL LETTER GAY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10418","lowercase_mapping":"","titlecase_mapping":"10418","symbol":"\u0440"},66625:{"value":"10441","name":"DESERET SMALL LETTER EF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10419","lowercase_mapping":"","titlecase_mapping":"10419","symbol":"\u0441"},66626:{"value":"10442","name":"DESERET SMALL LETTER VEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041A","lowercase_mapping":"","titlecase_mapping":"1041A","symbol":"\u0442"},66627:{"value":"10443","name":"DESERET SMALL LETTER ETH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041B","lowercase_mapping":"","titlecase_mapping":"1041B","symbol":"\u0443"},66628:{"value":"10444","name":"DESERET SMALL LETTER THEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041C","lowercase_mapping":"","titlecase_mapping":"1041C","symbol":"\u0444"},66629:{"value":"10445","name":"DESERET SMALL LETTER ES","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041D","lowercase_mapping":"","titlecase_mapping":"1041D","symbol":"\u0445"},66630:{"value":"10446","name":"DESERET SMALL LETTER ZEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041E","lowercase_mapping":"","titlecase_mapping":"1041E","symbol":"\u0446"},66631:{"value":"10447","name":"DESERET SMALL LETTER ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041F","lowercase_mapping":"","titlecase_mapping":"1041F","symbol":"\u0447"},66632:{"value":"10448","name":"DESERET SMALL LETTER ZHEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10420","lowercase_mapping":"","titlecase_mapping":"10420","symbol":"\u0448"},66633:{"value":"10449","name":"DESERET SMALL LETTER ER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10421","lowercase_mapping":"","titlecase_mapping":"10421","symbol":"\u0449"},66634:{"value":"1044A","name":"DESERET SMALL LETTER EL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10422","lowercase_mapping":"","titlecase_mapping":"10422","symbol":"\u044A"},66635:{"value":"1044B","name":"DESERET SMALL LETTER EM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10423","lowercase_mapping":"","titlecase_mapping":"10423","symbol":"\u044B"},66636:{"value":"1044C","name":"DESERET SMALL LETTER EN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10424","lowercase_mapping":"","titlecase_mapping":"10424","symbol":"\u044C"},66637:{"value":"1044D","name":"DESERET SMALL LETTER ENG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10425","lowercase_mapping":"","titlecase_mapping":"10425","symbol":"\u044D"},66638:{"value":"1044E","name":"DESERET SMALL LETTER OI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10426","lowercase_mapping":"","titlecase_mapping":"10426","symbol":"\u044E"},66639:{"value":"1044F","name":"DESERET SMALL LETTER EW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10427","lowercase_mapping":"","titlecase_mapping":"10427","symbol":"\u044F"},66776:{"value":"104D8","name":"OSAGE SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B0","lowercase_mapping":"","titlecase_mapping":"104B0","symbol":"\u04D8"},66777:{"value":"104D9","name":"OSAGE SMALL LETTER AI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B1","lowercase_mapping":"","titlecase_mapping":"104B1","symbol":"\u04D9"},66778:{"value":"104DA","name":"OSAGE SMALL LETTER AIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B2","lowercase_mapping":"","titlecase_mapping":"104B2","symbol":"\u04DA"},66779:{"value":"104DB","name":"OSAGE SMALL LETTER AH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B3","lowercase_mapping":"","titlecase_mapping":"104B3","symbol":"\u04DB"},66780:{"value":"104DC","name":"OSAGE SMALL LETTER BRA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B4","lowercase_mapping":"","titlecase_mapping":"104B4","symbol":"\u04DC"},66781:{"value":"104DD","name":"OSAGE SMALL LETTER CHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B5","lowercase_mapping":"","titlecase_mapping":"104B5","symbol":"\u04DD"},66782:{"value":"104DE","name":"OSAGE SMALL LETTER EHCHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B6","lowercase_mapping":"","titlecase_mapping":"104B6","symbol":"\u04DE"},66783:{"value":"104DF","name":"OSAGE SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B7","lowercase_mapping":"","titlecase_mapping":"104B7","symbol":"\u04DF"},66784:{"value":"104E0","name":"OSAGE SMALL LETTER EIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B8","lowercase_mapping":"","titlecase_mapping":"104B8","symbol":"\u04E0"},66785:{"value":"104E1","name":"OSAGE SMALL LETTER HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B9","lowercase_mapping":"","titlecase_mapping":"104B9","symbol":"\u04E1"},66786:{"value":"104E2","name":"OSAGE SMALL LETTER HYA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BA","lowercase_mapping":"","titlecase_mapping":"104BA","symbol":"\u04E2"},66787:{"value":"104E3","name":"OSAGE SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BB","lowercase_mapping":"","titlecase_mapping":"104BB","symbol":"\u04E3"},66788:{"value":"104E4","name":"OSAGE SMALL LETTER KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BC","lowercase_mapping":"","titlecase_mapping":"104BC","symbol":"\u04E4"},66789:{"value":"104E5","name":"OSAGE SMALL LETTER EHKA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BD","lowercase_mapping":"","titlecase_mapping":"104BD","symbol":"\u04E5"},66790:{"value":"104E6","name":"OSAGE SMALL LETTER KYA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BE","lowercase_mapping":"","titlecase_mapping":"104BE","symbol":"\u04E6"},66791:{"value":"104E7","name":"OSAGE SMALL LETTER LA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BF","lowercase_mapping":"","titlecase_mapping":"104BF","symbol":"\u04E7"},66792:{"value":"104E8","name":"OSAGE SMALL LETTER MA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C0","lowercase_mapping":"","titlecase_mapping":"104C0","symbol":"\u04E8"},66793:{"value":"104E9","name":"OSAGE SMALL LETTER NA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C1","lowercase_mapping":"","titlecase_mapping":"104C1","symbol":"\u04E9"},66794:{"value":"104EA","name":"OSAGE SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C2","lowercase_mapping":"","titlecase_mapping":"104C2","symbol":"\u04EA"},66795:{"value":"104EB","name":"OSAGE SMALL LETTER OIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C3","lowercase_mapping":"","titlecase_mapping":"104C3","symbol":"\u04EB"},66796:{"value":"104EC","name":"OSAGE SMALL LETTER PA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C4","lowercase_mapping":"","titlecase_mapping":"104C4","symbol":"\u04EC"},66797:{"value":"104ED","name":"OSAGE SMALL LETTER EHPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C5","lowercase_mapping":"","titlecase_mapping":"104C5","symbol":"\u04ED"},66798:{"value":"104EE","name":"OSAGE SMALL LETTER SA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C6","lowercase_mapping":"","titlecase_mapping":"104C6","symbol":"\u04EE"},66799:{"value":"104EF","name":"OSAGE SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C7","lowercase_mapping":"","titlecase_mapping":"104C7","symbol":"\u04EF"},66800:{"value":"104F0","name":"OSAGE SMALL LETTER TA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C8","lowercase_mapping":"","titlecase_mapping":"104C8","symbol":"\u04F0"},66801:{"value":"104F1","name":"OSAGE SMALL LETTER EHTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C9","lowercase_mapping":"","titlecase_mapping":"104C9","symbol":"\u04F1"},66802:{"value":"104F2","name":"OSAGE SMALL LETTER TSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CA","lowercase_mapping":"","titlecase_mapping":"104CA","symbol":"\u04F2"},66803:{"value":"104F3","name":"OSAGE SMALL LETTER EHTSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CB","lowercase_mapping":"","titlecase_mapping":"104CB","symbol":"\u04F3"},66804:{"value":"104F4","name":"OSAGE SMALL LETTER TSHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CC","lowercase_mapping":"","titlecase_mapping":"104CC","symbol":"\u04F4"},66805:{"value":"104F5","name":"OSAGE SMALL LETTER DHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CD","lowercase_mapping":"","titlecase_mapping":"104CD","symbol":"\u04F5"},66806:{"value":"104F6","name":"OSAGE SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CE","lowercase_mapping":"","titlecase_mapping":"104CE","symbol":"\u04F6"},66807:{"value":"104F7","name":"OSAGE SMALL LETTER WA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CF","lowercase_mapping":"","titlecase_mapping":"104CF","symbol":"\u04F7"},66808:{"value":"104F8","name":"OSAGE SMALL LETTER KHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104D0","lowercase_mapping":"","titlecase_mapping":"104D0","symbol":"\u04F8"},66809:{"value":"104F9","name":"OSAGE SMALL LETTER GHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104D1","lowercase_mapping":"","titlecase_mapping":"104D1","symbol":"\u04F9"},66810:{"value":"104FA","name":"OSAGE SMALL LETTER ZA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104D2","lowercase_mapping":"","titlecase_mapping":"104D2","symbol":"\u04FA"},66811:{"value":"104FB","name":"OSAGE SMALL LETTER ZHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104D3","lowercase_mapping":"","titlecase_mapping":"104D3","symbol":"\u04FB"},68800:{"value":"10CC0","name":"OLD HUNGARIAN SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C80","lowercase_mapping":"","titlecase_mapping":"10C80","symbol":"\u0CC0"},68801:{"value":"10CC1","name":"OLD HUNGARIAN SMALL LETTER AA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C81","lowercase_mapping":"","titlecase_mapping":"10C81","symbol":"\u0CC1"},68802:{"value":"10CC2","name":"OLD HUNGARIAN SMALL LETTER EB","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C82","lowercase_mapping":"","titlecase_mapping":"10C82","symbol":"\u0CC2"},68803:{"value":"10CC3","name":"OLD HUNGARIAN SMALL LETTER AMB","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C83","lowercase_mapping":"","titlecase_mapping":"10C83","symbol":"\u0CC3"},68804:{"value":"10CC4","name":"OLD HUNGARIAN SMALL LETTER EC","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C84","lowercase_mapping":"","titlecase_mapping":"10C84","symbol":"\u0CC4"},68805:{"value":"10CC5","name":"OLD HUNGARIAN SMALL LETTER ENC","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C85","lowercase_mapping":"","titlecase_mapping":"10C85","symbol":"\u0CC5"},68806:{"value":"10CC6","name":"OLD HUNGARIAN SMALL LETTER ECS","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C86","lowercase_mapping":"","titlecase_mapping":"10C86","symbol":"\u0CC6"},68807:{"value":"10CC7","name":"OLD HUNGARIAN SMALL LETTER ED","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C87","lowercase_mapping":"","titlecase_mapping":"10C87","symbol":"\u0CC7"},68808:{"value":"10CC8","name":"OLD HUNGARIAN SMALL LETTER AND","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C88","lowercase_mapping":"","titlecase_mapping":"10C88","symbol":"\u0CC8"},68809:{"value":"10CC9","name":"OLD HUNGARIAN SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C89","lowercase_mapping":"","titlecase_mapping":"10C89","symbol":"\u0CC9"},68810:{"value":"10CCA","name":"OLD HUNGARIAN SMALL LETTER CLOSE E","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8A","lowercase_mapping":"","titlecase_mapping":"10C8A","symbol":"\u0CCA"},68811:{"value":"10CCB","name":"OLD HUNGARIAN SMALL LETTER EE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8B","lowercase_mapping":"","titlecase_mapping":"10C8B","symbol":"\u0CCB"},68812:{"value":"10CCC","name":"OLD HUNGARIAN SMALL LETTER EF","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8C","lowercase_mapping":"","titlecase_mapping":"10C8C","symbol":"\u0CCC"},68813:{"value":"10CCD","name":"OLD HUNGARIAN SMALL LETTER EG","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8D","lowercase_mapping":"","titlecase_mapping":"10C8D","symbol":"\u0CCD"},68814:{"value":"10CCE","name":"OLD HUNGARIAN SMALL LETTER EGY","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8E","lowercase_mapping":"","titlecase_mapping":"10C8E","symbol":"\u0CCE"},68815:{"value":"10CCF","name":"OLD HUNGARIAN SMALL LETTER EH","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8F","lowercase_mapping":"","titlecase_mapping":"10C8F","symbol":"\u0CCF"},68816:{"value":"10CD0","name":"OLD HUNGARIAN SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C90","lowercase_mapping":"","titlecase_mapping":"10C90","symbol":"\u0CD0"},68817:{"value":"10CD1","name":"OLD HUNGARIAN SMALL LETTER II","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C91","lowercase_mapping":"","titlecase_mapping":"10C91","symbol":"\u0CD1"},68818:{"value":"10CD2","name":"OLD HUNGARIAN SMALL LETTER EJ","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C92","lowercase_mapping":"","titlecase_mapping":"10C92","symbol":"\u0CD2"},68819:{"value":"10CD3","name":"OLD HUNGARIAN SMALL LETTER EK","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C93","lowercase_mapping":"","titlecase_mapping":"10C93","symbol":"\u0CD3"},68820:{"value":"10CD4","name":"OLD HUNGARIAN SMALL LETTER AK","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C94","lowercase_mapping":"","titlecase_mapping":"10C94","symbol":"\u0CD4"},68821:{"value":"10CD5","name":"OLD HUNGARIAN SMALL LETTER UNK","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C95","lowercase_mapping":"","titlecase_mapping":"10C95","symbol":"\u0CD5"},68822:{"value":"10CD6","name":"OLD HUNGARIAN SMALL LETTER EL","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C96","lowercase_mapping":"","titlecase_mapping":"10C96","symbol":"\u0CD6"},68823:{"value":"10CD7","name":"OLD HUNGARIAN SMALL LETTER ELY","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C97","lowercase_mapping":"","titlecase_mapping":"10C97","symbol":"\u0CD7"},68824:{"value":"10CD8","name":"OLD HUNGARIAN SMALL LETTER EM","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C98","lowercase_mapping":"","titlecase_mapping":"10C98","symbol":"\u0CD8"},68825:{"value":"10CD9","name":"OLD HUNGARIAN SMALL LETTER EN","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C99","lowercase_mapping":"","titlecase_mapping":"10C99","symbol":"\u0CD9"},68826:{"value":"10CDA","name":"OLD HUNGARIAN SMALL LETTER ENY","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9A","lowercase_mapping":"","titlecase_mapping":"10C9A","symbol":"\u0CDA"},68827:{"value":"10CDB","name":"OLD HUNGARIAN SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9B","lowercase_mapping":"","titlecase_mapping":"10C9B","symbol":"\u0CDB"},68828:{"value":"10CDC","name":"OLD HUNGARIAN SMALL LETTER OO","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9C","lowercase_mapping":"","titlecase_mapping":"10C9C","symbol":"\u0CDC"},68829:{"value":"10CDD","name":"OLD HUNGARIAN SMALL LETTER NIKOLSBURG OE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9D","lowercase_mapping":"","titlecase_mapping":"10C9D","symbol":"\u0CDD"},68830:{"value":"10CDE","name":"OLD HUNGARIAN SMALL LETTER RUDIMENTA OE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9E","lowercase_mapping":"","titlecase_mapping":"10C9E","symbol":"\u0CDE"},68831:{"value":"10CDF","name":"OLD HUNGARIAN SMALL LETTER OEE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9F","lowercase_mapping":"","titlecase_mapping":"10C9F","symbol":"\u0CDF"},68832:{"value":"10CE0","name":"OLD HUNGARIAN SMALL LETTER EP","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA0","lowercase_mapping":"","titlecase_mapping":"10CA0","symbol":"\u0CE0"},68833:{"value":"10CE1","name":"OLD HUNGARIAN SMALL LETTER EMP","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA1","lowercase_mapping":"","titlecase_mapping":"10CA1","symbol":"\u0CE1"},68834:{"value":"10CE2","name":"OLD HUNGARIAN SMALL LETTER ER","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA2","lowercase_mapping":"","titlecase_mapping":"10CA2","symbol":"\u0CE2"},68835:{"value":"10CE3","name":"OLD HUNGARIAN SMALL LETTER SHORT ER","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA3","lowercase_mapping":"","titlecase_mapping":"10CA3","symbol":"\u0CE3"},68836:{"value":"10CE4","name":"OLD HUNGARIAN SMALL LETTER ES","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA4","lowercase_mapping":"","titlecase_mapping":"10CA4","symbol":"\u0CE4"},68837:{"value":"10CE5","name":"OLD HUNGARIAN SMALL LETTER ESZ","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA5","lowercase_mapping":"","titlecase_mapping":"10CA5","symbol":"\u0CE5"},68838:{"value":"10CE6","name":"OLD HUNGARIAN SMALL LETTER ET","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA6","lowercase_mapping":"","titlecase_mapping":"10CA6","symbol":"\u0CE6"},68839:{"value":"10CE7","name":"OLD HUNGARIAN SMALL LETTER ENT","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA7","lowercase_mapping":"","titlecase_mapping":"10CA7","symbol":"\u0CE7"},68840:{"value":"10CE8","name":"OLD HUNGARIAN SMALL LETTER ETY","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA8","lowercase_mapping":"","titlecase_mapping":"10CA8","symbol":"\u0CE8"},68841:{"value":"10CE9","name":"OLD HUNGARIAN SMALL LETTER ECH","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA9","lowercase_mapping":"","titlecase_mapping":"10CA9","symbol":"\u0CE9"},68842:{"value":"10CEA","name":"OLD HUNGARIAN SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAA","lowercase_mapping":"","titlecase_mapping":"10CAA","symbol":"\u0CEA"},68843:{"value":"10CEB","name":"OLD HUNGARIAN SMALL LETTER UU","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAB","lowercase_mapping":"","titlecase_mapping":"10CAB","symbol":"\u0CEB"},68844:{"value":"10CEC","name":"OLD HUNGARIAN SMALL LETTER NIKOLSBURG UE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAC","lowercase_mapping":"","titlecase_mapping":"10CAC","symbol":"\u0CEC"},68845:{"value":"10CED","name":"OLD HUNGARIAN SMALL LETTER RUDIMENTA UE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAD","lowercase_mapping":"","titlecase_mapping":"10CAD","symbol":"\u0CED"},68846:{"value":"10CEE","name":"OLD HUNGARIAN SMALL LETTER EV","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAE","lowercase_mapping":"","titlecase_mapping":"10CAE","symbol":"\u0CEE"},68847:{"value":"10CEF","name":"OLD HUNGARIAN SMALL LETTER EZ","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAF","lowercase_mapping":"","titlecase_mapping":"10CAF","symbol":"\u0CEF"},68848:{"value":"10CF0","name":"OLD HUNGARIAN SMALL LETTER EZS","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CB0","lowercase_mapping":"","titlecase_mapping":"10CB0","symbol":"\u0CF0"},68849:{"value":"10CF1","name":"OLD HUNGARIAN SMALL LETTER ENT-SHAPED SIGN","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CB1","lowercase_mapping":"","titlecase_mapping":"10CB1","symbol":"\u0CF1"},68850:{"value":"10CF2","name":"OLD HUNGARIAN SMALL LETTER US","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CB2","lowercase_mapping":"","titlecase_mapping":"10CB2","symbol":"\u0CF2"},71872:{"value":"118C0","name":"WARANG CITI SMALL LETTER NGAA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A0","lowercase_mapping":"","titlecase_mapping":"118A0","symbol":"\u18C0"},71873:{"value":"118C1","name":"WARANG CITI SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A1","lowercase_mapping":"","titlecase_mapping":"118A1","symbol":"\u18C1"},71874:{"value":"118C2","name":"WARANG CITI SMALL LETTER WI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A2","lowercase_mapping":"","titlecase_mapping":"118A2","symbol":"\u18C2"},71875:{"value":"118C3","name":"WARANG CITI SMALL LETTER YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A3","lowercase_mapping":"","titlecase_mapping":"118A3","symbol":"\u18C3"},71876:{"value":"118C4","name":"WARANG CITI SMALL LETTER YA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A4","lowercase_mapping":"","titlecase_mapping":"118A4","symbol":"\u18C4"},71877:{"value":"118C5","name":"WARANG CITI SMALL LETTER YO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A5","lowercase_mapping":"","titlecase_mapping":"118A5","symbol":"\u18C5"},71878:{"value":"118C6","name":"WARANG CITI SMALL LETTER II","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A6","lowercase_mapping":"","titlecase_mapping":"118A6","symbol":"\u18C6"},71879:{"value":"118C7","name":"WARANG CITI SMALL LETTER UU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A7","lowercase_mapping":"","titlecase_mapping":"118A7","symbol":"\u18C7"},71880:{"value":"118C8","name":"WARANG CITI SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A8","lowercase_mapping":"","titlecase_mapping":"118A8","symbol":"\u18C8"},71881:{"value":"118C9","name":"WARANG CITI SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A9","lowercase_mapping":"","titlecase_mapping":"118A9","symbol":"\u18C9"},71882:{"value":"118CA","name":"WARANG CITI SMALL LETTER ANG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AA","lowercase_mapping":"","titlecase_mapping":"118AA","symbol":"\u18CA"},71883:{"value":"118CB","name":"WARANG CITI SMALL LETTER GA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AB","lowercase_mapping":"","titlecase_mapping":"118AB","symbol":"\u18CB"},71884:{"value":"118CC","name":"WARANG CITI SMALL LETTER KO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AC","lowercase_mapping":"","titlecase_mapping":"118AC","symbol":"\u18CC"},71885:{"value":"118CD","name":"WARANG CITI SMALL LETTER ENY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AD","lowercase_mapping":"","titlecase_mapping":"118AD","symbol":"\u18CD"},71886:{"value":"118CE","name":"WARANG CITI SMALL LETTER YUJ","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AE","lowercase_mapping":"","titlecase_mapping":"118AE","symbol":"\u18CE"},71887:{"value":"118CF","name":"WARANG CITI SMALL LETTER UC","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AF","lowercase_mapping":"","titlecase_mapping":"118AF","symbol":"\u18CF"},71888:{"value":"118D0","name":"WARANG CITI SMALL LETTER ENN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B0","lowercase_mapping":"","titlecase_mapping":"118B0","symbol":"\u18D0"},71889:{"value":"118D1","name":"WARANG CITI SMALL LETTER ODD","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B1","lowercase_mapping":"","titlecase_mapping":"118B1","symbol":"\u18D1"},71890:{"value":"118D2","name":"WARANG CITI SMALL LETTER TTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B2","lowercase_mapping":"","titlecase_mapping":"118B2","symbol":"\u18D2"},71891:{"value":"118D3","name":"WARANG CITI SMALL LETTER NUNG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B3","lowercase_mapping":"","titlecase_mapping":"118B3","symbol":"\u18D3"},71892:{"value":"118D4","name":"WARANG CITI SMALL LETTER DA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B4","lowercase_mapping":"","titlecase_mapping":"118B4","symbol":"\u18D4"},71893:{"value":"118D5","name":"WARANG CITI SMALL LETTER AT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B5","lowercase_mapping":"","titlecase_mapping":"118B5","symbol":"\u18D5"},71894:{"value":"118D6","name":"WARANG CITI SMALL LETTER AM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B6","lowercase_mapping":"","titlecase_mapping":"118B6","symbol":"\u18D6"},71895:{"value":"118D7","name":"WARANG CITI SMALL LETTER BU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B7","lowercase_mapping":"","titlecase_mapping":"118B7","symbol":"\u18D7"},71896:{"value":"118D8","name":"WARANG CITI SMALL LETTER PU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B8","lowercase_mapping":"","titlecase_mapping":"118B8","symbol":"\u18D8"},71897:{"value":"118D9","name":"WARANG CITI SMALL LETTER HIYO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B9","lowercase_mapping":"","titlecase_mapping":"118B9","symbol":"\u18D9"},71898:{"value":"118DA","name":"WARANG CITI SMALL LETTER HOLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BA","lowercase_mapping":"","titlecase_mapping":"118BA","symbol":"\u18DA"},71899:{"value":"118DB","name":"WARANG CITI SMALL LETTER HORR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BB","lowercase_mapping":"","titlecase_mapping":"118BB","symbol":"\u18DB"},71900:{"value":"118DC","name":"WARANG CITI SMALL LETTER HAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BC","lowercase_mapping":"","titlecase_mapping":"118BC","symbol":"\u18DC"},71901:{"value":"118DD","name":"WARANG CITI SMALL LETTER SSUU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BD","lowercase_mapping":"","titlecase_mapping":"118BD","symbol":"\u18DD"},71902:{"value":"118DE","name":"WARANG CITI SMALL LETTER SII","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BE","lowercase_mapping":"","titlecase_mapping":"118BE","symbol":"\u18DE"},71903:{"value":"118DF","name":"WARANG CITI SMALL LETTER VIYO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BF","lowercase_mapping":"","titlecase_mapping":"118BF","symbol":"\u18DF"},119834:{"value":"1D41A","name":"MATHEMATICAL BOLD SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41A"},119835:{"value":"1D41B","name":"MATHEMATICAL BOLD SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41B"},119836:{"value":"1D41C","name":"MATHEMATICAL BOLD SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41C"},119837:{"value":"1D41D","name":"MATHEMATICAL BOLD SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41D"},119838:{"value":"1D41E","name":"MATHEMATICAL BOLD SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41E"},119839:{"value":"1D41F","name":"MATHEMATICAL BOLD SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41F"},119840:{"value":"1D420","name":"MATHEMATICAL BOLD SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD420"},119841:{"value":"1D421","name":"MATHEMATICAL BOLD SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD421"},119842:{"value":"1D422","name":"MATHEMATICAL BOLD SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD422"},119843:{"value":"1D423","name":"MATHEMATICAL BOLD SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD423"},119844:{"value":"1D424","name":"MATHEMATICAL BOLD SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD424"},119845:{"value":"1D425","name":"MATHEMATICAL BOLD SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD425"},119846:{"value":"1D426","name":"MATHEMATICAL BOLD SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD426"},119847:{"value":"1D427","name":"MATHEMATICAL BOLD SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD427"},119848:{"value":"1D428","name":"MATHEMATICAL BOLD SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD428"},119849:{"value":"1D429","name":"MATHEMATICAL BOLD SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD429"},119850:{"value":"1D42A","name":"MATHEMATICAL BOLD SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42A"},119851:{"value":"1D42B","name":"MATHEMATICAL BOLD SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42B"},119852:{"value":"1D42C","name":"MATHEMATICAL BOLD SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42C"},119853:{"value":"1D42D","name":"MATHEMATICAL BOLD SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42D"},119854:{"value":"1D42E","name":"MATHEMATICAL BOLD SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42E"},119855:{"value":"1D42F","name":"MATHEMATICAL BOLD SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42F"},119856:{"value":"1D430","name":"MATHEMATICAL BOLD SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD430"},119857:{"value":"1D431","name":"MATHEMATICAL BOLD SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD431"},119858:{"value":"1D432","name":"MATHEMATICAL BOLD SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD432"},119859:{"value":"1D433","name":"MATHEMATICAL BOLD SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD433"},119886:{"value":"1D44E","name":"MATHEMATICAL ITALIC SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD44E"},119887:{"value":"1D44F","name":"MATHEMATICAL ITALIC SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD44F"},119888:{"value":"1D450","name":"MATHEMATICAL ITALIC SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD450"},119889:{"value":"1D451","name":"MATHEMATICAL ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD451"},119890:{"value":"1D452","name":"MATHEMATICAL ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD452"},119891:{"value":"1D453","name":"MATHEMATICAL ITALIC SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD453"},119892:{"value":"1D454","name":"MATHEMATICAL ITALIC SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD454"},119894:{"value":"1D456","name":"MATHEMATICAL ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD456"},119895:{"value":"1D457","name":"MATHEMATICAL ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD457"},119896:{"value":"1D458","name":"MATHEMATICAL ITALIC SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD458"},119897:{"value":"1D459","name":"MATHEMATICAL ITALIC SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD459"},119898:{"value":"1D45A","name":"MATHEMATICAL ITALIC SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45A"},119899:{"value":"1D45B","name":"MATHEMATICAL ITALIC SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45B"},119900:{"value":"1D45C","name":"MATHEMATICAL ITALIC SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45C"},119901:{"value":"1D45D","name":"MATHEMATICAL ITALIC SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45D"},119902:{"value":"1D45E","name":"MATHEMATICAL ITALIC SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45E"},119903:{"value":"1D45F","name":"MATHEMATICAL ITALIC SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45F"},119904:{"value":"1D460","name":"MATHEMATICAL ITALIC SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD460"},119905:{"value":"1D461","name":"MATHEMATICAL ITALIC SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD461"},119906:{"value":"1D462","name":"MATHEMATICAL ITALIC SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD462"},119907:{"value":"1D463","name":"MATHEMATICAL ITALIC SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD463"},119908:{"value":"1D464","name":"MATHEMATICAL ITALIC SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD464"},119909:{"value":"1D465","name":"MATHEMATICAL ITALIC SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD465"},119910:{"value":"1D466","name":"MATHEMATICAL ITALIC SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD466"},119911:{"value":"1D467","name":"MATHEMATICAL ITALIC SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD467"},119938:{"value":"1D482","name":"MATHEMATICAL BOLD ITALIC SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD482"},119939:{"value":"1D483","name":"MATHEMATICAL BOLD ITALIC SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD483"},119940:{"value":"1D484","name":"MATHEMATICAL BOLD ITALIC SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD484"},119941:{"value":"1D485","name":"MATHEMATICAL BOLD ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD485"},119942:{"value":"1D486","name":"MATHEMATICAL BOLD ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD486"},119943:{"value":"1D487","name":"MATHEMATICAL BOLD ITALIC SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD487"},119944:{"value":"1D488","name":"MATHEMATICAL BOLD ITALIC SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD488"},119945:{"value":"1D489","name":"MATHEMATICAL BOLD ITALIC SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD489"},119946:{"value":"1D48A","name":"MATHEMATICAL BOLD ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48A"},119947:{"value":"1D48B","name":"MATHEMATICAL BOLD ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48B"},119948:{"value":"1D48C","name":"MATHEMATICAL BOLD ITALIC SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48C"},119949:{"value":"1D48D","name":"MATHEMATICAL BOLD ITALIC SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48D"},119950:{"value":"1D48E","name":"MATHEMATICAL BOLD ITALIC SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48E"},119951:{"value":"1D48F","name":"MATHEMATICAL BOLD ITALIC SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48F"},119952:{"value":"1D490","name":"MATHEMATICAL BOLD ITALIC SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD490"},119953:{"value":"1D491","name":"MATHEMATICAL BOLD ITALIC SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD491"},119954:{"value":"1D492","name":"MATHEMATICAL BOLD ITALIC SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD492"},119955:{"value":"1D493","name":"MATHEMATICAL BOLD ITALIC SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD493"},119956:{"value":"1D494","name":"MATHEMATICAL BOLD ITALIC SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD494"},119957:{"value":"1D495","name":"MATHEMATICAL BOLD ITALIC SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD495"},119958:{"value":"1D496","name":"MATHEMATICAL BOLD ITALIC SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD496"},119959:{"value":"1D497","name":"MATHEMATICAL BOLD ITALIC SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD497"},119960:{"value":"1D498","name":"MATHEMATICAL BOLD ITALIC SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD498"},119961:{"value":"1D499","name":"MATHEMATICAL BOLD ITALIC SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD499"},119962:{"value":"1D49A","name":"MATHEMATICAL BOLD ITALIC SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD49A"},119963:{"value":"1D49B","name":"MATHEMATICAL BOLD ITALIC SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD49B"},119990:{"value":"1D4B6","name":"MATHEMATICAL SCRIPT SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4B6"},119991:{"value":"1D4B7","name":"MATHEMATICAL SCRIPT SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4B7"},119992:{"value":"1D4B8","name":"MATHEMATICAL SCRIPT SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4B8"},119993:{"value":"1D4B9","name":"MATHEMATICAL SCRIPT SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4B9"},119995:{"value":"1D4BB","name":"MATHEMATICAL SCRIPT SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4BB"},119997:{"value":"1D4BD","name":"MATHEMATICAL SCRIPT SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4BD"},119998:{"value":"1D4BE","name":"MATHEMATICAL SCRIPT SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4BE"},119999:{"value":"1D4BF","name":"MATHEMATICAL SCRIPT SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4BF"},120000:{"value":"1D4C0","name":"MATHEMATICAL SCRIPT SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C0"},120001:{"value":"1D4C1","name":"MATHEMATICAL SCRIPT SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C1"},120002:{"value":"1D4C2","name":"MATHEMATICAL SCRIPT SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C2"},120003:{"value":"1D4C3","name":"MATHEMATICAL SCRIPT SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C3"},120005:{"value":"1D4C5","name":"MATHEMATICAL SCRIPT SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C5"},120006:{"value":"1D4C6","name":"MATHEMATICAL SCRIPT SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C6"},120007:{"value":"1D4C7","name":"MATHEMATICAL SCRIPT SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C7"},120008:{"value":"1D4C8","name":"MATHEMATICAL SCRIPT SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C8"},120009:{"value":"1D4C9","name":"MATHEMATICAL SCRIPT SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C9"},120010:{"value":"1D4CA","name":"MATHEMATICAL SCRIPT SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CA"},120011:{"value":"1D4CB","name":"MATHEMATICAL SCRIPT SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CB"},120012:{"value":"1D4CC","name":"MATHEMATICAL SCRIPT SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CC"},120013:{"value":"1D4CD","name":"MATHEMATICAL SCRIPT SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CD"},120014:{"value":"1D4CE","name":"MATHEMATICAL SCRIPT SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CE"},120015:{"value":"1D4CF","name":"MATHEMATICAL SCRIPT SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CF"},120042:{"value":"1D4EA","name":"MATHEMATICAL BOLD SCRIPT SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EA"},120043:{"value":"1D4EB","name":"MATHEMATICAL BOLD SCRIPT SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EB"},120044:{"value":"1D4EC","name":"MATHEMATICAL BOLD SCRIPT SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EC"},120045:{"value":"1D4ED","name":"MATHEMATICAL BOLD SCRIPT SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4ED"},120046:{"value":"1D4EE","name":"MATHEMATICAL BOLD SCRIPT SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EE"},120047:{"value":"1D4EF","name":"MATHEMATICAL BOLD SCRIPT SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EF"},120048:{"value":"1D4F0","name":"MATHEMATICAL BOLD SCRIPT SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F0"},120049:{"value":"1D4F1","name":"MATHEMATICAL BOLD SCRIPT SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F1"},120050:{"value":"1D4F2","name":"MATHEMATICAL BOLD SCRIPT SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F2"},120051:{"value":"1D4F3","name":"MATHEMATICAL BOLD SCRIPT SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F3"},120052:{"value":"1D4F4","name":"MATHEMATICAL BOLD SCRIPT SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F4"},120053:{"value":"1D4F5","name":"MATHEMATICAL BOLD SCRIPT SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F5"},120054:{"value":"1D4F6","name":"MATHEMATICAL BOLD SCRIPT SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F6"},120055:{"value":"1D4F7","name":"MATHEMATICAL BOLD SCRIPT SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F7"},120056:{"value":"1D4F8","name":"MATHEMATICAL BOLD SCRIPT SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F8"},120057:{"value":"1D4F9","name":"MATHEMATICAL BOLD SCRIPT SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F9"},120058:{"value":"1D4FA","name":"MATHEMATICAL BOLD SCRIPT SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FA"},120059:{"value":"1D4FB","name":"MATHEMATICAL BOLD SCRIPT SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FB"},120060:{"value":"1D4FC","name":"MATHEMATICAL BOLD SCRIPT SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FC"},120061:{"value":"1D4FD","name":"MATHEMATICAL BOLD SCRIPT SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FD"},120062:{"value":"1D4FE","name":"MATHEMATICAL BOLD SCRIPT SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FE"},120063:{"value":"1D4FF","name":"MATHEMATICAL BOLD SCRIPT SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FF"},120064:{"value":"1D500","name":"MATHEMATICAL BOLD SCRIPT SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD500"},120065:{"value":"1D501","name":"MATHEMATICAL BOLD SCRIPT SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD501"},120066:{"value":"1D502","name":"MATHEMATICAL BOLD SCRIPT SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD502"},120067:{"value":"1D503","name":"MATHEMATICAL BOLD SCRIPT SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD503"},120094:{"value":"1D51E","name":"MATHEMATICAL FRAKTUR SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD51E"},120095:{"value":"1D51F","name":"MATHEMATICAL FRAKTUR SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD51F"},120096:{"value":"1D520","name":"MATHEMATICAL FRAKTUR SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD520"},120097:{"value":"1D521","name":"MATHEMATICAL FRAKTUR SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD521"},120098:{"value":"1D522","name":"MATHEMATICAL FRAKTUR SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD522"},120099:{"value":"1D523","name":"MATHEMATICAL FRAKTUR SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD523"},120100:{"value":"1D524","name":"MATHEMATICAL FRAKTUR SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD524"},120101:{"value":"1D525","name":"MATHEMATICAL FRAKTUR SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD525"},120102:{"value":"1D526","name":"MATHEMATICAL FRAKTUR SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD526"},120103:{"value":"1D527","name":"MATHEMATICAL FRAKTUR SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD527"},120104:{"value":"1D528","name":"MATHEMATICAL FRAKTUR SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD528"},120105:{"value":"1D529","name":"MATHEMATICAL FRAKTUR SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD529"},120106:{"value":"1D52A","name":"MATHEMATICAL FRAKTUR SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52A"},120107:{"value":"1D52B","name":"MATHEMATICAL FRAKTUR SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52B"},120108:{"value":"1D52C","name":"MATHEMATICAL FRAKTUR SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52C"},120109:{"value":"1D52D","name":"MATHEMATICAL FRAKTUR SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52D"},120110:{"value":"1D52E","name":"MATHEMATICAL FRAKTUR SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52E"},120111:{"value":"1D52F","name":"MATHEMATICAL FRAKTUR SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52F"},120112:{"value":"1D530","name":"MATHEMATICAL FRAKTUR SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD530"},120113:{"value":"1D531","name":"MATHEMATICAL FRAKTUR SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD531"},120114:{"value":"1D532","name":"MATHEMATICAL FRAKTUR SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD532"},120115:{"value":"1D533","name":"MATHEMATICAL FRAKTUR SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD533"},120116:{"value":"1D534","name":"MATHEMATICAL FRAKTUR SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD534"},120117:{"value":"1D535","name":"MATHEMATICAL FRAKTUR SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD535"},120118:{"value":"1D536","name":"MATHEMATICAL FRAKTUR SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD536"},120119:{"value":"1D537","name":"MATHEMATICAL FRAKTUR SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD537"},120146:{"value":"1D552","name":"MATHEMATICAL DOUBLE-STRUCK SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD552"},120147:{"value":"1D553","name":"MATHEMATICAL DOUBLE-STRUCK SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD553"},120148:{"value":"1D554","name":"MATHEMATICAL DOUBLE-STRUCK SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD554"},120149:{"value":"1D555","name":"MATHEMATICAL DOUBLE-STRUCK SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD555"},120150:{"value":"1D556","name":"MATHEMATICAL DOUBLE-STRUCK SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD556"},120151:{"value":"1D557","name":"MATHEMATICAL DOUBLE-STRUCK SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD557"},120152:{"value":"1D558","name":"MATHEMATICAL DOUBLE-STRUCK SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD558"},120153:{"value":"1D559","name":"MATHEMATICAL DOUBLE-STRUCK SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD559"},120154:{"value":"1D55A","name":"MATHEMATICAL DOUBLE-STRUCK SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55A"},120155:{"value":"1D55B","name":"MATHEMATICAL DOUBLE-STRUCK SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55B"},120156:{"value":"1D55C","name":"MATHEMATICAL DOUBLE-STRUCK SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55C"},120157:{"value":"1D55D","name":"MATHEMATICAL DOUBLE-STRUCK SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55D"},120158:{"value":"1D55E","name":"MATHEMATICAL DOUBLE-STRUCK SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55E"},120159:{"value":"1D55F","name":"MATHEMATICAL DOUBLE-STRUCK SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55F"},120160:{"value":"1D560","name":"MATHEMATICAL DOUBLE-STRUCK SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD560"},120161:{"value":"1D561","name":"MATHEMATICAL DOUBLE-STRUCK SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD561"},120162:{"value":"1D562","name":"MATHEMATICAL DOUBLE-STRUCK SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD562"},120163:{"value":"1D563","name":"MATHEMATICAL DOUBLE-STRUCK SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD563"},120164:{"value":"1D564","name":"MATHEMATICAL DOUBLE-STRUCK SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD564"},120165:{"value":"1D565","name":"MATHEMATICAL DOUBLE-STRUCK SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD565"},120166:{"value":"1D566","name":"MATHEMATICAL DOUBLE-STRUCK SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD566"},120167:{"value":"1D567","name":"MATHEMATICAL DOUBLE-STRUCK SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD567"},120168:{"value":"1D568","name":"MATHEMATICAL DOUBLE-STRUCK SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD568"},120169:{"value":"1D569","name":"MATHEMATICAL DOUBLE-STRUCK SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD569"},120170:{"value":"1D56A","name":"MATHEMATICAL DOUBLE-STRUCK SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD56A"},120171:{"value":"1D56B","name":"MATHEMATICAL DOUBLE-STRUCK SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD56B"},120198:{"value":"1D586","name":"MATHEMATICAL BOLD FRAKTUR SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD586"},120199:{"value":"1D587","name":"MATHEMATICAL BOLD FRAKTUR SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD587"},120200:{"value":"1D588","name":"MATHEMATICAL BOLD FRAKTUR SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD588"},120201:{"value":"1D589","name":"MATHEMATICAL BOLD FRAKTUR SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD589"},120202:{"value":"1D58A","name":"MATHEMATICAL BOLD FRAKTUR SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58A"},120203:{"value":"1D58B","name":"MATHEMATICAL BOLD FRAKTUR SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58B"},120204:{"value":"1D58C","name":"MATHEMATICAL BOLD FRAKTUR SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58C"},120205:{"value":"1D58D","name":"MATHEMATICAL BOLD FRAKTUR SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58D"},120206:{"value":"1D58E","name":"MATHEMATICAL BOLD FRAKTUR SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58E"},120207:{"value":"1D58F","name":"MATHEMATICAL BOLD FRAKTUR SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58F"},120208:{"value":"1D590","name":"MATHEMATICAL BOLD FRAKTUR SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD590"},120209:{"value":"1D591","name":"MATHEMATICAL BOLD FRAKTUR SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD591"},120210:{"value":"1D592","name":"MATHEMATICAL BOLD FRAKTUR SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD592"},120211:{"value":"1D593","name":"MATHEMATICAL BOLD FRAKTUR SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD593"},120212:{"value":"1D594","name":"MATHEMATICAL BOLD FRAKTUR SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD594"},120213:{"value":"1D595","name":"MATHEMATICAL BOLD FRAKTUR SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD595"},120214:{"value":"1D596","name":"MATHEMATICAL BOLD FRAKTUR SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD596"},120215:{"value":"1D597","name":"MATHEMATICAL BOLD FRAKTUR SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD597"},120216:{"value":"1D598","name":"MATHEMATICAL BOLD FRAKTUR SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD598"},120217:{"value":"1D599","name":"MATHEMATICAL BOLD FRAKTUR SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD599"},120218:{"value":"1D59A","name":"MATHEMATICAL BOLD FRAKTUR SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59A"},120219:{"value":"1D59B","name":"MATHEMATICAL BOLD FRAKTUR SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59B"},120220:{"value":"1D59C","name":"MATHEMATICAL BOLD FRAKTUR SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59C"},120221:{"value":"1D59D","name":"MATHEMATICAL BOLD FRAKTUR SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59D"},120222:{"value":"1D59E","name":"MATHEMATICAL BOLD FRAKTUR SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59E"},120223:{"value":"1D59F","name":"MATHEMATICAL BOLD FRAKTUR SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59F"},120250:{"value":"1D5BA","name":"MATHEMATICAL SANS-SERIF SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BA"},120251:{"value":"1D5BB","name":"MATHEMATICAL SANS-SERIF SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BB"},120252:{"value":"1D5BC","name":"MATHEMATICAL SANS-SERIF SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BC"},120253:{"value":"1D5BD","name":"MATHEMATICAL SANS-SERIF SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BD"},120254:{"value":"1D5BE","name":"MATHEMATICAL SANS-SERIF SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BE"},120255:{"value":"1D5BF","name":"MATHEMATICAL SANS-SERIF SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BF"},120256:{"value":"1D5C0","name":"MATHEMATICAL SANS-SERIF SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C0"},120257:{"value":"1D5C1","name":"MATHEMATICAL SANS-SERIF SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C1"},120258:{"value":"1D5C2","name":"MATHEMATICAL SANS-SERIF SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C2"},120259:{"value":"1D5C3","name":"MATHEMATICAL SANS-SERIF SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C3"},120260:{"value":"1D5C4","name":"MATHEMATICAL SANS-SERIF SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C4"},120261:{"value":"1D5C5","name":"MATHEMATICAL SANS-SERIF SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C5"},120262:{"value":"1D5C6","name":"MATHEMATICAL SANS-SERIF SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C6"},120263:{"value":"1D5C7","name":"MATHEMATICAL SANS-SERIF SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C7"},120264:{"value":"1D5C8","name":"MATHEMATICAL SANS-SERIF SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C8"},120265:{"value":"1D5C9","name":"MATHEMATICAL SANS-SERIF SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C9"},120266:{"value":"1D5CA","name":"MATHEMATICAL SANS-SERIF SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CA"},120267:{"value":"1D5CB","name":"MATHEMATICAL SANS-SERIF SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CB"},120268:{"value":"1D5CC","name":"MATHEMATICAL SANS-SERIF SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CC"},120269:{"value":"1D5CD","name":"MATHEMATICAL SANS-SERIF SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CD"},120270:{"value":"1D5CE","name":"MATHEMATICAL SANS-SERIF SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CE"},120271:{"value":"1D5CF","name":"MATHEMATICAL SANS-SERIF SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CF"},120272:{"value":"1D5D0","name":"MATHEMATICAL SANS-SERIF SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5D0"},120273:{"value":"1D5D1","name":"MATHEMATICAL SANS-SERIF SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5D1"},120274:{"value":"1D5D2","name":"MATHEMATICAL SANS-SERIF SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5D2"},120275:{"value":"1D5D3","name":"MATHEMATICAL SANS-SERIF SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5D3"},120302:{"value":"1D5EE","name":"MATHEMATICAL SANS-SERIF BOLD SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5EE"},120303:{"value":"1D5EF","name":"MATHEMATICAL SANS-SERIF BOLD SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5EF"},120304:{"value":"1D5F0","name":"MATHEMATICAL SANS-SERIF BOLD SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F0"},120305:{"value":"1D5F1","name":"MATHEMATICAL SANS-SERIF BOLD SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F1"},120306:{"value":"1D5F2","name":"MATHEMATICAL SANS-SERIF BOLD SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F2"},120307:{"value":"1D5F3","name":"MATHEMATICAL SANS-SERIF BOLD SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F3"},120308:{"value":"1D5F4","name":"MATHEMATICAL SANS-SERIF BOLD SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F4"},120309:{"value":"1D5F5","name":"MATHEMATICAL SANS-SERIF BOLD SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F5"},120310:{"value":"1D5F6","name":"MATHEMATICAL SANS-SERIF BOLD SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F6"},120311:{"value":"1D5F7","name":"MATHEMATICAL SANS-SERIF BOLD SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F7"},120312:{"value":"1D5F8","name":"MATHEMATICAL SANS-SERIF BOLD SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F8"},120313:{"value":"1D5F9","name":"MATHEMATICAL SANS-SERIF BOLD SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F9"},120314:{"value":"1D5FA","name":"MATHEMATICAL SANS-SERIF BOLD SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FA"},120315:{"value":"1D5FB","name":"MATHEMATICAL SANS-SERIF BOLD SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FB"},120316:{"value":"1D5FC","name":"MATHEMATICAL SANS-SERIF BOLD SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FC"},120317:{"value":"1D5FD","name":"MATHEMATICAL SANS-SERIF BOLD SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FD"},120318:{"value":"1D5FE","name":"MATHEMATICAL SANS-SERIF BOLD SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FE"},120319:{"value":"1D5FF","name":"MATHEMATICAL SANS-SERIF BOLD SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FF"},120320:{"value":"1D600","name":"MATHEMATICAL SANS-SERIF BOLD SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD600"},120321:{"value":"1D601","name":"MATHEMATICAL SANS-SERIF BOLD SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD601"},120322:{"value":"1D602","name":"MATHEMATICAL SANS-SERIF BOLD SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD602"},120323:{"value":"1D603","name":"MATHEMATICAL SANS-SERIF BOLD SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD603"},120324:{"value":"1D604","name":"MATHEMATICAL SANS-SERIF BOLD SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD604"},120325:{"value":"1D605","name":"MATHEMATICAL SANS-SERIF BOLD SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD605"},120326:{"value":"1D606","name":"MATHEMATICAL SANS-SERIF BOLD SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD606"},120327:{"value":"1D607","name":"MATHEMATICAL SANS-SERIF BOLD SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD607"},120354:{"value":"1D622","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD622"},120355:{"value":"1D623","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD623"},120356:{"value":"1D624","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD624"},120357:{"value":"1D625","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD625"},120358:{"value":"1D626","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD626"},120359:{"value":"1D627","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD627"},120360:{"value":"1D628","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD628"},120361:{"value":"1D629","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD629"},120362:{"value":"1D62A","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62A"},120363:{"value":"1D62B","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62B"},120364:{"value":"1D62C","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62C"},120365:{"value":"1D62D","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62D"},120366:{"value":"1D62E","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62E"},120367:{"value":"1D62F","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62F"},120368:{"value":"1D630","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD630"},120369:{"value":"1D631","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD631"},120370:{"value":"1D632","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD632"},120371:{"value":"1D633","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD633"},120372:{"value":"1D634","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD634"},120373:{"value":"1D635","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD635"},120374:{"value":"1D636","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD636"},120375:{"value":"1D637","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD637"},120376:{"value":"1D638","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD638"},120377:{"value":"1D639","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD639"},120378:{"value":"1D63A","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD63A"},120379:{"value":"1D63B","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD63B"},120406:{"value":"1D656","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD656"},120407:{"value":"1D657","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD657"},120408:{"value":"1D658","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD658"},120409:{"value":"1D659","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD659"},120410:{"value":"1D65A","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65A"},120411:{"value":"1D65B","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65B"},120412:{"value":"1D65C","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65C"},120413:{"value":"1D65D","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65D"},120414:{"value":"1D65E","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65E"},120415:{"value":"1D65F","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65F"},120416:{"value":"1D660","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD660"},120417:{"value":"1D661","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD661"},120418:{"value":"1D662","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD662"},120419:{"value":"1D663","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD663"},120420:{"value":"1D664","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD664"},120421:{"value":"1D665","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD665"},120422:{"value":"1D666","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD666"},120423:{"value":"1D667","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD667"},120424:{"value":"1D668","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD668"},120425:{"value":"1D669","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD669"},120426:{"value":"1D66A","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66A"},120427:{"value":"1D66B","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66B"},120428:{"value":"1D66C","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66C"},120429:{"value":"1D66D","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66D"},120430:{"value":"1D66E","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66E"},120431:{"value":"1D66F","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66F"},120458:{"value":"1D68A","name":"MATHEMATICAL MONOSPACE SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68A"},120459:{"value":"1D68B","name":"MATHEMATICAL MONOSPACE SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68B"},120460:{"value":"1D68C","name":"MATHEMATICAL MONOSPACE SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68C"},120461:{"value":"1D68D","name":"MATHEMATICAL MONOSPACE SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68D"},120462:{"value":"1D68E","name":"MATHEMATICAL MONOSPACE SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68E"},120463:{"value":"1D68F","name":"MATHEMATICAL MONOSPACE SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68F"},120464:{"value":"1D690","name":"MATHEMATICAL MONOSPACE SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD690"},120465:{"value":"1D691","name":"MATHEMATICAL MONOSPACE SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD691"},120466:{"value":"1D692","name":"MATHEMATICAL MONOSPACE SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD692"},120467:{"value":"1D693","name":"MATHEMATICAL MONOSPACE SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD693"},120468:{"value":"1D694","name":"MATHEMATICAL MONOSPACE SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD694"},120469:{"value":"1D695","name":"MATHEMATICAL MONOSPACE SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD695"},120470:{"value":"1D696","name":"MATHEMATICAL MONOSPACE SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD696"},120471:{"value":"1D697","name":"MATHEMATICAL MONOSPACE SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD697"},120472:{"value":"1D698","name":"MATHEMATICAL MONOSPACE SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD698"},120473:{"value":"1D699","name":"MATHEMATICAL MONOSPACE SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD699"},120474:{"value":"1D69A","name":"MATHEMATICAL MONOSPACE SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69A"},120475:{"value":"1D69B","name":"MATHEMATICAL MONOSPACE SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69B"},120476:{"value":"1D69C","name":"MATHEMATICAL MONOSPACE SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69C"},120477:{"value":"1D69D","name":"MATHEMATICAL MONOSPACE SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69D"},120478:{"value":"1D69E","name":"MATHEMATICAL MONOSPACE SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69E"},120479:{"value":"1D69F","name":"MATHEMATICAL MONOSPACE SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69F"},120480:{"value":"1D6A0","name":"MATHEMATICAL MONOSPACE SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A0"},120481:{"value":"1D6A1","name":"MATHEMATICAL MONOSPACE SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A1"},120482:{"value":"1D6A2","name":"MATHEMATICAL MONOSPACE SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A2"},120483:{"value":"1D6A3","name":"MATHEMATICAL MONOSPACE SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A3"},120484:{"value":"1D6A4","name":"MATHEMATICAL ITALIC SMALL DOTLESS I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0131","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A4"},120485:{"value":"1D6A5","name":"MATHEMATICAL ITALIC SMALL DOTLESS J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0237","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A5"},120514:{"value":"1D6C2","name":"MATHEMATICAL BOLD SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C2"},120515:{"value":"1D6C3","name":"MATHEMATICAL BOLD SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C3"},120516:{"value":"1D6C4","name":"MATHEMATICAL BOLD SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C4"},120517:{"value":"1D6C5","name":"MATHEMATICAL BOLD SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C5"},120518:{"value":"1D6C6","name":"MATHEMATICAL BOLD SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C6"},120519:{"value":"1D6C7","name":"MATHEMATICAL BOLD SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C7"},120520:{"value":"1D6C8","name":"MATHEMATICAL BOLD SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C8"},120521:{"value":"1D6C9","name":"MATHEMATICAL BOLD SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C9"},120522:{"value":"1D6CA","name":"MATHEMATICAL BOLD SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CA"},120523:{"value":"1D6CB","name":"MATHEMATICAL BOLD SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CB"},120524:{"value":"1D6CC","name":"MATHEMATICAL BOLD SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CC"},120525:{"value":"1D6CD","name":"MATHEMATICAL BOLD SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CD"},120526:{"value":"1D6CE","name":"MATHEMATICAL BOLD SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CE"},120527:{"value":"1D6CF","name":"MATHEMATICAL BOLD SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CF"},120528:{"value":"1D6D0","name":"MATHEMATICAL BOLD SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D0"},120529:{"value":"1D6D1","name":"MATHEMATICAL BOLD SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D1"},120530:{"value":"1D6D2","name":"MATHEMATICAL BOLD SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D2"},120531:{"value":"1D6D3","name":"MATHEMATICAL BOLD SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D3"},120532:{"value":"1D6D4","name":"MATHEMATICAL BOLD SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D4"},120533:{"value":"1D6D5","name":"MATHEMATICAL BOLD SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D5"},120534:{"value":"1D6D6","name":"MATHEMATICAL BOLD SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D6"},120535:{"value":"1D6D7","name":"MATHEMATICAL BOLD SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D7"},120536:{"value":"1D6D8","name":"MATHEMATICAL BOLD SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D8"},120537:{"value":"1D6D9","name":"MATHEMATICAL BOLD SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D9"},120538:{"value":"1D6DA","name":"MATHEMATICAL BOLD SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DA"},120540:{"value":"1D6DC","name":"MATHEMATICAL BOLD EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DC"},120541:{"value":"1D6DD","name":"MATHEMATICAL BOLD THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DD"},120542:{"value":"1D6DE","name":"MATHEMATICAL BOLD KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DE"},120543:{"value":"1D6DF","name":"MATHEMATICAL BOLD PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DF"},120544:{"value":"1D6E0","name":"MATHEMATICAL BOLD RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6E0"},120545:{"value":"1D6E1","name":"MATHEMATICAL BOLD PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6E1"},120572:{"value":"1D6FC","name":"MATHEMATICAL ITALIC SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6FC"},120573:{"value":"1D6FD","name":"MATHEMATICAL ITALIC SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6FD"},120574:{"value":"1D6FE","name":"MATHEMATICAL ITALIC SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6FE"},120575:{"value":"1D6FF","name":"MATHEMATICAL ITALIC SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6FF"},120576:{"value":"1D700","name":"MATHEMATICAL ITALIC SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD700"},120577:{"value":"1D701","name":"MATHEMATICAL ITALIC SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD701"},120578:{"value":"1D702","name":"MATHEMATICAL ITALIC SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD702"},120579:{"value":"1D703","name":"MATHEMATICAL ITALIC SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD703"},120580:{"value":"1D704","name":"MATHEMATICAL ITALIC SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD704"},120581:{"value":"1D705","name":"MATHEMATICAL ITALIC SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD705"},120582:{"value":"1D706","name":"MATHEMATICAL ITALIC SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD706"},120583:{"value":"1D707","name":"MATHEMATICAL ITALIC SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD707"},120584:{"value":"1D708","name":"MATHEMATICAL ITALIC SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD708"},120585:{"value":"1D709","name":"MATHEMATICAL ITALIC SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD709"},120586:{"value":"1D70A","name":"MATHEMATICAL ITALIC SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70A"},120587:{"value":"1D70B","name":"MATHEMATICAL ITALIC SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70B"},120588:{"value":"1D70C","name":"MATHEMATICAL ITALIC SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70C"},120589:{"value":"1D70D","name":"MATHEMATICAL ITALIC SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70D"},120590:{"value":"1D70E","name":"MATHEMATICAL ITALIC SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70E"},120591:{"value":"1D70F","name":"MATHEMATICAL ITALIC SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70F"},120592:{"value":"1D710","name":"MATHEMATICAL ITALIC SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD710"},120593:{"value":"1D711","name":"MATHEMATICAL ITALIC SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD711"},120594:{"value":"1D712","name":"MATHEMATICAL ITALIC SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD712"},120595:{"value":"1D713","name":"MATHEMATICAL ITALIC SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD713"},120596:{"value":"1D714","name":"MATHEMATICAL ITALIC SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD714"},120598:{"value":"1D716","name":"MATHEMATICAL ITALIC EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD716"},120599:{"value":"1D717","name":"MATHEMATICAL ITALIC THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD717"},120600:{"value":"1D718","name":"MATHEMATICAL ITALIC KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD718"},120601:{"value":"1D719","name":"MATHEMATICAL ITALIC PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD719"},120602:{"value":"1D71A","name":"MATHEMATICAL ITALIC RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD71A"},120603:{"value":"1D71B","name":"MATHEMATICAL ITALIC PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD71B"},120630:{"value":"1D736","name":"MATHEMATICAL BOLD ITALIC SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD736"},120631:{"value":"1D737","name":"MATHEMATICAL BOLD ITALIC SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD737"},120632:{"value":"1D738","name":"MATHEMATICAL BOLD ITALIC SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD738"},120633:{"value":"1D739","name":"MATHEMATICAL BOLD ITALIC SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD739"},120634:{"value":"1D73A","name":"MATHEMATICAL BOLD ITALIC SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73A"},120635:{"value":"1D73B","name":"MATHEMATICAL BOLD ITALIC SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73B"},120636:{"value":"1D73C","name":"MATHEMATICAL BOLD ITALIC SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73C"},120637:{"value":"1D73D","name":"MATHEMATICAL BOLD ITALIC SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73D"},120638:{"value":"1D73E","name":"MATHEMATICAL BOLD ITALIC SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73E"},120639:{"value":"1D73F","name":"MATHEMATICAL BOLD ITALIC SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73F"},120640:{"value":"1D740","name":"MATHEMATICAL BOLD ITALIC SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD740"},120641:{"value":"1D741","name":"MATHEMATICAL BOLD ITALIC SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD741"},120642:{"value":"1D742","name":"MATHEMATICAL BOLD ITALIC SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD742"},120643:{"value":"1D743","name":"MATHEMATICAL BOLD ITALIC SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD743"},120644:{"value":"1D744","name":"MATHEMATICAL BOLD ITALIC SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD744"},120645:{"value":"1D745","name":"MATHEMATICAL BOLD ITALIC SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD745"},120646:{"value":"1D746","name":"MATHEMATICAL BOLD ITALIC SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD746"},120647:{"value":"1D747","name":"MATHEMATICAL BOLD ITALIC SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD747"},120648:{"value":"1D748","name":"MATHEMATICAL BOLD ITALIC SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD748"},120649:{"value":"1D749","name":"MATHEMATICAL BOLD ITALIC SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD749"},120650:{"value":"1D74A","name":"MATHEMATICAL BOLD ITALIC SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74A"},120651:{"value":"1D74B","name":"MATHEMATICAL BOLD ITALIC SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74B"},120652:{"value":"1D74C","name":"MATHEMATICAL BOLD ITALIC SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74C"},120653:{"value":"1D74D","name":"MATHEMATICAL BOLD ITALIC SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74D"},120654:{"value":"1D74E","name":"MATHEMATICAL BOLD ITALIC SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74E"},120656:{"value":"1D750","name":"MATHEMATICAL BOLD ITALIC EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD750"},120657:{"value":"1D751","name":"MATHEMATICAL BOLD ITALIC THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD751"},120658:{"value":"1D752","name":"MATHEMATICAL BOLD ITALIC KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD752"},120659:{"value":"1D753","name":"MATHEMATICAL BOLD ITALIC PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD753"},120660:{"value":"1D754","name":"MATHEMATICAL BOLD ITALIC RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD754"},120661:{"value":"1D755","name":"MATHEMATICAL BOLD ITALIC PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD755"},120688:{"value":"1D770","name":"MATHEMATICAL SANS-SERIF BOLD SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD770"},120689:{"value":"1D771","name":"MATHEMATICAL SANS-SERIF BOLD SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD771"},120690:{"value":"1D772","name":"MATHEMATICAL SANS-SERIF BOLD SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD772"},120691:{"value":"1D773","name":"MATHEMATICAL SANS-SERIF BOLD SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD773"},120692:{"value":"1D774","name":"MATHEMATICAL SANS-SERIF BOLD SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD774"},120693:{"value":"1D775","name":"MATHEMATICAL SANS-SERIF BOLD SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD775"},120694:{"value":"1D776","name":"MATHEMATICAL SANS-SERIF BOLD SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD776"},120695:{"value":"1D777","name":"MATHEMATICAL SANS-SERIF BOLD SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD777"},120696:{"value":"1D778","name":"MATHEMATICAL SANS-SERIF BOLD SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD778"},120697:{"value":"1D779","name":"MATHEMATICAL SANS-SERIF BOLD SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD779"},120698:{"value":"1D77A","name":"MATHEMATICAL SANS-SERIF BOLD SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77A"},120699:{"value":"1D77B","name":"MATHEMATICAL SANS-SERIF BOLD SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77B"},120700:{"value":"1D77C","name":"MATHEMATICAL SANS-SERIF BOLD SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77C"},120701:{"value":"1D77D","name":"MATHEMATICAL SANS-SERIF BOLD SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77D"},120702:{"value":"1D77E","name":"MATHEMATICAL SANS-SERIF BOLD SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77E"},120703:{"value":"1D77F","name":"MATHEMATICAL SANS-SERIF BOLD SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77F"},120704:{"value":"1D780","name":"MATHEMATICAL SANS-SERIF BOLD SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD780"},120705:{"value":"1D781","name":"MATHEMATICAL SANS-SERIF BOLD SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD781"},120706:{"value":"1D782","name":"MATHEMATICAL SANS-SERIF BOLD SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD782"},120707:{"value":"1D783","name":"MATHEMATICAL SANS-SERIF BOLD SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD783"},120708:{"value":"1D784","name":"MATHEMATICAL SANS-SERIF BOLD SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD784"},120709:{"value":"1D785","name":"MATHEMATICAL SANS-SERIF BOLD SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD785"},120710:{"value":"1D786","name":"MATHEMATICAL SANS-SERIF BOLD SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD786"},120711:{"value":"1D787","name":"MATHEMATICAL SANS-SERIF BOLD SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD787"},120712:{"value":"1D788","name":"MATHEMATICAL SANS-SERIF BOLD SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD788"},120714:{"value":"1D78A","name":"MATHEMATICAL SANS-SERIF BOLD EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78A"},120715:{"value":"1D78B","name":"MATHEMATICAL SANS-SERIF BOLD THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78B"},120716:{"value":"1D78C","name":"MATHEMATICAL SANS-SERIF BOLD KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78C"},120717:{"value":"1D78D","name":"MATHEMATICAL SANS-SERIF BOLD PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78D"},120718:{"value":"1D78E","name":"MATHEMATICAL SANS-SERIF BOLD RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78E"},120719:{"value":"1D78F","name":"MATHEMATICAL SANS-SERIF BOLD PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78F"},120746:{"value":"1D7AA","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AA"},120747:{"value":"1D7AB","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AB"},120748:{"value":"1D7AC","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AC"},120749:{"value":"1D7AD","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AD"},120750:{"value":"1D7AE","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AE"},120751:{"value":"1D7AF","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AF"},120752:{"value":"1D7B0","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B0"},120753:{"value":"1D7B1","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B1"},120754:{"value":"1D7B2","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B2"},120755:{"value":"1D7B3","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B3"},120756:{"value":"1D7B4","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B4"},120757:{"value":"1D7B5","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B5"},120758:{"value":"1D7B6","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B6"},120759:{"value":"1D7B7","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B7"},120760:{"value":"1D7B8","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B8"},120761:{"value":"1D7B9","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B9"},120762:{"value":"1D7BA","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BA"},120763:{"value":"1D7BB","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BB"},120764:{"value":"1D7BC","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BC"},120765:{"value":"1D7BD","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BD"},120766:{"value":"1D7BE","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BE"},120767:{"value":"1D7BF","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BF"},120768:{"value":"1D7C0","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C0"},120769:{"value":"1D7C1","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C1"},120770:{"value":"1D7C2","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C2"},120772:{"value":"1D7C4","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C4"},120773:{"value":"1D7C5","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C5"},120774:{"value":"1D7C6","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C6"},120775:{"value":"1D7C7","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C7"},120776:{"value":"1D7C8","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C8"},120777:{"value":"1D7C9","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C9"},120779:{"value":"1D7CB","name":"MATHEMATICAL BOLD SMALL DIGAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03DD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7CB"},125218:{"value":"1E922","name":"ADLAM SMALL LETTER ALIF","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E900","lowercase_mapping":"","titlecase_mapping":"1E900","symbol":"\uE922"},125219:{"value":"1E923","name":"ADLAM SMALL LETTER DAALI","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E901","lowercase_mapping":"","titlecase_mapping":"1E901","symbol":"\uE923"},125220:{"value":"1E924","name":"ADLAM SMALL LETTER LAAM","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E902","lowercase_mapping":"","titlecase_mapping":"1E902","symbol":"\uE924"},125221:{"value":"1E925","name":"ADLAM SMALL LETTER MIIM","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E903","lowercase_mapping":"","titlecase_mapping":"1E903","symbol":"\uE925"},125222:{"value":"1E926","name":"ADLAM SMALL LETTER BA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E904","lowercase_mapping":"","titlecase_mapping":"1E904","symbol":"\uE926"},125223:{"value":"1E927","name":"ADLAM SMALL LETTER SINNYIIYHE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E905","lowercase_mapping":"","titlecase_mapping":"1E905","symbol":"\uE927"},125224:{"value":"1E928","name":"ADLAM SMALL LETTER PE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E906","lowercase_mapping":"","titlecase_mapping":"1E906","symbol":"\uE928"},125225:{"value":"1E929","name":"ADLAM SMALL LETTER BHE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E907","lowercase_mapping":"","titlecase_mapping":"1E907","symbol":"\uE929"},125226:{"value":"1E92A","name":"ADLAM SMALL LETTER RA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E908","lowercase_mapping":"","titlecase_mapping":"1E908","symbol":"\uE92A"},125227:{"value":"1E92B","name":"ADLAM SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E909","lowercase_mapping":"","titlecase_mapping":"1E909","symbol":"\uE92B"},125228:{"value":"1E92C","name":"ADLAM SMALL LETTER FA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90A","lowercase_mapping":"","titlecase_mapping":"1E90A","symbol":"\uE92C"},125229:{"value":"1E92D","name":"ADLAM SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90B","lowercase_mapping":"","titlecase_mapping":"1E90B","symbol":"\uE92D"},125230:{"value":"1E92E","name":"ADLAM SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90C","lowercase_mapping":"","titlecase_mapping":"1E90C","symbol":"\uE92E"},125231:{"value":"1E92F","name":"ADLAM SMALL LETTER DHA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90D","lowercase_mapping":"","titlecase_mapping":"1E90D","symbol":"\uE92F"},125232:{"value":"1E930","name":"ADLAM SMALL LETTER YHE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90E","lowercase_mapping":"","titlecase_mapping":"1E90E","symbol":"\uE930"},125233:{"value":"1E931","name":"ADLAM SMALL LETTER WAW","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90F","lowercase_mapping":"","titlecase_mapping":"1E90F","symbol":"\uE931"},125234:{"value":"1E932","name":"ADLAM SMALL LETTER NUN","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E910","lowercase_mapping":"","titlecase_mapping":"1E910","symbol":"\uE932"},125235:{"value":"1E933","name":"ADLAM SMALL LETTER KAF","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E911","lowercase_mapping":"","titlecase_mapping":"1E911","symbol":"\uE933"},125236:{"value":"1E934","name":"ADLAM SMALL LETTER YA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E912","lowercase_mapping":"","titlecase_mapping":"1E912","symbol":"\uE934"},125237:{"value":"1E935","name":"ADLAM SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E913","lowercase_mapping":"","titlecase_mapping":"1E913","symbol":"\uE935"},125238:{"value":"1E936","name":"ADLAM SMALL LETTER JIIM","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E914","lowercase_mapping":"","titlecase_mapping":"1E914","symbol":"\uE936"},125239:{"value":"1E937","name":"ADLAM SMALL LETTER CHI","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E915","lowercase_mapping":"","titlecase_mapping":"1E915","symbol":"\uE937"},125240:{"value":"1E938","name":"ADLAM SMALL LETTER HA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E916","lowercase_mapping":"","titlecase_mapping":"1E916","symbol":"\uE938"},125241:{"value":"1E939","name":"ADLAM SMALL LETTER QAAF","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E917","lowercase_mapping":"","titlecase_mapping":"1E917","symbol":"\uE939"},125242:{"value":"1E93A","name":"ADLAM SMALL LETTER GA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E918","lowercase_mapping":"","titlecase_mapping":"1E918","symbol":"\uE93A"},125243:{"value":"1E93B","name":"ADLAM SMALL LETTER NYA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E919","lowercase_mapping":"","titlecase_mapping":"1E919","symbol":"\uE93B"},125244:{"value":"1E93C","name":"ADLAM SMALL LETTER TU","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91A","lowercase_mapping":"","titlecase_mapping":"1E91A","symbol":"\uE93C"},125245:{"value":"1E93D","name":"ADLAM SMALL LETTER NHA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91B","lowercase_mapping":"","titlecase_mapping":"1E91B","symbol":"\uE93D"},125246:{"value":"1E93E","name":"ADLAM SMALL LETTER VA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91C","lowercase_mapping":"","titlecase_mapping":"1E91C","symbol":"\uE93E"},125247:{"value":"1E93F","name":"ADLAM SMALL LETTER KHA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91D","lowercase_mapping":"","titlecase_mapping":"1E91D","symbol":"\uE93F"},125248:{"value":"1E940","name":"ADLAM SMALL LETTER GBE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91E","lowercase_mapping":"","titlecase_mapping":"1E91E","symbol":"\uE940"},125249:{"value":"1E941","name":"ADLAM SMALL LETTER ZAL","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91F","lowercase_mapping":"","titlecase_mapping":"1E91F","symbol":"\uE941"},125250:{"value":"1E942","name":"ADLAM SMALL LETTER KPO","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E920","lowercase_mapping":"","titlecase_mapping":"1E920","symbol":"\uE942"},125251:{"value":"1E943","name":"ADLAM SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E921","lowercase_mapping":"","titlecase_mapping":"1E921","symbol":"\uE943"}}; +},{}],1001:[function(require,module,exports){ (function (root) { "use strict"; - /***** unorm.js *****/ +/***** 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 $ - */ +/* + * 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 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) { + var UChar = function(cp, feature){ this.codepoint = cp; this.feature = feature; }; @@ -147010,59 +155069,59 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Strategies var cache = {}; var cacheCounter = []; - for (var i = 0; i <= 0xFF; ++i) { + for (var i = 0; i <= 0xFF; ++i){ cacheCounter[i] = 0; } - function fromCache(next, cp, needFeature) { + function fromCache(next, cp, needFeature){ var ret = cache[cp]; - if (!ret) { + if(!ret){ ret = next(cp, needFeature); - if (!!ret.feature && ++cacheCounter[cp >> 8 & 0xFF] > CACHE_THRESHOLD) { + if(!!ret.feature && ++cacheCounter[(cp >> 8) & 0xFF] > CACHE_THRESHOLD){ cache[cp] = ret; } } return ret; } - function fromData(next, cp, needFeature) { + 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) { + function fromCpOnly(next, cp, needFeature){ return !!needFeature ? next(cp, needFeature) : new UChar(cp, null); } - function fromRuleBasedJamo(next, cp, needFeature) { + function fromRuleBasedJamo(next, cp, needFeature){ var j; - if (cp < LBase || LBase + LCount <= cp && cp < SBase || SBase + SCount < cp) { + if(cp < LBase || (LBase + LCount <= cp && cp < SBase) || (SBase + SCount < cp)){ return next(cp, needFeature); } - if (LBase <= cp && cp < LBase + LCount) { + if(LBase <= cp && cp < LBase + LCount){ var c = {}; var base = (cp - LBase) * VCount; - for (j = 0; j < VCount; ++j) { + for (j = 0; j < VCount; ++j){ c[VBase + j] = SBase + TCount * (j + base); } - return new UChar(cp, [,, c]); + return new UChar(cp, [,,c]); } var SIndex = cp - SBase; var TIndex = SIndex % TCount; var feature = []; - if (TIndex !== 0) { + 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[0] = [LBase + Math.floor(SIndex / NCount), VBase + Math.floor((SIndex % NCount) / TCount)]; feature[2] = {}; - for (j = 1; j < TCount; ++j) { + for (j = 1; j < TCount; ++j){ feature[2][TBase + j] = cp + j; } } return new UChar(cp, feature); } - function fromCpFilter(next, cp, needFeature) { + function fromCpFilter(next, cp, needFeature){ return cp < 60 || 13311 < cp && cp < 42607 ? new UChar(cp, DEFAULT_FEATURE) : next(cp, needFeature); } @@ -147074,21 +155133,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; }, null); - UChar.isHighSurrogate = function (cp) { + UChar.isHighSurrogate = function(cp){ return cp >= 0xD800 && cp <= 0xDBFF; }; - UChar.isLowSurrogate = function (cp) { + UChar.isLowSurrogate = function(cp){ return cp >= 0xDC00 && cp <= 0xDFFF; }; - UChar.prototype.prepFeature = function () { - if (!this.feature) { + UChar.prototype.prepFeature = function(){ + if(!this.feature){ this.feature = UChar.fromCharCode(this.codepoint, true).feature; } }; - UChar.prototype.toString = function () { - if (this.codepoint < 0x10000) { + UChar.prototype.toString = function(){ + if(this.codepoint < 0x10000){ return String.fromCharCode(this.codepoint); } else { var x = this.codepoint - 0x10000; @@ -147096,42 +155155,42 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - UChar.prototype.getDecomp = function () { + UChar.prototype.getDecomp = function(){ this.prepFeature(); return this.feature[0] || null; }; - UChar.prototype.isCompatibility = function () { + UChar.prototype.isCompatibility = function(){ this.prepFeature(); - return !!this.feature[1] && this.feature[1] & 1 << 8; + return !!this.feature[1] && (this.feature[1] & (1 << 8)); }; - UChar.prototype.isExclude = function () { + UChar.prototype.isExclude = function(){ this.prepFeature(); - return !!this.feature[1] && this.feature[1] & 1 << 9; + return !!this.feature[1] && (this.feature[1] & (1 << 9)); }; - UChar.prototype.getCanonicalClass = function () { + UChar.prototype.getCanonicalClass = function(){ this.prepFeature(); - return !!this.feature[1] ? this.feature[1] & 0xff : 0; + return !!this.feature[1] ? (this.feature[1] & 0xff) : 0; }; - UChar.prototype.getComposite = function (following) { + UChar.prototype.getComposite = function(following){ this.prepFeature(); - if (!this.feature[2]) { + if(!this.feature[2]){ return null; } var cp = this.feature[2][following.codepoint]; return cp ? UChar.fromCharCode(cp) : null; }; - var UCharIterator = function UCharIterator(str) { + var UCharIterator = function(str){ this.str = str; this.cursor = 0; }; - UCharIterator.prototype.next = function () { - if (!!this.str && this.cursor < this.str.length) { + 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; + 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); @@ -147141,29 +155200,29 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - var RecursDecompIterator = function RecursDecompIterator(it, cano) { + var RecursDecompIterator = function(it, cano){ this.it = it; this.canonical = cano; this.resBuf = []; }; - RecursDecompIterator.prototype.next = function () { - function recursiveDecomp(cano, uchar) { + RecursDecompIterator.prototype.next = function(){ + function recursiveDecomp(cano, uchar){ var decomp = uchar.getDecomp(); - if (!!decomp && !(cano && uchar.isCompatibility())) { + if(!!decomp && !(cano && uchar.isCompatibility())){ var ret = []; - for (var i = 0; i < decomp.length; ++i) { + for(var i = 0; i < decomp.length; ++i){ var a = recursiveDecomp(cano, UChar.fromCharCode(decomp[i])); - ret = ret.concat(a); + ret = ret.concat(a); } return ret; } else { return [uchar]; } } - if (this.resBuf.length === 0) { + if(this.resBuf.length === 0){ var uchar = this.it.next(); - if (!uchar) { + if(!uchar){ return null; } this.resBuf = recursiveDecomp(this.canonical, uchar); @@ -147171,62 +155230,62 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.resBuf.shift(); }; - var DecompIterator = function DecompIterator(it) { + var DecompIterator = function(it){ this.it = it; this.resBuf = []; }; - DecompIterator.prototype.next = function () { + DecompIterator.prototype.next = function(){ var cc; - if (this.resBuf.length === 0) { - do { + if(this.resBuf.length === 0){ + do{ var uchar = this.it.next(); - if (!uchar) { + if(!uchar){ break; } cc = uchar.getCanonicalClass(); var inspt = this.resBuf.length; - if (cc !== 0) { - for (; inspt > 0; --inspt) { + if(cc !== 0){ + for(; inspt > 0; --inspt){ var uchar2 = this.resBuf[inspt - 1]; var cc2 = uchar2.getCanonicalClass(); - if (cc2 <= cc) { + if(cc2 <= cc){ break; } } } this.resBuf.splice(inspt, 0, uchar); - } while (cc !== 0); + } while(cc !== 0); } return this.resBuf.shift(); }; - var CompIterator = function CompIterator(it) { + var CompIterator = function(it){ this.it = it; this.procBuf = []; this.resBuf = []; this.lastClass = null; }; - CompIterator.prototype.next = function () { - while (this.resBuf.length === 0) { + CompIterator.prototype.next = function(){ + while(this.resBuf.length === 0){ var uchar = this.it.next(); - if (!uchar) { + if(!uchar){ this.resBuf = this.procBuf; this.procBuf = []; break; } - if (this.procBuf.length === 0) { + 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)) { + if(!!composite && (this.lastClass < cc || this.lastClass === 0)){ this.procBuf[0] = composite; } else { - if (cc === 0) { + if(cc === 0){ this.resBuf = this.procBuf; this.procBuf = []; } @@ -147238,8 +155297,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.resBuf.shift(); }; - var createIterator = function createIterator(mode, str) { - switch (mode) { + var createIterator = function(mode, str){ + switch(mode){ case "NFD": return new DecompIterator(new RecursDecompIterator(new UCharIterator(str), true)); case "NFKD": @@ -147251,110 +155310,110 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } throw mode + " is invalid"; }; - var normalize = function normalize(mode, str) { + var normalize = function(mode, str){ var it = createIterator(mode, str); var ret = ""; var uchar; - while (!!(uchar = it.next())) { + while(!!(uchar = it.next())){ ret += uchar.toString(); } return ret; }; /* API functions */ - function nfd(str) { + function nfd(str){ return normalize("NFD", str); } - function nfkd(str) { + function nfkd(str){ return normalize("NFKD", str); } - function nfc(str) { + function nfc(str){ return normalize("NFC", str); } - function nfkc(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] } +/* 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 = { @@ -147367,16 +155426,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /*globals module:true,define:true*/ // CommonJS - if ((typeof module === "undefined" ? "undefined" : _typeof(module)) === "object") { + if (typeof module === "object") { module.exports = unorm; - // AMD + // AMD } else if (typeof define === "function" && define.amd) { define("unorm", function () { return unorm; }); - // Global + // Global } else { root.unorm = unorm; } @@ -147384,9 +155443,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /***** 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") + + 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). + + 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". @@ -147395,15 +155456,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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. + + 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; + unorm.shimApplied = false; if (!String.prototype.normalize) { - String.prototype.normalize = function (form) { + String.prototype.normalize = function(form) { var str = "" + this; - form = form === undefined ? "NFC" : form; + form = form === undefined ? "NFC" : form; if (form === "NFC") { return unorm.nfc(str); @@ -147420,26 +155483,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol unorm.shimApplied = true; } -})(undefined); +}(this)); -},{}],988:[function(require,module,exports){ +},{}],1002:[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) { +;(function(root) { // Detect free variables `exports` - var freeExports = (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) == 'object' && exports; + var freeExports = typeof exports == 'object' && exports; // Detect free variable `module` - var freeModule = (typeof module === 'undefined' ? 'undefined' : _typeof(module)) == 'object' && module && module.exports == freeExports && module; + var freeModule = 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; + var freeGlobal = typeof global == 'object' && global; if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { root = freeGlobal; } @@ -147460,8 +155520,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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 + 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 @@ -147496,36 +155555,37 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol function checkScalarValue(codePoint) { if (codePoint >= 0xD800 && codePoint <= 0xDFFF) { - throw Error('Lone surrogate U+' + codePoint.toString(16).toUpperCase() + ' is not a scalar value'); + throw Error( + 'Lone surrogate U+' + codePoint.toString(16).toUpperCase() + + ' is not a scalar value' + ); } } /*--------------------------------------------------------------------------*/ function createByte(codePoint, shift) { - return stringFromCharCode(codePoint >> shift & 0x3F | 0x80); + return stringFromCharCode(((codePoint >> shift) & 0x3F) | 0x80); } function encodeCodePoint(codePoint) { - if ((codePoint & 0xFFFFFF80) == 0) { - // 1-byte sequence + 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 + 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 = stringFromCharCode(((codePoint >> 12) & 0x0F) | 0xE0); symbol += createByte(codePoint, 6); - } else if ((codePoint & 0xFFE00000) == 0) { - // 4-byte sequence - symbol = stringFromCharCode(codePoint >> 18 & 0x07 | 0xF0); + } + 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); + symbol += stringFromCharCode((codePoint & 0x3F) | 0x80); return symbol; } @@ -147587,7 +155647,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 2-byte sequence if ((byte1 & 0xE0) == 0xC0) { byte2 = readContinuationByte(); - codePoint = (byte1 & 0x1F) << 6 | byte2; + codePoint = ((byte1 & 0x1F) << 6) | byte2; if (codePoint >= 0x80) { return codePoint; } else { @@ -147599,7 +155659,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if ((byte1 & 0xF0) == 0xE0) { byte2 = readContinuationByte(); byte3 = readContinuationByte(); - codePoint = (byte1 & 0x0F) << 12 | byte2 << 6 | byte3; + codePoint = ((byte1 & 0x0F) << 12) | (byte2 << 6) | byte3; if (codePoint >= 0x0800) { checkScalarValue(codePoint); return codePoint; @@ -147613,7 +155673,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol byte2 = readContinuationByte(); byte3 = readContinuationByte(); byte4 = readContinuationByte(); - codePoint = (byte1 & 0x07) << 0x12 | byte2 << 0x0C | byte3 << 0x06 | byte4; + codePoint = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0C) | + (byte3 << 0x06) | byte4; if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) { return codePoint; } @@ -147647,34 +155708,34 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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 () { + 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+ + } 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- + } 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 + } 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 : {}) -},{}],989:[function(require,module,exports){ -arguments[4][311][0].apply(exports,arguments) -},{"dup":311}],990:[function(require,module,exports){ -'use strict'; +}(this)); +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}],1003:[function(require,module,exports){ +arguments[4][313][0].apply(exports,arguments) +},{"dup":313}],1004:[function(require,module,exports){ var v1 = require('./v1'); var v4 = require('./v4'); @@ -147684,9 +155745,7 @@ uuid.v4 = v4; module.exports = uuid; -},{"./v1":993,"./v4":994}],991:[function(require,module,exports){ -'use strict'; - +},{"./v1":1007,"./v4":1008}],1005:[function(require,module,exports){ /** * Convert array of 16 byte values to UUID string format of the form: * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX @@ -147700,14 +155759,19 @@ function bytesToUuid(buf, offset) { var i = offset || 0; var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 - 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++]]].join(''); + 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++]]]).join(''); } module.exports = bytesToUuid; -},{}],992:[function(require,module,exports){ -'use strict'; - +},{}],1006:[function(require,module,exports){ // 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 @@ -147715,7 +155779,8 @@ module.exports = bytesToUuid; // getRandomValues needs to be invoked in a context where "this" is a Crypto // implementation. Also, find the complete implementation of crypto on IE11. -var getRandomValues = typeof crypto != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto); +var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) || + (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto)); if (getRandomValues) { // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto @@ -147742,9 +155807,7 @@ if (getRandomValues) { }; } -},{}],993:[function(require,module,exports){ -'use strict'; - +},{}],1007:[function(require,module,exports){ var rng = require('./lib/rng'); var bytesToUuid = require('./lib/bytesToUuid'); @@ -147776,7 +155839,10 @@ function v1(options, buf, offset) { var seedBytes = rng(); if (node == null) { // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + node = _nodeId = [ + seedBytes[0] | 0x01, + seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5] + ]; } if (clockseq == null) { // Per 4.2.2, randomize (14 bit) clockseq @@ -147795,7 +155861,7 @@ function v1(options, buf, offset) { var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; + var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000; // Per 4.2.1.2, Bump clockseq on clock regression if (dt < 0 && options.clockseq === undefined) { @@ -147828,7 +155894,7 @@ function v1(options, buf, offset) { b[i++] = tl & 0xff; // `time_mid` - var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff; b[i++] = tmh >>> 8 & 0xff; b[i++] = tmh & 0xff; @@ -147852,16 +155918,14 @@ function v1(options, buf, offset) { module.exports = v1; -},{"./lib/bytesToUuid":991,"./lib/rng":992}],994:[function(require,module,exports){ -'use strict'; - +},{"./lib/bytesToUuid":1005,"./lib/rng":1006}],1008:[function(require,module,exports){ var rng = require('./lib/rng'); var bytesToUuid = require('./lib/bytesToUuid'); function v4(options, buf, offset) { var i = buf && offset || 0; - if (typeof options == 'string') { + if (typeof(options) == 'string') { buf = options === 'binary' ? new Array(16) : null; options = null; } @@ -147870,8 +155934,8 @@ function v4(options, buf, offset) { 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; + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; // Copy bytes to buffer, if provided if (buf) { @@ -147885,52 +155949,53 @@ function v4(options, buf, offset) { module.exports = v4; -},{"./lib/bytesToUuid":991,"./lib/rng":992}],995:[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; }; - +},{"./lib/bytesToUuid":1005,"./lib/rng":1006}],1009:[function(require,module,exports){ var indexOf = require('indexof'); -var Object_keys = function Object_keys(obj) { - if (Object.keys) return Object.keys(obj);else { +var Object_keys = function (obj) { + if (Object.keys) return Object.keys(obj) + else { var res = []; - for (var key in obj) { - res.push(key); - }return 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++) { +var forEach = function (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 () { +var defineProp = (function() { try { Object.defineProperty({}, '_', {}); - return function (obj, name, value) { + return function(obj, name, value) { Object.defineProperty(obj, name, { writable: true, enumerable: false, configurable: true, value: value - }); + }) }; - } catch (e) { - return function (obj, name, 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']; +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) { +var Script = exports.Script = function NodeScript (code) { if (!(this instanceof Script)) return new Script(code); this.code = code; }; @@ -147939,23 +156004,22 @@ 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; + 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]; }); @@ -147964,11 +156028,11 @@ Script.prototype.runInContext = function (context) { 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` @@ -147983,9 +156047,9 @@ Script.prototype.runInContext = function (context) { defineProp(context, key, win[key]); } }); - + document.body.removeChild(iframe); - + return res; }; @@ -148017,7 +156081,7 @@ exports.createScript = function (code) { exports.createContext = Script.createContext = function (context) { var copy = new Context(); - if ((typeof context === 'undefined' ? 'undefined' : _typeof(context)) === 'object') { + if(typeof context === 'object') { forEach(Object_keys(context), function (key) { copy[key] = context[key]; }); @@ -148025,9 +156089,7 @@ exports.createContext = Script.createContext = function (context) { return copy; }; -},{"indexof":881}],996:[function(require,module,exports){ -'use strict'; - +},{"indexof":895}],1010:[function(require,module,exports){ // Base58 encoding/decoding // Originally written by Mike Hearn for BitcoinJ // Copyright (c) 2011 Google Inc @@ -148043,25 +156105,22 @@ for (var i = 0; i < ALPHABET.length; ++i) { var BASE = ALPHABET.length; module.exports = { - decode: function decode(string) { + decode: function(string) { if (string.length === 0) return []; - var i, - j, - bytes = [0]; + 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]; + 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; + bytes[j] &= 0xff } while (carry) { @@ -148070,7 +156129,7 @@ module.exports = { } } // deal with leading zeros - for (i = 0; string[i] === '1' && i < string.length - 1; ++i) { + for (i = 0; string[i] === '1' && i < string.length - 1; ++i){ bytes.push(0); } @@ -148078,174 +156137,198 @@ module.exports = { } }; -},{}],997:[function(require,module,exports){ +},{}],1011:[function(require,module,exports){ (function (Buffer){ 'use strict'; /** * Credits to https://github.com/cryptocoinjs/blake-hash */ +Blake256.sigma = [ + [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], + [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3], + [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4], + [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8], + [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13], + [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9], + [12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11], + [13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10], + [6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5], + [10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0], + [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], + [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3], + [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4], + [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8], + [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13], + [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9] +] -Blake256.sigma = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3], [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4], [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8], [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13], [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9], [12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11], [13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10], [6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5], [10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3], [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4], [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8], [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13], [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9]]; - -Blake256.u256 = [0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, 0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89, 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c, 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917]; +Blake256.u256 = [ + 0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, + 0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89, + 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c, + 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917 +] -Blake256.padding = new Buffer([0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); +Blake256.padding = new Buffer([ + 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +]) Blake256.prototype._length_carry = function (arr) { for (var j = 0; j < arr.length; ++j) { - if (arr[j] < 0x0100000000) break; - arr[j] -= 0x0100000000; - arr[j + 1] += 1; + if (arr[j] < 0x0100000000) break + arr[j] -= 0x0100000000 + arr[j + 1] += 1 } -}; +} Blake256.prototype.update = function (data, encoding) { data = new Buffer(data, encoding); - var block = this._block; - var offset = 0; + var block = this._block + var offset = 0 while (this._blockOffset + data.length - offset >= block.length) { - for (var i = this._blockOffset; i < block.length;) { - block[i++] = data[offset++]; - }this._length[0] += block.length * 8; - this._length_carry(this._length); + for (var i = this._blockOffset; i < block.length;) block[i++] = data[offset++] + + this._length[0] += block.length * 8 + this._length_carry(this._length) - this._compress(); - this._blockOffset = 0; + this._compress() + this._blockOffset = 0 } - while (offset < data.length) { - block[this._blockOffset++] = data[offset++]; - }return this; -}; + while (offset < data.length) block[this._blockOffset++] = data[offset++] + return this; +} -var zo = new Buffer([0x01]); -var oo = new Buffer([0x81]); +var zo = new Buffer([0x01]) +var oo = new Buffer([0x81]) -function rot(x, n) { - return (x << 32 - n | x >>> n) >>> 0; +function rot (x, n) { + return ((x << (32 - n)) | (x >>> n)) >>> 0 } -function g(v, m, i, a, b, c, d, e) { - var sigma = Blake256.sigma; - var u256 = Blake256.u256; +function g (v, m, i, a, b, c, d, e) { + var sigma = Blake256.sigma + var u256 = Blake256.u256 - v[a] = v[a] + ((m[sigma[i][e]] ^ u256[sigma[i][e + 1]]) >>> 0) + v[b] >>> 0; - v[d] = rot(v[d] ^ v[a], 16); - v[c] = v[c] + v[d] >>> 0; - v[b] = rot(v[b] ^ v[c], 12); - v[a] = v[a] + ((m[sigma[i][e + 1]] ^ u256[sigma[i][e]]) >>> 0) + v[b] >>> 0; - v[d] = rot(v[d] ^ v[a], 8); - v[c] = v[c] + v[d] >>> 0; - v[b] = rot(v[b] ^ v[c], 7); + v[a] = (v[a] + ((m[sigma[i][e]] ^ u256[sigma[i][e + 1]]) >>> 0) + v[b]) >>> 0 + v[d] = rot(v[d] ^ v[a], 16) + v[c] = (v[c] + v[d]) >>> 0 + v[b] = rot(v[b] ^ v[c], 12) + v[a] = (v[a] + ((m[sigma[i][e + 1]] ^ u256[sigma[i][e]]) >>> 0) + v[b]) >>> 0 + v[d] = rot(v[d] ^ v[a], 8) + v[c] = (v[c] + v[d]) >>> 0 + v[b] = rot(v[b] ^ v[c], 7) } -function Blake256() { - this._h = [0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19]; +function Blake256 () { + this._h = [ + 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, + 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 + ] - this._s = [0, 0, 0, 0]; + this._s = [0, 0, 0, 0] - this._block = new Buffer(64); - this._blockOffset = 0; - this._length = [0, 0]; + this._block = new Buffer(64) + this._blockOffset = 0 + this._length = [0, 0] - this._nullt = false; + this._nullt = false - this._zo = zo; - this._oo = oo; + this._zo = zo + this._oo = oo } Blake256.prototype._compress = function () { - var u256 = Blake256.u256; - var v = new Array(16); - var m = new Array(16); - var i; + var u256 = Blake256.u256 + var v = new Array(16) + var m = new Array(16) + var i + + for (i = 0; i < 16; ++i) m[i] = this._block.readUInt32BE(i * 4) + for (i = 0; i < 8; ++i) v[i] = this._h[i] >>> 0 + for (i = 8; i < 12; ++i) v[i] = (this._s[i - 8] ^ u256[i - 8]) >>> 0 + for (i = 12; i < 16; ++i) v[i] = u256[i - 8] - for (i = 0; i < 16; ++i) { - m[i] = this._block.readUInt32BE(i * 4); - }for (i = 0; i < 8; ++i) { - v[i] = this._h[i] >>> 0; - }for (i = 8; i < 12; ++i) { - v[i] = (this._s[i - 8] ^ u256[i - 8]) >>> 0; - }for (i = 12; i < 16; ++i) { - v[i] = u256[i - 8]; - }if (!this._nullt) { - v[12] = (v[12] ^ this._length[0]) >>> 0; - v[13] = (v[13] ^ this._length[0]) >>> 0; - v[14] = (v[14] ^ this._length[1]) >>> 0; - v[15] = (v[15] ^ this._length[1]) >>> 0; + if (!this._nullt) { + v[12] = (v[12] ^ this._length[0]) >>> 0 + v[13] = (v[13] ^ this._length[0]) >>> 0 + v[14] = (v[14] ^ this._length[1]) >>> 0 + v[15] = (v[15] ^ this._length[1]) >>> 0 } for (i = 0; i < 14; ++i) { /* column step */ - g(v, m, i, 0, 4, 8, 12, 0); - g(v, m, i, 1, 5, 9, 13, 2); - g(v, m, i, 2, 6, 10, 14, 4); - g(v, m, i, 3, 7, 11, 15, 6); + g(v, m, i, 0, 4, 8, 12, 0) + g(v, m, i, 1, 5, 9, 13, 2) + g(v, m, i, 2, 6, 10, 14, 4) + g(v, m, i, 3, 7, 11, 15, 6) /* diagonal step */ - g(v, m, i, 0, 5, 10, 15, 8); - g(v, m, i, 1, 6, 11, 12, 10); - g(v, m, i, 2, 7, 8, 13, 12); - g(v, m, i, 3, 4, 9, 14, 14); + g(v, m, i, 0, 5, 10, 15, 8) + g(v, m, i, 1, 6, 11, 12, 10) + g(v, m, i, 2, 7, 8, 13, 12) + g(v, m, i, 3, 4, 9, 14, 14) } - for (i = 0; i < 16; ++i) { - this._h[i % 8] = (this._h[i % 8] ^ v[i]) >>> 0; - }for (i = 0; i < 8; ++i) { - this._h[i] = (this._h[i] ^ this._s[i % 4]) >>> 0; - } -}; + for (i = 0; i < 16; ++i) this._h[i % 8] = (this._h[i % 8] ^ v[i]) >>> 0 + for (i = 0; i < 8; ++i) this._h[i] = (this._h[i] ^ this._s[i % 4]) >>> 0 +} Blake256.prototype._padding = function () { - var lo = this._length[0] + this._blockOffset * 8; - var hi = this._length[1]; + var lo = this._length[0] + this._blockOffset * 8 + var hi = this._length[1] if (lo >= 0x0100000000) { - lo -= 0x0100000000; - hi += 1; + lo -= 0x0100000000 + hi += 1 } - var msglen = new Buffer(8); - msglen.writeUInt32BE(hi, 0); - msglen.writeUInt32BE(lo, 4); + var msglen = new Buffer(8) + msglen.writeUInt32BE(hi, 0) + msglen.writeUInt32BE(lo, 4) if (this._blockOffset === 55) { - this._length[0] -= 8; - this.update(this._oo); + this._length[0] -= 8 + this.update(this._oo) } else { if (this._blockOffset < 55) { - if (this._blockOffset === 0) this._nullt = true; - this._length[0] -= (55 - this._blockOffset) * 8; - this.update(Blake256.padding.slice(0, 55 - this._blockOffset)); + if (this._blockOffset === 0) this._nullt = true + this._length[0] -= (55 - this._blockOffset) * 8 + this.update(Blake256.padding.slice(0, 55 - this._blockOffset)) } else { - this._length[0] -= (64 - this._blockOffset) * 8; - this.update(Blake256.padding.slice(0, 64 - this._blockOffset)); - this._length[0] -= 55 * 8; - this.update(Blake256.padding.slice(1, 1 + 55)); - this._nullt = true; + this._length[0] -= (64 - this._blockOffset) * 8 + this.update(Blake256.padding.slice(0, 64 - this._blockOffset)) + this._length[0] -= 55 * 8 + this.update(Blake256.padding.slice(1, 1 + 55)) + this._nullt = true } - this.update(this._zo); - this._length[0] -= 8; + this.update(this._zo) + this._length[0] -= 8 } - this._length[0] -= 64; - this.update(msglen); -}; + this._length[0] -= 64 + this.update(msglen) +} Blake256.prototype.digest = function (encoding) { - this._padding(); + this._padding() - var buffer = new Buffer(32); - for (var i = 0; i < 8; ++i) { - buffer.writeUInt32BE(this._h[i], i * 4); - }return buffer.toString(encoding); -}; + var buffer = new Buffer(32) + for (var i = 0; i < 8; ++i) buffer.writeUInt32BE(this._h[i], i * 4) + return buffer.toString(encoding); +} module.exports = Blake256; - }).call(this,require("buffer").Buffer) -},{"buffer":401}],998:[function(require,module,exports){ +},{"buffer":415}],1012:[function(require,module,exports){ (function (process,global){ /** * [js-sha3]{@link https://github.com/emn178/js-sha3} @@ -148258,16 +156341,14 @@ module.exports = Blake256; /*jslint bitwise: true */ '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 ERROR = 'input is invalid type'; -var WINDOW = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object'; +var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_SHA3_NO_WINDOW) { WINDOW = false; } -var WEB_WORKER = !WINDOW && (typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object'; -var NODE_JS = !root.JS_SHA3_NO_NODE_JS && (typeof process === 'undefined' ? 'undefined' : _typeof(process)) === 'object' && process.versions && process.versions.node; +var WEB_WORKER = !WINDOW && typeof self === 'object'; +var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { @@ -148280,7 +156361,11 @@ var CSHAKE_PADDING = [4, 1024, 262144, 67108864]; var KECCAK_PADDING = [1, 256, 65536, 16777216]; var PADDING = [6, 1536, 393216, 100663296]; var SHIFT = [0, 8, 16, 24]; -var RC = [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]; +var RC = [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]; var BITS = [224, 256, 384, 512]; var SHAKE_BITS = [128, 256]; var OUTPUT_TYPES = ['hex', 'buffer', 'arrayBuffer', 'array', 'digest']; @@ -148297,35 +156382,35 @@ if (root.JS_SHA3_NO_NODE_JS || !Array.isArray) { if (ARRAY_BUFFER && (root.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function (obj) { - return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; + return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } -var createOutputMethod = function createOutputMethod(bits, padding, outputType) { +var createOutputMethod = function (bits, padding, outputType) { return function (message) { return new Keccak(bits, padding, bits).update(message)[outputType](); }; }; -var createShakeOutputMethod = function createShakeOutputMethod(bits, padding, outputType) { +var createShakeOutputMethod = function (bits, padding, outputType) { return function (message, outputBits) { return new Keccak(bits, padding, outputBits).update(message)[outputType](); }; }; -var createCshakeOutputMethod = function createCshakeOutputMethod(bits, padding, outputType) { +var createCshakeOutputMethod = function (bits, padding, outputType) { return function (message, outputBits, n, s) { return methods['cshake' + bits].update(message, outputBits, n, s)[outputType](); }; }; -var createKmacOutputMethod = function createKmacOutputMethod(bits, padding, outputType) { +var createKmacOutputMethod = function (bits, padding, outputType) { return function (key, message, outputBits, s) { return methods['kmac' + bits].update(key, message, outputBits, s)[outputType](); }; }; -var createOutputMethods = function createOutputMethods(method, createMethod, bits, padding) { +var createOutputMethods = function (method, createMethod, bits, padding) { for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method[type] = createMethod(bits, padding, type); @@ -148333,7 +156418,7 @@ var createOutputMethods = function createOutputMethods(method, createMethod, bit return method; }; -var createMethod = function createMethod(bits, padding) { +var createMethod = function (bits, padding) { var method = createOutputMethod(bits, padding, 'hex'); method.create = function () { return new Keccak(bits, padding, bits); @@ -148344,7 +156429,7 @@ var createMethod = function createMethod(bits, padding) { return createOutputMethods(method, createOutputMethod, bits, padding); }; -var createShakeMethod = function createShakeMethod(bits, padding) { +var createShakeMethod = function (bits, padding) { var method = createShakeOutputMethod(bits, padding, 'hex'); method.create = function (outputBits) { return new Keccak(bits, padding, outputBits); @@ -148355,7 +156440,7 @@ var createShakeMethod = function createShakeMethod(bits, padding) { return createOutputMethods(method, createShakeOutputMethod, bits, padding); }; -var createCshakeMethod = function createCshakeMethod(bits, padding) { +var createCshakeMethod = function (bits, padding) { var w = CSHAKE_BYTEPAD[bits]; var method = createCshakeOutputMethod(bits, padding, 'hex'); method.create = function (outputBits, n, s) { @@ -148371,7 +156456,7 @@ var createCshakeMethod = function createCshakeMethod(bits, padding) { return createOutputMethods(method, createCshakeOutputMethod, bits, padding); }; -var createKmacMethod = function createKmacMethod(bits, padding) { +var createKmacMethod = function (bits, padding) { var w = CSHAKE_BYTEPAD[bits]; var method = createKmacOutputMethod(bits, padding, 'hex'); method.create = function (key, outputBits, s) { @@ -148383,10 +156468,15 @@ var createKmacMethod = function createKmacMethod(bits, padding) { return createOutputMethods(method, createKmacOutputMethod, bits, padding); }; -var algorithms = [{ name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod }, { name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod }, { name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod }, { name: 'cshake', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createCshakeMethod }, { name: 'kmac', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createKmacMethod }]; +var algorithms = [ + { name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod }, + { name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod }, + { name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod }, + { name: 'cshake', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createCshakeMethod }, + { name: 'kmac', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createKmacMethod } +]; -var methods = {}, - methodNames = []; +var methods = {}, methodNames = []; for (var i = 0; i < algorithms.length; ++i) { var algorithm = algorithms[i]; @@ -148412,7 +156502,7 @@ function Keccak(bits, padding, outputBits) { this.finalized = false; this.block = 0; this.start = 0; - this.blockCount = 1600 - (bits << 1) >> 5; + this.blockCount = (1600 - (bits << 1)) >> 5; this.byteCount = this.blockCount << 2; this.outputBlocks = outputBits >> 5; this.extraBytes = (outputBits & 31) >> 3; @@ -148426,8 +156516,7 @@ Keccak.prototype.update = function (message) { if (this.finalized) { return; } - var notString, - type = typeof message === 'undefined' ? 'undefined' : _typeof(message); + var notString, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { @@ -148444,14 +156533,8 @@ Keccak.prototype.update = function (message) { } notString = true; } - var blocks = this.blocks, - byteCount = this.byteCount, - length = message.length, - blockCount = this.blockCount, - index = 0, - s = this.s, - i, - code; + var blocks = this.blocks, byteCount = this.byteCount, length = message.length, + blockCount = this.blockCount, index = 0, s = this.s, i, code; while (index < length) { if (this.reset) { @@ -148471,18 +156554,18 @@ Keccak.prototype.update = function (message) { if (code < 0x80) { blocks[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 0x800) { - blocks[i >> 2] |= (0xc0 | code >> 6) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code & 0x3f) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { - blocks[i >> 2] |= (0xe0 | code >> 12) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code >> 6 & 0x3f) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code & 0x3f) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else { - code = 0x10000 + ((code & 0x3ff) << 10 | message.charCodeAt(++index) & 0x3ff); - blocks[i >> 2] |= (0xf0 | code >> 18) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code >> 12 & 0x3f) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code >> 6 & 0x3f) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code & 0x3f) << SHIFT[i++ & 3]; + code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); + blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } } } @@ -148503,8 +156586,7 @@ Keccak.prototype.update = function (message) { }; Keccak.prototype.encode = function (x, right) { - var o = x & 255, - n = 1; + var o = x & 255, n = 1; var bytes = [o]; x = x >> 8; o = x & 255; @@ -148524,8 +156606,7 @@ Keccak.prototype.encode = function (x, right) { }; Keccak.prototype.encodeString = function (str) { - var notString, - type = typeof str === 'undefined' ? 'undefined' : _typeof(str); + var notString, type = typeof str; if (type !== 'string') { if (type === 'object') { if (str === null) { @@ -148542,8 +156623,7 @@ Keccak.prototype.encodeString = function (str) { } notString = true; } - var bytes = 0, - length = str.length; + var bytes = 0, length = str.length; if (notString) { bytes = length; } else { @@ -148556,7 +156636,7 @@ Keccak.prototype.encodeString = function (str) { } else if (code < 0xd800 || code >= 0xe000) { bytes += 3; } else { - code = 0x10000 + ((code & 0x3ff) << 10 | str.charCodeAt(++i) & 0x3ff); + code = 0x10000 + (((code & 0x3ff) << 10) | (str.charCodeAt(++i) & 0x3ff)); bytes += 4; } } @@ -148583,10 +156663,7 @@ Keccak.prototype.finalize = function () { return; } this.finalized = true; - var blocks = this.blocks, - i = this.lastByteIndex, - blockCount = this.blockCount, - s = this.s; + var blocks = this.blocks, i = this.lastByteIndex, blockCount = this.blockCount, s = this.s; blocks[i >> 2] |= this.padding[i & 3]; if (this.lastByteIndex === this.byteCount) { blocks[0] = blocks[blockCount]; @@ -148604,18 +156681,16 @@ Keccak.prototype.finalize = function () { Keccak.prototype.toString = Keccak.prototype.hex = function () { this.finalize(); - var blockCount = this.blockCount, - s = this.s, - outputBlocks = this.outputBlocks, - extraBytes = this.extraBytes, - i = 0, - j = 0; - var hex = '', - block; + var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks, + extraBytes = this.extraBytes, i = 0, j = 0; + var hex = '', block; while (j < outputBlocks) { for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) { block = s[i]; - hex += HEX_CHARS[block >> 4 & 0x0F] + HEX_CHARS[block & 0x0F] + HEX_CHARS[block >> 12 & 0x0F] + HEX_CHARS[block >> 8 & 0x0F] + HEX_CHARS[block >> 20 & 0x0F] + HEX_CHARS[block >> 16 & 0x0F] + HEX_CHARS[block >> 28 & 0x0F] + HEX_CHARS[block >> 24 & 0x0F]; + hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F] + + HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F] + + HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F] + + HEX_CHARS[(block >> 28) & 0x0F] + HEX_CHARS[(block >> 24) & 0x0F]; } if (j % blockCount === 0) { f(s); @@ -148624,12 +156699,12 @@ Keccak.prototype.toString = Keccak.prototype.hex = function () { } if (extraBytes) { block = s[i]; - hex += HEX_CHARS[block >> 4 & 0x0F] + HEX_CHARS[block & 0x0F]; + hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F]; if (extraBytes > 1) { - hex += HEX_CHARS[block >> 12 & 0x0F] + HEX_CHARS[block >> 8 & 0x0F]; + hex += HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F]; } if (extraBytes > 2) { - hex += HEX_CHARS[block >> 20 & 0x0F] + HEX_CHARS[block >> 16 & 0x0F]; + hex += HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F]; } } return hex; @@ -148638,16 +156713,12 @@ Keccak.prototype.toString = Keccak.prototype.hex = function () { Keccak.prototype.arrayBuffer = function () { this.finalize(); - var blockCount = this.blockCount, - s = this.s, - outputBlocks = this.outputBlocks, - extraBytes = this.extraBytes, - i = 0, - j = 0; + var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks, + extraBytes = this.extraBytes, i = 0, j = 0; var bytes = this.outputBits >> 3; var buffer; if (extraBytes) { - buffer = new ArrayBuffer(outputBlocks + 1 << 2); + buffer = new ArrayBuffer((outputBlocks + 1) << 2); } else { buffer = new ArrayBuffer(bytes); } @@ -148672,23 +156743,17 @@ Keccak.prototype.buffer = Keccak.prototype.arrayBuffer; Keccak.prototype.digest = Keccak.prototype.array = function () { this.finalize(); - var blockCount = this.blockCount, - s = this.s, - outputBlocks = this.outputBlocks, - extraBytes = this.extraBytes, - i = 0, - j = 0; - var array = [], - offset, - block; + var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks, + extraBytes = this.extraBytes, i = 0, j = 0; + var array = [], offset, block; while (j < outputBlocks) { for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) { offset = j << 2; block = s[i]; array[offset] = block & 0xFF; - array[offset + 1] = block >> 8 & 0xFF; - array[offset + 2] = block >> 16 & 0xFF; - array[offset + 3] = block >> 24 & 0xFF; + array[offset + 1] = (block >> 8) & 0xFF; + array[offset + 2] = (block >> 16) & 0xFF; + array[offset + 3] = (block >> 24) & 0xFF; } if (j % blockCount === 0) { f(s); @@ -148699,10 +156764,10 @@ Keccak.prototype.digest = Keccak.prototype.array = function () { block = s[i]; array[offset] = block & 0xFF; if (extraBytes > 1) { - array[offset + 1] = block >> 8 & 0xFF; + array[offset + 1] = (block >> 8) & 0xFF; } if (extraBytes > 2) { - array[offset + 2] = block >> 16 & 0xFF; + array[offset + 2] = (block >> 16) & 0xFF; } } return array; @@ -148719,8 +156784,11 @@ Kmac.prototype.finalize = function () { return Keccak.prototype.finalize.call(this); }; -var f = function f(s) { - var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33, b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49; +var f = function (s) { + var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, + b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17, + b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33, + b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49; for (n = 0; n < 48; n += 2) { c0 = s[0] ^ s[10] ^ s[20] ^ s[30] ^ s[40]; c1 = s[1] ^ s[11] ^ s[21] ^ s[31] ^ s[41]; @@ -148733,8 +156801,8 @@ var f = function f(s) { c8 = s[8] ^ s[18] ^ s[28] ^ s[38] ^ s[48]; c9 = s[9] ^ s[19] ^ s[29] ^ s[39] ^ s[49]; - h = c8 ^ (c2 << 1 | c3 >>> 31); - l = c9 ^ (c3 << 1 | c2 >>> 31); + h = c8 ^ ((c2 << 1) | (c3 >>> 31)); + l = c9 ^ ((c3 << 1) | (c2 >>> 31)); s[0] ^= h; s[1] ^= l; s[10] ^= h; @@ -148745,8 +156813,8 @@ var f = function f(s) { s[31] ^= l; s[40] ^= h; s[41] ^= l; - h = c0 ^ (c4 << 1 | c5 >>> 31); - l = c1 ^ (c5 << 1 | c4 >>> 31); + h = c0 ^ ((c4 << 1) | (c5 >>> 31)); + l = c1 ^ ((c5 << 1) | (c4 >>> 31)); s[2] ^= h; s[3] ^= l; s[12] ^= h; @@ -148757,8 +156825,8 @@ var f = function f(s) { s[33] ^= l; s[42] ^= h; s[43] ^= l; - h = c2 ^ (c6 << 1 | c7 >>> 31); - l = c3 ^ (c7 << 1 | c6 >>> 31); + h = c2 ^ ((c6 << 1) | (c7 >>> 31)); + l = c3 ^ ((c7 << 1) | (c6 >>> 31)); s[4] ^= h; s[5] ^= l; s[14] ^= h; @@ -148769,8 +156837,8 @@ var f = function f(s) { s[35] ^= l; s[44] ^= h; s[45] ^= l; - h = c4 ^ (c8 << 1 | c9 >>> 31); - l = c5 ^ (c9 << 1 | c8 >>> 31); + h = c4 ^ ((c8 << 1) | (c9 >>> 31)); + l = c5 ^ ((c9 << 1) | (c8 >>> 31)); s[6] ^= h; s[7] ^= l; s[16] ^= h; @@ -148781,8 +156849,8 @@ var f = function f(s) { s[37] ^= l; s[46] ^= h; s[47] ^= l; - h = c6 ^ (c0 << 1 | c1 >>> 31); - l = c7 ^ (c1 << 1 | c0 >>> 31); + h = c6 ^ ((c0 << 1) | (c1 >>> 31)); + l = c7 ^ ((c1 << 1) | (c0 >>> 31)); s[8] ^= h; s[9] ^= l; s[18] ^= h; @@ -148796,105 +156864,105 @@ var f = function f(s) { b0 = s[0]; b1 = s[1]; - b32 = s[11] << 4 | s[10] >>> 28; - b33 = s[10] << 4 | s[11] >>> 28; - b14 = s[20] << 3 | s[21] >>> 29; - b15 = s[21] << 3 | s[20] >>> 29; - b46 = s[31] << 9 | s[30] >>> 23; - b47 = s[30] << 9 | s[31] >>> 23; - b28 = s[40] << 18 | s[41] >>> 14; - b29 = s[41] << 18 | s[40] >>> 14; - b20 = s[2] << 1 | s[3] >>> 31; - b21 = s[3] << 1 | s[2] >>> 31; - b2 = s[13] << 12 | s[12] >>> 20; - b3 = s[12] << 12 | s[13] >>> 20; - b34 = s[22] << 10 | s[23] >>> 22; - b35 = s[23] << 10 | s[22] >>> 22; - b16 = s[33] << 13 | s[32] >>> 19; - b17 = s[32] << 13 | s[33] >>> 19; - b48 = s[42] << 2 | s[43] >>> 30; - b49 = s[43] << 2 | s[42] >>> 30; - b40 = s[5] << 30 | s[4] >>> 2; - b41 = s[4] << 30 | s[5] >>> 2; - b22 = s[14] << 6 | s[15] >>> 26; - b23 = s[15] << 6 | s[14] >>> 26; - b4 = s[25] << 11 | s[24] >>> 21; - b5 = s[24] << 11 | s[25] >>> 21; - b36 = s[34] << 15 | s[35] >>> 17; - b37 = s[35] << 15 | s[34] >>> 17; - b18 = s[45] << 29 | s[44] >>> 3; - b19 = s[44] << 29 | s[45] >>> 3; - b10 = s[6] << 28 | s[7] >>> 4; - b11 = s[7] << 28 | s[6] >>> 4; - b42 = s[17] << 23 | s[16] >>> 9; - b43 = s[16] << 23 | s[17] >>> 9; - b24 = s[26] << 25 | s[27] >>> 7; - b25 = s[27] << 25 | s[26] >>> 7; - b6 = s[36] << 21 | s[37] >>> 11; - b7 = s[37] << 21 | s[36] >>> 11; - b38 = s[47] << 24 | s[46] >>> 8; - b39 = s[46] << 24 | s[47] >>> 8; - b30 = s[8] << 27 | s[9] >>> 5; - b31 = s[9] << 27 | s[8] >>> 5; - b12 = s[18] << 20 | s[19] >>> 12; - b13 = s[19] << 20 | s[18] >>> 12; - b44 = s[29] << 7 | s[28] >>> 25; - b45 = s[28] << 7 | s[29] >>> 25; - b26 = s[38] << 8 | s[39] >>> 24; - b27 = s[39] << 8 | s[38] >>> 24; - b8 = s[48] << 14 | s[49] >>> 18; - b9 = s[49] << 14 | s[48] >>> 18; - - s[0] = b0 ^ ~b2 & b4; - s[1] = b1 ^ ~b3 & b5; - s[10] = b10 ^ ~b12 & b14; - s[11] = b11 ^ ~b13 & b15; - s[20] = b20 ^ ~b22 & b24; - s[21] = b21 ^ ~b23 & b25; - s[30] = b30 ^ ~b32 & b34; - s[31] = b31 ^ ~b33 & b35; - s[40] = b40 ^ ~b42 & b44; - s[41] = b41 ^ ~b43 & b45; - s[2] = b2 ^ ~b4 & b6; - s[3] = b3 ^ ~b5 & b7; - s[12] = b12 ^ ~b14 & b16; - s[13] = b13 ^ ~b15 & b17; - s[22] = b22 ^ ~b24 & b26; - s[23] = b23 ^ ~b25 & b27; - s[32] = b32 ^ ~b34 & b36; - s[33] = b33 ^ ~b35 & b37; - s[42] = b42 ^ ~b44 & b46; - s[43] = b43 ^ ~b45 & b47; - s[4] = b4 ^ ~b6 & b8; - s[5] = b5 ^ ~b7 & b9; - s[14] = b14 ^ ~b16 & b18; - s[15] = b15 ^ ~b17 & b19; - s[24] = b24 ^ ~b26 & b28; - s[25] = b25 ^ ~b27 & b29; - s[34] = b34 ^ ~b36 & b38; - s[35] = b35 ^ ~b37 & b39; - s[44] = b44 ^ ~b46 & b48; - s[45] = b45 ^ ~b47 & b49; - s[6] = b6 ^ ~b8 & b0; - s[7] = b7 ^ ~b9 & b1; - s[16] = b16 ^ ~b18 & b10; - s[17] = b17 ^ ~b19 & b11; - s[26] = b26 ^ ~b28 & b20; - s[27] = b27 ^ ~b29 & b21; - s[36] = b36 ^ ~b38 & b30; - s[37] = b37 ^ ~b39 & b31; - s[46] = b46 ^ ~b48 & b40; - s[47] = b47 ^ ~b49 & b41; - s[8] = b8 ^ ~b0 & b2; - s[9] = b9 ^ ~b1 & b3; - s[18] = b18 ^ ~b10 & b12; - s[19] = b19 ^ ~b11 & b13; - s[28] = b28 ^ ~b20 & b22; - s[29] = b29 ^ ~b21 & b23; - s[38] = b38 ^ ~b30 & b32; - s[39] = b39 ^ ~b31 & b33; - s[48] = b48 ^ ~b40 & b42; - s[49] = b49 ^ ~b41 & b43; + b32 = (s[11] << 4) | (s[10] >>> 28); + b33 = (s[10] << 4) | (s[11] >>> 28); + b14 = (s[20] << 3) | (s[21] >>> 29); + b15 = (s[21] << 3) | (s[20] >>> 29); + b46 = (s[31] << 9) | (s[30] >>> 23); + b47 = (s[30] << 9) | (s[31] >>> 23); + b28 = (s[40] << 18) | (s[41] >>> 14); + b29 = (s[41] << 18) | (s[40] >>> 14); + b20 = (s[2] << 1) | (s[3] >>> 31); + b21 = (s[3] << 1) | (s[2] >>> 31); + b2 = (s[13] << 12) | (s[12] >>> 20); + b3 = (s[12] << 12) | (s[13] >>> 20); + b34 = (s[22] << 10) | (s[23] >>> 22); + b35 = (s[23] << 10) | (s[22] >>> 22); + b16 = (s[33] << 13) | (s[32] >>> 19); + b17 = (s[32] << 13) | (s[33] >>> 19); + b48 = (s[42] << 2) | (s[43] >>> 30); + b49 = (s[43] << 2) | (s[42] >>> 30); + b40 = (s[5] << 30) | (s[4] >>> 2); + b41 = (s[4] << 30) | (s[5] >>> 2); + b22 = (s[14] << 6) | (s[15] >>> 26); + b23 = (s[15] << 6) | (s[14] >>> 26); + b4 = (s[25] << 11) | (s[24] >>> 21); + b5 = (s[24] << 11) | (s[25] >>> 21); + b36 = (s[34] << 15) | (s[35] >>> 17); + b37 = (s[35] << 15) | (s[34] >>> 17); + b18 = (s[45] << 29) | (s[44] >>> 3); + b19 = (s[44] << 29) | (s[45] >>> 3); + b10 = (s[6] << 28) | (s[7] >>> 4); + b11 = (s[7] << 28) | (s[6] >>> 4); + b42 = (s[17] << 23) | (s[16] >>> 9); + b43 = (s[16] << 23) | (s[17] >>> 9); + b24 = (s[26] << 25) | (s[27] >>> 7); + b25 = (s[27] << 25) | (s[26] >>> 7); + b6 = (s[36] << 21) | (s[37] >>> 11); + b7 = (s[37] << 21) | (s[36] >>> 11); + b38 = (s[47] << 24) | (s[46] >>> 8); + b39 = (s[46] << 24) | (s[47] >>> 8); + b30 = (s[8] << 27) | (s[9] >>> 5); + b31 = (s[9] << 27) | (s[8] >>> 5); + b12 = (s[18] << 20) | (s[19] >>> 12); + b13 = (s[19] << 20) | (s[18] >>> 12); + b44 = (s[29] << 7) | (s[28] >>> 25); + b45 = (s[28] << 7) | (s[29] >>> 25); + b26 = (s[38] << 8) | (s[39] >>> 24); + b27 = (s[39] << 8) | (s[38] >>> 24); + b8 = (s[48] << 14) | (s[49] >>> 18); + b9 = (s[49] << 14) | (s[48] >>> 18); + + s[0] = b0 ^ (~b2 & b4); + s[1] = b1 ^ (~b3 & b5); + s[10] = b10 ^ (~b12 & b14); + s[11] = b11 ^ (~b13 & b15); + s[20] = b20 ^ (~b22 & b24); + s[21] = b21 ^ (~b23 & b25); + s[30] = b30 ^ (~b32 & b34); + s[31] = b31 ^ (~b33 & b35); + s[40] = b40 ^ (~b42 & b44); + s[41] = b41 ^ (~b43 & b45); + s[2] = b2 ^ (~b4 & b6); + s[3] = b3 ^ (~b5 & b7); + s[12] = b12 ^ (~b14 & b16); + s[13] = b13 ^ (~b15 & b17); + s[22] = b22 ^ (~b24 & b26); + s[23] = b23 ^ (~b25 & b27); + s[32] = b32 ^ (~b34 & b36); + s[33] = b33 ^ (~b35 & b37); + s[42] = b42 ^ (~b44 & b46); + s[43] = b43 ^ (~b45 & b47); + s[4] = b4 ^ (~b6 & b8); + s[5] = b5 ^ (~b7 & b9); + s[14] = b14 ^ (~b16 & b18); + s[15] = b15 ^ (~b17 & b19); + s[24] = b24 ^ (~b26 & b28); + s[25] = b25 ^ (~b27 & b29); + s[34] = b34 ^ (~b36 & b38); + s[35] = b35 ^ (~b37 & b39); + s[44] = b44 ^ (~b46 & b48); + s[45] = b45 ^ (~b47 & b49); + s[6] = b6 ^ (~b8 & b0); + s[7] = b7 ^ (~b9 & b1); + s[16] = b16 ^ (~b18 & b10); + s[17] = b17 ^ (~b19 & b11); + s[26] = b26 ^ (~b28 & b20); + s[27] = b27 ^ (~b29 & b21); + s[36] = b36 ^ (~b38 & b30); + s[37] = b37 ^ (~b39 & b31); + s[46] = b46 ^ (~b48 & b40); + s[47] = b47 ^ (~b49 & b41); + s[8] = b8 ^ (~b0 & b2); + s[9] = b9 ^ (~b1 & b3); + s[18] = b18 ^ (~b10 & b12); + s[19] = b19 ^ (~b11 & b13); + s[28] = b28 ^ (~b20 & b22); + s[29] = b29 ^ (~b21 & b23); + s[38] = b38 ^ (~b30 & b32); + s[39] = b39 ^ (~b31 & b33); + s[48] = b48 ^ (~b40 & b42); + s[49] = b49 ^ (~b41 & b43); s[0] ^= RC[n]; s[1] ^= RC[n + 1]; @@ -148904,51 +156972,47 @@ var f = function f(s) { module.exports = methods; }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"_process":911}],999:[function(require,module,exports){ -'use strict'; - +},{"_process":925}],1013:[function(require,module,exports){ var jsSHA = require('jssha/src/sha256'); var Blake256 = require('./blake256'); -var _keccak = require('./sha3')['keccak256']; +var keccak256 = require('./sha3')['keccak256']; -function numberToHex(number) { +function numberToHex (number) { var hex = Math.round(number).toString(16); - if (hex.length === 1) { + if(hex.length === 1) { hex = '0' + hex; } return hex; } module.exports = { - toHex: function toHex(arrayOfBytes) { + toHex: function (arrayOfBytes) { var hex = ''; - for (var i = 0; i < arrayOfBytes.length; i++) { + for(var i = 0; i < arrayOfBytes.length; i++) { hex += numberToHex(arrayOfBytes[i]); } return hex; }, - sha256: function sha256(hexString) { + sha256: function (hexString) { var sha = new jsSHA('SHA-256', 'HEX'); sha.update(hexString); return sha.getHash('HEX'); }, - sha256Checksum: function sha256Checksum(payload) { + sha256Checksum: function (payload) { return this.sha256(this.sha256(payload)).substr(0, 8); }, - blake256: function blake256(hexString) { + blake256: function (hexString) { return new Blake256().update(hexString, 'hex').digest('hex'); }, - blake256Checksum: function blake256Checksum(payload) { + blake256Checksum: function (payload) { return this.blake256(this.blake256(payload)).substr(0, 8); }, - keccak256: function keccak256(hexString) { - return _keccak(hexString); + keccak256: function (hexString) { + return keccak256(hexString); } }; -},{"./blake256":997,"./sha3":998,"jssha/src/sha256":886}],1000:[function(require,module,exports){ -'use strict'; - +},{"./blake256":1011,"./sha3":1012,"jssha/src/sha256":900}],1014:[function(require,module,exports){ var XRPValidator = require('./ripple_validator'); var ETHValidator = require('./ethereum_validator'); @@ -148956,165 +157020,166 @@ var ETHValidator = require('./ethereum_validator'); var CURRENCIES = [{ name: 'bitcoin', symbol: 'btc', - addressTypes: { prod: ['00', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['00', '05'], testnet: ['6f', 'c4']} +},{ name: 'bitcoincash', symbol: 'bch', - addressTypes: { prod: ['00', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['00', '05'], testnet: ['6f', 'c4']} +},{ name: 'litecoin', symbol: 'ltc', - addressTypes: { prod: ['30', '05', '32'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['30', '05', '32'], testnet: ['6f', 'c4']} +},{ name: 'peercoin', symbol: 'ppc', - addressTypes: { prod: ['37', '75'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['37', '75'], testnet: ['6f', 'c4']} +},{ name: 'dogecoin', symbol: 'doge', - addressTypes: { prod: ['1e', '16'], testnet: ['71', 'c4'] } -}, { + addressTypes: {prod: ['1e', '16'], testnet: ['71', 'c4']} +},{ name: 'beavercoin', symbol: 'bvc', - addressTypes: { prod: ['19', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['19', '05'], testnet: ['6f', 'c4']} +},{ name: 'freicoin', symbol: 'frc', - addressTypes: { prod: ['00', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['00', '05'], testnet: ['6f', 'c4']} +},{ name: 'protoshares', symbol: 'pts', - addressTypes: { prod: ['38', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['38', '05'], testnet: ['6f', 'c4']} +},{ name: 'megacoin', symbol: 'mec', - addressTypes: { prod: ['32', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['32', '05'], testnet: ['6f', 'c4']} +},{ name: 'primecoin', symbol: 'xpm', - addressTypes: { prod: ['17', '53'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['17', '53'], testnet: ['6f', 'c4']} +},{ name: 'auroracoin', symbol: 'aur', - addressTypes: { prod: ['17', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['17', '05'], testnet: ['6f', 'c4']} +},{ name: 'namecoin', symbol: 'nmc', - addressTypes: { prod: ['34'], testnet: [] } -}, { + addressTypes: {prod: ['34'], testnet: []} +},{ name: 'biocoin', symbol: 'bio', - addressTypes: { prod: ['19', '14'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['19', '14'], testnet: ['6f', 'c4']} +},{ name: 'garlicoin', symbol: 'grlc', - addressTypes: { prod: ['26', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['26', '05'], testnet: ['6f', 'c4']} +},{ name: 'vertcoin', symbol: 'vtc', - addressTypes: { prod: ['0x', '47'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['0x', '47'], testnet: ['6f', 'c4']} +},{ name: 'bitcoingold', symbol: 'btg', - addressTypes: { prod: ['26', '17'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['26', '17'], testnet: ['6f', 'c4']} +},{ name: 'komodo', symbol: 'kmd', - addressTypes: { prod: ['3c', '55'], testnet: ['0', '5'] } -}, { + addressTypes: {prod: ['3c', '55'], testnet: ['0','5']} +},{ name: 'bitcoinz', symbol: 'btcz', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'bitcoinprivate', symbol: 'btcp', expectedLength: 26, - addressTypes: { prod: ['1325', '13af'], testnet: ['1957', '19e0'] } -}, { + addressTypes: {prod: ['1325','13af'], testnet: ['1957', '19e0']} +},{ name: 'hush', symbol: 'hush', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'snowgem', symbol: 'sng', expectedLength: 26, - addressTypes: { prod: ['1c28', '1c2d'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1c28','1c2d'], testnet: ['1d25', '1cba']} +},{ name: 'zcash', symbol: 'zec', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'zclassic', symbol: 'zcl', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'zencash', symbol: 'zen', expectedLength: 26, - addressTypes: { prod: ['2089', '2096'], testnet: ['2092', '2098'] } -}, { + addressTypes: {prod: ['2089','2096'], testnet: ['2092','2098']} +},{ name: 'votecoin', symbol: 'vot', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'decred', symbol: 'dcr', - addressTypes: { prod: ['073f', '071a'], testnet: ['0f21', '0efc'] }, + addressTypes: {prod: ['073f', '071a'], testnet: ['0f21', '0efc']}, hashFunction: 'blake256', expectedLength: 26 -}, { +},{ name: 'digibyte', symbol: 'dgb', - addressTypes: { prod: ['1e'], testnet: [] } -}, { + addressTypes: {prod: ['1e'], testnet: []}, +},{ name: 'ethereum', symbol: 'eth', - validator: ETHValidator -}, { + validator: ETHValidator, +},{ name: 'etherzero', symbol: 'etz', - validator: ETHValidator -}, { + validator: ETHValidator, +},{ name: 'ethereumclassic', symbol: 'etc', - validator: ETHValidator -}, { + validator: ETHValidator, +},{ name: 'callisto', symbol: 'clo', - validator: ETHValidator -}, { + validator: ETHValidator, +},{ name: 'ripple', symbol: 'xrp', - validator: XRPValidator -}, { + validator: XRPValidator, +},{ name: 'dash', symbol: 'dash', - addressTypes: { prod: ['4c', '10'], testnet: ['8c', '13'] } -}, { + addressTypes: {prod: ['4c', '10'], testnet: ['8c', '13']} +},{ name: 'neo', symbol: 'neo', - addressTypes: { prod: ['17'], testnet: [] } -}, { + addressTypes: {prod: ['17'], testnet: []} +},{ name: 'neogas', symbol: 'gas', - addressTypes: { prod: ['17'], testnet: [] } -}, { + addressTypes: {prod: ['17'], testnet: []} +},{ name: 'qtum', symbol: 'qtum', - addressTypes: { prod: ['3a', '32'], testnet: ['6f', 'c4'] } + addressTypes: {prod: ['3a', '32'], testnet: ['6f', 'c4']} }]; + module.exports = { - getByNameOrSymbol: function getByNameOrSymbol(currencyNameOrSymbol) { + getByNameOrSymbol: function (currencyNameOrSymbol) { var nameOrSymbol = currencyNameOrSymbol.toLowerCase(); for (var i = 0; i < CURRENCIES.length; i++) { var currency = CURRENCIES[i]; - if (currency.name === nameOrSymbol || currency.symbol === nameOrSymbol) { + if(currency.name === nameOrSymbol || currency.symbol === nameOrSymbol) { return currency; } } @@ -149122,13 +157187,11 @@ module.exports = { } }; -},{"./ethereum_validator":1001,"./ripple_validator":1002}],1001:[function(require,module,exports){ -'use strict'; - +},{"./ethereum_validator":1015,"./ripple_validator":1016}],1015:[function(require,module,exports){ var cryptoUtils = require('./crypto/utils'); module.exports = { - isValidAddress: function isValidAddress(address) { + isValidAddress: function (address) { if (!/^0x[0-9a-fA-F]{40}$/.test(address)) { // Check if it has the basic requirements of an address return false; @@ -149142,15 +157205,16 @@ module.exports = { // Otherwise check each case return this.verifyChecksum(address); }, - verifyChecksum: function verifyChecksum(address) { + verifyChecksum: function (address) { // Check each case - address = address.replace('0x', ''); + address = address.replace('0x',''); var addressHash = cryptoUtils.keccak256(address.toLowerCase()); - for (var i = 0; i < 40; i++) { + 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]) { + if ((parseInt(addressHash[i], 16) > 7 && address[i].toUpperCase() !== address[i]) || + (parseInt(addressHash[i], 16) <= 7 && address[i].toLowerCase() !== address[i])) { return false; } } @@ -149159,9 +157223,7 @@ module.exports = { } }; -},{"./crypto/utils":999}],1002:[function(require,module,exports){ -'use strict'; - +},{"./crypto/utils":1013}],1016:[function(require,module,exports){ var cryptoUtils = require('./crypto/utils'); var baseX = require('base-x'); @@ -149174,7 +157236,7 @@ module.exports = { /** * ripple address validation */ - isValidAddress: function isValidAddress(address) { + isValidAddress: function (address) { if (regexp.test(address)) { return this.verifyChecksum(address); } @@ -149182,18 +157244,16 @@ module.exports = { return false; }, - verifyChecksum: function verifyChecksum(address) { + verifyChecksum: function (address) { var bytes = codec.decode(address); var computedChecksum = cryptoUtils.sha256Checksum(cryptoUtils.toHex(bytes.slice(0, -4))); var checksum = cryptoUtils.toHex(bytes.slice(-4)); - return computedChecksum === checksum; + return computedChecksum === checksum } }; -},{"./crypto/utils":999,"base-x":354}],1003:[function(require,module,exports){ -'use strict'; - +},{"./crypto/utils":1013,"base-x":368}],1017:[function(require,module,exports){ var base58 = require('./crypto/base58'); var cryptoUtils = require('./crypto/utils'); var currencies = require('./currencies'); @@ -149262,8 +157322,8 @@ function validate(address, currencyNameOrSymbol, networkType) { return false; } - if (networkType === 'prod' || networkType === 'testnet') { - correctAddressTypes = currency.addressTypes[networkType]; + if (networkType === 'prod' || networkType === 'testnet'){ + correctAddressTypes = currency.addressTypes[networkType] } else { correctAddressTypes = currency.addressTypes.prod.concat(currency.addressTypes.testnet); } @@ -149274,478 +157334,478 @@ function validate(address, currencyNameOrSymbol, networkType) { module.exports = { getAddressType: getAddressType, checksum: getChecksum, - validate: validate + validate: validate, }; -},{"./crypto/base58":996,"./crypto/utils":999,"./currencies":1000}],1004:[function(require,module,exports){ -'use strict'; - -(function (self) { +},{"./crypto/base58":1010,"./crypto/utils":1013,"./currencies":1014}],1018:[function(require,module,exports){ +(function(self) { 'use strict'; if (self.fetch) { - return; + return } var support = { searchParams: 'URLSearchParams' in self, iterable: 'Symbol' in self && 'iterator' in Symbol, - blob: 'FileReader' in self && 'Blob' in self && function () { + blob: 'FileReader' in self && 'Blob' in self && (function() { try { - new Blob(); - return true; - } catch (e) { - return false; + new Blob() + return true + } catch(e) { + return false } - }(), + })(), formData: 'FormData' in self, arrayBuffer: 'ArrayBuffer' in self - }; + } if (support.arrayBuffer) { - var viewClasses = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]']; + var viewClasses = [ + '[object Int8Array]', + '[object Uint8Array]', + '[object Uint8ClampedArray]', + '[object Int16Array]', + '[object Uint16Array]', + '[object Int32Array]', + '[object Uint32Array]', + '[object Float32Array]', + '[object Float64Array]' + ] - var isDataView = function isDataView(obj) { - return obj && DataView.prototype.isPrototypeOf(obj); - }; + var isDataView = function(obj) { + return obj && DataView.prototype.isPrototypeOf(obj) + } - var isArrayBufferView = ArrayBuffer.isView || function (obj) { - return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1; - }; + var isArrayBufferView = ArrayBuffer.isView || function(obj) { + return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 + } } function normalizeName(name) { if (typeof name !== 'string') { - name = String(name); + name = String(name) } if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) { - throw new TypeError('Invalid character in header field name'); + throw new TypeError('Invalid character in header field name') } - return name.toLowerCase(); + return name.toLowerCase() } function normalizeValue(value) { if (typeof value !== 'string') { - value = String(value); + value = String(value) } - return value; + return value } // Build a destructive iterator for the value list function iteratorFor(items) { var iterator = { - next: function next() { - var value = items.shift(); - return { done: value === undefined, value: value }; + next: function() { + var value = items.shift() + return {done: value === undefined, value: value} } - }; + } if (support.iterable) { - iterator[Symbol.iterator] = function () { - return iterator; - }; + iterator[Symbol.iterator] = function() { + return iterator + } } - return iterator; + return iterator } function Headers(headers) { - this.map = {}; + this.map = {} if (headers instanceof Headers) { - headers.forEach(function (value, name) { - this.append(name, value); - }, this); + headers.forEach(function(value, name) { + this.append(name, value) + }, this) } else if (Array.isArray(headers)) { - headers.forEach(function (header) { - this.append(header[0], header[1]); - }, this); + headers.forEach(function(header) { + this.append(header[0], header[1]) + }, this) } else if (headers) { - Object.getOwnPropertyNames(headers).forEach(function (name) { - this.append(name, headers[name]); - }, this); + Object.getOwnPropertyNames(headers).forEach(function(name) { + this.append(name, headers[name]) + }, this) } } - Headers.prototype.append = function (name, value) { - name = normalizeName(name); - value = normalizeValue(value); - var oldValue = this.map[name]; - this.map[name] = oldValue ? oldValue + ',' + value : value; - }; + Headers.prototype.append = function(name, value) { + name = normalizeName(name) + value = normalizeValue(value) + var oldValue = this.map[name] + this.map[name] = oldValue ? oldValue+','+value : value + } - Headers.prototype['delete'] = function (name) { - delete this.map[normalizeName(name)]; - }; + Headers.prototype['delete'] = function(name) { + delete this.map[normalizeName(name)] + } - Headers.prototype.get = function (name) { - name = normalizeName(name); - return this.has(name) ? this.map[name] : null; - }; + Headers.prototype.get = function(name) { + name = normalizeName(name) + return this.has(name) ? this.map[name] : null + } - Headers.prototype.has = function (name) { - return this.map.hasOwnProperty(normalizeName(name)); - }; + Headers.prototype.has = function(name) { + return this.map.hasOwnProperty(normalizeName(name)) + } - Headers.prototype.set = function (name, value) { - this.map[normalizeName(name)] = normalizeValue(value); - }; + Headers.prototype.set = function(name, value) { + this.map[normalizeName(name)] = normalizeValue(value) + } - Headers.prototype.forEach = function (callback, thisArg) { + Headers.prototype.forEach = function(callback, thisArg) { for (var name in this.map) { if (this.map.hasOwnProperty(name)) { - callback.call(thisArg, this.map[name], name, this); + callback.call(thisArg, this.map[name], name, this) } } - }; + } - Headers.prototype.keys = function () { - var items = []; - this.forEach(function (value, name) { - items.push(name); - }); - return iteratorFor(items); - }; + Headers.prototype.keys = function() { + var items = [] + this.forEach(function(value, name) { items.push(name) }) + return iteratorFor(items) + } - Headers.prototype.values = function () { - var items = []; - this.forEach(function (value) { - items.push(value); - }); - return iteratorFor(items); - }; + Headers.prototype.values = function() { + var items = [] + this.forEach(function(value) { items.push(value) }) + return iteratorFor(items) + } - Headers.prototype.entries = function () { - var items = []; - this.forEach(function (value, name) { - items.push([name, value]); - }); - return iteratorFor(items); - }; + Headers.prototype.entries = function() { + var items = [] + this.forEach(function(value, name) { items.push([name, value]) }) + return iteratorFor(items) + } if (support.iterable) { - Headers.prototype[Symbol.iterator] = Headers.prototype.entries; + Headers.prototype[Symbol.iterator] = Headers.prototype.entries } function consumed(body) { if (body.bodyUsed) { - return Promise.reject(new TypeError('Already read')); + return Promise.reject(new TypeError('Already read')) } - body.bodyUsed = true; + body.bodyUsed = true } function fileReaderReady(reader) { - return new Promise(function (resolve, reject) { - reader.onload = function () { - resolve(reader.result); - }; - reader.onerror = function () { - reject(reader.error); - }; - }); + return new Promise(function(resolve, reject) { + reader.onload = function() { + resolve(reader.result) + } + reader.onerror = function() { + reject(reader.error) + } + }) } function readBlobAsArrayBuffer(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsArrayBuffer(blob); - return promise; + var reader = new FileReader() + var promise = fileReaderReady(reader) + reader.readAsArrayBuffer(blob) + return promise } function readBlobAsText(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsText(blob); - return promise; + var reader = new FileReader() + var promise = fileReaderReady(reader) + reader.readAsText(blob) + return promise } function readArrayBufferAsText(buf) { - var view = new Uint8Array(buf); - var chars = new Array(view.length); + var view = new Uint8Array(buf) + var chars = new Array(view.length) for (var i = 0; i < view.length; i++) { - chars[i] = String.fromCharCode(view[i]); + chars[i] = String.fromCharCode(view[i]) } - return chars.join(''); + return chars.join('') } function bufferClone(buf) { if (buf.slice) { - return buf.slice(0); + return buf.slice(0) } else { - var view = new Uint8Array(buf.byteLength); - view.set(new Uint8Array(buf)); - return view.buffer; + var view = new Uint8Array(buf.byteLength) + view.set(new Uint8Array(buf)) + return view.buffer } } function Body() { - this.bodyUsed = false; + this.bodyUsed = false - this._initBody = function (body) { - this._bodyInit = body; + this._initBody = function(body) { + this._bodyInit = body if (!body) { - this._bodyText = ''; + this._bodyText = '' } else if (typeof body === 'string') { - this._bodyText = body; + this._bodyText = body } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { - this._bodyBlob = body; + this._bodyBlob = body } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { - this._bodyFormData = body; + this._bodyFormData = body } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this._bodyText = body.toString(); + this._bodyText = body.toString() } else if (support.arrayBuffer && support.blob && isDataView(body)) { - this._bodyArrayBuffer = bufferClone(body.buffer); + this._bodyArrayBuffer = bufferClone(body.buffer) // IE 10-11 can't handle a DataView body. - this._bodyInit = new Blob([this._bodyArrayBuffer]); + this._bodyInit = new Blob([this._bodyArrayBuffer]) } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { - this._bodyArrayBuffer = bufferClone(body); + this._bodyArrayBuffer = bufferClone(body) } else { - throw new Error('unsupported BodyInit type'); + throw new Error('unsupported BodyInit type') } if (!this.headers.get('content-type')) { if (typeof body === 'string') { - this.headers.set('content-type', 'text/plain;charset=UTF-8'); + this.headers.set('content-type', 'text/plain;charset=UTF-8') } else if (this._bodyBlob && this._bodyBlob.type) { - this.headers.set('content-type', this._bodyBlob.type); + this.headers.set('content-type', this._bodyBlob.type) } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); + this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8') } } - }; + } if (support.blob) { - this.blob = function () { - var rejected = consumed(this); + this.blob = function() { + var rejected = consumed(this) if (rejected) { - return rejected; + return rejected } if (this._bodyBlob) { - return Promise.resolve(this._bodyBlob); + return Promise.resolve(this._bodyBlob) } else if (this._bodyArrayBuffer) { - return Promise.resolve(new Blob([this._bodyArrayBuffer])); + return Promise.resolve(new Blob([this._bodyArrayBuffer])) } else if (this._bodyFormData) { - throw new Error('could not read FormData body as blob'); + throw new Error('could not read FormData body as blob') } else { - return Promise.resolve(new Blob([this._bodyText])); + return Promise.resolve(new Blob([this._bodyText])) } - }; + } - this.arrayBuffer = function () { + this.arrayBuffer = function() { if (this._bodyArrayBuffer) { - return consumed(this) || Promise.resolve(this._bodyArrayBuffer); + return consumed(this) || Promise.resolve(this._bodyArrayBuffer) } else { - return this.blob().then(readBlobAsArrayBuffer); + return this.blob().then(readBlobAsArrayBuffer) } - }; + } } - this.text = function () { - var rejected = consumed(this); + this.text = function() { + var rejected = consumed(this) if (rejected) { - return rejected; + return rejected } if (this._bodyBlob) { - return readBlobAsText(this._bodyBlob); + return readBlobAsText(this._bodyBlob) } else if (this._bodyArrayBuffer) { - return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); + return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)) } else if (this._bodyFormData) { - throw new Error('could not read FormData body as text'); + throw new Error('could not read FormData body as text') } else { - return Promise.resolve(this._bodyText); + return Promise.resolve(this._bodyText) } - }; + } if (support.formData) { - this.formData = function () { - return this.text().then(decode); - }; + this.formData = function() { + return this.text().then(decode) + } } - this.json = function () { - return this.text().then(JSON.parse); - }; + this.json = function() { + return this.text().then(JSON.parse) + } - return this; + return this } // HTTP methods whose capitalization should be normalized - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'] function normalizeMethod(method) { - var upcased = method.toUpperCase(); - return methods.indexOf(upcased) > -1 ? upcased : method; + var upcased = method.toUpperCase() + return (methods.indexOf(upcased) > -1) ? upcased : method } function Request(input, options) { - options = options || {}; - var body = options.body; + options = options || {} + var body = options.body if (input instanceof Request) { if (input.bodyUsed) { - throw new TypeError('Already read'); + throw new TypeError('Already read') } - this.url = input.url; - this.credentials = input.credentials; + this.url = input.url + this.credentials = input.credentials if (!options.headers) { - this.headers = new Headers(input.headers); + this.headers = new Headers(input.headers) } - this.method = input.method; - this.mode = input.mode; + this.method = input.method + this.mode = input.mode if (!body && input._bodyInit != null) { - body = input._bodyInit; - input.bodyUsed = true; + body = input._bodyInit + input.bodyUsed = true } } else { - this.url = String(input); + this.url = String(input) } - this.credentials = options.credentials || this.credentials || 'omit'; + this.credentials = options.credentials || this.credentials || 'omit' if (options.headers || !this.headers) { - this.headers = new Headers(options.headers); + this.headers = new Headers(options.headers) } - this.method = normalizeMethod(options.method || this.method || 'GET'); - this.mode = options.mode || this.mode || null; - this.referrer = null; + this.method = normalizeMethod(options.method || this.method || 'GET') + this.mode = options.mode || this.mode || null + this.referrer = null if ((this.method === 'GET' || this.method === 'HEAD') && body) { - throw new TypeError('Body not allowed for GET or HEAD requests'); + throw new TypeError('Body not allowed for GET or HEAD requests') } - this._initBody(body); + this._initBody(body) } - Request.prototype.clone = function () { - return new Request(this, { body: this._bodyInit }); - }; + Request.prototype.clone = function() { + return new Request(this, { body: this._bodyInit }) + } function decode(body) { - var form = new FormData(); - body.trim().split('&').forEach(function (bytes) { + var form = new FormData() + body.trim().split('&').forEach(function(bytes) { if (bytes) { - var split = bytes.split('='); - var name = split.shift().replace(/\+/g, ' '); - var value = split.join('=').replace(/\+/g, ' '); - form.append(decodeURIComponent(name), decodeURIComponent(value)); + var split = bytes.split('=') + var name = split.shift().replace(/\+/g, ' ') + var value = split.join('=').replace(/\+/g, ' ') + form.append(decodeURIComponent(name), decodeURIComponent(value)) } - }); - return form; + }) + return form } function parseHeaders(rawHeaders) { - var headers = new Headers(); + var headers = new Headers() // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space // https://tools.ietf.org/html/rfc7230#section-3.2 - var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); - preProcessedHeaders.split(/\r?\n/).forEach(function (line) { - var parts = line.split(':'); - var key = parts.shift().trim(); + var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ') + preProcessedHeaders.split(/\r?\n/).forEach(function(line) { + var parts = line.split(':') + var key = parts.shift().trim() if (key) { - var value = parts.join(':').trim(); - headers.append(key, value); + var value = parts.join(':').trim() + headers.append(key, value) } - }); - return headers; + }) + return headers } - Body.call(Request.prototype); + Body.call(Request.prototype) function Response(bodyInit, options) { if (!options) { - options = {}; + options = {} } - this.type = 'default'; - this.status = options.status === undefined ? 200 : options.status; - this.ok = this.status >= 200 && this.status < 300; - this.statusText = 'statusText' in options ? options.statusText : 'OK'; - this.headers = new Headers(options.headers); - this.url = options.url || ''; - this._initBody(bodyInit); + this.type = 'default' + this.status = options.status === undefined ? 200 : options.status + this.ok = this.status >= 200 && this.status < 300 + this.statusText = 'statusText' in options ? options.statusText : 'OK' + this.headers = new Headers(options.headers) + this.url = options.url || '' + this._initBody(bodyInit) } - Body.call(Response.prototype); + Body.call(Response.prototype) - Response.prototype.clone = function () { + Response.prototype.clone = function() { return new Response(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new Headers(this.headers), url: this.url - }); - }; + }) + } - Response.error = function () { - var response = new Response(null, { status: 0, statusText: '' }); - response.type = 'error'; - return response; - }; + Response.error = function() { + var response = new Response(null, {status: 0, statusText: ''}) + response.type = 'error' + return response + } - var redirectStatuses = [301, 302, 303, 307, 308]; + var redirectStatuses = [301, 302, 303, 307, 308] - Response.redirect = function (url, status) { + Response.redirect = function(url, status) { if (redirectStatuses.indexOf(status) === -1) { - throw new RangeError('Invalid status code'); + throw new RangeError('Invalid status code') } - return new Response(null, { status: status, headers: { location: url } }); - }; + return new Response(null, {status: status, headers: {location: url}}) + } - self.Headers = Headers; - self.Request = Request; - self.Response = Response; + self.Headers = Headers + self.Request = Request + self.Response = Response - self.fetch = function (input, init) { - return new Promise(function (resolve, reject) { - var request = new Request(input, init); - var xhr = new XMLHttpRequest(); + self.fetch = function(input, init) { + return new Promise(function(resolve, reject) { + var request = new Request(input, init) + var xhr = new XMLHttpRequest() - xhr.onload = function () { + xhr.onload = function() { var options = { status: xhr.status, statusText: xhr.statusText, headers: parseHeaders(xhr.getAllResponseHeaders() || '') - }; - options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); - var body = 'response' in xhr ? xhr.response : xhr.responseText; - resolve(new Response(body, options)); - }; + } + options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL') + var body = 'response' in xhr ? xhr.response : xhr.responseText + resolve(new Response(body, options)) + } - xhr.onerror = function () { - reject(new TypeError('Network request failed')); - }; + xhr.onerror = function() { + reject(new TypeError('Network request failed')) + } - xhr.ontimeout = function () { - reject(new TypeError('Network request failed')); - }; + xhr.ontimeout = function() { + reject(new TypeError('Network request failed')) + } - xhr.open(request.method, request.url, true); + xhr.open(request.method, request.url, true) if (request.credentials === 'include') { - xhr.withCredentials = true; + xhr.withCredentials = true } else if (request.credentials === 'omit') { - xhr.withCredentials = false; + xhr.withCredentials = false } if ('responseType' in xhr && support.blob) { - xhr.responseType = 'blob'; + xhr.responseType = 'blob' } - request.headers.forEach(function (value, name) { - xhr.setRequestHeader(name, value); - }); - - xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); - }); - }; - self.fetch.polyfill = true; -})(typeof self !== 'undefined' ? self : undefined); + request.headers.forEach(function(value, name) { + xhr.setRequestHeader(name, value) + }) -},{}],1005:[function(require,module,exports){ -'use strict'; + xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit) + }) + } + self.fetch.polyfill = true +})(typeof self !== 'undefined' ? self : this); +},{}],1019:[function(require,module,exports){ /* Copyright (c) 2015, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. @@ -149759,20 +157819,20 @@ Authors: Nera Liu exports._getPrivFilters = function () { - var LT = /])/g, - SPECIAL_HTML_CHARS = /[&<>"'`]/g, + SPECIAL_HTML_CHARS = /[&<>"'`]/g, SPECIAL_COMMENT_CHARS = /(?:\x00|^-*!?>|--!?>|--?!?$|\]>|\]$)/g; // CSS sensitive chars: ()"'/,!*@{}:; // By CSS: (Tab|NewLine|colon|semi|lpar|rpar|apos|sol|comma|excl|ast|midast);|(quot|QUOT) // By URI_PROTOCOL: (Tab|NewLine); var SENSITIVE_HTML_ENTITIES = /&(?:#([xX][0-9A-Fa-f]+|\d+);?|(Tab|NewLine|colon|semi|lpar|rpar|apos|sol|comma|excl|ast|midast|ensp|emsp|thinsp);|(nbsp|amp|AMP|lt|LT|gt|GT|quot|QUOT);?)/g, - SENSITIVE_NAMED_REF_MAP = { Tab: '\t', NewLine: '\n', colon: ':', semi: ';', lpar: '(', rpar: ')', apos: '\'', sol: '/', comma: ',', excl: '!', ast: '*', midast: '*', ensp: '\u2002', emsp: '\u2003', thinsp: '\u2009', nbsp: '\xA0', amp: '&', lt: '<', gt: '>', quot: '"', QUOT: '"' }; + SENSITIVE_NAMED_REF_MAP = {Tab: '\t', NewLine: '\n', colon: ':', semi: ';', lpar: '(', rpar: ')', apos: '\'', sol: '/', comma: ',', excl: '!', ast: '*', midast: '*', ensp: '\u2002', emsp: '\u2003', thinsp: '\u2009', nbsp: '\xA0', amp: '&', lt: '<', gt: '>', quot: '"', QUOT: '"'}; // var CSS_VALID_VALUE = // /^(?: @@ -149782,61 +157842,61 @@ exports._getPrivFilters = function () { // | //empty // )$/i; var CSS_VALID_VALUE = /^(?:(?!-*expression)#?[-\w]+|[+-]?(?:\d+|\d*\.\d+)(?:r?em|ex|ch|cm|mm|in|px|pt|pc|%|vh|vw|vmin|vmax)?|!important|)$/i, - - // TODO: prevent double css escaping by not encoding \ again, but this may require CSS decoding - // \x7F and \x01-\x1F less \x09 are for Safari 5.0, added []{}/* for unbalanced quote - CSS_DOUBLE_QUOTED_CHARS = /[\x00-\x1F\x7F\[\]{}\\"]/g, + // TODO: prevent double css escaping by not encoding \ again, but this may require CSS decoding + // \x7F and \x01-\x1F less \x09 are for Safari 5.0, added []{}/* for unbalanced quote + CSS_DOUBLE_QUOTED_CHARS = /[\x00-\x1F\x7F\[\]{}\\"]/g, CSS_SINGLE_QUOTED_CHARS = /[\x00-\x1F\x7F\[\]{}\\']/g, - - // (, \u207D and \u208D can be used in background: 'url(...)' in IE, assumed all \ chars are encoded by QUOTED_CHARS, and null is already replaced with \uFFFD - // otherwise, use this CSS_BLACKLIST instead (enhance it with url matching): /(?:\\?\(|[\u207D\u208D]|\\0{0,4}28 ?|\\0{0,2}20[78][Dd] ?)+/g - CSS_BLACKLIST = /url[\(\u207D\u208D]+/g, - - // this assumes encodeURI() and encodeURIComponent() has escaped 1-32, 127 for IE8 - CSS_UNQUOTED_URL = /['\(\)]/g; // " \ treated by encodeURI() + // (, \u207D and \u208D can be used in background: 'url(...)' in IE, assumed all \ chars are encoded by QUOTED_CHARS, and null is already replaced with \uFFFD + // otherwise, use this CSS_BLACKLIST instead (enhance it with url matching): /(?:\\?\(|[\u207D\u208D]|\\0{0,4}28 ?|\\0{0,2}20[78][Dd] ?)+/g + CSS_BLACKLIST = /url[\(\u207D\u208D]+/g, + // this assumes encodeURI() and encodeURIComponent() has escaped 1-32, 127 for IE8 + CSS_UNQUOTED_URL = /['\(\)]/g; // " \ treated by encodeURI() // Given a full URI, need to support "[" ( IPv6address ) "]" in URI as per RFC3986 // Reference: https://tools.ietf.org/html/rfc3986 var URL_IPV6 = /\/\/%5[Bb]([A-Fa-f0-9:]+)%5[Dd]/; + // Reference: http://shazzer.co.uk/database/All/characters-allowd-in-html-entities // Reference: http://shazzer.co.uk/vector/Characters-allowed-after-ampersand-in-named-character-references // Reference: http://shazzer.co.uk/database/All/Characters-before-javascript-uri // Reference: http://shazzer.co.uk/database/All/Characters-after-javascript-uri // Reference: https://html.spec.whatwg.org/multipage/syntax.html#consume-a-character-reference // Reference for named characters: https://html.spec.whatwg.org/multipage/entities.json - var URI_BLACKLIST_PROTOCOLS = { 'javascript': 1, 'data': 1, 'vbscript': 1, 'mhtml': 1, 'x-schema': 1 }, + var URI_BLACKLIST_PROTOCOLS = {'javascript':1, 'data':1, 'vbscript':1, 'mhtml':1, 'x-schema':1}, URI_PROTOCOL_COLON = /(?::|&#[xX]0*3[aA];?|�*58;?|:)/, URI_PROTOCOL_WHITESPACES = /(?:^[\x00-\x20]+|[\t\n\r\x00]+)/g, - URI_PROTOCOL_NAMED_REF_MAP = { Tab: '\t', NewLine: '\n' }; + URI_PROTOCOL_NAMED_REF_MAP = {Tab: '\t', NewLine: '\n'}; - var x, - strReplace = function strReplace(s, regexp, callback) { - return s === undefined ? 'undefined' : s === null ? 'null' : s.toString().replace(regexp, callback); - }, - fromCodePoint = String.fromCodePoint || function (codePoint) { - if (arguments.length === 0) { - return ''; - } - if (codePoint <= 0xFFFF) { - // BMP code point - return String.fromCharCode(codePoint); - } + var x, + strReplace = function (s, regexp, callback) { + return s === undefined ? 'undefined' + : s === null ? 'null' + : s.toString().replace(regexp, callback); + }, + fromCodePoint = String.fromCodePoint || function(codePoint) { + if (arguments.length === 0) { + return ''; + } + if (codePoint <= 0xFFFF) { // BMP code point + return String.fromCharCode(codePoint); + } + + // Astral code point; split in surrogate halves + // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + codePoint -= 0x10000; + return String.fromCharCode((codePoint >> 10) + 0xD800, (codePoint % 0x400) + 0xDC00); + }; - // Astral code point; split in surrogate halves - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - codePoint -= 0x10000; - return String.fromCharCode((codePoint >> 10) + 0xD800, codePoint % 0x400 + 0xDC00); - }; function getProtocol(str) { var s = str.split(URI_PROTOCOL_COLON, 2); // str.length !== s[0].length is for older IE (e.g., v8), where delimeter residing at last will result in length equals 1, but not 2 - return s[0] && (s.length === 2 || str.length !== s[0].length) ? s[0] : null; + return (s[0] && (s.length === 2 || str.length !== s[0].length)) ? s[0] : null; } function htmlDecode(s, namedRefMap, reNamedRef, skipReplacement) { - + namedRefMap = namedRefMap || SENSITIVE_NAMED_REF_MAP; reNamedRef = reNamedRef || SENSITIVE_HTML_ENTITIES; @@ -149875,39 +157935,43 @@ exports._getPrivFilters = function () { // // num >= 0xD800 && num <= 0xDFFF, and 0x0D is separately handled, as it doesn't fall into the range of x.pec() // return (num >= 0xD800 && num <= 0xDFFF) || num === 0x0D ? '\uFFFD' : x.frCoPt(num); - return skipReplacement ? fromCodePoint(num) : num === 0x80 ? '\u20AC' // EURO SIGN (€) - : num === 0x82 ? '\u201A' // SINGLE LOW-9 QUOTATION MARK (‚) - : num === 0x83 ? '\u0192' // LATIN SMALL LETTER F WITH HOOK (ƒ) - : num === 0x84 ? '\u201E' // DOUBLE LOW-9 QUOTATION MARK („) - : num === 0x85 ? '\u2026' // HORIZONTAL ELLIPSIS (…) - : num === 0x86 ? '\u2020' // DAGGER (†) - : num === 0x87 ? '\u2021' // DOUBLE DAGGER (‡) - : num === 0x88 ? '\u02C6' // MODIFIER LETTER CIRCUMFLEX ACCENT (ˆ) - : num === 0x89 ? '\u2030' // PER MILLE SIGN (‰) - : num === 0x8A ? '\u0160' // LATIN CAPITAL LETTER S WITH CARON (Š) - : num === 0x8B ? '\u2039' // SINGLE LEFT-POINTING ANGLE QUOTATION MARK (‹) - : num === 0x8C ? '\u0152' // LATIN CAPITAL LIGATURE OE (Œ) - : num === 0x8E ? '\u017D' // LATIN CAPITAL LETTER Z WITH CARON (Ž) - : num === 0x91 ? '\u2018' // LEFT SINGLE QUOTATION MARK (‘) - : num === 0x92 ? '\u2019' // RIGHT SINGLE QUOTATION MARK (’) - : num === 0x93 ? '\u201C' // LEFT DOUBLE QUOTATION MARK (“) - : num === 0x94 ? '\u201D' // RIGHT DOUBLE QUOTATION MARK (”) - : num === 0x95 ? '\u2022' // BULLET (•) - : num === 0x96 ? '\u2013' // EN DASH (–) - : num === 0x97 ? '\u2014' // EM DASH (—) - : num === 0x98 ? '\u02DC' // SMALL TILDE (˜) - : num === 0x99 ? '\u2122' // TRADE MARK SIGN (™) - : num === 0x9A ? '\u0161' // LATIN SMALL LETTER S WITH CARON (š) - : num === 0x9B ? '\u203A' // SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (›) - : num === 0x9C ? '\u0153' // LATIN SMALL LIGATURE OE (œ) - : num === 0x9E ? '\u017E' // LATIN SMALL LETTER Z WITH CARON (ž) - : num === 0x9F ? '\u0178' // LATIN CAPITAL LETTER Y WITH DIAERESIS (Ÿ) - : num >= 0xD800 && num <= 0xDFFF || num === 0x0D ? '\uFFFD' : x.frCoPt(num); + return skipReplacement ? fromCodePoint(num) + : num === 0x80 ? '\u20AC' // EURO SIGN (€) + : num === 0x82 ? '\u201A' // SINGLE LOW-9 QUOTATION MARK (‚) + : num === 0x83 ? '\u0192' // LATIN SMALL LETTER F WITH HOOK (ƒ) + : num === 0x84 ? '\u201E' // DOUBLE LOW-9 QUOTATION MARK („) + : num === 0x85 ? '\u2026' // HORIZONTAL ELLIPSIS (…) + : num === 0x86 ? '\u2020' // DAGGER (†) + : num === 0x87 ? '\u2021' // DOUBLE DAGGER (‡) + : num === 0x88 ? '\u02C6' // MODIFIER LETTER CIRCUMFLEX ACCENT (ˆ) + : num === 0x89 ? '\u2030' // PER MILLE SIGN (‰) + : num === 0x8A ? '\u0160' // LATIN CAPITAL LETTER S WITH CARON (Š) + : num === 0x8B ? '\u2039' // SINGLE LEFT-POINTING ANGLE QUOTATION MARK (‹) + : num === 0x8C ? '\u0152' // LATIN CAPITAL LIGATURE OE (Œ) + : num === 0x8E ? '\u017D' // LATIN CAPITAL LETTER Z WITH CARON (Ž) + : num === 0x91 ? '\u2018' // LEFT SINGLE QUOTATION MARK (‘) + : num === 0x92 ? '\u2019' // RIGHT SINGLE QUOTATION MARK (’) + : num === 0x93 ? '\u201C' // LEFT DOUBLE QUOTATION MARK (“) + : num === 0x94 ? '\u201D' // RIGHT DOUBLE QUOTATION MARK (”) + : num === 0x95 ? '\u2022' // BULLET (•) + : num === 0x96 ? '\u2013' // EN DASH (–) + : num === 0x97 ? '\u2014' // EM DASH (—) + : num === 0x98 ? '\u02DC' // SMALL TILDE (˜) + : num === 0x99 ? '\u2122' // TRADE MARK SIGN (™) + : num === 0x9A ? '\u0161' // LATIN SMALL LETTER S WITH CARON (š) + : num === 0x9B ? '\u203A' // SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (›) + : num === 0x9C ? '\u0153' // LATIN SMALL LIGATURE OE (œ) + : num === 0x9E ? '\u017E' // LATIN SMALL LETTER Z WITH CARON (ž) + : num === 0x9F ? '\u0178' // LATIN CAPITAL LETTER Y WITH DIAERESIS (Ÿ) + : (num >= 0xD800 && num <= 0xDFFF) || num === 0x0D ? '\uFFFD' + : x.frCoPt(num); } return namedRefMap[named || named1] || m; } - return s === undefined ? 'undefined' : s === null ? 'null' : s.toString().replace(NULL, '\uFFFD').replace(reNamedRef, regExpFunction); + return s === undefined ? 'undefined' + : s === null ? 'null' + : s.toString().replace(NULL, '\uFFFD').replace(reNamedRef, regExpFunction); } function cssEncode(chr) { @@ -149915,9 +157979,7 @@ exports._getPrivFilters = function () { return '\\' + chr.charCodeAt(0).toString(16).toLowerCase() + ' '; } function cssBlacklist(s) { - return s.replace(CSS_BLACKLIST, function (m) { - return '-x-' + m; - }); + return s.replace(CSS_BLACKLIST, function(m){ return '-x-' + m; }); } function cssUrl(s) { // encodeURI() in yufull() will throw error for use of the CSS_UNSUPPORTED_CODE_POINT (i.e., [\uD800-\uDFFF]) @@ -149926,25 +157988,33 @@ exports._getPrivFilters = function () { // prefix ## for blacklisted protocols // here .replace(URI_PROTOCOL_WHITESPACES, '') is not needed since yufull has already percent-encoded the whitespaces - return protocol && URI_BLACKLIST_PROTOCOLS[protocol.toLowerCase()] ? '##' + s : s; + return (protocol && URI_BLACKLIST_PROTOCOLS[protocol.toLowerCase()]) ? '##' + s : s; } - return x = { + return (x = { // turn invalid codePoints and that of non-characters to \uFFFD, and then fromCodePoint() - frCoPt: function frCoPt(num) { - return num === undefined || num === null ? '' : !isFinite(num = Number(num)) || // `NaN`, `+Infinity`, or `-Infinity` - num <= 0 || // not a valid Unicode code point - num > 0x10FFFF || // not a valid Unicode code point - // Math.floor(num) != num || - - num >= 0x01 && num <= 0x08 || num >= 0x0E && num <= 0x1F || num >= 0x7F && num <= 0x9F || num >= 0xFDD0 && num <= 0xFDEF || num === 0x0B || (num & 0xFFFF) === 0xFFFF || (num & 0xFFFF) === 0xFFFE ? '\uFFFD' : fromCodePoint(num); + frCoPt: function(num) { + return num === undefined || num === null ? '' : + !isFinite(num = Number(num)) || // `NaN`, `+Infinity`, or `-Infinity` + num <= 0 || // not a valid Unicode code point + num > 0x10FFFF || // not a valid Unicode code point + // Math.floor(num) != num || + + (num >= 0x01 && num <= 0x08) || + (num >= 0x0E && num <= 0x1F) || + (num >= 0x7F && num <= 0x9F) || + (num >= 0xFDD0 && num <= 0xFDEF) || + + num === 0x0B || + (num & 0xFFFF) === 0xFFFF || + (num & 0xFFFF) === 0xFFFE ? '\uFFFD' : fromCodePoint(num); }, d: htmlDecode, /* * @param {string} s - An untrusted uri input * @returns {string} s - null if relative url, otherwise the protocol with whitespaces stripped and lower-cased */ - yup: function yup(s) { + yup: function(s) { s = getProtocol(s.replace(NULL, '')); // URI_PROTOCOL_WHITESPACES is required for left trim and remove interim whitespaces return s ? htmlDecode(s, URI_PROTOCOL_NAMED_REF_MAP, null, true).replace(URI_PROTOCOL_WHITESPACES, '').toLowerCase() : null; @@ -149956,20 +158026,25 @@ exports._getPrivFilters = function () { * @returns {string} s - The original user input with & < > " ' ` encoded respectively as & < > " ' and `. * */ - y: function y(s) { + y: function(s) { return strReplace(s, SPECIAL_HTML_CHARS, function (m) { - return m === '&' ? '&' : m === '<' ? '<' : m === '>' ? '>' : m === '"' ? '"' : m === "'" ? ''' : /*m === '`'*/'`'; // in hex: 60 + return m === '&' ? '&' + : m === '<' ? '<' + : m === '>' ? '>' + : m === '"' ? '"' + : m === "'" ? ''' + : /*m === '`'*/ '`'; // in hex: 60 }); }, // This filter is meant to introduce double-encoding, and should be used with extra care. - ya: function ya(s) { + ya: function(s) { return strReplace(s, AMP, '&'); }, // FOR DETAILS, refer to inHTMLData() // Reference: https://html.spec.whatwg.org/multipage/syntax.html#data-state - yd: function yd(s) { + yd: function (s) { return strReplace(s, LT, '<'); }, @@ -149985,25 +158060,27 @@ exports._getPrivFilters = function () { // Reference: http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx // We do not care --\s>, which can possibly be intepreted as a valid close comment tag in very old browsers (e.g., firefox 3.6), as specified in the html4 spec // Reference: http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.4 - yc: function yc(s) { - return strReplace(s, SPECIAL_COMMENT_CHARS, function (m) { - return m === '\x00' ? '\uFFFD' : m === '--!' || m === '--' || m === '-' || m === ']' ? m + ' ' : /* - : m === ']>' ? '] >' - : m === '-->' ? '-- >' - : m === '--!>' ? '--! >' - : /-*!?>/.test(m) ? */m.slice(0, -1) + ' >'; + yc: function (s) { + return strReplace(s, SPECIAL_COMMENT_CHARS, function(m){ + return m === '\x00' ? '\uFFFD' + : m === '--!' || m === '--' || m === '-' || m === ']' ? m + ' ' + :/* + : m === ']>' ? '] >' + : m === '-->' ? '-- >' + : m === '--!>' ? '--! >' + : /-*!?>/.test(m) ? */ m.slice(0, -1) + ' >'; }); }, // FOR DETAILS, refer to inDoubleQuotedAttr() // Reference: https://html.spec.whatwg.org/multipage/syntax.html#attribute-value-(double-quoted)-state - yavd: function yavd(s) { + yavd: function (s) { return strReplace(s, QUOT, '"'); }, // FOR DETAILS, refer to inSingleQuotedAttr() // Reference: https://html.spec.whatwg.org/multipage/syntax.html#attribute-value-(single-quoted)-state - yavs: function yavs(s) { + yavs: function (s) { return strReplace(s, SQUOT, '''); }, @@ -150036,16 +158113,21 @@ exports._getPrivFilters = function () { // // Example: // - yavu: function yavu(s) { + yavu: function (s) { return strReplace(s, SPECIAL_ATTR_VALUE_UNQUOTED_CHARS, function (m) { - return m === '\t' ? ' ' // in hex: 09 - : m === '\n' ? ' ' // in hex: 0A - : m === '\x0B' ? ' ' // in hex: 0B for IE. IE<9 \v equals v, so use \x0B instead - : m === '\f' ? ' ' // in hex: 0C - : m === '\r' ? ' ' // in hex: 0D - : m === ' ' ? ' ' // in hex: 20 - : m === '=' ? '=' // in hex: 3D - : m === '<' ? '<' : m === '>' ? '>' : m === '"' ? '"' : m === "'" ? ''' : m === '`' ? '`' : /*empty or null*/'\uFFFD'; + return m === '\t' ? ' ' // in hex: 09 + : m === '\n' ? ' ' // in hex: 0A + : m === '\x0B' ? ' ' // in hex: 0B for IE. IE<9 \v equals v, so use \x0B instead + : m === '\f' ? ' ' // in hex: 0C + : m === '\r' ? ' ' // in hex: 0D + : m === ' ' ? ' ' // in hex: 20 + : m === '=' ? '=' // in hex: 3D + : m === '<' ? '<' + : m === '>' ? '>' + : m === '"' ? '"' + : m === "'" ? ''' + : m === '`' ? '`' + : /*empty or null*/ '\uFFFD'; }); }, @@ -150054,20 +158136,20 @@ exports._getPrivFilters = function () { // Notice that yubl MUST BE APPLIED LAST, and will not be used independently (expected output from encodeURI/encodeURIComponent and yavd/yavs/yavu) // This is used to disable JS execution capabilities by prefixing x- to ^javascript:, ^vbscript: or ^data: that possibly could trigger script execution in URI attribute context - yubl: function yubl(s) { + yubl: function (s) { return URI_BLACKLIST_PROTOCOLS[x.yup(s)] ? 'x-' + s : s; }, // This is NOT a security-critical filter. // Reference: https://tools.ietf.org/html/rfc3986 - yufull: function yufull(s) { - return x.yu(s).replace(URL_IPV6, function (m, p) { + yufull: function (s) { + return x.yu(s).replace(URL_IPV6, function(m, p) { return '//[' + p + ']'; }); }, // chain yufull() with yubl() - yublf: function yublf(s) { + yublf: function (s) { return x.yubl(x.yufull(s)); }, @@ -150088,18 +158170,18 @@ exports._getPrivFilters = function () { // NOTE: delimiter in CSS - \ _ : ; ( ) " ' / , % # ! * @ . { } // 2d 5c 5f 3a 3b 28 29 22 27 2f 2c 25 23 21 2a 40 2e 7b 7d - yceu: function yceu(s) { + yceu: function(s) { s = htmlDecode(s); return CSS_VALID_VALUE.test(s) ? s : ";-x:'" + cssBlacklist(s.replace(CSS_SINGLE_QUOTED_CHARS, cssEncode)) + "';-v:"; }, // string1 = \"([^\n\r\f\\"]|\\{nl}|\\[^\n\r\f0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*\" - yced: function yced(s) { + yced: function(s) { return cssBlacklist(htmlDecode(s).replace(CSS_DOUBLE_QUOTED_CHARS, cssEncode)); }, // string2 = \'([^\n\r\f\\']|\\{nl}|\\[^\n\r\f0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*\' - yces: function yces(s) { + yces: function(s) { return cssBlacklist(htmlDecode(s).replace(CSS_SINGLE_QUOTED_CHARS, cssEncode)); }, @@ -150108,36 +158190,38 @@ exports._getPrivFilters = function () { // unquoted_url = ([^"'()\\ \t\n\r\f\v\u0000\u0008\u000b\u000e-\u001f\u007f]|\\{h}{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])* (CSS 3.0 definition) // The state machine in CSS 3.0 is more well defined - http://www.w3.org/TR/css-syntax-3/#consume-a-url-token0 // CSS_UNQUOTED_URL = /['\(\)]/g; // " \ treated by encodeURI() - yceuu: function yceuu(s) { + yceuu: function(s) { return cssUrl(s).replace(CSS_UNQUOTED_URL, function (chr) { - return chr === '\'' ? '\\27 ' : chr === '(' ? '%28' : - /* chr === ')' ? */'%29'; + return chr === '\'' ? '\\27 ' : + chr === '(' ? '%28' : + /* chr === ')' ? */ '%29'; }); }, // for url("{{{yceud url}}} - yceud: function yceud(s) { + yceud: function(s) { return cssUrl(s); }, // for url('{{{yceus url}}} - yceus: function yceus(s) { + yceus: function(s) { return cssUrl(s).replace(SQUOT, '\\27 '); } - }; + }); }; // exposing privFilters // this is an undocumented feature, and please use it with extra care var privFilters = exports._privFilters = exports._getPrivFilters(); + /* chaining filters */ // uriInAttr and literally uriPathInAttr // yubl is always used // Rationale: given pattern like this:
    // developer may expect s is always prefixed with ? or /, but an attacker can abuse it with 'javascript:alert(1)' -function uriInAttr(s, yav, yu) { +function uriInAttr (s, yav, yu) { return privFilters.yubl(yav((yu || privFilters.yufull)(s))); } @@ -150270,6 +158354,7 @@ exports.inDoubleQuotedAttr = privFilters.yavd; */ exports.inUnQuotedAttr = privFilters.yavu; + /** * @function module:xss-filters#uriInSingleQuotedAttr * @@ -150324,6 +158409,7 @@ exports.uriInDoubleQuotedAttr = function (s) { return uriInAttr(s, privFilters.yavd); }; + /** * @function module:xss-filters#uriInUnQuotedAttr * @@ -150376,6 +158462,7 @@ exports.uriInUnQuotedAttr = function (s) { */ exports.uriInHTMLData = privFilters.yufull; + /** * @function module:xss-filters#uriInHTMLComment * @@ -150403,6 +158490,9 @@ exports.uriInHTMLComment = function (s) { return privFilters.yc(privFilters.yufull(s)); }; + + + /** * @function module:xss-filters#uriPathInSingleQuotedAttr * @@ -150455,6 +158545,7 @@ exports.uriPathInDoubleQuotedAttr = function (s) { return uriInAttr(s, privFilters.yavd, privFilters.yu); }; + /** * @function module:xss-filters#uriPathInUnQuotedAttr * @@ -150506,6 +158597,7 @@ exports.uriPathInUnQuotedAttr = function (s) { */ exports.uriPathInHTMLData = privFilters.yu; + /** * @function module:xss-filters#uriPathInHTMLComment * @@ -150531,6 +158623,7 @@ exports.uriPathInHTMLComment = function (s) { return privFilters.yc(privFilters.yu(s)); }; + /** * @function module:xss-filters#uriQueryInSingleQuotedAttr * @description This is an alias of {@link module:xss-filters#uriPathInSingleQuotedAttr} @@ -150571,6 +158664,8 @@ exports.uriQueryInHTMLData = exports.uriPathInHTMLData; */ exports.uriQueryInHTMLComment = exports.uriPathInHTMLComment; + + /** * @function module:xss-filters#uriComponentInSingleQuotedAttr * @@ -150623,6 +158718,7 @@ exports.uriComponentInDoubleQuotedAttr = function (s) { return privFilters.yavd(privFilters.yuc(s)); }; + /** * @function module:xss-filters#uriComponentInUnQuotedAttr * @@ -150674,6 +158770,7 @@ exports.uriComponentInUnQuotedAttr = function (s) { */ exports.uriComponentInHTMLData = privFilters.yuc; + /** * @function module:xss-filters#uriComponentInHTMLComment * @@ -150699,6 +158796,7 @@ exports.uriComponentInHTMLComment = function (s) { return privFilters.yc(privFilters.yuc(s)); }; + // uriFragmentInSingleQuotedAttr // added yubl on top of uriComponentInAttr // Rationale: given pattern like this: @@ -150791,6 +158889,7 @@ exports.uriFragmentInUnQuotedAttr = function (s) { return privFilters.yubl(privFilters.yavu(privFilters.yuc(s))); }; + /** * @function module:xss-filters#uriFragmentInHTMLData * @description This is an alias of {@link module:xss-filters#uriComponentInHTMLData} diff --git a/chrome-extension/manifest.json b/chrome-extension/manifest.json index 026a8164dc..930f02e5f3 100644 --- a/chrome-extension/manifest.json +++ b/chrome-extension/manifest.json @@ -1,6 +1,6 @@ { "name": "MyEtherWallet", - "version": "3.23.0", + "version": "3.23.1", "manifest_version": 2, "description": "MyEtherWallet Chrome Extension", "homepage_url": "https://www.myetherwallet.com/", diff --git a/chrome-extension/phishing.html b/chrome-extension/phishing.html index 601637ccf5..264eae0fc4 100644 --- a/chrome-extension/phishing.html +++ b/chrome-extension/phishing.html @@ -98,13 +98,13 @@ MyEtherWallet -

    3.23.0

    +

    3.23.1

    - + diff --git a/chrome-extension/privacy-policy.html b/chrome-extension/privacy-policy.html index 9dec7e5ef8..391a4553e5 100644 --- a/chrome-extension/privacy-policy.html +++ b/chrome-extension/privacy-policy.html @@ -98,13 +98,13 @@ MyEtherWallet -

    3.23.0

    +

    3.23.1

    - + diff --git a/dist/contest.html b/dist/contest.html index 9a34e0ee41..aa632d4487 100644 --- a/dist/contest.html +++ b/dist/contest.html @@ -98,13 +98,13 @@ MyEtherWallet -

    3.23.0

    +

    3.23.1

    - + diff --git a/dist/css/etherwallet-master.min.css b/dist/css/etherwallet-master.min.css index ecbe307310..e2121c11b1 100644 --- a/dist/css/etherwallet-master.min.css +++ b/dist/css/etherwallet-master.min.css @@ -1,3 +1,3 @@ @font-face{font-family:Lato;src:url(../fonts/Lato-Light.woff) format("woff");font-style:normal;font-weight:300}@font-face{font-family:Lato;src:url(../fonts/Lato-Regular.woff) format("woff");font-style:normal;font-weight:400}@font-face{font-family:Lato;src:url(../fonts/Lato-Bold.woff) format("woff");font-style:normal;font-weight:700} /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0} -/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline;color:#000}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #000;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}.print-text{color:#0b7290!important}footer{border-top:1px solid #000}header{border-bottom:1px solid #000;border-top:0 solid #fff!important}.btn{border:1px solid #000;color:1px solid #000;background:transparent!important}.nav-container{display:none!important}.footer-1 img{width:40px!important}.footer-1 *,.footer-2 *,.footer-3 *{font-size:8px!important;line-height:1.1!important}.footer-1 .footer-2,.footer-1 .footer-3,.footer-2 .footer-2,.footer-2 .footer-3,.footer-3 .footer-2,.footer-3 .footer-3{float:left!important}.h1,h1{font-size:18px}.h1,.h2,h1,h2{font-weight:700}.h2,h2{font-size:17px}.h3,h3{font-size:16px}.h3,.h4,h3,h4{font-weight:700}.h4,h4{font-size:15px}.h5,h5{font-size:14px}.h5,.h6,h5,h6{font-weight:700}.h6,h6{font-size:13px}.modal{position:inherit!important;page-break-inside:avoid;page-break-before:always}}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:15 px;-webkit-tap-highlight-color:rgba(0,0,0,0);height:100%}@media screen and (min-width:94rem){html{font-size:16px}}@media screen and (max-width:50.2rem){html{font-size:15 px}}body{font-family:Lato,sans-serif;font-size:1rem;line-height:1.4;color:#333;background-color:#fbfbfb;height:100%}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}figure{margin:0}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-thumbnail{padding:.2rem;line-height:1.4;background-color:#fbfbfb;border:1px solid #ddd;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid #ececec}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:700;line-height:1.2;color:inherit;letter-spacing:.02em}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:inherit}.h1,.h2,.h3,h1,h2,h3{margin-top:1rem;margin-bottom:.5rem}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:1rem;margin-bottom:.5rem}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:2.25rem}.h1,.h2,h1,h2{font-weight:300}.h2,h2{font-size:1.9rem}.h3,h3{font-size:1.5rem}.h3,.h4,h3,h4{font-weight:700}.h4,h4{font-size:1.3rem}.h5,h5{font-size:1.15rem}.h5,.h6,h5,h6{font-weight:400}.h6,h6{font-size:1.07rem}p{margin:0 0 .5rem;font-weight:300}p.strong,p .strong,p strong{font-weight:400}i{font-style:normal}.strong,strong{font-weight:600}.lead{margin-bottom:1.4;font-size:1rem}a{color:#0e97c0;text-decoration:none;cursor:pointer}a,a:hover{-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}a:hover{opacity:.8;color:#0c84a8}a:active,a:focus{opacity:1;-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}a:focus{outline:thin dotted;outline-offset:3px}.point{cursor:pointer}.strike{text-decoration:line-through}.small,small{font-size:85%}.mark,mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#9a9a9a}.text-primary{color:#0e97c0}a.text-primary:focus,a.text-primary:hover{color:#0c84a8}.text-success{color:#459f42}a.text-success:focus,a.text-success:hover{color:#3d8d3b}.text-info{color:#0b1929}a.text-info:focus,a.text-info:hover{color:#060d15}.text-warning{color:#cc7a00}a.text-warning:focus,a.text-warning:hover{color:#b36a00}.text-danger{color:#df2518}a.text-danger:focus,a.text-danger:hover{color:#c82116}.text-underline{text-decoration:underline}.text-light{font-weight:200}.bg-primary{color:#fff;background-color:#0e97c0}a.bg-primary:focus,a.bg-primary:hover{background-color:#0b7290}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:-.5rem;margin:2.8 0 1.4;border-bottom:1px solid #ececec}ol,ul{margin-top:0;margin-bottom:1em}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}li{margin-bottom:.5em;font-weight:300}li strong{font-weight:400}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline{margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:1.4}dd,dt{line-height:1.4}dt{font-weight:700}dd{margin-left:0}@media (min-width:51.2rem){.dl-horizontal dt{float:left;width:-8rem;clear:left;text-align:right;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:12rem}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #9a9a9a}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:.5rem 1.4;margin:0 0 1.4;font-size:1.25rem;border-left:5px solid #ececec}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.4;color:#9a9a9a}blockquote .small:before,blockquote footer:before,blockquote small:before{content:"\2014 \00A0"}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #ececec;border-left:0;text-align:right}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:""}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:"\00A0 \2014"}address{margin-bottom:1.4;font-style:normal;line-height:1.4}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace}code{color:#c7254e;background-color:#f9f2f4}code,kbd{padding:2px 4px;font-size:90%;border-radius:0}kbd{color:#fff;background-color:#333;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:.2;margin:0 0 .7;font-size:0;line-height:1.4;word-break:break-all;word-wrap:break-word;color:#333;background-color:#fafafa;border:1px solid #ececec;border-radius:0}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:23rem;overflow-y:scroll}.container{width:100%;margin-right:auto;margin-left:auto;max-width:113rem;padding:0 5rem}@media screen and (max-width:80rem){.container{padding:0 3%}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:1rem;padding-right:1rem}.row{margin-left:-1rem;margin-right:-1rem}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{position:relative;min-height:1px;padding-left:1rem;padding-right:1rem}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:51.2rem){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:66.13333333rem){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:80rem){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent;margin-bottom:10px;border-bottom:1px solid #ddd}caption{padding-top:.5rem;padding-bottom:.5rem;color:#9a9a9a}caption,th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:1.4}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:.5rem;line-height:1.4;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fbfbfb}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:.25rem}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f5f5f5}.table-striped>tbody>tr>td,.table-striped>tbody>tr>th,.table-striped>tfoot>tr>td,.table-striped>tfoot>tr>th,.table-striped>thead>tr>td,.table-striped>thead>tr>th{border-top:0}.table-mnemonic{border-bottom:0;font-weight:400}.table-mnemonic th{border-bottom:1px solid #ececec;vertical-align:bottom}.table-mnemonic td:first-child{font-family:Menlo,Monaco,Consolas,Courier New,monospace}.table-mnemonic tr:last-child td:first-child{text-align:left}.table-mnemonic tr:first-child,.table-mnemonic tr:last-child:not(.mnemonic-custom-row){background-color:#fff!important}.table-mnemonic.table>tbody>tr>td,.table-mnemonic.table>tbody>tr>th,.table-mnemonic.table>tfoot>tr>td,.table-mnemonic.table>tfoot>tr>th,.table-mnemonic.table>thead>tr>td,.table-mnemonic.table>thead>tr>th{padding:.25rem}.table-mnemonic .mnemonic-custom-row input[type=text]{margin:-5px;display:inline;width:70%;max-width:15rem}.table-mnemonic label{margin:.15rem}.table-hover,.table-hover>tbody>tr>td,.table-hover>tbody>tr>th,.table-hover>tfoot>tr>td,.table-hover>tfoot>tr>th,.table-hover>thead>tr>td,.table-hover>thead>tr>th,.table-hover td,.table-hover th,.table-hover tr{border:0 solid #fff}.table-hover>tbody>tr:hover{background-color:#fafafa}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#fafafa}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#ededed}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}@media screen and (max-width:50.2rem){.table-responsive{width:100%;margin-bottom:1.05;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}.table-domainsale-modal .table-ens-modal{font-weight:400;font-size:16px}.table-domainsale-modal .table-ens-modal textarea{font-size:11px;word-break:break-all;padding:.5rem}fieldset{margin:0;min-width:0}fieldset,legend{padding:0;border:0}legend{display:block;width:100%;margin-bottom:1.4;font-size:1.5rem;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-top:.5rem;margin-bottom:.25rem;font-weight:600;font-size:1.15rem}label small{font-weight:300;font-size:1em}td label{font-weight:400}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:3px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted;outline-offset:3px}output{display:block;padding-top:1.75rem;font-size:1rem;line-height:1.4;color:#333}.account-help-icon+.btn,.account-help-icon+input,.account-help-icon+textarea,label+.form-control,label+input,label+textarea{margin-top:0}.form-control{display:block;width:100%;height:2.55rem;padding:.25rem 1rem;font-size:1rem;line-height:2;color:#333;background-color:#fff;background-image:none;border:1px solid #ececec;margin-top:.5rem;margin-bottom:.5rem;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}.form-control:focus{border-color:#0e97c0;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(14,151,192,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(14,151,192,.5)}.form-control::-moz-placeholder{color:#d3d3d3;opacity:1}.form-control:-ms-input-placeholder{color:#d3d3d3}.form-control::-webkit-input-placeholder{color:#d3d3d3}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#ececec;opacity:1;cursor:text!important;-webkit-box-shadow:none!important;box-shadow:none!important}.form-control[disabled],fieldset[disabled] .form-control{cursor:default}textarea.form-control{height:auto;line-height:1.4}input[readonly]{background-color:#fafafa;cursor:text!important}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:2.55rem}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:2rem}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:4rem}}.form-group{margin-top:.5rem;margin-bottom:.5rem;display:block}.checkbox,.radio{position:relative;display:block;margin:15px 0;font-weight:500}.checkbox label,.radio label{min-height:1.4;padding-left:20px;padding-right:15px;margin-bottom:0;font-weight:500;cursor:pointer}.checkbox.small,.radio.small{margin:.2rem 0}.checkbox-inline input[type=checkbox],.checkbox input[type=checkbox],.radio-inline input[type=radio],.radio input[type=radio]{margin-left:-20px}input[type=radio]{margin-right:5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .checkbox label,fieldset[disabled] .radio-inline,fieldset[disabled] .radio label,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:default}.form-control-static{padding-top:1.75rem;padding-bottom:1.75rem;margin-bottom:0;min-height:2.4rem}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.input-sm{height:2rem;line-height:2rem}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5}.form-group-sm select.form-control{height:2rem;line-height:2rem}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:2rem;min-height:2.3rem;padding:1.5rem 1rem;font-size:.9rem;line-height:1.5}.input-lg{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2;border-radius:0}select.input-lg{height:4rem;line-height:4rem}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2}.form-group-lg select.form-control{height:4rem;line-height:4rem}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:4rem;min-height:3.3rem;padding:2rem;font-size:1.9rem;line-height:1.2}.form-control.is-valid{border-color:#b5e0b4;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(93,186,90,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(93,186,90,.5)}.form-control.is-valid:focus{border-color:#92d190;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(93,186,90,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(93,186,90,.5)}.form-control.is-invalid{border-color:#f7b7b3;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(234,75,64,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(234,75,64,.5)}.form-control.is-invalid:focus{border-color:#f28c85;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(234,75,64,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(234,75,64,.5)}.form-control.is-semivalid{border-color:#ffcc80;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(255,152,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(255,152,0,.5)}.form-control.is-semivalid:focus{border-color:#ffb74d;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(255,152,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(255,152,0,.5)}.flagged-address{color:red;font-weight:700}.btn{background-image:none;cursor:pointer;border:1px solid gray;display:inline-block;font-weight:400;letter-spacing:.05em;margin-top:.5rem;margin-bottom:0;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;vertical-align:middle;white-space:nowrap;padding:.75rem 2rem;font-size:1.07rem;line-height:1.4;border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline-offset:3px}.btn.focus,.btn:focus,.btn:hover{color:#222;text-decoration:none;border-bottom-color:transparent;-webkit-box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1);box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1)}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.alert .btn-info{background-color:#fff;text-decoration:none;color:#163151}.alert .btn-info.focus,.alert .btn-info:focus,.alert .btn-info:hover{color:#fff;text-decoration:none;opacity:1}.alert .btn-info.disabled{background-color:#fff;text-decoration:none;color:#163151;opacity:.6}.btn-default{color:#222;background-color:#c3c3c3;border-color:#bdbdbd;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#222;background-color:#b6b6b6;border-color:#b0b0b0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#222;background-color:#9d9d9d;border-color:#979797;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#c3c3c3;border-color:#bdbdbd}.btn-default .badge{color:#c3c3c3;background-color:#222}.btn-primary{color:#fff;background-color:#0e97c0;border-color:#0e97c0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#0c84a8;border-color:#0c84a8;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#095f79;border-color:#095f79;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#0e97c0;border-color:#0e97c0}.btn-primary .badge{color:#0e97c0;background-color:#fff}.btn-success{color:#fff;background-color:#5dba5a;border-color:#5dba5a;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#4db14a;border-color:#4db14a;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#3d8d3b;border-color:#3d8d3b;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5dba5a;border-color:#5dba5a}.btn-success .badge{color:#5dba5a;background-color:#fff}.btn-info{color:#fff;background-color:#163151;border-color:#163151;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#11253d;border-color:#11253d;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#060d15;border-color:#060d15;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#163151;border-color:#163151}.btn-info .badge{color:#163151;background-color:#fff}.btn-warning{color:#fff;background-color:#ff9800;border-color:#ff9800;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#e68900;border-color:#e68900;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#b36a00;border-color:#b36a00;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#ff9800;border-color:#ff9800}.btn-warning .badge{color:#ff9800;background-color:#fff}.btn-danger{color:#fff;background-color:#ea4b40;border-color:#ea4b40;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#e73529;border-color:#e73529;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#c82116;border-color:#c82116;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#ea4b40;border-color:#ea4b40}.btn-danger .badge{color:#ea4b40;background-color:#fff}.btn-white{background-color:hsla(0,0%,100%,.8);border-color:hsla(0,0%,100%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease;color:#163151}.btn-white.active,.btn-white.focus,.btn-white:active,.btn-white:focus,.btn-white:hover,.open>.dropdown-toggle.btn-white{color:#163151;background-color:hsla(0,0%,95%,.8);border-color:hsla(0,0%,95%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-white.active.focus,.btn-white.active:focus,.btn-white.active:hover,.btn-white:active.focus,.btn-white:active:focus,.btn-white:active:hover,.open>.dropdown-toggle.btn-white.focus,.open>.dropdown-toggle.btn-white:focus,.open>.dropdown-toggle.btn-white:hover{color:#163151;background-color:hsla(0,0%,85%,.8);border-color:hsla(0,0%,85%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-white.active,.btn-white:active,.open>.dropdown-toggle.btn-white{background-image:none}.btn-white.disabled,.btn-white.disabled.active,.btn-white.disabled.focus,.btn-white.disabled:active,.btn-white.disabled:focus,.btn-white.disabled:hover,.btn-white[disabled],.btn-white[disabled].active,.btn-white[disabled].focus,.btn-white[disabled]:active,.btn-white[disabled]:focus,.btn-white[disabled]:hover,fieldset[disabled] .btn-white,fieldset[disabled] .btn-white.active,fieldset[disabled] .btn-white.focus,fieldset[disabled] .btn-white:active,fieldset[disabled] .btn-white:focus,fieldset[disabled] .btn-white:hover{background-color:hsla(0,0%,100%,.8);border-color:hsla(0,0%,100%,.8)}.btn-white .badge{color:hsla(0,0%,100%,.8);background-color:#163151}.header-branding a.btn-white{color:#163151}.header-branding a.btn-white:focus,.header-branding a.btn-white:hover{background:#fff;opacity:1;color:#163151}.btn-group .btn-default{border-bottom-width:1px}.btn-group .btn-default.active{border:1px solid #0e97c0;color:#0e97c0;background:#f5f5f5}.btn-link{color:#0e97c0;font-weight:400}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#0c84a8;text-decoration:none;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#9a9a9a;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:1rem 2rem;font-size:1.15rem;line-height:1.2;border-radius:0}.btn-group-sm>.btn,.btn-sm{padding:.5rem 1rem;font-size:1rem;line-height:1.5;border-radius:0}.btn-group-xs>.btn,.btn-xs{font-size:.75rem;line-height:1.5;border-radius:0;padding:.1rem .6rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}.btn-file,input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.btn-file{background-image:none;cursor:pointer;border:1px solid gray;display:inline-block;font-weight:400;letter-spacing:.05em;margin-top:.5rem;margin-bottom:0;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;vertical-align:middle;white-space:nowrap;padding:.75rem 2rem;font-size:1.07rem;line-height:1.4;border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;color:#222;background-color:#c3c3c3;border-color:#bdbdbd;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease;position:relative;overflow:hidden}.btn-file.active.focus,.btn-file.active:focus,.btn-file.focus,.btn-file:active.focus,.btn-file:active:focus,.btn-file:focus{outline:thin dotted;outline-offset:3px}.btn-file.focus,.btn-file:focus,.btn-file:hover{color:#222;text-decoration:none;border-bottom-color:transparent;-webkit-box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1);box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1)}.btn-file.active,.btn-file:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-file.disabled,.btn-file[disabled],fieldset[disabled] .btn-file{cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn-file.disabled,fieldset[disabled] a.btn-file{pointer-events:none}.btn-file.active,.btn-file.focus,.btn-file:active,.btn-file:focus,.btn-file:hover,.open>.dropdown-toggle.btn-file{color:#222;background-color:#b6b6b6;border-color:#b0b0b0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-file.active.focus,.btn-file.active:focus,.btn-file.active:hover,.btn-file:active.focus,.btn-file:active:focus,.btn-file:active:hover,.open>.dropdown-toggle.btn-file.focus,.open>.dropdown-toggle.btn-file:focus,.open>.dropdown-toggle.btn-file:hover{color:#222;background-color:#9d9d9d;border-color:#979797;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-file.active,.btn-file:active,.open>.dropdown-toggle.btn-file{background-image:none}.btn-file.disabled,.btn-file.disabled.active,.btn-file.disabled.focus,.btn-file.disabled:active,.btn-file.disabled:focus,.btn-file.disabled:hover,.btn-file[disabled],.btn-file[disabled].active,.btn-file[disabled].focus,.btn-file[disabled]:active,.btn-file[disabled]:focus,.btn-file[disabled]:hover,fieldset[disabled] .btn-file,fieldset[disabled] .btn-file.active,fieldset[disabled] .btn-file.focus,fieldset[disabled] .btn-file:active,fieldset[disabled] .btn-file:focus,fieldset[disabled] .btn-file:hover{background-color:#c3c3c3;border-color:#bdbdbd}.btn-file .badge{color:#c3c3c3;background-color:#222}.btn-file input[type=file]{position:absolute;top:0;right:0;min-width:100%;min-height:100%;font-size:100px;text-align:right;filter:alpha(opacity=0);opacity:0;background:red;cursor:inherit;display:block}.caret{display:inline-block;width:0;height:0;margin-left:.5rem;vertical-align:middle;border-top:.25rem dashed;border-right:.25rem solid transparent;border-left:.25rem solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle{margin-top:0;font-size:1rem;padding:.5rem 1rem}.dropdown:hover .dropdown-menu{display:block}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;min-width:160px;max-width:100vw;max-height:75vh;overflow:scroll;padding:0;margin:2px 0 0;list-style:none;font-size:.9rem;text-align:left;background-color:#fff;border-radius:0;-webkit-box-shadow:0 6px 10px rgba(0,0,0,.175);box-shadow:0 6px 10px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:2px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li{margin:0}.dropdown-menu>li:first-child{padding-top:2px}.dropdown-menu>li:last-child{padding-bottom:2px}.dropdown-menu>li>a{display:block;padding:2px 1rem;clear:both;font-weight:300;line-height:1.4;color:#163151;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#0e97c0;background-color:#fafafa}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#0e97c0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#9a9a9a}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:default}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:.9rem;line-height:1.4;color:#9a9a9a;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:.25rem solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:51.2rem){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle;margin-bottom:5px}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn-group{float:left}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn-lg .caret{border-width:.25rem .25rem 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 .25rem .25rem}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio],[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group>*{margin-bottom:0;margin-top:0}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%}.input-group .dropdown-toggle{padding-right:.75rem;padding-left:.75rem}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2;border-radius:0}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:4rem;line-height:4rem}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:2rem;line-height:2rem}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding-left:2rem;padding-right:2rem;font-size:1rem;font-weight:400;line-height:1;color:#333;text-align:center;background-color:#ececec;border:1px solid #dfdfdf;outline:0;-webkit-box-shadow:inset 0 1px 1px hsla(0,0%,93%,.5),0 0 1px hsla(0,0%,93%,.5);box-shadow:inset 0 1px 1px hsla(0,0%,93%,.5),0 0 1px hsla(0,0%,93%,.5)}.input-group-addon.input-sm{padding:.5rem 1rem;font-size:.9rem}.input-group-addon.input-lg{padding:1rem 2rem;font-size:1.9rem}.input-group-addon:focus{border:1px solid #dadada;outline:0;-webkit-box-shadow:inset 0 1px 1px #ececec,30%,0 0 1px hsla(0,0%,93%,.9);box-shadow:inset 0 1px 1px #ececec,30%,0 0 1px hsla(0,0%,93%,.9)}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative;margin-bottom:0;margin-top:0;font-size:1rem;padding:.55rem 2rem}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.alert{padding:.75rem 2rem;margin:1rem auto;font-weight:300;font-size:1.07rem}.alert h4{color:inherit}.alert>:first-child,.alert h4{margin-top:0}.alert>:last-child{margin-bottom:0}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert a{color:#fff;text-decoration:underline}.alert a:hover{opacity:.8}.alert a:active,.alert a:focus{opacity:1}.alert svg{vertical-align:bottom}.alert-danger--outline{padding:.5em .6em .6em .3em;margin:0 0 1em;border-top:2px solid #ea4b40;-webkit-box-shadow:0 1px 5px 1px rgba(63,63,63,.13);box-shadow:0 1px 5px 1px rgba(63,63,63,.13);font-size:.9em;font-weight:500}.alert-danger--outline:before{content:"";background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23ea4b40'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23ea4b40'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:1.75em;float:left;width:2em;height:4em;margin-right:.75em}.alert.popup{position:fixed;bottom:0;left:0;right:0;padding:1rem 0;-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.33);box-shadow:0 0 20px 0 rgba(0,0,0,.33);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out;z-index:1060;margin:0}.alert.popup .container{position:relative;padding:0 10rem 0 5rem}@media screen and (max-width:51.2rem){.alert.popup .container{padding:1rem 8rem 1rem 4rem}}@media screen and (max-width:32rem){.alert.popup .container{padding:3rem 1rem 0 4rem}}.alert.popup .container:after{content:"";background-position:50%;background-repeat:no-repeat;background-size:contain;display:block;color:#fff;position:absolute;top:0;bottom:0;left:1%;width:2.25rem}@media screen and (max-width:32rem){.alert.popup .container:after{top:2.5rem;left:.5rem}}.alert.popup .icon-close{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 348.333 348.334'%3E%3Cpath d='M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z' fill='%23FFF'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:1rem;cursor:pointer;opacity:.7;position:absolute;top:0;right:0;width:9rem;bottom:0;border-left:1px solid hsla(0,0%,100%,.7);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}@media screen and (max-width:51.2rem){.alert.popup .icon-close{width:7rem}}@media screen and (max-width:32rem){.alert.popup .icon-close{width:100%;height:3rem;left:0;right:0;top:0;bottom:auto;border-left:0;border-bottom:1px solid hsla(0,0%,100%,.7)}}.alert.popup .icon-close:hover{border-color:hsla(0,0%,100%,.5)}.alert.popup .icon-close:active,.alert.popup .icon-close:hover{-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out;background-color:rgba(0,0,0,.1)}.alert.popup .icon-close:active{border-color:hsla(0,0%,100%,.7);opacity:1}.alert.popup.ng-hide{bottom:-20%;-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}.alert,.alert-info{background-color:#0e97c0;border-color:#0e97c0;color:#fff}.alert-info hr,.alert hr{border-top-color:#0c84a8}.alert-info .alert-link,.alert .alert-link{color:#e6e6e6}.alert-info .container:after,.alert .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' x='30' y='30' viewBox='0 0 65 65' width='512' height='512'%3E%3Cpath d='M32.5 0C14.58 0 0 14.579 0 32.5S14.58 65 32.5 65 65 50.421 65 32.5 50.42 0 32.5 0zm0 61C16.785 61 4 48.215 4 32.5S16.785 4 32.5 4 61 16.785 61 32.5 48.215 61 32.5 61z' fill='%23FFF'/%3E%3Ccircle cx='33.018' cy='19.541' r='3.345' fill='%23FFF'/%3E%3Cpath d='M32.137 28.342a2 2 0 0 0-2 2v17a2 2 0 0 0 4 0v-17a2 2 0 0 0-2-2z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-success{background-color:#5dba5a;border-color:#5dba5a;color:#fff}.alert-success hr{border-top-color:#4db14a}.alert-success .alert-link{color:#e6e6e6}.alert-success .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 478.2 478.2' width='32' height='32'%3E%3Cpath d='M457.575 325.1c9.8-12.5 14.5-25.9 13.9-39.7-.6-15.2-7.4-27.1-13-34.4 6.5-16.2 9-41.7-12.7-61.5-15.9-14.5-42.9-21-80.3-19.2-26.3 1.2-48.3 6.1-49.2 6.3h-.1c-5 .9-10.3 2-15.7 3.2-.4-6.4.7-22.3 12.5-58.1 14-42.6 13.2-75.2-2.6-97-16.6-22.9-43.1-24.7-50.9-24.7-7.5 0-14.4 3.1-19.3 8.8-11.1 12.9-9.8 36.7-8.4 47.7-13.2 35.4-50.2 122.2-81.5 146.3-.6.4-1.1.9-1.6 1.4-9.2 9.7-15.4 20.2-19.6 29.4-5.9-3.2-12.6-5-19.8-5h-61c-23 0-41.6 18.7-41.6 41.6v162.5c0 23 18.7 41.6 41.6 41.6h61c8.9 0 17.2-2.8 24-7.6l23.5 2.8c3.6.5 67.6 8.6 133.3 7.3 11.9.9 23.1 1.4 33.5 1.4 17.9 0 33.5-1.4 46.5-4.2 30.6-6.5 51.5-19.5 62.1-38.6 8.1-14.6 8.1-29.1 6.8-38.3 19.9-18 23.4-37.9 22.7-51.9-.4-8.1-2.2-15-4.1-20.1zm-409.3 122.2c-8.1 0-14.6-6.6-14.6-14.6V270.1c0-8.1 6.6-14.6 14.6-14.6h61c8.1 0 14.6 6.6 14.6 14.6v162.5c0 8.1-6.6 14.6-14.6 14.6h-61v.1zm383.7-133.9c-4.2 4.4-5 11.1-1.8 16.3 0 .1 4.1 7.1 4.6 16.7.7 13.1-5.6 24.7-18.8 34.6-4.7 3.6-6.6 9.8-4.6 15.4 0 .1 4.3 13.3-2.7 25.8-6.7 12-21.6 20.6-44.2 25.4-18.1 3.9-42.7 4.6-72.9 2.2h-1.4c-64.3 1.4-129.3-7-130-7.1h-.1l-10.1-1.2c.6-2.8.9-5.8.9-8.8V270.1c0-4.3-.7-8.5-1.9-12.4 1.8-6.7 6.8-21.6 18.6-34.3 44.9-35.6 88.8-155.7 90.7-160.9.8-2.1 1-4.4.6-6.7-1.7-11.2-1.1-24.9 1.3-29 5.3.1 19.6 1.6 28.2 13.5 10.2 14.1 9.8 39.3-1.2 72.7-16.8 50.9-18.2 77.7-4.9 89.5 6.6 5.9 15.4 6.2 21.8 3.9 6.1-1.4 11.9-2.6 17.4-3.5.4-.1.9-.2 1.3-.3 30.7-6.7 85.7-10.8 104.8 6.6 16.2 14.8 4.7 34.4 3.4 36.5-3.7 5.6-2.6 12.9 2.4 17.4.1.1 10.6 10 11.1 23.3.4 8.9-3.8 18-12.5 27z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-warning{background-color:#ff9800;border-color:#ff9800;color:#fff}.alert-warning hr{border-top-color:#e68900}.alert-warning .alert-link{color:#e6e6e6}.alert-warning .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23FFF'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-danger{background-color:#ea4b40;border-color:#ea4b40;color:#fff}.alert-danger hr{border-top-color:#e73529}.alert-danger .alert-link{color:#e6e6e6}.alert-danger .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23FFF'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23FFF'/%3E%3C/svg%3E")}.well{min-height:20px;padding:1rem;margin-top:1rem;margin-bottom:1rem;background-color:#fafafa;border:1px solid #e8e8e8;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well :first-child{margin-top:0}.well :last-child{margin-bottom:0}.well.lg{padding:2rem}.well.sm{padding:.5rem}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal,.modal-open{overflow:hidden}.modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translateY(-25%);-ms-transform:translateY(-25%);-o-transform:translateY(-25%);transform:translateY(-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:-webkit-transform .3s ease-out;-o-transition:transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0);-ms-transform:translate(0);-o-transform:translate(0);transform:translate(0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border-radius:0;-webkit-box-shadow:1px 1px 60px rgba(0,0,0,.32);box-shadow:1px 1px 60px rgba(0,0,0,.32);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:.75rem 1.5rem}.modal-header .close{margin-top:-2px}.modal-title{margin:0 0 1rem;line-height:1.4}.modal-body{position:relative;padding:.75rem;font-size:1.15rem}.modal-body .table>tbody>tr>td{vertical-align:middle}.modal-body .addressIdenticon{margin:auto}.modal-footer{padding:1rem 1.5rem;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn{margin-top:0}.modal-footer .btn+.btn{margin-left:.5rem;margin-bottom:0;margin-top:0}#sendTransaction .modal-footer{text-align:center}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:51.2rem){.modal-dialog{width:800px;margin:30px auto}.modal-sm{width:30rem}}@media (min-width:66.13333333rem){.modal-lg{width:70rem}}.bity-contact:after,.bity-contact:before,.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.modal-footer:after,.modal-footer:before,.row:after,.row:before{content:" ";display:table}.bity-contact:after,.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.modal-footer:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:50.2rem){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:50.2rem){.visible-xs-block{display:block!important}}@media (max-width:50.2rem){.visible-xs-inline{display:inline!important}}@media (max-width:50.2rem){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-block{display:block!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-inline{display:inline!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-block{display:block!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-inline{display:inline!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-inline-block{display:inline-block!important}}@media (min-width:80rem){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:80rem){.visible-lg-block{display:block!important}}@media (min-width:80rem){.visible-lg-inline{display:inline!important}}@media (min-width:80rem){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:50.2rem){.hidden-xs{display:none!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.hidden-sm{display:none!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.hidden-md{display:none!important}}@media (min-width:80rem){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}img{max-width:100%;height:auto}textarea{resize:vertical}.announcement{padding:3px 10px;text-align:center;font-weight:300;color:#fff;display:block;background-color:#0e97c0}.announcement a{text-decoration:underline;color:#fff}.announcement:focus,.announcement:hover,.announcement a{-webkit-transition:all .25s ease;-o-transition:.25s all ease;transition:all .25s ease}.announcement:focus,.announcement:hover{color:#f2f2f2;text-decoration:none;background-color:#0c84a8}.announcement strong{font-weight:400}.annoucement-warning{background-color:#ff5722}.annoucement-warning:focus,.annoucement-warning:hover{background-color:#ff4408}.annoucement-warning:focus a,.annoucement-warning:focus a:hover,.annoucement-warning:hover a,.annoucement-warning:hover a:hover{text-decoration:none}.annoucement-danger{background-color:#ea4b40}.annoucement-danger:hover{background-color:#ff4408}.annoucement-danger a:focus,.annoucement-danger a:hover{color:#f2f2f2}.annoucement-danger a:focus a,.annoucement-danger a:focus a:hover,.annoucement-danger a:hover a,.annoucement-danger a:hover a:hover{text-decoration:none}.address-identicon-container{padding:0;text-align:left;max-width:4.5rem;margin-left:-.5rem;margin-top:.5rem}.address-identicon-container-right{text-align:right}.address-identicon-container-right .addressIdenticon{float:right}.address-identicon-container-offline{padding:0;margin-left:-15px}.addressIdenticon{width:100%;height:auto;padding-bottom:100%;background-size:cover;background-repeat:no-repeat;border-radius:50%;-webkit-box-shadow:inset hsla(0,0%,100%,.5) 0 2px 2px,inset rgba(0,0,0,.6) 0 -1px 8px;box-shadow:inset 0 2px 2px hsla(0,0%,100%,.5),inset 0 -1px 8px rgba(0,0,0,.6)}.addressIdenticon.med{width:3rem;height:3rem;padding:0}.addressIdenticon.small{width:2rem;height:2rem;padding:0}.addressIdenticon.inline{display:inline-block}.addressIdenticon.float{float:left;margin-right:.5rem}.transaction-modal tbody tr td:first-child{width:30%}.transaction-modal tbody tr td:nth-child(2){width:70%}.transaction-modal .text-width-limit{display:grid;grid-auto-rows:1fr}.transaction-modal .text-width-limit p{margin:0;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.wrap{word-wrap:break-word}.bigger-on-mobile.form-control[readonly]{height:60px}@media screen and (max-width:767px){.bigger-on-mobile.form-control[readonly]{height:100px}}#paneHelp h3{margin-top:2em}.account-help-icon h3,.account-help-icon h4,.account-help-icon h5,.account-help-icon h6,.account-help-icon img{display:inline-block}.account-help-icon img:hover+.account-help-text{display:block;opacity:1;z-index:999}.account-help-icon img{margin-left:-30px;margin-right:3px}.account-help-icon:hover{opacity:1}.account-help-text{background:#fff;border-radius:0;border:1px solid #cdcdcd;-webkit-box-shadow:0 0 .5rem hsla(0,0%,39%,.2);box-shadow:0 0 .5rem hsla(0,0%,39%,.2);display:none;font-size:.75rem;font-weight:400;padding:.25rem;position:absolute;width:18rem;z-index:999;color:#333}ul.account-help-text{padding-left:1.6rem}.account-help-text li{font-size:.75rem;font-weight:400}@media screen and (max-width:767px){.account-help-icon img,.account-help-icon li,.account-help-icon p{display:none}}#accountAddress,#accountAddressMainTbl-1,#accountBalance,#accountBalanceBtc,#accountBalanceEur,#accountBalancePopMB-0,#accountBalancePopMB-2,#accountBalanceUsd,.form-control,.mono{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-weight:400;letter-spacing:.02em}.offline-qrcode{margin-top:-150px;max-width:300px}@media screen and (max-width:942px){.offline-qrcode{margin-top:-78px}}@media screen and (max-width:769px){.offline-qrcode{margin-top:0}}.account-info{padding-left:1em;margin:0}.account-info:after,.account-info:before{content:" ";display:table}.account-info:after{clear:both}.account-info li{margin-bottom:0;list-style-type:none;word-break:break-all}table.account-info{font-weight:200;border-bottom:0;min-width:200px;width:100%}table.account-info tbody{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}table.account-info td{padding:.3rem;line-height:1}table.account-info td:first-child{word-wrap:break-word;padding-left:1em}table.account-info tr{border-bottom:1px solid #f3f3f3}table.account-info tr:last-child,table.account-info tr:nth-last-child(2){border-bottom:0 solid #f3f3f3}table.account-info tr.custom-token{-webkit-box-ordinal-group:0;-webkit-order:-1;-ms-flex-order:-1;order:-1}input[type=text]+.eye{cursor:pointer}input[type=text]+.eye:before{content:"";width:20px;height:20px;margin-left:6px;margin-right:6px;display:inline-block;vertical-align:middle;background:url(../images/icon-eye.svg)}input[type=password]+.eye{cursor:pointer}input[type=password]+.eye:before{content:"";width:20px;height:20px;margin-left:6px;margin-right:6px;display:inline-block;vertical-align:middle;background:url(../images/icon-eye-closed.svg)}.collapse-container h1{margin:.25rem 0}.collapse-container .collapse-button{float:left;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;margin:5px -30px;font-size:1.6rem;line-height:.95;display:inline-block;width:25px;height:25px;text-align:center;border:1px solid #ddd;color:#c3c3c3;border-radius:5px}.help .collapse-container{margin:40px 0}.help .collapse-container .collapse-button{margin:-10px -30px;font-size:20px;line-height:1}.token-remove{width:.9rem;height:.9rem;position:absolute;left:18px;cursor:pointer}.node-remove{width:16px;height:16px;position:absolute;right:6px;top:8px}.m-addresses td:first-child{max-width:50px;min-widht:50px}.m-addresses td:last-child{text-align:right}.token-balances{margin-bottom:15px;font-size:14px;max-height:60vh;overflow:scroll}h2 a.isActive,h2 a.isActive:active,h2 a.isActive:hover{color:#333;cursor:default}.item{margin:6px 0}.output{padding:.5rem 1rem;margin-top:-.5rem}.output p{margin:.75rem 0 0}label .small{font-size:.9rem}label small{color:#9a9a9a}.write-address .col-xs-1{padding:0}.write-address .col-xs-11{padding-right:10px}.write-boolean label{display:block}.decrypt-drtv{padding:1rem 0}.decrypt-drtv label.radio{padding:0 1.5rem;margin:.5rem 0}.decrypt-drtv h4{margin-top:0}.qr-code{max-width:17rem;margin:auto}.qr-pkey-container{position:relative}.qr-overlay{background-color:#000;position:absolute;top:0;left:0;right:0;bottom:0}.contracts a.isActive{color:#333;font-weight:400}.contracts .dropdown-toggle{display:block;text-align:left;white-space:normal}.contracts .dropdown-toggle .caret{position:absolute;right:1rem;top:1.25rem}.contracts .dropdown-menu-left{font-size:.9rem;left:auto;right:0;min-width:37rem}.contracts .dropdown-menu-left small{float:right}.ens-tab a.isActive{color:#333;font-weight:400}.ens-tab .btn-primary-buy-button{width:200px}.ens-tab .btn-red{background-color:#84023d;border-color:#84023d;position:relative;width:200px}.ens-tab .btn-red .na{background-color:red;border-radius:300px;padding:5px 8px;font-weight:900}.ens-tab .btn-red:hover{background-color:#84023d;border-color:#84023d;position:relative}.ens-tab .pad-bot{padding-bottom:5px}.dropdown-gas{padding-bottom:1rem}@media screen and (max-width:900px){.dropdown-gas{padding-bottom:2rem}}.dropdown-gas__msg{font-size:12px;font-weight:300;margin:-10px auto 3px;max-width:113rem;padding:0 5rem;text-align:right;white-space:normal}@media screen and (max-width:80rem){.dropdown-gas__msg{padding:0 3%}}@media screen and (max-width:900px){.dropdown-gas__msg{margin-top:0;padding:0 1%}}.view-wallet-content h5{margin-bottom:.25rem}.view-wallet-content a.isActive{color:#333}#selectedTypeLedger ol{padding-left:1rem}.loading-wrap{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.7);z-index:999;text-align:center}.loading-wrap .loading{position:absolute;text-align:center;top:40%;left:50%;-webkit-transform:translate(-50%,-60%);-ms-transform:translate(-50%,-60%);transform:translate(-50%,-60%)}.loading-wrap img{border-radius:50%}.loading-wrap h1{-webkit-animation:opacity 2s infinite ease-in-out;animation:opacity 2s infinite ease-in-out;color:#fff}@-webkit-keyframes opacity{0%,to{opacity:0}50%{opacity:1}}@keyframes opacity{0%,to{opacity:0}50%{opacity:1}}.embedded-logo{height:auto;width:100%;max-width:290px;padding:.5rem 0}.ens-response{color:#737373}.dropdown-node .dropdown-menu li{border-left:2px solid #b50085;position:relative}.dropdown-node .dropdown-menu li:last-child{border-top:1px solid #ececec;padding-top:5px}.dropdown-node .dropdown-menu li:first-child,.dropdown-node .dropdown-menu li:nth-child(2),.dropdown-node .dropdown-menu li:nth-child(3),.dropdown-node .dropdown-menu li:nth-child(4){border-left:2px solid #0e97c0}.dropdown-node .dropdown-menu li:nth-child(5),.dropdown-node .dropdown-menu li:nth-child(6),.dropdown-node .dropdown-menu li:nth-child(7),.dropdown-node .dropdown-menu li:nth-child(8),.dropdown-node .dropdown-menu li:nth-child(9){border-left:2px solid #009241}.dropdown-node .dropdown-menu li:nth-child(10),.dropdown-node .dropdown-menu li:nth-child(11),.dropdown-node .dropdown-menu li:nth-child(12),.dropdown-node .dropdown-menu li:nth-child(13),.dropdown-node .dropdown-menu li:nth-child(14),.dropdown-node .dropdown-menu li:nth-child(15){border-left:2px solid #adc101}.dropdown-node .dropdown-menu li:nth-child(16){border-left:2px solid #673ab7}.dropdown-node .dropdown-menu li:nth-child(17){border-left:2px solid #00ad85}.dropdown-node .dropdown-menu li:nth-child(18){border-left:2px solid #4568bb}.dropdown-node .dropdown-menu li:nth-child(19){border-left:2px solid #6a488d}.dropdown-node .dropdown-menu li:nth-child(20){border-left:2px solid #046111}.dropdown-node .dropdown-menu li:nth-child(21){border-left:2px solid #4295d1}.dropdown-node .dropdown-menu li:nth-child(22){border-left:2px solid #0e97c0}.dropdown-node .dropdown-menu li:nth-child(23){border-left:2px solid #009241}.dropdown-node .dropdown-menu li:nth-child(24){border-left:2px solid #fece00}.dropdown-node .dropdown-menu li:nth-child(25){border-left:2px solid #27223d}.dropdown-node .dropdown-menu li:nth-child(26){border-left:2px solid #926565}.dropdown-node .dropdown-menu li:nth-child(27),.dropdown-node .dropdown-menu li:nth-child(28){border-left:2px solid #aa0087}.dropdown-node .dropdown-menu li:nth-child(29){border-left:2px solid #a16bff}.dropdown-node .dropdown-menu li:nth-child(30){border-left:2px solid #a2d729}.dropdown-node .dropdown-menu li:nth-child(31){border-left:2px solid #d63068}.dropdown-node .dropdown-menu li:nth-child(32){border-left:2px solid #09f}.dropdown-node .dropdown-menu li:nth-child(33){border-left:2px solid #4568bb}.dropdown-node .dropdown-menu li:nth-child(34){border-left:2px solid #0092ee}.dropdown-node .dropdown-menu li:last-child{border-left:2px solid #9a9a9a}.dropdown-node .dropdown-menu li:nth-child(4),.dropdown-node .dropdown-menu li:nth-child(9),.dropdown-node .dropdown-menu li:nth-child(15),.dropdown-node .dropdown-menu li:nth-child(16),.dropdown-node .dropdown-menu li:nth-child(17),.dropdown-node .dropdown-menu li:nth-child(18),.dropdown-node .dropdown-menu li:nth-child(19),.dropdown-node .dropdown-menu li:nth-child(20),.dropdown-node .dropdown-menu li:nth-child(21),.dropdown-node .dropdown-menu li:nth-child(22),.dropdown-node .dropdown-menu li:nth-child(23),.dropdown-node .dropdown-menu li:nth-child(24),.dropdown-node .dropdown-menu li:nth-child(25),.dropdown-node .dropdown-menu li:nth-child(26),.dropdown-node .dropdown-menu li:nth-child(28),.dropdown-node .dropdown-menu li:nth-child(29),.dropdown-node .dropdown-menu li:nth-child(30),.dropdown-node .dropdown-menu li:nth-child(31),.dropdown-node .dropdown-menu li:nth-child(32){border-bottom:1px solid #ececec}header{margin-bottom:1em}header.ETH .header-branding{border-bottom:.25rem solid #0e97c0}header.ETH+.container+.pre-footer+.footer{border-top:.25rem solid #0e97c0}header.ETH+.container .modal-content{border:.25rem solid #0e97c0}header.ETH+.container .alert-info{background-color:#0e97c0}header.ETH .dropdown-gas:before{width:24px;background-image:url(../images/coins/ethereum.svg)}header.ETC .header-branding{border-bottom:.25rem solid #009241}header.ETC+.container+.pre-footer+.footer{border-top:.25rem solid #009241}header.ETC+.container .modal-content{border:.25rem solid #009241}header.ETC+.container .alert-info{background-color:#009241}header.ETC .dropdown-gas:before{width:24px;background-image:url(../images/coins/ethereum-classic.svg)}header.Ropsten .header-branding{border-bottom:.25rem solid #adc101}header.Ropsten+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Ropsten+.container .modal-content{border:.25rem solid #adc101}header.Ropsten+.container .alert-info{background-color:#adc101}header.Kovan .header-branding{border-bottom:.25rem solid #adc101}header.Kovan+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Kovan+.container .modal-content{border:.25rem solid #adc101}header.Kovan+.container .alert-info{background-color:#adc101}header.Rinkeby .header-branding{border-bottom:.25rem solid #adc101}header.Rinkeby+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Rinkeby+.container .modal-content{border:.25rem solid #adc101}header.Rinkeby+.container .alert-info{background-color:#adc101}header.Custom .header-branding{border-bottom:.25rem solid #b50085}header.Custom+.container+.pre-footer+.footer{border-top:.25rem solid #b50085}header.Custom+.container .modal-content{border:.25rem solid #b50085}header.Custom+.container .alert-info{background-color:#b50085}header.EXP .header-branding{border-bottom:.25rem solid #673ab7}header.EXP+.container+.pre-footer+.footer{border-top:.25rem solid #673ab7}header.EXP+.container .modal-content{border:.25rem solid #673ab7}header.EXP+.container .alert-info{background-color:#673ab7}header.EXP .dropdown-gas:before{width:32px;background-image:url(../images/coins/exp.svg)}header.UBQ .header-branding{border-bottom:.25rem solid #00ad85}header.UBQ+.container+.pre-footer+.footer{border-top:.25rem solid #00ad85}header.UBQ+.container .modal-content{border:.25rem solid #00ad85}header.UBQ+.container .alert-info{background-color:#00ad85}header.UBQ .dropdown-gas:before{width:32px;background-image:url(../images/coins/ubiq.svg)}header.POA .header-branding{border-bottom:.25rem solid #4568bb}header.POA+.container+.pre-footer+.footer{border-top:.25rem solid #4568bb}header.POA+.container .modal-content{border:.25rem solid #4568bb}header.POA+.container .alert-info{background-color:#4568bb}header.POA .dropdown-gas:before{width:32px;background-image:url(../images/coins/poa.svg)}header.TOMO .header-branding{border-bottom:.25rem solid #6a488d}header.TOMO+.container+.pre-footer+.footer{border-top:.25rem solid #6a488d}header.TOMO+.container .modal-content{border:.25rem solid #6a488d}header.TOMO+.container .alert-info{background-color:#6a488d}header.TOMO .dropdown-gas:before{width:34px;background-image:url(../images/coins/tomo.svg)}header.ELLA .header-branding{border-bottom:.25rem solid #046111}header.ELLA+.container+.pre-footer+.footer{border-top:.25rem solid #046111}header.ELLA+.container .modal-content{border:.25rem solid #046111}header.ELLA+.container .alert-info{background-color:#046111}header.ELLA .dropdown-gas:before{width:32px;background-image:url(../images/coins/ella.svg)}header.ETSC .header-branding{border-bottom:.25rem solid #4295d1}header.ETSC+.container+.pre-footer+.footer{border-top:.25rem solid #4295d1}header.ETSC+.container .modal-content{border:.25rem solid #4295d1}header.ETSC+.container .alert-info{background-color:#4295d1}header.ETSC .dropdown-gas:before{width:32px;background-image:url(../images/coins/etsc.svg)}header.EGEM .header-branding{border-bottom:.25rem solid #0e97c0}header.EGEM+.container+.pre-footer+.footer{border-top:.25rem solid #0e97c0}header.EGEM+.container .modal-content{border:.25rem solid #0e97c0}header.EGEM+.container .alert-info{background-color:#0e97c0}header.EGEM .dropdown-gas:before{width:36px;background-image:url(../images/coins/egem.svg)}header.CLO .header-branding{border-bottom:.25rem solid #009241}header.CLO+.container+.pre-footer+.footer{border-top:.25rem solid #009241}header.CLO+.container .modal-content{border:.25rem solid #009241}header.CLO+.container .alert-info{background-color:#009241}header.CLO .dropdown-gas:before{width:36px;background-image:url(../images/coins/callisto.svg)}header.MUSIC .header-branding{border-bottom:.25rem solid #fece00}header.MUSIC+.container+.pre-footer+.footer{border-top:.25rem solid #fece00}header.MUSIC+.container .modal-content{border:.25rem solid #fece00}header.MUSIC+.container .alert-info{background-color:#fece00}header.MUSIC .dropdown-gas:before{width:34px;background-image:url(../images/coins/music.svg)}header.GO .header-branding{border-bottom:.25rem solid #27223d}header.GO+.container+.pre-footer+.footer{border-top:.25rem solid #27223d}header.GO+.container .modal-content{border:.25rem solid #27223d}header.GO+.container .alert-info{background-color:#27223d}header.GO .dropdown-gas:before{width:38px;background-image:url(../images/coins/gochain.svg)}header.EOSC .header-branding{border-bottom:.25rem solid #926565}header.EOSC+.container+.pre-footer+.footer{border-top:.25rem solid #926565}header.EOSC+.container .modal-content{border:.25rem solid #926565}header.EOSC+.container .alert-info{background-color:#926565}header.EOSC .dropdown-gas:before{width:26px;background-image:url(../images/coins/eosc.svg)}header.AKA .header-branding{border-bottom:.25rem solid #aa0087}header.AKA+.container+.pre-footer+.footer{border-top:.25rem solid #aa0087}header.AKA+.container .modal-content{border:.25rem solid #aa0087}header.AKA+.container .alert-info{background-color:#aa0087}header.AKA .dropdown-gas:before{width:34px;background-image:url(../images/coins/akroma.svg)}header.ESN .header-branding{border-bottom:.25rem solid #a16bff}header.ESN+.container+.pre-footer+.footer{border-top:.25rem solid #a16bff}header.ESN+.container .modal-content{border:.25rem solid #a16bff}header.ESN+.container .alert-info{background-color:#a16bff}header.ESN .dropdown-gas:before{width:32px;background-image:url(../images/coins/ethersocial.svg)}header.PIRL .header-branding{border-bottom:.25rem solid #a2d729}header.PIRL+.container+.pre-footer+.footer{border-top:.25rem solid #a2d729}header.PIRL+.container .modal-content{border:.25rem solid #a2d729}header.PIRL+.container .alert-info{background-color:#a2d729}header.PIRL .dropdown-gas:before{width:32px;background-image:url(../images/coins/pirl.svg)}header.ETHO .header-branding{border-bottom:.25rem solid #d63068}header.ETHO+.container+.pre-footer+.footer{border-top:.25rem solid #d63068}header.ETHO+.container .modal-content{border:.25rem solid #d63068}header.ETHO+.container .alert-info{background-color:#d63068}header.ETHO .dropdown-gas:before{width:24px;background-image:url(../images/coins/etho.svg)}header.ATH .header-branding{border-bottom:.25rem solid #09f}header.ATH+.container+.pre-footer+.footer{border-top:.25rem solid #09f}header.ATH+.container .modal-content{border:.25rem solid #09f}header.ATH+.container .alert-info{background-color:#09f}header.ATH .dropdown-gas:before{width:36px;background-image:url(../images/coins/atheios.svg)}header.ILT .header-branding{border-bottom:.25rem solid #4568bb}header.ILT+.container+.pre-footer+.footer{border-top:.25rem solid #4568bb}header.ILT+.container .modal-content{border:.25rem solid #4568bb}header.ILT+.container .alert-info{background-color:#4568bb}header.ILT .dropdown-gas:before{width:35px;background-image:url(../images/coins/ilt.svg)}header.WEB .header-branding{border-bottom:.25rem solid #0092ee}header.WEB+.container+.pre-footer+.footer{border-top:.25rem solid #0092ee}header.WEB+.container .modal-content{border:.25rem solid #0092ee}header.WEB+.container .alert-info{background-color:#0092ee}header.WEB .dropdown-gas:before{width:36px;background-image:url(../images/coins/webchain.svg)}.contest-container{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0!important;text-align:center}.contest-container ol{padding:0 10em;text-align:left!important}.contest-container ol li{list-style-position:inside}@media screen and (max-width:960px){.contest-container ol{padding:0 5em!important}.collapse-container .collapse-button{margin-left:-100px}}@media screen and (max-width:650px){.contest-container ol{padding:0 20px!important}}.on-boarding-close{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.on-boarding-close img{cursor:pointer}@media screen and (max-width:600px){.footer__pill-custom-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.footer__pill-custom-wrap a{-webkit-box-flex:1;-webkit-flex:auto;-ms-flex:auto;flex:auto;max-width:115px}}.privacy-policy{width:90%}.privacy-policy h1,.privacy-policy h3{font-weight:700;text-align:center}.privacy-policy .privacy-policy-body{margin-top:30px}.phishing{height:60%;text-align:center}.swap-tab a.link,.swap-tab a.link:hover{-webkit-transition:none;-o-transition:none;transition:none}.swap-tab .btn-lg{margin-top:3rem}.swap-tab .btn img,.swap-tab .btn svg{margin-right:.5rem;margin-left:-.25rem;vertical-align:middle}.swap-tab .swap-rates{text-align:center}.swap-tab .swap-rates .order-panel{background:-webkit-linear-gradient(300deg,#0e97c0,#163151);background:-o-linear-gradient(300deg,#0e97c0,#163151);background:linear-gradient(150deg,#0e97c0,#163151);position:relative}.swap-tab .swap-rates .order-panel .bity-logo{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@media screen and (max-width:51.2rem){.swap-tab .swap-rates .order-panel{padding-top:1rem;padding-bottom:1rem}.swap-tab .swap-rates .order-panel .order-info{text-align:left;padding:0 0 0 22%}.swap-tab .swap-rates .order-panel .bity-logo{left:-1rem;top:40%;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}}.swap-tab .swap-rates .form-control.input-sm{width:16%;min-width:3.5rem;display:inline-block;margin-right:1rem;text-align:right;background-color:transparent;color:#fff;-webkit-box-shadow:0 0 0 #fff;box-shadow:0 0 0 #fff;border:0 solid #fff;border-bottom:2px solid #fff}.swap-tab .swap-rates p{margin:0}.swap-tab .swap-rates p span{opacity:.9}.swap-tab .swap-rates .order-info:nth-child(4n+1),.swap-tab .swap-rates .order-info:nth-child(4n+2),.swap-tab .swap-rates .order-info:nth-child(4n+3){background:transparent}.swap-tab .swap-panel{text-align:center;margin-top:3rem;padding:2rem .5rem}.swap-tab .swap-panel>*{display:inline-block;margin:1.5rem .5rem;vertical-align:middle}.swap-tab .swap-panel .form-control{width:10rem;margin-right:0}.swap-tab .swap-panel .dropdown{margin-left:0}.swap-tab .swap-address{text-align:center;padding:3rem 1rem}.swap-tab .swap-start{text-align:center}.swap-tab .swap-start .swap-info{text-align:left;margin-bottom:5rem}.swap-tab .swap-order{text-align:left}.swap-tab .swap-order .order-info-wrap{margin-bottom:0}.swap-tab .swap-order h1{margin-top:3rem;margin-bottom:3rem}.ens-tab .collapse-container h4,.ens-tab .collapse-container h5,.swap-tab .collapse-container h4,.swap-tab .collapse-container h5{display:inline-block}.ens-tab .collapse-container .collapse-button,.swap-tab .collapse-container .collapse-button{float:none;margin:0}.order-info-wrap{margin-bottom:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.order-info-wrap .order-info{padding:1rem 0}.order-info{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;min-height:100px;text-align:center;padding:.5rem 0;color:#fff}.order-info:after,.order-info:before{content:" ";display:table}.order-info:after{clear:both}.order-info h3,.order-info h4,.order-info p{margin:0}.order-info:nth-child(4n+1){background-color:#175575}.order-info:nth-child(4n+2){background-color:#1e92ba}.order-info:nth-child(4n+3){background-color:#143955}.order-info:nth-child(4n+4){background-color:#19b3ae}.swap-progress{margin-top:2rem;margin-bottom:0;position:relative}.swap-progress .sep{position:absolute;top:3.5rem;left:3%;right:3%;height:.25rem;background-color:#ececec}@media screen and (max-width:675px){.swap-progress .sep{display:none}}.swap-progress:after,.swap-progress:before{content:" ";display:table}.swap-progress:after{clear:both}.swap-progress .progress-item{width:20%;float:left;text-align:center;margin:.25rem 0}@media screen and (max-width:675px){.swap-progress .progress-item{width:100%}}.swap-progress .progress-item:nth-child(4n+1) .progress-circle{border-color:rgba(30,146,186,.4);color:rgba(30,146,186,.4)}.swap-progress .progress-item:nth-child(4n+2) .progress-circle{border-color:rgba(23,85,117,.4);color:rgba(23,85,117,.4)}.swap-progress .progress-item:nth-child(4n+3) .progress-circle{border-color:rgba(25,179,174,.4);color:rgba(25,179,174,.4)}.swap-progress .progress-item:nth-child(4n+4) .progress-circle{border-color:rgba(20,57,85,.4);color:rgba(20,57,85,.4)}.swap-progress .progress-item .progress-circle{border-radius:50%;border-width:.25rem;border-style:solid;-webkit-box-sizing:content-box;box-sizing:content-box;margin:1rem auto;padding-bottom:4rem;position:relative;width:4rem;background:#fff}@media screen and (max-width:675px){.swap-progress .progress-item .progress-circle{margin:.25rem 1rem .25rem 2rem;padding-bottom:3rem;width:3rem;float:left}}.swap-progress .progress-item .progress-circle i{font-size:1.5rem;line-height:1.75rem;height:1.75rem;width:1.75rem;font-weight:900;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@media screen and (max-width:675px){.swap-progress .progress-item .progress-circle i{font-size:1.5rem;line-height:1.5rem;height:1.5rem;width:1.5rem}}.swap-progress .progress-item p{font-size:.9rem;font-weight:600;text-transform:uppercase;color:hsla(0,0%,55%,.5);letter-spacing:.1em}@media screen and (max-width:675px){.swap-progress .progress-item p{line-height:4rem;margin:0;text-align:left}}.swap-progress .progress-item p small{letter-spacing:.03em;font-size:75%}.swap-progress .progress-item.progress-active p{color:#8d8d8d}.swap-progress .progress-item.progress-active:nth-child(4n+1) .progress-circle{border-color:#1e92ba;color:#1e92ba}.swap-progress .progress-item.progress-active:nth-child(4n+2) .progress-circle{border-color:#175575;color:#175575}.swap-progress .progress-item.progress-active:nth-child(4n+3) .progress-circle{border-color:#19b3ae;color:#19b3ae}.swap-progress .progress-item.progress-active:nth-child(4n+4) .progress-circle{border-color:#143955;color:#143955}.swap-progress .progress-item.progress-true .progress-circle{background-color:#5dba5a;border-color:#5dba5a;-webkit-box-shadow:inset 0 0 0 5px #fff;box-shadow:inset 0 0 0 5px #fff}.swap-progress .progress-item.progress-true .progress-circle i{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 426.67 426.67' width='32' height='32'%3E%3Cpath d='M153.504 366.839c-8.657 0-17.323-3.302-23.927-9.911L9.914 237.265c-13.218-13.218-13.218-34.645 0-47.863 13.218-13.218 34.645-13.218 47.863 0l95.727 95.727 215.39-215.386c13.218-13.214 34.65-13.218 47.859 0 13.222 13.218 13.222 34.65 0 47.863L177.436 356.928c-6.609 6.605-15.271 9.911-23.932 9.911z' fill='%23fff'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;font-size:0}.swap-progress .progress-item.progress-true p{color:#5dba5a}.ens-tab .order-info-wrap{margin-top:1rem;margin-bottom:1rem}.ens-tab h5+p{margin-top:-.5em}.bity-contact{margin:9rem -1rem -5rem}.cont-md{max-width:64rem;margin:auto}.txstatus__1 .form-control{max-width:64rem;margin:1rem auto}.txstatus__3 h4{display:inline-block}.txstatus__3 .collapse-button{float:none;margin:0}.text-ellipsis{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.block-title1{background-color:#007cc0}.block-title1,.block-title2{color:#fff;padding:10px 20px;font-weight:900;font-size:20px}.block-title2{background-color:#3e4b5a}.mywallet-container ::-webkit-scrollbar{width:7px}.mywallet-container ::-webkit-scrollbar-track{background:#d7d7d7}.mywallet-container ::-webkit-scrollbar-thumb{background:#3e4b5a;border-radius:12px}.mywallet-container p{margin:0}.mywallet-container h3{margin:0;font-weight:900}.mywallet-container .addressIdenticon{width:50px!important;height:50px!important}.mywallet-container .grid-bg{background-color:#f5f5f5}.mywallet-container .grid-frame{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.mywallet-container .grid-frame #walletsContainer{-webkit-box-flex:50;-webkit-flex:50;-ms-flex:50;flex:50;height:100%}.mywallet-container .grid-frame .data:last-child{margin:0}.mywallet-container .grid-frame .data{display:grid;grid-template-columns:1fr 350px;grid-gap:4px;margin-bottom:20px}.mywallet-container .grid-frame .data .wallet .editor-icons{height:20px;width:20px}.mywallet-container .grid-frame .data .wallet .block-title1 p{font-weight:900}.mywallet-container .grid-frame .data .wallet .content{padding:25px 30px 20px}.mywallet-container .grid-frame .data .wallet .content>div{display:inline-block;vertical-align:top}.mywallet-container .grid-frame .data .wallet .content .balance{padding:0 20px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block{margin-bottom:15px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .block-title,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .block-title{width:125px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block h3,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block h3{display:inline-block;vertical-align:middle;font-size:20px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .balance-amount,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .balance-amount{vertical-align:middle;display:inline-block;font-size:20px;font-weight:900;color:#00c599}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block{display:inline-block;vertical-align:middle}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p{background-color:#fff;padding-left:20px;font-weight:500;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;font-size:14px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p button,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p button{background-color:#b3b3b4!important;color:#fff!important;display:inline-block;margin-left:30px;padding:12px 17px!important;border:none;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p button:hover,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p button:hover{background-color:grey!important}.mywallet-container .grid-frame .data .tokens .col-title{background-color:#fff;display:grid;grid-template-columns:1fr 1fr;padding:5px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .data .tokens .col-title p{font-weight:900;font-size:13px}.mywallet-container .grid-frame .data .tokens .content{height:116px;overflow-y:auto;position:relative}.mywallet-container .grid-frame .data .tokens .content>div{display:grid;grid-template-columns:1fr 1fr;padding:5px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .data .tokens .content>div:nth-child(2n){background-color:#ebebeb}.mywallet-container .grid-frame .data .tokens .content>div p{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mywallet-container .grid-frame .sidebar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:15;-webkit-flex:15;-ms-flex:15;flex:15;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;margin-left:15px;margin-top:4.2rem}.mywallet-container .grid-frame .sidebar .title-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff;background-color:#3e4b5a;padding:10px 20px}.mywallet-container .grid-frame .sidebar .title-container .title{display:inline-block;font-weight:900;font-size:20px}.mywallet-container .grid-frame .sidebar .title-container .total-of{display:inline-block;margin-left:auto;font-size:13px;margin-top:10px}.mywallet-container .grid-frame .sidebar .col-title{background-color:#fff;display:grid;grid-template-columns:2fr 1fr;padding:15px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .sidebar .col-title p{font-size:15px;font-weight:900}.mywallet-container .grid-frame .sidebar .content{overflow-y:scroll;position:relative}.mywallet-container .grid-frame .sidebar .content>div{display:grid;grid-template-columns:2fr 1fr;padding:15px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .sidebar .content>div p{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mywallet-container .grid-frame .sidebar .content>div .add-button{position:relative}.mywallet-container .grid-frame .sidebar .content>div .add-button p{cursor:pointer;width:90px;position:absolute;padding:7px 0;border:1px solid blue;font-size:12px;color:blue;text-align:center;top:-6px;left:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .sidebar .content>div .add-button p:hover{color:#fff;background-color:blue}.mywallet-container .grid-frame .sidebar .content>div .remove-button{position:relative}.mywallet-container .grid-frame .sidebar .content>div .remove-button p{cursor:pointer;width:90px;position:absolute;padding:7px 0;border:1px solid red;font-size:12px;color:red;text-align:center;top:-6px;left:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .sidebar .content>div .remove-button p:hover{color:#fff;background-color:red}.mywallet-container .grid-frame .sidebar .content .col-title{background-color:#fff}.mywallet-container .grid-frame .sidebar .content .col-title p{font-weight:900}#etherWalletPopUp{padding:10px;position:relative;min-width:346px}#etherWalletPopUp .back-icon{position:absolute;left:5px;top:5px}#etherWalletPopUp .back-icon:active,#etherWalletPopUp .back-icon:hover{outline:0}.toggleTokenContainer span{color:#0e97c0;cursor:pointer}.toggleTokenContainer span:hover{color:#095f79}.walletTokensContainer{max-height:70px;overflow:scroll}.quicksend-address{font-family:Menlo,Monaco,Consolas,Courier New,monospace;max-width:170px;word-wrap:break-word;font-size:12px;font-weight:300;display:block}.chrome-tokens span{min-width:130px;display:inline-block}.truncate{max-width:130px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mainWalletDelete,.mainWalletEdit,.mainWalletView{margin:.5em}.myWalletCtrl table:not(.account-info) h2{margin:0;font-size:1.6em}.myWalletCtrl table:not(.account-info) h3{font-weight:400;font-size:1.3em}.myWalletCtrl table:not(.account-info) td:nth-child(2){max-width:380px}.myWalletCtrl table:not(.account-info) td,.myWalletCtrl table:not(.account-info) th{vertical-align:middle;padding:.5em .75em}#secWatchOnlyMain .mainWalletDelete{width:60px;display:block}.spinner{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;height:37px}.spinner-container{display:inherit!important;padding:7.5px 20px!important;text-align:center}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.text-navy{color:#163151}.text-gray-lighter{color:#ececec}.text-blue{color:#0e97c0}.text-white{color:#fff}.bg-navy{background:#163151}.bg-gradient{background:#163151;background:-webkit-linear-gradient(301deg,#132a45,#143a56,#21a4ce,#19b4ad);background:-o-linear-gradient(301deg,#132a45,#143a56,#21a4ce,#19b4ad);background:linear-gradient(149deg,#132a45,#143a56,#21a4ce,#19b4ad)}.bg-gray-lighter{background-color:#ececec}.bg-blue{background-color:#0e97c0}.bg-white{background-color:#fff}.text-serif{font-family:Georgia,Times New Roman,Times,serif}.text-sans-serif{font-family:Lato,sans-serif}.pad-v-sm{padding-top:.5em;padding-bottom:.5em}.pad-v-md{padding-top:1em;padding-bottom:1em}.pad-v-lg{padding-top:1.5em;padding-bottom:1.5em}.pad-v-xl{padding-top:2em;padding-bottom:2em}.marg-v-sm{margin-top:.5em;margin-bottom:.5em}.marg-v-md{margin-top:1em;margin-bottom:1em}.marg-v-lg{margin-top:1.5em;margin-bottom:1.5em}.marg-v-xl{margin-top:2em;margin-bottom:2em}.img-fill{width:100%;height:auto;max-width:100%}.header-branding{color:#fff;padding:0}@media screen and (max-width:960px){.header-branding{text-align:center}}.header-branding .container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:900px){.header-branding .container{padding-left:1%;padding-right:1%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}}.header-branding .brand{float:left}@media screen and (max-width:900px){.header-branding .brand{float:none}}.header-branding .brand img{padding:.25rem 0}.header-branding .tagline{font-weight:200;color:#fff;-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;text-align:right;padding:.25rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:900px){.header-branding .tagline{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;text-align:right}}.header-branding a{cursor:pointer;font-weight:400;display:inline-block}.header-branding a,.header-branding a:active,.header-branding a:hover{color:#fff;-webkit-transition:all .25s ease;-o-transition:.25s all ease;transition:all .25s ease}.header-branding a:active,.header-branding a:hover{opacity:.8;text-decoration:none}.header-branding .dropdown{padding:.1rem}@media screen and (max-width:900px){.header-branding .dropdown{padding:.1rem 0;white-space:nowrap;display:inline-block;font-size:14px}.header-branding .dropdown .dropdown-menu{right:0;overflow-y:auto;min-width:auto;left:auto;top:100%;font-size:14px}.header-branding .dropdown .dropdown-menu>li>a{font-size:14px;padding:.25rem 30px .25rem 15px;position:relative}.header-branding .dropdown-gas{white-space:normal}.header-branding .dropdown-gas .dropdown-menu{right:0!important}}.header-branding .dropdown-toggle{font-size:14px;padding:.3em .6rem}.header-branding .dropdown-gas{display:inline-block}.header-branding .dropdown-gas .dropdown-menu{min-width:200px;padding:.5rem;margin:.1rem 0 0;right:.1rem;left:auto;overflow:unset}.header-branding .dropdown-gas .dropdown-menu p{padding:0}.header-branding .dropdown-gas:before{content:"";display:inline-block;background-position:50%;background-repeat:no-repeat;background-size:contain;vertical-align:middle;width:24px;height:48px;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='417' preserveAspectRatio='xMidYMid'%3E%3Cg fill-opacity='.588'%3E%3Cpath d='M128.95 154.205h.003l127.96 58.162L128.953.047z' fill='%23b1b1b1'/%3E%3Cpath d='M128.95 154.205V.047L.988 212.367l127.96-58.162z' fill='%23cfcfcf'/%3E%3Cpath d='M128.949 416.953l128.038-180.32-128.038 75.6z' fill='%23b1b1b1'/%3E%3Cpath fill='%23cfcfcf' d='M.988 236.632l127.962 180.32v-104.72z'/%3E%3Cpath fill='%23909090' d='M128.95 288.004l127.96-75.637-127.96-58.162z'/%3E%3Cpath fill='%23b1b1b1' d='M128.948 154.205L.988 212.367l127.96 75.637z'/%3E%3C/g%3E%3C/svg%3E");margin-top:1px}.dropdown-menu a.active{text-decoration:none;color:#0e97c0;background-color:#fafafa}.dropdown-menu{overflow-y:auto;right:.1rem;margin:.1rem 0 0}.nav-container{position:relative;overflow-y:hidden}.nav-container .nav-scroll{-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;overflow-x:auto;margin-bottom:-20px;font-size:0;white-space:nowrap}@media screen and (max-width:51.2rem){.nav-container .nav-scroll{margin:0 -5% -20px}}.nav-container .nav-scroll .nav-inner{border-bottom:2px solid #fff;display:inline-block;font-size:0;margin-bottom:20px;min-width:100%;padding:5px 0 0;vertical-align:middle}.nav-container .nav-scroll .nav-inner .nav-item{display:inline-block;font-size:0}.nav-container .nav-scroll .nav-inner .nav-item.NAV_Swap a:before{content:"";display:inline-block;margin-top:-.1rem;width:1.3rem;height:1.3rem;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620.04 631.27'%3E%3Ctitle%3Eicon-swap%3C/title%3E%3Cpath d='M469.95 289.68c-77 0-139.59-62.62-139.59-139.59S392.98 10.5 469.95 10.5s139.59 62.62 139.59 139.59-62.62 139.59-139.59 139.59z' fill='%23ffe14d'/%3E%3Cpath d='M469.95 21a129.09 129.09 0 1 1-129.09 129.09A129.24 129.24 0 0 1 469.95 21m0-21c-82.76 0-150.09 67.33-150.09 150.09s67.29 150.09 150.09 150.09 150.09-67.33 150.09-150.09S552.71 0 469.95 0z' fill='%230f0f0f'/%3E%3Cpath d='M599.04 150.09A129.24 129.24 0 0 0 469.95 21v258.18a129.24 129.24 0 0 0 129.09-129.09z' fill='%23fc3'/%3E%3Cpath d='M469.95 44.94a105.12 105.12 0 1 0 105.12 105.15A105.24 105.24 0 0 0 469.95 44.94zm0 179c-49.27 0-74.85-24.6-74.85-73.87s25.58-74.85 74.85-74.85 75.82 25.58 75.82 74.85-26.55 73.87-75.82 73.87z' fill='%23ff9f19'/%3E%3Cpath d='M545.77 150.09c0 49.27-26.55 74.85-75.82 74.85v30.27a105.12 105.12 0 1 0 0-210.24v30.27c49.27 0 75.82 25.58 75.82 74.85z' fill='%23f28618'/%3E%3Cpath fill='%230492be' d='M100.66 277.37H26.9V114.06h240.72V50.84l131.7 100.1-131.7 100.09v-63.22H100.66v89.56z'/%3E%3Cpath fill='%23103957' opacity='.2' d='M63.78 150.94h335.54l-131.7-100.1v63.22H26.9v163.31h36.88V150.94z'/%3E%3Cpath d='M259.71 34.94l152.67 116-152.67 116v-71.23H108.55v89.56H19V106.15h240.71zm126.55 116L275.52 66.77v55.17H34.8v147.53h57.95v-89.53h182.77v55.19z'/%3E%3Cpath fill='%23fff' d='M292.951 119.43l9.638-12.482 47.456 36.642-9.638 12.482z'/%3E%3Cpath d='M150.09 620.77c-77 0-139.59-62.62-139.59-139.59s62.65-139.59 139.59-139.59 139.59 62.62 139.59 139.59-62.62 139.59-139.59 139.59z' fill='%23ffe14d'/%3E%3Cpath d='M150.09 352.09A129.09 129.09 0 1 1 21 481.18a129.24 129.24 0 0 1 129.09-129.09m0-21C67.33 331.09 0 398.42 0 481.18s67.33 150.09 150.09 150.09 150.06-67.33 150.06-150.09-67.3-150.09-150.06-150.09z' fill='%230f0f0f'/%3E%3Cpath d='M21 481.18a129.24 129.24 0 0 0 129.09 129.09V352.09A129.24 129.24 0 0 0 21 481.18z' fill='%23fc3'/%3E%3Cpath d='M150.09 586.3A105.12 105.12 0 1 0 44.97 481.18 105.24 105.24 0 0 0 150.09 586.3zm0-179c49.27 0 74.85 24.6 74.85 73.87s-25.58 74.85-74.85 74.85-75.82-25.58-75.82-74.85 26.55-73.86 75.82-73.86z' fill='%23ff9f19'/%3E%3Cpath d='M74.26 481.18c0-49.27 26.55-74.85 75.82-74.85v-30.27a105.12 105.12 0 1 0 0 210.24v-30.27c-49.26 0-75.82-25.58-75.82-74.85z' fill='%23f28618'/%3E%3Cpath fill='%230492be' d='M519.39 353.9h73.75v163.31H352.43v63.22L220.72 480.34l131.71-100.1v63.22h166.96V353.9z'/%3E%3Cpath fill='%23103957' opacity='.2' d='M556.26 480.34H220.72l131.71 100.09v-63.22h240.71V353.9h-36.88v126.44z'/%3E%3Cpath d='M360.32 596.36l-152.66-116 152.66-116v71.25h151.16V346h89.56v179.11H360.32zm-126.55-116l110.74 84.16v-55.21h240.73V361.8h-57.95v89.56H344.52v-55.19z'/%3E%3Cpath fill='%23fff' d='M268.572 486.574l9.7-12.473 47.419 36.875-9.7 12.473z'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;vertical-align:middle;margin-right:.25rem}.nav-container .nav-scroll .nav-inner .nav-item a{color:#095f79;display:block;font-size:16px;font-weight:300;padding:10px;white-space:nowrap;position:relative;min-height:2.75rem}.nav-container .nav-scroll .nav-inner .nav-item a:after{content:"";background:#0e97c0;height:2px;width:100%;left:0;position:absolute;bottom:-1px;-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.nav-container .nav-scroll .nav-inner .nav-item.active a,.nav-container .nav-scroll .nav-inner .nav-item a:focus,.nav-container .nav-scroll .nav-inner .nav-item a:hover{color:#0e97c0;text-decoration:none;-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s}.nav-container .nav-scroll .nav-inner .nav-item.active a:after,.nav-container .nav-scroll .nav-inner .nav-item a:focus:after,.nav-container .nav-scroll .nav-inner .nav-item a:hover:after{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s}.nav-container .nav-arrow-left,.nav-container .nav-arrow-right{background-color:#fff;bottom:12px;color:#d6d6d6;font-size:33px;line-height:1.3;min-width:50px;position:absolute;top:0;vertical-align:middle;width:5%;z-index:999}.nav-container .nav-arrow-left:hover,.nav-container .nav-arrow-right:hover{text-decoration:none}.nav-container .nav-arrow-right{right:3%;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(47%,#fff),to(#fff));background:-webkit-linear-gradient(left,hsla(0,0%,100%,0),#fff 47%,#fff);background:-o-linear-gradient(left,hsla(0,0%,100%,0) 0,#fff 47%,#fff 100%);background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 47%,#fff);padding-right:5px;text-align:right}@media screen and (max-width:51.2rem){.nav-container .nav-arrow-right{right:0}}.nav-container .nav-arrow-left{left:3%;background:-webkit-gradient(linear,right top,left top,from(hsla(0,0%,100%,0)),color-stop(47%,#fff),to(#fff));background:-webkit-linear-gradient(right,hsla(0,0%,100%,0),#fff 47%,#fff);background:-o-linear-gradient(right,hsla(0,0%,100%,0) 0,#fff 47%,#fff 100%);background:linear-gradient(270deg,hsla(0,0%,100%,0) 0,#fff 47%,#fff);padding-left:5px;text-align:left}@media screen and (max-width:51.2rem){.nav-container .nav-arrow-left{left:0}}.print-container{width:680px;height:280px;border:1px solid gray;margin-bottom:50px;position:relative}.print-container #identicon{-webkit-print-color-adjust:exact;position:absolute;right:7.5rem;bottom:3rem}.print-container #identicon:after{content:"Always look for this icon when sending to this wallet.";font-size:9px;width:120px;position:absolute;bottom:.75rem;text-align:center;right:-7.5rem}.print-title{float:left}.print-text{color:#0b7290;text-transform:uppercase;letter-spacing:.05em;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);position:absolute;right:0;bottom:0;font-size:13px;font-weight:600}.print-qr-code-1{width:28%;float:left;position:relative;padding:20px}.print-qr-code-1 .print-text{right:-35px;bottom:69px}.print-qr-code-2{width:28%;float:left;position:relative;padding:20px}.print-qr-code-2 .print-text{right:-45px;bottom:69px}.print-notes{width:28%;float:left;position:relative;padding:20px}.print-notes .print-text{right:-45px;bottom:69px}.print-address-container{float:left;width:85%;padding:0 25px}.print-address-container p{font-size:14px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.ether-logo-1{position:absolute;left:100px}.ether-logo-2{position:absolute;right:32px;bottom:64px}.block--container{max-width:113rem;margin-left:-1%;margin-right:-1%}.block__wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.block{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative}.block:after,.block:before{content:" ";display:table}.block:after{clear:both}@media screen and (max-width:32rem){.block{padding:1.25rem}}.block>:first-child{margin-top:0}.block>:last-child{margin-bottom:0}.block--text-white *,.block--text-white a{color:#fff}.block--text-white a:focus,.block--text-white a:hover{color:hsla(0,0%,100%,.9)}.block--danger{background-color:#ea4b40}.block--danger *,.block--danger a{color:#fff}.block--danger a:focus,.block--danger a:hover{color:hsla(0,0%,100%,.9)}.block--warning{background-color:#ff9800}.block--warning *,.block--warning a{color:#fff}.block--warning a:focus,.block--warning a:hover{color:hsla(0,0%,100%,.9)}.block--info{background-color:#163151}.block--info *,.block--info a{color:#fff}.block--info a:focus,.block--info a:hover{color:hsla(0,0%,100%,.9)}.block--primary{background-color:#0e97c0}.block--primary *,.block--primary a{color:#fff}.block--primary a:focus,.block--primary a:hover{color:hsla(0,0%,100%,.9)}.block--success{background-color:#5dba5a}.block--success *,.block--success a{color:#fff}.block--success a:focus,.block--success a:hover{color:hsla(0,0%,100%,.9)}.block__main{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative;text-align:left;padding:.75rem;-webkit-flex-basis:98%;-ms-flex-preferred-size:98%;flex-basis:98%;margin:1rem .5%}.block__main:after,.block__main:before{content:" ";display:table}.block__main:after{clear:both}@media screen and (max-width:32rem){.block__main{padding:1.25rem}}.block__main>:first-child{margin-top:0}.block__main>:last-child{margin-bottom:0}@media screen and (min-width:51.2rem){.block__main{-webkit-flex-basis:68%;-ms-flex-preferred-size:68%;flex-basis:68%}}@media screen and (min-width:66.13333333rem){.block__main{-webkit-flex-basis:73%;-ms-flex-preferred-size:73%;flex-basis:73%}}.block__help{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative;background-image:url(../images/icon-help-2.svg);background-size:8rem;background-position:102% -5%;background-repeat:no-repeat;text-align:left;margin:1rem 1%;-webkit-flex-basis:98%;-ms-flex-preferred-size:98%;flex-basis:98%}.block__help:after,.block__help:before{content:" ";display:table}.block__help:after{clear:both}@media screen and (max-width:32rem){.block__help{padding:1.25rem}}.block__help>:last-child{margin-bottom:0}@media screen and (min-width:51.2rem){.block__help{-webkit-flex-basis:28%;-ms-flex-preferred-size:28%;flex-basis:28%}}@media screen and (min-width:66.13333333rem){.block__help{-webkit-flex-basis:23%;-ms-flex-preferred-size:23%;flex-basis:23%}}.block__help a{color:#ff5722}.block__help a:hover{color:#ff4408}.block__help>:first-child{margin-top:0}.block__help ul{list-style:circle}.block__help ol,.block__help ul{padding-left:1rem}.block__help h2{font-size:1.15rem;font-weight:400}.equal-space>*{margin-top:1rem;margin-bottom:1rem}.u-center-h{text-align:center}.gen__1 .input-group{max-width:43rem;margin:1rem auto}.gen__1--inner{text-align:center}.gen__1--inner h1{margin:1rem auto 2rem}.gen__1--inner h4{margin:3rem auto 1rem}.gen__1--inner p{margin:0 0 2rem}.gen__1--inner .btn{margin:0 auto 3rem}.gen__2--inner{text-align:center}.gen__2--inner h1{margin:1rem auto}.gen__2--inner>.btn{margin:1rem auto 2rem}.gen__2--inner .warn{margin:2rem auto}.gen__3--inner{text-align:center}.gen__3--inner h1{margin:2rem auto 1rem}.gen__3--inner>.btn,.gen__3--inner>.form-control{margin:0 auto 3rem}.pre-footer{padding:1rem;-webkit-box-shadow:16px 16px 47px 0 rgba(0,0,0,.07);box-shadow:16px 16px 47px 0 rgba(0,0,0,.07);margin-top:5rem;background-color:#fff;text-align:center}.pre-footer p{font-size:1.3rem}.footer{background-color:#102138;color:#fff;font-size:.8rem;margin-top:0}.footer h5{margin-top:.5rem;margin-bottom:.25rem}.footer h5 i{margin-left:-1.5em;margin-right:.25em}.footer h5:first-child{margin-top:0}.footer ul{list-style:none;padding-left:0;margin:0}.footer li,.footer p{font-size:.8rem;margin:.25em 0}.footer a{color:#7fe5ff;font-weight:400}.footer a:focus,.footer a:hover{color:#4cdbff}.footer small{font-size:.6rem}.footer--logo{width:100%;height:auto;max-width:16rem}.header--gas{max-width:26rem;color:#333}.header--gas p{font-weight:400;margin:.5rem 0 0}.header--gas a,.header--gas a:focus,.header--gas a:hover,.header--gas a:visited{color:#0e97c0}.footer--left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:22rem;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:32rem){.footer--left{max-width:100%}}.footer--cent{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:34rem;-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2}@media screen and (max-width:32rem){.footer--cent{max-width:100%}}.footer--cent li:last-child,.footer--cent ul{margin-bottom:0}.footer--righ{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:28rem;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:32rem){.footer--righ{max-width:100%}}.footer__icon{display:inline-block;height:30px;width:30px;padding:5px}.footer__pill-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}a.footer__pill{display:inline;background:#0e97c0;padding:3px 12px;border-radius:30px;color:#fff}a.footer__pill:focus,a.footer__pill:hover{color:#0e97c0;background:#fff;opacity:1}.custom-token-fields label{font-weight:400;font-size:1rem}.custom-token-fields input{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.custom-token-fields input{height:2rem;line-height:2rem}select[multiple].custom-token-fields input,textarea.custom-token-fields input{height:auto}.custom-token-fields input .mono{font-size:.75rem}.custom-token-fields .address-identicon-container{margin-top:2rem}.swap--btc,.swap--hw,.swap--usd{text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1rem .15rem}.swap--btc .col-sm-7,.swap--hw .col-sm-7,.swap--usd .col-sm-7{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.swap--usd{background-color:#2b71b1}.swap--usd *,.swap--usd a{color:#fff}.swap--usd a:focus,.swap--usd a:hover{color:hsla(0,0%,100%,.9)}.swap--usd .swap-flag--bal,.swap--usd .swap-flag--price{background-color:#2e86d7}.swap--btc{background-color:#006e79}.swap--btc *,.swap--btc a{color:#fff}.swap--btc a:focus,.swap--btc a:hover{color:hsla(0,0%,100%,.9)}.swap--btc .swap-flag--bal,.swap--btc .swap-flag--price{background-color:#00a3b4}.swap--hw{background-color:#6e9a3e}.swap--hw *,.swap--hw a{color:#fff}.swap--hw a:focus,.swap--hw a:hover{color:hsla(0,0%,100%,.9)}.swap--hw .swap-flag--bal,.swap--hw .swap-flag--price{background-color:#81bc3f}.swap--hw .swap__logo{margin:.45rem 0}.swap-flag--bal,.swap-flag--price{background-color:#5dba5a;color:#fff;padding:.1rem .5rem;font-size:.7rem;border-radius:5rem;margin:.7rem 0 0;line-height:1.4;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.swap__subhead{font-size:.8rem;margin:.15rem 0}.swap__cta{font-size:1.25rem;margin:.15rem 0}.swap__logo{margin:0}.swap__nav{margin-top:-1.1rem;margin-bottom:.7rem;text-align:center}.swap__nav a{color:#9a9a9a;padding:0 .2rem .6rem}.send-modal__addr{font-size:12px}.u__protip{display:table}.u__protip:before{content:"";display:table-cell;width:2em;height:1em;background-image:url(../images/icon-protip.svg);background-size:contain;vertical-align:middle;text-align:center;background-position:50%;background-repeat:no-repeat;border-right:.5em solid transparent}.u__download{display:table;margin-left:.5em}.u__download:before{content:"";display:table-cell;width:1.25em;height:1em;background-image:url(../images/icon-external-link.svg);background-size:contain;vertical-align:middle;text-align:center;background-position:50%;background-repeat:no-repeat;border-right:.5em solid transparent}.send__load-tokens{padding:5px 2px;margin:0;background-color:#ff9800;text-align:center;color:#fff;font-size:9px}.send__load-tokens img{width:14px;height:14px}.send__load-tokens p{margin:4px 0 0;font-weight:500}.send__load-tokens:hover{color:#fff;opacity:.8}.onboarding__modal{padding:1rem}.onboarding__modal:after,.onboarding__modal:before{content:" ";display:table}.onboarding__modal:after{clear:both}.onboarding__modal .btn-primary{background-image:url(../images/icon-arrow-right.svg);background-size:contain;background-position:100%;background-repeat:no-repeat}.onboarding__modal .btn-default{background-image:url(../images/icon-arrow-left.svg);background-size:contain;background-position:0;background-repeat:no-repeat}.onboarding__modal .onboarding__title{text-align:center;margin-bottom:1.5rem}@media (max-width:50.2rem){.onboarding__modal .onboarding__title{margin:0 auto .5rem}}.onboarding__modal img{margin-top:1rem;margin-bottom:1rem}@media (max-width:50.2rem){.onboarding__modal img{max-height:200px}}.onboarding__modal .onboarding__buttons .btn{margin-top:.5rem;margin-bottom:.5rem}@media (min-width:51.2rem){.onboarding__modal .onboarding__buttons{margin-top:.5rem;margin-bottom:.5rem}.onboarding__modal .onboarding__buttons:after,.onboarding__modal .onboarding__buttons:before{content:" ";display:table}.onboarding__modal .onboarding__buttons:after{clear:both}.onboarding__modal .onboarding__buttons .btn+.btn{float:right}}@media (max-width:50.2rem){.onboarding__modal .onboarding__buttons .btn{display:block}.onboarding__modal .onboarding__buttons .btn+.btn{margin-top:1.5rem}}@media (max-width:50.2rem){.onboarding__modal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.onboarding__modal .onboarding__content,.onboarding__modal .onboarding__image{-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2}.onboarding__modal .onboarding__content+.onboarding__image{-webkit-box-ordinal-group:2;-webkit-order:1;-ms-flex-order:1;order:1}}.row.row--flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media (max-width:50.2rem){.row.row--flex{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}}.onboarding__msg{text-align:center;font-size:.9rem} \ No newline at end of file +/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline;color:#000}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #000;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}.print-text{color:#0b7290!important}footer{border-top:1px solid #000}header{border-bottom:1px solid #000;border-top:0 solid #fff!important}.btn{border:1px solid #000;color:1px solid #000;background:transparent!important}.nav-container{display:none!important}.footer-1 img{width:40px!important}.footer-1 *,.footer-2 *,.footer-3 *{font-size:8px!important;line-height:1.1!important}.footer-1 .footer-2,.footer-1 .footer-3,.footer-2 .footer-2,.footer-2 .footer-3,.footer-3 .footer-2,.footer-3 .footer-3{float:left!important}.h1,h1{font-size:18px}.h1,.h2,h1,h2{font-weight:700}.h2,h2{font-size:17px}.h3,h3{font-size:16px}.h3,.h4,h3,h4{font-weight:700}.h4,h4{font-size:15px}.h5,h5{font-size:14px}.h5,.h6,h5,h6{font-weight:700}.h6,h6{font-size:13px}.modal{position:inherit!important;page-break-inside:avoid;page-break-before:always}}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:15 px;-webkit-tap-highlight-color:rgba(0,0,0,0);height:100%}@media screen and (min-width:94rem){html{font-size:16px}}@media screen and (max-width:50.2rem){html{font-size:15 px}}body{font-family:Lato,sans-serif;font-size:1rem;line-height:1.4;color:#333;background-color:#fbfbfb;height:100%}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}figure{margin:0}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-thumbnail{padding:.2rem;line-height:1.4;background-color:#fbfbfb;border:1px solid #ddd;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid #ececec}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:700;line-height:1.2;color:inherit;letter-spacing:.02em}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:inherit}.h1,.h2,.h3,h1,h2,h3{margin-top:1rem;margin-bottom:.5rem}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:1rem;margin-bottom:.5rem}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:2.25rem}.h1,.h2,h1,h2{font-weight:300}.h2,h2{font-size:1.9rem}.h3,h3{font-size:1.5rem}.h3,.h4,h3,h4{font-weight:700}.h4,h4{font-size:1.3rem}.h5,h5{font-size:1.15rem}.h5,.h6,h5,h6{font-weight:400}.h6,h6{font-size:1.07rem}p{margin:0 0 .5rem;font-weight:300}p.strong,p .strong,p strong{font-weight:400}i{font-style:normal}.strong,strong{font-weight:600}.lead{margin-bottom:1.4;font-size:1rem}a{color:#0e97c0;text-decoration:none;cursor:pointer}a,a:hover{-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}a:hover{opacity:.8;color:#0c84a8}a:active,a:focus{opacity:1;-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}a:focus{outline:thin dotted;outline-offset:3px}.point{cursor:pointer}.strike{text-decoration:line-through}.small,small{font-size:85%}.mark,mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#9a9a9a}.text-primary{color:#0e97c0}a.text-primary:focus,a.text-primary:hover{color:#0c84a8}.text-success{color:#459f42}a.text-success:focus,a.text-success:hover{color:#3d8d3b}.text-info{color:#0b1929}a.text-info:focus,a.text-info:hover{color:#060d15}.text-warning{color:#cc7a00}a.text-warning:focus,a.text-warning:hover{color:#b36a00}.text-danger{color:#df2518}a.text-danger:focus,a.text-danger:hover{color:#c82116}.text-underline{text-decoration:underline}.text-light{font-weight:200}.bg-primary{color:#fff;background-color:#0e97c0}a.bg-primary:focus,a.bg-primary:hover{background-color:#0b7290}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:-.5rem;margin:2.8 0 1.4;border-bottom:1px solid #ececec}ol,ul{margin-top:0;margin-bottom:1em}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}li{margin-bottom:.5em;font-weight:300}li strong{font-weight:400}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline{margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:1.4}dd,dt{line-height:1.4}dt{font-weight:700}dd{margin-left:0}@media (min-width:51.2rem){.dl-horizontal dt{float:left;width:-8rem;clear:left;text-align:right;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:12rem}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #9a9a9a}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:.5rem 1.4;margin:0 0 1.4;font-size:1.25rem;border-left:5px solid #ececec}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.4;color:#9a9a9a}blockquote .small:before,blockquote footer:before,blockquote small:before{content:"\2014 \00A0"}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #ececec;border-left:0;text-align:right}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:""}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:"\00A0 \2014"}address{margin-bottom:1.4;font-style:normal;line-height:1.4}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace}code{color:#c7254e;background-color:#f9f2f4}code,kbd{padding:2px 4px;font-size:90%;border-radius:0}kbd{color:#fff;background-color:#333;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:.2;margin:0 0 .7;font-size:0;line-height:1.4;word-break:break-all;word-wrap:break-word;color:#333;background-color:#fafafa;border:1px solid #ececec;border-radius:0}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:23rem;overflow-y:scroll}.container{width:100%;margin-right:auto;margin-left:auto;max-width:113rem;padding:0 5rem}@media screen and (max-width:80rem){.container{padding:0 3%}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:1rem;padding-right:1rem}.row{margin-left:-1rem;margin-right:-1rem}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{position:relative;min-height:1px;padding-left:1rem;padding-right:1rem}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:51.2rem){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:66.13333333rem){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:80rem){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent;margin-bottom:10px;border-bottom:1px solid #ddd}caption{padding-top:.5rem;padding-bottom:.5rem;color:#9a9a9a}caption,th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:1.4}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:.5rem;line-height:1.4;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fbfbfb}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:.25rem}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f5f5f5}.table-striped>tbody>tr>td,.table-striped>tbody>tr>th,.table-striped>tfoot>tr>td,.table-striped>tfoot>tr>th,.table-striped>thead>tr>td,.table-striped>thead>tr>th{border-top:0}.table-mnemonic{border-bottom:0;font-weight:400}.table-mnemonic th{border-bottom:1px solid #ececec;vertical-align:bottom}.table-mnemonic td:first-child{font-family:Menlo,Monaco,Consolas,Courier New,monospace}.table-mnemonic tr:last-child td:first-child{text-align:left}.table-mnemonic tr:first-child,.table-mnemonic tr:last-child:not(.mnemonic-custom-row){background-color:#fff!important}.table-mnemonic.table>tbody>tr>td,.table-mnemonic.table>tbody>tr>th,.table-mnemonic.table>tfoot>tr>td,.table-mnemonic.table>tfoot>tr>th,.table-mnemonic.table>thead>tr>td,.table-mnemonic.table>thead>tr>th{padding:.25rem}.table-mnemonic .mnemonic-custom-row input[type=text]{margin:-5px;display:inline;width:70%;max-width:15rem}.table-mnemonic label{margin:.15rem}.table-hover,.table-hover>tbody>tr>td,.table-hover>tbody>tr>th,.table-hover>tfoot>tr>td,.table-hover>tfoot>tr>th,.table-hover>thead>tr>td,.table-hover>thead>tr>th,.table-hover td,.table-hover th,.table-hover tr{border:0 solid #fff}.table-hover>tbody>tr:hover{background-color:#fafafa}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#fafafa}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#ededed}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}@media screen and (max-width:50.2rem){.table-responsive{width:100%;margin-bottom:1.05;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}.table-domainsale-modal .table-ens-modal{font-weight:400;font-size:16px}.table-domainsale-modal .table-ens-modal textarea{font-size:11px;word-break:break-all;padding:.5rem}fieldset{margin:0;min-width:0}fieldset,legend{padding:0;border:0}legend{display:block;width:100%;margin-bottom:1.4;font-size:1.5rem;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-top:.5rem;margin-bottom:.25rem;font-weight:600;font-size:1.15rem}label small{font-weight:300;font-size:1em}td label{font-weight:400}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:3px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted;outline-offset:3px}output{display:block;padding-top:1.75rem;font-size:1rem;line-height:1.4;color:#333}.account-help-icon+.btn,.account-help-icon+input,.account-help-icon+textarea,label+.form-control,label+input,label+textarea{margin-top:0}.form-control{display:block;width:100%;height:2.55rem;padding:.25rem 1rem;font-size:1rem;line-height:2;color:#333;background-color:#fff;background-image:none;border:1px solid #ececec;margin-top:.5rem;margin-bottom:.5rem;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}.form-control:focus{border-color:#0e97c0;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(14,151,192,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 2px rgba(14,151,192,.5)}.form-control::-moz-placeholder{color:#d3d3d3;opacity:1}.form-control:-ms-input-placeholder{color:#d3d3d3}.form-control::-webkit-input-placeholder{color:#d3d3d3}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#ececec;opacity:1;cursor:text!important;-webkit-box-shadow:none!important;box-shadow:none!important}.form-control[disabled],fieldset[disabled] .form-control{cursor:default}textarea.form-control{height:auto;line-height:1.4}input[readonly]{background-color:#fafafa;cursor:text!important}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:2.55rem}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:2rem}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:4rem}}.form-group{margin-top:.5rem;margin-bottom:.5rem;display:block}.checkbox,.radio{position:relative;display:block;margin:15px 0;font-weight:500}.checkbox label,.radio label{min-height:1.4;padding-left:20px;padding-right:15px;margin-bottom:0;font-weight:500;cursor:pointer}.checkbox.small,.radio.small{margin:.2rem 0}.checkbox-inline input[type=checkbox],.checkbox input[type=checkbox],.radio-inline input[type=radio],.radio input[type=radio]{margin-left:-20px}input[type=radio]{margin-right:5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .checkbox label,fieldset[disabled] .radio-inline,fieldset[disabled] .radio label,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:default}.form-control-static{padding-top:1.75rem;padding-bottom:1.75rem;margin-bottom:0;min-height:2.4rem}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.input-sm{height:2rem;line-height:2rem}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5}.form-group-sm select.form-control{height:2rem;line-height:2rem}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:2rem;min-height:2.3rem;padding:1.5rem 1rem;font-size:.9rem;line-height:1.5}.input-lg{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2;border-radius:0}select.input-lg{height:4rem;line-height:4rem}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2}.form-group-lg select.form-control{height:4rem;line-height:4rem}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:4rem;min-height:3.3rem;padding:2rem;font-size:1.9rem;line-height:1.2}.form-control.is-valid{border-color:#b5e0b4;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(93,186,90,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(93,186,90,.5)}.form-control.is-valid:focus{border-color:#92d190;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(93,186,90,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(93,186,90,.5)}.form-control.is-invalid{border-color:#f7b7b3;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(234,75,64,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(234,75,64,.5)}.form-control.is-invalid:focus{border-color:#f28c85;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(234,75,64,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(234,75,64,.5)}.form-control.is-semivalid{border-color:#ffcc80;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(255,152,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 1px rgba(255,152,0,.5)}.form-control.is-semivalid:focus{border-color:#ffb74d;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(255,152,0,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 3px rgba(255,152,0,.5)}.flagged-address{color:red;font-weight:700}.btn{background-image:none;cursor:pointer;border:1px solid gray;display:inline-block;font-weight:400;letter-spacing:.05em;margin-top:.5rem;margin-bottom:0;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;vertical-align:middle;white-space:nowrap;padding:.75rem 2rem;font-size:1.07rem;line-height:1.4;border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline-offset:3px}.btn.focus,.btn:focus,.btn:hover{color:#222;text-decoration:none;border-bottom-color:transparent;-webkit-box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1);box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1)}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.alert .btn-info{background-color:#fff;text-decoration:none;color:#163151}.alert .btn-info.focus,.alert .btn-info:focus,.alert .btn-info:hover{color:#fff;text-decoration:none;opacity:1}.alert .btn-info.disabled{background-color:#fff;text-decoration:none;color:#163151;opacity:.6}.btn-default{color:#222;background-color:#c3c3c3;border-color:#bdbdbd;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#222;background-color:#b6b6b6;border-color:#b0b0b0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#222;background-color:#9d9d9d;border-color:#979797;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#c3c3c3;border-color:#bdbdbd}.btn-default .badge{color:#c3c3c3;background-color:#222}.btn-primary{color:#fff;background-color:#0e97c0;border-color:#0e97c0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#0c84a8;border-color:#0c84a8;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#095f79;border-color:#095f79;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#0e97c0;border-color:#0e97c0}.btn-primary .badge{color:#0e97c0;background-color:#fff}.btn-success{color:#fff;background-color:#5dba5a;border-color:#5dba5a;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#4db14a;border-color:#4db14a;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#3d8d3b;border-color:#3d8d3b;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5dba5a;border-color:#5dba5a}.btn-success .badge{color:#5dba5a;background-color:#fff}.btn-info{color:#fff;background-color:#163151;border-color:#163151;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#11253d;border-color:#11253d;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#060d15;border-color:#060d15;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#163151;border-color:#163151}.btn-info .badge{color:#163151;background-color:#fff}.btn-warning{color:#fff;background-color:#ff9800;border-color:#ff9800;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#e68900;border-color:#e68900;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#b36a00;border-color:#b36a00;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#ff9800;border-color:#ff9800}.btn-warning .badge{color:#ff9800;background-color:#fff}.btn-danger{color:#fff;background-color:#ea4b40;border-color:#ea4b40;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#e73529;border-color:#e73529;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#c82116;border-color:#c82116;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#ea4b40;border-color:#ea4b40}.btn-danger .badge{color:#ea4b40;background-color:#fff}.btn-white{background-color:hsla(0,0%,100%,.8);border-color:hsla(0,0%,100%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease;color:#163151}.btn-white.active,.btn-white.focus,.btn-white:active,.btn-white:focus,.btn-white:hover,.open>.dropdown-toggle.btn-white{color:#163151;background-color:hsla(0,0%,95%,.8);border-color:hsla(0,0%,95%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-white.active.focus,.btn-white.active:focus,.btn-white.active:hover,.btn-white:active.focus,.btn-white:active:focus,.btn-white:active:hover,.open>.dropdown-toggle.btn-white.focus,.open>.dropdown-toggle.btn-white:focus,.open>.dropdown-toggle.btn-white:hover{color:#163151;background-color:hsla(0,0%,85%,.8);border-color:hsla(0,0%,85%,.8);-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-white.active,.btn-white:active,.open>.dropdown-toggle.btn-white{background-image:none}.btn-white.disabled,.btn-white.disabled.active,.btn-white.disabled.focus,.btn-white.disabled:active,.btn-white.disabled:focus,.btn-white.disabled:hover,.btn-white[disabled],.btn-white[disabled].active,.btn-white[disabled].focus,.btn-white[disabled]:active,.btn-white[disabled]:focus,.btn-white[disabled]:hover,fieldset[disabled] .btn-white,fieldset[disabled] .btn-white.active,fieldset[disabled] .btn-white.focus,fieldset[disabled] .btn-white:active,fieldset[disabled] .btn-white:focus,fieldset[disabled] .btn-white:hover{background-color:hsla(0,0%,100%,.8);border-color:hsla(0,0%,100%,.8)}.btn-white .badge{color:hsla(0,0%,100%,.8);background-color:#163151}.header-branding a.btn-white{color:#163151}.header-branding a.btn-white:focus,.header-branding a.btn-white:hover{background:#fff;opacity:1;color:#163151}.btn-group .btn-default{border-bottom-width:1px}.btn-group .btn-default.active{border:1px solid #0e97c0;color:#0e97c0;background:#f5f5f5}.btn-link{color:#0e97c0;font-weight:400}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#0c84a8;text-decoration:none;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#9a9a9a;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:1rem 2rem;font-size:1.15rem;line-height:1.2;border-radius:0}.btn-group-sm>.btn,.btn-sm{padding:.5rem 1rem;font-size:1rem;line-height:1.5;border-radius:0}.btn-group-xs>.btn,.btn-xs{font-size:.75rem;line-height:1.5;border-radius:0;padding:.1rem .6rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}.btn-file,input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.btn-file{background-image:none;cursor:pointer;border:1px solid gray;display:inline-block;font-weight:400;letter-spacing:.05em;margin-top:.5rem;margin-bottom:0;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;vertical-align:middle;white-space:nowrap;padding:.75rem 2rem;font-size:1.07rem;line-height:1.4;border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;color:#222;background-color:#c3c3c3;border-color:#bdbdbd;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease;position:relative;overflow:hidden}.btn-file.active.focus,.btn-file.active:focus,.btn-file.focus,.btn-file:active.focus,.btn-file:active:focus,.btn-file:focus{outline:thin dotted;outline-offset:3px}.btn-file.focus,.btn-file:focus,.btn-file:hover{color:#222;text-decoration:none;border-bottom-color:transparent;-webkit-box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1);box-shadow:inset 3px 3px 3px hsla(0,0%,78%,.1)}.btn-file.active,.btn-file:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-file.disabled,.btn-file[disabled],fieldset[disabled] .btn-file{cursor:default;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn-file.disabled,fieldset[disabled] a.btn-file{pointer-events:none}.btn-file.active,.btn-file.focus,.btn-file:active,.btn-file:focus,.btn-file:hover,.open>.dropdown-toggle.btn-file{color:#222;background-color:#b6b6b6;border-color:#b0b0b0;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-file.active.focus,.btn-file.active:focus,.btn-file.active:hover,.btn-file:active.focus,.btn-file:active:focus,.btn-file:active:hover,.open>.dropdown-toggle.btn-file.focus,.open>.dropdown-toggle.btn-file:focus,.open>.dropdown-toggle.btn-file:hover{color:#222;background-color:#9d9d9d;border-color:#979797;-webkit-transition:all .25s ease;-o-transition:all ease .25s;transition:all .25s ease}.btn-file.active,.btn-file:active,.open>.dropdown-toggle.btn-file{background-image:none}.btn-file.disabled,.btn-file.disabled.active,.btn-file.disabled.focus,.btn-file.disabled:active,.btn-file.disabled:focus,.btn-file.disabled:hover,.btn-file[disabled],.btn-file[disabled].active,.btn-file[disabled].focus,.btn-file[disabled]:active,.btn-file[disabled]:focus,.btn-file[disabled]:hover,fieldset[disabled] .btn-file,fieldset[disabled] .btn-file.active,fieldset[disabled] .btn-file.focus,fieldset[disabled] .btn-file:active,fieldset[disabled] .btn-file:focus,fieldset[disabled] .btn-file:hover{background-color:#c3c3c3;border-color:#bdbdbd}.btn-file .badge{color:#c3c3c3;background-color:#222}.btn-file input[type=file]{position:absolute;top:0;right:0;min-width:100%;min-height:100%;font-size:100px;text-align:right;filter:alpha(opacity=0);opacity:0;background:red;cursor:inherit;display:block}.caret{display:inline-block;width:0;height:0;margin-left:.5rem;vertical-align:middle;border-top:.25rem dashed;border-right:.25rem solid transparent;border-left:.25rem solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle{margin-top:0;font-size:1rem;padding:.5rem 1rem}.dropdown:hover .dropdown-menu{display:block}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;min-width:160px;max-width:100vw;max-height:75vh;overflow:scroll;padding:0;margin:2px 0 0;list-style:none;font-size:.9rem;text-align:left;background-color:#fff;border-radius:0;-webkit-box-shadow:0 6px 10px rgba(0,0,0,.175);box-shadow:0 6px 10px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:2px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li{margin:0}.dropdown-menu>li:first-child{padding-top:2px}.dropdown-menu>li:last-child{padding-bottom:2px}.dropdown-menu>li>a{display:block;padding:2px 1rem;clear:both;font-weight:300;line-height:1.4;color:#163151;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#0e97c0;background-color:#fafafa}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#0e97c0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#9a9a9a}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:default}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:.9rem;line-height:1.4;color:#9a9a9a;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:.25rem solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:51.2rem){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle;margin-bottom:5px}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn-group{float:left}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn-lg .caret{border-width:.25rem .25rem 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 .25rem .25rem}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio],[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group>*{margin-bottom:0;margin-top:0}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%}.input-group .dropdown-toggle{padding-right:.75rem;padding-left:.75rem}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:4rem;padding:1rem 2rem;font-size:1.9rem;line-height:1.2;border-radius:0}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:4rem;line-height:4rem}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:2rem;line-height:2rem}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding-left:2rem;padding-right:2rem;font-size:1rem;font-weight:400;line-height:1;color:#333;text-align:center;background-color:#ececec;border:1px solid #dfdfdf;outline:0;-webkit-box-shadow:inset 0 1px 1px hsla(0,0%,93%,.5),0 0 1px hsla(0,0%,93%,.5);box-shadow:inset 0 1px 1px hsla(0,0%,93%,.5),0 0 1px hsla(0,0%,93%,.5)}.input-group-addon.input-sm{padding:.5rem 1rem;font-size:.9rem}.input-group-addon.input-lg{padding:1rem 2rem;font-size:1.9rem}.input-group-addon:focus{border:1px solid #dadada;outline:0;-webkit-box-shadow:inset 0 1px 1px #ececec,30%,0 0 1px hsla(0,0%,93%,.9);box-shadow:inset 0 1px 1px #ececec,30%,0 0 1px hsla(0,0%,93%,.9)}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative;margin-bottom:0;margin-top:0;font-size:1rem;padding:.55rem 2rem}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.alert{padding:.75rem 2rem;margin:1rem auto;font-weight:300;font-size:1.07rem}.alert h4{color:inherit}.alert>:first-child,.alert h4{margin-top:0}.alert>:last-child{margin-bottom:0}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert a{color:#fff;text-decoration:underline}.alert a:hover{opacity:.8}.alert a:active,.alert a:focus{opacity:1}.alert svg{vertical-align:bottom}.alert-danger--outline{padding:.5em .6em .6em .3em;margin:0 0 1em;border-top:2px solid #ea4b40;-webkit-box-shadow:0 1px 5px 1px rgba(63,63,63,.13);box-shadow:0 1px 5px 1px rgba(63,63,63,.13);font-size:.9em;font-weight:500}.alert-danger--outline:before{content:"";background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23ea4b40'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23ea4b40'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:1.75em;float:left;width:2em;height:4em;margin-right:.75em}.alert.popup{position:fixed;bottom:0;left:0;right:0;padding:1rem 0;-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.33);box-shadow:0 0 20px 0 rgba(0,0,0,.33);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out;z-index:1060;margin:0}.alert.popup .container{position:relative;padding:0 10rem 0 5rem}@media screen and (max-width:51.2rem){.alert.popup .container{padding:1rem 8rem 1rem 4rem}}@media screen and (max-width:32rem){.alert.popup .container{padding:3rem 1rem 0 4rem}}.alert.popup .container:after{content:"";background-position:50%;background-repeat:no-repeat;background-size:contain;display:block;color:#fff;position:absolute;top:0;bottom:0;left:1%;width:2.25rem}@media screen and (max-width:32rem){.alert.popup .container:after{top:2.5rem;left:.5rem}}.alert.popup .icon-close{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 348.333 348.334'%3E%3Cpath d='M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z' fill='%23FFF'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:1rem;cursor:pointer;opacity:.7;position:absolute;top:0;right:0;width:9rem;bottom:0;border-left:1px solid hsla(0,0%,100%,.7);-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}@media screen and (max-width:51.2rem){.alert.popup .icon-close{width:7rem}}@media screen and (max-width:32rem){.alert.popup .icon-close{width:100%;height:3rem;left:0;right:0;top:0;bottom:auto;border-left:0;border-bottom:1px solid hsla(0,0%,100%,.7)}}.alert.popup .icon-close:hover{border-color:hsla(0,0%,100%,.5)}.alert.popup .icon-close:active,.alert.popup .icon-close:hover{-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out;background-color:rgba(0,0,0,.1)}.alert.popup .icon-close:active{border-color:hsla(0,0%,100%,.7);opacity:1}.alert.popup.ng-hide{bottom:-20%;-webkit-transition:all .15s ease-in-out;-o-transition:.15s all ease-in-out;transition:all .15s ease-in-out}.alert,.alert-info{background-color:#0e97c0;border-color:#0e97c0;color:#fff}.alert-info hr,.alert hr{border-top-color:#0c84a8}.alert-info .alert-link,.alert .alert-link{color:#e6e6e6}.alert-info .container:after,.alert .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' x='30' y='30' viewBox='0 0 65 65' width='512' height='512'%3E%3Cpath d='M32.5 0C14.58 0 0 14.579 0 32.5S14.58 65 32.5 65 65 50.421 65 32.5 50.42 0 32.5 0zm0 61C16.785 61 4 48.215 4 32.5S16.785 4 32.5 4 61 16.785 61 32.5 48.215 61 32.5 61z' fill='%23FFF'/%3E%3Ccircle cx='33.018' cy='19.541' r='3.345' fill='%23FFF'/%3E%3Cpath d='M32.137 28.342a2 2 0 0 0-2 2v17a2 2 0 0 0 4 0v-17a2 2 0 0 0-2-2z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-success{background-color:#5dba5a;border-color:#5dba5a;color:#fff}.alert-success hr{border-top-color:#4db14a}.alert-success .alert-link{color:#e6e6e6}.alert-success .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 478.2 478.2' width='32' height='32'%3E%3Cpath d='M457.575 325.1c9.8-12.5 14.5-25.9 13.9-39.7-.6-15.2-7.4-27.1-13-34.4 6.5-16.2 9-41.7-12.7-61.5-15.9-14.5-42.9-21-80.3-19.2-26.3 1.2-48.3 6.1-49.2 6.3h-.1c-5 .9-10.3 2-15.7 3.2-.4-6.4.7-22.3 12.5-58.1 14-42.6 13.2-75.2-2.6-97-16.6-22.9-43.1-24.7-50.9-24.7-7.5 0-14.4 3.1-19.3 8.8-11.1 12.9-9.8 36.7-8.4 47.7-13.2 35.4-50.2 122.2-81.5 146.3-.6.4-1.1.9-1.6 1.4-9.2 9.7-15.4 20.2-19.6 29.4-5.9-3.2-12.6-5-19.8-5h-61c-23 0-41.6 18.7-41.6 41.6v162.5c0 23 18.7 41.6 41.6 41.6h61c8.9 0 17.2-2.8 24-7.6l23.5 2.8c3.6.5 67.6 8.6 133.3 7.3 11.9.9 23.1 1.4 33.5 1.4 17.9 0 33.5-1.4 46.5-4.2 30.6-6.5 51.5-19.5 62.1-38.6 8.1-14.6 8.1-29.1 6.8-38.3 19.9-18 23.4-37.9 22.7-51.9-.4-8.1-2.2-15-4.1-20.1zm-409.3 122.2c-8.1 0-14.6-6.6-14.6-14.6V270.1c0-8.1 6.6-14.6 14.6-14.6h61c8.1 0 14.6 6.6 14.6 14.6v162.5c0 8.1-6.6 14.6-14.6 14.6h-61v.1zm383.7-133.9c-4.2 4.4-5 11.1-1.8 16.3 0 .1 4.1 7.1 4.6 16.7.7 13.1-5.6 24.7-18.8 34.6-4.7 3.6-6.6 9.8-4.6 15.4 0 .1 4.3 13.3-2.7 25.8-6.7 12-21.6 20.6-44.2 25.4-18.1 3.9-42.7 4.6-72.9 2.2h-1.4c-64.3 1.4-129.3-7-130-7.1h-.1l-10.1-1.2c.6-2.8.9-5.8.9-8.8V270.1c0-4.3-.7-8.5-1.9-12.4 1.8-6.7 6.8-21.6 18.6-34.3 44.9-35.6 88.8-155.7 90.7-160.9.8-2.1 1-4.4.6-6.7-1.7-11.2-1.1-24.9 1.3-29 5.3.1 19.6 1.6 28.2 13.5 10.2 14.1 9.8 39.3-1.2 72.7-16.8 50.9-18.2 77.7-4.9 89.5 6.6 5.9 15.4 6.2 21.8 3.9 6.1-1.4 11.9-2.6 17.4-3.5.4-.1.9-.2 1.3-.3 30.7-6.7 85.7-10.8 104.8 6.6 16.2 14.8 4.7 34.4 3.4 36.5-3.7 5.6-2.6 12.9 2.4 17.4.1.1 10.6 10 11.1 23.3.4 8.9-3.8 18-12.5 27z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-warning{background-color:#ff9800;border-color:#ff9800;color:#fff}.alert-warning hr{border-top-color:#e68900}.alert-warning .alert-link{color:#e6e6e6}.alert-warning .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23FFF'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23FFF'/%3E%3C/svg%3E")}.alert-danger{background-color:#ea4b40;border-color:#ea4b40;color:#fff}.alert-danger hr{border-top-color:#e73529}.alert-danger .alert-link{color:#e6e6e6}.alert-danger .container:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath d='M505.403 406.394L295.389 58.102c-8.274-13.721-23.367-22.245-39.39-22.245s-31.116 8.524-39.391 22.246L6.595 406.394c-8.551 14.182-8.804 31.95-.661 46.37 8.145 14.42 23.491 23.378 40.051 23.378h420.028c16.56 0 31.907-8.958 40.052-23.379 8.143-14.421 7.89-32.189-.662-46.369zm-28.364 29.978a12.684 12.684 0 0 1-11.026 6.436H45.985a12.68 12.68 0 0 1-11.025-6.435 12.683 12.683 0 0 1 .181-12.765L245.156 75.316A12.732 12.732 0 0 1 256 69.192c4.41 0 8.565 2.347 10.843 6.124l210.013 348.292a12.677 12.677 0 0 1 .183 12.764z' fill='%23FFF'/%3E%3Cpath d='M256.154 173.005c-12.68 0-22.576 6.804-22.576 18.866 0 36.802 4.329 89.686 4.329 126.489.001 9.587 8.352 13.607 18.248 13.607 7.422 0 17.937-4.02 17.937-13.607 0-36.802 4.329-89.686 4.329-126.489 0-12.061-10.205-18.866-22.267-18.866zm.311 180.301c-13.607 0-23.814 10.824-23.814 23.814 0 12.68 10.206 23.814 23.814 23.814 12.68 0 23.505-11.134 23.505-23.814 0-12.99-10.826-23.814-23.505-23.814z' fill='%23FFF'/%3E%3C/svg%3E")}.well{min-height:20px;padding:1rem;margin-top:1rem;margin-bottom:1rem;background-color:#fafafa;border:1px solid #e8e8e8;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well :first-child{margin-top:0}.well :last-child{margin-bottom:0}.well.lg{padding:2rem}.well.sm{padding:.5rem}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal,.modal-open{overflow:hidden}.modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translateY(-25%);-ms-transform:translateY(-25%);-o-transform:translateY(-25%);transform:translateY(-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:-webkit-transform .3s ease-out;-o-transition:transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0);-ms-transform:translate(0);-o-transform:translate(0);transform:translate(0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border-radius:0;-webkit-box-shadow:1px 1px 60px rgba(0,0,0,.32);box-shadow:1px 1px 60px rgba(0,0,0,.32);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:.75rem 1.5rem}.modal-header .close{margin-top:-2px}.modal-title{margin:0 0 1rem;line-height:1.4}.modal-body{position:relative;padding:.75rem;font-size:1.15rem}.modal-body .table>tbody>tr>td{vertical-align:middle}.modal-body .addressIdenticon{margin:auto}.modal-footer{padding:1rem 1.5rem;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn{margin-top:0}.modal-footer .btn+.btn{margin-left:.5rem;margin-bottom:0;margin-top:0}#sendTransaction .modal-footer{text-align:center}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:51.2rem){.modal-dialog{width:800px;margin:30px auto}.modal-sm{width:30rem}}@media (min-width:66.13333333rem){.modal-lg{width:70rem}}.bity-contact:after,.bity-contact:before,.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.modal-footer:after,.modal-footer:before,.row:after,.row:before{content:" ";display:table}.bity-contact:after,.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.modal-footer:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:50.2rem){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:50.2rem){.visible-xs-block{display:block!important}}@media (max-width:50.2rem){.visible-xs-inline{display:inline!important}}@media (max-width:50.2rem){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-block{display:block!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-inline{display:inline!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-block{display:block!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-inline{display:inline!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.visible-md-inline-block{display:inline-block!important}}@media (min-width:80rem){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:80rem){.visible-lg-block{display:block!important}}@media (min-width:80rem){.visible-lg-inline{display:inline!important}}@media (min-width:80rem){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:50.2rem){.hidden-xs{display:none!important}}@media (min-width:51.2rem) and (max-width:65.13333333rem){.hidden-sm{display:none!important}}@media (min-width:66.13333333rem) and (max-width:79rem){.hidden-md{display:none!important}}@media (min-width:80rem){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}img{max-width:100%;height:auto}textarea{resize:vertical}.announcement{padding:3px 10px;text-align:center;font-weight:300;color:#fff;display:block;background-color:#0e97c0}.announcement a{text-decoration:underline;color:#fff}.announcement:focus,.announcement:hover,.announcement a{-webkit-transition:all .25s ease;-o-transition:.25s all ease;transition:all .25s ease}.announcement:focus,.announcement:hover{color:#f2f2f2;text-decoration:none;background-color:#0c84a8}.announcement strong{font-weight:400}.annoucement-warning{background-color:#ff5722}.annoucement-warning:focus,.annoucement-warning:hover{background-color:#ff4408}.annoucement-warning:focus a,.annoucement-warning:focus a:hover,.annoucement-warning:hover a,.annoucement-warning:hover a:hover{text-decoration:none}.annoucement-danger{background-color:#ea4b40}.annoucement-danger:hover{background-color:#ff4408}.annoucement-danger a:focus,.annoucement-danger a:hover{color:#f2f2f2}.annoucement-danger a:focus a,.annoucement-danger a:focus a:hover,.annoucement-danger a:hover a,.annoucement-danger a:hover a:hover{text-decoration:none}.address-identicon-container{padding:0;text-align:left;max-width:4.5rem;margin-left:-.5rem;margin-top:.5rem}.address-identicon-container-right{text-align:right}.address-identicon-container-right .addressIdenticon{float:right}.address-identicon-container-offline{padding:0;margin-left:-15px}.addressIdenticon{width:100%;height:auto;padding-bottom:100%;background-size:cover;background-repeat:no-repeat;border-radius:50%;-webkit-box-shadow:inset hsla(0,0%,100%,.5) 0 2px 2px,inset rgba(0,0,0,.6) 0 -1px 8px;box-shadow:inset 0 2px 2px hsla(0,0%,100%,.5),inset 0 -1px 8px rgba(0,0,0,.6)}.addressIdenticon.med{width:3rem;height:3rem;padding:0}.addressIdenticon.small{width:2rem;height:2rem;padding:0}.addressIdenticon.inline{display:inline-block}.addressIdenticon.float{float:left;margin-right:.5rem}.transaction-modal tbody tr td:first-child{width:30%}.transaction-modal tbody tr td:nth-child(2){width:70%}.transaction-modal .text-width-limit{display:grid;grid-auto-rows:1fr}.transaction-modal .text-width-limit p{margin:0;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.wrap{word-wrap:break-word}.bigger-on-mobile.form-control[readonly]{height:60px}@media screen and (max-width:767px){.bigger-on-mobile.form-control[readonly]{height:100px}}#paneHelp h3{margin-top:2em}.account-help-icon h3,.account-help-icon h4,.account-help-icon h5,.account-help-icon h6,.account-help-icon img{display:inline-block}.account-help-icon img:hover+.account-help-text{display:block;opacity:1;z-index:999}.account-help-icon img{margin-left:-30px;margin-right:3px}.account-help-icon:hover{opacity:1}.account-help-text{background:#fff;border-radius:0;border:1px solid #cdcdcd;-webkit-box-shadow:0 0 .5rem hsla(0,0%,39%,.2);box-shadow:0 0 .5rem hsla(0,0%,39%,.2);display:none;font-size:.75rem;font-weight:400;padding:.25rem;position:absolute;width:18rem;z-index:999;color:#333}ul.account-help-text{padding-left:1.6rem}.account-help-text li{font-size:.75rem;font-weight:400}@media screen and (max-width:767px){.account-help-icon img,.account-help-icon li,.account-help-icon p{display:none}}#accountAddress,#accountAddressMainTbl-1,#accountBalance,#accountBalanceBtc,#accountBalanceEur,#accountBalancePopMB-0,#accountBalancePopMB-2,#accountBalanceUsd,.form-control,.mono{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-weight:400;letter-spacing:.02em}.offline-qrcode{margin-top:-150px;max-width:300px}@media screen and (max-width:942px){.offline-qrcode{margin-top:-78px}}@media screen and (max-width:769px){.offline-qrcode{margin-top:0}}.account-info{padding-left:1em;margin:0}.account-info:after,.account-info:before{content:" ";display:table}.account-info:after{clear:both}.account-info li{margin-bottom:0;list-style-type:none;word-break:break-all}table.account-info{font-weight:200;border-bottom:0;min-width:200px;width:100%}table.account-info tbody{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}table.account-info td{padding:.3rem;line-height:1}table.account-info td:first-child{word-wrap:break-word;padding-left:1em}table.account-info tr{border-bottom:1px solid #f3f3f3}table.account-info tr:last-child,table.account-info tr:nth-last-child(2){border-bottom:0 solid #f3f3f3}table.account-info tr.custom-token{-webkit-box-ordinal-group:0;-webkit-order:-1;-ms-flex-order:-1;order:-1}input[type=text]+.eye{cursor:pointer}input[type=text]+.eye:before{content:"";width:20px;height:20px;margin-left:6px;margin-right:6px;display:inline-block;vertical-align:middle;background:url(../images/icon-eye.svg)}input[type=password]+.eye{cursor:pointer}input[type=password]+.eye:before{content:"";width:20px;height:20px;margin-left:6px;margin-right:6px;display:inline-block;vertical-align:middle;background:url(../images/icon-eye-closed.svg)}.collapse-container h1{margin:.25rem 0}.collapse-container .collapse-button{float:left;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;margin:5px -30px;font-size:1.6rem;line-height:.95;display:inline-block;width:25px;height:25px;text-align:center;border:1px solid #ddd;color:#c3c3c3;border-radius:5px}.help .collapse-container{margin:40px 0}.help .collapse-container .collapse-button{margin:-10px -30px;font-size:20px;line-height:1}.token-remove{width:.9rem;height:.9rem;position:absolute;left:18px;cursor:pointer}.node-remove{width:16px;height:16px;position:absolute;right:6px;top:8px}.m-addresses td:first-child{max-width:50px;min-widht:50px}.m-addresses td:last-child{text-align:right}.token-balances{margin-bottom:15px;font-size:14px;max-height:60vh;overflow:scroll}h2 a.isActive,h2 a.isActive:active,h2 a.isActive:hover{color:#333;cursor:default}.item{margin:6px 0}.output{padding:.5rem 1rem;margin-top:-.5rem}.output p{margin:.75rem 0 0}label .small{font-size:.9rem}label small{color:#9a9a9a}.write-address .col-xs-1{padding:0}.write-address .col-xs-11{padding-right:10px}.write-boolean label{display:block}.decrypt-drtv{padding:1rem 0}.decrypt-drtv label.radio{padding:0 1.5rem;margin:.5rem 0}.decrypt-drtv h4{margin-top:0}.qr-code{max-width:17rem;margin:auto}.qr-pkey-container{position:relative}.qr-overlay{background-color:#000;position:absolute;top:0;left:0;right:0;bottom:0}.contracts a.isActive{color:#333;font-weight:400}.contracts .dropdown-toggle{display:block;text-align:left;white-space:normal}.contracts .dropdown-toggle .caret{position:absolute;right:1rem;top:1.25rem}.contracts .dropdown-menu-left{font-size:.9rem;left:auto;right:0;min-width:37rem}.contracts .dropdown-menu-left small{float:right}.ens-tab a.isActive{color:#333;font-weight:400}.ens-tab .btn-primary-buy-button{width:200px}.ens-tab .btn-red{background-color:#84023d;border-color:#84023d;position:relative;width:200px}.ens-tab .btn-red .na{background-color:red;border-radius:300px;padding:5px 8px;font-weight:900}.ens-tab .btn-red:hover{background-color:#84023d;border-color:#84023d;position:relative}.ens-tab .pad-bot{padding-bottom:5px}.dropdown-gas{padding-bottom:1rem}@media screen and (max-width:900px){.dropdown-gas{padding-bottom:2rem}}.dropdown-gas__msg{font-size:12px;font-weight:300;margin:-10px auto 3px;max-width:113rem;padding:0 5rem;text-align:right;white-space:normal}@media screen and (max-width:80rem){.dropdown-gas__msg{padding:0 3%}}@media screen and (max-width:900px){.dropdown-gas__msg{margin-top:0;padding:0 1%}}.view-wallet-content h5{margin-bottom:.25rem}.view-wallet-content a.isActive{color:#333}#selectedTypeLedger ol{padding-left:1rem}.loading-wrap{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.7);z-index:999;text-align:center}.loading-wrap .loading{position:absolute;text-align:center;top:40%;left:50%;-webkit-transform:translate(-50%,-60%);-ms-transform:translate(-50%,-60%);transform:translate(-50%,-60%)}.loading-wrap img{border-radius:50%}.loading-wrap h1{-webkit-animation:opacity 2s infinite ease-in-out;animation:opacity 2s infinite ease-in-out;color:#fff}@-webkit-keyframes opacity{0%,to{opacity:0}50%{opacity:1}}@keyframes opacity{0%,to{opacity:0}50%{opacity:1}}.embedded-logo{height:auto;width:100%;max-width:290px;padding:.5rem 0}.ens-response{color:#737373}.dropdown-node .dropdown-menu li{border-left:2px solid #b50085;position:relative}.dropdown-node .dropdown-menu li:last-child{border-top:1px solid #ececec;padding-top:5px}.dropdown-node .dropdown-menu li:first-child,.dropdown-node .dropdown-menu li:nth-child(2),.dropdown-node .dropdown-menu li:nth-child(3),.dropdown-node .dropdown-menu li:nth-child(4){border-left:2px solid #0e97c0}.dropdown-node .dropdown-menu li:nth-child(5),.dropdown-node .dropdown-menu li:nth-child(6),.dropdown-node .dropdown-menu li:nth-child(7),.dropdown-node .dropdown-menu li:nth-child(8),.dropdown-node .dropdown-menu li:nth-child(9){border-left:2px solid #009241}.dropdown-node .dropdown-menu li:nth-child(10),.dropdown-node .dropdown-menu li:nth-child(11),.dropdown-node .dropdown-menu li:nth-child(12),.dropdown-node .dropdown-menu li:nth-child(13),.dropdown-node .dropdown-menu li:nth-child(14),.dropdown-node .dropdown-menu li:nth-child(15){border-left:2px solid #adc101}.dropdown-node .dropdown-menu li:nth-child(16){border-left:2px solid #673ab7}.dropdown-node .dropdown-menu li:nth-child(17){border-left:2px solid #00ad85}.dropdown-node .dropdown-menu li:nth-child(18){border-left:2px solid #4568bb}.dropdown-node .dropdown-menu li:nth-child(19){border-left:2px solid #6a488d}.dropdown-node .dropdown-menu li:nth-child(20){border-left:2px solid #046111}.dropdown-node .dropdown-menu li:nth-child(21){border-left:2px solid #4295d1}.dropdown-node .dropdown-menu li:nth-child(22){border-left:2px solid #0e97c0}.dropdown-node .dropdown-menu li:nth-child(23){border-left:2px solid #009241}.dropdown-node .dropdown-menu li:nth-child(24){border-left:2px solid #fece00}.dropdown-node .dropdown-menu li:nth-child(25){border-left:2px solid #27223d}.dropdown-node .dropdown-menu li:nth-child(26){border-left:2px solid #926565}.dropdown-node .dropdown-menu li:nth-child(27),.dropdown-node .dropdown-menu li:nth-child(28){border-left:2px solid #aa0087}.dropdown-node .dropdown-menu li:nth-child(29){border-left:2px solid #a16bff}.dropdown-node .dropdown-menu li:nth-child(30){border-left:2px solid #a2d729}.dropdown-node .dropdown-menu li:nth-child(31){border-left:2px solid #d63068}.dropdown-node .dropdown-menu li:nth-child(32){border-left:2px solid #09f}.dropdown-node .dropdown-menu li:nth-child(33){border-left:2px solid #4568bb}.dropdown-node .dropdown-menu li:nth-child(34){border-left:2px solid #0092ee}.dropdown-node .dropdown-menu li:last-child{border-left:2px solid #9a9a9a}.dropdown-node .dropdown-menu li:nth-child(4),.dropdown-node .dropdown-menu li:nth-child(9),.dropdown-node .dropdown-menu li:nth-child(15),.dropdown-node .dropdown-menu li:nth-child(16),.dropdown-node .dropdown-menu li:nth-child(17),.dropdown-node .dropdown-menu li:nth-child(18),.dropdown-node .dropdown-menu li:nth-child(19),.dropdown-node .dropdown-menu li:nth-child(20),.dropdown-node .dropdown-menu li:nth-child(21),.dropdown-node .dropdown-menu li:nth-child(22),.dropdown-node .dropdown-menu li:nth-child(23),.dropdown-node .dropdown-menu li:nth-child(24),.dropdown-node .dropdown-menu li:nth-child(25),.dropdown-node .dropdown-menu li:nth-child(26),.dropdown-node .dropdown-menu li:nth-child(28),.dropdown-node .dropdown-menu li:nth-child(29),.dropdown-node .dropdown-menu li:nth-child(30),.dropdown-node .dropdown-menu li:nth-child(31),.dropdown-node .dropdown-menu li:nth-child(32),.dropdown-node .dropdown-menu li:nth-child(33){border-bottom:1px solid #ececec}header{margin-bottom:1em}header.ETH .header-branding{border-bottom:.25rem solid #0e97c0}header.ETH+.container+.pre-footer+.footer{border-top:.25rem solid #0e97c0}header.ETH+.container .modal-content{border:.25rem solid #0e97c0}header.ETH+.container .alert-info{background-color:#0e97c0}header.ETH .dropdown-gas:before{width:24px;background-image:url(../images/coins/ethereum.svg)}header.ETC .header-branding{border-bottom:.25rem solid #009241}header.ETC+.container+.pre-footer+.footer{border-top:.25rem solid #009241}header.ETC+.container .modal-content{border:.25rem solid #009241}header.ETC+.container .alert-info{background-color:#009241}header.ETC .dropdown-gas:before{width:24px;background-image:url(../images/coins/ethereum-classic.svg)}header.Ropsten .header-branding{border-bottom:.25rem solid #adc101}header.Ropsten+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Ropsten+.container .modal-content{border:.25rem solid #adc101}header.Ropsten+.container .alert-info{background-color:#adc101}header.Kovan .header-branding{border-bottom:.25rem solid #adc101}header.Kovan+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Kovan+.container .modal-content{border:.25rem solid #adc101}header.Kovan+.container .alert-info{background-color:#adc101}header.Rinkeby .header-branding{border-bottom:.25rem solid #adc101}header.Rinkeby+.container+.pre-footer+.footer{border-top:.25rem solid #adc101}header.Rinkeby+.container .modal-content{border:.25rem solid #adc101}header.Rinkeby+.container .alert-info{background-color:#adc101}header.Custom .header-branding{border-bottom:.25rem solid #b50085}header.Custom+.container+.pre-footer+.footer{border-top:.25rem solid #b50085}header.Custom+.container .modal-content{border:.25rem solid #b50085}header.Custom+.container .alert-info{background-color:#b50085}header.EXP .header-branding{border-bottom:.25rem solid #673ab7}header.EXP+.container+.pre-footer+.footer{border-top:.25rem solid #673ab7}header.EXP+.container .modal-content{border:.25rem solid #673ab7}header.EXP+.container .alert-info{background-color:#673ab7}header.EXP .dropdown-gas:before{width:32px;background-image:url(../images/coins/exp.svg)}header.UBQ .header-branding{border-bottom:.25rem solid #00ad85}header.UBQ+.container+.pre-footer+.footer{border-top:.25rem solid #00ad85}header.UBQ+.container .modal-content{border:.25rem solid #00ad85}header.UBQ+.container .alert-info{background-color:#00ad85}header.UBQ .dropdown-gas:before{width:32px;background-image:url(../images/coins/ubiq.svg)}header.POA .header-branding{border-bottom:.25rem solid #4568bb}header.POA+.container+.pre-footer+.footer{border-top:.25rem solid #4568bb}header.POA+.container .modal-content{border:.25rem solid #4568bb}header.POA+.container .alert-info{background-color:#4568bb}header.POA .dropdown-gas:before{width:32px;background-image:url(../images/coins/poa.svg)}header.TOMO .header-branding{border-bottom:.25rem solid #6a488d}header.TOMO+.container+.pre-footer+.footer{border-top:.25rem solid #6a488d}header.TOMO+.container .modal-content{border:.25rem solid #6a488d}header.TOMO+.container .alert-info{background-color:#6a488d}header.TOMO .dropdown-gas:before{width:34px;background-image:url(../images/coins/tomo.svg)}header.ELLA .header-branding{border-bottom:.25rem solid #046111}header.ELLA+.container+.pre-footer+.footer{border-top:.25rem solid #046111}header.ELLA+.container .modal-content{border:.25rem solid #046111}header.ELLA+.container .alert-info{background-color:#046111}header.ELLA .dropdown-gas:before{width:32px;background-image:url(../images/coins/ella.svg)}header.ETSC .header-branding{border-bottom:.25rem solid #4295d1}header.ETSC+.container+.pre-footer+.footer{border-top:.25rem solid #4295d1}header.ETSC+.container .modal-content{border:.25rem solid #4295d1}header.ETSC+.container .alert-info{background-color:#4295d1}header.ETSC .dropdown-gas:before{width:32px;background-image:url(../images/coins/etsc.svg)}header.EGEM .header-branding{border-bottom:.25rem solid #0e97c0}header.EGEM+.container+.pre-footer+.footer{border-top:.25rem solid #0e97c0}header.EGEM+.container .modal-content{border:.25rem solid #0e97c0}header.EGEM+.container .alert-info{background-color:#0e97c0}header.EGEM .dropdown-gas:before{width:36px;background-image:url(../images/coins/egem.svg)}header.CLO .header-branding{border-bottom:.25rem solid #009241}header.CLO+.container+.pre-footer+.footer{border-top:.25rem solid #009241}header.CLO+.container .modal-content{border:.25rem solid #009241}header.CLO+.container .alert-info{background-color:#009241}header.CLO .dropdown-gas:before{width:36px;background-image:url(../images/coins/callisto.svg)}header.MUSIC .header-branding{border-bottom:.25rem solid #fece00}header.MUSIC+.container+.pre-footer+.footer{border-top:.25rem solid #fece00}header.MUSIC+.container .modal-content{border:.25rem solid #fece00}header.MUSIC+.container .alert-info{background-color:#fece00}header.MUSIC .dropdown-gas:before{width:34px;background-image:url(../images/coins/music.svg)}header.GO .header-branding{border-bottom:.25rem solid #27223d}header.GO+.container+.pre-footer+.footer{border-top:.25rem solid #27223d}header.GO+.container .modal-content{border:.25rem solid #27223d}header.GO+.container .alert-info{background-color:#27223d}header.GO .dropdown-gas:before{width:38px;background-image:url(../images/coins/gochain.svg)}header.EOSC .header-branding{border-bottom:.25rem solid #926565}header.EOSC+.container+.pre-footer+.footer{border-top:.25rem solid #926565}header.EOSC+.container .modal-content{border:.25rem solid #926565}header.EOSC+.container .alert-info{background-color:#926565}header.EOSC .dropdown-gas:before{width:26px;background-image:url(../images/coins/eosc.svg)}header.AKA .header-branding{border-bottom:.25rem solid #aa0087}header.AKA+.container+.pre-footer+.footer{border-top:.25rem solid #aa0087}header.AKA+.container .modal-content{border:.25rem solid #aa0087}header.AKA+.container .alert-info{background-color:#aa0087}header.AKA .dropdown-gas:before{width:34px;background-image:url(../images/coins/akroma.svg)}header.ESN .header-branding{border-bottom:.25rem solid #a16bff}header.ESN+.container+.pre-footer+.footer{border-top:.25rem solid #a16bff}header.ESN+.container .modal-content{border:.25rem solid #a16bff}header.ESN+.container .alert-info{background-color:#a16bff}header.ESN .dropdown-gas:before{width:32px;background-image:url(../images/coins/ethersocial.svg)}header.PIRL .header-branding{border-bottom:.25rem solid #a2d729}header.PIRL+.container+.pre-footer+.footer{border-top:.25rem solid #a2d729}header.PIRL+.container .modal-content{border:.25rem solid #a2d729}header.PIRL+.container .alert-info{background-color:#a2d729}header.PIRL .dropdown-gas:before{width:32px;background-image:url(../images/coins/pirl.svg)}header.ETHO .header-branding{border-bottom:.25rem solid #d63068}header.ETHO+.container+.pre-footer+.footer{border-top:.25rem solid #d63068}header.ETHO+.container .modal-content{border:.25rem solid #d63068}header.ETHO+.container .alert-info{background-color:#d63068}header.ETHO .dropdown-gas:before{width:24px;background-image:url(../images/coins/etho.svg)}header.ATH .header-branding{border-bottom:.25rem solid #09f}header.ATH+.container+.pre-footer+.footer{border-top:.25rem solid #09f}header.ATH+.container .modal-content{border:.25rem solid #09f}header.ATH+.container .alert-info{background-color:#09f}header.ATH .dropdown-gas:before{width:36px;background-image:url(../images/coins/atheios.svg)}header.ILT .header-branding{border-bottom:.25rem solid #4568bb}header.ILT+.container+.pre-footer+.footer{border-top:.25rem solid #4568bb}header.ILT+.container .modal-content{border:.25rem solid #4568bb}header.ILT+.container .alert-info{background-color:#4568bb}header.ILT .dropdown-gas:before{width:35px;background-image:url(../images/coins/ilt.svg)}header.WEB .header-branding{border-bottom:.25rem solid #0092ee}header.WEB+.container+.pre-footer+.footer{border-top:.25rem solid #0092ee}header.WEB+.container .modal-content{border:.25rem solid #0092ee}header.WEB+.container .alert-info{background-color:#0092ee}header.WEB .dropdown-gas:before{width:36px;background-image:url(../images/coins/webchain.svg)}.contest-container{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0!important;text-align:center}.contest-container ol{padding:0 10em;text-align:left!important}.contest-container ol li{list-style-position:inside}@media screen and (max-width:960px){.contest-container ol{padding:0 5em!important}.collapse-container .collapse-button{margin-left:-100px}}@media screen and (max-width:650px){.contest-container ol{padding:0 20px!important}}.on-boarding-close{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.on-boarding-close img{cursor:pointer}@media screen and (max-width:600px){.footer__pill-custom-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.footer__pill-custom-wrap a{-webkit-box-flex:1;-webkit-flex:auto;-ms-flex:auto;flex:auto;max-width:115px}}.privacy-policy{width:90%}.privacy-policy h1,.privacy-policy h3{font-weight:700;text-align:center}.privacy-policy .privacy-policy-body{margin-top:30px}.phishing{height:60%;text-align:center}.swap-tab a.link,.swap-tab a.link:hover{-webkit-transition:none;-o-transition:none;transition:none}.swap-tab .btn-lg{margin-top:3rem}.swap-tab .btn img,.swap-tab .btn svg{margin-right:.5rem;margin-left:-.25rem;vertical-align:middle}.swap-tab .swap-rates{text-align:center}.swap-tab .swap-rates .order-panel{background:-webkit-linear-gradient(300deg,#0e97c0,#163151);background:-o-linear-gradient(300deg,#0e97c0,#163151);background:linear-gradient(150deg,#0e97c0,#163151);position:relative}.swap-tab .swap-rates .order-panel .bity-logo{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@media screen and (max-width:51.2rem){.swap-tab .swap-rates .order-panel{padding-top:1rem;padding-bottom:1rem}.swap-tab .swap-rates .order-panel .order-info{text-align:left;padding:0 0 0 22%}.swap-tab .swap-rates .order-panel .bity-logo{left:-1rem;top:40%;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}}.swap-tab .swap-rates .form-control.input-sm{width:16%;min-width:3.5rem;display:inline-block;margin-right:1rem;text-align:right;background-color:transparent;color:#fff;-webkit-box-shadow:0 0 0 #fff;box-shadow:0 0 0 #fff;border:0 solid #fff;border-bottom:2px solid #fff}.swap-tab .swap-rates p{margin:0}.swap-tab .swap-rates p span{opacity:.9}.swap-tab .swap-rates .order-info:nth-child(4n+1),.swap-tab .swap-rates .order-info:nth-child(4n+2),.swap-tab .swap-rates .order-info:nth-child(4n+3){background:transparent}.swap-tab .swap-panel{text-align:center;margin-top:3rem;padding:2rem .5rem}.swap-tab .swap-panel>*{display:inline-block;margin:1.5rem .5rem;vertical-align:middle}.swap-tab .swap-panel .form-control{width:10rem;margin-right:0}.swap-tab .swap-panel .dropdown{margin-left:0}.swap-tab .swap-address{text-align:center;padding:3rem 1rem}.swap-tab .swap-start{text-align:center}.swap-tab .swap-start .swap-info{text-align:left;margin-bottom:5rem}.swap-tab .swap-order{text-align:left}.swap-tab .swap-order .order-info-wrap{margin-bottom:0}.swap-tab .swap-order h1{margin-top:3rem;margin-bottom:3rem}.ens-tab .collapse-container h4,.ens-tab .collapse-container h5,.swap-tab .collapse-container h4,.swap-tab .collapse-container h5{display:inline-block}.ens-tab .collapse-container .collapse-button,.swap-tab .collapse-container .collapse-button{float:none;margin:0}.order-info-wrap{margin-bottom:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.order-info-wrap .order-info{padding:1rem 0}.order-info{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;min-height:100px;text-align:center;padding:.5rem 0;color:#fff}.order-info:after,.order-info:before{content:" ";display:table}.order-info:after{clear:both}.order-info h3,.order-info h4,.order-info p{margin:0}.order-info:nth-child(4n+1){background-color:#175575}.order-info:nth-child(4n+2){background-color:#1e92ba}.order-info:nth-child(4n+3){background-color:#143955}.order-info:nth-child(4n+4){background-color:#19b3ae}.swap-progress{margin-top:2rem;margin-bottom:0;position:relative}.swap-progress .sep{position:absolute;top:3.5rem;left:3%;right:3%;height:.25rem;background-color:#ececec}@media screen and (max-width:675px){.swap-progress .sep{display:none}}.swap-progress:after,.swap-progress:before{content:" ";display:table}.swap-progress:after{clear:both}.swap-progress .progress-item{width:20%;float:left;text-align:center;margin:.25rem 0}@media screen and (max-width:675px){.swap-progress .progress-item{width:100%}}.swap-progress .progress-item:nth-child(4n+1) .progress-circle{border-color:rgba(30,146,186,.4);color:rgba(30,146,186,.4)}.swap-progress .progress-item:nth-child(4n+2) .progress-circle{border-color:rgba(23,85,117,.4);color:rgba(23,85,117,.4)}.swap-progress .progress-item:nth-child(4n+3) .progress-circle{border-color:rgba(25,179,174,.4);color:rgba(25,179,174,.4)}.swap-progress .progress-item:nth-child(4n+4) .progress-circle{border-color:rgba(20,57,85,.4);color:rgba(20,57,85,.4)}.swap-progress .progress-item .progress-circle{border-radius:50%;border-width:.25rem;border-style:solid;-webkit-box-sizing:content-box;box-sizing:content-box;margin:1rem auto;padding-bottom:4rem;position:relative;width:4rem;background:#fff}@media screen and (max-width:675px){.swap-progress .progress-item .progress-circle{margin:.25rem 1rem .25rem 2rem;padding-bottom:3rem;width:3rem;float:left}}.swap-progress .progress-item .progress-circle i{font-size:1.5rem;line-height:1.75rem;height:1.75rem;width:1.75rem;font-weight:900;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@media screen and (max-width:675px){.swap-progress .progress-item .progress-circle i{font-size:1.5rem;line-height:1.5rem;height:1.5rem;width:1.5rem}}.swap-progress .progress-item p{font-size:.9rem;font-weight:600;text-transform:uppercase;color:hsla(0,0%,55%,.5);letter-spacing:.1em}@media screen and (max-width:675px){.swap-progress .progress-item p{line-height:4rem;margin:0;text-align:left}}.swap-progress .progress-item p small{letter-spacing:.03em;font-size:75%}.swap-progress .progress-item.progress-active p{color:#8d8d8d}.swap-progress .progress-item.progress-active:nth-child(4n+1) .progress-circle{border-color:#1e92ba;color:#1e92ba}.swap-progress .progress-item.progress-active:nth-child(4n+2) .progress-circle{border-color:#175575;color:#175575}.swap-progress .progress-item.progress-active:nth-child(4n+3) .progress-circle{border-color:#19b3ae;color:#19b3ae}.swap-progress .progress-item.progress-active:nth-child(4n+4) .progress-circle{border-color:#143955;color:#143955}.swap-progress .progress-item.progress-true .progress-circle{background-color:#5dba5a;border-color:#5dba5a;-webkit-box-shadow:inset 0 0 0 5px #fff;box-shadow:inset 0 0 0 5px #fff}.swap-progress .progress-item.progress-true .progress-circle i{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 426.67 426.67' width='32' height='32'%3E%3Cpath d='M153.504 366.839c-8.657 0-17.323-3.302-23.927-9.911L9.914 237.265c-13.218-13.218-13.218-34.645 0-47.863 13.218-13.218 34.645-13.218 47.863 0l95.727 95.727 215.39-215.386c13.218-13.214 34.65-13.218 47.859 0 13.222 13.218 13.222 34.65 0 47.863L177.436 356.928c-6.609 6.605-15.271 9.911-23.932 9.911z' fill='%23fff'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;font-size:0}.swap-progress .progress-item.progress-true p{color:#5dba5a}.ens-tab .order-info-wrap{margin-top:1rem;margin-bottom:1rem}.ens-tab h5+p{margin-top:-.5em}.bity-contact{margin:9rem -1rem -5rem}.cont-md{max-width:64rem;margin:auto}.txstatus__1 .form-control{max-width:64rem;margin:1rem auto}.txstatus__3 h4{display:inline-block}.txstatus__3 .collapse-button{float:none;margin:0}.text-ellipsis{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.block-title1{background-color:#007cc0}.block-title1,.block-title2{color:#fff;padding:10px 20px;font-weight:900;font-size:20px}.block-title2{background-color:#3e4b5a}.mywallet-container ::-webkit-scrollbar{width:7px}.mywallet-container ::-webkit-scrollbar-track{background:#d7d7d7}.mywallet-container ::-webkit-scrollbar-thumb{background:#3e4b5a;border-radius:12px}.mywallet-container p{margin:0}.mywallet-container h3{margin:0;font-weight:900}.mywallet-container .addressIdenticon{width:50px!important;height:50px!important}.mywallet-container .grid-bg{background-color:#f5f5f5}.mywallet-container .grid-frame{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.mywallet-container .grid-frame #walletsContainer{-webkit-box-flex:50;-webkit-flex:50;-ms-flex:50;flex:50;height:100%}.mywallet-container .grid-frame .data:last-child{margin:0}.mywallet-container .grid-frame .data{display:grid;grid-template-columns:1fr 350px;grid-gap:4px;margin-bottom:20px}.mywallet-container .grid-frame .data .wallet .editor-icons{height:20px;width:20px}.mywallet-container .grid-frame .data .wallet .block-title1 p{font-weight:900}.mywallet-container .grid-frame .data .wallet .content{padding:25px 30px 20px}.mywallet-container .grid-frame .data .wallet .content>div{display:inline-block;vertical-align:top}.mywallet-container .grid-frame .data .wallet .content .balance{padding:0 20px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block{margin-bottom:15px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .block-title,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .block-title{width:125px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block h3,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block h3{display:inline-block;vertical-align:middle;font-size:20px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .balance-amount,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .balance-amount{vertical-align:middle;display:inline-block;font-size:20px;font-weight:900;color:#00c599}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block{display:inline-block;vertical-align:middle}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p{background-color:#fff;padding-left:20px;font-weight:500;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;font-size:14px}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p button,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p button{background-color:#b3b3b4!important;color:#fff!important;display:inline-block;margin-left:30px;padding:12px 17px!important;border:none;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .data .wallet .content .balance .address-block .copy-block p button:hover,.mywallet-container .grid-frame .data .wallet .content .balance .balance-block .copy-block p button:hover{background-color:grey!important}.mywallet-container .grid-frame .data .tokens .col-title{background-color:#fff;display:grid;grid-template-columns:1fr 1fr;padding:5px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .data .tokens .col-title p{font-weight:900;font-size:13px}.mywallet-container .grid-frame .data .tokens .content{height:116px;overflow-y:auto;position:relative}.mywallet-container .grid-frame .data .tokens .content>div{display:grid;grid-template-columns:1fr 1fr;padding:5px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .data .tokens .content>div:nth-child(2n){background-color:#ebebeb}.mywallet-container .grid-frame .data .tokens .content>div p{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mywallet-container .grid-frame .sidebar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:15;-webkit-flex:15;-ms-flex:15;flex:15;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;margin-left:15px;margin-top:4.2rem}.mywallet-container .grid-frame .sidebar .title-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff;background-color:#3e4b5a;padding:10px 20px}.mywallet-container .grid-frame .sidebar .title-container .title{display:inline-block;font-weight:900;font-size:20px}.mywallet-container .grid-frame .sidebar .title-container .total-of{display:inline-block;margin-left:auto;font-size:13px;margin-top:10px}.mywallet-container .grid-frame .sidebar .col-title{background-color:#fff;display:grid;grid-template-columns:2fr 1fr;padding:15px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .sidebar .col-title p{font-size:15px;font-weight:900}.mywallet-container .grid-frame .sidebar .content{overflow-y:scroll;position:relative}.mywallet-container .grid-frame .sidebar .content>div{display:grid;grid-template-columns:2fr 1fr;padding:15px 20px;border-bottom:1px solid #ededed}.mywallet-container .grid-frame .sidebar .content>div p{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mywallet-container .grid-frame .sidebar .content>div .add-button{position:relative}.mywallet-container .grid-frame .sidebar .content>div .add-button p{cursor:pointer;width:90px;position:absolute;padding:7px 0;border:1px solid blue;font-size:12px;color:blue;text-align:center;top:-6px;left:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .sidebar .content>div .add-button p:hover{color:#fff;background-color:blue}.mywallet-container .grid-frame .sidebar .content>div .remove-button{position:relative}.mywallet-container .grid-frame .sidebar .content>div .remove-button p{cursor:pointer;width:90px;position:absolute;padding:7px 0;border:1px solid red;font-size:12px;color:red;text-align:center;top:-6px;left:0;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.mywallet-container .grid-frame .sidebar .content>div .remove-button p:hover{color:#fff;background-color:red}.mywallet-container .grid-frame .sidebar .content .col-title{background-color:#fff}.mywallet-container .grid-frame .sidebar .content .col-title p{font-weight:900}#etherWalletPopUp{padding:10px;position:relative;min-width:346px}#etherWalletPopUp .back-icon{position:absolute;left:5px;top:5px}#etherWalletPopUp .back-icon:active,#etherWalletPopUp .back-icon:hover{outline:0}.toggleTokenContainer span{color:#0e97c0;cursor:pointer}.toggleTokenContainer span:hover{color:#095f79}.walletTokensContainer{max-height:70px;overflow:scroll}.quicksend-address{font-family:Menlo,Monaco,Consolas,Courier New,monospace;max-width:170px;word-wrap:break-word;font-size:12px;font-weight:300;display:block}.chrome-tokens span{min-width:130px;display:inline-block}.truncate{max-width:130px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mainWalletDelete,.mainWalletEdit,.mainWalletView{margin:.5em}.myWalletCtrl table:not(.account-info) h2{margin:0;font-size:1.6em}.myWalletCtrl table:not(.account-info) h3{font-weight:400;font-size:1.3em}.myWalletCtrl table:not(.account-info) td:nth-child(2){max-width:380px}.myWalletCtrl table:not(.account-info) td,.myWalletCtrl table:not(.account-info) th{vertical-align:middle;padding:.5em .75em}#secWatchOnlyMain .mainWalletDelete{width:60px;display:block}.spinner{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;height:37px}.spinner-container{display:inherit!important;padding:7.5px 20px!important;text-align:center}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.text-navy{color:#163151}.text-gray-lighter{color:#ececec}.text-blue{color:#0e97c0}.text-white{color:#fff}.bg-navy{background:#163151}.bg-gradient{background:#163151;background:-webkit-linear-gradient(301deg,#132a45,#143a56,#21a4ce,#19b4ad);background:-o-linear-gradient(301deg,#132a45,#143a56,#21a4ce,#19b4ad);background:linear-gradient(149deg,#132a45,#143a56,#21a4ce,#19b4ad)}.bg-gray-lighter{background-color:#ececec}.bg-blue{background-color:#0e97c0}.bg-white{background-color:#fff}.text-serif{font-family:Georgia,Times New Roman,Times,serif}.text-sans-serif{font-family:Lato,sans-serif}.pad-v-sm{padding-top:.5em;padding-bottom:.5em}.pad-v-md{padding-top:1em;padding-bottom:1em}.pad-v-lg{padding-top:1.5em;padding-bottom:1.5em}.pad-v-xl{padding-top:2em;padding-bottom:2em}.marg-v-sm{margin-top:.5em;margin-bottom:.5em}.marg-v-md{margin-top:1em;margin-bottom:1em}.marg-v-lg{margin-top:1.5em;margin-bottom:1.5em}.marg-v-xl{margin-top:2em;margin-bottom:2em}.img-fill{width:100%;height:auto;max-width:100%}.header-branding{color:#fff;padding:0}@media screen and (max-width:960px){.header-branding{text-align:center}}.header-branding .container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:900px){.header-branding .container{padding-left:1%;padding-right:1%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}}.header-branding .brand{float:left}@media screen and (max-width:900px){.header-branding .brand{float:none}}.header-branding .brand img{padding:.25rem 0}.header-branding .tagline{font-weight:200;color:#fff;-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;text-align:right;padding:.25rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media screen and (max-width:900px){.header-branding .tagline{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;text-align:right}}.header-branding a{cursor:pointer;font-weight:400;display:inline-block}.header-branding a,.header-branding a:active,.header-branding a:hover{color:#fff;-webkit-transition:all .25s ease;-o-transition:.25s all ease;transition:all .25s ease}.header-branding a:active,.header-branding a:hover{opacity:.8;text-decoration:none}.header-branding .dropdown{padding:.1rem}@media screen and (max-width:900px){.header-branding .dropdown{padding:.1rem 0;white-space:nowrap;display:inline-block;font-size:14px}.header-branding .dropdown .dropdown-menu{right:0;overflow-y:auto;min-width:auto;left:auto;top:100%;font-size:14px}.header-branding .dropdown .dropdown-menu>li>a{font-size:14px;padding:.25rem 30px .25rem 15px;position:relative}.header-branding .dropdown-gas{white-space:normal}.header-branding .dropdown-gas .dropdown-menu{right:0!important}}.header-branding .dropdown-toggle{font-size:14px;padding:.3em .6rem}.header-branding .dropdown-gas{display:inline-block}.header-branding .dropdown-gas .dropdown-menu{min-width:200px;padding:.5rem;margin:.1rem 0 0;right:.1rem;left:auto;overflow:unset}.header-branding .dropdown-gas .dropdown-menu p{padding:0}.header-branding .dropdown-gas:before{content:"";display:inline-block;background-position:50%;background-repeat:no-repeat;background-size:contain;vertical-align:middle;width:24px;height:48px;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='417' preserveAspectRatio='xMidYMid'%3E%3Cg fill-opacity='.588'%3E%3Cpath d='M128.95 154.205h.003l127.96 58.162L128.953.047z' fill='%23b1b1b1'/%3E%3Cpath d='M128.95 154.205V.047L.988 212.367l127.96-58.162z' fill='%23cfcfcf'/%3E%3Cpath d='M128.949 416.953l128.038-180.32-128.038 75.6z' fill='%23b1b1b1'/%3E%3Cpath fill='%23cfcfcf' d='M.988 236.632l127.962 180.32v-104.72z'/%3E%3Cpath fill='%23909090' d='M128.95 288.004l127.96-75.637-127.96-58.162z'/%3E%3Cpath fill='%23b1b1b1' d='M128.948 154.205L.988 212.367l127.96 75.637z'/%3E%3C/g%3E%3C/svg%3E");margin-top:1px}.dropdown-menu a.active{text-decoration:none;color:#0e97c0;background-color:#fafafa}.dropdown-menu{overflow-y:auto;right:.1rem;margin:.1rem 0 0}.nav-container{position:relative;overflow-y:hidden}.nav-container .nav-scroll{-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;overflow-x:auto;margin-bottom:-20px;font-size:0;white-space:nowrap}@media screen and (max-width:51.2rem){.nav-container .nav-scroll{margin:0 -5% -20px}}.nav-container .nav-scroll .nav-inner{border-bottom:2px solid #fff;display:inline-block;font-size:0;margin-bottom:20px;min-width:100%;padding:5px 0 0;vertical-align:middle}.nav-container .nav-scroll .nav-inner .nav-item{display:inline-block;font-size:0}.nav-container .nav-scroll .nav-inner .nav-item.NAV_Swap a:before{content:"";display:inline-block;margin-top:-.1rem;width:1.3rem;height:1.3rem;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620.04 631.27'%3E%3Ctitle%3Eicon-swap%3C/title%3E%3Cpath d='M469.95 289.68c-77 0-139.59-62.62-139.59-139.59S392.98 10.5 469.95 10.5s139.59 62.62 139.59 139.59-62.62 139.59-139.59 139.59z' fill='%23ffe14d'/%3E%3Cpath d='M469.95 21a129.09 129.09 0 1 1-129.09 129.09A129.24 129.24 0 0 1 469.95 21m0-21c-82.76 0-150.09 67.33-150.09 150.09s67.29 150.09 150.09 150.09 150.09-67.33 150.09-150.09S552.71 0 469.95 0z' fill='%230f0f0f'/%3E%3Cpath d='M599.04 150.09A129.24 129.24 0 0 0 469.95 21v258.18a129.24 129.24 0 0 0 129.09-129.09z' fill='%23fc3'/%3E%3Cpath d='M469.95 44.94a105.12 105.12 0 1 0 105.12 105.15A105.24 105.24 0 0 0 469.95 44.94zm0 179c-49.27 0-74.85-24.6-74.85-73.87s25.58-74.85 74.85-74.85 75.82 25.58 75.82 74.85-26.55 73.87-75.82 73.87z' fill='%23ff9f19'/%3E%3Cpath d='M545.77 150.09c0 49.27-26.55 74.85-75.82 74.85v30.27a105.12 105.12 0 1 0 0-210.24v30.27c49.27 0 75.82 25.58 75.82 74.85z' fill='%23f28618'/%3E%3Cpath fill='%230492be' d='M100.66 277.37H26.9V114.06h240.72V50.84l131.7 100.1-131.7 100.09v-63.22H100.66v89.56z'/%3E%3Cpath fill='%23103957' opacity='.2' d='M63.78 150.94h335.54l-131.7-100.1v63.22H26.9v163.31h36.88V150.94z'/%3E%3Cpath d='M259.71 34.94l152.67 116-152.67 116v-71.23H108.55v89.56H19V106.15h240.71zm126.55 116L275.52 66.77v55.17H34.8v147.53h57.95v-89.53h182.77v55.19z'/%3E%3Cpath fill='%23fff' d='M292.951 119.43l9.638-12.482 47.456 36.642-9.638 12.482z'/%3E%3Cpath d='M150.09 620.77c-77 0-139.59-62.62-139.59-139.59s62.65-139.59 139.59-139.59 139.59 62.62 139.59 139.59-62.62 139.59-139.59 139.59z' fill='%23ffe14d'/%3E%3Cpath d='M150.09 352.09A129.09 129.09 0 1 1 21 481.18a129.24 129.24 0 0 1 129.09-129.09m0-21C67.33 331.09 0 398.42 0 481.18s67.33 150.09 150.09 150.09 150.06-67.33 150.06-150.09-67.3-150.09-150.06-150.09z' fill='%230f0f0f'/%3E%3Cpath d='M21 481.18a129.24 129.24 0 0 0 129.09 129.09V352.09A129.24 129.24 0 0 0 21 481.18z' fill='%23fc3'/%3E%3Cpath d='M150.09 586.3A105.12 105.12 0 1 0 44.97 481.18 105.24 105.24 0 0 0 150.09 586.3zm0-179c49.27 0 74.85 24.6 74.85 73.87s-25.58 74.85-74.85 74.85-75.82-25.58-75.82-74.85 26.55-73.86 75.82-73.86z' fill='%23ff9f19'/%3E%3Cpath d='M74.26 481.18c0-49.27 26.55-74.85 75.82-74.85v-30.27a105.12 105.12 0 1 0 0 210.24v-30.27c-49.26 0-75.82-25.58-75.82-74.85z' fill='%23f28618'/%3E%3Cpath fill='%230492be' d='M519.39 353.9h73.75v163.31H352.43v63.22L220.72 480.34l131.71-100.1v63.22h166.96V353.9z'/%3E%3Cpath fill='%23103957' opacity='.2' d='M556.26 480.34H220.72l131.71 100.09v-63.22h240.71V353.9h-36.88v126.44z'/%3E%3Cpath d='M360.32 596.36l-152.66-116 152.66-116v71.25h151.16V346h89.56v179.11H360.32zm-126.55-116l110.74 84.16v-55.21h240.73V361.8h-57.95v89.56H344.52v-55.19z'/%3E%3Cpath fill='%23fff' d='M268.572 486.574l9.7-12.473 47.419 36.875-9.7 12.473z'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:contain;vertical-align:middle;margin-right:.25rem}.nav-container .nav-scroll .nav-inner .nav-item a{color:#095f79;display:block;font-size:16px;font-weight:300;padding:10px;white-space:nowrap;position:relative;min-height:2.75rem}.nav-container .nav-scroll .nav-inner .nav-item a:after{content:"";background:#0e97c0;height:2px;width:100%;left:0;position:absolute;bottom:-1px;-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.nav-container .nav-scroll .nav-inner .nav-item.active a,.nav-container .nav-scroll .nav-inner .nav-item a:focus,.nav-container .nav-scroll .nav-inner .nav-item a:hover{color:#0e97c0;text-decoration:none;-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s}.nav-container .nav-scroll .nav-inner .nav-item.active a:after,.nav-container .nav-scroll .nav-inner .nav-item a:focus:after,.nav-container .nav-scroll .nav-inner .nav-item a:hover:after{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-transition:all .25s ease 0s;-o-transition:all .25s ease 0s;transition:all .25s ease 0s}.nav-container .nav-arrow-left,.nav-container .nav-arrow-right{background-color:#fff;bottom:12px;color:#d6d6d6;font-size:33px;line-height:1.3;min-width:50px;position:absolute;top:0;vertical-align:middle;width:5%;z-index:999}.nav-container .nav-arrow-left:hover,.nav-container .nav-arrow-right:hover{text-decoration:none}.nav-container .nav-arrow-right{right:3%;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(47%,#fff),to(#fff));background:-webkit-linear-gradient(left,hsla(0,0%,100%,0),#fff 47%,#fff);background:-o-linear-gradient(left,hsla(0,0%,100%,0) 0,#fff 47%,#fff 100%);background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 47%,#fff);padding-right:5px;text-align:right}@media screen and (max-width:51.2rem){.nav-container .nav-arrow-right{right:0}}.nav-container .nav-arrow-left{left:3%;background:-webkit-gradient(linear,right top,left top,from(hsla(0,0%,100%,0)),color-stop(47%,#fff),to(#fff));background:-webkit-linear-gradient(right,hsla(0,0%,100%,0),#fff 47%,#fff);background:-o-linear-gradient(right,hsla(0,0%,100%,0) 0,#fff 47%,#fff 100%);background:linear-gradient(270deg,hsla(0,0%,100%,0) 0,#fff 47%,#fff);padding-left:5px;text-align:left}@media screen and (max-width:51.2rem){.nav-container .nav-arrow-left{left:0}}.print-container{width:680px;height:280px;border:1px solid gray;margin-bottom:50px;position:relative}.print-container #identicon{-webkit-print-color-adjust:exact;position:absolute;right:7.5rem;bottom:3rem}.print-container #identicon:after{content:"Always look for this icon when sending to this wallet.";font-size:9px;width:120px;position:absolute;bottom:.75rem;text-align:center;right:-7.5rem}.print-title{float:left}.print-text{color:#0b7290;text-transform:uppercase;letter-spacing:.05em;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);position:absolute;right:0;bottom:0;font-size:13px;font-weight:600}.print-qr-code-1{width:28%;float:left;position:relative;padding:20px}.print-qr-code-1 .print-text{right:-35px;bottom:69px}.print-qr-code-2{width:28%;float:left;position:relative;padding:20px}.print-qr-code-2 .print-text{right:-45px;bottom:69px}.print-notes{width:28%;float:left;position:relative;padding:20px}.print-notes .print-text{right:-45px;bottom:69px}.print-address-container{float:left;width:85%;padding:0 25px}.print-address-container p{font-size:14px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.ether-logo-1{position:absolute;left:100px}.ether-logo-2{position:absolute;right:32px;bottom:64px}.block--container{max-width:113rem;margin-left:-1%;margin-right:-1%}.block__wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.block{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative}.block:after,.block:before{content:" ";display:table}.block:after{clear:both}@media screen and (max-width:32rem){.block{padding:1.25rem}}.block>:first-child{margin-top:0}.block>:last-child{margin-bottom:0}.block--text-white *,.block--text-white a{color:#fff}.block--text-white a:focus,.block--text-white a:hover{color:hsla(0,0%,100%,.9)}.block--danger{background-color:#ea4b40}.block--danger *,.block--danger a{color:#fff}.block--danger a:focus,.block--danger a:hover{color:hsla(0,0%,100%,.9)}.block--warning{background-color:#ff9800}.block--warning *,.block--warning a{color:#fff}.block--warning a:focus,.block--warning a:hover{color:hsla(0,0%,100%,.9)}.block--info{background-color:#163151}.block--info *,.block--info a{color:#fff}.block--info a:focus,.block--info a:hover{color:hsla(0,0%,100%,.9)}.block--primary{background-color:#0e97c0}.block--primary *,.block--primary a{color:#fff}.block--primary a:focus,.block--primary a:hover{color:hsla(0,0%,100%,.9)}.block--success{background-color:#5dba5a}.block--success *,.block--success a{color:#fff}.block--success a:focus,.block--success a:hover{color:hsla(0,0%,100%,.9)}.block__main{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative;text-align:left;padding:.75rem;-webkit-flex-basis:98%;-ms-flex-preferred-size:98%;flex-basis:98%;margin:1rem .5%}.block__main:after,.block__main:before{content:" ";display:table}.block__main:after{clear:both}@media screen and (max-width:32rem){.block__main{padding:1.25rem}}.block__main>:first-child{margin-top:0}.block__main>:last-child{margin-bottom:0}@media screen and (min-width:51.2rem){.block__main{-webkit-flex-basis:68%;-ms-flex-preferred-size:68%;flex-basis:68%}}@media screen and (min-width:66.13333333rem){.block__main{-webkit-flex-basis:73%;-ms-flex-preferred-size:73%;flex-basis:73%}}.block__help{background-color:#fff;-webkit-box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);box-shadow:16px 16px 47px 2px rgba(0,0,0,.07);padding:1.5rem 2rem;min-height:1.5rem;margin:1rem auto;position:relative;background-image:url(../images/icon-help-2.svg);background-size:8rem;background-position:102% -5%;background-repeat:no-repeat;text-align:left;margin:1rem 1%;-webkit-flex-basis:98%;-ms-flex-preferred-size:98%;flex-basis:98%}.block__help:after,.block__help:before{content:" ";display:table}.block__help:after{clear:both}@media screen and (max-width:32rem){.block__help{padding:1.25rem}}.block__help>:last-child{margin-bottom:0}@media screen and (min-width:51.2rem){.block__help{-webkit-flex-basis:28%;-ms-flex-preferred-size:28%;flex-basis:28%}}@media screen and (min-width:66.13333333rem){.block__help{-webkit-flex-basis:23%;-ms-flex-preferred-size:23%;flex-basis:23%}}.block__help a{color:#ff5722}.block__help a:hover{color:#ff4408}.block__help>:first-child{margin-top:0}.block__help ul{list-style:circle}.block__help ol,.block__help ul{padding-left:1rem}.block__help h2{font-size:1.15rem;font-weight:400}.equal-space>*{margin-top:1rem;margin-bottom:1rem}.u-center-h{text-align:center}.gen__1 .input-group{max-width:43rem;margin:1rem auto}.gen__1--inner{text-align:center}.gen__1--inner h1{margin:1rem auto 2rem}.gen__1--inner h4{margin:3rem auto 1rem}.gen__1--inner p{margin:0 0 2rem}.gen__1--inner .btn{margin:0 auto 3rem}.gen__2--inner{text-align:center}.gen__2--inner h1{margin:1rem auto}.gen__2--inner>.btn{margin:1rem auto 2rem}.gen__2--inner .warn{margin:2rem auto}.gen__3--inner{text-align:center}.gen__3--inner h1{margin:2rem auto 1rem}.gen__3--inner>.btn,.gen__3--inner>.form-control{margin:0 auto 3rem}.pre-footer{padding:1rem;-webkit-box-shadow:16px 16px 47px 0 rgba(0,0,0,.07);box-shadow:16px 16px 47px 0 rgba(0,0,0,.07);margin-top:5rem;background-color:#fff;text-align:center}.pre-footer p{font-size:1.3rem}.footer{background-color:#102138;color:#fff;font-size:.8rem;margin-top:0}.footer h5{margin-top:.5rem;margin-bottom:.25rem}.footer h5 i{margin-left:-1.5em;margin-right:.25em}.footer h5:first-child{margin-top:0}.footer ul{list-style:none;padding-left:0;margin:0}.footer li,.footer p{font-size:.8rem;margin:.25em 0}.footer a{color:#7fe5ff;font-weight:400}.footer a:focus,.footer a:hover{color:#4cdbff}.footer small{font-size:.6rem}.footer--logo{width:100%;height:auto;max-width:16rem}.header--gas{max-width:26rem;color:#333}.header--gas p{font-weight:400;margin:.5rem 0 0}.header--gas a,.header--gas a:focus,.header--gas a:hover,.header--gas a:visited{color:#0e97c0}.footer--left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:22rem;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:32rem){.footer--left{max-width:100%}}.footer--cent{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:34rem;-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2}@media screen and (max-width:32rem){.footer--cent{max-width:100%}}.footer--cent li:last-child,.footer--cent ul{margin-bottom:0}.footer--righ{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 2rem;max-width:28rem;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}@media screen and (max-width:32rem){.footer--righ{max-width:100%}}.footer__icon{display:inline-block;height:30px;width:30px;padding:5px}.footer__pill-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}a.footer__pill{display:inline;background:#0e97c0;padding:3px 12px;border-radius:30px;color:#fff}a.footer__pill:focus,a.footer__pill:hover{color:#0e97c0;background:#fff;opacity:1}.custom-token-fields label{font-weight:400;font-size:1rem}.custom-token-fields input{height:2rem;padding:.5rem 1rem;font-size:.9rem;line-height:1.5;border-radius:0}select.custom-token-fields input{height:2rem;line-height:2rem}select[multiple].custom-token-fields input,textarea.custom-token-fields input{height:auto}.custom-token-fields input .mono{font-size:.75rem}.custom-token-fields .address-identicon-container{margin-top:2rem}.swap--btc,.swap--hw,.swap--usd{text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1rem .15rem}.swap--btc .col-sm-7,.swap--hw .col-sm-7,.swap--usd .col-sm-7{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.swap--usd{background-color:#2b71b1}.swap--usd *,.swap--usd a{color:#fff}.swap--usd a:focus,.swap--usd a:hover{color:hsla(0,0%,100%,.9)}.swap--usd .swap-flag--bal,.swap--usd .swap-flag--price{background-color:#2e86d7}.swap--btc{background-color:#006e79}.swap--btc *,.swap--btc a{color:#fff}.swap--btc a:focus,.swap--btc a:hover{color:hsla(0,0%,100%,.9)}.swap--btc .swap-flag--bal,.swap--btc .swap-flag--price{background-color:#00a3b4}.swap--hw{background-color:#6e9a3e}.swap--hw *,.swap--hw a{color:#fff}.swap--hw a:focus,.swap--hw a:hover{color:hsla(0,0%,100%,.9)}.swap--hw .swap-flag--bal,.swap--hw .swap-flag--price{background-color:#81bc3f}.swap--hw .swap__logo{margin:.45rem 0}.swap-flag--bal,.swap-flag--price{background-color:#5dba5a;color:#fff;padding:.1rem .5rem;font-size:.7rem;border-radius:5rem;margin:.7rem 0 0;line-height:1.4;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.swap__subhead{font-size:.8rem;margin:.15rem 0}.swap__cta{font-size:1.25rem;margin:.15rem 0}.swap__logo{margin:0}.swap__nav{margin-top:-1.1rem;margin-bottom:.7rem;text-align:center}.swap__nav a{color:#9a9a9a;padding:0 .2rem .6rem}.send-modal__addr{font-size:12px}.u__protip{display:table}.u__protip:before{content:"";display:table-cell;width:2em;height:1em;background-image:url(../images/icon-protip.svg);background-size:contain;vertical-align:middle;text-align:center;background-position:50%;background-repeat:no-repeat;border-right:.5em solid transparent}.u__download{display:table;margin-left:.5em}.u__download:before{content:"";display:table-cell;width:1.25em;height:1em;background-image:url(../images/icon-external-link.svg);background-size:contain;vertical-align:middle;text-align:center;background-position:50%;background-repeat:no-repeat;border-right:.5em solid transparent}.send__load-tokens{padding:5px 2px;margin:0;background-color:#ff9800;text-align:center;color:#fff;font-size:9px}.send__load-tokens img{width:14px;height:14px}.send__load-tokens p{margin:4px 0 0;font-weight:500}.send__load-tokens:hover{color:#fff;opacity:.8}.onboarding__modal{padding:1rem}.onboarding__modal:after,.onboarding__modal:before{content:" ";display:table}.onboarding__modal:after{clear:both}.onboarding__modal .btn-primary{background-image:url(../images/icon-arrow-right.svg);background-size:contain;background-position:100%;background-repeat:no-repeat}.onboarding__modal .btn-default{background-image:url(../images/icon-arrow-left.svg);background-size:contain;background-position:0;background-repeat:no-repeat}.onboarding__modal .onboarding__title{text-align:center;margin-bottom:1.5rem}@media (max-width:50.2rem){.onboarding__modal .onboarding__title{margin:0 auto .5rem}}.onboarding__modal img{margin-top:1rem;margin-bottom:1rem}@media (max-width:50.2rem){.onboarding__modal img{max-height:200px}}.onboarding__modal .onboarding__buttons .btn{margin-top:.5rem;margin-bottom:.5rem}@media (min-width:51.2rem){.onboarding__modal .onboarding__buttons{margin-top:.5rem;margin-bottom:.5rem}.onboarding__modal .onboarding__buttons:after,.onboarding__modal .onboarding__buttons:before{content:" ";display:table}.onboarding__modal .onboarding__buttons:after{clear:both}.onboarding__modal .onboarding__buttons .btn+.btn{float:right}}@media (max-width:50.2rem){.onboarding__modal .onboarding__buttons .btn{display:block}.onboarding__modal .onboarding__buttons .btn+.btn{margin-top:1.5rem}}@media (max-width:50.2rem){.onboarding__modal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.onboarding__modal .onboarding__content,.onboarding__modal .onboarding__image{-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2}.onboarding__modal .onboarding__content+.onboarding__image{-webkit-box-ordinal-group:2;-webkit-order:1;-ms-flex-order:1;order:1}}.row.row--flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}@media (max-width:50.2rem){.row.row--flex{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}}.onboarding__msg{text-align:center;font-size:.9rem} \ No newline at end of file diff --git a/dist/helpers.html b/dist/helpers.html index c8ddc21699..cd65fa887f 100644 --- a/dist/helpers.html +++ b/dist/helpers.html @@ -99,13 +99,13 @@ MyEtherWallet -

    3.23.0

    +

    3.23.1

    - + diff --git a/dist/index.html b/dist/index.html index e50ece47b8..25bc2276ac 100644 --- a/dist/index.html +++ b/dist/index.html @@ -99,13 +99,13 @@ MyEtherWallet -

    3.23.0

    +

    3.23.1

    - + diff --git a/dist/js/etherwallet-master.js b/dist/js/etherwallet-master.js index 25eea3dba9..f33be89def 100644 --- a/dist/js/etherwallet-master.js +++ b/dist/js/etherwallet-master.js @@ -5388,7 +5388,7 @@ var decryptWalletCtrl = function decryptWalletCtrl($scope, $sce, walletService) module.exports = decryptWalletCtrl; }).call(this,require("buffer").Buffer) -},{"buffer":401}],36:[function(require,module,exports){ +},{"buffer":415}],36:[function(require,module,exports){ 'use strict'; var domainsaleCtrl = function domainsaleCtrl($scope, $sce, walletService) { @@ -7153,7 +7153,7 @@ var signMsgCtrl = function signMsgCtrl($scope, $sce, walletService) { module.exports = signMsgCtrl; }).call(this,require("buffer").Buffer) -},{"buffer":401}],44:[function(require,module,exports){ +},{"buffer":415}],44:[function(require,module,exports){ 'use strict'; function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } @@ -11001,7 +11001,7 @@ ens.prototype.checkDomain = function () { module.exports = ens; }).call(this,require("buffer").Buffer) -},{"./ensConfigs/ETHConfig.json":65,"./ensConfigs/ROPConfig.json":66,"./ensConfigs/RinkebyConfig.json":67,"./ensConfigs/auctionABI.json":68,"./ensConfigs/deedABI.json":69,"./ensConfigs/registryABI.json":70,"./ensConfigs/resolverABI.json":71,"./ensConfigs/subDomainABI.json":72,"buffer":401,"idna-uts46":879}],65:[function(require,module,exports){ +},{"./ensConfigs/ETHConfig.json":65,"./ensConfigs/ROPConfig.json":66,"./ensConfigs/RinkebyConfig.json":67,"./ensConfigs/auctionABI.json":68,"./ensConfigs/deedABI.json":69,"./ensConfigs/registryABI.json":70,"./ensConfigs/resolverABI.json":71,"./ensConfigs/subDomainABI.json":72,"buffer":415,"idna-uts46":893}],65:[function(require,module,exports){ module.exports={ "public": { "resolver": "0x1da022710dF5002339274AaDEe8D58218e9D6AB5", @@ -16056,7 +16056,7 @@ if (IS_CX) { app.controller('cxDecryptWalletCtrl', ['$scope', '$sce', 'walletService', cxDecryptWalletCtrl]); } -},{"./ajaxReq":25,"./bity":26,"./constants/darkListConst":27,"./controllers/CX/addWalletCtrl":28,"./controllers/CX/cxDecryptWalletCtrl":29,"./controllers/CX/mainPopCtrl":30,"./controllers/CX/myWalletsCtrl":31,"./controllers/CX/quickSendCtrl":32,"./controllers/bulkGenCtrl":33,"./controllers/contractsCtrl":34,"./controllers/decryptWalletCtrl":35,"./controllers/domainsaleCtrl":36,"./controllers/ensCtrl":37,"./controllers/footerCtrl":38,"./controllers/helpersCtrl":39,"./controllers/offlineTxCtrl":40,"./controllers/onboardingCtrl":41,"./controllers/sendTxCtrl":42,"./controllers/signMsgCtrl":43,"./controllers/swapCtrl":44,"./controllers/tabsCtrl":45,"./controllers/txStatusCtrl":46,"./controllers/viewCtrl":47,"./controllers/viewWalletCtrl":48,"./controllers/walletBalanceCtrl":49,"./controllers/walletGenCtrl":50,"./customGas.js":51,"./cxFuncs":52,"./directives/QRCodeDrtv":53,"./directives/addressFieldDrtv":54,"./directives/balanceDrtv":56,"./directives/blockiesDrtv":57,"./directives/cxWalletDecryptDrtv":58,"./directives/fileReaderDrtv":59,"./directives/walletDecryptDrtv":61,"./domainsale":62,"./ens":64,"./ethFuncs":73,"./etherUnits":74,"./globalFuncs":75,"./homoglyphs.json":76,"./kyber":77,"./localStoragePolyfill":85,"./myetherwallet":87,"./nodes":95,"./services/globalService":96,"./services/walletService":97,"./solidity/coder":101,"./solidity/utils":112,"./staticJS/customMarked":113,"./staticJS/digitalBitboxEth":114,"./staticJS/digitalBitboxUsb":115,"./staticJS/ledger-eth":116,"./staticJS/ledger3":117,"./staticJS/mewConnectEth":118,"./staticJS/secalotEth":119,"./staticJS/secalotUsb":120,"./staticJS/u2f-api":121,"./tokenlib":122,"./translations/translate.js":168,"./uiFuncs":172,"./validator":173,"./web3Wallet":174,"@myetherwallet/mewconnect-web-client":175,"angular":320,"angular-animate":314,"angular-sanitize":316,"angular-translate":318,"angular-translate-handler-log":317,"babel-polyfill":339,"bignumber.js":356,"bip39":357,"crypto":827,"detect-browser":834,"ethereumjs-tx":858,"ethereumjs-util":859,"hdkey":876,"levenshtein":894,"punycode":397,"scryptsy":938,"similarity":953,"string-format":955,"trezor-connect":969,"unicode/category/Ll":986,"uuid":990,"wallet-address-validator":1003,"xss-filters":1005}],87:[function(require,module,exports){ +},{"./ajaxReq":25,"./bity":26,"./constants/darkListConst":27,"./controllers/CX/addWalletCtrl":28,"./controllers/CX/cxDecryptWalletCtrl":29,"./controllers/CX/mainPopCtrl":30,"./controllers/CX/myWalletsCtrl":31,"./controllers/CX/quickSendCtrl":32,"./controllers/bulkGenCtrl":33,"./controllers/contractsCtrl":34,"./controllers/decryptWalletCtrl":35,"./controllers/domainsaleCtrl":36,"./controllers/ensCtrl":37,"./controllers/footerCtrl":38,"./controllers/helpersCtrl":39,"./controllers/offlineTxCtrl":40,"./controllers/onboardingCtrl":41,"./controllers/sendTxCtrl":42,"./controllers/signMsgCtrl":43,"./controllers/swapCtrl":44,"./controllers/tabsCtrl":45,"./controllers/txStatusCtrl":46,"./controllers/viewCtrl":47,"./controllers/viewWalletCtrl":48,"./controllers/walletBalanceCtrl":49,"./controllers/walletGenCtrl":50,"./customGas.js":51,"./cxFuncs":52,"./directives/QRCodeDrtv":53,"./directives/addressFieldDrtv":54,"./directives/balanceDrtv":56,"./directives/blockiesDrtv":57,"./directives/cxWalletDecryptDrtv":58,"./directives/fileReaderDrtv":59,"./directives/walletDecryptDrtv":61,"./domainsale":62,"./ens":64,"./ethFuncs":73,"./etherUnits":74,"./globalFuncs":75,"./homoglyphs.json":76,"./kyber":77,"./localStoragePolyfill":85,"./myetherwallet":87,"./nodes":95,"./services/globalService":96,"./services/walletService":97,"./solidity/coder":101,"./solidity/utils":112,"./staticJS/customMarked":113,"./staticJS/digitalBitboxEth":114,"./staticJS/digitalBitboxUsb":115,"./staticJS/ledger-eth":116,"./staticJS/ledger3":117,"./staticJS/mewConnectEth":118,"./staticJS/secalotEth":119,"./staticJS/secalotUsb":120,"./staticJS/u2f-api":121,"./tokenlib":122,"./translations/translate.js":168,"./uiFuncs":172,"./validator":173,"./web3Wallet":174,"@myetherwallet/mewconnect-web-client":175,"angular":334,"angular-animate":328,"angular-sanitize":330,"angular-translate":332,"angular-translate-handler-log":331,"babel-polyfill":353,"bignumber.js":370,"bip39":371,"crypto":841,"detect-browser":848,"ethereumjs-tx":872,"ethereumjs-util":873,"hdkey":890,"levenshtein":908,"punycode":411,"scryptsy":952,"similarity":967,"string-format":969,"trezor-connect":983,"unicode/category/Ll":1000,"uuid":1004,"wallet-address-validator":1017,"xss-filters":1019}],87:[function(require,module,exports){ (function (Buffer){ 'use strict'; @@ -16463,7 +16463,7 @@ Wallet.getWalletFromPrivKeyFile = function (strjson, password) { module.exports = Wallet; }).call(this,require("buffer").Buffer) -},{"buffer":401}],88:[function(require,module,exports){ +},{"buffer":415}],88:[function(require,module,exports){ 'use strict'; var customNode = function customNode(srvrUrl, port, httpBasicAuthentication) { @@ -17196,7 +17196,7 @@ nodes.nodeList = { blockExplorerAddr: "https://explorer.eos-classic.io/addr/[[address]]", type: nodes.nodeTypes.EOSC, eip155: true, - chainId: 20, + chainId: 2018, tokenList: require("./tokens/eoscTokens.json"), abiList: require("./abiDefinitions/eoscAbi.json"), estimateGas: true, @@ -17852,7 +17852,7 @@ module.exports = { defaultAccount: undefined }; -},{"bignumber.js":356}],103:[function(require,module,exports){ +},{"bignumber.js":370}],103:[function(require,module,exports){ 'use strict'; var f = require('./formatters'); @@ -18131,7 +18131,7 @@ module.exports = { formatOutputAddress: formatOutputAddress }; -},{"./config":102,"./param":106,"./utils":112,"bignumber.js":356}],105:[function(require,module,exports){ +},{"./config":102,"./param":106,"./utils":112,"bignumber.js":370}],105:[function(require,module,exports){ 'use strict'; var f = require('./formatters'); @@ -19295,7 +19295,7 @@ module.exports = { isJson: isJson }; -},{"bignumber.js":356,"ethereumjs-util":859,"utf8":988}],113:[function(require,module,exports){ +},{"bignumber.js":370,"ethereumjs-util":873,"utf8":1002}],113:[function(require,module,exports){ 'use strict'; var marked = require('marked'); @@ -19326,7 +19326,7 @@ marked.setOptions({ }); module.exports = marked; -},{"marked":895}],114:[function(require,module,exports){ +},{"marked":909}],114:[function(require,module,exports){ (function (Buffer){ /** * (c) 2017 Douglas Bakkum, Shift Devices AG @@ -19494,7 +19494,7 @@ DigitalBitboxEth.prototype.signMessage = function (path, messageHex, callback) { module.exports = DigitalBitboxEth; }).call(this,require("buffer").Buffer) -},{"buffer":401,"crypto":827,"hdkey":876}],115:[function(require,module,exports){ +},{"buffer":415,"crypto":841,"hdkey":890}],115:[function(require,module,exports){ (function (Buffer){ /** * (c) 2017 Douglas Bakkum, Shift Devices AG @@ -19548,7 +19548,7 @@ DigitalBitboxUsb.prototype.exchange = function (msg, callback) { module.exports = DigitalBitboxUsb; }).call(this,require("buffer").Buffer) -},{"buffer":401}],116:[function(require,module,exports){ +},{"buffer":415}],116:[function(require,module,exports){ (function (Buffer){ /******************************************************************************** * Ledger Communication toolkit @@ -19763,7 +19763,7 @@ LedgerEth.prototype.signPersonalMessage_async = function (path, messageHex, call module.exports = LedgerEth; }).call(this,require("buffer").Buffer) -},{"buffer":401}],117:[function(require,module,exports){ +},{"buffer":415}],117:[function(require,module,exports){ (function (Buffer){ /******************************************************************************** * Ledger Communication toolkit @@ -19834,7 +19834,7 @@ Ledger3.prototype.exchange = function (apduHex, callback) { module.exports = Ledger3; }).call(this,require("buffer").Buffer) -},{"buffer":401}],118:[function(require,module,exports){ +},{"buffer":415}],118:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -20299,7 +20299,7 @@ SecalotEth.prototype.signMessage = function (path, message, callback) { module.exports = SecalotEth; }).call(this,require("buffer").Buffer) -},{"buffer":401}],120:[function(require,module,exports){ +},{"buffer":415}],120:[function(require,module,exports){ (function (Buffer){ 'use strict'; @@ -20343,7 +20343,7 @@ SecalotUsb.prototype.exchange = function (apduHex, callback) { module.exports = SecalotUsb; }).call(this,require("buffer").Buffer) -},{"buffer":401}],121:[function(require,module,exports){ +},{"buffer":415}],121:[function(require,module,exports){ //Copyright 2014-2015 Google Inc. All rights reserved. //Use of this source code is governed by a BSD-style @@ -21170,16 +21170,8 @@ module.exports=[ ] },{}],128:[function(require,module,exports){ -module.exports=[ - { - "address": "0x92b5120545f457cd0ffcfd787d17a5d777a54293", - "symbol": "EOSG", - "decimal": 0, - "type": "default" - } -] - -},{}],129:[function(require,module,exports){ +arguments[4][2][0].apply(exports,arguments) +},{"dup":2}],129:[function(require,module,exports){ module.exports=[ { "address": "0x72ea3508d9d817a91465abb59be10fef9857a055", @@ -32266,7 +32258,7 @@ uiFuncs.notifier = { module.exports = uiFuncs; }).call(this,require("buffer").Buffer) -},{"buffer":401}],173:[function(require,module,exports){ +},{"buffer":415}],173:[function(require,module,exports){ 'use strict'; var validator = function validator() {}; @@ -32407,11 +32399,7 @@ module.exports = Web3Wallet; (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; }; - -function _interopDefault(ex) { - return ex && (typeof ex === 'undefined' ? 'undefined' : _typeof(ex)) === 'object' && 'default' in ex ? ex['default'] : ex; -} +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var createLogger = _interopDefault(require('logging')); var EventEmitter = _interopDefault(require('events')); @@ -32425,13 +32413,11 @@ var debugLogger = _interopDefault(require('debug')); var io = _interopDefault(require('socket.io-client')); var SimplePeer = _interopDefault(require('simple-peer')); -var version = "1.0.7"; +var version = "1.0.9"; var version$1 = version; -var stunServers = [ -// { urls: 'stun:stun.l.google.com:19302' }, -{ urls: 'stun:global.stun.twilio.com:3478?transport=udp' }]; +var stunServers = [{ urls: 'stun:global.stun.twilio.com:3478?transport=udp' }]; var versions = ['0.0.1']; @@ -32514,7 +32500,7 @@ var communicationTypes = { signTx: 'signTx' }; -var asyncToGenerator = function asyncToGenerator(fn) { +var asyncToGenerator = function (fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { @@ -32543,7 +32529,7 @@ var asyncToGenerator = function asyncToGenerator(fn) { }; }; -var classCallCheck = function classCallCheck(instance, Constructor) { +var classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } @@ -32581,9 +32567,9 @@ var _extends = Object.assign || function (target) { return target; }; -var inherits = function inherits(subClass, superClass) { +var inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === 'undefined' ? 'undefined' : _typeof(superClass))); + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { @@ -32597,19 +32583,19 @@ var inherits = function inherits(subClass, superClass) { if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }; -var possibleConstructorReturn = function possibleConstructorReturn(self, call) { +var possibleConstructorReturn = function (self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } - return call && ((typeof call === 'undefined' ? 'undefined' : _typeof(call)) === "object" || typeof call === "function") ? call : self; + return call && (typeof call === "object" || typeof call === "function") ? call : self; }; -var toConsumableArray = function toConsumableArray(arr) { +var toConsumableArray = function (arr) { if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - }return arr2; + for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; } else { return Array.from(arr); } @@ -32694,6 +32680,8 @@ var MewConnectCommon = function (_EventEmitter) { * */ if (typeof window !== 'undefined') { if (browser.name === 'safari') { + // eslint-disable-next-line global-require + require('webrtc-adapter'); return MewConnectCommon.buildBrowserResult(true, 'Safari', 'version: ' + browser.version); } if (browser.name === 'ie') { @@ -32923,6 +32911,7 @@ var MewConnectInitiator = function (_MewConnectCommon) { createClass(MewConnectInitiator, [{ key: 'destroyOnUnload', + // Check if a WebRTC connection exists before a window/tab is closed or refreshed // Destroy the connection if one exists value: function destroyOnUnload() { @@ -32941,6 +32930,7 @@ var MewConnectInitiator = function (_MewConnectCommon) { }, { key: 'getSocketConnectionState', + // Returns a boolean indicating whether the socket connection exists and is active value: function getSocketConnectionState() { return this.socketConnected; @@ -33421,7 +33411,6 @@ var MewConnectInitiator = function (_MewConnectCommon) { this.socketEmit(this.signals.rtcConnected, this.socketKey); this.socketDisconnect(); this.uiCommunicator(this.lifeCycle.RtcConnectedEvent); - this.uiCommunicator(this.lifeCycle.RtcConnectedEvent); } }, { key: 'onData', @@ -33671,32 +33660,30 @@ var index = { module.exports = index; }).call(this,require("buffer").Buffer) -},{"browser-or-node":184,"buffer":401,"crypto":827,"debug":192,"detect-browser":194,"eccrypto":195,"ethereumjs-util":226,"events":861,"logging":256,"secp256k1":277,"simple-peer":291,"socket.io-client":295}],176:[function(require,module,exports){ -'use strict'; - -module.exports = after; +},{"browser-or-node":184,"buffer":415,"crypto":841,"debug":192,"detect-browser":194,"eccrypto":195,"ethereumjs-util":226,"events":875,"logging":256,"secp256k1":279,"simple-peer":293,"socket.io-client":297,"webrtc-adapter":314}],176:[function(require,module,exports){ +module.exports = after function after(count, callback, err_cb) { - var bail = false; - err_cb = err_cb || noop; - proxy.count = count; + var bail = false + err_cb = err_cb || noop + proxy.count = count - return count === 0 ? callback() : proxy; + return (count === 0) ? callback() : proxy function proxy(err, result) { if (proxy.count <= 0) { - throw new Error('after called too many times'); + throw new Error('after called too many times') } - --proxy.count; + --proxy.count // after first error, rest are passed to err_cb if (err) { - bail = true; - callback(err); + bail = true + callback(err) // future error callbacks will go to error handler - callback = err_cb; + callback = err_cb } else if (proxy.count === 0 && !bail) { - callback(null, result); + callback(null, result) } } } @@ -33704,8 +33691,6 @@ function after(count, callback, err_cb) { function noop() {} },{}],177:[function(require,module,exports){ -"use strict"; - /** * An abstraction for slicing an arraybuffer even when * ArrayBuffer.prototype.slice is not supported @@ -33713,24 +33698,16 @@ function noop() {} * @api public */ -module.exports = function (arraybuffer, start, end) { +module.exports = function(arraybuffer, start, end) { var bytes = arraybuffer.byteLength; start = start || 0; end = end || bytes; - if (arraybuffer.slice) { - return arraybuffer.slice(start, end); - } + if (arraybuffer.slice) { return arraybuffer.slice(start, end); } - if (start < 0) { - start += bytes; - } - if (end < 0) { - end += bytes; - } - if (end > bytes) { - end = bytes; - } + if (start < 0) { start += bytes; } + if (end < 0) { end += bytes; } + if (end > bytes) { end = bytes; } if (start >= bytes || start >= end || bytes === 0) { return new ArrayBuffer(0); @@ -33745,7 +33722,6 @@ module.exports = function (arraybuffer, start, end) { }; },{}],178:[function(require,module,exports){ -"use strict"; /** * Expose `Backoff`. @@ -33781,12 +33757,12 @@ function Backoff(opts) { * @api public */ -Backoff.prototype.duration = function () { +Backoff.prototype.duration = function(){ var ms = this.ms * Math.pow(this.factor, this.attempts++); if (this.jitter) { - var rand = Math.random(); + var rand = Math.random(); var deviation = Math.floor(rand * this.jitter * ms); - ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation; + ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation; } return Math.min(ms, this.max) | 0; }; @@ -33797,7 +33773,7 @@ Backoff.prototype.duration = function () { * @api public */ -Backoff.prototype.reset = function () { +Backoff.prototype.reset = function(){ this.attempts = 0; }; @@ -33807,7 +33783,7 @@ Backoff.prototype.reset = function () { * @api public */ -Backoff.prototype.setMin = function (min) { +Backoff.prototype.setMin = function(min){ this.ms = min; }; @@ -33817,7 +33793,7 @@ Backoff.prototype.setMin = function (min) { * @api public */ -Backoff.prototype.setMax = function (max) { +Backoff.prototype.setMax = function(max){ this.max = max; }; @@ -33827,13 +33803,12 @@ Backoff.prototype.setMax = function (max) { * @api public */ -Backoff.prototype.setJitter = function (jitter) { +Backoff.prototype.setJitter = function(jitter){ this.jitter = jitter; }; -},{}],179:[function(require,module,exports){ -"use strict"; +},{}],179:[function(require,module,exports){ /* * base64-arraybuffer * https://github.com/niklasvh/base64-arraybuffer @@ -33841,7 +33816,7 @@ Backoff.prototype.setJitter = function (jitter) { * Copyright (c) 2012 Niklas von Hertzen * Licensed under the MIT license. */ -(function () { +(function(){ "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; @@ -33852,20 +33827,18 @@ Backoff.prototype.setJitter = function (jitter) { lookup[chars.charCodeAt(i)] = i; } - exports.encode = function (arraybuffer) { + exports.encode = function(arraybuffer) { var bytes = new Uint8Array(arraybuffer), - i, - len = bytes.length, - base64 = ""; + i, len = bytes.length, base64 = ""; - for (i = 0; i < len; i += 3) { + for (i = 0; i < len; i+=3) { base64 += chars[bytes[i] >> 2]; - base64 += chars[(bytes[i] & 3) << 4 | bytes[i + 1] >> 4]; - base64 += chars[(bytes[i + 1] & 15) << 2 | bytes[i + 2] >> 6]; + base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)]; + base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)]; base64 += chars[bytes[i + 2] & 63]; } - if (len % 3 === 2) { + if ((len % 3) === 2) { base64 = base64.substring(0, base64.length - 1) + "="; } else if (len % 3 === 1) { base64 = base64.substring(0, base64.length - 2) + "=="; @@ -33874,15 +33847,10 @@ Backoff.prototype.setJitter = function (jitter) { return base64; }; - exports.decode = function (base64) { + exports.decode = function(base64) { var bufferLength = base64.length * 0.75, - len = base64.length, - i, - p = 0, - encoded1, - encoded2, - encoded3, - encoded4; + len = base64.length, i, p = 0, + encoded1, encoded2, encoded3, encoded4; if (base64[base64.length - 1] === "=") { bufferLength--; @@ -33892,17 +33860,17 @@ Backoff.prototype.setJitter = function (jitter) { } var arraybuffer = new ArrayBuffer(bufferLength), - bytes = new Uint8Array(arraybuffer); + bytes = new Uint8Array(arraybuffer); - for (i = 0; i < len; i += 4) { + for (i = 0; i < len; i+=4) { encoded1 = lookup[base64.charCodeAt(i)]; - encoded2 = lookup[base64.charCodeAt(i + 1)]; - encoded3 = lookup[base64.charCodeAt(i + 2)]; - encoded4 = lookup[base64.charCodeAt(i + 3)]; + encoded2 = lookup[base64.charCodeAt(i+1)]; + encoded3 = lookup[base64.charCodeAt(i+2)]; + encoded4 = lookup[base64.charCodeAt(i+3)]; - bytes[p++] = encoded1 << 2 | encoded2 >> 4; - bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2; - bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63; + bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); + bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); + bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); } return arraybuffer; @@ -33910,65 +33878,63 @@ Backoff.prototype.setJitter = function (jitter) { })(); },{}],180:[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; +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; +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 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; + 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[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; + 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'); +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 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'); + 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[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'); + 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) - }; + } } /* @@ -33993,81 +33959,84 @@ function decode(buffer) { * 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); +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); + 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; + return signature } module.exports = { check: check, decode: decode, encode: encode -}; +} -},{"safe-buffer":276}],181:[function(require,module,exports){ +},{"safe-buffer":277}],181:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Create a blob builder even when vendor prefixes exist */ -var BlobBuilder = global.BlobBuilder || global.WebKitBlobBuilder || global.MSBlobBuilder || global.MozBlobBuilder; +var BlobBuilder = global.BlobBuilder + || global.WebKitBlobBuilder + || global.MSBlobBuilder + || global.MozBlobBuilder; /** * Check if Blob constructor is supported */ -var blobSupported = function () { +var blobSupported = (function() { try { var a = new Blob(['hi']); return a.size === 2; - } catch (e) { + } catch(e) { return false; } -}(); +})(); /** * Check if Blob constructor supports ArrayBufferViews * Fails in Safari 6, so we need to map to ArrayBuffers there. */ -var blobSupportsArrayBufferView = blobSupported && function () { +var blobSupportsArrayBufferView = blobSupported && (function() { try { - var b = new Blob([new Uint8Array([1, 2])]); + var b = new Blob([new Uint8Array([1,2])]); return b.size === 2; - } catch (e) { + } catch(e) { return false; } -}(); +})(); /** * Check if BlobBuilder is supported */ -var blobBuilderSupported = BlobBuilder && BlobBuilder.prototype.append && BlobBuilder.prototype.getBlob; +var blobBuilderSupported = BlobBuilder + && BlobBuilder.prototype.append + && BlobBuilder.prototype.getBlob; /** * Helper function that maps ArrayBufferViews to ArrayBuffers @@ -34104,7 +34073,7 @@ function BlobBuilderConstructor(ary, options) { bb.append(ary[i]); } - return options.type ? bb.getBlob(options.type) : bb.getBlob(); + return (options.type) ? bb.getBlob(options.type) : bb.getBlob(); }; function BlobConstructor(ary, options) { @@ -34112,7 +34081,7 @@ function BlobConstructor(ary, options) { return new Blob(ary, options || {}); }; -module.exports = function () { +module.exports = (function() { if (blobSupported) { return blobSupportsArrayBufferView ? global.Blob : BlobConstructor; } else if (blobBuilderSupported) { @@ -34120,28 +34089,23 @@ module.exports = function () { } else { return undefined; } -}(); +})(); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],182:[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) { + 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) { + function inherits (ctor, superCtor) { ctor.super_ = superCtor; - var TempCtor = function TempCtor() {}; + var TempCtor = function () {}; TempCtor.prototype = superCtor.prototype; ctor.prototype = new TempCtor(); ctor.prototype.constructor = ctor; @@ -34149,7 +34113,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // BN - function BN(number, base, endian) { + function BN (number, base, endian) { if (BN.isBN(number)) { return number; } @@ -34170,7 +34134,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this._init(number || 0, base || 10, endian || 'be'); } } - if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object') { + if (typeof module === 'object') { module.exports = BN; } else { exports.BN = BN; @@ -34182,32 +34146,34 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var Buffer; try { Buffer = require('buffer').Buffer; - } catch (e) {} + } catch (e) { + } - BN.isBN = function isBN(num) { + 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); + return num !== null && typeof num === 'object' && + num.constructor.wordSize === BN.wordSize && Array.isArray(num.words); }; - BN.max = function max(left, right) { + BN.max = function max (left, right) { if (left.cmp(right) > 0) return left; return right; }; - BN.min = function min(left, right) { + BN.min = function min (left, right) { if (left.cmp(right) < 0) return left; return right; }; - BN.prototype._init = function init(number, base, endian) { + 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') { + if (typeof number === 'object') { return this._initArray(number, base, endian); } @@ -34239,20 +34205,27 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this._initArray(this.toArray(), base, endian); }; - BN.prototype._initNumber = function _initNumber(number, 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.words = [ number & 0x3ffffff ]; this.length = 1; } else if (number < 0x10000000000000) { - this.words = [number & 0x3ffffff, number / 0x4000000 & 0x3ffffff]; + 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.words = [ + number & 0x3ffffff, + (number / 0x4000000) & 0x3ffffff, + 1 + ]; this.length = 3; } @@ -34262,11 +34235,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this._initArray(this.toArray(), base, endian); }; - BN.prototype._initArray = function _initArray(number, 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.words = [ 0 ]; this.length = 1; return this; } @@ -34281,9 +34254,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + 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; @@ -34292,9 +34265,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } } 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; + 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; @@ -34305,7 +34278,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - function parseHex(str, start, end) { + function parseHex (str, start, end) { var r = 0; var len = Math.min(str.length, end); for (var i = start; i < len; i++) { @@ -34317,11 +34290,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (c >= 49 && c <= 54) { r |= c - 49 + 0xa; - // 'A' - 'F' + // 'A' - 'F' } else if (c >= 17 && c <= 22) { r |= c - 17 + 0xa; - // '0' - '9' + // '0' - '9' } else { r |= c & 0xf; } @@ -34329,7 +34302,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; } - BN.prototype._parseHex = function _parseHex(number, start) { + 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); @@ -34342,9 +34315,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + 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; + this.words[j + 1] |= w >>> (26 - off) & 0x3fffff; off += 24; if (off >= 26) { off -= 26; @@ -34353,13 +34326,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } 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.words[j] |= (w << off) & 0x3ffffff; + this.words[j + 1] |= w >>> (26 - off) & 0x3fffff; } this.strip(); }; - function parseBase(str, start, end, mul) { + function parseBase (str, start, end, mul) { var r = 0; var len = Math.min(str.length, end); for (var i = start; i < len; i++) { @@ -34371,11 +34344,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (c >= 49) { r += c - 49 + 0xa; - // 'A' + // 'A' } else if (c >= 17) { r += c - 17 + 0xa; - // '0' - '9' + // '0' - '9' } else { r += c; } @@ -34383,9 +34356,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; } - BN.prototype._parseBase = function _parseBase(number, base, start) { + BN.prototype._parseBase = function _parseBase (number, base, start) { // Initialize as zero - this.words = [0]; + this.words = [ 0 ]; this.length = 1; // Find length of limb in base @@ -34393,7 +34366,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol limbLen++; } limbLen--; - limbPow = limbPow / base | 0; + limbPow = (limbPow / base) | 0; var total = number.length - start; var mod = total % limbLen; @@ -34428,7 +34401,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - BN.prototype.copy = function copy(dest) { + 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]; @@ -34438,13 +34411,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol dest.red = this.red; }; - BN.prototype.clone = function clone() { + BN.prototype.clone = function clone () { var r = new BN(null); this.copy(r); return r; }; - BN.prototype._expand = function _expand(size) { + BN.prototype._expand = function _expand (size) { while (this.length < size) { this.words[this.length++] = 0; } @@ -34452,14 +34425,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Remove leading `0` from `this` - BN.prototype.strip = function strip() { + 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() { + BN.prototype._normSign = function _normSign () { // -0 = 0 if (this.length === 1 && this.words[0] === 0) { this.negative = 0; @@ -34467,15 +34440,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this; }; - BN.prototype.inspect = function inspect() { + BN.prototype.inspect = function inspect () { return (this.red ? ''; }; /* - var zeros = []; + + var zeros = []; var groupSizes = []; var groupBases = []; - var s = ''; + + var s = ''; var i = -1; while (++i < BN.wordSize) { zeros[i] = s; @@ -34496,15 +34471,57 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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) { + 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; @@ -34515,8 +34532,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + 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 { @@ -34573,33 +34590,33 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol assert(false, 'Base should be between 2 and 36'); }; - BN.prototype.toNumber = function toNumber() { + 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; + 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; + return (this.negative !== 0) ? -ret : ret; }; - BN.prototype.toJSON = function toJSON() { + BN.prototype.toJSON = function toJSON () { return this.toString(16); }; - BN.prototype.toBuffer = function toBuffer(endian, length) { + BN.prototype.toBuffer = function toBuffer (endian, length) { assert(typeof Buffer !== 'undefined'); return this.toArrayLike(Buffer, endian, length); }; - BN.prototype.toArray = function toArray(endian, length) { + BN.prototype.toArray = function toArray (endian, length) { return this.toArrayLike(Array, endian, length); }; - BN.prototype.toArrayLike = function toArrayLike(ArrayType, 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'); @@ -34640,11 +34657,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; if (Math.clz32) { - BN.prototype._countBits = function _countBits(w) { + BN.prototype._countBits = function _countBits (w) { return 32 - Math.clz32(w); }; } else { - BN.prototype._countBits = function _countBits(w) { + BN.prototype._countBits = function _countBits (w) { var t = w; var r = 0; if (t >= 0x1000) { @@ -34667,7 +34684,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; } - BN.prototype._zeroBits = function _zeroBits(w) { + BN.prototype._zeroBits = function _zeroBits (w) { // Short-cut if (w === 0) return 26; @@ -34696,27 +34713,27 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Return number of used bits in a BN - BN.prototype.bitLength = function bitLength() { + 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) { + function toBitArray (num) { var w = new Array(num.bitLength()); for (var bit = 0; bit < w.length; bit++) { - var off = bit / 26 | 0; + var off = (bit / 26) | 0; var wbit = bit % 26; - w[bit] = (num.words[off] & 1 << wbit) >>> wbit; + w[bit] = (num.words[off] & (1 << wbit)) >>> wbit; } return w; } // Number of trailing zero bits - BN.prototype.zeroBits = function zeroBits() { + BN.prototype.zeroBits = function zeroBits () { if (this.isZero()) return 0; var r = 0; @@ -34728,34 +34745,34 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; }; - BN.prototype.byteLength = function byteLength() { + BN.prototype.byteLength = function byteLength () { return Math.ceil(this.bitLength() / 8); }; - BN.prototype.toTwos = function toTwos(width) { + 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) { + 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() { + BN.prototype.isNeg = function isNeg () { return this.negative !== 0; }; // Return negative clone of `this` - BN.prototype.neg = function neg() { + BN.prototype.neg = function neg () { return this.clone().ineg(); }; - BN.prototype.ineg = function ineg() { + BN.prototype.ineg = function ineg () { if (!this.isZero()) { this.negative ^= 1; } @@ -34764,7 +34781,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Or `num` with `this` in-place - BN.prototype.iuor = function iuor(num) { + BN.prototype.iuor = function iuor (num) { while (this.length < num.length) { this.words[this.length++] = 0; } @@ -34776,24 +34793,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.ior = function ior(num) { + 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) { + 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) { + 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) { + BN.prototype.iuand = function iuand (num) { // b = min-length(num, this) var b; if (this.length > num.length) { @@ -34811,24 +34828,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.iand = function iand(num) { + 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) { + 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) { + 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) { + BN.prototype.iuxor = function iuxor (num) { // a.length > b.length var a; var b; @@ -34855,24 +34872,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.ixor = function ixor(num) { + 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) { + 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) { + 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) { + BN.prototype.inotn = function inotn (width) { assert(typeof width === 'number' && width >= 0); var bytesNeeded = Math.ceil(width / 26) | 0; @@ -34892,28 +34909,28 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Handle the residue if (bitsLeft > 0) { - this.words[i] = ~this.words[i] & 0x3ffffff >> 26 - bitsLeft; + this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft)); } // And remove leading zeroes return this.strip(); }; - BN.prototype.notn = function notn(width) { + BN.prototype.notn = function notn (width) { return this.clone().inotn(width); }; // Set `bit` of `this` - BN.prototype.setn = function setn(bit, val) { + BN.prototype.setn = function setn (bit, val) { assert(typeof bit === 'number' && bit >= 0); - var off = bit / 26 | 0; + var off = (bit / 26) | 0; var wbit = bit % 26; this._expand(off + 1); if (val) { - this.words[off] = this.words[off] | 1 << wbit; + this.words[off] = this.words[off] | (1 << wbit); } else { this.words[off] = this.words[off] & ~(1 << wbit); } @@ -34922,7 +34939,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Add `num` to `this` in-place - BN.prototype.iadd = function iadd(num) { + BN.prototype.iadd = function iadd (num) { var r; // negative + positive @@ -34932,7 +34949,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this.negative ^= 1; return this._normSign(); - // positive + negative + // positive + negative } else if (this.negative === 0 && num.negative !== 0) { num.negative = 0; r = this.isub(num); @@ -34966,7 +34983,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (carry !== 0) { this.words[this.length] = carry; this.length++; - // Copy the rest of the words + // Copy the rest of the words } else if (a !== this) { for (; i < a.length; i++) { this.words[i] = a.words[i]; @@ -34977,7 +34994,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Add `num` to `this` - BN.prototype.add = function add(num) { + BN.prototype.add = function add (num) { var res; if (num.negative !== 0 && this.negative === 0) { num.negative = 0; @@ -34997,7 +35014,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Subtract `num` from `this` in-place - BN.prototype.isub = function isub(num) { + BN.prototype.isub = function isub (num) { // this - (-num) = this + num if (num.negative !== 0) { num.negative = 0; @@ -35005,7 +35022,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol num.negative = 1; return r._normSign(); - // -this - num = -(this + num) + // -this - num = -(this + num) } else if (this.negative !== 0) { this.negative = 0; this.iadd(num); @@ -35063,15 +35080,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Subtract `num` from `this` - BN.prototype.sub = function sub(num) { + BN.prototype.sub = function sub (num) { return this.clone().isub(num); }; - function smallMulTo(self, num, out) { + function smallMulTo (self, num, out) { out.negative = num.negative ^ self.negative; - var len = self.length + num.length | 0; + var len = (self.length + num.length) | 0; out.length = len; - len = len - 1 | 0; + len = (len - 1) | 0; // Peel one iteration (compiler can't do it, because of code complexity) var a = self.words[0] | 0; @@ -35079,7 +35096,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var r = a * b; var lo = r & 0x3ffffff; - var carry = r / 0x4000000 | 0; + var carry = (r / 0x4000000) | 0; out.words[0] = lo; for (var k = 1; k < len; k++) { @@ -35089,11 +35106,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + var i = (k - j) | 0; a = self.words[i] | 0; b = num.words[j] | 0; r = a * b + rword; - ncarry += r / 0x4000000 | 0; + ncarry += (r / 0x4000000) | 0; rword = r & 0x3ffffff; } out.words[k] = rword | 0; @@ -35111,7 +35128,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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 comb10MulTo = function comb10MulTo (self, num, out) { var a = self.words; var b = num.words; var o = out.words; @@ -35185,478 +35202,478 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /* k = 0 */ lo = Math.imul(al0, bl0); mid = Math.imul(al0, bh0); - mid = mid + Math.imul(ah0, bl0) | 0; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; @@ -35689,7 +35706,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol comb10MulTo = smallMulTo; } - function bigMulTo(self, num, out) { + function bigMulTo (self, num, out) { out.negative = num.negative ^ self.negative; out.length = self.length + num.length; @@ -35709,10 +35726,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var r = a * b; var lo = r & 0x3ffffff; - ncarry = ncarry + (r / 0x4000000 | 0) | 0; - lo = lo + rword | 0; + ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0; + lo = (lo + rword) | 0; rword = lo & 0x3ffffff; - ncarry = ncarry + (lo >>> 26) | 0; + ncarry = (ncarry + (lo >>> 26)) | 0; hncarry += ncarry >>> 26; ncarry &= 0x3ffffff; @@ -35730,12 +35747,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return out.strip(); } - function jumboMulTo(self, num, out) { + function jumboMulTo (self, num, out) { var fftm = new FFTM(); return fftm.mulp(self, num, out); } - BN.prototype.mulTo = function mulTo(num, out) { + BN.prototype.mulTo = function mulTo (num, out) { var res; var len = this.length + num.length; if (this.length === 10 && num.length === 10) { @@ -35754,12 +35771,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Cooley-Tukey algorithm for FFT // slightly revisited to rely on looping instead of recursion - function FFTM(x, y) { + function FFTM (x, y) { this.x = x; this.y = y; } - FFTM.prototype.makeRBT = function makeRBT(N) { + 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++) { @@ -35770,12 +35787,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Returns binary-reversed representation of `x` - FFTM.prototype.revBin = function revBin(x, l, N) { + 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; + rb |= (x & 1) << (l - i - 1); x >>= 1; } @@ -35784,14 +35801,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Performs "tweedling" phase, therefore 'emulating' // behaviour of the recursive algorithm - FFTM.prototype.permute = function permute(rbt, rws, iws, rtws, itws, N) { + 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) { + 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) { @@ -35834,7 +35851,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - FFTM.prototype.guessLen13b = function guessLen13b(n, m) { + FFTM.prototype.guessLen13b = function guessLen13b (n, m) { var N = Math.max(m, n) | 1; var odd = N & 1; var i = 0; @@ -35845,7 +35862,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return 1 << i + 1 + odd; }; - FFTM.prototype.conjugate = function conjugate(rws, iws, N) { + FFTM.prototype.conjugate = function conjugate (rws, iws, N) { if (N <= 1) return; for (var i = 0; i < N / 2; i++) { @@ -35861,10 +35878,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - FFTM.prototype.normalize13b = function normalize13b(ws, N) { + 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; + var w = Math.round(ws[2 * i + 1] / N) * 0x2000 + + Math.round(ws[2 * i] / N) + + carry; ws[i] = w & 0x3ffffff; @@ -35878,13 +35897,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return ws; }; - FFTM.prototype.convert13b = function convert13b(ws, len, rws, N) { + 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; + rws[2 * i] = carry & 0x1fff; carry = carry >>> 13; + rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13; } // Pad with zeroes @@ -35896,7 +35915,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol assert((carry & ~0x1fff) === 0); }; - FFTM.prototype.stub = function stub(N) { + FFTM.prototype.stub = function stub (N) { var ph = new Array(N); for (var i = 0; i < N; i++) { ph[i] = 0; @@ -35905,7 +35924,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return ph; }; - FFTM.prototype.mulp = function mulp(x, y, out) { + FFTM.prototype.mulp = function mulp (x, y, out) { var N = 2 * this.guessLen13b(x.length, y.length); var rbt = this.makeRBT(N); @@ -35946,25 +35965,25 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Multiply `this` by `num` - BN.prototype.mul = function mul(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) { + 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) { + BN.prototype.imul = function imul (num) { return this.clone().mulTo(num, this); }; - BN.prototype.imuln = function imuln(num) { + BN.prototype.imuln = function imuln (num) { assert(typeof num === 'number'); assert(num < 0x4000000); @@ -35974,7 +35993,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var w = (this.words[i] | 0) * num; var lo = (w & 0x3ffffff) + (carry & 0x3ffffff); carry >>= 26; - carry += w / 0x4000000 | 0; + carry += (w / 0x4000000) | 0; // NOTE: lo is 27bit maximum carry += lo >>> 26; this.words[i] = lo & 0x3ffffff; @@ -35988,22 +36007,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this; }; - BN.prototype.muln = function muln(num) { + BN.prototype.muln = function muln (num) { return this.clone().imuln(num); }; // `this` * `this` - BN.prototype.sqr = function sqr() { + BN.prototype.sqr = function sqr () { return this.mul(this); }; // `this` * `this` in-place - BN.prototype.isqr = function isqr() { + BN.prototype.isqr = function isqr () { return this.imul(this.clone()); }; // Math.pow(`this`, `num`) - BN.prototype.pow = function pow(num) { + BN.prototype.pow = function pow (num) { var w = toBitArray(num); if (w.length === 0) return new BN(1); @@ -36025,11 +36044,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Shift-left in-place - BN.prototype.iushln = function iushln(bits) { + 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 carryMask = (0x3ffffff >>> (26 - r)) << (26 - r); var i; if (r !== 0) { @@ -36037,9 +36056,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol for (i = 0; i < this.length; i++) { var newCarry = this.words[i] & carryMask; - var c = (this.words[i] | 0) - newCarry << r; + var c = ((this.words[i] | 0) - newCarry) << r; this.words[i] = c | carry; - carry = newCarry >>> 26 - r; + carry = newCarry >>> (26 - r); } if (carry) { @@ -36063,7 +36082,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.ishln = function ishln(bits) { + BN.prototype.ishln = function ishln (bits) { // TODO(indutny): implement me assert(this.negative === 0); return this.iushln(bits); @@ -36072,18 +36091,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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) { + BN.prototype.iushrn = function iushrn (bits, hint, extended) { assert(typeof bits === 'number' && bits >= 0); var h; if (hint) { - h = (hint - hint % 26) / 26; + 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 mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r); var maskedWords = extended; h -= s; @@ -36112,7 +36131,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + this.words[i] = (carry << (26 - r)) | (word >>> r); carry = word & mask; } @@ -36129,32 +36148,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.ishrn = function ishrn(bits, hint, extended) { + 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) { + BN.prototype.shln = function shln (bits) { return this.clone().ishln(bits); }; - BN.prototype.ushln = function ushln(bits) { + BN.prototype.ushln = function ushln (bits) { return this.clone().iushln(bits); }; // Shift-right - BN.prototype.shrn = function shrn(bits) { + BN.prototype.shrn = function shrn (bits) { return this.clone().ishrn(bits); }; - BN.prototype.ushrn = function ushrn(bits) { + BN.prototype.ushrn = function ushrn (bits) { return this.clone().iushrn(bits); }; // Test if n bit is set - BN.prototype.testn = function testn(bit) { + BN.prototype.testn = function testn (bit) { assert(typeof bit === 'number' && bit >= 0); var r = bit % 26; var s = (bit - r) / 26; @@ -36170,7 +36189,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Return only lowers bits of number (in-place) - BN.prototype.imaskn = function imaskn(bits) { + BN.prototype.imaskn = function imaskn (bits) { assert(typeof bits === 'number' && bits >= 0); var r = bits % 26; var s = (bits - r) / 26; @@ -36187,7 +36206,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this.length = Math.min(s, this.length); if (r !== 0) { - var mask = 0x3ffffff ^ 0x3ffffff >>> r << r; + var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r); this.words[this.length - 1] &= mask; } @@ -36195,12 +36214,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Return only lowers bits of number - BN.prototype.maskn = function maskn(bits) { + BN.prototype.maskn = function maskn (bits) { return this.clone().imaskn(bits); }; // Add plain number `num` to `this` - BN.prototype.iaddn = function iaddn(num) { + BN.prototype.iaddn = function iaddn (num) { assert(typeof num === 'number'); assert(num < 0x4000000); if (num < 0) return this.isubn(-num); @@ -36223,7 +36242,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this._iaddn(num); }; - BN.prototype._iaddn = function _iaddn(num) { + BN.prototype._iaddn = function _iaddn (num) { this.words[0] += num; // Carry @@ -36241,7 +36260,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Subtract plain number `num` from `this` - BN.prototype.isubn = function isubn(num) { + BN.prototype.isubn = function isubn (num) { assert(typeof num === 'number'); assert(num < 0x4000000); if (num < 0) return this.iaddn(-num); @@ -36269,25 +36288,25 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype.addn = function addn(num) { + BN.prototype.addn = function addn (num) { return this.clone().iaddn(num); }; - BN.prototype.subn = function subn(num) { + BN.prototype.subn = function subn (num) { return this.clone().isubn(num); }; - BN.prototype.iabs = function iabs() { + BN.prototype.iabs = function iabs () { this.negative = 0; return this; }; - BN.prototype.abs = function abs() { + BN.prototype.abs = function abs () { return this.clone().iabs(); }; - BN.prototype._ishlnsubmul = function _ishlnsubmul(num, mul, shift) { + BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) { var len = num.length + shift; var i; @@ -36299,7 +36318,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol w = (this.words[i + shift] | 0) + carry; var right = (num.words[i] | 0) * mul; w -= right & 0x3ffffff; - carry = (w >> 26) - (right / 0x4000000 | 0); + carry = (w >> 26) - ((right / 0x4000000) | 0); this.words[i + shift] = w & 0x3ffffff; } for (; i < this.length - shift; i++) { @@ -36323,7 +36342,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.strip(); }; - BN.prototype._wordDiv = function _wordDiv(num, mode) { + BN.prototype._wordDiv = function _wordDiv (num, mode) { var shift = this.length - num.length; var a = this.clone(); @@ -36361,11 +36380,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } for (var j = m - 1; j >= 0; j--) { - var qj = (a.words[b.length + j] | 0) * 0x4000000 + (a.words[b.length + j - 1] | 0); + 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); + qj = Math.min((qj / bhi) | 0, 0x3ffffff); a._ishlnsubmul(b, qj, j); while (a.negative !== 0) { @@ -36400,7 +36420,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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) { + BN.prototype.divmod = function divmod (num, mode, positive) { assert(!num.isZero()); if (this.isZero()) { @@ -36496,21 +36516,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Find `this` / `num` - BN.prototype.div = function div(num) { + BN.prototype.div = function div (num) { return this.divmod(num, 'div', false).div; }; // Find `this` % `num` - BN.prototype.mod = function mod(num) { + BN.prototype.mod = function mod (num) { return this.divmod(num, 'mod', false).mod; }; - BN.prototype.umod = function umod(num) { + BN.prototype.umod = function umod (num) { return this.divmod(num, 'mod', true).mod; }; // Find Round(`this` / `num`) - BN.prototype.divRound = function divRound(num) { + BN.prototype.divRound = function divRound (num) { var dm = this.divmod(num); // Fast case - exact division @@ -36529,7 +36549,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1); }; - BN.prototype.modn = function modn(num) { + BN.prototype.modn = function modn (num) { assert(num <= 0x3ffffff); var p = (1 << 26) % num; @@ -36542,24 +36562,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // In-place division by number - BN.prototype.idivn = function idivn(num) { + 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; + this.words[i] = (w / num) | 0; carry = w % num; } return this.strip(); }; - BN.prototype.divn = function divn(num) { + BN.prototype.divn = function divn (num) { return this.clone().idivn(num); }; - BN.prototype.egcd = function egcd(p) { + BN.prototype.egcd = function egcd (p) { assert(p.negative === 0); assert(!p.isZero()); @@ -36592,7 +36612,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var xp = x.clone(); while (!x.isZero()) { - for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1) {} + 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) { @@ -36606,7 +36626,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } } - for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 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) { @@ -36641,7 +36661,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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) { + BN.prototype._invmp = function _invmp (p) { assert(p.negative === 0); assert(!p.isZero()); @@ -36660,7 +36680,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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) {} + 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) { @@ -36672,7 +36692,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } } - for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 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) { @@ -36707,7 +36727,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - BN.prototype.gcd = function gcd(num) { + BN.prototype.gcd = function gcd (num) { if (this.isZero()) return num.abs(); if (num.isZero()) return this.abs(); @@ -36747,25 +36767,25 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Invert number in the field F(num) - BN.prototype.invm = function invm(num) { + BN.prototype.invm = function invm (num) { return this.egcd(num).a.umod(num); }; - BN.prototype.isEven = function isEven() { + BN.prototype.isEven = function isEven () { return (this.words[0] & 1) === 0; }; - BN.prototype.isOdd = function isOdd() { + BN.prototype.isOdd = function isOdd () { return (this.words[0] & 1) === 1; }; // And first word and num - BN.prototype.andln = function andln(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) { + BN.prototype.bincn = function bincn (bit) { assert(typeof bit === 'number'); var r = bit % 26; var s = (bit - r) / 26; @@ -36794,11 +36814,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this; }; - BN.prototype.isZero = function isZero() { + BN.prototype.isZero = function isZero () { return this.length === 1 && this.words[0] === 0; }; - BN.prototype.cmpn = function cmpn(num) { + BN.prototype.cmpn = function cmpn (num) { var negative = num < 0; if (this.negative !== 0 && !negative) return -1; @@ -36827,7 +36847,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 1 - if `this` > `num` // 0 - if `this` == `num` // -1 - if `this` < `num` - BN.prototype.cmp = function cmp(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; @@ -36837,7 +36857,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Unsigned comparison - BN.prototype.ucmp = function ucmp(num) { + 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; @@ -36858,43 +36878,43 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - BN.prototype.gtn = function gtn(num) { + BN.prototype.gtn = function gtn (num) { return this.cmpn(num) === 1; }; - BN.prototype.gt = function gt(num) { + BN.prototype.gt = function gt (num) { return this.cmp(num) === 1; }; - BN.prototype.gten = function gten(num) { + BN.prototype.gten = function gten (num) { return this.cmpn(num) >= 0; }; - BN.prototype.gte = function gte(num) { + BN.prototype.gte = function gte (num) { return this.cmp(num) >= 0; }; - BN.prototype.ltn = function ltn(num) { + BN.prototype.ltn = function ltn (num) { return this.cmpn(num) === -1; }; - BN.prototype.lt = function lt(num) { + BN.prototype.lt = function lt (num) { return this.cmp(num) === -1; }; - BN.prototype.lten = function lten(num) { + BN.prototype.lten = function lten (num) { return this.cmpn(num) <= 0; }; - BN.prototype.lte = function lte(num) { + BN.prototype.lte = function lte (num) { return this.cmp(num) <= 0; }; - BN.prototype.eqn = function eqn(num) { + BN.prototype.eqn = function eqn (num) { return this.cmpn(num) === 0; }; - BN.prototype.eq = function eq(num) { + BN.prototype.eq = function eq (num) { return this.cmp(num) === 0; }; @@ -36902,101 +36922,101 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // A reduce context, could be using montgomery or something better, depending // on the `m` itself. // - BN.red = function red(num) { + BN.red = function red (num) { return new Red(num); }; - BN.prototype.toRed = function toRed(ctx) { + 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() { + 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) { + BN.prototype._forceRed = function _forceRed (ctx) { this.red = ctx; return this; }; - BN.prototype.forceRed = function forceRed(ctx) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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() { + 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() { + 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() { + 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() { + 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() { + 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) { + BN.prototype.redPow = function redPow (num) { assert(this.red && !num.red, 'redPow(normalNum)'); this.red._verify1(this); return this.red.pow(this, num); @@ -37011,7 +37031,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Pseudo-Mersenne prime - function MPrime(name, p) { + function MPrime (name, p) { // P = 2 ^ N - K this.name = name; this.p = new BN(p, 16); @@ -37021,13 +37041,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this.tmp = this._tmp(); } - MPrime.prototype._tmp = function _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) { + 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; @@ -37053,20 +37073,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; }; - MPrime.prototype.split = function split(input, out) { + MPrime.prototype.split = function split (input, out) { input.iushrn(this.n, 0, out); }; - MPrime.prototype.imulK = function imulK(num) { + 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'); + function K256 () { + MPrime.call( + this, + 'k256', + 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f'); } inherits(K256, MPrime); - K256.prototype.split = function split(input, output) { + K256.prototype.split = function split (input, output) { // 256 = 9 * 26 + 22 var mask = 0x3fffff; @@ -37088,7 +37111,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol for (i = 10; i < input.length; i++) { var next = input.words[i] | 0; - input.words[i - 10] = (next & mask) << 4 | prev >>> 22; + input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22); prev = next; } prev >>>= 22; @@ -37100,7 +37123,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - K256.prototype.imulK = function imulK(num) { + K256.prototype.imulK = function imulK (num) { // K = 0x1000003d1 = [ 0x40, 0x3d1 ] num.words[num.length] = 0; num.words[num.length + 1] = 0; @@ -37112,7 +37135,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var w = num.words[i] | 0; lo += w * 0x3d1; num.words[i] = lo & 0x3ffffff; - lo = w * 0x40 + (lo / 0x4000000 | 0); + lo = w * 0x40 + ((lo / 0x4000000) | 0); } // Fast length reduction @@ -37125,23 +37148,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return num; }; - function P224() { - MPrime.call(this, 'p224', 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001'); + 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'); + function P192 () { + MPrime.call( + this, + 'p192', + 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff'); } inherits(P192, MPrime); - function P25519() { + function P25519 () { // 2 ^ 255 - 19 - MPrime.call(this, '25519', '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed'); + MPrime.call( + this, + '25519', + '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed'); } inherits(P25519, MPrime); - P25519.prototype.imulK = function imulK(num) { + P25519.prototype.imulK = function imulK (num) { // K = 0x13 var carry = 0; for (var i = 0; i < num.length; i++) { @@ -37159,7 +37191,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; // Exported mostly for testing purposes, use plain name instead - BN._prime = function prime(name) { + BN._prime = function prime (name) { // Cached version of prime if (primes[name]) return primes[name]; @@ -37183,7 +37215,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // // Base reduction engine // - function Red(m) { + function Red (m) { if (typeof m === 'string') { var prime = BN._prime(m); this.m = prime.p; @@ -37195,22 +37227,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } } - Red.prototype._verify1 = function _verify1(a) { + 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) { + 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'); + assert(a.red && a.red === b.red, + 'red works only with red numbers'); }; - Red.prototype.imod = function imod(a) { + 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) { + Red.prototype.neg = function neg (a) { if (a.isZero()) { return a.clone(); } @@ -37218,7 +37251,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.m.sub(a)._forceRed(this); }; - Red.prototype.add = function add(a, b) { + Red.prototype.add = function add (a, b) { this._verify2(a, b); var res = a.add(b); @@ -37228,7 +37261,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res._forceRed(this); }; - Red.prototype.iadd = function iadd(a, b) { + Red.prototype.iadd = function iadd (a, b) { this._verify2(a, b); var res = a.iadd(b); @@ -37238,7 +37271,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - Red.prototype.sub = function sub(a, b) { + Red.prototype.sub = function sub (a, b) { this._verify2(a, b); var res = a.sub(b); @@ -37248,7 +37281,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res._forceRed(this); }; - Red.prototype.isub = function isub(a, b) { + Red.prototype.isub = function isub (a, b) { this._verify2(a, b); var res = a.isub(b); @@ -37258,30 +37291,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - Red.prototype.shl = function shl(a, num) { + Red.prototype.shl = function shl (a, num) { this._verify1(a); return this.imod(a.ushln(num)); }; - Red.prototype.imul = function imul(a, b) { + Red.prototype.imul = function imul (a, b) { this._verify2(a, b); return this.imod(a.imul(b)); }; - Red.prototype.mul = function mul(a, b) { + Red.prototype.mul = function mul (a, b) { this._verify2(a, b); return this.imod(a.mul(b)); }; - Red.prototype.isqr = function isqr(a) { + Red.prototype.isqr = function isqr (a) { return this.imul(a, a.clone()); }; - Red.prototype.sqr = function sqr(a) { + Red.prototype.sqr = function sqr (a) { return this.mul(a, a); }; - Red.prototype.sqrt = function sqrt(a) { + Red.prototype.sqrt = function sqrt (a) { if (a.isZero()) return a.clone(); var mod3 = this.m.andln(3); @@ -37338,7 +37371,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return r; }; - Red.prototype.invm = function invm(a) { + Red.prototype.invm = function invm (a) { var inv = a._invmp(this.m); if (inv.negative !== 0) { inv.negative = 0; @@ -37348,7 +37381,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - Red.prototype.pow = function pow(a, num) { + Red.prototype.pow = function pow (a, num) { if (num.isZero()) return new BN(1).toRed(this); if (num.cmpn(1) === 0) return a.clone(); @@ -37371,7 +37404,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + var bit = (word >> j) & 1; if (res !== wnd[0]) { res = this.sqr(res); } @@ -37396,13 +37429,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res; }; - Red.prototype.convertTo = function convertTo(num) { + Red.prototype.convertTo = function convertTo (num) { var r = num.umod(this.m); return r === num ? r.clone() : r; }; - Red.prototype.convertFrom = function convertFrom(num) { + Red.prototype.convertFrom = function convertFrom (num) { var res = num.clone(); res.red = null; return res; @@ -37412,16 +37445,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Montgomery method engine // - BN.mont = function mont(num) { + BN.mont = function mont (num) { return new Mont(num); }; - function Mont(m) { + function Mont (m) { Red.call(this, m); this.shift = this.m.bitLength(); if (this.shift % 26 !== 0) { - this.shift += 26 - this.shift % 26; + this.shift += 26 - (this.shift % 26); } this.r = new BN(1).iushln(this.shift); @@ -37434,17 +37467,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } inherits(Mont, Red); - Mont.prototype.convertTo = function convertTo(num) { + Mont.prototype.convertTo = function convertTo (num) { return this.imod(num.ushln(this.shift)); }; - Mont.prototype.convertFrom = function convertFrom(num) { + 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) { + Mont.prototype.imul = function imul (a, b) { if (a.isZero() || b.isZero()) { a.words[0] = 0; a.length = 1; @@ -37465,7 +37498,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res._forceRed(this); }; - Mont.prototype.mul = function mul(a, b) { + Mont.prototype.mul = function mul (a, b) { if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this); var t = a.mul(b); @@ -37481,22 +37514,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return res._forceRed(this); }; - Mont.prototype.invm = function invm(a) { + 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":369}],183:[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; }; +})(typeof module === 'undefined' || module, this); +},{"buffer":383}],183:[function(require,module,exports){ var r; module.exports = function rand(len) { - if (!r) r = new Rand(null); + if (!r) + r = new Rand(null); return r.generate(len); }; @@ -37512,15 +37542,16 @@ Rand.prototype.generate = function generate(len) { // Emulate crypto API using randy Rand.prototype._rand = function _rand(n) { - if (this.rand.getBytes) return this.rand.getBytes(n); + if (this.rand.getBytes) + return this.rand.getBytes(n); var res = new Uint8Array(n); - for (var i = 0; i < res.length; i++) { + for (var i = 0; i < res.length; i++) res[i] = this.rand.getByte(); - }return res; + return res; }; -if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object') { +if (typeof self === 'object') { if (self.crypto && self.crypto.getRandomValues) { // Modern browsers Rand.prototype._rand = function _rand(n) { @@ -37536,10 +37567,10 @@ if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object') { return arr; }; - // Safari's WebWorkers do not have `crypto` - } else if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object') { + // Safari's WebWorkers do not have `crypto` + } else if (typeof window === 'object') { // Old junk - Rand.prototype._rand = function () { + Rand.prototype._rand = function() { throw new Error('Not implemented yet'); }; } @@ -37547,15 +37578,17 @@ if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object') { // Node.js or Web worker with no crypto support try { var crypto = require('crypto'); - if (typeof crypto.randomBytes !== 'function') throw new Error('Not supported'); + if (typeof crypto.randomBytes !== 'function') + throw new Error('Not supported'); Rand.prototype._rand = function _rand(n) { return crypto.randomBytes(n); }; - } catch (e) {} + } catch (e) { + } } -},{"crypto":369}],184:[function(require,module,exports){ +},{"crypto":383}],184:[function(require,module,exports){ (function (process){ 'use strict'; @@ -37570,114 +37603,109 @@ var isNode = typeof process !== 'undefined' && process.versions != null && proce exports.isBrowser = isBrowser; exports.isNode = isNode; - }).call(this,require('_process')) -},{"_process":911}],185:[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'; +},{"_process":925}],185:[function(require,module,exports){ +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; + this[hashMode] = this._finalOrDigest } else { - this.final = this._finalOrDigest; + this.final = this._finalOrDigest } if (this._final) { - this.__final = this._final; - this._final = null; + this.__final = this._final + this._final = null } - this._decoder = null; - this._encoding = null; + this._decoder = null + this._encoding = null } -inherits(CipherBase, Transform); +inherits(CipherBase, Transform) CipherBase.prototype.update = function (data, inputEnc, outputEnc) { if (typeof data === 'string') { - data = Buffer.from(data, inputEnc); + data = Buffer.from(data, inputEnc) } - var outData = this._update(data); - if (this.hashMode) return this; + var outData = this._update(data) + if (this.hashMode) return this if (outputEnc) { - outData = this._toString(outData, outputEnc); + outData = this._toString(outData, outputEnc) } - return outData; -}; + return outData +} -CipherBase.prototype.setAutoPadding = function () {}; +CipherBase.prototype.setAutoPadding = function () {} CipherBase.prototype.getAuthTag = function () { - throw new Error('trying to get auth tag in unsupported state'); -}; + 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'); -}; + 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'); -}; + throw new Error('trying to set aad in unsupported state') +} CipherBase.prototype._transform = function (data, _, next) { - var err; + var err try { if (this.hashMode) { - this._update(data); + this._update(data) } else { - this.push(this._update(data)); + this.push(this._update(data)) } } catch (e) { - err = e; + err = e } finally { - next(err); + next(err) } -}; +} CipherBase.prototype._flush = function (done) { - var err; + var err try { - this.push(this.__final()); + this.push(this.__final()) } catch (e) { - err = e; + err = e } - done(err); -}; + done(err) +} CipherBase.prototype._finalOrDigest = function (outputEnc) { - var outData = this.__final() || Buffer.alloc(0); + var outData = this.__final() || Buffer.alloc(0) if (outputEnc) { - outData = this._toString(outData, outputEnc, true); + outData = this._toString(outData, outputEnc, true) } - return outData; -}; + return outData +} CipherBase.prototype._toString = function (value, enc, fin) { if (!this._decoder) { - this._decoder = new StringDecoder(enc); - this._encoding = enc; + this._decoder = new StringDecoder(enc) + this._encoding = enc } - if (this._encoding !== enc) throw new Error('can\'t switch encodings'); + if (this._encoding !== enc) throw new Error('can\'t switch encodings') - var out = this._decoder.write(value); + var out = this._decoder.write(value) if (fin) { - out += this._decoder.end(); + out += this._decoder.end() } - return out; -}; - -module.exports = CipherBase; + return out +} -},{"inherits":247,"safe-buffer":276,"stream":954,"string_decoder":398}],186:[function(require,module,exports){ -'use strict'; +module.exports = CipherBase +},{"inherits":247,"safe-buffer":277,"stream":968,"string_decoder":412}],186:[function(require,module,exports){ /** * Slice reference. */ @@ -37693,51 +37721,50 @@ var slice = [].slice; * @api public */ -module.exports = function (obj, fn) { +module.exports = function(obj, fn){ if ('string' == typeof fn) fn = obj[fn]; if ('function' != typeof fn) throw new Error('bind() requires a function'); var args = slice.call(arguments, 2); - return function () { + return function(){ return fn.apply(obj, args.concat(slice.call(arguments))); - }; + } }; },{}],187:[function(require,module,exports){ -'use strict'; - + /** * Expose `Emitter`. - */ - -if (typeof module !== 'undefined') { - module.exports = Emitter; -} - + */ + +if (typeof module !== 'undefined') { + module.exports = Emitter; +} + /** * Initialize a new `Emitter`. * * @api public - */ - -function Emitter(obj) { - if (obj) return mixin(obj); -}; - + */ + +function Emitter(obj) { + if (obj) return mixin(obj); +}; + /** * Mixin the emitter properties. * * @param {Object} obj * @return {Object} * @api private - */ - -function mixin(obj) { - for (var key in Emitter.prototype) { - obj[key] = Emitter.prototype[key]; - } - return obj; -} - + */ + +function mixin(obj) { + for (var key in Emitter.prototype) { + obj[key] = Emitter.prototype[key]; + } + return obj; +} + /** * Listen on the given `event` with `fn`. * @@ -37745,14 +37772,16 @@ function mixin(obj) { * @param {Function} fn * @return {Emitter} * @api public - */ - -Emitter.prototype.on = Emitter.prototype.addEventListener = function (event, fn) { - this._callbacks = this._callbacks || {}; - (this._callbacks['$' + event] = this._callbacks['$' + event] || []).push(fn); - return this; -}; - + */ + +Emitter.prototype.on = +Emitter.prototype.addEventListener = function(event, fn){ + this._callbacks = this._callbacks || {}; + (this._callbacks['$' + event] = this._callbacks['$' + event] || []) + .push(fn); + return this; +}; + /** * Adds an `event` listener that will be invoked a single * time then automatically removed. @@ -37761,19 +37790,19 @@ Emitter.prototype.on = Emitter.prototype.addEventListener = function (event, fn) * @param {Function} fn * @return {Emitter} * @api public - */ - -Emitter.prototype.once = function (event, fn) { - function on() { - this.off(event, on); - fn.apply(this, arguments); - } - - on.fn = fn; - this.on(event, on); - return this; -}; - + */ + +Emitter.prototype.once = function(event, fn){ + function on() { + this.off(event, on); + fn.apply(this, arguments); + } + + on.fn = fn; + this.on(event, on); + return this; +}; + /** * Remove the given callback for `event` or all * registered callbacks. @@ -37782,103 +37811,100 @@ Emitter.prototype.once = function (event, fn) { * @param {Function} fn * @return {Emitter} * @api public - */ - -Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function (event, fn) { - this._callbacks = this._callbacks || {}; - - // all - if (0 == arguments.length) { - this._callbacks = {}; - return this; - } - - // specific event - var callbacks = this._callbacks['$' + event]; - if (!callbacks) return this; - - // remove all handlers - if (1 == arguments.length) { - delete this._callbacks['$' + event]; - return this; - } - - // remove specific handler - var cb; - for (var i = 0; i < callbacks.length; i++) { - cb = callbacks[i]; - if (cb === fn || cb.fn === fn) { - callbacks.splice(i, 1); - break; - } - } - return this; -}; - + */ + +Emitter.prototype.off = +Emitter.prototype.removeListener = +Emitter.prototype.removeAllListeners = +Emitter.prototype.removeEventListener = function(event, fn){ + this._callbacks = this._callbacks || {}; + + // all + if (0 == arguments.length) { + this._callbacks = {}; + return this; + } + + // specific event + var callbacks = this._callbacks['$' + event]; + if (!callbacks) return this; + + // remove all handlers + if (1 == arguments.length) { + delete this._callbacks['$' + event]; + return this; + } + + // remove specific handler + var cb; + for (var i = 0; i < callbacks.length; i++) { + cb = callbacks[i]; + if (cb === fn || cb.fn === fn) { + callbacks.splice(i, 1); + break; + } + } + return this; +}; + /** * Emit `event` with the given args. * * @param {String} event * @param {Mixed} ... * @return {Emitter} - */ - -Emitter.prototype.emit = function (event) { - this._callbacks = this._callbacks || {}; - var args = [].slice.call(arguments, 1), - callbacks = this._callbacks['$' + event]; - - if (callbacks) { - callbacks = callbacks.slice(0); - for (var i = 0, len = callbacks.length; i < len; ++i) { - callbacks[i].apply(this, args); - } - } - - return this; -}; - + */ + +Emitter.prototype.emit = function(event){ + this._callbacks = this._callbacks || {}; + var args = [].slice.call(arguments, 1) + , callbacks = this._callbacks['$' + event]; + + if (callbacks) { + callbacks = callbacks.slice(0); + for (var i = 0, len = callbacks.length; i < len; ++i) { + callbacks[i].apply(this, args); + } + } + + return this; +}; + /** * Return array of callbacks for `event`. * * @param {String} event * @return {Array} * @api public - */ - -Emitter.prototype.listeners = function (event) { - this._callbacks = this._callbacks || {}; - return this._callbacks['$' + event] || []; -}; - + */ + +Emitter.prototype.listeners = function(event){ + this._callbacks = this._callbacks || {}; + return this._callbacks['$' + event] || []; +}; + /** * Check if this emitter has `event` handlers. * * @param {String} event * @return {Boolean} * @api public - */ - -Emitter.prototype.hasListeners = function (event) { - return !!this.listeners(event).length; -}; + */ + +Emitter.prototype.hasListeners = function(event){ + return !! this.listeners(event).length; +}; },{}],188:[function(require,module,exports){ -"use strict"; -module.exports = function (a, b) { - var fn = function fn() {}; +module.exports = function(a, b){ + var fn = function(){}; fn.prototype = b.prototype; - a.prototype = new fn(); + a.prototype = new fn; a.prototype.constructor = a; }; - },{}],189:[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 @@ -37937,7 +37963,7 @@ function isString(arg) { exports.isString = isString; function isSymbol(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol'; + return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; @@ -37952,7 +37978,7 @@ function isRegExp(re) { exports.isRegExp = isRegExp; function isObject(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null; + return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; @@ -37962,7 +37988,7 @@ function isDate(d) { exports.isDate = isDate; function isError(e) { - return objectToString(e) === '[object Error]' || e instanceof Error; + return (objectToString(e) === '[object Error]' || e instanceof Error); } exports.isError = isError; @@ -37972,8 +37998,12 @@ function isFunction(arg) { 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'; + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; @@ -37984,44 +38014,39 @@ function objectToString(o) { } }).call(this,{"isBuffer":require("../../../../../is-buffer/index.js")}) -},{"../../../../../is-buffer/index.js":883}],190:[function(require,module,exports){ -'use strict'; - -var inherits = require('inherits'); -var MD5 = require('md5.js'); -var RIPEMD160 = require('ripemd160'); -var sha = require('sha.js'); -var Base = require('cipher-base'); +},{"../../../../../is-buffer/index.js":897}],190:[function(require,module,exports){ +'use strict' +var inherits = require('inherits') +var MD5 = require('md5.js') +var RIPEMD160 = require('ripemd160') +var sha = require('sha.js') +var Base = require('cipher-base') -function Hash(hash) { - Base.call(this, 'digest'); +function Hash (hash) { + Base.call(this, 'digest') - this._hash = hash; + this._hash = hash } -inherits(Hash, Base); +inherits(Hash, Base) Hash.prototype._update = function (data) { - this._hash.update(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 MD5(); - if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160(); - - return new Hash(sha(alg)); -}; + return this._hash.digest() +} -},{"cipher-base":185,"inherits":247,"md5.js":257,"ripemd160":274,"sha.js":284}],191:[function(require,module,exports){ -'use strict'; +module.exports = function createHash (alg) { + alg = alg.toLowerCase() + if (alg === 'md5') return new MD5() + if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160() -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; }; + return new Hash(sha(alg)) +} +},{"cipher-base":185,"inherits":247,"md5.js":257,"ripemd160":274,"sha.js":286}],191:[function(require,module,exports){ /** * Helpers. */ @@ -38047,15 +38072,18 @@ var y = d * 365.25; * @api public */ -module.exports = function (val, options) { +module.exports = function(val, options) { options = options || {}; - var type = typeof val === 'undefined' ? 'undefined' : _typeof(val); + var type = typeof val; if (type === 'string' && val.length > 0) { return parse(val); } else if (type === 'number' && isNaN(val) === false) { return options.long ? fmtLong(val) : fmtShort(val); } - throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(val)); + throw new Error( + 'val is not a non-empty string or a valid number. val=' + + JSON.stringify(val) + ); }; /** @@ -38071,7 +38099,9 @@ function parse(str) { if (str.length > 100) { return; } - var match = /^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str); + var match = /^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( + str + ); if (!match) { return; } @@ -38182,10 +38212,6 @@ function plural(ms, msAbs, n, name) { },{}],192:[function(require,module,exports){ (function (process){ -'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; }; - /* eslint-env browser */ /** @@ -38203,7 +38229,84 @@ exports.storage = localstorage(); * Colors. */ -exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33']; +exports.colors = [ + '#0000CC', + '#0000FF', + '#0033CC', + '#0033FF', + '#0066CC', + '#0066FF', + '#0099CC', + '#0099FF', + '#00CC00', + '#00CC33', + '#00CC66', + '#00CC99', + '#00CCCC', + '#00CCFF', + '#3300CC', + '#3300FF', + '#3333CC', + '#3333FF', + '#3366CC', + '#3366FF', + '#3399CC', + '#3399FF', + '#33CC00', + '#33CC33', + '#33CC66', + '#33CC99', + '#33CCCC', + '#33CCFF', + '#6600CC', + '#6600FF', + '#6633CC', + '#6633FF', + '#66CC00', + '#66CC33', + '#9900CC', + '#9900FF', + '#9933CC', + '#9933FF', + '#99CC00', + '#99CC33', + '#CC0000', + '#CC0033', + '#CC0066', + '#CC0099', + '#CC00CC', + '#CC00FF', + '#CC3300', + '#CC3333', + '#CC3366', + '#CC3399', + '#CC33CC', + '#CC33FF', + '#CC6600', + '#CC6633', + '#CC9900', + '#CC9933', + '#CCCC00', + '#CCCC33', + '#FF0000', + '#FF0033', + '#FF0066', + '#FF0099', + '#FF00CC', + '#FF00FF', + '#FF3300', + '#FF3333', + '#FF3366', + '#FF3399', + '#FF33CC', + '#FF33FF', + '#FF6600', + '#FF6633', + '#FF9900', + '#FF9933', + '#FFCC00', + '#FFCC33' +]; /** * Currently only WebKit-based Web Inspectors, Firefox >= v31, @@ -38229,14 +38332,14 @@ function useColors() { // Is webkit? http://stackoverflow.com/a/16459606/376773 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || - // Is firebug? http://stackoverflow.com/a/398120/376773 - typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || - // Double check webkit in userAgent just in case we are in a worker - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); + return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || + // Is firebug? http://stackoverflow.com/a/398120/376773 + (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || + // Is firefox >= v31? + // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || + // Double check webkit in userAgent just in case we are in a worker + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); } /** @@ -38246,21 +38349,26 @@ function useColors() { */ function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff); + args[0] = (this.useColors ? '%c' : '') + + this.namespace + + (this.useColors ? ' %c' : ' ') + + args[0] + + (this.useColors ? '%c ' : ' ') + + '+' + module.exports.humanize(this.diff); if (!this.useColors) { return; } - var c = 'color: ' + this.color; + const c = 'color: ' + this.color; args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other // arguments passed either before or after the %c, so we need to // figure out the correct index to insert the CSS into - var index = 0; - var lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, function (match) { + let index = 0; + let lastC = 0; + args[0].replace(/%[a-zA-Z%]/g, match => { if (match === '%%') { return; } @@ -38281,12 +38389,12 @@ function formatArgs(args) { * * @api public */ -function log() { - var _console; - +function log(...args) { // This hackery is required for IE8/9, where // the `console.log` function doesn't have 'apply' - return (typeof console === 'undefined' ? 'undefined' : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments); + return typeof console === 'object' && + console.log && + console.log(...args); } /** @@ -38315,13 +38423,13 @@ function save(namespaces) { * @api private */ function load() { - var r = void 0; + let r; try { r = exports.storage.getItem('debug'); - } catch (error) {} - // Swallow - // XXX (@Qix-) should we be logging these? - + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } // If debug isn't set in LS, and we're in Electron, try to load $DEBUG if (!r && typeof process !== 'undefined' && 'env' in process) { @@ -38355,7 +38463,7 @@ function localstorage() { module.exports = require('./common')(exports); -var formatters = module.exports.formatters; +const {formatters} = module.exports; /** * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. @@ -38370,8 +38478,7 @@ formatters.j = function (v) { }; }).call(this,require('_process')) -},{"./common":193,"_process":911}],193:[function(require,module,exports){ -'use strict'; +},{"./common":193,"_process":925}],193:[function(require,module,exports){ /** * This is the common logic for both the Node.js and web browser @@ -38387,40 +38494,40 @@ function setup(env) { createDebug.enabled = enabled; createDebug.humanize = require('ms'); - Object.keys(env).forEach(function (key) { + Object.keys(env).forEach(key => { createDebug[key] = env[key]; }); /** - * Active `debug` instances. - */ + * Active `debug` instances. + */ createDebug.instances = []; /** - * The currently active debug mode names, and names to skip. - */ + * The currently active debug mode names, and names to skip. + */ createDebug.names = []; createDebug.skips = []; /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ + * Map of special "%n" handling functions, for the debug "format" argument. + * + * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". + */ createDebug.formatters = {}; /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ + * Selects a color for a debug namespace + * @param {String} namespace The namespace string for the for the debug instance to be colored + * @return {Number|String} An ANSI color code for the given namespace + * @api private + */ function selectColor(namespace) { - var hash = 0; + let hash = 0; - for (var i = 0; i < namespace.length; i++) { - hash = (hash << 5) - hash + namespace.charCodeAt(i); + for (let i = 0; i < namespace.length; i++) { + hash = ((hash << 5) - hash) + namespace.charCodeAt(i); hash |= 0; // Convert to 32bit integer } @@ -38429,30 +38536,26 @@ function setup(env) { createDebug.selectColor = selectColor; /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ + * Create a debugger with the given `namespace`. + * + * @param {String} namespace + * @return {Function} + * @api public + */ function createDebug(namespace) { - var prevTime = void 0; - - function debug() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + let prevTime; + function debug(...args) { // Disabled? if (!debug.enabled) { return; } - var self = debug; + const self = debug; // Set `diff` timestamp - var curr = Number(new Date()); - var ms = curr - (prevTime || curr); + const curr = Number(new Date()); + const ms = curr - (prevTime || curr); self.diff = ms; self.prev = prevTime; self.curr = curr; @@ -38466,16 +38569,16 @@ function setup(env) { } // Apply any `formatters` transformations - var index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) { + let index = 0; + args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { // If we encounter an escaped % then don't increase the array index if (match === '%%') { return match; } index++; - var formatter = createDebug.formatters[format]; + const formatter = createDebug.formatters[format]; if (typeof formatter === 'function') { - var val = args[index]; + const val = args[index]; match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format` @@ -38488,7 +38591,7 @@ function setup(env) { // Apply env-specific formatting (colors, etc.) createDebug.formatArgs.call(self, args); - var logFn = self.log || createDebug.log; + const logFn = self.log || createDebug.log; logFn.apply(self, args); } @@ -38512,7 +38615,7 @@ function setup(env) { } function destroy() { - var index = createDebug.instances.indexOf(this); + const index = createDebug.instances.indexOf(this); if (index !== -1) { createDebug.instances.splice(index, 1); return true; @@ -38525,21 +38628,21 @@ function setup(env) { } /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ + * Enables a debug mode by namespaces. This can include modes + * separated by a colon and wildcards. + * + * @param {String} namespaces + * @api public + */ function enable(namespaces) { createDebug.save(namespaces); createDebug.names = []; createDebug.skips = []; - var i = void 0; - var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - var len = split.length; + let i; + const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); + const len = split.length; for (i = 0; i < len; i++) { if (!split[i]) { @@ -38557,34 +38660,34 @@ function setup(env) { } for (i = 0; i < createDebug.instances.length; i++) { - var instance = createDebug.instances[i]; + const instance = createDebug.instances[i]; instance.enabled = createDebug.enabled(instance.namespace); } } /** - * Disable debug output. - * - * @api public - */ + * Disable debug output. + * + * @api public + */ function disable() { createDebug.enable(''); } /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ + * Returns true if the given mode name is enabled, false otherwise. + * + * @param {String} name + * @return {Boolean} + * @api public + */ function enabled(name) { if (name[name.length - 1] === '*') { return true; } - var i = void 0; - var len = void 0; + let i; + let len; for (i = 0, len = createDebug.skips.length; i < len; i++) { if (createDebug.skips[i].test(name)) { @@ -38602,12 +38705,12 @@ function setup(env) { } /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ + * Coerce `val`. + * + * @param {Mixed} val + * @return {Mixed} + * @api private + */ function coerce(val) { if (val instanceof Error) { return val.stack || val.message; @@ -38624,8 +38727,6 @@ module.exports = setup; },{"ms":191}],194:[function(require,module,exports){ (function (process){ -'use strict'; - function detect() { if (typeof navigator !== 'undefined') { return parseUserAgent(navigator.userAgent); @@ -38658,9 +38759,9 @@ function parseUserAgent(userAgentString) { return null; } - var detected = browsers.map(function (browser) { + var detected = browsers.map(function(browser) { var match = browser.rule.exec(userAgentString); - var version = match && match[1].split(/[._]/).slice(0, 3); + var version = match && match[1].split(/[._]/).slice(0,3); if (version && version.length < 3) { version = version.concat(version.length == 1 ? [0, 0] : [0]); @@ -38685,15 +38786,65 @@ function parseUserAgent(userAgentString) { } function getBrowserRules() { - return buildRules([['aol', /AOLShield\/([0-9\._]+)/], ['edge', /Edge\/([0-9\._]+)/], ['yandexbrowser', /YaBrowser\/([0-9\._]+)/], ['vivaldi', /Vivaldi\/([0-9\.]+)/], ['kakaotalk', /KAKAOTALK\s([0-9\.]+)/], ['samsung', /SamsungBrowser\/([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/], ['facebook', /FBAV\/([0-9\.]+)/], ['instagram', /Instagram\s([0-9\.]+)/], ['ios-webview', /AppleWebKit\/([0-9\.]+).*Mobile/]]); + return buildRules([ + [ 'aol', /AOLShield\/([0-9\._]+)/ ], + [ 'edge', /Edge\/([0-9\._]+)/ ], + [ 'yandexbrowser', /YaBrowser\/([0-9\._]+)/ ], + [ 'vivaldi', /Vivaldi\/([0-9\.]+)/ ], + [ 'kakaotalk', /KAKAOTALK\s([0-9\.]+)/ ], + [ 'samsung', /SamsungBrowser\/([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/ ], + [ 'facebook', /FBAV\/([0-9\.]+)/], + [ 'instagram', /Instagram\s([0-9\.]+)/], + [ 'ios-webview', /AppleWebKit\/([0-9\.]+).*Mobile/] + ]); } function getOperatingSystemRules() { - return buildRules([['iOS', /iP(hone|od|ad)/], ['Android OS', /Android/], ['BlackBerry OS', /BlackBerry|BB10/], ['Windows Mobile', /IEMobile/], ['Amazon OS', /Kindle/], ['Windows 3.11', /Win16/], ['Windows 95', /(Windows 95)|(Win95)|(Windows_95)/], ['Windows 98', /(Windows 98)|(Win98)/], ['Windows 2000', /(Windows NT 5.0)|(Windows 2000)/], ['Windows XP', /(Windows NT 5.1)|(Windows XP)/], ['Windows Server 2003', /(Windows NT 5.2)/], ['Windows Vista', /(Windows NT 6.0)/], ['Windows 7', /(Windows NT 6.1)/], ['Windows 8', /(Windows NT 6.2)/], ['Windows 8.1', /(Windows NT 6.3)/], ['Windows 10', /(Windows NT 10.0)/], ['Windows ME', /Windows ME/], ['Open BSD', /OpenBSD/], ['Sun OS', /SunOS/], ['Linux', /(Linux)|(X11)/], ['Mac OS', /(Mac_PowerPC)|(Macintosh)/], ['QNX', /QNX/], ['BeOS', /BeOS/], ['OS/2', /OS\/2/], ['Search Bot', /(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/]]); + return buildRules([ + [ 'iOS', /iP(hone|od|ad)/ ], + [ 'Android OS', /Android/ ], + [ 'BlackBerry OS', /BlackBerry|BB10/ ], + [ 'Windows Mobile', /IEMobile/ ], + [ 'Amazon OS', /Kindle/ ], + [ 'Windows 3.11', /Win16/ ], + [ 'Windows 95', /(Windows 95)|(Win95)|(Windows_95)/ ], + [ 'Windows 98', /(Windows 98)|(Win98)/ ], + [ 'Windows 2000', /(Windows NT 5.0)|(Windows 2000)/ ], + [ 'Windows XP', /(Windows NT 5.1)|(Windows XP)/ ], + [ 'Windows Server 2003', /(Windows NT 5.2)/ ], + [ 'Windows Vista', /(Windows NT 6.0)/ ], + [ 'Windows 7', /(Windows NT 6.1)/ ], + [ 'Windows 8', /(Windows NT 6.2)/ ], + [ 'Windows 8.1', /(Windows NT 6.3)/ ], + [ 'Windows 10', /(Windows NT 10.0)/ ], + [ 'Windows ME', /Windows ME/ ], + [ 'Open BSD', /OpenBSD/ ], + [ 'Sun OS', /SunOS/ ], + [ 'Linux', /(Linux)|(X11)/ ], + [ 'Mac OS', /(Mac_PowerPC)|(Macintosh)/ ], + [ 'QNX', /QNX/ ], + [ 'BeOS', /BeOS/ ], + [ 'OS/2', /OS\/2/ ], + [ 'Search Bot', /(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/ ] + ]); } function buildRules(ruleTuples) { - return ruleTuples.map(function (tuple) { + return ruleTuples.map(function(tuple) { return { name: tuple[0], rule: tuple[1] @@ -38709,7 +38860,7 @@ module.exports = { }; }).call(this,require('_process')) -},{"_process":911}],195:[function(require,module,exports){ +},{"_process":925}],195:[function(require,module,exports){ (function (global,Buffer){ /** * Browser eccrypto implementation. @@ -38736,19 +38887,19 @@ function randomBytes(size) { } function sha512(msg) { - return subtle.digest({ name: "SHA-512" }, msg).then(function (hash) { + return subtle.digest({name: "SHA-512"}, msg).then(function(hash) { return new Buffer(new Uint8Array(hash)); }); } function getAes(op) { - return function (iv, key, data) { - var importAlgorithm = { name: "AES-CBC" }; + return function(iv, key, data) { + var importAlgorithm = {name: "AES-CBC"}; var keyp = subtle.importKey("raw", key, importAlgorithm, false, [op]); - return keyp.then(function (cryptoKey) { - var encAlgorithm = { name: "AES-CBC", iv: iv }; + return keyp.then(function(cryptoKey) { + var encAlgorithm = {name: "AES-CBC", iv: iv}; return subtle[op](encAlgorithm, cryptoKey, data); - }).then(function (result) { + }).then(function(result) { return new Buffer(new Uint8Array(result)); }); }; @@ -38758,24 +38909,24 @@ var aesCbcEncrypt = getAes("encrypt"); var aesCbcDecrypt = getAes("decrypt"); function hmacSha256Sign(key, msg) { - var algorithm = { name: "HMAC", hash: { name: "SHA-256" } }; + var algorithm = {name: "HMAC", hash: {name: "SHA-256"}}; var keyp = subtle.importKey("raw", key, algorithm, false, ["sign"]); - return keyp.then(function (cryptoKey) { + return keyp.then(function(cryptoKey) { return subtle.sign(algorithm, cryptoKey, msg); - }).then(function (sig) { + }).then(function(sig) { return new Buffer(new Uint8Array(sig)); }); } function hmacSha256Verify(key, msg, sig) { - var algorithm = { name: "HMAC", hash: { name: "SHA-256" } }; + var algorithm = {name: "HMAC", hash: {name: "SHA-256"}}; var keyp = subtle.importKey("raw", key, algorithm, false, ["verify"]); - return keyp.then(function (cryptoKey) { + return keyp.then(function(cryptoKey) { return subtle.verify(algorithm, cryptoKey, sig, msg); }); } -var getPublic = exports.getPublic = function (privateKey) { +var getPublic = exports.getPublic = function(privateKey) { // This function has sync API so we throw an error immediately. assert(privateKey.length === 32, "Bad private key"); // XXX(Kagami): `elliptic.utils.encode` returns array for every @@ -38788,17 +38939,17 @@ var getPublic = exports.getPublic = function (privateKey) { // ) and we can use only new browsers // because of the WebCryptoAPI (see // ). -exports.sign = function (privateKey, msg) { - return new Promise(function (resolve) { +exports.sign = function(privateKey, msg) { + return new Promise(function(resolve) { assert(privateKey.length === 32, "Bad private key"); assert(msg.length > 0, "Message should not be empty"); assert(msg.length <= 32, "Message is too long"); - resolve(new Buffer(ec.sign(msg, privateKey, { canonical: true }).toDER())); + resolve(new Buffer(ec.sign(msg, privateKey, {canonical: true}).toDER())); }); }; -exports.verify = function (publicKey, msg, sig) { - return new Promise(function (resolve, reject) { +exports.verify = function(publicKey, msg, sig) { + return new Promise(function(resolve, reject) { assert(publicKey.length === 65, "Bad public key"); assert(publicKey[0] === 4, "Bad public key"); assert(msg.length > 0, "Message should not be empty"); @@ -38811,8 +38962,8 @@ exports.verify = function (publicKey, msg, sig) { }); }; -var derive = exports.derive = function (privateKeyA, publicKeyB) { - return new Promise(function (resolve) { +var derive = exports.derive = function(privateKeyA, publicKeyB) { + return new Promise(function(resolve) { assert(Buffer.isBuffer(privateKeyA), "Bad input"); assert(Buffer.isBuffer(publicKeyB), "Bad input"); assert(privateKeyA.length === 32, "Bad private key"); @@ -38820,62 +38971,66 @@ var derive = exports.derive = function (privateKeyA, publicKeyB) { assert(publicKeyB[0] === 4, "Bad public key"); var keyA = ec.keyFromPrivate(privateKeyA); var keyB = ec.keyFromPublic(publicKeyB); - var Px = keyA.derive(keyB.getPublic()); // BN instance + var Px = keyA.derive(keyB.getPublic()); // BN instance resolve(new Buffer(Px.toArray())); }); }; -exports.encrypt = function (publicKeyTo, msg, opts) { +exports.encrypt = function(publicKeyTo, msg, opts) { assert(subtle, "WebCryptoAPI is not available"); opts = opts || {}; // Tmp variables to save context from flat promises; var iv, ephemPublicKey, ciphertext, macKey; - return new Promise(function (resolve) { + return new Promise(function(resolve) { var ephemPrivateKey = opts.ephemPrivateKey || randomBytes(32); ephemPublicKey = getPublic(ephemPrivateKey); resolve(derive(ephemPrivateKey, publicKeyTo)); - }).then(function (Px) { + }).then(function(Px) { return sha512(Px); - }).then(function (hash) { + }).then(function(hash) { iv = opts.iv || randomBytes(16); var encryptionKey = hash.slice(0, 32); macKey = hash.slice(32); return aesCbcEncrypt(iv, encryptionKey, msg); - }).then(function (data) { + }).then(function(data) { ciphertext = data; var dataToMac = Buffer.concat([iv, ephemPublicKey, ciphertext]); return hmacSha256Sign(macKey, dataToMac); - }).then(function (mac) { + }).then(function(mac) { return { iv: iv, ephemPublicKey: ephemPublicKey, ciphertext: ciphertext, - mac: mac + mac: mac, }; }); }; -exports.decrypt = function (privateKey, opts) { +exports.decrypt = function(privateKey, opts) { assert(subtle, "WebCryptoAPI is not available"); // Tmp variable to save context from flat promises; var encryptionKey; - return derive(privateKey, opts.ephemPublicKey).then(function (Px) { + return derive(privateKey, opts.ephemPublicKey).then(function(Px) { return sha512(Px); - }).then(function (hash) { + }).then(function(hash) { encryptionKey = hash.slice(0, 32); var macKey = hash.slice(32); - var dataToMac = Buffer.concat([opts.iv, opts.ephemPublicKey, opts.ciphertext]); + var dataToMac = Buffer.concat([ + opts.iv, + opts.ephemPublicKey, + opts.ciphertext + ]); return hmacSha256Verify(macKey, dataToMac, opts.mac); - }).then(function (macGood) { + }).then(function(macGood) { assert(macGood, "Bad MAC"); return aesCbcDecrypt(opts.iv, encryptionKey, opts.ciphertext); - }).then(function (msg) { + }).then(function(msg) { return new Buffer(new Uint8Array(msg)); }); }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer) -},{"buffer":401,"elliptic":196}],196:[function(require,module,exports){ +},{"buffer":415,"elliptic":196}],196:[function(require,module,exports){ 'use strict'; var elliptic = exports; @@ -38946,16 +39101,16 @@ BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) { var doubles = p._getDoubles(); var naf = getNAF(k, 1); - var I = (1 << doubles.step + 1) - (doubles.step % 2 === 0 ? 2 : 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--) { + for (var k = j + doubles.step - 1; k >= j; k--) nafW = (nafW << 1) + naf[k]; - }repr.push(nafW); + repr.push(nafW); } var a = this.jpoint(null, null, null); @@ -38963,7 +39118,10 @@ BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) { 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()); + if (nafW === i) + b = b.mixedAdd(doubles.points[j]); + else if (nafW === -i) + b = b.mixedAdd(doubles.points[j].neg()); } a = a.add(b); } @@ -38985,26 +39143,38 @@ BaseCurve.prototype._wnafMul = function _wnafMul(p, k) { 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--) { + for (var k = 0; i >= 0 && naf[i] === 0; i--) + k++; + if (i >= 0) k++; - }if (i >= 0) k++; acc = acc.dblp(k); - if (i < 0) break; + 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()); + 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()); + 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) { +BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, + points, + coeffs, + len, + jacobianResult) { var wndWidth = this._wnafT1; var wnd = this._wnafT2; var naf = this._wnafT3; @@ -39030,10 +39200,11 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, points, coeffs, len continue; } - var comb = [points[a], /* 1 */ - null, /* 3 */ - null, /* 5 */ - points[b] /* 7 */ + var comb = [ + points[a], /* 1 */ + null, /* 3 */ + null, /* 5 */ + points[b] /* 7 */ ]; // Try to avoid Projective points, if possible @@ -39048,15 +39219,16 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, points, coeffs, len 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 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]); @@ -39082,28 +39254,44 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, points, coeffs, len var zero = true; for (var j = 0; j < len; j++) { tmp[j] = naf[j][i] | 0; - if (tmp[j] !== 0) zero = false; + if (tmp[j] !== 0) + zero = false; } - if (!zero) break; + if (!zero) + break; k++; i--; } - if (i >= 0) k++; + if (i >= 0) + k++; acc = acc.dblp(k); - if (i < 0) break; + 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 (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); + if (p.type === 'affine') + acc = acc.mixedAdd(p); + else + acc = acc.add(p); } } // Zeroify references - for (var i = 0; i < len; i++) { + for (var i = 0; i < len; i++) wnd[i] = null; - }if (jacobianResult) return acc;else return acc.toP(); + + if (jacobianResult) + return acc; + else + return acc.toP(); }; function BasePoint(curve, type) { @@ -39113,7 +39301,7 @@ function BasePoint(curve, type) { } BaseCurve.BasePoint = BasePoint; -BasePoint.prototype.eq = function eq() /*other*/{ +BasePoint.prototype.eq = function eq(/*other*/) { throw new Error('Not implemented'); }; @@ -39127,13 +39315,19 @@ BaseCurve.prototype.decodePoint = function decodePoint(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); + 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)); + 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) { + } 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'); @@ -39147,9 +39341,10 @@ 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); + if (compact) + return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x); - return [0x04].concat(x, this.getY().toArray('be', len)); + return [ 0x04 ].concat(x, this.getY().toArray('be', len)) ; }; BasePoint.prototype.encode = function encode(enc, compact) { @@ -39157,7 +39352,8 @@ BasePoint.prototype.encode = function encode(enc, compact) { }; BasePoint.prototype.precompute = function precompute(power) { - if (this.precomputed) return this; + if (this.precomputed) + return this; var precomputed = { doubles: null, @@ -39173,23 +39369,26 @@ BasePoint.prototype.precompute = function precompute(power) { }; BasePoint.prototype._hasDoubles = function _hasDoubles(k) { - if (!this.precomputed) return false; + if (!this.precomputed) + return false; var doubles = this.precomputed.doubles; - if (!doubles) return false; + 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; + if (this.precomputed && this.precomputed.doubles) + return this.precomputed.doubles; - var doubles = [this]; + var doubles = [ this ]; var acc = this; for (var i = 0; i < power; i += step) { - for (var j = 0; j < step; j++) { + for (var j = 0; j < step; j++) acc = acc.dbl(); - }doubles.push(acc); + doubles.push(acc); } return { step: step, @@ -39198,14 +39397,15 @@ BasePoint.prototype._getDoubles = function _getDoubles(step, power) { }; BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) { - if (this.precomputed && this.precomputed.naf) return this.precomputed.naf; + if (this.precomputed && this.precomputed.naf) + return this.precomputed.naf; - var res = [this]; + var res = [ this ]; var max = (1 << wnd) - 1; var dbl = max === 1 ? null : this.dbl(); - for (var i = 1; i < max; i++) { + for (var i = 1; i < max; i++) res[i] = res[i - 1].add(dbl); - }return { + return { wnd: wnd, points: res }; @@ -39217,9 +39417,9 @@ BasePoint.prototype._getBeta = function _getBeta() { BasePoint.prototype.dblp = function dblp(k) { var r = this; - for (var i = 0; i < k; i++) { + for (var i = 0; i < k; i++) r = r.dbl(); - }return r; + return r; }; },{"../../elliptic":196,"bn.js":182}],198:[function(require,module,exports){ @@ -39255,11 +39455,17 @@ inherits(EdwardsCurve, Base); module.exports = EdwardsCurve; EdwardsCurve.prototype._mulA = function _mulA(num) { - if (this.mOneA) return num.redNeg();else return this.a.redMul(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); + if (this.oneC) + return num; + else + return this.c.redMul(num); }; // Just for compatibility with Short curve @@ -39269,7 +39475,8 @@ EdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) { EdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) { x = new BN(x, 16); - if (!x.red) x = x.toRed(this.red); + if (!x.red) + x = x.toRed(this.red); var x2 = x.redSqr(); var rhs = this.c2.redSub(this.a.redMul(x2)); @@ -39277,17 +39484,20 @@ EdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) { var y2 = rhs.redMul(lhs.redInvm()); var y = y2.redSqrt(); - if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) throw new Error('invalid point'); + 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(); + 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); + if (!y.red) + y = y.toRed(this.red); // x^2 = (y^2 - c^2) / (c^2 d y^2 - a) var y2 = y.redSqr(); @@ -39296,19 +39506,25 @@ EdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) { 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); + 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.redSqr().redSub(x2).cmp(this.zero) !== 0) + throw new Error('invalid point'); - if (x.fromRed().isOdd() !== odd) x = x.redNeg(); + if (x.fromRed().isOdd() !== odd) + x = x.redNeg(); return this.point(x, y); }; EdwardsCurve.prototype.validate = function validate(point) { - if (point.isInfinity()) return true; + if (point.isInfinity()) + return true; // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2) point.normalize(); @@ -39334,16 +39550,21 @@ function Point(curve, x, y, z, t) { 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); + 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()); + if (!this.zOne) + this.t = this.t.redMul(this.z.redInvm()); } } } @@ -39362,13 +39583,18 @@ Point.fromJSON = function fromJSON(curve, obj) { }; Point.prototype.inspect = function inspect() { - if (this.isInfinity()) return ''; - return ''; + if (this.isInfinity()) + return ''; + return ''; }; 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 || this.zOne && this.y.cmp(this.curve.c) === 0); + return this.x.cmpn(0) === 0 && + (this.y.cmp(this.z) === 0 || + (this.zOne && this.y.cmp(this.curve.c) === 0)); }; Point.prototype._extDbl = function _extDbl() { @@ -39463,10 +39689,14 @@ Point.prototype._projDbl = function _projDbl() { }; Point.prototype.dbl = function dbl() { - if (this.isInfinity()) return this; + if (this.isInfinity()) + return this; // Double in extended coordinates - if (this.curve.extended) return this._extDbl();else return this._projDbl(); + if (this.curve.extended) + return this._extDbl(); + else + return this._projDbl(); }; Point.prototype._extAdd = function _extAdd(p) { @@ -39541,39 +39771,52 @@ Point.prototype._projAdd = function _projAdd(p) { }; Point.prototype.add = function add(p) { - if (this.isInfinity()) return p; - if (p.isInfinity()) return this; + if (this.isInfinity()) + return p; + if (p.isInfinity()) + return this; - if (this.curve.extended) return this._extAdd(p);else return this._projAdd(p); + 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); + 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); + 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); + return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, true); }; Point.prototype.normalize = function normalize() { - if (this.zOne) return this; + 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); + 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()); + return this.curve.point(this.x.redNeg(), + this.y, + this.z, + this.t && this.t.redNeg()); }; Point.prototype.getX = function getX() { @@ -39587,21 +39830,26 @@ Point.prototype.getY = function getY() { }; Point.prototype.eq = function eq(other) { - return this === other || this.getX().cmp(other.getX()) === 0 && this.getY().cmp(other.getY()) === 0; + 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; + 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; + if (xc.cmp(this.curve.p) >= 0) + return false; rx.redIAdd(t); - if (this.x.cmp(rx) === 0) return true; + if (this.x.cmp(rx) === 0) + return true; } }; @@ -39659,8 +39907,10 @@ function Point(curve, x, z) { } 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); + 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); @@ -39690,8 +39940,10 @@ Point.fromJSON = function fromJSON(curve, obj) { }; Point.prototype.inspect = function inspect() { - if (this.isInfinity()) return ''; - return ''; + if (this.isInfinity()) + return ''; + return ''; }; Point.prototype.isInfinity = function isInfinity() { @@ -39753,9 +40005,10 @@ Point.prototype.mul = function mul(k) { var b = this.curve.point(null, null); // (N / 2) * Q var c = this; // Q - for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1)) { + for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1)) bits.push(t.andln(1)); - }for (var i = bits.length - 1; i >= 0; i--) { + + 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); @@ -39827,7 +40080,8 @@ 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; + 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; @@ -39856,7 +40110,7 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) { // Get basis vectors, used for balanced length-two representation var basis; if (conf.basis) { - basis = conf.basis.map(function (vec) { + basis = conf.basis.map(function(vec) { return { a: new BN(vec.a, 16), b: new BN(vec.b, 16) @@ -39885,7 +40139,7 @@ ShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) { var l1 = ntinv.redAdd(s).fromRed(); var l2 = ntinv.redSub(s).fromRed(); - return [l1, l2]; + return [ l1, l2 ]; }; ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) { @@ -39958,7 +40212,10 @@ ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) { b2 = b2.neg(); } - return [{ a: a1, b: b1 }, { a: a2, b: b2 }]; + return [ + { a: a1, b: b1 }, + { a: a2, b: b2 } + ]; }; ShortCurve.prototype._endoSplit = function _endoSplit(k) { @@ -39982,22 +40239,26 @@ ShortCurve.prototype._endoSplit = function _endoSplit(k) { ShortCurve.prototype.pointFromX = function pointFromX(x, odd) { x = new BN(x, 16); - if (!x.red) x = x.toRed(this.red); + 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'); + 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(); + if (odd && !isOdd || !odd && isOdd) + y = y.redNeg(); return this.point(x, y); }; ShortCurve.prototype.validate = function validate(point) { - if (point.inf) return true; + if (point.inf) + return true; var x = point.x; var y = point.y; @@ -40007,7 +40268,8 @@ ShortCurve.prototype.validate = function validate(point) { return y.redSqr().redISub(rhs).cmpn(0) === 0; }; -ShortCurve.prototype._endoWnafMulAdd = function _endoWnafMulAdd(points, coeffs, jacobianResult) { +ShortCurve.prototype._endoWnafMulAdd = + function _endoWnafMulAdd(points, coeffs, jacobianResult) { var npoints = this._endoWnafT1; var ncoeffs = this._endoWnafT2; for (var i = 0; i < points.length; i++) { @@ -40053,8 +40315,10 @@ function Point(curve, x, y, 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); + 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; } } @@ -40069,15 +40333,17 @@ ShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) { }; Point.prototype._getBeta = function _getBeta() { - if (!this.curve.endo) return; + if (!this.curve.endo) + return; var pre = this.precomputed; - if (pre && pre.beta) return pre.beta; + 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) { + var endoMul = function(p) { return curve.point(p.x.redMul(curve.endo.beta), p.y); }; pre.beta = beta; @@ -40097,9 +40363,10 @@ Point.prototype._getBeta = function _getBeta() { }; Point.prototype.toJSON = function toJSON() { - if (!this.precomputed) return [this.x, this.y]; + if (!this.precomputed) + return [ this.x, this.y ]; - return [this.x, this.y, this.precomputed && { + return [ this.x, this.y, this.precomputed && { doubles: this.precomputed.doubles && { step: this.precomputed.doubles.step, points: this.precomputed.doubles.points.slice(1) @@ -40108,13 +40375,15 @@ Point.prototype.toJSON = function toJSON() { 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); + if (typeof obj === 'string') + obj = JSON.parse(obj); var res = curve.point(obj[0], obj[1], red); - if (!obj[2]) return res; + if (!obj[2]) + return res; function obj2point(obj) { return curve.point(obj[0], obj[1], red); @@ -40125,19 +40394,21 @@ Point.fromJSON = function fromJSON(curve, obj, red) { beta: null, doubles: pre.doubles && { step: pre.doubles.step, - points: [res].concat(pre.doubles.points.map(obj2point)) + points: [ res ].concat(pre.doubles.points.map(obj2point)) }, naf: pre.naf && { wnd: pre.naf.wnd, - points: [res].concat(pre.naf.points.map(obj2point)) + points: [ res ].concat(pre.naf.points.map(obj2point)) } }; return res; }; Point.prototype.inspect = function inspect() { - if (this.isInfinity()) return ''; - return ''; + if (this.isInfinity()) + return ''; + return ''; }; Point.prototype.isInfinity = function isInfinity() { @@ -40146,33 +40417,41 @@ Point.prototype.isInfinity = function isInfinity() { Point.prototype.add = function add(p) { // O + P = P - if (this.inf) return p; + if (this.inf) + return p; // P + O = P - if (p.inf) return this; + if (p.inf) + return this; // P + P = 2P - if (this.eq(p)) return this.dbl(); + if (this.eq(p)) + return this.dbl(); // P + (-P) = O - if (this.neg().eq(p)) return this.curve.point(null, null); + 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); + 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()); + 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; + 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); + if (ys1.cmpn(0) === 0) + return this.curve.point(null, null); var a = this.curve.a; @@ -40196,32 +40475,46 @@ Point.prototype.getY = function getY() { 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); + 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); + 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); + 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); + 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; + 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) { + var negate = function(p) { return p.neg(); }; res.precomputed = { @@ -40239,7 +40532,8 @@ Point.prototype.neg = function neg(_precompute) { }; Point.prototype.toJ = function toJ() { - if (this.inf) return this.curve.jpoint(null, null, null); + if (this.inf) + return this.curve.jpoint(null, null, null); var res = this.curve.jpoint(this.x, this.y, this.curve.one); return res; @@ -40256,9 +40550,12 @@ function JPoint(curve, x, y, z) { 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); + 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; } @@ -40269,7 +40566,8 @@ ShortCurve.prototype.jpoint = function jpoint(x, y, z) { }; JPoint.prototype.toP = function toP() { - if (this.isInfinity()) return this.curve.point(null, null); + if (this.isInfinity()) + return this.curve.point(null, null); var zinv = this.z.redInvm(); var zinv2 = zinv.redSqr(); @@ -40285,10 +40583,12 @@ JPoint.prototype.neg = function neg() { JPoint.prototype.add = function add(p) { // O + P = P - if (this.isInfinity()) return p; + if (this.isInfinity()) + return p; // P + O = P - if (p.isInfinity()) return this; + if (p.isInfinity()) + return this; // 12M + 4S + 7A var pz2 = p.z.redSqr(); @@ -40301,7 +40601,10 @@ JPoint.prototype.add = function add(p) { 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(); + if (r.cmpn(0) !== 0) + return this.curve.jpoint(null, null, null); + else + return this.dbl(); } var h2 = h.redSqr(); @@ -40317,10 +40620,12 @@ JPoint.prototype.add = function add(p) { JPoint.prototype.mixedAdd = function mixedAdd(p) { // O + P = P - if (this.isInfinity()) return p.toJ(); + if (this.isInfinity()) + return p.toJ(); // P + O = P - if (p.isInfinity()) return this; + if (p.isInfinity()) + return this; // 8M + 3S + 7A var z2 = this.z.redSqr(); @@ -40332,7 +40637,10 @@ JPoint.prototype.mixedAdd = function mixedAdd(p) { 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(); + if (r.cmpn(0) !== 0) + return this.curve.jpoint(null, null, null); + else + return this.dbl(); } var h2 = h.redSqr(); @@ -40347,15 +40655,18 @@ JPoint.prototype.mixedAdd = function mixedAdd(p) { }; JPoint.prototype.dblp = function dblp(pow) { - if (pow === 0) return this; - if (this.isInfinity()) return this; - if (!pow) return this.dbl(); + 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++) { + for (var i = 0; i < pow; i++) r = r.dbl(); - }return r; + return r; } // 1M + 2S + 1A + N * (4S + 5M + 8A) @@ -40382,7 +40693,8 @@ JPoint.prototype.dblp = function dblp(pow) { var dny = c.redMul(t2); dny = dny.redIAdd(dny).redISub(jyd4); var nz = jyd.redMul(jz); - if (i + 1 < pow) jz4 = jz4.redMul(jyd4); + if (i + 1 < pow) + jz4 = jz4.redMul(jyd4); jx = nx; jz = nz; @@ -40393,9 +40705,15 @@ JPoint.prototype.dblp = function dblp(pow) { }; JPoint.prototype.dbl = function dbl() { - if (this.isInfinity()) return this; + if (this.isInfinity()) + return this; - if (this.curve.zeroA) return this._zeroDbl();else if (this.curve.threeA) return this._threeDbl();else return this._dbl(); + if (this.curve.zeroA) + return this._zeroDbl(); + else if (this.curve.threeA) + return this._threeDbl(); + else + return this._dbl(); }; JPoint.prototype._zeroDbl = function _zeroDbl() { @@ -40563,7 +40881,8 @@ JPoint.prototype._dbl = function _dbl() { }; JPoint.prototype.trpl = function trpl() { - if (!this.curve.zeroA) return this.dbl().add(this); + if (!this.curve.zeroA) + return this.dbl().add(this); // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl // 5M + 10S + ... @@ -40619,14 +40938,17 @@ JPoint.prototype.mul = function mul(k, kbase) { }; JPoint.prototype.eq = function eq(p) { - if (p.type === 'affine') return this.eq(p.toJ()); + if (p.type === 'affine') + return this.eq(p.toJ()); - if (this === p) return true; + 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; + 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); @@ -40637,22 +40959,28 @@ JPoint.prototype.eq = function eq(p) { 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; + 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; + if (xc.cmp(this.curve.p) >= 0) + return false; rx.redIAdd(t); - if (this.x.cmp(rx) === 0) return true; + if (this.x.cmp(rx) === 0) + return true; } }; JPoint.prototype.inspect = function inspect() { - if (this.isInfinity()) return ''; - return ''; + if (this.isInfinity()) + return ''; + return ''; }; JPoint.prototype.isInfinity = function isInfinity() { @@ -40671,7 +40999,12 @@ 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); + 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; @@ -40685,7 +41018,7 @@ function defineCurve(name, options) { Object.defineProperty(curves, name, { configurable: true, enumerable: true, - get: function get() { + get: function() { var curve = new PresetCurve(options); Object.defineProperty(curves, name, { configurable: true, @@ -40706,7 +41039,10 @@ defineCurve('p192', { 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'] + g: [ + '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012', + '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811' + ] }); defineCurve('p224', { @@ -40718,7 +41054,10 @@ defineCurve('p224', { 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'] + g: [ + 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21', + 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34' + ] }); defineCurve('p256', { @@ -40730,31 +41069,58 @@ defineCurve('p256', { 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'] + 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', + 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'] + 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', + 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'] + 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', { @@ -40766,7 +41132,9 @@ defineCurve('curve25519', { n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed', hash: hash.sha256, gRed: false, - g: ['9'] + g: [ + '9' + ] }); defineCurve('ed25519', { @@ -40780,10 +41148,12 @@ defineCurve('ed25519', { n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed', hash: hash.sha256, gRed: false, - g: ['216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a', + g: [ + '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a', - // 4/5 - '6666666666666666666666666666666666666666666666666666666666666658'] + // 4/5 + '6666666666666666666666666666666666666666666666666666666666666658' + ] }); var pre; @@ -40806,23 +41176,28 @@ defineCurve('secp256k1', { // Precomputed endomorphism beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee', lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72', - basis: [{ - a: '3086d221a7d46bcde86c90e49284eb15', - b: '-e4437ed6010e88286f547fa90abfe4c3' - }, { - a: '114ca50f7a8e2f3f657c1108d9d44cfd8', - b: '3086d221a7d46bcde86c90e49284eb15' - }], + basis: [ + { + a: '3086d221a7d46bcde86c90e49284eb15', + b: '-e4437ed6010e88286f547fa90abfe4c3' + }, + { + a: '114ca50f7a8e2f3f657c1108d9d44cfd8', + b: '3086d221a7d46bcde86c90e49284eb15' + } + ], gRed: false, - g: ['79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8', pre] + g: [ + '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', + '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8', + pre + ] }); },{"../elliptic":196,"./precomputed/secp256k1":209,"hash.js":233}],203:[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'); @@ -40833,7 +41208,8 @@ var KeyPair = require('./key'); var Signature = require('./signature'); function EC(options) { - if (!(this instanceof EC)) return new EC(options); + if (!(this instanceof EC)) + return new EC(options); // Shortcut `elliptic.ec(curve-name)` if (typeof options === 'string') { @@ -40843,7 +41219,8 @@ function EC(options) { } // Shortcut for `elliptic.ec(elliptic.curves.curveName)` - if (options instanceof elliptic.curves.PresetCurve) options = { curve: options }; + if (options instanceof elliptic.curves.PresetCurve) + options = { curve: options }; this.curve = options.curve.curve; this.n = this.curve.n; @@ -40872,7 +41249,8 @@ EC.prototype.keyFromPublic = function keyFromPublic(pub, enc) { }; EC.prototype.genKeyPair = function genKeyPair(options) { - if (!options) options = {}; + if (!options) + options = {}; // Instantiate Hmac_DRBG var drbg = new HmacDRBG({ @@ -40888,7 +41266,8 @@ EC.prototype.genKeyPair = function genKeyPair(options) { var ns2 = this.n.sub(new BN(2)); do { var priv = new BN(drbg.generate(bytes)); - if (priv.cmp(ns2) > 0) continue; + if (priv.cmp(ns2) > 0) + continue; priv.iaddn(1); return this.keyFromPrivate(priv); @@ -40897,16 +41276,21 @@ EC.prototype.genKeyPair = function genKeyPair(options) { 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; + 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') { + if (typeof enc === 'object') { options = enc; enc = null; } - if (!options) options = {}; + if (!options) + options = {}; key = this.keyFromPrivate(key, enc); msg = this._truncateToN(new BN(msg, 16)); @@ -40931,22 +41315,29 @@ EC.prototype.sign = function sign(msg, key, enc, options) { 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())); + 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; + if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0) + continue; var kp = this.g.mul(k); - if (kp.isInfinity()) continue; + if (kp.isInfinity()) + continue; var kpX = kp.getX(); var r = kpX.umod(this.n); - if (r.cmpn(0) === 0) continue; + 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; + if (s.cmpn(0) === 0) + continue; - var recoveryParam = (kp.getY().isOdd() ? 1 : 0) | (kpX.cmp(r) !== 0 ? 2 : 0); + 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) { @@ -40966,8 +41357,10 @@ EC.prototype.verify = function verify(msg, signature, key, enc) { // 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; + 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); @@ -40976,7 +41369,8 @@ EC.prototype.verify = function verify(msg, signature, key, enc) { if (!this.curve._maxwellTrick) { var p = this.g.mulAdd(u1, key.getPublic(), u2); - if (p.isInfinity()) return false; + if (p.isInfinity()) + return false; return p.getX().umod(this.n).cmp(r) === 0; } @@ -40985,7 +41379,8 @@ EC.prototype.verify = function verify(msg, signature, key, enc) { // https://git.io/vad3K var p = this.g.jmulAdd(u1, key.getPublic(), u2); - if (p.isInfinity()) return false; + 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 @@ -40993,7 +41388,7 @@ EC.prototype.verify = function verify(msg, signature, key, enc) { return p.eqXToP(r); }; -EC.prototype.recoverPubKey = function (msg, signature, j, enc) { +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); @@ -41005,10 +41400,14 @@ EC.prototype.recoverPubKey = function (msg, signature, j, enc) { // 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'); + 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); + 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); @@ -41019,9 +41418,10 @@ EC.prototype.recoverPubKey = function (msg, signature, j, enc) { return this.g.mulAdd(s1, r, s2); }; -EC.prototype.getKeyRecoveryParam = function (e, signature, Q, enc) { +EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) { signature = new Signature(signature, enc); - if (signature.recoveryParam !== null) return signature.recoveryParam; + if (signature.recoveryParam !== null) + return signature.recoveryParam; for (var i = 0; i < 4; i++) { var Qprime; @@ -41031,7 +41431,8 @@ EC.prototype.getKeyRecoveryParam = function (e, signature, Q, enc) { continue; } - if (Qprime.eq(Q)) return i; + if (Qprime.eq(Q)) + return i; } throw new Error('Unable to find valid recovery factor'); }; @@ -41050,13 +41451,16 @@ function KeyPair(ec, options) { 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); + 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; + if (pub instanceof KeyPair) + return pub; return new KeyPair(ec, { pub: pub, @@ -41065,7 +41469,8 @@ KeyPair.fromPublic = function fromPublic(ec, pub, enc) { }; KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) { - if (priv instanceof KeyPair) return priv; + if (priv instanceof KeyPair) + return priv; return new KeyPair(ec, { priv: priv, @@ -41076,9 +41481,12 @@ KeyPair.fromPrivate = function fromPrivate(ec, priv, 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' }; + 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 }; }; @@ -41090,15 +41498,20 @@ KeyPair.prototype.getPublic = function getPublic(compact, enc) { compact = null; } - if (!this.pub) this.pub = this.ec.g.mul(this.priv); + if (!this.pub) + this.pub = this.ec.g.mul(this.priv); - if (!enc) return this.pub; + 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; + if (enc === 'hex') + return this.priv.toString(16, 2); + else + return this.priv; }; KeyPair.prototype._importPrivate = function _importPrivate(key, enc) { @@ -41116,7 +41529,8 @@ KeyPair.prototype._importPublic = function _importPublic(key, enc) { // `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') { + } 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); @@ -41140,7 +41554,8 @@ KeyPair.prototype.verify = function verify(msg, signature) { }; KeyPair.prototype.inspect = function inspect() { - return ''; + return ''; }; },{"../../elliptic":196,"bn.js":182}],205:[function(require,module,exports){ @@ -41153,14 +41568,19 @@ var utils = elliptic.utils; var assert = utils.assert; function Signature(options, enc) { - if (options instanceof Signature) return options; + if (options instanceof Signature) + return options; - if (this._importDER(options, enc)) return; + 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; + if (options.recoveryParam === undefined) + this.recoveryParam = null; + else + this.recoveryParam = options.recoveryParam; } module.exports = Signature; @@ -41202,7 +41622,7 @@ Signature.prototype._importDER = function _importDER(data, enc) { return false; } var len = getLength(data, p); - if (len + p.place !== data.length) { + if ((len + p.place) !== data.length) { return false; } if (data[p.place++] !== 0x02) { @@ -41219,10 +41639,10 @@ Signature.prototype._importDER = function _importDER(data, enc) { return false; } var s = data.slice(p.place, slen + p.place); - if (r[0] === 0 && r[1] & 0x80) { + if (r[0] === 0 && (r[1] & 0x80)) { r = r.slice(1); } - if (s[0] === 0 && s[1] & 0x80) { + if (s[0] === 0 && (s[1] & 0x80)) { s = s.slice(1); } @@ -41241,7 +41661,7 @@ function constructLength(arr, len) { var octets = 1 + (Math.log(len) / Math.LN2 >>> 3); arr.push(octets | 0x80); while (--octets) { - arr.push(len >>> (octets << 3) & 0xff); + arr.push((len >>> (octets << 3)) & 0xff); } arr.push(len); } @@ -41251,9 +41671,11 @@ Signature.prototype.toDER = function toDER(enc) { var s = this.s.toArray(); // Pad values - if (r[0] & 0x80) r = [0].concat(r); + if (r[0] & 0x80) + r = [ 0 ].concat(r); // Pad values - if (s[0] & 0x80) s = [0].concat(s); + if (s[0] & 0x80) + s = [ 0 ].concat(s); r = rmPadding(r); s = rmPadding(s); @@ -41261,13 +41683,13 @@ Signature.prototype.toDER = function toDER(enc) { while (!s[0] && !(s[1] & 0x80)) { s = s.slice(1); } - var arr = [0x02]; + 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]; + var res = [ 0x30 ]; constructLength(res, backHalf.length); res = res.concat(backHalf); return utils.encode(res, enc); @@ -41287,7 +41709,8 @@ var Signature = require('./signature'); function EDDSA(curve) { assert(curve === 'ed25519', 'only tested with ed25519 so far'); - if (!(this instanceof EDDSA)) return new EDDSA(curve); + if (!(this instanceof EDDSA)) + return new EDDSA(curve); var curve = elliptic.curves[curve].curve; this.curve = curve; @@ -41312,7 +41735,8 @@ EDDSA.prototype.sign = function sign(message, 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_ = 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 }); }; @@ -41335,9 +41759,9 @@ EDDSA.prototype.verify = function verify(message, sig, pub) { EDDSA.prototype.hashInt = function hashInt() { var hash = this.hash(); - for (var i = 0; i < arguments.length; i++) { + for (var i = 0; i < arguments.length; i++) hash.update(arguments[i]); - }return utils.intFromLE(hash.digest()).umod(this.curve.n); + return utils.intFromLE(hash.digest()).umod(this.curve.n); }; EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) { @@ -41349,7 +41773,8 @@ EDDSA.prototype.keyFromSecret = function keyFromSecret(secret) { }; EDDSA.prototype.makeSignature = function makeSignature(sig) { - if (sig instanceof Signature) return sig; + if (sig instanceof Signature) + return sig; return new Signature(this, sig); }; @@ -41411,16 +41836,21 @@ var cachedProperty = utils.cachedProperty; 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); + 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; + if (pub instanceof KeyPair) + return pub; return new KeyPair(eddsa, { pub: pub }); }; KeyPair.fromSecret = function fromSecret(eddsa, secret) { - if (secret instanceof KeyPair) return secret; + if (secret instanceof KeyPair) + return secret; return new KeyPair(eddsa, { secret: secret }); }; @@ -41433,7 +41863,8 @@ cachedProperty(KeyPair, 'pubBytes', function pubBytes() { }); cachedProperty(KeyPair, 'pub', function pub() { - if (this._pubBytes) return this.eddsa.decodePoint(this._pubBytes); + if (this._pubBytes) + return this.eddsa.decodePoint(this._pubBytes); return this.eddsa.g.mul(this.priv()); }); @@ -41485,8 +41916,6 @@ module.exports = KeyPair; },{"../../elliptic":196}],208:[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; @@ -41505,7 +41934,8 @@ var parseBytes = utils.parseBytes; function Signature(eddsa, sig) { this.eddsa = eddsa; - if ((typeof sig === 'undefined' ? 'undefined' : _typeof(sig)) !== 'object') sig = parseBytes(sig); + if (typeof sig !== 'object') + sig = parseBytes(sig); if (Array.isArray(sig)) { sig = { @@ -41516,8 +41946,10 @@ function Signature(eddsa, sig) { 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; + 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; @@ -41550,16 +41982,784 @@ Signature.prototype.toHex = function toHex() { module.exports = Signature; },{"../../elliptic":196,"bn.js":182}],209:[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']] + 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']] + 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' + ] + ] } }; @@ -41580,13 +42780,16 @@ utils.encode = minUtils.encode; // Represent num in a w-NAF form function getNAF(num, w) { var naf = []; - var ws = 1 << w + 1; + 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; + if (mod > (ws >> 1) - 1) + z = (ws >> 1) - mod; + else + z = mod; k.isubn(z); } else { z = 0; @@ -41594,10 +42797,10 @@ function getNAF(num, w) { 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++) { + 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); + k.iushrn(shift); } return naf; @@ -41606,7 +42809,10 @@ utils.getNAF = getNAF; // Represent k1, k2 in a Joint Sparse Form function getJSF(k1, k2) { - var jsf = [[], []]; + var jsf = [ + [], + [] + ]; k1 = k1.clone(); k2 = k2.clone(); @@ -41615,16 +42821,21 @@ function getJSF(k1, k2) { 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 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; + var m8 = (k1.andln(7) + d1) & 7; + if ((m8 === 3 || m8 === 5) && m24 === 2) + u1 = -m14; + else + u1 = m14; } jsf[0].push(u1); @@ -41632,14 +42843,19 @@ function getJSF(k1, k2) { 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; + 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; + if (2 * d1 === u1 + 1) + d1 = 1 - d1; + if (2 * d2 === u2 + 1) + d2 = 1 - d2; k1.iushrn(1); k2.iushrn(1); } @@ -41651,13 +42867,15 @@ 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); + 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; + return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') : + bytes; } utils.parseBytes = parseBytes; @@ -41666,6 +42884,7 @@ function intFromLE(bytes) { } utils.intFromLE = intFromLE; + },{"bn.js":182,"minimalistic-assert":258,"minimalistic-crypto-utils":259}],211:[function(require,module,exports){ module.exports={ "_args": [ @@ -41762,7 +42981,6 @@ module.exports={ } },{}],212:[function(require,module,exports){ -'use strict'; module.exports = require('./socket'); @@ -41776,10 +42994,6 @@ module.exports.parser = require('engine.io-parser'); },{"./socket":213,"engine.io-parser":223}],213:[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; }; - /** * Module dependencies. */ @@ -41806,12 +43020,12 @@ module.exports = Socket; * @api public */ -function Socket(uri, opts) { +function Socket (uri, opts) { if (!(this instanceof Socket)) return new Socket(uri, opts); opts = opts || {}; - if (uri && 'object' === (typeof uri === 'undefined' ? 'undefined' : _typeof(uri))) { + if (uri && 'object' === typeof uri) { opts = uri; uri = null; } @@ -41826,7 +43040,8 @@ function Socket(uri, opts) { opts.hostname = parseuri(opts.host).host; } - this.secure = null != opts.secure ? opts.secure : global.location && 'https:' === location.protocol; + this.secure = null != opts.secure ? opts.secure + : (global.location && 'https:' === location.protocol); if (opts.hostname && !opts.port) { // if no port is specified manually, use the protocol default @@ -41834,8 +43049,11 @@ function Socket(uri, opts) { } this.agent = opts.agent || false; - this.hostname = opts.hostname || (global.location ? location.hostname : 'localhost'); - this.port = opts.port || (global.location && location.port ? location.port : this.secure ? 443 : 80); + this.hostname = opts.hostname || + (global.location ? location.hostname : 'localhost'); + this.port = opts.port || (global.location && location.port + ? location.port + : (this.secure ? 443 : 80)); this.query = opts.query || {}; if ('string' === typeof this.query) this.query = parseqs.decode(this.query); this.upgrade = false !== opts.upgrade; @@ -41855,7 +43073,7 @@ function Socket(uri, opts) { this.rememberUpgrade = opts.rememberUpgrade || false; this.binaryType = null; this.onlyBinaryUpgrades = opts.onlyBinaryUpgrades; - this.perMessageDeflate = false !== opts.perMessageDeflate ? opts.perMessageDeflate || {} : false; + this.perMessageDeflate = false !== opts.perMessageDeflate ? (opts.perMessageDeflate || {}) : false; if (true === this.perMessageDeflate) this.perMessageDeflate = {}; if (this.perMessageDeflate && null == this.perMessageDeflate.threshold) { @@ -41873,7 +43091,7 @@ function Socket(uri, opts) { this.forceNode = !!opts.forceNode; // other options for Node.js client - var freeGlobal = (typeof global === 'undefined' ? 'undefined' : _typeof(global)) === 'object' && global; + var freeGlobal = typeof global === 'object' && global; if (freeGlobal.global === freeGlobal) { if (opts.extraHeaders && Object.keys(opts.extraHeaders).length > 0) { this.extraHeaders = opts.extraHeaders; @@ -41974,13 +43192,13 @@ Socket.prototype.createTransport = function (name) { forceNode: options.forceNode || this.forceNode, localAddress: options.localAddress || this.localAddress, requestTimeout: options.requestTimeout || this.requestTimeout, - protocols: options.protocols || void 0 + protocols: options.protocols || void (0) }); return transport; }; -function clone(obj) { +function clone (obj) { var o = {}; for (var i in obj) { if (obj.hasOwnProperty(i)) { @@ -42043,13 +43261,17 @@ Socket.prototype.setTransport = function (transport) { this.transport = transport; // set up transport listeners - transport.on('drain', function () { + transport + .on('drain', function () { self.onDrain(); - }).on('packet', function (packet) { + }) + .on('packet', function (packet) { self.onPacket(packet); - }).on('error', function (e) { + }) + .on('error', function (e) { self.onError(e); - }).on('close', function () { + }) + .on('close', function () { self.onClose('transport close'); }); }; @@ -42069,7 +43291,7 @@ Socket.prototype.probe = function (name) { Socket.priorWebsocketSuccess = false; - function onTransportOpen() { + function onTransportOpen () { if (self.onlyBinaryUpgrades) { var upgradeLosesBinary = !this.supportsBinary && self.transport.supportsBinary; failed = failed || upgradeLosesBinary; @@ -42111,7 +43333,7 @@ Socket.prototype.probe = function (name) { }); } - function freezeTransport() { + function freezeTransport () { if (failed) return; // Any callback called by transport should be ignored since now @@ -42124,7 +43346,7 @@ Socket.prototype.probe = function (name) { } // Handle any error that happens while probing - function onerror(err) { + function onerror (err) { var error = new Error('probe error: ' + err); error.transport = transport.name; @@ -42135,17 +43357,17 @@ Socket.prototype.probe = function (name) { self.emit('upgradeError', error); } - function onTransportClose() { + function onTransportClose () { onerror('transport closed'); } // When the socket is closed while we're probing - function onclose() { + function onclose () { onerror('socket closed'); } // When the socket is upgraded while we're probing - function onupgrade(to) { + function onupgrade (to) { if (transport && to.name !== transport.name) { debug('"%s" works - aborting "%s"', to.name, transport.name); freezeTransport(); @@ -42153,7 +43375,7 @@ Socket.prototype.probe = function (name) { } // Remove all listeners on the transport and on self - function cleanup() { + function cleanup () { transport.removeListener('open', onTransportOpen); transport.removeListener('error', onerror); transport.removeListener('close', onTransportClose); @@ -42201,7 +43423,8 @@ Socket.prototype.onOpen = function () { */ Socket.prototype.onPacket = function (packet) { - if ('opening' === this.readyState || 'open' === this.readyState || 'closing' === this.readyState) { + if ('opening' === this.readyState || 'open' === this.readyState || + 'closing' === this.readyState) { debug('socket receive: type "%s", data "%s"', packet.type, packet.data); this.emit('packet', packet); @@ -42271,7 +43494,7 @@ Socket.prototype.onHeartbeat = function (timeout) { self.pingTimeoutTimer = setTimeout(function () { if ('closed' === self.readyState) return; self.onClose('ping timeout'); - }, timeout || self.pingInterval + self.pingTimeout); + }, timeout || (self.pingInterval + self.pingTimeout)); }; /** @@ -42332,7 +43555,8 @@ Socket.prototype.onDrain = function () { */ Socket.prototype.flush = function () { - if ('closed' !== this.readyState && this.transport.writable && !this.upgrading && this.writeBuffer.length) { + if ('closed' !== this.readyState && this.transport.writable && + !this.upgrading && this.writeBuffer.length) { debug('flushing %d packets in socket', this.writeBuffer.length); this.transport.send(this.writeBuffer); // keep track of current length of writeBuffer @@ -42352,7 +43576,8 @@ Socket.prototype.flush = function () { * @api public */ -Socket.prototype.write = Socket.prototype.send = function (msg, options, fn) { +Socket.prototype.write = +Socket.prototype.send = function (msg, options, fn) { this.sendPacket('message', msg, options, fn); return this; }; @@ -42423,19 +43648,19 @@ Socket.prototype.close = function () { } } - function close() { + function close () { self.onClose('forced close'); debug('socket closing - telling transport to close'); self.transport.close(); } - function cleanupAndClose() { + function cleanupAndClose () { self.removeListener('upgrade', cleanupAndClose); self.removeListener('upgradeError', cleanupAndClose); close(); } - function waitForUpgrade() { + function waitForUpgrade () { // wait for upgrade to finish since we can't send packets while pausing a transport self.once('upgrade', cleanupAndClose); self.once('upgradeError', cleanupAndClose); @@ -42515,8 +43740,6 @@ Socket.prototype.filterUpgrades = function (upgrades) { }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./transport":214,"./transports/index":215,"component-emitter":187,"debug":221,"engine.io-parser":223,"indexof":246,"parseqs":261,"parseuri":262}],214:[function(require,module,exports){ -'use strict'; - /** * Module dependencies. */ @@ -42537,7 +43760,7 @@ module.exports = Transport; * @api private */ -function Transport(opts) { +function Transport (opts) { this.path = opts.path; this.hostname = opts.hostname; this.port = opts.port; @@ -42677,8 +43900,6 @@ Transport.prototype.onClose = function () { },{"component-emitter":187,"engine.io-parser":223}],215:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Module dependencies */ @@ -42702,7 +43923,7 @@ exports.websocket = websocket; * @api private */ -function polling(opts) { +function polling (opts) { var xhr; var xd = false; var xs = false; @@ -42736,7 +43957,6 @@ function polling(opts) { }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./polling-jsonp":216,"./polling-xhr":217,"./websocket":219,"xmlhttprequest-ssl":220}],216:[function(require,module,exports){ (function (global){ -'use strict'; /** * Module requirements. @@ -42768,7 +43988,7 @@ var callbacks; * Noop. */ -function empty() {} +function empty () { } /** * JSONP Polling constructor. @@ -42777,7 +43997,7 @@ function empty() {} * @api public */ -function JSONPPolling(opts) { +function JSONPPolling (opts) { Polling.call(this, opts); this.query = this.query || {}; @@ -42917,12 +44137,12 @@ JSONPPolling.prototype.doWrite = function (data, fn) { this.form.action = this.uri(); - function complete() { + function complete () { initIframe(); fn(); } - function initIframe() { + function initIframe () { if (self.iframe) { try { self.form.removeChild(self.iframe); @@ -42972,8 +44192,6 @@ JSONPPolling.prototype.doWrite = function (data, fn) { }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./polling":218,"component-inherit":188}],217:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Module requirements. */ @@ -42995,7 +44213,7 @@ module.exports.Request = Request; * Empty function */ -function empty() {} +function empty () {} /** * XHR Polling constructor. @@ -43004,7 +44222,7 @@ function empty() {} * @api public */ -function XHR(opts) { +function XHR (opts) { Polling.call(this, opts); this.requestTimeout = opts.requestTimeout; this.extraHeaders = opts.extraHeaders; @@ -43018,7 +44236,8 @@ function XHR(opts) { port = isSSL ? 443 : 80; } - this.xd = opts.hostname !== global.location.hostname || port !== opts.port; + this.xd = opts.hostname !== global.location.hostname || + port !== opts.port; this.xs = opts.secure !== isSSL; } } @@ -43112,7 +44331,7 @@ XHR.prototype.doPoll = function () { * @api public */ -function Request(opts) { +function Request (opts) { this.method = opts.method || 'GET'; this.uri = opts.uri; this.xd = !!opts.xd; @@ -43378,7 +44597,7 @@ if (global.document) { } } -function unloadHandler() { +function unloadHandler () { for (var i in Request.requests) { if (Request.requests.hasOwnProperty(i)) { Request.requests[i].abort(); @@ -43388,8 +44607,6 @@ function unloadHandler() { }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./polling":218,"component-emitter":187,"component-inherit":188,"debug":221,"xmlhttprequest-ssl":220}],218:[function(require,module,exports){ -'use strict'; - /** * Module dependencies. */ @@ -43411,11 +44628,11 @@ module.exports = Polling; * Is XHR2 supported? */ -var hasXHR2 = function () { +var hasXHR2 = (function () { var XMLHttpRequest = require('xmlhttprequest-ssl'); var xhr = new XMLHttpRequest({ xdomain: false }); return null != xhr.responseType; -}(); +})(); /** * Polling interface. @@ -43424,8 +44641,8 @@ var hasXHR2 = function () { * @api private */ -function Polling(opts) { - var forceBase64 = opts && opts.forceBase64; +function Polling (opts) { + var forceBase64 = (opts && opts.forceBase64); if (!hasXHR2 || forceBase64) { this.supportsBinary = false; } @@ -43467,7 +44684,7 @@ Polling.prototype.pause = function (onPause) { this.readyState = 'pausing'; - function pause() { + function pause () { debug('paused'); self.readyState = 'paused'; onPause(); @@ -43520,7 +44737,7 @@ Polling.prototype.poll = function () { Polling.prototype.onData = function (data) { var self = this; debug('polling got data %s', data); - var callback = function callback(packet, index, total) { + var callback = function (packet, index, total) { // if its the first message we consider the transport open if ('opening' === self.readyState) { self.onOpen(); @@ -43562,7 +44779,7 @@ Polling.prototype.onData = function (data) { Polling.prototype.doClose = function () { var self = this; - function close() { + function close () { debug('writing close packet'); self.write([{ type: 'close' }]); } @@ -43589,7 +44806,7 @@ Polling.prototype.doClose = function () { Polling.prototype.write = function (packets) { var self = this; this.writable = false; - var callbackfn = function callbackfn() { + var callbackfn = function () { self.writable = true; self.emit('drain'); }; @@ -43622,7 +44839,8 @@ Polling.prototype.uri = function () { query = parseqs.encode(query); // avoid port if default for schema - if (this.port && ('https' === schema && Number(this.port) !== 443 || 'http' === schema && Number(this.port) !== 80)) { + if (this.port && (('https' === schema && Number(this.port) !== 443) || + ('http' === schema && Number(this.port) !== 80))) { port = ':' + this.port; } @@ -43635,10 +44853,8 @@ Polling.prototype.uri = function () { return schema + '://' + (ipv6 ? '[' + this.hostname + ']' : this.hostname) + port + this.path + query; }; -},{"../transport":214,"component-inherit":188,"debug":221,"engine.io-parser":223,"parseqs":261,"xmlhttprequest-ssl":220,"yeast":312}],219:[function(require,module,exports){ +},{"../transport":214,"component-inherit":188,"debug":221,"engine.io-parser":223,"parseqs":261,"xmlhttprequest-ssl":220,"yeast":326}],219:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Module dependencies. */ @@ -43654,7 +44870,7 @@ var NodeWebSocket; if (typeof window === 'undefined') { try { NodeWebSocket = require('ws'); - } catch (e) {} + } catch (e) { } } /** @@ -43681,8 +44897,8 @@ module.exports = WS; * @api public */ -function WS(opts) { - var forceBase64 = opts && opts.forceBase64; +function WS (opts) { + var forceBase64 = (opts && opts.forceBase64); if (forceBase64) { this.supportsBinary = false; } @@ -43750,7 +44966,7 @@ WS.prototype.doOpen = function () { } try { - this.ws = this.usingBrowserWebSocket ? protocols ? new WebSocket(uri, protocols) : new WebSocket(uri) : new WebSocket(uri, protocols, opts); + this.ws = this.usingBrowserWebSocket ? (protocols ? new WebSocket(uri, protocols) : new WebSocket(uri)) : new WebSocket(uri, protocols, opts); } catch (err) { return this.emit('error', err); } @@ -43843,7 +45059,7 @@ WS.prototype.write = function (packets) { })(packets[i]); } - function done() { + function done () { self.emit('flush'); // fake drain @@ -43889,7 +45105,8 @@ WS.prototype.uri = function () { var port = ''; // avoid port if default for schema - if (this.port && ('wss' === schema && Number(this.port) !== 443 || 'ws' === schema && Number(this.port) !== 80)) { + if (this.port && (('wss' === schema && Number(this.port) !== 443) || + ('ws' === schema && Number(this.port) !== 80))) { port = ':' + this.port; } @@ -43926,10 +45143,8 @@ WS.prototype.check = function () { }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../transport":214,"component-inherit":188,"debug":221,"engine.io-parser":223,"parseqs":261,"ws":369,"yeast":312}],220:[function(require,module,exports){ +},{"../transport":214,"component-inherit":188,"debug":221,"engine.io-parser":223,"parseqs":261,"ws":383,"yeast":326}],220:[function(require,module,exports){ (function (global){ -'use strict'; - // browser shim for xmlhttprequest module var hasCORS = require('has-cors'); @@ -43950,7 +45165,7 @@ module.exports = function (opts) { if ('undefined' !== typeof XMLHttpRequest && (!xdomain || hasCORS)) { return new XMLHttpRequest(); } - } catch (e) {} + } catch (e) { } // Use XDomainRequest for IE8 if enablesXDR is true // because loading bar keeps flashing when using jsonp-polling @@ -43959,22 +45174,18 @@ module.exports = function (opts) { if ('undefined' !== typeof XDomainRequest && !xscheme && enablesXDR) { return new XDomainRequest(); } - } catch (e) {} + } catch (e) { } if (!xdomain) { try { return new global[['Active'].concat('Object').join('X')]('Microsoft.XMLHTTP'); - } catch (e) {} + } catch (e) { } } }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"has-cors":231}],221:[function(require,module,exports){ (function (process){ -'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 is the web browser implementation of `debug()`. * @@ -43987,13 +45198,28 @@ exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; -exports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage(); +exports.storage = 'undefined' != typeof chrome + && 'undefined' != typeof chrome.storage + ? chrome.storage.local + : localstorage(); /** * Colors. */ -exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33']; +exports.colors = [ + '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', + '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', + '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', + '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', + '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', + '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', + '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', + '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', + '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', + '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', + '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33' +]; /** * Currently only WebKit-based Web Inspectors, Firefox >= v31, @@ -44018,21 +45244,21 @@ function useColors() { // is webkit? http://stackoverflow.com/a/16459606/376773 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || - // is firebug? http://stackoverflow.com/a/398120/376773 - typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || - // is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || - // double check webkit in userAgent just in case we are in a worker - typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); + return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || + // is firebug? http://stackoverflow.com/a/398120/376773 + (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || + // is firefox >= v31? + // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || + // double check webkit in userAgent just in case we are in a worker + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); } /** * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. */ -exports.formatters.j = function (v) { +exports.formatters.j = function(v) { try { return JSON.stringify(v); } catch (err) { @@ -44040,6 +45266,7 @@ exports.formatters.j = function (v) { } }; + /** * Colorize log arguments if enabled. * @@ -44049,19 +45276,24 @@ exports.formatters.j = function (v) { function formatArgs(args) { var useColors = this.useColors; - args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff); + args[0] = (useColors ? '%c' : '') + + this.namespace + + (useColors ? ' %c' : ' ') + + args[0] + + (useColors ? '%c ' : ' ') + + '+' + exports.humanize(this.diff); if (!useColors) return; var c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); + args.splice(1, 0, c, 'color: inherit') // the final "%c" is somewhat tricky, because there could be other // arguments passed either before or after the %c, so we need to // figure out the correct index to insert the CSS into var index = 0; var lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, function (match) { + args[0].replace(/%[a-zA-Z%]/g, function(match) { if ('%%' === match) return; index++; if ('%c' === match) { @@ -44084,7 +45316,9 @@ function formatArgs(args) { function log() { // this hackery is required for IE8/9, where // the `console.log` function doesn't have 'apply' - return 'object' === (typeof console === 'undefined' ? 'undefined' : _typeof(console)) && console.log && Function.prototype.apply.call(console.log, console, arguments); + return 'object' === typeof console + && console.log + && Function.prototype.apply.call(console.log, console, arguments); } /** @@ -44101,7 +45335,7 @@ function save(namespaces) { } else { exports.storage.debug = namespaces; } - } catch (e) {} + } catch(e) {} } /** @@ -44115,7 +45349,7 @@ function load() { var r; try { r = exports.storage.debug; - } catch (e) {} + } catch(e) {} // If debug isn't set in LS, and we're in Electron, try to load $DEBUG if (!r && typeof process !== 'undefined' && 'env' in process) { @@ -44149,8 +45383,7 @@ function localstorage() { } }).call(this,require('_process')) -},{"./debug":222,"_process":911}],222:[function(require,module,exports){ -'use strict'; +},{"./debug":222,"_process":925}],222:[function(require,module,exports){ /** * This is the common logic for both the Node.js and web browser @@ -44194,11 +45427,10 @@ exports.formatters = {}; */ function selectColor(namespace) { - var hash = 0, - i; + var hash = 0, i; for (i in namespace) { - hash = (hash << 5) - hash + namespace.charCodeAt(i); + hash = ((hash << 5) - hash) + namespace.charCodeAt(i); hash |= 0; // Convert to 32bit integer } @@ -44246,7 +45478,7 @@ function createDebug(namespace) { // apply any `formatters` transformations var index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) { + args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) { // if we encounter an escaped % then don't increase the array index if (match === '%%') return match; index++; @@ -44285,7 +45517,7 @@ function createDebug(namespace) { return debug; } -function destroy() { +function destroy () { var index = exports.instances.indexOf(this); if (index !== -1) { exports.instances.splice(index, 1); @@ -44380,8 +45612,6 @@ function coerce(val) { },{"ms":260}],223:[function(require,module,exports){ (function (global){ -'use strict'; - /** * Module dependencies. */ @@ -44431,13 +45661,13 @@ exports.protocol = 3; */ var packets = exports.packets = { - open: 0 // non-ws - , close: 1 // non-ws - , ping: 2, - pong: 3, - message: 4, - upgrade: 5, - noop: 6 + open: 0 // non-ws + , close: 1 // non-ws + , ping: 2 + , pong: 3 + , message: 4 + , upgrade: 5 + , noop: 6 }; var packetslist = keys(packets); @@ -44481,7 +45711,9 @@ exports.encodePacket = function (packet, supportsBinary, utf8encode, callback) { utf8encode = null; } - var data = packet.data === undefined ? undefined : packet.data.buffer || packet.data; + var data = (packet.data === undefined) + ? undefined + : packet.data.buffer || packet.data; if (global.ArrayBuffer && data instanceof ArrayBuffer) { return encodeArrayBuffer(packet, supportsBinary, callback); @@ -44503,6 +45735,7 @@ exports.encodePacket = function (packet, supportsBinary, utf8encode, callback) { } return callback('' + encoded); + }; function encodeBase64Object(packet, callback) { @@ -44526,7 +45759,7 @@ function encodeArrayBuffer(packet, supportsBinary, callback) { resultBuffer[0] = packets[packet.type]; for (var i = 0; i < contentArray.length; i++) { - resultBuffer[i + 1] = contentArray[i]; + resultBuffer[i+1] = contentArray[i]; } return callback(resultBuffer.buffer); @@ -44538,7 +45771,7 @@ function encodeBlobAsArrayBuffer(packet, supportsBinary, callback) { } var fr = new FileReader(); - fr.onload = function () { + fr.onload = function() { packet.data = fr.result; exports.encodePacket(packet, supportsBinary, true, callback); }; @@ -44568,11 +45801,11 @@ function encodeBlob(packet, supportsBinary, callback) { * @return {String} base64 encoded message */ -exports.encodeBase64Packet = function (packet, callback) { +exports.encodeBase64Packet = function(packet, callback) { var message = 'b' + exports.packets[packet.type]; if (Blob && packet.data instanceof global.Blob) { var fr = new FileReader(); - fr.onload = function () { + fr.onload = function() { var b64 = fr.result.split(',')[1]; callback(message + b64); }; @@ -44656,7 +45889,7 @@ function tryDecode(data) { * @return {Object} with `type` and `data` (if any) */ -exports.decodeBase64Packet = function (msg, binaryType) { +exports.decodeBase64Packet = function(msg, binaryType) { var type = packetslist[msg.charAt(0)]; if (!base64encoder) { return { type: type, data: { base64: true, data: msg.substr(1) } }; @@ -44712,12 +45945,12 @@ exports.encodePayload = function (packets, supportsBinary, callback) { } function encodeOne(packet, doneCallback) { - exports.encodePacket(packet, !isBinary ? false : supportsBinary, false, function (message) { + exports.encodePacket(packet, !isBinary ? false : supportsBinary, false, function(message) { doneCallback(null, setLengthHeader(message)); }); } - map(packets, encodeOne, function (err, results) { + map(packets, encodeOne, function(err, results) { return callback(results.join('')); }); }; @@ -44730,8 +45963,8 @@ function map(ary, each, done) { var result = new Array(ary.length); var next = after(ary.length, done); - var eachWithIndex = function eachWithIndex(i, el, cb) { - each(el, function (error, msg) { + var eachWithIndex = function(i, el, cb) { + each(el, function(error, msg) { result[i] = msg; cb(error, result); }); @@ -44766,9 +45999,7 @@ exports.decodePayload = function (data, binaryType, callback) { return callback(err, 0, 1); } - var length = '', - n, - msg; + var length = '', n, msg; for (var i = 0, l = data.length; i < l; i++) { var chr = data.charAt(i); @@ -44778,7 +46009,7 @@ exports.decodePayload = function (data, binaryType, callback) { continue; } - if (length === '' || length != (n = Number(length))) { + if (length === '' || (length != (n = Number(length)))) { // parser error - ignoring payload return callback(err, 0, 1); } @@ -44811,6 +46042,7 @@ exports.decodePayload = function (data, binaryType, callback) { // parser error - ignoring payload return callback(err, 0, 1); } + }; /** @@ -44827,21 +46059,21 @@ exports.decodePayload = function (data, binaryType, callback) { * @api private */ -exports.encodePayloadAsArrayBuffer = function (packets, callback) { +exports.encodePayloadAsArrayBuffer = function(packets, callback) { if (!packets.length) { return callback(new ArrayBuffer(0)); } function encodeOne(packet, doneCallback) { - exports.encodePacket(packet, true, true, function (data) { + exports.encodePacket(packet, true, true, function(data) { return doneCallback(null, data); }); } - map(packets, encodeOne, function (err, encodedPackets) { - var totalLength = encodedPackets.reduce(function (acc, p) { + map(packets, encodeOne, function(err, encodedPackets) { + var totalLength = encodedPackets.reduce(function(acc, p) { var len; - if (typeof p === 'string') { + if (typeof p === 'string'){ len = p.length; } else { len = p.byteLength; @@ -44852,7 +46084,7 @@ exports.encodePayloadAsArrayBuffer = function (packets, callback) { var resultArray = new Uint8Array(totalLength); var bufferIndex = 0; - encodedPackets.forEach(function (p) { + encodedPackets.forEach(function(p) { var isString = typeof p === 'string'; var ab = p; if (isString) { @@ -44863,11 +46095,9 @@ exports.encodePayloadAsArrayBuffer = function (packets, callback) { ab = view.buffer; } - if (isString) { - // not true binary + if (isString) { // not true binary resultArray[bufferIndex++] = 0; - } else { - // true binary + } else { // true binary resultArray[bufferIndex++] = 1; } @@ -44891,9 +46121,9 @@ exports.encodePayloadAsArrayBuffer = function (packets, callback) { * Encode as Blob */ -exports.encodePayloadAsBlob = function (packets, callback) { +exports.encodePayloadAsBlob = function(packets, callback) { function encodeOne(packet, doneCallback) { - exports.encodePacket(packet, true, true, function (encoded) { + exports.encodePacket(packet, true, true, function(encoded) { var binaryIdentifier = new Uint8Array(1); binaryIdentifier[0] = 1; if (typeof encoded === 'string') { @@ -44905,7 +46135,9 @@ exports.encodePayloadAsBlob = function (packets, callback) { binaryIdentifier[0] = 0; } - var len = encoded instanceof ArrayBuffer ? encoded.byteLength : encoded.size; + var len = (encoded instanceof ArrayBuffer) + ? encoded.byteLength + : encoded.size; var lenStr = len.toString(); var lengthAry = new Uint8Array(lenStr.length + 1); @@ -44921,7 +46153,7 @@ exports.encodePayloadAsBlob = function (packets, callback) { }); } - map(packets, encodeOne, function (err, results) { + map(packets, encodeOne, function(err, results) { return callback(new Blob(results)); }); }; @@ -44949,7 +46181,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) { var isString = tailArray[0] === 0; var msgLength = ''; - for (var i = 1;; i++) { + for (var i = 1; ; i++) { if (tailArray[i] === 255) break; // 310 = char length of Number.MAX_VALUE @@ -44982,14 +46214,13 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) { } var total = buffers.length; - buffers.forEach(function (buffer, i) { + buffers.forEach(function(buffer, i) { callback(exports.decodePacket(buffer, binaryType, true), i, total); }); }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./keys":224,"./utf8":225,"after":176,"arraybuffer.slice":177,"base64-arraybuffer":179,"blob":181,"has-binary2":229}],224:[function(require,module,exports){ -"use strict"; /** * Gets the keys for an object. @@ -44998,7 +46229,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) { * @api private */ -module.exports = Object.keys || function keys(obj) { +module.exports = Object.keys || function keys (obj){ var arr = []; var has = Object.prototype.hasOwnProperty; @@ -45012,22 +46243,19 @@ module.exports = Object.keys || function keys(obj) { },{}],225:[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) { +;(function(root) { // Detect free variables `exports` - var freeExports = (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) == 'object' && exports; + var freeExports = typeof exports == 'object' && exports; // Detect free variable `module` - var freeModule = (typeof module === 'undefined' ? 'undefined' : _typeof(module)) == 'object' && module && module.exports == freeExports && module; + var freeModule = 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; + var freeGlobal = typeof global == 'object' && global; if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { root = freeGlobal; } @@ -45048,8 +46276,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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 + 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 @@ -45085,7 +46312,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol function checkScalarValue(codePoint, strict) { if (codePoint >= 0xD800 && codePoint <= 0xDFFF) { if (strict) { - throw Error('Lone surrogate U+' + codePoint.toString(16).toUpperCase() + ' is not a scalar value'); + throw Error( + 'Lone surrogate U+' + codePoint.toString(16).toUpperCase() + + ' is not a scalar value' + ); } return false; } @@ -45094,32 +46324,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /*--------------------------------------------------------------------------*/ function createByte(codePoint, shift) { - return stringFromCharCode(codePoint >> shift & 0x3F | 0x80); + return stringFromCharCode(((codePoint >> shift) & 0x3F) | 0x80); } function encodeCodePoint(codePoint, strict) { - if ((codePoint & 0xFFFFFF80) == 0) { - // 1-byte sequence + 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 + if ((codePoint & 0xFFFFF800) == 0) { // 2-byte sequence + symbol = stringFromCharCode(((codePoint >> 6) & 0x1F) | 0xC0); + } + else if ((codePoint & 0xFFFF0000) == 0) { // 3-byte sequence if (!checkScalarValue(codePoint, strict)) { codePoint = 0xFFFD; } - symbol = stringFromCharCode(codePoint >> 12 & 0x0F | 0xE0); + symbol = stringFromCharCode(((codePoint >> 12) & 0x0F) | 0xE0); symbol += createByte(codePoint, 6); - } else if ((codePoint & 0xFFE00000) == 0) { - // 4-byte sequence - symbol = stringFromCharCode(codePoint >> 18 & 0x07 | 0xF0); + } + 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); + symbol += stringFromCharCode((codePoint & 0x3F) | 0x80); return symbol; } @@ -45184,7 +46412,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 2-byte sequence if ((byte1 & 0xE0) == 0xC0) { byte2 = readContinuationByte(); - codePoint = (byte1 & 0x1F) << 6 | byte2; + codePoint = ((byte1 & 0x1F) << 6) | byte2; if (codePoint >= 0x80) { return codePoint; } else { @@ -45196,7 +46424,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if ((byte1 & 0xF0) == 0xE0) { byte2 = readContinuationByte(); byte3 = readContinuationByte(); - codePoint = (byte1 & 0x0F) << 12 | byte2 << 6 | byte3; + codePoint = ((byte1 & 0x0F) << 12) | (byte2 << 6) | byte3; if (codePoint >= 0x0800) { return checkScalarValue(codePoint, strict) ? codePoint : 0xFFFD; } else { @@ -45209,7 +46437,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol byte2 = readContinuationByte(); byte3 = readContinuationByte(); byte4 = readContinuationByte(); - codePoint = (byte1 & 0x07) << 0x12 | byte2 << 0x0C | byte3 << 0x06 | byte4; + codePoint = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0C) | + (byte3 << 0x06) | byte4; if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) { return codePoint; } @@ -45246,39 +46475,35 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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 () { + 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+ + } 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- + } 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 + } else { // in Rhino or a web browser root.utf8 = utf8; } -})(undefined); + +}(this)); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],226:[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 _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 createKeccakHash = require('keccak'); var secp256k1 = require('secp256k1'); @@ -45991,13 +47216,10 @@ exports.defineProperties = function (self, fields, data) { } } }; - -},{"assert":335,"bn.js":182,"create-hash":190,"ethjs-util":227,"keccak":250,"rlp":275,"safe-buffer":276,"secp256k1":277}],227:[function(require,module,exports){ +},{"assert":349,"bn.js":182,"create-hash":190,"ethjs-util":227,"keccak":250,"rlp":275,"safe-buffer":277,"secp256k1":279}],227:[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'); @@ -46010,7 +47232,7 @@ 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.'); + throw new Error('[ethjs-util] while padding to even, value must be string, is currently ' + typeof a + ', while padToEven.'); } if (a.length % 2) { @@ -46049,7 +47271,7 @@ function intToBuffer(i) { */ 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)) + '\'.'); + throw new Error('[ethjs-util] while getting binary size, method getBinarySize requires input \'str\' to be type String, got \'' + typeof str + '\'.'); } return Buffer.byteLength(str, 'utf8'); @@ -46066,10 +47288,10 @@ function getBinarySize(str) { */ 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)) + '\''); + throw new Error('[ethjs-util] method arrayContainsArray requires input \'superset\' to be an array got type \'' + 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)) + '\''); + throw new Error('[ethjs-util] method arrayContainsArray requires input \'subset\' to be an array got type \'' + typeof subset + '\''); } return subset[Boolean(some) && 'some' || 'every'](function (value) { @@ -46159,10 +47381,10 @@ function fromAscii(stringValue) { */ 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)) + '\''); + throw new Error('[ethjs-util] method getKeys expecting type Array as \'params\' input, got \'' + 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)) + '\'.'); + throw new Error('[ethjs-util] method getKeys expecting type String for input \'key\' got \'' + typeof key + '\'.'); } var result = []; // eslint-disable-line @@ -46216,30 +47438,26 @@ module.exports = { getKeys: getKeys, isHexString: isHexString }; - }).call(this,require("buffer").Buffer) -},{"buffer":401,"is-hex-prefixed":248,"strip-hex-prefix":309}],228:[function(require,module,exports){ -'use strict'; - +},{"buffer":415,"is-hex-prefixed":248,"strip-hex-prefix":311}],228:[function(require,module,exports){ // originally pulled out of simple-peer -module.exports = function getBrowserRTC() { - if (typeof window === 'undefined') return null; +module.exports = function getBrowserRTC () { + if (typeof window === 'undefined') return null var wrtc = { - RTCPeerConnection: window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection, - RTCSessionDescription: window.RTCSessionDescription || window.mozRTCSessionDescription || window.webkitRTCSessionDescription, - RTCIceCandidate: window.RTCIceCandidate || window.mozRTCIceCandidate || window.webkitRTCIceCandidate - }; - if (!wrtc.RTCPeerConnection) return null; - return wrtc; -}; + RTCPeerConnection: window.RTCPeerConnection || window.mozRTCPeerConnection || + window.webkitRTCPeerConnection, + RTCSessionDescription: window.RTCSessionDescription || + window.mozRTCSessionDescription || window.webkitRTCSessionDescription, + RTCIceCandidate: window.RTCIceCandidate || window.mozRTCIceCandidate || + window.webkitRTCIceCandidate + } + if (!wrtc.RTCPeerConnection) return null + return wrtc +} },{}],229:[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; }; - /* global Blob File */ /* @@ -46249,8 +47467,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var isArray = require('isarray'); var toString = Object.prototype.toString; -var withNativeBlob = typeof Blob === 'function' || typeof Blob !== 'undefined' && toString.call(Blob) === '[object BlobConstructor]'; -var withNativeFile = typeof File === 'function' || typeof File !== 'undefined' && toString.call(File) === '[object FileConstructor]'; +var withNativeBlob = typeof Blob === 'function' || + typeof Blob !== 'undefined' && toString.call(Blob) === '[object BlobConstructor]'; +var withNativeFile = typeof File === 'function' || + typeof File !== 'undefined' && toString.call(File) === '[object FileConstructor]'; /** * Module exports. @@ -46267,8 +47487,8 @@ module.exports = hasBinary; * @api public */ -function hasBinary(obj) { - if (!obj || (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object') { +function hasBinary (obj) { + if (!obj || typeof obj !== 'object') { return false; } @@ -46281,7 +47501,11 @@ function hasBinary(obj) { return false; } - if (typeof Buffer === 'function' && Buffer.isBuffer && Buffer.isBuffer(obj) || typeof ArrayBuffer === 'function' && obj instanceof ArrayBuffer || withNativeBlob && obj instanceof Blob || withNativeFile && obj instanceof File) { + if ((typeof Buffer === 'function' && Buffer.isBuffer && Buffer.isBuffer(obj)) || + (typeof ArrayBuffer === 'function' && obj instanceof ArrayBuffer) || + (withNativeBlob && obj instanceof Blob) || + (withNativeFile && obj instanceof File) + ) { return true; } @@ -46300,9 +47524,7 @@ function hasBinary(obj) { } }).call(this,require("buffer").Buffer) -},{"buffer":401,"isarray":230}],230:[function(require,module,exports){ -'use strict'; - +},{"buffer":415,"isarray":230}],230:[function(require,module,exports){ var toString = {}.toString; module.exports = Array.isArray || function (arr) { @@ -46310,7 +47532,6 @@ module.exports = Array.isArray || function (arr) { }; },{}],231:[function(require,module,exports){ -'use strict'; /** * Module exports. @@ -46321,7 +47542,8 @@ module.exports = Array.isArray || function (arr) { */ try { - module.exports = typeof XMLHttpRequest !== 'undefined' && 'withCredentials' in new XMLHttpRequest(); + module.exports = typeof XMLHttpRequest !== 'undefined' && + 'withCredentials' in new XMLHttpRequest(); } catch (err) { // if XMLHttp support is disabled in IE then it will throw // when trying to create @@ -46329,107 +47551,103 @@ try { } },{}],232:[function(require,module,exports){ -'use strict'; - -var Buffer = require('safe-buffer').Buffer; -var Transform = require('stream').Transform; -var inherits = require('inherits'); +'use strict' +var Buffer = require('safe-buffer').Buffer +var Transform = require('stream').Transform +var inherits = require('inherits') -function throwIfNotStringOrBuffer(val, prefix) { +function throwIfNotStringOrBuffer (val, prefix) { if (!Buffer.isBuffer(val) && typeof val !== 'string') { - throw new TypeError(prefix + ' must be a string or a buffer'); + throw new TypeError(prefix + ' must be a string or a buffer') } } -function HashBase(blockSize) { - Transform.call(this); +function HashBase (blockSize) { + Transform.call(this) - this._block = Buffer.allocUnsafe(blockSize); - this._blockSize = blockSize; - this._blockOffset = 0; - this._length = [0, 0, 0, 0]; + this._block = Buffer.allocUnsafe(blockSize) + this._blockSize = blockSize + this._blockOffset = 0 + this._length = [0, 0, 0, 0] - this._finalized = false; + this._finalized = false } -inherits(HashBase, Transform); +inherits(HashBase, Transform) HashBase.prototype._transform = function (chunk, encoding, callback) { - var error = null; + var error = null try { - this.update(chunk, encoding); + this.update(chunk, encoding) } catch (err) { - error = err; + error = err } - callback(error); -}; + callback(error) +} HashBase.prototype._flush = function (callback) { - var error = null; + var error = null try { - this.push(this.digest()); + this.push(this.digest()) } catch (err) { - error = err; + error = err } - callback(error); -}; + 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); + 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; + 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 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; + this._length[j] += carry + carry = (this._length[j] / 0x0100000000) | 0 + if (carry > 0) this._length[j] -= 0x0100000000 * carry } - return this; -}; + return this +} HashBase.prototype._update = function () { - throw new Error('_update is not implemented'); -}; + throw new Error('_update is not implemented') +} HashBase.prototype.digest = function (encoding) { - if (this._finalized) throw new Error('Digest already called'); - this._finalized = true; + if (this._finalized) throw new Error('Digest already called') + this._finalized = true - var digest = this._digest(); - if (encoding !== undefined) digest = digest.toString(encoding); + 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; -}; + this._block.fill(0) + this._blockOffset = 0 + for (var i = 0; i < 4; ++i) this._length[i] = 0 -HashBase.prototype._digest = function () { - throw new Error('_digest is not implemented'); -}; + return digest +} -module.exports = HashBase; +HashBase.prototype._digest = function () { + throw new Error('_digest is not implemented') +} -},{"inherits":247,"safe-buffer":276,"stream":954}],233:[function(require,module,exports){ -'use strict'; +module.exports = HashBase +},{"inherits":247,"safe-buffer":277,"stream":968}],233:[function(require,module,exports){ var hash = exports; hash.utils = require('./hash/utils'); @@ -46469,7 +47687,10 @@ 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); + if (!this.pending) + this.pending = msg; + else + this.pending = this.pending.concat(msg); this.pendingTotal += msg.length; // Enough data, try updating @@ -46479,12 +47700,12 @@ BlockHash.prototype.update = function update(msg, enc) { // 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; + 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) { + for (var i = 0; i < msg.length; i += this._delta32) this._update(msg, i, i + this._delta32); - } } return this; @@ -46500,37 +47721,38 @@ BlockHash.prototype.digest = function digest(enc) { BlockHash.prototype._pad = function pad() { var len = this.pendingTotal; var bytes = this._delta8; - var k = bytes - (len + this.padLength) % bytes; + var k = bytes - ((len + this.padLength) % bytes); var res = new Array(k + this.padLength); res[0] = 0x80; - for (var i = 1; i < k; i++) { + for (var i = 1; i < k; i++) res[i] = 0; - } // Append length + + // Append length len <<= 3; if (this.endian === 'big') { - for (var t = 8; t < this.padLength; t++) { + 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++] = 0; - res[i++] = len >>> 24 & 0xff; - res[i++] = len >>> 16 & 0xff; - res[i++] = len >>> 8 & 0xff; + 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++] = (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++) { + for (t = 8; t < this.padLength; t++) res[i++] = 0; - } } return res; @@ -46543,7 +47765,8 @@ var utils = require('./utils'); var assert = require('minimalistic-assert'); function Hmac(hash, key, enc) { - if (!(this instanceof Hmac)) return new 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; @@ -46556,20 +47779,22 @@ 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(); + 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++) { + for (var i = key.length; i < this.blockSize; i++) key.push(0); - }for (i = 0; i < key.length; i++) { + + for (i = 0; i < key.length; i++) key[i] ^= 0x36; - }this.inner = new this.Hash().update(key); + this.inner = new this.Hash().update(key); // 0x36 ^ 0x5c = 0x6a - for (i = 0; i < key.length; i++) { + for (i = 0; i < key.length; i++) key[i] ^= 0x6a; - }this.outer = new this.Hash().update(key); + this.outer = new this.Hash().update(key); }; Hmac.prototype.update = function update(msg, enc) { @@ -46595,11 +47820,12 @@ var sum32_4 = utils.sum32_4; var BlockHash = common.BlockHash; function RIPEMD160() { - if (!(this instanceof RIPEMD160)) return new RIPEMD160(); + if (!(this instanceof RIPEMD160)) + return new RIPEMD160(); BlockHash.call(this); - this.h = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + this.h = [ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ]; this.endian = 'little'; } utils.inherits(RIPEMD160, BlockHash); @@ -46622,13 +47848,21 @@ RIPEMD160.prototype._update = function update(msg, start) { 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); + 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); + 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); @@ -46644,28 +47878,82 @@ RIPEMD160.prototype._update = function update(msg, start) { }; RIPEMD160.prototype._digest = function digest(enc) { - if (enc === 'hex') return utils.toHex32(this.h, 'little');else return utils.split32(this.h, 'little'); + 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); + 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; + 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]; + 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 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 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]; +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":234,"./utils":244}],237:[function(require,module,exports){ 'use strict'; @@ -46689,13 +47977,19 @@ var sum32_5 = utils.sum32_5; var ft_1 = shaCommon.ft_1; var BlockHash = common.BlockHash; -var sha1_K = [0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xCA62C1D6]; +var sha1_K = [ + 0x5A827999, 0x6ED9EBA1, + 0x8F1BBCDC, 0xCA62C1D6 +]; function SHA1() { - if (!(this instanceof SHA1)) return new SHA1(); + if (!(this instanceof SHA1)) + return new SHA1(); BlockHash.call(this); - this.h = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + this.h = [ + 0x67452301, 0xefcdab89, 0x98badcfe, + 0x10325476, 0xc3d2e1f0 ]; this.W = new Array(80); } @@ -46710,11 +48004,13 @@ SHA1.padLength = 64; SHA1.prototype._update = function _update(msg, start) { var W = this.W; - for (var i = 0; i < 16; i++) { + for (var i = 0; i < 16; i++) W[i] = msg[start + i]; - }for (; i < W.length; 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 a = this.h[0]; var b = this.h[1]; var c = this.h[2]; var d = this.h[3]; @@ -46738,7 +48034,10 @@ SHA1.prototype._update = function _update(msg, start) { }; SHA1.prototype._digest = function digest(enc) { - if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big'); + if (enc === 'hex') + return utils.toHex32(this.h, 'big'); + else + return utils.split32(this.h, 'big'); }; },{"../common":234,"../utils":244,"./common":243}],239:[function(require,module,exports){ @@ -46748,10 +48047,13 @@ var utils = require('../utils'); var SHA256 = require('./256'); function SHA224() { - if (!(this instanceof SHA224)) return new SHA224(); + if (!(this instanceof SHA224)) + return new SHA224(); SHA256.call(this); - this.h = [0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4]; + this.h = [ + 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, + 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ]; } utils.inherits(SHA224, SHA256); module.exports = SHA224; @@ -46763,9 +48065,13 @@ 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'); + if (enc === 'hex') + return utils.toHex32(this.h.slice(0, 7), 'big'); + else + return utils.split32(this.h.slice(0, 7), 'big'); }; + },{"../utils":244,"./256":240}],240:[function(require,module,exports){ 'use strict'; @@ -46786,13 +48092,34 @@ 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]; +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(); + if (!(this instanceof SHA256)) + return new SHA256(); BlockHash.call(this); - this.h = [0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19]; + this.h = [ + 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, + 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 + ]; this.k = sha256_K; this.W = new Array(64); } @@ -46807,11 +48134,12 @@ SHA256.padLength = 64; SHA256.prototype._update = function _update(msg, start) { var W = this.W; - for (var i = 0; i < 16; i++) { + for (var i = 0; i < 16; i++) W[i] = msg[start + i]; - }for (; i < W.length; 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 a = this.h[0]; var b = this.h[1]; var c = this.h[2]; var d = this.h[3]; @@ -46845,7 +48173,10 @@ SHA256.prototype._update = function _update(msg, start) { }; SHA256.prototype._digest = function digest(enc) { - if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big'); + if (enc === 'hex') + return utils.toHex32(this.h, 'big'); + else + return utils.split32(this.h, 'big'); }; },{"../common":234,"../utils":244,"./common":243,"minimalistic-assert":258}],241:[function(require,module,exports){ @@ -46856,10 +48187,19 @@ var utils = require('../utils'); var SHA512 = require('./512'); function SHA384() { - if (!(this instanceof SHA384)) return new 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]; + 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; @@ -46870,7 +48210,10 @@ 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'); + if (enc === 'hex') + return utils.toHex32(this.h.slice(0, 12), 'big'); + else + return utils.split32(this.h.slice(0, 12), 'big'); }; },{"../utils":244,"./512":242}],242:[function(require,module,exports){ @@ -46894,13 +48237,63 @@ 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]; +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(); + 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.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); } @@ -46916,20 +48309,28 @@ SHA512.prototype._prepareBlock = function _prepareBlock(msg, start) { var W = this.W; // 32 x 32bit words - for (var i = 0; i < 32; i++) { + 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 + 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_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_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_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); + 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); } }; @@ -46968,8 +48369,18 @@ SHA512.prototype._update = function _update(msg, start) { 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); + 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); @@ -47015,70 +48426,81 @@ SHA512.prototype._update = function _update(msg, start) { }; SHA512.prototype._digest = function digest(enc) { - if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big'); + 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; + 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; + 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; + 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; + 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 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; + 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 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; + 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 c2_hi = rotr64_hi(xl, xh, 9); // 41 var r = c0_hi ^ c1_hi ^ c2_hi; - if (r < 0) r += 0x100000000; + 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 c2_lo = rotr64_lo(xl, xh, 9); // 41 var r = c0_lo ^ c1_lo ^ c2_lo; - if (r < 0) r += 0x100000000; + if (r < 0) + r += 0x100000000; return r; } @@ -47088,7 +48510,8 @@ function g0_512_hi(xh, xl) { var c2_hi = shr64_hi(xh, xl, 7); var r = c0_hi ^ c1_hi ^ c2_hi; - if (r < 0) r += 0x100000000; + if (r < 0) + r += 0x100000000; return r; } @@ -47098,27 +48521,30 @@ function g0_512_lo(xh, xl) { var c2_lo = shr64_lo(xh, xl, 7); var r = c0_lo ^ c1_lo ^ c2_lo; - if (r < 0) r += 0x100000000; + 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 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; + 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 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; + if (r < 0) + r += 0x100000000; return r; } @@ -47129,19 +48555,22 @@ 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); + 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; + return (x & y) ^ ((~x) & z); } exports.ch32 = ch32; function maj32(x, y, z) { - return x & y ^ x & z ^ y & z; + return (x & y) ^ (x & z) ^ (y & z); } exports.maj32 = maj32; @@ -47161,12 +48590,12 @@ function s1_256(x) { exports.s1_256 = s1_256; function g0_256(x) { - return rotr32(x, 7) ^ rotr32(x, 18) ^ x >>> 3; + 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; + return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10); } exports.g1_256 = g1_256; @@ -47179,8 +48608,10 @@ var inherits = require('inherits'); exports.inherits = inherits; function toArray(msg, enc) { - if (Array.isArray(msg)) return msg.slice(); - if (!msg) return []; + if (Array.isArray(msg)) + return msg.slice(); + if (!msg) + return []; var res = []; if (typeof msg === 'string') { if (!enc) { @@ -47188,19 +48619,21 @@ function toArray(msg, enc) { var c = msg.charCodeAt(i); var hi = c >> 8; var lo = c & 0xff; - if (hi) res.push(hi, lo);else res.push(lo); + 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) { + 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++) { + for (i = 0; i < msg.length; i++) res[i] = msg[i] | 0; - } } return res; } @@ -47208,14 +48641,17 @@ exports.toArray = toArray; function toHex(msg) { var res = ''; - for (var i = 0; i < msg.length; i++) { + for (var i = 0; i < msg.length; i++) res += zero2(msg[i].toString(16)); - }return res; + return res; } exports.toHex = toHex; function htonl(w) { - var res = w >>> 24 | w >>> 8 & 0xff00 | w << 8 & 0xff0000 | (w & 0xff) << 24; + var res = (w >>> 24) | + ((w >>> 8) & 0xff00) | + ((w << 8) & 0xff0000) | + ((w & 0xff) << 24); return res >>> 0; } exports.htonl = htonl; @@ -47224,7 +48660,8 @@ function toHex32(msg, endian) { var res = ''; for (var i = 0; i < msg.length; i++) { var w = msg[i]; - if (endian === 'little') w = htonl(w); + if (endian === 'little') + w = htonl(w); res += zero8(w.toString(16)); } return res; @@ -47232,12 +48669,30 @@ function toHex32(msg, endian) { exports.toHex32 = toHex32; function zero2(word) { - if (word.length === 1) return '0' + word;else return 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; + 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; @@ -47247,7 +48702,10 @@ function join32(msg, start, end, endian) { 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]; + 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; @@ -47260,13 +48718,13 @@ function split32(msg, endian) { 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 + 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 + 2] = (m >>> 16) & 0xff; + res[k + 1] = (m >>> 8) & 0xff; res[k] = m & 0xff; } } @@ -47275,32 +48733,32 @@ function split32(msg, endian) { exports.split32 = split32; function rotr32(w, b) { - return w >>> b | w << 32 - b; + return (w >>> b) | (w << (32 - b)); } exports.rotr32 = rotr32; function rotl32(w, b) { - return w << b | w >>> 32 - b; + return (w << b) | (w >>> (32 - b)); } exports.rotl32 = rotl32; function sum32(a, b) { - return a + b >>> 0; + return (a + b) >>> 0; } exports.sum32 = sum32; function sum32_3(a, b, c) { - return a + b + c >>> 0; + return (a + b + c) >>> 0; } exports.sum32_3 = sum32_3; function sum32_4(a, b, c, d) { - return a + b + c + d >>> 0; + 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; + return (a + b + c + d + e) >>> 0; } exports.sum32_5 = sum32_5; @@ -47308,7 +48766,7 @@ function sum64(buf, pos, ah, al) { var bh = buf[pos]; var bl = buf[pos + 1]; - var lo = al + bl >>> 0; + var lo = (al + bl) >>> 0; var hi = (lo < al ? 1 : 0) + ah + bh; buf[pos] = hi >>> 0; buf[pos + 1] = lo; @@ -47316,7 +48774,7 @@ function sum64(buf, pos, ah, al) { exports.sum64 = sum64; function sum64_hi(ah, al, bh, bl) { - var lo = al + bl >>> 0; + var lo = (al + bl) >>> 0; var hi = (lo < al ? 1 : 0) + ah + bh; return hi >>> 0; } @@ -47331,11 +48789,11 @@ 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; + lo = (lo + bl) >>> 0; carry += lo < al ? 1 : 0; - lo = lo + cl >>> 0; + lo = (lo + cl) >>> 0; carry += lo < cl ? 1 : 0; - lo = lo + dl >>> 0; + lo = (lo + dl) >>> 0; carry += lo < dl ? 1 : 0; var hi = ah + bh + ch + dh + carry; @@ -47352,13 +48810,13 @@ 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; + lo = (lo + bl) >>> 0; carry += lo < al ? 1 : 0; - lo = lo + cl >>> 0; + lo = (lo + cl) >>> 0; carry += lo < cl ? 1 : 0; - lo = lo + dl >>> 0; + lo = (lo + dl) >>> 0; carry += lo < dl ? 1 : 0; - lo = lo + el >>> 0; + lo = (lo + el) >>> 0; carry += lo < el ? 1 : 0; var hi = ah + bh + ch + dh + eh + carry; @@ -47374,13 +48832,13 @@ function sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) { exports.sum64_5_lo = sum64_5_lo; function rotr64_hi(ah, al, num) { - var r = al << 32 - num | ah >>> 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; + var r = (ah << (32 - num)) | (al >>> num); return r >>> 0; } exports.rotr64_lo = rotr64_lo; @@ -47391,7 +48849,7 @@ function shr64_hi(ah, al, num) { exports.shr64_hi = shr64_hi; function shr64_lo(ah, al, num) { - var r = ah << 32 - num | al >>> num; + var r = (ah << (32 - num)) | (al >>> num); return r >>> 0; } exports.shr64_lo = shr64_lo; @@ -47404,7 +48862,8 @@ var utils = require('minimalistic-crypto-utils'); var assert = require('minimalistic-assert'); function HmacDRBG(options) { - if (!(this instanceof HmacDRBG)) return new HmacDRBG(options); + if (!(this instanceof HmacDRBG)) + return new HmacDRBG(options); this.hash = options.hash; this.predResist = !!options.predResist; @@ -47419,7 +48878,8 @@ function HmacDRBG(options) { 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'); + assert(entropy.length >= (this.minEntropy / 8), + 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits'); this._init(entropy, nonce, pers); } module.exports = HmacDRBG; @@ -47436,7 +48896,7 @@ HmacDRBG.prototype._init = function init(entropy, nonce, pers) { this._update(seed); this._reseed = 1; - this.reseedInterval = 0x1000000000000; // 2^48 + this.reseedInterval = 0x1000000000000; // 2^48 }; HmacDRBG.prototype._hmac = function hmac() { @@ -47444,13 +48904,21 @@ HmacDRBG.prototype._hmac = function hmac() { }; HmacDRBG.prototype._update = function update(seed) { - var kmac = this._hmac().update(this.V).update([0x00]); - if (seed) kmac = kmac.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; + if (!seed) + return; - this.K = this._hmac().update(this.V).update([0x01]).update(seed).digest(); + this.K = this._hmac() + .update(this.V) + .update([ 0x01 ]) + .update(seed) + .digest(); this.V = this._hmac().update(this.V).digest(); }; @@ -47465,14 +48933,16 @@ HmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) { entropy = utils.toArray(entropy, entropyEnc); add = utils.toArray(add, addEnc); - assert(entropy.length >= this.minEntropy / 8, 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits'); + 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'); + if (this._reseed > this.reseedInterval) + throw new Error('Reseed is required'); // Optional encoding if (typeof enc !== 'string') { @@ -47500,25 +48970,21 @@ HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) { }; },{"hash.js":233,"minimalistic-assert":258,"minimalistic-crypto-utils":259}],246:[function(require,module,exports){ -"use strict"; var indexOf = [].indexOf; -module.exports = function (arr, obj) { +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; }; - },{}],247:[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.super_ = superCtor ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, @@ -47531,19 +48997,15 @@ if (typeof Object.create === 'function') { } 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; - }; + ctor.super_ = superCtor + var TempCtor = function () {} + TempCtor.prototype = superCtor.prototype + ctor.prototype = new TempCtor() + ctor.prototype.constructor = ctor + } } },{}],248:[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 @@ -47552,486 +49014,473 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol */ 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."); + throw new Error("[is-hex-prefixed] value must be type 'string', is currently type " + (typeof str) + ", while checking isHexPrefixed."); } return str.slice(0, 2) === '0x'; -}; +} },{}],249:[function(require,module,exports){ arguments[4][230][0].apply(exports,arguments) },{"dup":230}],250:[function(require,module,exports){ -'use strict'; - -module.exports = require('./lib/api')(require('./lib/keccak')); +'use strict' +module.exports = require('./lib/api')(require('./lib/keccak')) },{"./lib/api":251,"./lib/keccak":255}],251:[function(require,module,exports){ -'use strict'; - -var createKeccak = require('./keccak'); -var createShake = require('./shake'); +'use strict' +var createKeccak = require('./keccak') +var createShake = require('./shake') module.exports = function (KeccakState) { - var Keccak = createKeccak(KeccakState); - var Shake = createShake(KeccakState); + var Keccak = createKeccak(KeccakState) + var Shake = createShake(KeccakState) return function (algorithm, options) { - var hash = typeof algorithm === 'string' ? algorithm.toLowerCase() : algorithm; + 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); + 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) - default: - throw new Error('Invald algorithm: ' + algorithm); + 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":252,"./shake":253}],252:[function(require,module,exports){ -'use strict'; - -var Buffer = require('safe-buffer').Buffer; -var Transform = require('stream').Transform; -var inherits = require('inherits'); +'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); + 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._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; + this._state = new KeccakState() + this._state.initialize(rate, capacity) + this._finalized = false } - inherits(Keccak, Transform); + inherits(Keccak, Transform) Keccak.prototype._transform = function (chunk, encoding, callback) { - var error = null; + var error = null try { - this.update(chunk, encoding); + this.update(chunk, encoding) } catch (err) { - error = err; + error = err } - callback(error); - }; + callback(error) + } Keccak.prototype._flush = function (callback) { - var error = null; + var error = null try { - this.push(this.digest()); + this.push(this.digest()) } catch (err) { - error = err; + error = err } - callback(error); - }; + 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); + 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); + this._state.absorb(data) - return this; - }; + return this + } Keccak.prototype.digest = function (encoding) { - if (this._finalized) throw new Error('Digest already called'); - this._finalized = true; + 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); + 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(); + this._resetState() - return digest; - }; + return digest + } // remove result from memory Keccak.prototype._resetState = function () { - this._state.initialize(this._rate, this._capacity); - return this; - }; + 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; + 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; -}; + return clone + } -},{"inherits":247,"safe-buffer":276,"stream":954}],253:[function(require,module,exports){ -'use strict'; + return Keccak +} -var Buffer = require('safe-buffer').Buffer; -var Transform = require('stream').Transform; -var inherits = require('inherits'); +},{"inherits":247,"safe-buffer":277,"stream":968}],253:[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); + function Shake (rate, capacity, delimitedSuffix, options) { + Transform.call(this, options) - this._rate = rate; - this._capacity = capacity; - this._delimitedSuffix = delimitedSuffix; - this._options = 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; + this._state = new KeccakState() + this._state.initialize(rate, capacity) + this._finalized = false } - inherits(Shake, Transform); + inherits(Shake, Transform) Shake.prototype._transform = function (chunk, encoding, callback) { - var error = null; + var error = null try { - this.update(chunk, encoding); + this.update(chunk, encoding) } catch (err) { - error = err; + error = err } - callback(error); - }; + callback(error) + } - Shake.prototype._flush = function () {}; + Shake.prototype._flush = function () {} Shake.prototype._read = function (size) { - this.push(this.squeeze(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); + 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); + this._state.absorb(data) - return this; - }; + return this + } Shake.prototype.squeeze = function (dataByteLength, encoding) { if (!this._finalized) { - this._finalized = true; - this._state.absorbLastFewBits(this._delimitedSuffix); + this._finalized = true + this._state.absorbLastFewBits(this._delimitedSuffix) } - var data = this._state.squeeze(dataByteLength); - if (encoding !== undefined) data = data.toString(encoding); + var data = this._state.squeeze(dataByteLength) + if (encoding !== undefined) data = data.toString(encoding) - return data; - }; + return data + } Shake.prototype._resetState = function () { - this._state.initialize(this._rate, this._capacity); - return this; - }; + 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; - }; + var clone = new Shake(this._rate, this._capacity, this._delimitedSuffix, this._options) + this._state.copy(clone._state) + clone._finalized = this._finalized - return Shake; -}; + return clone + } -},{"inherits":247,"safe-buffer":276,"stream":954}],254:[function(require,module,exports){ -'use strict'; + return Shake +} -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]; +},{"inherits":247,"safe-buffer":277,"stream":968}],254:[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; + 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; + 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; + 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]; + s[0] ^= P1600_ROUND_CONSTANTS[round * 2] + s[1] ^= P1600_ROUND_CONSTANTS[round * 2 + 1] } -}; +} },{}],255:[function(require,module,exports){ -'use strict'; - -var Buffer = require('safe-buffer').Buffer; -var keccakState = require('./keccak-state-unroll'); +'use strict' +var Buffer = require('safe-buffer').Buffer +var keccakState = require('./keccak-state-unroll') -function Keccak() { +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.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; + 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; -}; + 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; + 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; + 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; -}; + 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); + if (!this.squeezing) this.absorbLastFewBits(0x01) - var output = Buffer.alloc(length); + 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; + 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; + keccakState.p1600(this.state) + this.count = 0 } } - return output; -}; + 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; -}; + 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; +module.exports = Keccak -},{"./keccak-state-unroll":254,"safe-buffer":276}],256:[function(require,module,exports){ +},{"./keccak-state-unroll":254,"safe-buffer":277}],256:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -48052,168 +49501,166 @@ function createLogger() /* title */{ } exports.default = createLogger; - },{}],257:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var inherits = require('inherits'); -var HashBase = require('hash-base'); +'use strict' +var inherits = require('inherits') +var HashBase = require('hash-base') -var ARRAY16 = new Array(16); +var ARRAY16 = new Array(16) -function MD5() { - HashBase.call(this, 64); +function MD5 () { + HashBase.call(this, 64) // state - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; + this._a = 0x67452301 + this._b = 0xefcdab89 + this._c = 0x98badcfe + this._d = 0x10325476 } -inherits(MD5, HashBase); +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; -}; + 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; + 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, 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(); + 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; -}; + 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 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 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 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 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; +function fnI (a, b, c, d, m, k, s) { + return (rotl((a + ((c ^ (b | (~d)))) + m + k) | 0, s) + b) | 0 } -module.exports = MD5; +module.exports = MD5 }).call(this,require("buffer").Buffer) -},{"buffer":401,"hash-base":232,"inherits":247}],258:[function(require,module,exports){ -'use strict'; - +},{"buffer":415,"hash-base":232,"inherits":247}],258:[function(require,module,exports){ module.exports = assert; function assert(val, msg) { - if (!val) throw new Error(msg || 'Assertion failed'); + 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); + if (l != r) + throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r)); }; },{}],259:[function(require,module,exports){ @@ -48222,26 +49669,31 @@ assert.equal = function assertEqual(l, r, msg) { var utils = exports; function toArray(msg, enc) { - if (Array.isArray(msg)) return msg.slice(); - if (!msg) return []; + if (Array.isArray(msg)) + return msg.slice(); + if (!msg) + return []; var res = []; if (typeof msg !== 'string') { - for (var i = 0; i < msg.length; i++) { + for (var i = 0; i < msg.length; i++) res[i] = msg[i] | 0; - }return res; + 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) { + 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); + if (hi) + res.push(hi, lo); + else + res.push(lo); } } return res; @@ -48249,27 +49701,29 @@ function toArray(msg, enc) { utils.toArray = toArray; function zero2(word) { - if (word.length === 1) return '0' + word;else return 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++) { + for (var i = 0; i < msg.length; i++) res += zero2(msg[i].toString(16)); - }return res; + return res; } utils.toHex = toHex; utils.encode = function encode(arr, enc) { - if (enc === 'hex') return toHex(arr);else return arr; + if (enc === 'hex') + return toHex(arr); + else + return arr; }; },{}],260:[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; }; - /** * Helpers. */ @@ -48294,15 +49748,18 @@ var y = d * 365.25; * @api public */ -module.exports = function (val, options) { +module.exports = function(val, options) { options = options || {}; - var type = typeof val === 'undefined' ? 'undefined' : _typeof(val); + var type = typeof val; if (type === 'string' && val.length > 0) { return parse(val); } else if (type === 'number' && isNaN(val) === false) { return options.long ? fmtLong(val) : fmtShort(val); } - throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(val)); + throw new Error( + 'val is not a non-empty string or a valid number. val=' + + JSON.stringify(val) + ); }; /** @@ -48318,7 +49775,9 @@ function parse(str) { if (str.length > 100) { return; } - var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str); + var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec( + str + ); if (!match) { return; } @@ -48397,7 +49856,11 @@ function fmtShort(ms) { */ function fmtLong(ms) { - return plural(ms, d, 'day') || plural(ms, h, 'hour') || plural(ms, m, 'minute') || plural(ms, s, 'second') || ms + ' ms'; + return plural(ms, d, 'day') || + plural(ms, h, 'hour') || + plural(ms, m, 'minute') || + plural(ms, s, 'second') || + ms + ' ms'; } /** @@ -48415,95 +49878,95 @@ function plural(ms, n, name) { } },{}],261:[function(require,module,exports){ -'use strict'; - /** * Compiles a querystring * Returns string representation of the object * * @param {Object} * @api private - */ - -exports.encode = function (obj) { - var str = ''; - - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - if (str.length) str += '&'; - str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]); - } - } - - return str; -}; - + */ + +exports.encode = function (obj) { + var str = ''; + + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + if (str.length) str += '&'; + str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]); + } + } + + return str; +}; + /** * Parses a simple querystring into an object * * @param {String} qs * @api private - */ - -exports.decode = function (qs) { - var qry = {}; - var pairs = qs.split('&'); - for (var i = 0, l = pairs.length; i < l; i++) { - var pair = pairs[i].split('='); - qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]); - } - return qry; -}; + */ + +exports.decode = function(qs){ + var qry = {}; + var pairs = qs.split('&'); + for (var i = 0, l = pairs.length; i < l; i++) { + var pair = pairs[i].split('='); + qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]); + } + return qry; +}; },{}],262:[function(require,module,exports){ -'use strict'; - /** * Parses an URI * * @author Steven Levithan (MIT license) * @api private - */ - -var re = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/; - -var parts = ['source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor']; - -module.exports = function parseuri(str) { - var src = str, - b = str.indexOf('['), - e = str.indexOf(']'); - - if (b != -1 && e != -1) { - str = str.substring(0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length); - } - - var m = re.exec(str || ''), - uri = {}, - i = 14; - - while (i--) { - uri[parts[i]] = m[i] || ''; - } - - if (b != -1 && e != -1) { - uri.source = src; - uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':'); - uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/;/g, ':'); - uri.ipv6uri = true; - } - - return uri; -}; + */ + +var re = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/; + +var parts = [ + 'source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor' +]; + +module.exports = function parseuri(str) { + var src = str, + b = str.indexOf('['), + e = str.indexOf(']'); + + if (b != -1 && e != -1) { + str = str.substring(0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length); + } + + var m = re.exec(str || ''), + uri = {}, + i = 14; + + while (i--) { + uri[parts[i]] = m[i] || ''; + } + + if (b != -1 && e != -1) { + uri.source = src; + uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':'); + uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/;/g, ':'); + uri.ipv6uri = true; + } + + return uri; +}; },{}],263:[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) { +if (!process.version || + process.version.indexOf('v0.') === 0 || + process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { module.exports = { nextTick: nextTick }; } else { - module.exports = process; + module.exports = process } function nextTick(fn, arg1, arg2, arg3) { @@ -48513,78 +49976,78 @@ function nextTick(fn, arg1, arg2, arg3) { 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); - }); + 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":911}],264:[function(require,module,exports){ +},{"_process":925}],264:[function(require,module,exports){ (function (process,global){ -'use strict'; +'use strict' -function oldBrowser() { - throw new Error('Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11'); +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; +var Buffer = require('safe-buffer').Buffer +var crypto = global.crypto || global.msCrypto if (crypto && crypto.getRandomValues) { - module.exports = randomBytes; + module.exports = randomBytes } else { - module.exports = oldBrowser; + module.exports = oldBrowser } -function randomBytes(size, cb) { +function randomBytes (size, cb) { // phantomjs needs to throw - if (size > 65536) throw new Error('requested too many random bytes'); + 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); + 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); + 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); + var bytes = Buffer.from(rawBytes.buffer) if (typeof cb === 'function') { return process.nextTick(function () { - cb(null, bytes); - }); + cb(null, bytes) + }) } - return bytes; + return bytes } }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"_process":911,"safe-buffer":276}],265:[function(require,module,exports){ +},{"_process":925,"safe-buffer":277}],265:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -48669,7 +50132,7 @@ Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { // because otherwise some prototype manipulation in // userland will fail enumerable: false, - get: function get() { + get: function () { return this._writableState.highWaterMark; } }); @@ -48690,13 +50153,13 @@ function onEndNT(self) { } Object.defineProperty(Duplex.prototype, 'destroyed', { - get: function get() { + get: function () { if (this._readableState === undefined || this._writableState === undefined) { return false; } return this._readableState.destroyed && this._writableState.destroyed; }, - set: function set(value) { + set: function (value) { // we ignore the value if the stream // has not been initialized yet if (this._readableState === undefined || this._writableState === undefined) { @@ -48716,7 +50179,6 @@ Duplex.prototype._destroy = function (err, cb) { pna.nextTick(cb, err); }; - },{"./_stream_readable":267,"./_stream_writable":269,"core-util-is":189,"inherits":247,"process-nextick-args":263}],266:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // @@ -48765,7 +50227,6 @@ function PassThrough(options) { PassThrough.prototype._transform = function (chunk, encoding, cb) { cb(null, chunk); }; - },{"./_stream_transform":268,"core-util-is":189,"inherits":247}],267:[function(require,module,exports){ (function (process,global){ // Copyright Joyent, Inc. and other Node contributors. @@ -48811,7 +50272,7 @@ Readable.ReadableState = ReadableState; /**/ var EE = require('events').EventEmitter; -var EElistenerCount = function EElistenerCount(emitter, type) { +var EElistenerCount = function (emitter, type) { return emitter.listeners(type).length; }; /**/ @@ -48844,7 +50305,7 @@ var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { - debug = function debug() {}; + debug = function () {}; } /**/ @@ -48965,13 +50426,13 @@ function Readable(options) { } Object.defineProperty(Readable.prototype, 'destroyed', { - get: function get() { + get: function () { if (this._readableState === undefined) { return false; } return this._readableState.destroyed; }, - set: function set(value) { + set: function (value) { // we ignore the value if the stream // has not been initialized yet if (!this._readableState) { @@ -49651,7 +51112,7 @@ Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { // because otherwise some prototype manipulation in // userland will fail enumerable: false, - get: function get() { + get: function () { return this._readableState.highWaterMark; } }); @@ -49787,9 +51248,8 @@ function indexOf(xs, x) { } return -1; } - }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./_stream_duplex":265,"./internal/streams/BufferList":270,"./internal/streams/destroy":271,"./internal/streams/stream":272,"_process":911,"core-util-is":189,"events":861,"inherits":247,"isarray":249,"process-nextick-args":263,"safe-buffer":276,"string_decoder/":308,"util":369}],268:[function(require,module,exports){ +},{"./_stream_duplex":265,"./internal/streams/BufferList":270,"./internal/streams/destroy":271,"./internal/streams/stream":272,"_process":925,"core-util-is":189,"events":875,"inherits":247,"isarray":249,"process-nextick-args":263,"safe-buffer":277,"string_decoder/":310,"util":383}],268:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -50004,7 +51464,6 @@ function done(stream, er, data) { return stream.push(null); } - },{"./_stream_duplex":265,"core-util-is":189,"inherits":247}],269:[function(require,module,exports){ (function (process,global,setImmediate){ // Copyright Joyent, Inc. and other Node contributors. @@ -50243,7 +51702,7 @@ 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) { + value: function (object) { if (realHasInstance.call(this, object)) return true; if (this !== Writable) return false; @@ -50251,7 +51710,7 @@ if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.protot } }); } else { - realHasInstance = function realHasInstance(object) { + realHasInstance = function (object) { return object instanceof this; }; } @@ -50382,7 +51841,7 @@ Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { // because otherwise some prototype manipulation in // userland will fail enumerable: false, - get: function get() { + get: function () { return this._writableState.highWaterMark; } }); @@ -50669,13 +52128,13 @@ function onCorkedFinish(corkReq, state, err) { } Object.defineProperty(Writable.prototype, 'destroyed', { - get: function get() { + get: function () { if (this._writableState === undefined) { return false; } return this._writableState.destroyed; }, - set: function set(value) { + set: function (value) { // we ignore the value if the stream // has not been initialized yet if (!this._writableState) { @@ -50694,16 +52153,11 @@ 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 : {},require("timers").setImmediate) -},{"./_stream_duplex":265,"./internal/streams/destroy":271,"./internal/streams/stream":272,"_process":911,"core-util-is":189,"inherits":247,"process-nextick-args":263,"safe-buffer":276,"timers":958,"util-deprecate":311}],270:[function(require,module,exports){ +},{"./_stream_duplex":265,"./internal/streams/destroy":271,"./internal/streams/stream":272,"_process":925,"core-util-is":189,"inherits":247,"process-nextick-args":263,"safe-buffer":277,"timers":972,"util-deprecate":313}],270:[function(require,module,exports){ 'use strict'; -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Buffer = require('safe-buffer').Buffer; var util = require('util'); @@ -50780,8 +52234,7 @@ if (util && util.inspect && util.inspect.custom) { return this.constructor.name + ' ' + obj; }; } - -},{"safe-buffer":276,"util":369}],271:[function(require,module,exports){ +},{"safe-buffer":277,"util":383}],271:[function(require,module,exports){ 'use strict'; /**/ @@ -50856,15 +52309,10 @@ module.exports = { destroy: destroy, undestroy: undestroy }; - },{"process-nextick-args":263}],272:[function(require,module,exports){ -'use strict'; - module.exports = require('events').EventEmitter; -},{"events":861}],273:[function(require,module,exports){ -'use strict'; - +},{"events":875}],273:[function(require,module,exports){ exports = module.exports = require('./lib/_stream_readable.js'); exports.Stream = exports; exports.Readable = exports; @@ -50874,153 +52322,173 @@ exports.Transform = require('./lib/_stream_transform.js'); exports.PassThrough = require('./lib/_stream_passthrough.js'); },{"./lib/_stream_duplex.js":265,"./lib/_stream_passthrough.js":266,"./lib/_stream_readable.js":267,"./lib/_stream_transform.js":268,"./lib/_stream_writable.js":269}],274:[function(require,module,exports){ -'use strict'; - -var Buffer = require('buffer').Buffer; -var inherits = require('inherits'); -var HashBase = require('hash-base'); - -var ARRAY16 = new Array(16); - -var zl = [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]; +'use strict' +var Buffer = require('buffer').Buffer +var inherits = require('inherits') +var HashBase = require('hash-base') + +var ARRAY16 = new Array(16) + +var zl = [ + 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 zr = [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 zr = [ + 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 sl = [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 sl = [ + 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 sr = [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]; +var sr = [ + 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 +] -var hl = [0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e]; -var hr = [0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000]; +var hl = [0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e] +var hr = [0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000] -function RIPEMD160() { - HashBase.call(this, 64); +function RIPEMD160 () { + HashBase.call(this, 64) // state - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; - this._e = 0xc3d2e1f0; + this._a = 0x67452301 + this._b = 0xefcdab89 + this._c = 0x98badcfe + this._d = 0x10325476 + this._e = 0xc3d2e1f0 } -inherits(RIPEMD160, HashBase); +inherits(RIPEMD160, HashBase) RIPEMD160.prototype._update = function () { - var words = ARRAY16; - for (var j = 0; j < 16; ++j) { - words[j] = this._block.readInt32LE(j * 4); - }var al = this._a | 0; - var bl = this._b | 0; - var cl = this._c | 0; - var dl = this._d | 0; - var el = this._e | 0; - - var ar = this._a | 0; - var br = this._b | 0; - var cr = this._c | 0; - var dr = this._d | 0; - var er = this._e | 0; + var words = ARRAY16 + for (var j = 0; j < 16; ++j) words[j] = this._block.readInt32LE(j * 4) + + var al = this._a | 0 + var bl = this._b | 0 + var cl = this._c | 0 + var dl = this._d | 0 + var el = this._e | 0 + + var ar = this._a | 0 + var br = this._b | 0 + var cr = this._c | 0 + var dr = this._d | 0 + var er = this._e | 0 // computation for (var i = 0; i < 80; i += 1) { - var tl; - var tr; + var tl + var tr if (i < 16) { - tl = fn1(al, bl, cl, dl, el, words[zl[i]], hl[0], sl[i]); - tr = fn5(ar, br, cr, dr, er, words[zr[i]], hr[0], sr[i]); + tl = fn1(al, bl, cl, dl, el, words[zl[i]], hl[0], sl[i]) + tr = fn5(ar, br, cr, dr, er, words[zr[i]], hr[0], sr[i]) } else if (i < 32) { - tl = fn2(al, bl, cl, dl, el, words[zl[i]], hl[1], sl[i]); - tr = fn4(ar, br, cr, dr, er, words[zr[i]], hr[1], sr[i]); + tl = fn2(al, bl, cl, dl, el, words[zl[i]], hl[1], sl[i]) + tr = fn4(ar, br, cr, dr, er, words[zr[i]], hr[1], sr[i]) } else if (i < 48) { - tl = fn3(al, bl, cl, dl, el, words[zl[i]], hl[2], sl[i]); - tr = fn3(ar, br, cr, dr, er, words[zr[i]], hr[2], sr[i]); + tl = fn3(al, bl, cl, dl, el, words[zl[i]], hl[2], sl[i]) + tr = fn3(ar, br, cr, dr, er, words[zr[i]], hr[2], sr[i]) } else if (i < 64) { - tl = fn4(al, bl, cl, dl, el, words[zl[i]], hl[3], sl[i]); - tr = fn2(ar, br, cr, dr, er, words[zr[i]], hr[3], sr[i]); - } else { - // if (i<80) { - tl = fn5(al, bl, cl, dl, el, words[zl[i]], hl[4], sl[i]); - tr = fn1(ar, br, cr, dr, er, words[zr[i]], hr[4], sr[i]); + tl = fn4(al, bl, cl, dl, el, words[zl[i]], hl[3], sl[i]) + tr = fn2(ar, br, cr, dr, er, words[zr[i]], hr[3], sr[i]) + } else { // if (i<80) { + tl = fn5(al, bl, cl, dl, el, words[zl[i]], hl[4], sl[i]) + tr = fn1(ar, br, cr, dr, er, words[zr[i]], hr[4], sr[i]) } - al = el; - el = dl; - dl = rotl(cl, 10); - cl = bl; - bl = tl; + al = el + el = dl + dl = rotl(cl, 10) + cl = bl + bl = tl - ar = er; - er = dr; - dr = rotl(cr, 10); - cr = br; - br = tr; + ar = er + er = dr + dr = rotl(cr, 10) + cr = br + br = tr } // update 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; -}; + 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; + 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, 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(); + 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 = Buffer.alloc ? Buffer.alloc(20) : 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; + var buffer = Buffer.alloc ? Buffer.alloc(20) : 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 fn1(a, b, c, d, e, m, k, s) { - return rotl(a + (b ^ c ^ d) + m + k | 0, s) + e | 0; +function rotl (x, n) { + return (x << n) | (x >>> (32 - n)) } -function fn2(a, b, c, d, e, m, k, s) { - return rotl(a + (b & c | ~b & d) + m + k | 0, s) + e | 0; +function fn1 (a, b, c, d, e, m, k, s) { + return (rotl((a + (b ^ c ^ 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 fn2 (a, b, c, d, e, m, k, s) { + return (rotl((a + ((b & c) | ((~b) & 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 fn3 (a, b, c, d, e, m, k, s) { + return (rotl((a + ((b | (~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; +function fn4 (a, b, c, d, e, m, k, s) { + return (rotl((a + ((b & d) | (c & (~d))) + m + k) | 0, s) + e) | 0 } -module.exports = RIPEMD160; +function fn5 (a, b, c, d, e, m, k, s) { + return (rotl((a + (b ^ (c | (~d))) + m + k) | 0, s) + e) | 0 +} -},{"buffer":401,"hash-base":232,"inherits":247}],275:[function(require,module,exports){ -'use strict'; +module.exports = RIPEMD160 -var assert = require('assert'); -var Buffer = require('safe-buffer').Buffer; +},{"buffer":415,"hash-base":232,"inherits":247}],275:[function(require,module,exports){ +const assert = require('assert') +const Buffer = require('safe-buffer').Buffer /** * 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 @@ -51030,38 +52498,38 @@ var Buffer = require('safe-buffer').Buffer; **/ exports.encode = function (input) { if (input instanceof Array) { - var output = []; + var output = [] for (var i = 0; i < input.length; i++) { - output.push(exports.encode(input[i])); + output.push(exports.encode(input[i])) } - var buf = Buffer.concat(output); - return Buffer.concat([encodeLength(buf.length, 192), buf]); + var buf = Buffer.concat(output) + return Buffer.concat([encodeLength(buf.length, 192), buf]) } else { - input = toBuffer(input); + input = toBuffer(input) if (input.length === 1 && input[0] < 128) { - return input; + return input } else { - return Buffer.concat([encodeLength(input.length, 128), input]); + return Buffer.concat([encodeLength(input.length, 128), input]) } } -}; +} -function safeParseInt(v, base) { +function safeParseInt (v, base) { if (v.slice(0, 2) === '00') { - throw new Error('invalid RLP: extra zeros'); + throw (new Error('invalid RLP: extra zeros')) } - return parseInt(v, base); + return parseInt(v, base) } -function encodeLength(len, offset) { +function encodeLength (len, offset) { if (len < 56) { - return Buffer.from([len + offset]); + return Buffer.from([len + offset]) } else { - var hexLength = intToHex(len); - var lLength = hexLength.length / 2; - var firstByte = intToHex(offset + 55 + lLength); - return Buffer.from(firstByte + hexLength, 'hex'); + var hexLength = intToHex(len) + var lLength = hexLength.length / 2 + var firstByte = intToHex(offset + 55 + lLength) + return Buffer.from(firstByte + hexLength, 'hex') } } @@ -51072,1891 +52540,4527 @@ function encodeLength(len, offset) { **/ exports.decode = function (input, stream) { if (!input || input.length === 0) { - return Buffer.from([]); + return Buffer.from([]) } - input = toBuffer(input); - var decoded = _decode(input); + input = toBuffer(input) + var decoded = _decode(input) if (stream) { - return decoded; + return decoded } - assert.equal(decoded.remainder.length, 0, 'invalid remainder'); - return decoded.data; -}; + assert.equal(decoded.remainder.length, 0, 'invalid remainder') + return decoded.data +} exports.getLength = function (input) { if (!input || input.length === 0) { - return Buffer.from([]); + return Buffer.from([]) } - input = toBuffer(input); - var firstByte = input[0]; + input = toBuffer(input) + var firstByte = input[0] if (firstByte <= 0x7f) { - return input.length; + return input.length } else if (firstByte <= 0xb7) { - return firstByte - 0x7f; + return firstByte - 0x7f } else if (firstByte <= 0xbf) { - return firstByte - 0xb6; + return firstByte - 0xb6 } else if (firstByte <= 0xf7) { // a list between 0-55 bytes long - return firstByte - 0xbf; + 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; + 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]; +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; + length = firstByte - 0x7f // set 0x80 null to 0 if (firstByte === 0x80) { - data = Buffer.from([]); + data = Buffer.from([]) } else { - data = input.slice(1, length); + data = input.slice(1, length) } if (length === 2 && data[0] < 0x80) { - throw new Error('invalid rlp encoding: byte must be less 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); + 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'); + 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); + length = firstByte - 0xbf + innerRemainder = input.slice(1, length) while (innerRemainder.length) { - d = _decode(innerRemainder); - decoded.push(d.data); - innerRemainder = d.remainder; + 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; + 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'); + throw new Error('invalid rlp: total length is larger than the data') } - innerRemainder = input.slice(llength, totalLength); + innerRemainder = input.slice(llength, totalLength) if (innerRemainder.length === 0) { - throw new Error('invalid rlp, List has a invalid length'); + throw new Error('invalid rlp, List has a invalid length') } while (innerRemainder.length) { - d = _decode(innerRemainder); - decoded.push(d.data); - innerRemainder = d.remainder; + 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'; +function isHexPrefixed (str) { + return str.slice(0, 2) === '0x' } // Removes 0x from a given String -function stripHexPrefix(str) { +function stripHexPrefix (str) { if (typeof str !== 'string') { - return str; + return str } - return isHexPrefixed(str) ? str.slice(2) : str; + return isHexPrefixed(str) ? str.slice(2) : str } -function intToHex(i) { - var hex = i.toString(16); +function intToHex (i) { + var hex = i.toString(16) if (hex.length % 2) { - hex = '0' + hex; + hex = '0' + hex } - return hex; + return hex } -function padToEven(a) { - if (a.length % 2) a = '0' + a; - return a; +function padToEven (a) { + if (a.length % 2) a = '0' + a + return a } -function intToBuffer(i) { - var hex = intToHex(i); - return Buffer.from(hex, 'hex'); +function intToBuffer (i) { + var hex = intToHex(i) + return Buffer.from(hex, 'hex') } -function toBuffer(v) { +function toBuffer (v) { if (!Buffer.isBuffer(v)) { if (typeof v === 'string') { if (isHexPrefixed(v)) { - v = Buffer.from(padToEven(stripHexPrefix(v)), 'hex'); + v = Buffer.from(padToEven(stripHexPrefix(v)), 'hex') } else { - v = Buffer.from(v); + v = Buffer.from(v) } } else if (typeof v === 'number') { if (!v) { - v = Buffer.from([]); + v = Buffer.from([]) } else { - v = intToBuffer(v); + v = intToBuffer(v) } } else if (v === null || v === undefined) { - v = Buffer.from([]); + v = Buffer.from([]) } else if (v.toArray) { // converts a BN to a Buffer - v = Buffer.from(v.toArray()); + v = Buffer.from(v.toArray()) } else { - throw new Error('invalid type'); + throw new Error('invalid type') } } - return v; + return v } -},{"assert":335,"safe-buffer":276}],276:[function(require,module,exports){ +},{"assert":349,"safe-buffer":277}],276:[function(require,module,exports){ +/* + * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ 'use strict'; -/* eslint-disable node/no-deprecated-api */ -var buffer = require('buffer'); -var Buffer = buffer.Buffer; +var SDPUtils = require('sdp'); -// 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 fixStatsType(stat) { + return { + inboundrtp: 'inbound-rtp', + outboundrtp: 'outbound-rtp', + candidatepair: 'candidate-pair', + localcandidate: 'local-candidate', + remotecandidate: 'remote-candidate' + }[stat.type] || stat.type; +} + +function writeMediaSection(transceiver, caps, type, stream, dtlsRole) { + var sdp = SDPUtils.writeRtpDescription(transceiver.kind, caps); + + // Map ICE parameters (ufrag, pwd) to SDP. + sdp += SDPUtils.writeIceParameters( + transceiver.iceGatherer.getLocalParameters()); + + // Map DTLS parameters to SDP. + sdp += SDPUtils.writeDtlsParameters( + transceiver.dtlsTransport.getLocalParameters(), + type === 'offer' ? 'actpass' : dtlsRole || 'active'); + + sdp += 'a=mid:' + transceiver.mid + '\r\n'; + + if (transceiver.rtpSender && transceiver.rtpReceiver) { + sdp += 'a=sendrecv\r\n'; + } else if (transceiver.rtpSender) { + sdp += 'a=sendonly\r\n'; + } else if (transceiver.rtpReceiver) { + sdp += 'a=recvonly\r\n'; + } else { + sdp += 'a=inactive\r\n'; + } + + if (transceiver.rtpSender) { + var trackId = transceiver.rtpSender._initialTrackId || + transceiver.rtpSender.track.id; + transceiver.rtpSender._initialTrackId = trackId; + // spec. + var msid = 'msid:' + (stream ? stream.id : '-') + ' ' + + trackId + '\r\n'; + sdp += 'a=' + msid; + // for Chrome. Legacy should no longer be required. + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc + + ' ' + msid; + + // RTX + if (transceiver.sendEncodingParameters[0].rtx) { + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + + ' ' + msid; + sdp += 'a=ssrc-group:FID ' + + transceiver.sendEncodingParameters[0].ssrc + ' ' + + transceiver.sendEncodingParameters[0].rtx.ssrc + + '\r\n'; + } + } + // FIXME: this should be written by writeRtpDescription. + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc + + ' cname:' + SDPUtils.localCName + '\r\n'; + if (transceiver.rtpSender && transceiver.sendEncodingParameters[0].rtx) { + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + + ' cname:' + SDPUtils.localCName + '\r\n'; + } + return sdp; +} + +// Edge does not like +// 1) stun: filtered after 14393 unless ?transport=udp is present +// 2) turn: that does not have all of turn:host:port?transport=udp +// 3) turn: with ipv6 addresses +// 4) turn: occurring muliple times +function filterIceServers(iceServers, edgeVersion) { + var hasTurn = false; + iceServers = JSON.parse(JSON.stringify(iceServers)); + return iceServers.filter(function(server) { + if (server && (server.urls || server.url)) { + var urls = server.urls || server.url; + if (server.url && !server.urls) { + console.warn('RTCIceServer.url is deprecated! Use urls instead.'); + } + var isString = typeof urls === 'string'; + if (isString) { + urls = [urls]; + } + urls = urls.filter(function(url) { + var validTurn = url.indexOf('turn:') === 0 && + url.indexOf('transport=udp') !== -1 && + url.indexOf('turn:[') === -1 && + !hasTurn; -function SafeBuffer(arg, encodingOrOffset, length) { - return Buffer(arg, encodingOrOffset, length); -} + if (validTurn) { + hasTurn = true; + return true; + } + return url.indexOf('stun:') === 0 && edgeVersion >= 14393 && + url.indexOf('?transport=udp') === -1; + }); -// Copy static methods from Buffer -copyProps(Buffer, SafeBuffer); + delete server.url; + server.urls = isString ? urls[0] : urls; + return !!urls.length; + } + }); +} -SafeBuffer.from = function (arg, encodingOrOffset, length) { - if (typeof arg === 'number') { - throw new TypeError('Argument must not be a number'); - } - return Buffer(arg, encodingOrOffset, length); -}; +// Determines the intersection of local and remote capabilities. +function getCommonCapabilities(localCapabilities, remoteCapabilities) { + var commonCapabilities = { + codecs: [], + headerExtensions: [], + fecMechanisms: [] + }; -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); + var findCodecByPayloadType = function(pt, codecs) { + pt = parseInt(pt, 10); + for (var i = 0; i < codecs.length; i++) { + if (codecs[i].payloadType === pt || + codecs[i].preferredPayloadType === pt) { + return codecs[i]; + } } - } 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); -}; + var rtxCapabilityMatches = function(lRtx, rRtx, lCodecs, rCodecs) { + var lCodec = findCodecByPayloadType(lRtx.parameters.apt, lCodecs); + var rCodec = findCodecByPayloadType(rRtx.parameters.apt, rCodecs); + return lCodec && rCodec && + lCodec.name.toLowerCase() === rCodec.name.toLowerCase(); + }; -SafeBuffer.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number'); - } - return buffer.SlowBuffer(size); -}; + localCapabilities.codecs.forEach(function(lCodec) { + for (var i = 0; i < remoteCapabilities.codecs.length; i++) { + var rCodec = remoteCapabilities.codecs[i]; + if (lCodec.name.toLowerCase() === rCodec.name.toLowerCase() && + lCodec.clockRate === rCodec.clockRate) { + if (lCodec.name.toLowerCase() === 'rtx' && + lCodec.parameters && rCodec.parameters.apt) { + // for RTX we need to find the local rtx that has a apt + // which points to the same local codec as the remote one. + if (!rtxCapabilityMatches(lCodec, rCodec, + localCapabilities.codecs, remoteCapabilities.codecs)) { + continue; + } + } + rCodec = JSON.parse(JSON.stringify(rCodec)); // deepcopy + // number of channels is the highest common number of channels + rCodec.numChannels = Math.min(lCodec.numChannels, + rCodec.numChannels); + // push rCodec so we reply with offerer payload type + commonCapabilities.codecs.push(rCodec); + + // determine common feedback mechanisms + rCodec.rtcpFeedback = rCodec.rtcpFeedback.filter(function(fb) { + for (var j = 0; j < lCodec.rtcpFeedback.length; j++) { + if (lCodec.rtcpFeedback[j].type === fb.type && + lCodec.rtcpFeedback[j].parameter === fb.parameter) { + return true; + } + } + return false; + }); + // FIXME: also need to determine .parameters + // see https://github.com/openpeer/ortc/issues/569 + break; + } + } + }); -},{"buffer":401}],277:[function(require,module,exports){ -'use strict'; + localCapabilities.headerExtensions.forEach(function(lHeaderExtension) { + for (var i = 0; i < remoteCapabilities.headerExtensions.length; + i++) { + var rHeaderExtension = remoteCapabilities.headerExtensions[i]; + if (lHeaderExtension.uri === rHeaderExtension.uri) { + commonCapabilities.headerExtensions.push(rHeaderExtension); + break; + } + } + }); -module.exports = require('./lib')(require('./lib/elliptic')); + // FIXME: fecMechanisms + return commonCapabilities; +} -},{"./lib":281,"./lib/elliptic":280}],278:[function(require,module,exports){ -(function (Buffer){ -'use strict'; +// is action=setLocalDescription with type allowed in signalingState +function isActionAllowedInSignalingState(action, type, signalingState) { + return { + offer: { + setLocalDescription: ['stable', 'have-local-offer'], + setRemoteDescription: ['stable', 'have-remote-offer'] + }, + answer: { + setLocalDescription: ['have-remote-offer', 'have-local-pranswer'], + setRemoteDescription: ['have-local-offer', 'have-remote-pranswer'] + } + }[type][action].indexOf(signalingState) !== -1; +} + +function maybeAddCandidate(iceTransport, candidate) { + // Edge's internal representation adds some fields therefore + // not all fieldѕ are taken into account. + var alreadyAdded = iceTransport.getRemoteCandidates() + .find(function(remoteCandidate) { + return candidate.foundation === remoteCandidate.foundation && + candidate.ip === remoteCandidate.ip && + candidate.port === remoteCandidate.port && + candidate.priority === remoteCandidate.priority && + candidate.protocol === remoteCandidate.protocol && + candidate.type === remoteCandidate.type; + }); + if (!alreadyAdded) { + iceTransport.addRemoteCandidate(candidate); + } + return !alreadyAdded; +} + + +function makeError(name, description) { + var e = new Error(description); + e.name = name; + // legacy error codes from https://heycam.github.io/webidl/#idl-DOMException-error-names + e.code = { + NotSupportedError: 9, + InvalidStateError: 11, + InvalidAccessError: 15, + TypeError: undefined, + OperationError: undefined + }[name]; + return e; +} + +module.exports = function(window, edgeVersion) { + // https://w3c.github.io/mediacapture-main/#mediastream + // Helper function to add the track to the stream and + // dispatch the event ourselves. + function addTrackToStreamAndFireEvent(track, stream) { + stream.addTrack(track); + stream.dispatchEvent(new window.MediaStreamTrackEvent('addtrack', + {track: track})); + } + + function removeTrackFromStreamAndFireEvent(track, stream) { + stream.removeTrack(track); + stream.dispatchEvent(new window.MediaStreamTrackEvent('removetrack', + {track: track})); + } + + function fireAddTrack(pc, track, receiver, streams) { + var trackEvent = new Event('track'); + trackEvent.track = track; + trackEvent.receiver = receiver; + trackEvent.transceiver = {receiver: receiver}; + trackEvent.streams = streams; + window.setTimeout(function() { + pc._dispatchEvent('track', trackEvent); + }); + } -var toString = Object.prototype.toString; + var RTCPeerConnection = function(config) { + var pc = this; -// TypeError -exports.isArray = function (value, message) { - if (!Array.isArray(value)) throw TypeError(message); -}; + var _eventTarget = document.createDocumentFragment(); + ['addEventListener', 'removeEventListener', 'dispatchEvent'] + .forEach(function(method) { + pc[method] = _eventTarget[method].bind(_eventTarget); + }); -exports.isBoolean = function (value, message) { - if (toString.call(value) !== '[object Boolean]') throw TypeError(message); -}; + this.canTrickleIceCandidates = null; -exports.isBuffer = function (value, message) { - if (!Buffer.isBuffer(value)) throw TypeError(message); -}; + this.needNegotiation = false; -exports.isFunction = function (value, message) { - if (toString.call(value) !== '[object Function]') throw TypeError(message); -}; + this.localStreams = []; + this.remoteStreams = []; -exports.isNumber = function (value, message) { - if (toString.call(value) !== '[object Number]') throw TypeError(message); -}; + this._localDescription = null; + this._remoteDescription = null; -exports.isObject = function (value, message) { - if (toString.call(value) !== '[object Object]') throw TypeError(message); -}; + this.signalingState = 'stable'; + this.iceConnectionState = 'new'; + this.connectionState = 'new'; + this.iceGatheringState = 'new'; -// RangeError -exports.isBufferLength = function (buffer, length, message) { - if (buffer.length !== length) throw RangeError(message); -}; + config = JSON.parse(JSON.stringify(config || {})); -exports.isBufferLength2 = function (buffer, length1, length2, message) { - if (buffer.length !== length1 && buffer.length !== length2) throw RangeError(message); -}; + this.usingBundle = config.bundlePolicy === 'max-bundle'; + if (config.rtcpMuxPolicy === 'negotiate') { + throw(makeError('NotSupportedError', + 'rtcpMuxPolicy \'negotiate\' is not supported')); + } else if (!config.rtcpMuxPolicy) { + config.rtcpMuxPolicy = 'require'; + } -exports.isLengthGTZero = function (value, message) { - if (value.length === 0) throw RangeError(message); -}; + switch (config.iceTransportPolicy) { + case 'all': + case 'relay': + break; + default: + config.iceTransportPolicy = 'all'; + break; + } -exports.isNumberInInterval = function (number, x, y, message) { - if (number <= x || number >= y) throw RangeError(message); -}; + switch (config.bundlePolicy) { + case 'balanced': + case 'max-compat': + case 'max-bundle': + break; + default: + config.bundlePolicy = 'balanced'; + break; + } -}).call(this,{"isBuffer":require("../../../../../is-buffer/index.js")}) -},{"../../../../../is-buffer/index.js":883}],279:[function(require,module,exports){ -'use strict'; + config.iceServers = filterIceServers(config.iceServers || [], edgeVersion); -var Buffer = require('safe-buffer').Buffer; -var bip66 = require('bip66'); + this._iceGatherers = []; + if (config.iceCandidatePoolSize) { + for (var i = config.iceCandidatePoolSize; i > 0; i--) { + this._iceGatherers.push(new window.RTCIceGatherer({ + iceServers: config.iceServers, + gatherPolicy: config.iceTransportPolicy + })); + } + } else { + config.iceCandidatePoolSize = 0; + } -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]); + this._config = config; -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]); + // per-track iceGathers, iceTransports, dtlsTransports, rtpSenders, ... + // everything that is needed to describe a SDP m-line. + this.transceivers = []; -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; -}; + this._sdpSessionId = SDPUtils.generateSessionId(); + this._sdpSessionVersion = 0; -exports.privateKeyImport = function (privateKey) { - var length = privateKey.length; + this._dtlsRole = undefined; // role for a=setup to use in answers. - // sequence header - var index = 0; - if (length < index + 1 || privateKey[index] !== 0x30) return; - index += 1; + this._isClosed = false; + }; - // sequence length constructor - if (length < index + 1 || !(privateKey[index] & 0x80)) return; + Object.defineProperty(RTCPeerConnection.prototype, 'localDescription', { + configurable: true, + get: function() { + return this._localDescription; + } + }); + Object.defineProperty(RTCPeerConnection.prototype, 'remoteDescription', { + configurable: true, + get: function() { + return this._remoteDescription; + } + }); - var lenb = privateKey[index] & 0x7f; - index += 1; - if (lenb < 1 || lenb > 2) return; - if (length < index + lenb) return; + // set up event handlers on prototype + RTCPeerConnection.prototype.onicecandidate = null; + RTCPeerConnection.prototype.onaddstream = null; + RTCPeerConnection.prototype.ontrack = null; + RTCPeerConnection.prototype.onremovestream = null; + RTCPeerConnection.prototype.onsignalingstatechange = null; + RTCPeerConnection.prototype.oniceconnectionstatechange = null; + RTCPeerConnection.prototype.onconnectionstatechange = null; + RTCPeerConnection.prototype.onicegatheringstatechange = null; + RTCPeerConnection.prototype.onnegotiationneeded = null; + RTCPeerConnection.prototype.ondatachannel = null; + + RTCPeerConnection.prototype._dispatchEvent = function(name, event) { + if (this._isClosed) { + return; + } + this.dispatchEvent(event); + if (typeof this['on' + name] === 'function') { + this['on' + name](event); + } + }; - // sequence length - var len = privateKey[index + lenb - 1] | (lenb > 1 ? privateKey[index + lenb - 2] << 8 : 0); - index += lenb; - if (length < index + len) return; + RTCPeerConnection.prototype._emitGatheringStateChange = function() { + var event = new Event('icegatheringstatechange'); + this._dispatchEvent('icegatheringstatechange', event); + }; - // sequence element 0: version number (=1) - if (length < index + 3 || privateKey[index] !== 0x02 || privateKey[index + 1] !== 0x01 || privateKey[index + 2] !== 0x01) { - return; - } - index += 3; + RTCPeerConnection.prototype.getConfiguration = function() { + return this._config; + }; - // 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; - } + RTCPeerConnection.prototype.getLocalStreams = function() { + return this.localStreams; + }; - return privateKey.slice(index + 2, index + 2 + privateKey[index + 1]); -}; + RTCPeerConnection.prototype.getRemoteStreams = function() { + return this.remoteStreams; + }; -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) {} + // internal helper to create a transceiver object. + // (which is not yet the same as the WebRTC 1.0 transceiver) + RTCPeerConnection.prototype._createTransceiver = function(kind, doNotAdd) { + var hasBundleTransport = this.transceivers.length > 0; + var transceiver = { + track: null, + iceGatherer: null, + iceTransport: null, + dtlsTransport: null, + localCapabilities: null, + remoteCapabilities: null, + rtpSender: null, + rtpReceiver: null, + kind: kind, + mid: null, + sendEncodingParameters: null, + recvEncodingParameters: null, + stream: null, + associatedRemoteMediaStreams: [], + wantReceive: true + }; + if (this.usingBundle && hasBundleTransport) { + transceiver.iceTransport = this.transceivers[0].iceTransport; + transceiver.dtlsTransport = this.transceivers[0].dtlsTransport; + } else { + var transports = this._createIceAndDtlsTransports(); + transceiver.iceTransport = transports.iceTransport; + transceiver.dtlsTransport = transports.dtlsTransport; + } + if (!doNotAdd) { + this.transceivers.push(transceiver); + } + return transceiver; + }; - 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) {} + RTCPeerConnection.prototype.addTrack = function(track, stream) { + if (this._isClosed) { + throw makeError('InvalidStateError', + 'Attempted to call addTrack on a closed peerconnection.'); + } - return bip66.encode(r.slice(posR), s.slice(posS)); -}; + var alreadyExists = this.transceivers.find(function(s) { + return s.track === track; + }); -exports.signatureImport = function (sig) { - var r = Buffer.alloc(32, 0); - var s = Buffer.alloc(32, 0); + if (alreadyExists) { + throw makeError('InvalidAccessError', 'Track already exists.'); + } - 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; - } + var transceiver; + for (var i = 0; i < this.transceivers.length; i++) { + if (!this.transceivers[i].track && + this.transceivers[i].kind === track.kind) { + transceiver = this.transceivers[i]; + } + } + if (!transceiver) { + transceiver = this._createTransceiver(track.kind); + } - sigObj.r.copy(r, 32 - sigObj.r.length); - sigObj.s.copy(s, 32 - sigObj.s.length); + this._maybeFireNegotiationNeeded(); - return { r: r, s: s }; -}; + if (this.localStreams.indexOf(stream) === -1) { + this.localStreams.push(stream); + } -exports.signatureImportLax = function (sig) { - var r = Buffer.alloc(32, 0); - var s = Buffer.alloc(32, 0); + transceiver.track = track; + transceiver.stream = stream; + transceiver.rtpSender = new window.RTCRtpSender(track, + transceiver.dtlsTransport); + return transceiver.rtpSender; + }; - var length = sig.length; - var index = 0; + RTCPeerConnection.prototype.addStream = function(stream) { + var pc = this; + if (edgeVersion >= 15025) { + stream.getTracks().forEach(function(track) { + pc.addTrack(track, stream); + }); + } else { + // Clone is necessary for local demos mostly, attaching directly + // to two different senders does not work (build 10547). + // Fixed in 15025 (or earlier) + var clonedStream = stream.clone(); + stream.getTracks().forEach(function(track, idx) { + var clonedTrack = clonedStream.getTracks()[idx]; + track.addEventListener('enabled', function(event) { + clonedTrack.enabled = event.enabled; + }); + }); + clonedStream.getTracks().forEach(function(track) { + pc.addTrack(track, clonedStream); + }); + } + }; - // sequence tag byte - if (sig[index++] !== 0x30) return; + RTCPeerConnection.prototype.removeTrack = function(sender) { + if (this._isClosed) { + throw makeError('InvalidStateError', + 'Attempted to call removeTrack on a closed peerconnection.'); + } - // sequence length byte - var lenbyte = sig[index++]; - if (lenbyte & 0x80) { - index += lenbyte - 0x80; - if (index > length) return; - } + if (!(sender instanceof window.RTCRtpSender)) { + throw new TypeError('Argument 1 of RTCPeerConnection.removeTrack ' + + 'does not implement interface RTCRtpSender.'); + } - // sequence tag byte for r - if (sig[index++] !== 0x02) return; + var transceiver = this.transceivers.find(function(t) { + return t.rtpSender === sender; + }); - // 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 (!transceiver) { + throw makeError('InvalidAccessError', + 'Sender was not created by this connection.'); } - } - if (rlen > length - index) return; - var rindex = index; - index += rlen; + var stream = transceiver.stream; - // sequence tag byte for s - if (sig[index++] !== 0x02) return; + transceiver.rtpSender.stop(); + transceiver.rtpSender = null; + transceiver.track = null; + transceiver.stream = null; - // 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]; + // remove the stream from the set of local streams + var localStreams = this.transceivers.map(function(t) { + return t.stream; + }); + if (localStreams.indexOf(stream) === -1 && + this.localStreams.indexOf(stream) > -1) { + this.localStreams.splice(this.localStreams.indexOf(stream), 1); } - } - 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); + this._maybeFireNegotiationNeeded(); + }; - // 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); + RTCPeerConnection.prototype.removeStream = function(stream) { + var pc = this; + stream.getTracks().forEach(function(track) { + var sender = pc.getSenders().find(function(s) { + return s.track === track; + }); + if (sender) { + pc.removeTrack(sender); + } + }); + }; - return { r: r, s: s }; -}; + RTCPeerConnection.prototype.getSenders = function() { + return this.transceivers.filter(function(transceiver) { + return !!transceiver.rtpSender; + }) + .map(function(transceiver) { + return transceiver.rtpSender; + }); + }; -},{"bip66":180,"safe-buffer":276}],280:[function(require,module,exports){ -'use strict'; + RTCPeerConnection.prototype.getReceivers = function() { + return this.transceivers.filter(function(transceiver) { + return !!transceiver.rtpReceiver; + }) + .map(function(transceiver) { + return transceiver.rtpReceiver; + }); + }; -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'); + RTCPeerConnection.prototype._createIceGatherer = function(sdpMLineIndex, + usingBundle) { + var pc = this; + if (usingBundle && sdpMLineIndex > 0) { + return this.transceivers[0].iceGatherer; + } else if (this._iceGatherers.length) { + return this._iceGatherers.shift(); + } + var iceGatherer = new window.RTCIceGatherer({ + iceServers: this._config.iceServers, + gatherPolicy: this._config.iceTransportPolicy + }); + Object.defineProperty(iceGatherer, 'state', + {value: 'new', writable: true} + ); -var ec = new EC('secp256k1'); -var ecparams = ec.curve; + this.transceivers[sdpMLineIndex].bufferedCandidateEvents = []; + this.transceivers[sdpMLineIndex].bufferCandidates = function(event) { + var end = !event.candidate || Object.keys(event.candidate).length === 0; + // polyfill since RTCIceGatherer.state is not implemented in + // Edge 10547 yet. + iceGatherer.state = end ? 'completed' : 'gathering'; + if (pc.transceivers[sdpMLineIndex].bufferedCandidateEvents !== null) { + pc.transceivers[sdpMLineIndex].bufferedCandidateEvents.push(event); + } + }; + iceGatherer.addEventListener('localcandidate', + this.transceivers[sdpMLineIndex].bufferCandidates); + return iceGatherer; + }; -function loadCompressedPublicKey(first, xBuffer) { - var x = new BN(xBuffer); + // start gathering from an RTCIceGatherer. + RTCPeerConnection.prototype._gather = function(mid, sdpMLineIndex) { + var pc = this; + var iceGatherer = this.transceivers[sdpMLineIndex].iceGatherer; + if (iceGatherer.onlocalcandidate) { + return; + } + var bufferedCandidateEvents = + this.transceivers[sdpMLineIndex].bufferedCandidateEvents; + this.transceivers[sdpMLineIndex].bufferedCandidateEvents = null; + iceGatherer.removeEventListener('localcandidate', + this.transceivers[sdpMLineIndex].bufferCandidates); + iceGatherer.onlocalcandidate = function(evt) { + if (pc.usingBundle && sdpMLineIndex > 0) { + // if we know that we use bundle we can drop candidates with + // ѕdpMLineIndex > 0. If we don't do this then our state gets + // confused since we dispose the extra ice gatherer. + return; + } + var event = new Event('icecandidate'); + event.candidate = {sdpMid: mid, sdpMLineIndex: sdpMLineIndex}; - // overflow - if (x.cmp(ecparams.p) >= 0) return null; - x = x.toRed(ecparams.red); + var cand = evt.candidate; + // Edge emits an empty object for RTCIceCandidateComplete‥ + var end = !cand || Object.keys(cand).length === 0; + if (end) { + // polyfill since RTCIceGatherer.state is not implemented in + // Edge 10547 yet. + if (iceGatherer.state === 'new' || iceGatherer.state === 'gathering') { + iceGatherer.state = 'completed'; + } + } else { + if (iceGatherer.state === 'new') { + iceGatherer.state = 'gathering'; + } + // RTCIceCandidate doesn't have a component, needs to be added + cand.component = 1; + // also the usernameFragment. TODO: update SDP to take both variants. + cand.ufrag = iceGatherer.getLocalParameters().usernameFragment; - // compute corresponding Y - var y = x.redSqr().redIMul(x).redIAdd(ecparams.b).redSqrt(); - if (first === 0x03 !== y.isOdd()) y = y.redNeg(); + var serializedCandidate = SDPUtils.writeCandidate(cand); + event.candidate = Object.assign(event.candidate, + SDPUtils.parseCandidate(serializedCandidate)); - return ec.keyPair({ pub: { x: x, y: y } }); -} + event.candidate.candidate = serializedCandidate; + event.candidate.toJSON = function() { + return { + candidate: event.candidate.candidate, + sdpMid: event.candidate.sdpMid, + sdpMLineIndex: event.candidate.sdpMLineIndex, + usernameFragment: event.candidate.usernameFragment + }; + }; + } -function loadUncompressedPublicKey(first, xBuffer, yBuffer) { - var x = new BN(xBuffer); - var y = new BN(yBuffer); + // update local description. + var sections = SDPUtils.getMediaSections(pc._localDescription.sdp); + if (!end) { + sections[event.candidate.sdpMLineIndex] += + 'a=' + event.candidate.candidate + '\r\n'; + } else { + sections[event.candidate.sdpMLineIndex] += + 'a=end-of-candidates\r\n'; + } + pc._localDescription.sdp = + SDPUtils.getDescription(pc._localDescription.sdp) + + sections.join(''); + var complete = pc.transceivers.every(function(transceiver) { + return transceiver.iceGatherer && + transceiver.iceGatherer.state === 'completed'; + }); - // overflow - if (x.cmp(ecparams.p) >= 0 || y.cmp(ecparams.p) >= 0) return null; + if (pc.iceGatheringState !== 'gathering') { + pc.iceGatheringState = 'gathering'; + pc._emitGatheringStateChange(); + } - x = x.toRed(ecparams.red); - y = y.toRed(ecparams.red); + // Emit candidate. Also emit null candidate when all gatherers are + // complete. + if (!end) { + pc._dispatchEvent('icecandidate', event); + } + if (complete) { + pc._dispatchEvent('icecandidate', new Event('icecandidate')); + pc.iceGatheringState = 'complete'; + pc._emitGatheringStateChange(); + } + }; - // is odd flag - if ((first === 0x06 || first === 0x07) && y.isOdd() !== (first === 0x07)) return null; + // emit already gathered candidates. + window.setTimeout(function() { + bufferedCandidateEvents.forEach(function(e) { + iceGatherer.onlocalcandidate(e); + }); + }, 0); + }; - // x*x*x + b = y*y - var x3 = x.redSqr().redIMul(x); - if (!y.redSqr().redISub(x3.redIAdd(ecparams.b)).isZero()) return null; + // Create ICE transport and DTLS transport. + RTCPeerConnection.prototype._createIceAndDtlsTransports = function() { + var pc = this; + var iceTransport = new window.RTCIceTransport(null); + iceTransport.onicestatechange = function() { + pc._updateIceConnectionState(); + pc._updateConnectionState(); + }; - return ec.keyPair({ pub: { x: x, y: y } }); -} + var dtlsTransport = new window.RTCDtlsTransport(iceTransport); + dtlsTransport.ondtlsstatechange = function() { + pc._updateConnectionState(); + }; + dtlsTransport.onerror = function() { + // onerror does not set state to failed by itself. + Object.defineProperty(dtlsTransport, 'state', + {value: 'failed', writable: true}); + pc._updateConnectionState(); + }; -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; - } -} + return { + iceTransport: iceTransport, + dtlsTransport: dtlsTransport + }; + }; + + // Destroy ICE gatherer, ICE transport and DTLS transport. + // Without triggering the callbacks. + RTCPeerConnection.prototype._disposeIceAndDtlsTransports = function( + sdpMLineIndex) { + var iceGatherer = this.transceivers[sdpMLineIndex].iceGatherer; + if (iceGatherer) { + delete iceGatherer.onlocalcandidate; + delete this.transceivers[sdpMLineIndex].iceGatherer; + } + var iceTransport = this.transceivers[sdpMLineIndex].iceTransport; + if (iceTransport) { + delete iceTransport.onicestatechange; + delete this.transceivers[sdpMLineIndex].iceTransport; + } + var dtlsTransport = this.transceivers[sdpMLineIndex].dtlsTransport; + if (dtlsTransport) { + delete dtlsTransport.ondtlsstatechange; + delete dtlsTransport.onerror; + delete this.transceivers[sdpMLineIndex].dtlsTransport; + } + }; + + // Start the RTP Sender and Receiver for a transceiver. + RTCPeerConnection.prototype._transceive = function(transceiver, + send, recv) { + var params = getCommonCapabilities(transceiver.localCapabilities, + transceiver.remoteCapabilities); + if (send && transceiver.rtpSender) { + params.encodings = transceiver.sendEncodingParameters; + params.rtcp = { + cname: SDPUtils.localCName, + compound: transceiver.rtcpParameters.compound + }; + if (transceiver.recvEncodingParameters.length) { + params.rtcp.ssrc = transceiver.recvEncodingParameters[0].ssrc; + } + transceiver.rtpSender.send(params); + } + if (recv && transceiver.rtpReceiver && params.codecs.length > 0) { + // remove RTX field in Edge 14942 + if (transceiver.kind === 'video' + && transceiver.recvEncodingParameters + && edgeVersion < 15019) { + transceiver.recvEncodingParameters.forEach(function(p) { + delete p.rtx; + }); + } + if (transceiver.recvEncodingParameters.length) { + params.encodings = transceiver.recvEncodingParameters; + } else { + params.encodings = [{}]; + } + params.rtcp = { + compound: transceiver.rtcpParameters.compound + }; + if (transceiver.rtcpParameters.cname) { + params.rtcp.cname = transceiver.rtcpParameters.cname; + } + if (transceiver.sendEncodingParameters.length) { + params.rtcp.ssrc = transceiver.sendEncodingParameters[0].ssrc; + } + transceiver.rtpReceiver.receive(params); + } + }; -exports.privateKeyVerify = function (privateKey) { - var bn = new BN(privateKey); - return bn.cmp(ecparams.n) < 0 && !bn.isZero(); -}; + RTCPeerConnection.prototype.setLocalDescription = function(description) { + var pc = this; -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); + // Note: pranswer is not supported. + if (['offer', 'answer'].indexOf(description.type) === -1) { + return Promise.reject(makeError('TypeError', + 'Unsupported type "' + description.type + '"')); + } - return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true)); -}; + if (!isActionAllowedInSignalingState('setLocalDescription', + description.type, pc.signalingState) || pc._isClosed) { + return Promise.reject(makeError('InvalidStateError', + 'Can not set local ' + description.type + + ' in state ' + pc.signalingState)); + } -exports.privateKeyNegate = function (privateKey) { - var bn = new BN(privateKey); - return bn.isZero() ? Buffer.alloc(32) : ecparams.n.sub(bn).umod(ecparams.n).toArrayLike(Buffer, 'be', 32); -}; + var sections; + var sessionpart; + if (description.type === 'offer') { + // VERY limited support for SDP munging. Limited to: + // * changing the order of codecs + sections = SDPUtils.splitSections(description.sdp); + sessionpart = sections.shift(); + sections.forEach(function(mediaSection, sdpMLineIndex) { + var caps = SDPUtils.parseRtpParameters(mediaSection); + pc.transceivers[sdpMLineIndex].localCapabilities = caps; + }); -exports.privateKeyModInverse = function (privateKey) { - var bn = new BN(privateKey); - if (bn.cmp(ecparams.n) >= 0 || bn.isZero()) throw new Error(messages.EC_PRIVATE_KEY_RANGE_INVALID); + pc.transceivers.forEach(function(transceiver, sdpMLineIndex) { + pc._gather(transceiver.mid, sdpMLineIndex); + }); + } else if (description.type === 'answer') { + sections = SDPUtils.splitSections(pc._remoteDescription.sdp); + sessionpart = sections.shift(); + var isIceLite = SDPUtils.matchPrefix(sessionpart, + 'a=ice-lite').length > 0; + sections.forEach(function(mediaSection, sdpMLineIndex) { + var transceiver = pc.transceivers[sdpMLineIndex]; + var iceGatherer = transceiver.iceGatherer; + var iceTransport = transceiver.iceTransport; + var dtlsTransport = transceiver.dtlsTransport; + var localCapabilities = transceiver.localCapabilities; + var remoteCapabilities = transceiver.remoteCapabilities; + + // treat bundle-only as not-rejected. + var rejected = SDPUtils.isRejected(mediaSection) && + SDPUtils.matchPrefix(mediaSection, 'a=bundle-only').length === 0; + + if (!rejected && !transceiver.rejected) { + var remoteIceParameters = SDPUtils.getIceParameters( + mediaSection, sessionpart); + var remoteDtlsParameters = SDPUtils.getDtlsParameters( + mediaSection, sessionpart); + if (isIceLite) { + remoteDtlsParameters.role = 'server'; + } - return bn.invm(ecparams.n).toArrayLike(Buffer, 'be', 32); -}; + if (!pc.usingBundle || sdpMLineIndex === 0) { + pc._gather(transceiver.mid, sdpMLineIndex); + if (iceTransport.state === 'new') { + iceTransport.start(iceGatherer, remoteIceParameters, + isIceLite ? 'controlling' : 'controlled'); + } + if (dtlsTransport.state === 'new') { + dtlsTransport.start(remoteDtlsParameters); + } + } -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); + // Calculate intersection of capabilities. + var params = getCommonCapabilities(localCapabilities, + remoteCapabilities); - 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); + // Start the RTCRtpSender. The RTCRtpReceiver for this + // transceiver has already been started in setRemoteDescription. + pc._transceive(transceiver, + params.codecs.length > 0, + false); + } + }); + } - return bn.toArrayLike(Buffer, 'be', 32); -}; + pc._localDescription = { + type: description.type, + sdp: description.sdp + }; + if (description.type === 'offer') { + pc._updateSignalingState('have-local-offer'); + } else { + pc._updateSignalingState('stable'); + } -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); + return Promise.resolve(); + }; - bn.imul(new BN(privateKey)); - if (bn.cmp(ecparams.n)) bn = bn.umod(ecparams.n); + RTCPeerConnection.prototype.setRemoteDescription = function(description) { + var pc = this; - return bn.toArrayLike(Buffer, 'be', 32); -}; + // Note: pranswer is not supported. + if (['offer', 'answer'].indexOf(description.type) === -1) { + return Promise.reject(makeError('TypeError', + 'Unsupported type "' + description.type + '"')); + } -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); + if (!isActionAllowedInSignalingState('setRemoteDescription', + description.type, pc.signalingState) || pc._isClosed) { + return Promise.reject(makeError('InvalidStateError', + 'Can not set remote ' + description.type + + ' in state ' + pc.signalingState)); + } - return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true)); -}; + var streams = {}; + pc.remoteStreams.forEach(function(stream) { + streams[stream.id] = stream; + }); + var receiverList = []; + var sections = SDPUtils.splitSections(description.sdp); + var sessionpart = sections.shift(); + var isIceLite = SDPUtils.matchPrefix(sessionpart, + 'a=ice-lite').length > 0; + var usingBundle = SDPUtils.matchPrefix(sessionpart, + 'a=group:BUNDLE ').length > 0; + pc.usingBundle = usingBundle; + var iceOptions = SDPUtils.matchPrefix(sessionpart, + 'a=ice-options:')[0]; + if (iceOptions) { + pc.canTrickleIceCandidates = iceOptions.substr(14).split(' ') + .indexOf('trickle') >= 0; + } else { + pc.canTrickleIceCandidates = false; + } + + sections.forEach(function(mediaSection, sdpMLineIndex) { + var lines = SDPUtils.splitLines(mediaSection); + var kind = SDPUtils.getKind(mediaSection); + // treat bundle-only as not-rejected. + var rejected = SDPUtils.isRejected(mediaSection) && + SDPUtils.matchPrefix(mediaSection, 'a=bundle-only').length === 0; + var protocol = lines[0].substr(2).split(' ')[2]; + + var direction = SDPUtils.getDirection(mediaSection, sessionpart); + var remoteMsid = SDPUtils.parseMsid(mediaSection); + + var mid = SDPUtils.getMid(mediaSection) || SDPUtils.generateIdentifier(); + + // Reject datachannels which are not implemented yet. + if (rejected || (kind === 'application' && (protocol === 'DTLS/SCTP' || + protocol === 'UDP/DTLS/SCTP'))) { + // TODO: this is dangerous in the case where a non-rejected m-line + // becomes rejected. + pc.transceivers[sdpMLineIndex] = { + mid: mid, + kind: kind, + protocol: protocol, + rejected: true + }; + return; + } -exports.publicKeyConvert = function (publicKey, compressed) { - var pair = loadPublicKey(publicKey); - if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL); + if (!rejected && pc.transceivers[sdpMLineIndex] && + pc.transceivers[sdpMLineIndex].rejected) { + // recycle a rejected transceiver. + pc.transceivers[sdpMLineIndex] = pc._createTransceiver(kind, true); + } + + var transceiver; + var iceGatherer; + var iceTransport; + var dtlsTransport; + var rtpReceiver; + var sendEncodingParameters; + var recvEncodingParameters; + var localCapabilities; + + var track; + // FIXME: ensure the mediaSection has rtcp-mux set. + var remoteCapabilities = SDPUtils.parseRtpParameters(mediaSection); + var remoteIceParameters; + var remoteDtlsParameters; + if (!rejected) { + remoteIceParameters = SDPUtils.getIceParameters(mediaSection, + sessionpart); + remoteDtlsParameters = SDPUtils.getDtlsParameters(mediaSection, + sessionpart); + remoteDtlsParameters.role = 'client'; + } + recvEncodingParameters = + SDPUtils.parseRtpEncodingParameters(mediaSection); + + var rtcpParameters = SDPUtils.parseRtcpParameters(mediaSection); + + var isComplete = SDPUtils.matchPrefix(mediaSection, + 'a=end-of-candidates', sessionpart).length > 0; + var cands = SDPUtils.matchPrefix(mediaSection, 'a=candidate:') + .map(function(cand) { + return SDPUtils.parseCandidate(cand); + }) + .filter(function(cand) { + return cand.component === 1; + }); - return Buffer.from(pair.getPublic(compressed, true)); -}; + // Check if we can use BUNDLE and dispose transports. + if ((description.type === 'offer' || description.type === 'answer') && + !rejected && usingBundle && sdpMLineIndex > 0 && + pc.transceivers[sdpMLineIndex]) { + pc._disposeIceAndDtlsTransports(sdpMLineIndex); + pc.transceivers[sdpMLineIndex].iceGatherer = + pc.transceivers[0].iceGatherer; + pc.transceivers[sdpMLineIndex].iceTransport = + pc.transceivers[0].iceTransport; + pc.transceivers[sdpMLineIndex].dtlsTransport = + pc.transceivers[0].dtlsTransport; + if (pc.transceivers[sdpMLineIndex].rtpSender) { + pc.transceivers[sdpMLineIndex].rtpSender.setTransport( + pc.transceivers[0].dtlsTransport); + } + if (pc.transceivers[sdpMLineIndex].rtpReceiver) { + pc.transceivers[sdpMLineIndex].rtpReceiver.setTransport( + pc.transceivers[0].dtlsTransport); + } + } + if (description.type === 'offer' && !rejected) { + transceiver = pc.transceivers[sdpMLineIndex] || + pc._createTransceiver(kind); + transceiver.mid = mid; + + if (!transceiver.iceGatherer) { + transceiver.iceGatherer = pc._createIceGatherer(sdpMLineIndex, + usingBundle); + } + + if (cands.length && transceiver.iceTransport.state === 'new') { + if (isComplete && (!usingBundle || sdpMLineIndex === 0)) { + transceiver.iceTransport.setRemoteCandidates(cands); + } else { + cands.forEach(function(candidate) { + maybeAddCandidate(transceiver.iceTransport, candidate); + }); + } + } -exports.publicKeyVerify = function (publicKey) { - return loadPublicKey(publicKey) !== null; -}; + localCapabilities = window.RTCRtpReceiver.getCapabilities(kind); -exports.publicKeyTweakAdd = function (publicKey, tweak, compressed) { - var pair = loadPublicKey(publicKey); - if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL); + // filter RTX until additional stuff needed for RTX is implemented + // in adapter.js + if (edgeVersion < 15019) { + localCapabilities.codecs = localCapabilities.codecs.filter( + function(codec) { + return codec.name !== 'rtx'; + }); + } - tweak = new BN(tweak); - if (tweak.cmp(ecparams.n) >= 0) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL); + sendEncodingParameters = transceiver.sendEncodingParameters || [{ + ssrc: (2 * sdpMLineIndex + 2) * 1001 + }]; + + // TODO: rewrite to use http://w3c.github.io/webrtc-pc/#set-associated-remote-streams + var isNewTrack = false; + if (direction === 'sendrecv' || direction === 'sendonly') { + isNewTrack = !transceiver.rtpReceiver; + rtpReceiver = transceiver.rtpReceiver || + new window.RTCRtpReceiver(transceiver.dtlsTransport, kind); + + if (isNewTrack) { + var stream; + track = rtpReceiver.track; + // FIXME: does not work with Plan B. + if (remoteMsid && remoteMsid.stream === '-') { + // no-op. a stream id of '-' means: no associated stream. + } else if (remoteMsid) { + if (!streams[remoteMsid.stream]) { + streams[remoteMsid.stream] = new window.MediaStream(); + Object.defineProperty(streams[remoteMsid.stream], 'id', { + get: function() { + return remoteMsid.stream; + } + }); + } + Object.defineProperty(track, 'id', { + get: function() { + return remoteMsid.track; + } + }); + stream = streams[remoteMsid.stream]; + } else { + if (!streams.default) { + streams.default = new window.MediaStream(); + } + stream = streams.default; + } + if (stream) { + addTrackToStreamAndFireEvent(track, stream); + transceiver.associatedRemoteMediaStreams.push(stream); + } + receiverList.push([track, rtpReceiver, stream]); + } + } else if (transceiver.rtpReceiver && transceiver.rtpReceiver.track) { + transceiver.associatedRemoteMediaStreams.forEach(function(s) { + var nativeTrack = s.getTracks().find(function(t) { + return t.id === transceiver.rtpReceiver.track.id; + }); + if (nativeTrack) { + removeTrackFromStreamAndFireEvent(nativeTrack, s); + } + }); + transceiver.associatedRemoteMediaStreams = []; + } + + transceiver.localCapabilities = localCapabilities; + transceiver.remoteCapabilities = remoteCapabilities; + transceiver.rtpReceiver = rtpReceiver; + transceiver.rtcpParameters = rtcpParameters; + transceiver.sendEncodingParameters = sendEncodingParameters; + transceiver.recvEncodingParameters = recvEncodingParameters; + + // Start the RTCRtpReceiver now. The RTPSender is started in + // setLocalDescription. + pc._transceive(pc.transceivers[sdpMLineIndex], + false, + isNewTrack); + } else if (description.type === 'answer' && !rejected) { + transceiver = pc.transceivers[sdpMLineIndex]; + iceGatherer = transceiver.iceGatherer; + iceTransport = transceiver.iceTransport; + dtlsTransport = transceiver.dtlsTransport; + rtpReceiver = transceiver.rtpReceiver; + sendEncodingParameters = transceiver.sendEncodingParameters; + localCapabilities = transceiver.localCapabilities; + + pc.transceivers[sdpMLineIndex].recvEncodingParameters = + recvEncodingParameters; + pc.transceivers[sdpMLineIndex].remoteCapabilities = + remoteCapabilities; + pc.transceivers[sdpMLineIndex].rtcpParameters = rtcpParameters; + + if (cands.length && iceTransport.state === 'new') { + if ((isIceLite || isComplete) && + (!usingBundle || sdpMLineIndex === 0)) { + iceTransport.setRemoteCandidates(cands); + } else { + cands.forEach(function(candidate) { + maybeAddCandidate(transceiver.iceTransport, candidate); + }); + } + } - return Buffer.from(ecparams.g.mul(tweak).add(pair.pub).encode(true, compressed)); -}; + if (!usingBundle || sdpMLineIndex === 0) { + if (iceTransport.state === 'new') { + iceTransport.start(iceGatherer, remoteIceParameters, + 'controlling'); + } + if (dtlsTransport.state === 'new') { + dtlsTransport.start(remoteDtlsParameters); + } + } -exports.publicKeyTweakMul = function (publicKey, tweak, compressed) { - var pair = loadPublicKey(publicKey); - if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL); + // If the offer contained RTX but the answer did not, + // remove RTX from sendEncodingParameters. + var commonCapabilities = getCommonCapabilities( + transceiver.localCapabilities, + transceiver.remoteCapabilities); - tweak = new BN(tweak); - if (tweak.cmp(ecparams.n) >= 0 || tweak.isZero()) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_MUL_FAIL); + var hasRtx = commonCapabilities.codecs.filter(function(c) { + return c.name.toLowerCase() === 'rtx'; + }).length; + if (!hasRtx && transceiver.sendEncodingParameters[0].rtx) { + delete transceiver.sendEncodingParameters[0].rtx; + } - return Buffer.from(pair.pub.mul(tweak).encode(true, compressed)); -}; + pc._transceive(transceiver, + direction === 'sendrecv' || direction === 'recvonly', + direction === 'sendrecv' || direction === 'sendonly'); -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); - } + // TODO: rewrite to use http://w3c.github.io/webrtc-pc/#set-associated-remote-streams + if (rtpReceiver && + (direction === 'sendrecv' || direction === 'sendonly')) { + track = rtpReceiver.track; + if (remoteMsid) { + if (!streams[remoteMsid.stream]) { + streams[remoteMsid.stream] = new window.MediaStream(); + } + addTrackToStreamAndFireEvent(track, streams[remoteMsid.stream]); + receiverList.push([track, rtpReceiver, streams[remoteMsid.stream]]); + } else { + if (!streams.default) { + streams.default = new window.MediaStream(); + } + addTrackToStreamAndFireEvent(track, streams.default); + receiverList.push([track, rtpReceiver, streams.default]); + } + } else { + // FIXME: actually the receiver should be created later. + delete transceiver.rtpReceiver; + } + } + }); - 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); + if (pc._dtlsRole === undefined) { + pc._dtlsRole = description.type === 'offer' ? 'active' : 'passive'; + } - return Buffer.from(point.encode(true, compressed)); -}; + pc._remoteDescription = { + type: description.type, + sdp: description.sdp + }; + if (description.type === 'offer') { + pc._updateSignalingState('have-remote-offer'); + } else { + pc._updateSignalingState('stable'); + } + Object.keys(streams).forEach(function(sid) { + var stream = streams[sid]; + if (stream.getTracks().length) { + if (pc.remoteStreams.indexOf(stream) === -1) { + pc.remoteStreams.push(stream); + var event = new Event('addstream'); + event.stream = stream; + window.setTimeout(function() { + pc._dispatchEvent('addstream', event); + }); + } -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); + receiverList.forEach(function(item) { + var track = item[0]; + var receiver = item[1]; + if (stream.id !== item[2].id) { + return; + } + fireAddTrack(pc, track, receiver, [stream]); + }); + } + }); + receiverList.forEach(function(item) { + if (item[2]) { + return; + } + fireAddTrack(pc, item[0], item[1], []); + }); - var result = Buffer.from(signature); - if (s.cmp(ec.nh) === 1) ecparams.n.sub(s).toArrayLike(Buffer, 'be', 32).copy(result, 32); + // check whether addIceCandidate({}) was called within four seconds after + // setRemoteDescription. + window.setTimeout(function() { + if (!(pc && pc.transceivers)) { + return; + } + pc.transceivers.forEach(function(transceiver) { + if (transceiver.iceTransport && + transceiver.iceTransport.state === 'new' && + transceiver.iceTransport.getRemoteCandidates().length > 0) { + console.warn('Timeout for addRemoteCandidate. Consider sending ' + + 'an end-of-candidates notification'); + transceiver.iceTransport.addRemoteCandidate({}); + } + }); + }, 4000); - return result; -}; + return Promise.resolve(); + }; -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); + RTCPeerConnection.prototype.close = function() { + this.transceivers.forEach(function(transceiver) { + /* not yet + if (transceiver.iceGatherer) { + transceiver.iceGatherer.close(); + } + */ + if (transceiver.iceTransport) { + transceiver.iceTransport.stop(); + } + if (transceiver.dtlsTransport) { + transceiver.dtlsTransport.stop(); + } + if (transceiver.rtpSender) { + transceiver.rtpSender.stop(); + } + if (transceiver.rtpReceiver) { + transceiver.rtpReceiver.stop(); + } + }); + // FIXME: clean up tracks, local streams, remote streams, etc + this._isClosed = true; + this._updateSignalingState('closed'); + }; - return { r: r, s: s }; -}; + // Update the signaling state. + RTCPeerConnection.prototype._updateSignalingState = function(newState) { + this.signalingState = newState; + var event = new Event('signalingstatechange'); + this._dispatchEvent('signalingstatechange', event); + }; -exports.signatureImport = function (sigObj) { - var r = new BN(sigObj.r); - if (r.cmp(ecparams.n) >= 0) r = new BN(0); + // Determine whether to fire the negotiationneeded event. + RTCPeerConnection.prototype._maybeFireNegotiationNeeded = function() { + var pc = this; + if (this.signalingState !== 'stable' || this.needNegotiation === true) { + return; + } + this.needNegotiation = true; + window.setTimeout(function() { + if (pc.needNegotiation) { + pc.needNegotiation = false; + var event = new Event('negotiationneeded'); + pc._dispatchEvent('negotiationneeded', event); + } + }, 0); + }; - var s = new BN(sigObj.s); - if (s.cmp(ecparams.n) >= 0) s = new BN(0); + // Update the ice connection state. + RTCPeerConnection.prototype._updateIceConnectionState = function() { + var newState; + var states = { + 'new': 0, + closed: 0, + checking: 0, + connected: 0, + completed: 0, + disconnected: 0, + failed: 0 + }; + this.transceivers.forEach(function(transceiver) { + states[transceiver.iceTransport.state]++; + }); - return Buffer.concat([r.toArrayLike(Buffer, 'be', 32), s.toArrayLike(Buffer, 'be', 32)]); -}; + newState = 'new'; + if (states.failed > 0) { + newState = 'failed'; + } else if (states.checking > 0) { + newState = 'checking'; + } else if (states.disconnected > 0) { + newState = 'disconnected'; + } else if (states.new > 0) { + newState = 'new'; + } else if (states.connected > 0) { + newState = 'connected'; + } else if (states.completed > 0) { + newState = 'completed'; + } + + if (newState !== this.iceConnectionState) { + this.iceConnectionState = newState; + var event = new Event('iceconnectionstatechange'); + this._dispatchEvent('iceconnectionstatechange', event); + } + }; + + // Update the connection state. + RTCPeerConnection.prototype._updateConnectionState = function() { + var newState; + var states = { + 'new': 0, + closed: 0, + connecting: 0, + connected: 0, + completed: 0, + disconnected: 0, + failed: 0 + }; + this.transceivers.forEach(function(transceiver) { + states[transceiver.iceTransport.state]++; + states[transceiver.dtlsTransport.state]++; + }); + // ICETransport.completed and connected are the same for this purpose. + states.connected += states.completed; + + newState = 'new'; + if (states.failed > 0) { + newState = 'failed'; + } else if (states.connecting > 0) { + newState = 'connecting'; + } else if (states.disconnected > 0) { + newState = 'disconnected'; + } else if (states.new > 0) { + newState = 'new'; + } else if (states.connected > 0) { + newState = 'connected'; + } + + if (newState !== this.connectionState) { + this.connectionState = newState; + var event = new Event('connectionstatechange'); + this._dispatchEvent('connectionstatechange', event); + } + }; + + RTCPeerConnection.prototype.createOffer = function() { + var pc = this; + + if (pc._isClosed) { + return Promise.reject(makeError('InvalidStateError', + 'Can not call createOffer after close')); + } + + var numAudioTracks = pc.transceivers.filter(function(t) { + return t.kind === 'audio'; + }).length; + var numVideoTracks = pc.transceivers.filter(function(t) { + return t.kind === 'video'; + }).length; + + // Determine number of audio and video tracks we need to send/recv. + var offerOptions = arguments[0]; + if (offerOptions) { + // Reject Chrome legacy constraints. + if (offerOptions.mandatory || offerOptions.optional) { + throw new TypeError( + 'Legacy mandatory/optional constraints not supported.'); + } + if (offerOptions.offerToReceiveAudio !== undefined) { + if (offerOptions.offerToReceiveAudio === true) { + numAudioTracks = 1; + } else if (offerOptions.offerToReceiveAudio === false) { + numAudioTracks = 0; + } else { + numAudioTracks = offerOptions.offerToReceiveAudio; + } + } + if (offerOptions.offerToReceiveVideo !== undefined) { + if (offerOptions.offerToReceiveVideo === true) { + numVideoTracks = 1; + } else if (offerOptions.offerToReceiveVideo === false) { + numVideoTracks = 0; + } else { + numVideoTracks = offerOptions.offerToReceiveVideo; + } + } + } -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); + pc.transceivers.forEach(function(transceiver) { + if (transceiver.kind === 'audio') { + numAudioTracks--; + if (numAudioTracks < 0) { + transceiver.wantReceive = false; + } + } else if (transceiver.kind === 'video') { + numVideoTracks--; + if (numVideoTracks < 0) { + transceiver.wantReceive = false; + } + } + }); - return new BN(nonce); - }; - } + // Create M-lines for recvonly streams. + while (numAudioTracks > 0 || numVideoTracks > 0) { + if (numAudioTracks > 0) { + pc._createTransceiver('audio'); + numAudioTracks--; + } + if (numVideoTracks > 0) { + pc._createTransceiver('video'); + numVideoTracks--; + } + } - var d = new BN(privateKey); - if (d.cmp(ecparams.n) >= 0 || d.isZero()) throw new Error(messages.ECDSA_SIGN_FAIL); + var sdp = SDPUtils.writeSessionBoilerplate(pc._sdpSessionId, + pc._sdpSessionVersion++); + pc.transceivers.forEach(function(transceiver, sdpMLineIndex) { + // For each track, create an ice gatherer, ice transport, + // dtls transport, potentially rtpsender and rtpreceiver. + var track = transceiver.track; + var kind = transceiver.kind; + var mid = transceiver.mid || SDPUtils.generateIdentifier(); + transceiver.mid = mid; - 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 - }; -}; + if (!transceiver.iceGatherer) { + transceiver.iceGatherer = pc._createIceGatherer(sdpMLineIndex, + pc.usingBundle); + } -exports.verify = function (message, signature, publicKey) { - var sigObj = { r: signature.slice(0, 32), s: signature.slice(32, 64) }; + var localCapabilities = window.RTCRtpSender.getCapabilities(kind); + // filter RTX until additional stuff needed for RTX is implemented + // in adapter.js + if (edgeVersion < 15019) { + localCapabilities.codecs = localCapabilities.codecs.filter( + function(codec) { + return codec.name !== 'rtx'; + }); + } + localCapabilities.codecs.forEach(function(codec) { + // work around https://bugs.chromium.org/p/webrtc/issues/detail?id=6552 + // by adding level-asymmetry-allowed=1 + if (codec.name === 'H264' && + codec.parameters['level-asymmetry-allowed'] === undefined) { + codec.parameters['level-asymmetry-allowed'] = '1'; + } + + // for subsequent offers, we might have to re-use the payload + // type of the last offer. + if (transceiver.remoteCapabilities && + transceiver.remoteCapabilities.codecs) { + transceiver.remoteCapabilities.codecs.forEach(function(remoteCodec) { + if (codec.name.toLowerCase() === remoteCodec.name.toLowerCase() && + codec.clockRate === remoteCodec.clockRate) { + codec.preferredPayloadType = remoteCodec.payloadType; + } + }); + } + }); + localCapabilities.headerExtensions.forEach(function(hdrExt) { + var remoteExtensions = transceiver.remoteCapabilities && + transceiver.remoteCapabilities.headerExtensions || []; + remoteExtensions.forEach(function(rHdrExt) { + if (hdrExt.uri === rHdrExt.uri) { + hdrExt.id = rHdrExt.id; + } + }); + }); - 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; + // generate an ssrc now, to be used later in rtpSender.send + var sendEncodingParameters = transceiver.sendEncodingParameters || [{ + ssrc: (2 * sdpMLineIndex + 1) * 1001 + }]; + if (track) { + // add RTX + if (edgeVersion >= 15019 && kind === 'video' && + !sendEncodingParameters[0].rtx) { + sendEncodingParameters[0].rtx = { + ssrc: sendEncodingParameters[0].ssrc + 1 + }; + } + } - var pair = loadPublicKey(publicKey); - if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL); + if (transceiver.wantReceive) { + transceiver.rtpReceiver = new window.RTCRtpReceiver( + transceiver.dtlsTransport, kind); + } - return ec.verify(message, sigObj, { x: pair.pub.x, y: pair.pub.y }); -}; + transceiver.localCapabilities = localCapabilities; + transceiver.sendEncodingParameters = sendEncodingParameters; + }); -exports.recover = function (message, signature, recovery, compressed) { - var sigObj = { r: signature.slice(0, 32), s: signature.slice(32, 64) }; + // always offer BUNDLE and dispose on return if not supported. + if (pc._config.bundlePolicy !== 'max-compat') { + sdp += 'a=group:BUNDLE ' + pc.transceivers.map(function(t) { + return t.mid; + }).join(' ') + '\r\n'; + } + sdp += 'a=ice-options:trickle\r\n'; - 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); + pc.transceivers.forEach(function(transceiver, sdpMLineIndex) { + sdp += writeMediaSection(transceiver, transceiver.localCapabilities, + 'offer', transceiver.stream, pc._dtlsRole); + sdp += 'a=rtcp-rsize\r\n'; - try { - if (sigr.isZero() || sigs.isZero()) throw new Error(); + if (transceiver.iceGatherer && pc.iceGatheringState !== 'new' && + (sdpMLineIndex === 0 || !pc.usingBundle)) { + transceiver.iceGatherer.getLocalCandidates().forEach(function(cand) { + cand.component = 1; + sdp += 'a=' + SDPUtils.writeCandidate(cand) + '\r\n'; + }); - var point = ec.recoverPubKey(message, sigObj, recovery); - return Buffer.from(point.encode(true, compressed)); - } catch (err) { - throw new Error(messages.ECDSA_RECOVER_FAIL); - } -}; + if (transceiver.iceGatherer.state === 'completed') { + sdp += 'a=end-of-candidates\r\n'; + } + } + }); -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 desc = new window.RTCSessionDescription({ + type: 'offer', + sdp: sdp + }); + return Promise.resolve(desc); + }; - var scalar = new BN(privateKey); - if (scalar.cmp(ecparams.n) >= 0 || scalar.isZero()) throw new Error(messages.ECDH_FAIL); + RTCPeerConnection.prototype.createAnswer = function() { + var pc = this; - return Buffer.from(pair.pub.mul(scalar).encode(true, compressed)); -}; + if (pc._isClosed) { + return Promise.reject(makeError('InvalidStateError', + 'Can not call createAnswer after close')); + } -},{"../messages.json":282,"bn.js":182,"create-hash":190,"elliptic":196,"safe-buffer":276}],281:[function(require,module,exports){ -'use strict'; + if (!(pc.signalingState === 'have-remote-offer' || + pc.signalingState === 'have-local-pranswer')) { + return Promise.reject(makeError('InvalidStateError', + 'Can not call createAnswer in signalingState ' + pc.signalingState)); + } -var assert = require('./assert'); -var der = require('./der'); -var messages = require('./messages.json'); + var sdp = SDPUtils.writeSessionBoilerplate(pc._sdpSessionId, + pc._sdpSessionVersion++); + if (pc.usingBundle) { + sdp += 'a=group:BUNDLE ' + pc.transceivers.map(function(t) { + return t.mid; + }).join(' ') + '\r\n'; + } + sdp += 'a=ice-options:trickle\r\n'; -function initCompressedValue(value, defaultValue) { - if (value === undefined) return defaultValue; + var mediaSectionsInOffer = SDPUtils.getMediaSections( + pc._remoteDescription.sdp).length; + pc.transceivers.forEach(function(transceiver, sdpMLineIndex) { + if (sdpMLineIndex + 1 > mediaSectionsInOffer) { + return; + } + if (transceiver.rejected) { + if (transceiver.kind === 'application') { + if (transceiver.protocol === 'DTLS/SCTP') { // legacy fmt + sdp += 'm=application 0 DTLS/SCTP 5000\r\n'; + } else { + sdp += 'm=application 0 ' + transceiver.protocol + + ' webrtc-datachannel\r\n'; + } + } else if (transceiver.kind === 'audio') { + sdp += 'm=audio 0 UDP/TLS/RTP/SAVPF 0\r\n' + + 'a=rtpmap:0 PCMU/8000\r\n'; + } else if (transceiver.kind === 'video') { + sdp += 'm=video 0 UDP/TLS/RTP/SAVPF 120\r\n' + + 'a=rtpmap:120 VP8/90000\r\n'; + } + sdp += 'c=IN IP4 0.0.0.0\r\n' + + 'a=inactive\r\n' + + 'a=mid:' + transceiver.mid + '\r\n'; + return; + } - assert.isBoolean(value, messages.COMPRESSED_TYPE_INVALID); - return value; -} + // FIXME: look at direction. + if (transceiver.stream) { + var localTrack; + if (transceiver.kind === 'audio') { + localTrack = transceiver.stream.getAudioTracks()[0]; + } else if (transceiver.kind === 'video') { + localTrack = transceiver.stream.getVideoTracks()[0]; + } + if (localTrack) { + // add RTX + if (edgeVersion >= 15019 && transceiver.kind === 'video' && + !transceiver.sendEncodingParameters[0].rtx) { + transceiver.sendEncodingParameters[0].rtx = { + ssrc: transceiver.sendEncodingParameters[0].ssrc + 1 + }; + } + } + } -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); - }, + // Calculate intersection of capabilities. + var commonCapabilities = getCommonCapabilities( + transceiver.localCapabilities, + transceiver.remoteCapabilities); - privateKeyExport: function privateKeyExport(privateKey, compressed) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); + var hasRtx = commonCapabilities.codecs.filter(function(c) { + return c.name.toLowerCase() === 'rtx'; + }).length; + if (!hasRtx && transceiver.sendEncodingParameters[0].rtx) { + delete transceiver.sendEncodingParameters[0].rtx; + } - compressed = initCompressedValue(compressed, true); - var publicKey = secp256k1.privateKeyExport(privateKey, compressed); + sdp += writeMediaSection(transceiver, commonCapabilities, + 'answer', transceiver.stream, pc._dtlsRole); + if (transceiver.rtcpParameters && + transceiver.rtcpParameters.reducedSize) { + sdp += 'a=rtcp-rsize\r\n'; + } + }); - return der.privateKeyExport(privateKey, publicKey, compressed); - }, + var desc = new window.RTCSessionDescription({ + type: 'answer', + sdp: sdp + }); + return Promise.resolve(desc); + }; - privateKeyImport: function privateKeyImport(privateKey) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); + RTCPeerConnection.prototype.addIceCandidate = function(candidate) { + var pc = this; + var sections; + if (candidate && !(candidate.sdpMLineIndex !== undefined || + candidate.sdpMid)) { + return Promise.reject(new TypeError('sdpMLineIndex or sdpMid required')); + } - privateKey = der.privateKeyImport(privateKey); - if (privateKey && privateKey.length === 32 && secp256k1.privateKeyVerify(privateKey)) return privateKey; + // TODO: needs to go into ops queue. + return new Promise(function(resolve, reject) { + if (!pc._remoteDescription) { + return reject(makeError('InvalidStateError', + 'Can not add ICE candidate without a remote description')); + } else if (!candidate || candidate.candidate === '') { + for (var j = 0; j < pc.transceivers.length; j++) { + if (pc.transceivers[j].rejected) { + continue; + } + pc.transceivers[j].iceTransport.addRemoteCandidate({}); + sections = SDPUtils.getMediaSections(pc._remoteDescription.sdp); + sections[j] += 'a=end-of-candidates\r\n'; + pc._remoteDescription.sdp = + SDPUtils.getDescription(pc._remoteDescription.sdp) + + sections.join(''); + if (pc.usingBundle) { + break; + } + } + } else { + var sdpMLineIndex = candidate.sdpMLineIndex; + if (candidate.sdpMid) { + for (var i = 0; i < pc.transceivers.length; i++) { + if (pc.transceivers[i].mid === candidate.sdpMid) { + sdpMLineIndex = i; + break; + } + } + } + var transceiver = pc.transceivers[sdpMLineIndex]; + if (transceiver) { + if (transceiver.rejected) { + return resolve(); + } + var cand = Object.keys(candidate.candidate).length > 0 ? + SDPUtils.parseCandidate(candidate.candidate) : {}; + // Ignore Chrome's invalid candidates since Edge does not like them. + if (cand.protocol === 'tcp' && (cand.port === 0 || cand.port === 9)) { + return resolve(); + } + // Ignore RTCP candidates, we assume RTCP-MUX. + if (cand.component && cand.component !== 1) { + return resolve(); + } + // when using bundle, avoid adding candidates to the wrong + // ice transport. And avoid adding candidates added in the SDP. + if (sdpMLineIndex === 0 || (sdpMLineIndex > 0 && + transceiver.iceTransport !== pc.transceivers[0].iceTransport)) { + if (!maybeAddCandidate(transceiver.iceTransport, cand)) { + return reject(makeError('OperationError', + 'Can not add ICE candidate')); + } + } - throw new Error(messages.EC_PRIVATE_KEY_IMPORT_DER_FAIL); - }, + // update the remoteDescription. + var candidateString = candidate.candidate.trim(); + if (candidateString.indexOf('a=') === 0) { + candidateString = candidateString.substr(2); + } + sections = SDPUtils.getMediaSections(pc._remoteDescription.sdp); + sections[sdpMLineIndex] += 'a=' + + (cand.type ? candidateString : 'end-of-candidates') + + '\r\n'; + pc._remoteDescription.sdp = + SDPUtils.getDescription(pc._remoteDescription.sdp) + + sections.join(''); + } else { + return reject(makeError('OperationError', + 'Can not add ICE candidate')); + } + } + resolve(); + }); + }; - privateKeyNegate: function privateKeyNegate(privateKey) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); + RTCPeerConnection.prototype.getStats = function(selector) { + if (selector && selector instanceof window.MediaStreamTrack) { + var senderOrReceiver = null; + this.transceivers.forEach(function(transceiver) { + if (transceiver.rtpSender && + transceiver.rtpSender.track === selector) { + senderOrReceiver = transceiver.rtpSender; + } else if (transceiver.rtpReceiver && + transceiver.rtpReceiver.track === selector) { + senderOrReceiver = transceiver.rtpReceiver; + } + }); + if (!senderOrReceiver) { + throw makeError('InvalidAccessError', 'Invalid selector.'); + } + return senderOrReceiver.getStats(); + } - return secp256k1.privateKeyNegate(privateKey); - }, + var promises = []; + this.transceivers.forEach(function(transceiver) { + ['rtpSender', 'rtpReceiver', 'iceGatherer', 'iceTransport', + 'dtlsTransport'].forEach(function(method) { + if (transceiver[method]) { + promises.push(transceiver[method].getStats()); + } + }); + }); + return Promise.all(promises).then(function(allStats) { + var results = new Map(); + allStats.forEach(function(stats) { + stats.forEach(function(stat) { + results.set(stat.id, stat); + }); + }); + return results; + }); + }; - privateKeyModInverse: function privateKeyModInverse(privateKey) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); + // fix low-level stat names and return Map instead of object. + var ortcObjects = ['RTCRtpSender', 'RTCRtpReceiver', 'RTCIceGatherer', + 'RTCIceTransport', 'RTCDtlsTransport']; + ortcObjects.forEach(function(ortcObjectName) { + var obj = window[ortcObjectName]; + if (obj && obj.prototype && obj.prototype.getStats) { + var nativeGetstats = obj.prototype.getStats; + obj.prototype.getStats = function() { + return nativeGetstats.apply(this) + .then(function(nativeStats) { + var mapStats = new Map(); + Object.keys(nativeStats).forEach(function(id) { + nativeStats[id].type = fixStatsType(nativeStats[id]); + mapStats.set(id, nativeStats[id]); + }); + return mapStats; + }); + }; + } + }); - return secp256k1.privateKeyModInverse(privateKey); - }, + // legacy callback shims. Should be moved to adapter.js some days. + var methods = ['createOffer', 'createAnswer']; + methods.forEach(function(method) { + var nativeMethod = RTCPeerConnection.prototype[method]; + RTCPeerConnection.prototype[method] = function() { + var args = arguments; + if (typeof args[0] === 'function' || + typeof args[1] === 'function') { // legacy + return nativeMethod.apply(this, [arguments[2]]) + .then(function(description) { + if (typeof args[0] === 'function') { + args[0].apply(null, [description]); + } + }, function(error) { + if (typeof args[1] === 'function') { + args[1].apply(null, [error]); + } + }); + } + return nativeMethod.apply(this, arguments); + }; + }); - privateKeyTweakAdd: function privateKeyTweakAdd(privateKey, tweak) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); + methods = ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate']; + methods.forEach(function(method) { + var nativeMethod = RTCPeerConnection.prototype[method]; + RTCPeerConnection.prototype[method] = function() { + var args = arguments; + if (typeof args[1] === 'function' || + typeof args[2] === 'function') { // legacy + return nativeMethod.apply(this, arguments) + .then(function() { + if (typeof args[1] === 'function') { + args[1].apply(null); + } + }, function(error) { + if (typeof args[2] === 'function') { + args[2].apply(null, [error]); + } + }); + } + return nativeMethod.apply(this, arguments); + }; + }); - assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID); - assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID); + // getStats is special. It doesn't have a spec legacy method yet we support + // getStats(something, cb) without error callbacks. + ['getStats'].forEach(function(method) { + var nativeMethod = RTCPeerConnection.prototype[method]; + RTCPeerConnection.prototype[method] = function() { + var args = arguments; + if (typeof args[1] === 'function') { + return nativeMethod.apply(this, arguments) + .then(function() { + if (typeof args[1] === 'function') { + args[1].apply(null); + } + }); + } + return nativeMethod.apply(this, arguments); + }; + }); - return secp256k1.privateKeyTweakAdd(privateKey, tweak); - }, + return RTCPeerConnection; +}; - privateKeyTweakMul: function privateKeyTweakMul(privateKey, tweak) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +},{"sdp":278}],277:[function(require,module,exports){ +/* eslint-disable node/no-deprecated-api */ +var buffer = require('buffer') +var Buffer = buffer.Buffer - assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID); - assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID); +// 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 +} - return secp256k1.privateKeyTweakMul(privateKey, tweak); - }, +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} - publicKeyCreate: function publicKeyCreate(privateKey, compressed) { - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) - compressed = initCompressedValue(compressed, true); +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} - return secp256k1.publicKeyCreate(privateKey, compressed); - }, +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 +} - 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); +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) +} - compressed = initCompressedValue(compressed, true); +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} - return secp256k1.publicKeyConvert(publicKey, compressed); - }, +},{"buffer":415}],278:[function(require,module,exports){ + /* eslint-env node */ +'use strict'; - publicKeyVerify: function publicKeyVerify(publicKey) { - assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID); - return secp256k1.publicKeyVerify(publicKey); - }, +// SDP helpers. +var SDPUtils = {}; - 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); +// Generate an alphanumeric identifier for cname or mids. +// TODO: use UUIDs instead? https://gist.github.com/jed/982883 +SDPUtils.generateIdentifier = function() { + return Math.random().toString(36).substr(2, 10); +}; - assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID); - assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID); +// The RTCP CNAME used by all peerconnections from the same JS. +SDPUtils.localCName = SDPUtils.generateIdentifier(); - compressed = initCompressedValue(compressed, true); +// Splits SDP into lines, dealing with both CRLF and LF. +SDPUtils.splitLines = function(blob) { + return blob.trim().split('\n').map(function(line) { + return line.trim(); + }); +}; +// Splits SDP into sessionpart and mediasections. Ensures CRLF. +SDPUtils.splitSections = function(blob) { + var parts = blob.split('\nm='); + return parts.map(function(part, index) { + return (index > 0 ? 'm=' + part : part).trim() + '\r\n'; + }); +}; - return secp256k1.publicKeyTweakAdd(publicKey, tweak, compressed); - }, +// returns the session description. +SDPUtils.getDescription = function(blob) { + var sections = SDPUtils.splitSections(blob); + return sections && sections[0]; +}; - 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); +// returns the individual media sections. +SDPUtils.getMediaSections = function(blob) { + var sections = SDPUtils.splitSections(blob); + sections.shift(); + return sections; +}; - assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID); - assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID); +// Returns lines that start with a certain prefix. +SDPUtils.matchPrefix = function(blob, prefix) { + return SDPUtils.splitLines(blob).filter(function(line) { + return line.indexOf(prefix) === 0; + }); +}; - compressed = initCompressedValue(compressed, true); +// Parses an ICE candidate line. Sample input: +// candidate:702786350 2 udp 41819902 8.8.8.8 60769 typ relay raddr 8.8.8.8 +// rport 55996" +SDPUtils.parseCandidate = function(line) { + var parts; + // Parse both variants. + if (line.indexOf('a=candidate:') === 0) { + parts = line.substring(12).split(' '); + } else { + parts = line.substring(10).split(' '); + } - return secp256k1.publicKeyTweakMul(publicKey, tweak, compressed); - }, + var candidate = { + foundation: parts[0], + component: parseInt(parts[1], 10), + protocol: parts[2].toLowerCase(), + priority: parseInt(parts[3], 10), + ip: parts[4], + address: parts[4], // address is an alias for ip. + port: parseInt(parts[5], 10), + // skip parts[6] == 'typ' + type: parts[7] + }; - 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); - } + for (var i = 8; i < parts.length; i += 2) { + switch (parts[i]) { + case 'raddr': + candidate.relatedAddress = parts[i + 1]; + break; + case 'rport': + candidate.relatedPort = parseInt(parts[i + 1], 10); + break; + case 'tcptype': + candidate.tcpType = parts[i + 1]; + break; + case 'ufrag': + candidate.ufrag = parts[i + 1]; // for backward compability. + candidate.usernameFragment = parts[i + 1]; + break; + default: // extension handling, in particular ufrag + candidate[parts[i]] = parts[i + 1]; + break; + } + } + return candidate; +}; - compressed = initCompressedValue(compressed, true); +// Translates a candidate object into SDP candidate attribute. +SDPUtils.writeCandidate = function(candidate) { + var sdp = []; + sdp.push(candidate.foundation); + sdp.push(candidate.component); + sdp.push(candidate.protocol.toUpperCase()); + sdp.push(candidate.priority); + sdp.push(candidate.address || candidate.ip); + sdp.push(candidate.port); - return secp256k1.publicKeyCombine(publicKeys, compressed); - }, + var type = candidate.type; + sdp.push('typ'); + sdp.push(type); + if (type !== 'host' && candidate.relatedAddress && + candidate.relatedPort) { + sdp.push('raddr'); + sdp.push(candidate.relatedAddress); + sdp.push('rport'); + sdp.push(candidate.relatedPort); + } + if (candidate.tcpType && candidate.protocol.toLowerCase() === 'tcp') { + sdp.push('tcptype'); + sdp.push(candidate.tcpType); + } + if (candidate.usernameFragment || candidate.ufrag) { + sdp.push('ufrag'); + sdp.push(candidate.usernameFragment || candidate.ufrag); + } + return 'candidate:' + sdp.join(' '); +}; - signatureNormalize: function signatureNormalize(signature) { - assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID); +// Parses an ice-options line, returns an array of option tags. +// a=ice-options:foo bar +SDPUtils.parseIceOptions = function(line) { + return line.substr(14).split(' '); +}; - return secp256k1.signatureNormalize(signature); - }, +// Parses an rtpmap line, returns RTCRtpCoddecParameters. Sample input: +// a=rtpmap:111 opus/48000/2 +SDPUtils.parseRtpMap = function(line) { + var parts = line.substr(9).split(' '); + var parsed = { + payloadType: parseInt(parts.shift(), 10) // was: id + }; - signatureExport: function signatureExport(signature) { - assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID); + parts = parts[0].split('/'); - var sigObj = secp256k1.signatureExport(signature); - return der.signatureExport(sigObj); - }, + parsed.name = parts[0]; + parsed.clockRate = parseInt(parts[1], 10); // was: clockrate + parsed.channels = parts.length === 3 ? parseInt(parts[2], 10) : 1; + // legacy alias, got renamed back to channels in ORTC. + parsed.numChannels = parsed.channels; + return parsed; +}; - signatureImport: function signatureImport(sig) { - assert.isBuffer(sig, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isLengthGTZero(sig, messages.ECDSA_SIGNATURE_LENGTH_INVALID); +// Generate an a=rtpmap line from RTCRtpCodecCapability or +// RTCRtpCodecParameters. +SDPUtils.writeRtpMap = function(codec) { + var pt = codec.payloadType; + if (codec.preferredPayloadType !== undefined) { + pt = codec.preferredPayloadType; + } + var channels = codec.channels || codec.numChannels || 1; + return 'a=rtpmap:' + pt + ' ' + codec.name + '/' + codec.clockRate + + (channels !== 1 ? '/' + channels : '') + '\r\n'; +}; - var sigObj = der.signatureImport(sig); - if (sigObj) return secp256k1.signatureImport(sigObj); +// Parses an a=extmap line (headerextension from RFC 5285). Sample input: +// a=extmap:2 urn:ietf:params:rtp-hdrext:toffset +// a=extmap:2/sendonly urn:ietf:params:rtp-hdrext:toffset +SDPUtils.parseExtmap = function(line) { + var parts = line.substr(9).split(' '); + return { + id: parseInt(parts[0], 10), + direction: parts[0].indexOf('/') > 0 ? parts[0].split('/')[1] : 'sendrecv', + uri: parts[1] + }; +}; + +// Generates a=extmap line from RTCRtpHeaderExtensionParameters or +// RTCRtpHeaderExtension. +SDPUtils.writeExtmap = function(headerExtension) { + return 'a=extmap:' + (headerExtension.id || headerExtension.preferredId) + + (headerExtension.direction && headerExtension.direction !== 'sendrecv' + ? '/' + headerExtension.direction + : '') + + ' ' + headerExtension.uri + '\r\n'; +}; + +// Parses an ftmp line, returns dictionary. Sample input: +// a=fmtp:96 vbr=on;cng=on +// Also deals with vbr=on; cng=on +SDPUtils.parseFmtp = function(line) { + var parsed = {}; + var kv; + var parts = line.substr(line.indexOf(' ') + 1).split(';'); + for (var j = 0; j < parts.length; j++) { + kv = parts[j].trim().split('='); + parsed[kv[0].trim()] = kv[1]; + } + return parsed; +}; + +// Generates an a=ftmp line from RTCRtpCodecCapability or RTCRtpCodecParameters. +SDPUtils.writeFmtp = function(codec) { + var line = ''; + var pt = codec.payloadType; + if (codec.preferredPayloadType !== undefined) { + pt = codec.preferredPayloadType; + } + if (codec.parameters && Object.keys(codec.parameters).length) { + var params = []; + Object.keys(codec.parameters).forEach(function(param) { + if (codec.parameters[param]) { + params.push(param + '=' + codec.parameters[param]); + } else { + params.push(param); + } + }); + line += 'a=fmtp:' + pt + ' ' + params.join(';') + '\r\n'; + } + return line; +}; - throw new Error(messages.ECDSA_SIGNATURE_PARSE_DER_FAIL); - }, +// Parses an rtcp-fb line, returns RTCPRtcpFeedback object. Sample input: +// a=rtcp-fb:98 nack rpsi +SDPUtils.parseRtcpFb = function(line) { + var parts = line.substr(line.indexOf(' ') + 1).split(' '); + return { + type: parts.shift(), + parameter: parts.join(' ') + }; +}; +// Generate a=rtcp-fb lines from RTCRtpCodecCapability or RTCRtpCodecParameters. +SDPUtils.writeRtcpFb = function(codec) { + var lines = ''; + var pt = codec.payloadType; + if (codec.preferredPayloadType !== undefined) { + pt = codec.preferredPayloadType; + } + if (codec.rtcpFeedback && codec.rtcpFeedback.length) { + // FIXME: special handling for trr-int? + codec.rtcpFeedback.forEach(function(fb) { + lines += 'a=rtcp-fb:' + pt + ' ' + fb.type + + (fb.parameter && fb.parameter.length ? ' ' + fb.parameter : '') + + '\r\n'; + }); + } + return lines; +}; - signatureImportLax: function signatureImportLax(sig) { - assert.isBuffer(sig, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isLengthGTZero(sig, messages.ECDSA_SIGNATURE_LENGTH_INVALID); +// Parses an RFC 5576 ssrc media attribute. Sample input: +// a=ssrc:3735928559 cname:something +SDPUtils.parseSsrcMedia = function(line) { + var sp = line.indexOf(' '); + var parts = { + ssrc: parseInt(line.substr(7, sp - 7), 10) + }; + var colon = line.indexOf(':', sp); + if (colon > -1) { + parts.attribute = line.substr(sp + 1, colon - sp - 1); + parts.value = line.substr(colon + 1); + } else { + parts.attribute = line.substr(sp + 1); + } + return parts; +}; - var sigObj = der.signatureImportLax(sig); - if (sigObj) return secp256k1.signatureImport(sigObj); +SDPUtils.parseSsrcGroup = function(line) { + var parts = line.substr(13).split(' '); + return { + semantics: parts.shift(), + ssrcs: parts.map(function(ssrc) { + return parseInt(ssrc, 10); + }) + }; +}; - throw new Error(messages.ECDSA_SIGNATURE_PARSE_DER_FAIL); - }, +// Extracts the MID (RFC 5888) from a media section. +// returns the MID or undefined if no mid line was found. +SDPUtils.getMid = function(mediaSection) { + var mid = SDPUtils.matchPrefix(mediaSection, 'a=mid:')[0]; + if (mid) { + return mid.substr(6); + } +}; - sign: function sign(message, privateKey, options) { - assert.isBuffer(message, messages.MSG32_TYPE_INVALID); - assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID); +SDPUtils.parseFingerprint = function(line) { + var parts = line.substr(14).split(' '); + return { + algorithm: parts[0].toLowerCase(), // algorithm is case-sensitive in Edge. + value: parts[1] + }; +}; - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +// Extracts DTLS parameters from SDP media section or sessionpart. +// FIXME: for consistency with other functions this should only +// get the fingerprint line as input. See also getIceParameters. +SDPUtils.getDtlsParameters = function(mediaSection, sessionpart) { + var lines = SDPUtils.matchPrefix(mediaSection + sessionpart, + 'a=fingerprint:'); + // Note: a=setup line is ignored since we use the 'auto' role. + // Note2: 'algorithm' is not case sensitive except in Edge. + return { + role: 'auto', + fingerprints: lines.map(SDPUtils.parseFingerprint) + }; +}; - var data = null; - var noncefn = null; - if (options !== undefined) { - assert.isObject(options, messages.OPTIONS_TYPE_INVALID); +// Serializes DTLS parameters to SDP. +SDPUtils.writeDtlsParameters = function(params, setupType) { + var sdp = 'a=setup:' + setupType + '\r\n'; + params.fingerprints.forEach(function(fp) { + sdp += 'a=fingerprint:' + fp.algorithm + ' ' + fp.value + '\r\n'; + }); + return sdp; +}; +// Parses ICE information from SDP media section or sessionpart. +// FIXME: for consistency with other functions this should only +// get the ice-ufrag and ice-pwd lines as input. +SDPUtils.getIceParameters = function(mediaSection, sessionpart) { + var lines = SDPUtils.splitLines(mediaSection); + // Search in session part, too. + lines = lines.concat(SDPUtils.splitLines(sessionpart)); + var iceParameters = { + usernameFragment: lines.filter(function(line) { + return line.indexOf('a=ice-ufrag:') === 0; + })[0].substr(12), + password: lines.filter(function(line) { + return line.indexOf('a=ice-pwd:') === 0; + })[0].substr(10) + }; + return iceParameters; +}; + +// Serializes ICE parameters to SDP. +SDPUtils.writeIceParameters = function(params) { + return 'a=ice-ufrag:' + params.usernameFragment + '\r\n' + + 'a=ice-pwd:' + params.password + '\r\n'; +}; + +// Parses the SDP media section and returns RTCRtpParameters. +SDPUtils.parseRtpParameters = function(mediaSection) { + var description = { + codecs: [], + headerExtensions: [], + fecMechanisms: [], + rtcp: [] + }; + var lines = SDPUtils.splitLines(mediaSection); + var mline = lines[0].split(' '); + for (var i = 3; i < mline.length; i++) { // find all codecs from mline[3..] + var pt = mline[i]; + var rtpmapline = SDPUtils.matchPrefix( + mediaSection, 'a=rtpmap:' + pt + ' ')[0]; + if (rtpmapline) { + var codec = SDPUtils.parseRtpMap(rtpmapline); + var fmtps = SDPUtils.matchPrefix( + mediaSection, 'a=fmtp:' + pt + ' '); + // Only the first a=fmtp: is considered. + codec.parameters = fmtps.length ? SDPUtils.parseFmtp(fmtps[0]) : {}; + codec.rtcpFeedback = SDPUtils.matchPrefix( + mediaSection, 'a=rtcp-fb:' + pt + ' ') + .map(SDPUtils.parseRtcpFb); + description.codecs.push(codec); + // parse FEC mechanisms from rtpmap lines. + switch (codec.name.toUpperCase()) { + case 'RED': + case 'ULPFEC': + description.fecMechanisms.push(codec.name.toUpperCase()); + break; + default: // only RED and ULPFEC are recognized as FEC mechanisms. + break; + } + } + } + SDPUtils.matchPrefix(mediaSection, 'a=extmap:').forEach(function(line) { + description.headerExtensions.push(SDPUtils.parseExtmap(line)); + }); + // FIXME: parse rtcp. + return description; +}; + +// Generates parts of the SDP media section describing the capabilities / +// parameters. +SDPUtils.writeRtpDescription = function(kind, caps) { + var sdp = ''; + + // Build the mline. + sdp += 'm=' + kind + ' '; + sdp += caps.codecs.length > 0 ? '9' : '0'; // reject if no codecs. + sdp += ' UDP/TLS/RTP/SAVPF '; + sdp += caps.codecs.map(function(codec) { + if (codec.preferredPayloadType !== undefined) { + return codec.preferredPayloadType; + } + return codec.payloadType; + }).join(' ') + '\r\n'; + + sdp += 'c=IN IP4 0.0.0.0\r\n'; + sdp += 'a=rtcp:9 IN IP4 0.0.0.0\r\n'; + + // Add a=rtpmap lines for each codec. Also fmtp and rtcp-fb. + caps.codecs.forEach(function(codec) { + sdp += SDPUtils.writeRtpMap(codec); + sdp += SDPUtils.writeFmtp(codec); + sdp += SDPUtils.writeRtcpFb(codec); + }); + var maxptime = 0; + caps.codecs.forEach(function(codec) { + if (codec.maxptime > maxptime) { + maxptime = codec.maxptime; + } + }); + if (maxptime > 0) { + sdp += 'a=maxptime:' + maxptime + '\r\n'; + } + sdp += 'a=rtcp-mux\r\n'; - 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 (caps.headerExtensions) { + caps.headerExtensions.forEach(function(extension) { + sdp += SDPUtils.writeExtmap(extension); + }); + } + // FIXME: write fecMechanisms. + return sdp; +}; + +// Parses the SDP media section and returns an array of +// RTCRtpEncodingParameters. +SDPUtils.parseRtpEncodingParameters = function(mediaSection) { + var encodingParameters = []; + var description = SDPUtils.parseRtpParameters(mediaSection); + var hasRed = description.fecMechanisms.indexOf('RED') !== -1; + var hasUlpfec = description.fecMechanisms.indexOf('ULPFEC') !== -1; + + // filter a=ssrc:... cname:, ignore PlanB-msid + var ssrcs = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') + .map(function(line) { + return SDPUtils.parseSsrcMedia(line); + }) + .filter(function(parts) { + return parts.attribute === 'cname'; + }); + var primarySsrc = ssrcs.length > 0 && ssrcs[0].ssrc; + var secondarySsrc; + + var flows = SDPUtils.matchPrefix(mediaSection, 'a=ssrc-group:FID') + .map(function(line) { + var parts = line.substr(17).split(' '); + return parts.map(function(part) { + return parseInt(part, 10); + }); + }); + if (flows.length > 0 && flows[0].length > 1 && flows[0][0] === primarySsrc) { + secondarySsrc = flows[0][1]; + } - if (options.noncefn !== undefined) { - assert.isFunction(options.noncefn, messages.OPTIONS_NONCEFN_TYPE_INVALID); - noncefn = options.noncefn; - } + description.codecs.forEach(function(codec) { + if (codec.name.toUpperCase() === 'RTX' && codec.parameters.apt) { + var encParam = { + ssrc: primarySsrc, + codecPayloadType: parseInt(codec.parameters.apt, 10) + }; + if (primarySsrc && secondarySsrc) { + encParam.rtx = {ssrc: secondarySsrc}; + } + encodingParameters.push(encParam); + if (hasRed) { + encParam = JSON.parse(JSON.stringify(encParam)); + encParam.fec = { + ssrc: primarySsrc, + mechanism: hasUlpfec ? 'red+ulpfec' : 'red' + }; + encodingParameters.push(encParam); } + } + }); + if (encodingParameters.length === 0 && primarySsrc) { + encodingParameters.push({ + ssrc: primarySsrc + }); + } - return secp256k1.sign(message, privateKey, noncefn, data); - }, + // we support both b=AS and b=TIAS but interpret AS as TIAS. + var bandwidth = SDPUtils.matchPrefix(mediaSection, 'b='); + if (bandwidth.length) { + if (bandwidth[0].indexOf('b=TIAS:') === 0) { + bandwidth = parseInt(bandwidth[0].substr(7), 10); + } else if (bandwidth[0].indexOf('b=AS:') === 0) { + // use formula from JSEP to convert b=AS to TIAS value. + bandwidth = parseInt(bandwidth[0].substr(5), 10) * 1000 * 0.95 + - (50 * 40 * 8); + } else { + bandwidth = undefined; + } + encodingParameters.forEach(function(params) { + params.maxBitrate = bandwidth; + }); + } + return encodingParameters; +}; + +// parses http://draft.ortc.org/#rtcrtcpparameters* +SDPUtils.parseRtcpParameters = function(mediaSection) { + var rtcpParameters = {}; + + // Gets the first SSRC. Note tha with RTX there might be multiple + // SSRCs. + var remoteSsrc = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') + .map(function(line) { + return SDPUtils.parseSsrcMedia(line); + }) + .filter(function(obj) { + return obj.attribute === 'cname'; + })[0]; + if (remoteSsrc) { + rtcpParameters.cname = remoteSsrc.value; + rtcpParameters.ssrc = remoteSsrc.ssrc; + } + + // Edge uses the compound attribute instead of reducedSize + // compound is !reducedSize + var rsize = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-rsize'); + rtcpParameters.reducedSize = rsize.length > 0; + rtcpParameters.compound = rsize.length === 0; + + // parses the rtcp-mux attrіbute. + // Note that Edge does not support unmuxed RTCP. + var mux = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-mux'); + rtcpParameters.mux = mux.length > 0; + + return rtcpParameters; +}; + +// parses either a=msid: or a=ssrc:... msid lines and returns +// the id of the MediaStream and MediaStreamTrack. +SDPUtils.parseMsid = function(mediaSection) { + var parts; + var spec = SDPUtils.matchPrefix(mediaSection, 'a=msid:'); + if (spec.length === 1) { + parts = spec[0].substr(7).split(' '); + return {stream: parts[0], track: parts[1]}; + } + var planB = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') + .map(function(line) { + return SDPUtils.parseSsrcMedia(line); + }) + .filter(function(msidParts) { + return msidParts.attribute === 'msid'; + }); + if (planB.length > 0) { + parts = planB[0].value.split(' '); + return {stream: parts[0], track: parts[1]}; + } +}; + +// Generate a session ID for SDP. +// https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-20#section-5.2.1 +// recommends using a cryptographically random +ve 64-bit value +// but right now this should be acceptable and within the right range +SDPUtils.generateSessionId = function() { + return Math.random().toString().substr(2, 21); +}; + +// Write boilder plate for start of SDP +// sessId argument is optional - if not supplied it will +// be generated randomly +// sessVersion is optional and defaults to 2 +// sessUser is optional and defaults to 'thisisadapterortc' +SDPUtils.writeSessionBoilerplate = function(sessId, sessVer, sessUser) { + var sessionId; + var version = sessVer !== undefined ? sessVer : 2; + if (sessId) { + sessionId = sessId; + } else { + sessionId = SDPUtils.generateSessionId(); + } + var user = sessUser || 'thisisadapterortc'; + // FIXME: sess-id should be an NTP timestamp. + return 'v=0\r\n' + + 'o=' + user + ' ' + sessionId + ' ' + version + + ' IN IP4 127.0.0.1\r\n' + + 's=-\r\n' + + 't=0 0\r\n'; +}; + +SDPUtils.writeMediaSection = function(transceiver, caps, type, stream) { + var sdp = SDPUtils.writeRtpDescription(transceiver.kind, caps); + + // Map ICE parameters (ufrag, pwd) to SDP. + sdp += SDPUtils.writeIceParameters( + transceiver.iceGatherer.getLocalParameters()); + + // Map DTLS parameters to SDP. + sdp += SDPUtils.writeDtlsParameters( + transceiver.dtlsTransport.getLocalParameters(), + type === 'offer' ? 'actpass' : 'active'); + + sdp += 'a=mid:' + transceiver.mid + '\r\n'; + + if (transceiver.direction) { + sdp += 'a=' + transceiver.direction + '\r\n'; + } else if (transceiver.rtpSender && transceiver.rtpReceiver) { + sdp += 'a=sendrecv\r\n'; + } else if (transceiver.rtpSender) { + sdp += 'a=sendonly\r\n'; + } else if (transceiver.rtpReceiver) { + sdp += 'a=recvonly\r\n'; + } else { + sdp += 'a=inactive\r\n'; + } - verify: function verify(message, signature, publicKey) { - assert.isBuffer(message, messages.MSG32_TYPE_INVALID); - assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID); + if (transceiver.rtpSender) { + // spec. + var msid = 'msid:' + stream.id + ' ' + + transceiver.rtpSender.track.id + '\r\n'; + sdp += 'a=' + msid; - assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID); + // for Chrome. + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc + + ' ' + msid; + if (transceiver.sendEncodingParameters[0].rtx) { + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + + ' ' + msid; + sdp += 'a=ssrc-group:FID ' + + transceiver.sendEncodingParameters[0].ssrc + ' ' + + transceiver.sendEncodingParameters[0].rtx.ssrc + + '\r\n'; + } + } + // FIXME: this should be written by writeRtpDescription. + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc + + ' cname:' + SDPUtils.localCName + '\r\n'; + if (transceiver.rtpSender && transceiver.sendEncodingParameters[0].rtx) { + sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + + ' cname:' + SDPUtils.localCName + '\r\n'; + } + return sdp; +}; - assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID); - assert.isBufferLength2(publicKey, 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID); +// Gets the direction from the mediaSection or the sessionpart. +SDPUtils.getDirection = function(mediaSection, sessionpart) { + // Look for sendrecv, sendonly, recvonly, inactive, default to sendrecv. + var lines = SDPUtils.splitLines(mediaSection); + for (var i = 0; i < lines.length; i++) { + switch (lines[i]) { + case 'a=sendrecv': + case 'a=sendonly': + case 'a=recvonly': + case 'a=inactive': + return lines[i].substr(2); + default: + // FIXME: What should happen here? + } + } + if (sessionpart) { + return SDPUtils.getDirection(sessionpart); + } + return 'sendrecv'; +}; - return secp256k1.verify(message, signature, publicKey); - }, +SDPUtils.getKind = function(mediaSection) { + var lines = SDPUtils.splitLines(mediaSection); + var mline = lines[0].split(' '); + return mline[0].substr(2); +}; - recover: function recover(message, signature, recovery, compressed) { - assert.isBuffer(message, messages.MSG32_TYPE_INVALID); - assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID); +SDPUtils.isRejected = function(mediaSection) { + return mediaSection.split(' ', 2)[1] === '0'; +}; - assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID); - assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID); +SDPUtils.parseMLine = function(mediaSection) { + var lines = SDPUtils.splitLines(mediaSection); + var parts = lines[0].substr(2).split(' '); + return { + kind: parts[0], + port: parseInt(parts[1], 10), + protocol: parts[2], + fmt: parts.slice(3).join(' ') + }; +}; - assert.isNumber(recovery, messages.RECOVERY_ID_TYPE_INVALID); - assert.isNumberInInterval(recovery, -1, 4, messages.RECOVERY_ID_VALUE_INVALID); +SDPUtils.parseOLine = function(mediaSection) { + var line = SDPUtils.matchPrefix(mediaSection, 'o=')[0]; + var parts = line.substr(2).split(' '); + return { + username: parts[0], + sessionId: parts[1], + sessionVersion: parseInt(parts[2], 10), + netType: parts[3], + addressType: parts[4], + address: parts[5] + }; +}; - compressed = initCompressedValue(compressed, true); +// a very naive interpretation of a valid SDP. +SDPUtils.isValidSDP = function(blob) { + if (typeof blob !== 'string' || blob.length === 0) { + return false; + } + var lines = SDPUtils.splitLines(blob); + for (var i = 0; i < lines.length; i++) { + if (lines[i].length < 2 || lines[i].charAt(1) !== '=') { + return false; + } + // TODO: check the modifier a bit more. + } + return true; +}; - return secp256k1.recover(message, signature, recovery, compressed); - }, +// Expose public methods. +if (typeof module === 'object') { + module.exports = SDPUtils; +} - 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); +},{}],279:[function(require,module,exports){ +'use strict' +module.exports = require('./lib')(require('./lib/elliptic')) - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +},{"./lib":283,"./lib/elliptic":282}],280:[function(require,module,exports){ +(function (Buffer){ +'use strict' +var toString = Object.prototype.toString - return secp256k1.ecdh(publicKey, privateKey); - }, +// TypeError +exports.isArray = function (value, message) { + if (!Array.isArray(value)) throw TypeError(message) +} - 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); +exports.isBoolean = function (value, message) { + if (toString.call(value) !== '[object Boolean]') throw TypeError(message) +} - assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID); - assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID); +exports.isBuffer = function (value, message) { + if (!Buffer.isBuffer(value)) throw TypeError(message) +} - compressed = initCompressedValue(compressed, true); +exports.isFunction = function (value, message) { + if (toString.call(value) !== '[object Function]') throw TypeError(message) +} - return secp256k1.ecdhUnsafe(publicKey, privateKey, compressed); - } - }; -}; +exports.isNumber = function (value, message) { + if (toString.call(value) !== '[object Number]') throw TypeError(message) +} -},{"./assert":278,"./der":279,"./messages.json":282}],282:[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_RANGE_INVALID": "private key range 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" +exports.isObject = function (value, message) { + if (toString.call(value) !== '[object Object]') throw TypeError(message) } -},{}],283:[function(require,module,exports){ -'use strict'; +// RangeError +exports.isBufferLength = function (buffer, length, message) { + if (buffer.length !== length) throw RangeError(message) +} -var Buffer = require('safe-buffer').Buffer; +exports.isBufferLength2 = function (buffer, length1, length2, message) { + if (buffer.length !== length1 && buffer.length !== length2) throw RangeError(message) +} -// prototype class for hash functions -function Hash(blockSize, finalSize) { - this._block = Buffer.alloc(blockSize); - this._finalSize = finalSize; - this._blockSize = blockSize; - this._len = 0; +exports.isLengthGTZero = function (value, message) { + if (value.length === 0) throw RangeError(message) } -Hash.prototype.update = function (data, enc) { - if (typeof data === 'string') { - enc = enc || 'utf8'; - data = Buffer.from(data, enc); - } +exports.isNumberInInterval = function (number, x, y, message) { + if (number <= x || number >= y) throw RangeError(message) +} - var block = this._block; - var blockSize = this._blockSize; - var length = data.length; - var accum = this._len; +}).call(this,{"isBuffer":require("../../../../../is-buffer/index.js")}) +},{"../../../../../is-buffer/index.js":897}],281:[function(require,module,exports){ +'use strict' +var Buffer = require('safe-buffer').Buffer +var bip66 = require('bip66') - for (var offset = 0; offset < length;) { - var assigned = accum % blockSize; - var remainder = Math.min(length - offset, blockSize - assigned); +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 +]) - for (var i = 0; i < remainder; i++) { - block[assigned + i] = data[offset + i]; - } +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 +]) - accum += remainder; - offset += remainder; +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 +} - if (accum % blockSize === 0) { - this._update(block); - } - } +exports.privateKeyImport = function (privateKey) { + var length = privateKey.length - this._len += length; - return this; -}; + // sequence header + var index = 0 + if (length < index + 1 || privateKey[index] !== 0x30) return + index += 1 -Hash.prototype.digest = function (enc) { - var rem = this._len % this._blockSize; + // sequence length constructor + if (length < index + 1 || !(privateKey[index] & 0x80)) return - this._block[rem] = 0x80; + var lenb = privateKey[index] & 0x7f + index += 1 + if (lenb < 1 || lenb > 2) return + if (length < index + lenb) return - // 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); + // sequence length + var len = privateKey[index + lenb - 1] | (lenb > 1 ? privateKey[index + lenb - 2] << 8 : 0) + index += lenb + if (length < index + len) return - if (rem >= this._finalSize) { - this._update(this._block); - this._block.fill(0); + // sequence element 0: version number (=1) + if (length < index + 3 || + privateKey[index] !== 0x02 || + privateKey[index + 1] !== 0x01 || + privateKey[index + 2] !== 0x01) { + return } + index += 3 - var bits = this._len * 8; - - // uint32 - if (bits <= 0xffffffff) { - this._block.writeUInt32BE(bits, this._blockSize - 4); - - // uint64 - } else { - var lowBits = (bits & 0xffffffff) >>> 0; - var highBits = (bits - lowBits) / 0x100000000; - - this._block.writeUInt32BE(highBits, this._blockSize - 8); - this._block.writeUInt32BE(lowBits, this._blockSize - 4); + // 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 } - 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; + return privateKey.slice(index + 2, index + 2 + privateKey[index + 1]) +} -},{"safe-buffer":276}],284:[function(require,module,exports){ -'use strict'; +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 _exports = module.exports = function SHA(algorithm) { - algorithm = algorithm.toLowerCase(); + 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); - var Algorithm = _exports[algorithm]; - if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)'); + return bip66.encode(r.slice(posR), s.slice(posS)) +} - return new Algorithm(); -}; +exports.signatureImport = function (sig) { + var r = Buffer.alloc(32, 0) + var s = Buffer.alloc(32, 0) -_exports.sha = require('./sha'); -_exports.sha1 = require('./sha1'); -_exports.sha224 = require('./sha224'); -_exports.sha256 = require('./sha256'); -_exports.sha384 = require('./sha384'); -_exports.sha512 = require('./sha512'); + 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 + } -},{"./sha":285,"./sha1":286,"./sha224":287,"./sha256":288,"./sha384":289,"./sha512":290}],285:[function(require,module,exports){ -'use strict'; + sigObj.r.copy(r, 32 - sigObj.r.length) + sigObj.s.copy(s, 32 - sigObj.s.length) -/* - * 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. - */ + return { r: r, s: s } +} -var inherits = require('inherits'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; +exports.signatureImportLax = function (sig) { + var r = Buffer.alloc(32, 0) + var s = Buffer.alloc(32, 0) -var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0]; + var length = sig.length + var index = 0 -var W = new Array(80); + // sequence tag byte + if (sig[index++] !== 0x30) return -function Sha() { - this.init(); - this._w = W; + // sequence length byte + var lenbyte = sig[index++] + if (lenbyte & 0x80) { + index += lenbyte - 0x80 + if (index > length) return + } - Hash.call(this, 64, 56); -} + // sequence tag byte for r + if (sig[index++] !== 0x02) return -inherits(Sha, Hash); + // 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 -Sha.prototype.init = function () { - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; - this._e = 0xc3d2e1f0; + // sequence tag byte for s + if (sig[index++] !== 0x02) return - return this; -}; + // 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 -function rotl5(num) { - return num << 5 | num >>> 27; -} + // 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) -function rotl30(num) { - return num << 30 | num >>> 2; -} + // 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) -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; + return { r: r, s: s } } -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; - } +},{"bip66":180,"safe-buffer":277}],282:[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 - 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; -}; +var messages = require('../messages.json') -Sha.prototype._hash = function () { - var H = Buffer.allocUnsafe(20); +var ec = new EC('secp256k1') +var ecparams = ec.curve - 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); +function loadCompressedPublicKey (first, xBuffer) { + var x = new BN(xBuffer) - return H; -}; + // overflow + if (x.cmp(ecparams.p) >= 0) return null + x = x.toRed(ecparams.red) -module.exports = Sha; + // compute corresponding Y + var y = x.redSqr().redIMul(x).redIAdd(ecparams.b).redSqrt() + if ((first === 0x03) !== y.isOdd()) y = y.redNeg() -},{"./hash":283,"inherits":247,"safe-buffer":276}],286:[function(require,module,exports){ -'use strict'; + return ec.keyPair({ pub: { x: x, y: y } }) +} -/* - * 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. - */ +function loadUncompressedPublicKey (first, xBuffer, yBuffer) { + var x = new BN(xBuffer) + var y = new BN(yBuffer) -var inherits = require('inherits'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; + // overflow + if (x.cmp(ecparams.p) >= 0 || y.cmp(ecparams.p) >= 0) return null -var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0]; + x = x.toRed(ecparams.red) + y = y.toRed(ecparams.red) -var W = new Array(80); + // is odd flag + if ((first === 0x06 || first === 0x07) && y.isOdd() !== (first === 0x07)) return null -function Sha1() { - this.init(); - this._w = W; + // x*x*x + b = y*y + var x3 = x.redSqr().redIMul(x) + if (!y.redSqr().redISub(x3.redIAdd(ecparams.b)).isZero()) return null - Hash.call(this, 64, 56); + return ec.keyPair({ pub: { x: x, y: y } }) } -inherits(Sha1, Hash); +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 + } +} -Sha1.prototype.init = function () { - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; - this._e = 0xc3d2e1f0; +exports.privateKeyVerify = function (privateKey) { + var bn = new BN(privateKey) + return bn.cmp(ecparams.n) < 0 && !bn.isZero() +} - return this; -}; +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) -function rotl1(num) { - return num << 1 | num >>> 31; + return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true)) } -function rotl5(num) { - return num << 5 | num >>> 27; +exports.privateKeyNegate = function (privateKey) { + var bn = new BN(privateKey) + return bn.isZero() ? Buffer.alloc(32) : ecparams.n.sub(bn).umod(ecparams.n).toArrayLike(Buffer, 'be', 32) } -function rotl30(num) { - return num << 30 | num >>> 2; -} +exports.privateKeyModInverse = function (privateKey) { + var bn = new BN(privateKey) + if (bn.cmp(ecparams.n) >= 0 || bn.isZero()) throw new Error(messages.EC_PRIVATE_KEY_RANGE_INVALID) -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; + return bn.invm(ecparams.n).toArrayLike(Buffer, 'be', 32) } -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; +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) - e = d; - d = c; - c = rotl30(b); - b = a; - a = t; - } + 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) - 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; -}; + return bn.toArrayLike(Buffer, 'be', 32) +} -Sha1.prototype._hash = function () { - var H = Buffer.allocUnsafe(20); +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) - 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); + bn.imul(new BN(privateKey)) + if (bn.cmp(ecparams.n)) bn = bn.umod(ecparams.n) - return H; -}; + return bn.toArrayLike(Buffer, 'be', 32) +} -module.exports = Sha1; +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) -},{"./hash":283,"inherits":247,"safe-buffer":276}],287:[function(require,module,exports){ -'use strict'; + return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true)) +} -/** - * 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 - * - */ +exports.publicKeyConvert = function (publicKey, compressed) { + var pair = loadPublicKey(publicKey) + if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL) -var inherits = require('inherits'); -var Sha256 = require('./sha256'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; + return Buffer.from(pair.getPublic(compressed, true)) +} -var W = new Array(64); +exports.publicKeyVerify = function (publicKey) { + return loadPublicKey(publicKey) !== null +} -function Sha224() { - this.init(); +exports.publicKeyTweakAdd = function (publicKey, tweak, compressed) { + var pair = loadPublicKey(publicKey) + if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL) - this._w = W; // new Array(64) + tweak = new BN(tweak) + if (tweak.cmp(ecparams.n) >= 0) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL) - Hash.call(this, 64, 56); + return Buffer.from(ecparams.g.mul(tweak).add(pair.pub).encode(true, compressed)) } -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; +exports.publicKeyTweakMul = function (publicKey, tweak, compressed) { + var pair = loadPublicKey(publicKey) + if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL) - return this; -}; + tweak = new BN(tweak) + if (tweak.cmp(ecparams.n) >= 0 || tweak.isZero()) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_MUL_FAIL) -Sha224.prototype._hash = function () { - var H = Buffer.allocUnsafe(28); + return Buffer.from(pair.pub.mul(tweak).encode(true, compressed)) +} - 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); +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) + } - return H; -}; + 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) -module.exports = Sha224; + return Buffer.from(point.encode(true, compressed)) +} -},{"./hash":283,"./sha256":288,"inherits":247,"safe-buffer":276}],288:[function(require,module,exports){ -'use strict'; +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) -/** - * 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 result = Buffer.from(signature) + if (s.cmp(ec.nh) === 1) ecparams.n.sub(s).toArrayLike(Buffer, 'be', 32).copy(result, 32) -var inherits = require('inherits'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; + return result +} -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]; +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) -var W = new Array(64); + return { r: r, s: s } +} -function Sha256() { - this.init(); +exports.signatureImport = function (sigObj) { + var r = new BN(sigObj.r) + if (r.cmp(ecparams.n) >= 0) r = new BN(0) - this._w = W; // new Array(64) + var s = new BN(sigObj.s) + if (s.cmp(ecparams.n) >= 0) s = new BN(0) - Hash.call(this, 64, 56); + return Buffer.concat([ + r.toArrayLike(Buffer, 'be', 32), + s.toArrayLike(Buffer, 'be', 32) + ]) } -inherits(Sha256, Hash); +exports.sign = function (message, privateKey, noncefn, data) { + if (typeof noncefn === 'function') { + var getNonce = noncefn + noncefn = function (counter) { + var nonce = getNonce(message, privateKey, null, data, counter) + if (!Buffer.isBuffer(nonce) || nonce.length !== 32) throw new Error(messages.ECDSA_SIGN_FAIL) -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 new BN(nonce) + } + } - return this; -}; + var d = new BN(privateKey) + if (d.cmp(ecparams.n) >= 0 || d.isZero()) throw new Error(messages.ECDSA_SIGN_FAIL) -function ch(x, y, z) { - return z ^ x & (y ^ z); + 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 + } } -function maj(x, y, z) { - return x & y | z & (x | y); +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}) } -function sigma0(x) { - return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10); +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) + } } -function sigma1(x) { - return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7); +exports.ecdh = function (publicKey, privateKey) { + var shared = exports.ecdhUnsafe(publicKey, privateKey, true) + return createHash('sha256').update(shared).digest() } -function gamma0(x) { - return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ x >>> 3; +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)) } -function gamma1(x) { - return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ x >>> 10; +},{"../messages.json":284,"bn.js":182,"create-hash":190,"elliptic":196,"safe-buffer":277}],283:[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 } -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; +module.exports = function (secp256k1) { + return { + privateKeyVerify: function (privateKey) { + assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID) + return privateKey.length === 32 && secp256k1.privateKeyVerify(privateKey) + }, - h = g; - g = f; - f = e; - e = d + T1 | 0; - d = c; - c = b; - b = a; - a = T1 + T2 | 0; + privateKeyExport: function (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 (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) + }, + + privateKeyNegate: function (privateKey) { + assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID) + assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID) + + return secp256k1.privateKeyNegate(privateKey) + }, + + privateKeyModInverse: function (privateKey) { + assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID) + assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID) + + return secp256k1.privateKeyModInverse(privateKey) + }, + + privateKeyTweakAdd: function (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 (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 (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 (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 (publicKey) { + assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID) + return secp256k1.publicKeyVerify(publicKey) + }, + + publicKeyTweakAdd: function (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 (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 (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 (signature) { + assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID) + assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID) + + return secp256k1.signatureNormalize(signature) + }, + + signatureExport: function (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 (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 (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 (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 (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 (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 (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 (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) + } } +} - 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; -}; +},{"./assert":280,"./der":281,"./messages.json":284}],284:[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_RANGE_INVALID": "private key range 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" +} -Sha256.prototype._hash = function () { - var H = Buffer.allocUnsafe(32); +},{}],285:[function(require,module,exports){ +var Buffer = require('safe-buffer').Buffer - 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); +// prototype class for hash functions +function Hash (blockSize, finalSize) { + this._block = Buffer.alloc(blockSize) + this._finalSize = finalSize + this._blockSize = blockSize + this._len = 0 +} - return H; -}; +Hash.prototype.update = function (data, enc) { + if (typeof data === 'string') { + enc = enc || 'utf8' + data = Buffer.from(data, enc) + } -module.exports = Sha256; + var block = this._block + var blockSize = this._blockSize + var length = data.length + var accum = this._len -},{"./hash":283,"inherits":247,"safe-buffer":276}],289:[function(require,module,exports){ -'use strict'; + for (var offset = 0; offset < length;) { + var assigned = accum % blockSize + var remainder = Math.min(length - offset, blockSize - assigned) -var inherits = require('inherits'); -var SHA512 = require('./sha512'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; + for (var i = 0; i < remainder; i++) { + block[assigned + i] = data[offset + i] + } -var W = new Array(160); + accum += remainder + offset += remainder -function Sha384() { - this.init(); - this._w = W; + if ((accum % blockSize) === 0) { + this._update(block) + } + } - Hash.call(this, 128, 112); + this._len += length + return this } -inherits(Sha384, SHA512); +Hash.prototype.digest = function (enc) { + var rem = this._len % this._blockSize -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; + this._block[rem] = 0x80 - return this; -}; + // 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) -Sha384.prototype._hash = function () { - var H = Buffer.allocUnsafe(48); + 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) >>> 0 + var highBits = (bits - lowBits) / 0x100000000 - function writeInt64BE(h, l, offset) { - H.writeInt32BE(h, offset); - H.writeInt32BE(l, offset + 4); + this._block.writeUInt32BE(highBits, this._blockSize - 8) + this._block.writeUInt32BE(lowBits, this._blockSize - 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); + this._update(this._block) + var hash = this._hash() - return H; -}; + return enc ? hash.toString(enc) : hash +} -module.exports = Sha384; +Hash.prototype._update = function () { + throw new Error('_update must be implemented by subclass') +} -},{"./hash":283,"./sha512":290,"inherits":247,"safe-buffer":276}],290:[function(require,module,exports){ -'use strict'; +module.exports = Hash -var inherits = require('inherits'); -var Hash = require('./hash'); -var Buffer = require('safe-buffer').Buffer; +},{"safe-buffer":277}],286:[function(require,module,exports){ +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":287,"./sha1":288,"./sha224":289,"./sha256":290,"./sha384":291,"./sha512":292}],287:[function(require,module,exports){ +/* + * 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":285,"inherits":247,"safe-buffer":277}],288:[function(require,module,exports){ +/* + * 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":285,"inherits":247,"safe-buffer":277}],289:[function(require,module,exports){ +/** + * 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":285,"./sha256":290,"inherits":247,"safe-buffer":277}],290:[function(require,module,exports){ +/** + * 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) -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]; + return H +} + +module.exports = Sha256 + +},{"./hash":285,"inherits":247,"safe-buffer":277}],291:[function(require,module,exports){ +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) -var W = new Array(160); +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":285,"./sha512":292,"inherits":247,"safe-buffer":277}],292:[function(require,module,exports){ +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; +function Sha512 () { + this.init() + this._w = W - Hash.call(this, 128, 112); + Hash.call(this, 128, 112) } -inherits(Sha512, Hash); +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; + this._ah = 0x6a09e667 + this._bh = 0xbb67ae85 + this._ch = 0x3c6ef372 + this._dh = 0xa54ff53a + this._eh = 0x510e527f + this._fh = 0x9b05688c + this._gh = 0x1f83d9ab + this._hh = 0x5be0cd19 - return this; -}; + this._al = 0xf3bcc908 + this._bl = 0x84caa73b + this._cl = 0xfe94f82b + this._dl = 0x5f1d36f1 + this._el = 0xade682d1 + this._fl = 0x2b3e6c1f + this._gl = 0xfb41bd6b + this._hl = 0x137e2179 -function Ch(x, y, z) { - return z ^ x & (y ^ z); + return this } -function maj(x, y, z) { - return x & y | z & (x | y); +function Ch (x, y, z) { + return z ^ (x & (y ^ z)) } -function sigma0(x, xl) { - return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25); +function maj (x, y, z) { + return (x & y) | (z & (x | y)) } -function sigma1(x, xl) { - return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23); +function sigma0 (x, xl) { + return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25) } -function Gamma0(x, xl) { - return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ x >>> 7; +function sigma1 (x, xl) { + return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23) } -function Gamma0l(x, xl) { - return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25); +function Gamma0 (x, xl) { + return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7) } -function Gamma1(x, xl) { - return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ x >>> 6; +function Gamma0l (x, xl) { + return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25) } -function Gamma1l(x, xl) { - return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26); +function Gamma1 (x, xl) { + return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6) } -function getCarry(a, b) { - return a >>> 0 < b >>> 0 ? 1 : 0; +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; + 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); + 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); + 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); + 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 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 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; + 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; + W[i] = Wih + W[i + 1] = Wil } for (var j = 0; j < 160; j += 2) { - Wih = W[j]; - Wil = W[j + 1]; + Wih = W[j] + Wil = W[j + 1] - var majh = maj(ah, bh, ch); - var majl = maj(al, bl, cl); + 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); + 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 Kih = K[j] + var Kil = K[j + 1] - var chh = Ch(eh, fh, gh); - var chl = Ch(el, fl, gl); + 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; + 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; -}; + 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); + var H = Buffer.allocUnsafe(64) - function writeInt64BE(h, l, offset) { - H.writeInt32BE(h, offset); - H.writeInt32BE(l, offset + 4); + 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); + 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; -}; + return H +} -module.exports = Sha512; +module.exports = Sha512 -},{"./hash":283,"inherits":247,"safe-buffer":276}],291:[function(require,module,exports){ +},{"./hash":285,"inherits":247,"safe-buffer":277}],293:[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; }; - -module.exports = Peer; +module.exports = Peer -var debug = require('debug')('simple-peer'); -var getBrowserRTC = require('get-browser-rtc'); -var inherits = require('inherits'); -var randombytes = require('randombytes'); -var stream = require('readable-stream'); +var debug = require('debug')('simple-peer') +var getBrowserRTC = require('get-browser-rtc') +var inherits = require('inherits') +var randombytes = require('randombytes') +var stream = require('readable-stream') -var MAX_BUFFERED_AMOUNT = 64 * 1024; +var MAX_BUFFERED_AMOUNT = 64 * 1024 -inherits(Peer, stream.Duplex); +inherits(Peer, stream.Duplex) /** * WebRTC peer connection. Same API as node core `net.Socket`, plus a few extra methods. * Duplex stream. * @param {Object} opts */ -function Peer(opts) { - var self = this; - if (!(self instanceof Peer)) return new Peer(opts); +function Peer (opts) { + var self = this + if (!(self instanceof Peer)) return new Peer(opts) - self._id = randombytes(4).toString('hex').slice(0, 7); - self._debug('new peer %o', opts); + self._id = randombytes(4).toString('hex').slice(0, 7) + self._debug('new peer %o', opts) opts = Object.assign({ allowHalfOpen: false - }, opts); + }, opts) - stream.Duplex.call(self, opts); + stream.Duplex.call(self, opts) - self.channelName = opts.initiator ? opts.channelName || randombytes(20).toString('hex') : null; + self.channelName = opts.initiator + ? opts.channelName || randombytes(20).toString('hex') + : null // Needed by _transformConstraints, so set this early - self._isChromium = typeof window !== 'undefined' && !!window.webkitRTCPeerConnection; - - self.initiator = opts.initiator || false; - self.channelConfig = opts.channelConfig || Peer.channelConfig; - self.config = opts.config || Peer.config; - self.constraints = self._transformConstraints(opts.constraints || Peer.constraints); - self.offerConstraints = self._transformConstraints(opts.offerConstraints || {}); - self.answerConstraints = self._transformConstraints(opts.answerConstraints || {}); - self.sdpTransform = opts.sdpTransform || function (sdp) { - return sdp; - }; - self.streams = opts.streams || (opts.stream ? [opts.stream] : []); // support old "stream" option - self.trickle = opts.trickle !== undefined ? opts.trickle : true; - - self.destroyed = false; - self.connected = false; - - self.remoteAddress = undefined; - self.remoteFamily = undefined; - self.remotePort = undefined; - self.localAddress = undefined; - self.localPort = undefined; - - self._wrtc = opts.wrtc && _typeof(opts.wrtc) === 'object' ? opts.wrtc : getBrowserRTC(); + self._isChromium = typeof window !== 'undefined' && !!window.webkitRTCPeerConnection + + self.initiator = opts.initiator || false + self.channelConfig = opts.channelConfig || Peer.channelConfig + self.config = opts.config || Peer.config + self.constraints = self._transformConstraints(opts.constraints || Peer.constraints) + self.offerConstraints = self._transformConstraints(opts.offerConstraints || {}) + self.answerConstraints = self._transformConstraints(opts.answerConstraints || {}) + self.sdpTransform = opts.sdpTransform || function (sdp) { return sdp } + self.streams = opts.streams || (opts.stream ? [opts.stream] : []) // support old "stream" option + self.trickle = opts.trickle !== undefined ? opts.trickle : true + + self.destroyed = false + self.connected = false + + self.remoteAddress = undefined + self.remoteFamily = undefined + self.remotePort = undefined + self.localAddress = undefined + self.localPort = undefined + + self._wrtc = (opts.wrtc && typeof opts.wrtc === 'object') + ? opts.wrtc + : getBrowserRTC() if (!self._wrtc) { if (typeof window === 'undefined') { - throw makeError('No WebRTC support: Specify `opts.wrtc` option in this environment', 'ERR_WEBRTC_SUPPORT'); + throw makeError('No WebRTC support: Specify `opts.wrtc` option in this environment', 'ERR_WEBRTC_SUPPORT') } else { - throw makeError('No WebRTC support: Not a supported browser', 'ERR_WEBRTC_SUPPORT'); + throw makeError('No WebRTC support: Not a supported browser', 'ERR_WEBRTC_SUPPORT') } } - self._pcReady = false; - self._channelReady = false; - self._iceComplete = false; // ice candidate trickle done (got null candidate) - self._channel = null; - self._pendingCandidates = []; + self._pcReady = false + self._channelReady = false + self._iceComplete = false // ice candidate trickle done (got null candidate) + self._channel = null + self._pendingCandidates = [] - self._isNegotiating = false; // is this peer waiting for negotiation to complete? - self._batchedNegotiation = false; // batch synchronous negotiations - self._queuedNegotiation = false; // is there a queued negotiation request? - self._sendersAwaitingStable = []; - self._senderMap = new WeakMap(); + self._isNegotiating = false // is this peer waiting for negotiation to complete? + self._batchedNegotiation = false // batch synchronous negotiations + self._queuedNegotiation = false // is there a queued negotiation request? + self._sendersAwaitingStable = [] + self._senderMap = new WeakMap() - self._remoteTracks = []; - self._remoteStreams = []; + self._remoteTracks = [] + self._remoteStreams = [] - self._chunk = null; - self._cb = null; - self._interval = null; + self._chunk = null + self._cb = null + self._interval = null - self._pc = new self._wrtc.RTCPeerConnection(self.config, self.constraints); + self._pc = new (self._wrtc.RTCPeerConnection)(self.config, self.constraints) // We prefer feature detection whenever possible, but sometimes that's not // possible for certain implementations. - self._isReactNativeWebrtc = typeof self._pc._peerConnectionId === 'number'; + self._isReactNativeWebrtc = typeof self._pc._peerConnectionId === 'number' self._pc.oniceconnectionstatechange = function () { - self._onIceStateChange(); - }; + self._onIceStateChange() + } self._pc.onicegatheringstatechange = function () { - self._onIceStateChange(); - }; + self._onIceStateChange() + } self._pc.onsignalingstatechange = function () { - self._onSignalingStateChange(); - }; + self._onSignalingStateChange() + } self._pc.onicecandidate = function (event) { - self._onIceCandidate(event); - }; + self._onIceCandidate(event) + } // Other spec events, unused by this implementation: // - onconnectionstatechange @@ -52967,35 +57071,35 @@ function Peer(opts) { if (self.initiator) { self._setupData({ channel: self._pc.createDataChannel(self.channelName, self.channelConfig) - }); + }) } else { self._pc.ondatachannel = function (event) { - self._setupData(event); - }; + self._setupData(event) + } } if ('addTrack' in self._pc) { if (self.streams) { self.streams.forEach(function (stream) { - self.addStream(stream); - }); + self.addStream(stream) + }) } self._pc.ontrack = function (event) { - self._onTrack(event); - }; + self._onTrack(event) + } } if (self.initiator) { - self._needsNegotiation(); + self._needsNegotiation() } self._onFinishBound = function () { - self._onFinish(); - }; - self.once('finish', self._onFinishBound); + self._onFinish() + } + self.once('finish', self._onFinishBound) } -Peer.WEBRTC_SUPPORT = !!getBrowserRTC(); +Peer.WEBRTC_SUPPORT = !!getBrowserRTC() /** * Expose config, constraints, and data channel config for overriding all Peer @@ -53003,98 +57107,102 @@ Peer.WEBRTC_SUPPORT = !!getBrowserRTC(); * when constructing a Peer. */ Peer.config = { - iceServers: [{ - urls: 'stun:stun.l.google.com:19302' - }, { - urls: 'stun:global.stun.twilio.com:3478?transport=udp' - }] -}; -Peer.constraints = {}; -Peer.channelConfig = {}; + iceServers: [ + { + urls: 'stun:stun.l.google.com:19302' + }, + { + urls: 'stun:global.stun.twilio.com:3478?transport=udp' + } + ] +} +Peer.constraints = {} +Peer.channelConfig = {} Object.defineProperty(Peer.prototype, 'bufferSize', { - get: function get() { - var self = this; - return self._channel && self._channel.bufferedAmount || 0; + get: function () { + var self = this + return (self._channel && self._channel.bufferedAmount) || 0 } -}); +}) Peer.prototype.address = function () { - var self = this; - return { port: self.localPort, family: 'IPv4', address: self.localAddress }; -}; + var self = this + return { port: self.localPort, family: 'IPv4', address: self.localAddress } +} Peer.prototype.signal = function (data) { - var self = this; - if (self.destroyed) throw makeError('cannot signal after peer is destroyed', 'ERR_SIGNALING'); + var self = this + if (self.destroyed) throw makeError('cannot signal after peer is destroyed', 'ERR_SIGNALING') if (typeof data === 'string') { try { - data = JSON.parse(data); + data = JSON.parse(data) } catch (err) { - data = {}; + data = {} } } - self._debug('signal()'); + self._debug('signal()') if (data.renegotiate) { - self._debug('got request to renegotiate'); - self._needsNegotiation(); + self._debug('got request to renegotiate') + self._needsNegotiation() } if (data.candidate) { - if (self._pc.remoteDescription && self._pc.remoteDescription.type) self._addIceCandidate(data.candidate);else self._pendingCandidates.push(data.candidate); + if (self._pc.remoteDescription && self._pc.remoteDescription.type) self._addIceCandidate(data.candidate) + else self._pendingCandidates.push(data.candidate) } if (data.sdp) { - self._pc.setRemoteDescription(new self._wrtc.RTCSessionDescription(data), function () { - if (self.destroyed) return; + self._pc.setRemoteDescription(new (self._wrtc.RTCSessionDescription)(data), function () { + if (self.destroyed) return self._pendingCandidates.forEach(function (candidate) { - self._addIceCandidate(candidate); - }); - self._pendingCandidates = []; + self._addIceCandidate(candidate) + }) + self._pendingCandidates = [] - if (self._pc.remoteDescription.type === 'offer') self._createAnswer(); - }, function (err) { - self.destroy(makeError(err, 'ERR_SET_REMOTE_DESCRIPTION')); - }); + if (self._pc.remoteDescription.type === 'offer') self._createAnswer() + }, function (err) { self.destroy(makeError(err, 'ERR_SET_REMOTE_DESCRIPTION')) }) } if (!data.sdp && !data.candidate && !data.renegotiate) { - self.destroy(makeError('signal() called with invalid signal data', 'ERR_SIGNALING')); + self.destroy(makeError('signal() called with invalid signal data', 'ERR_SIGNALING')) } -}; +} Peer.prototype._addIceCandidate = function (candidate) { - var self = this; + var self = this try { - self._pc.addIceCandidate(new self._wrtc.RTCIceCandidate(candidate), noop, function (err) { - self.destroy(makeError(err, 'ERR_ADD_ICE_CANDIDATE')); - }); + self._pc.addIceCandidate( + new self._wrtc.RTCIceCandidate(candidate), + noop, + function (err) { self.destroy(makeError(err, 'ERR_ADD_ICE_CANDIDATE')) } + ) } catch (err) { - self.destroy(makeError('error adding candidate: ' + err.message, 'ERR_ADD_ICE_CANDIDATE')); + self.destroy(makeError('error adding candidate: ' + err.message, 'ERR_ADD_ICE_CANDIDATE')) } -}; +} /** * Send text/binary data to the remote peer. * @param {ArrayBufferView|ArrayBuffer|Buffer|string|Blob} chunk */ Peer.prototype.send = function (chunk) { - var self = this; - self._channel.send(chunk); -}; + var self = this + self._channel.send(chunk) +} /** * Add a MediaStream to the connection. * @param {MediaStream} stream */ Peer.prototype.addStream = function (stream) { - var self = this; + var self = this - self._debug('addStream()'); + self._debug('addStream()') stream.getTracks().forEach(function (track) { - self.addTrack(track, stream); - }); -}; + self.addTrack(track, stream) + }) +} /** * Add a MediaStreamTrack to the connection. @@ -53102,16 +57210,16 @@ Peer.prototype.addStream = function (stream) { * @param {MediaStream} stream */ Peer.prototype.addTrack = function (track, stream) { - var self = this; + var self = this - self._debug('addTrack()'); + self._debug('addTrack()') - var sender = self._pc.addTrack(track, stream); - var submap = self._senderMap.get(track) || new WeakMap(); // nested WeakMaps map [track, stream] to sender - submap.set(stream, sender); - self._senderMap.set(track, submap); - self._needsNegotiation(); -}; + var sender = self._pc.addTrack(track, stream) + var submap = self._senderMap.get(track) || new WeakMap() // nested WeakMaps map [track, stream] to sender + submap.set(stream, sender) + self._senderMap.set(track, submap) + self._needsNegotiation() +} /** * Remove a MediaStreamTrack from the connection. @@ -53119,530 +57227,530 @@ Peer.prototype.addTrack = function (track, stream) { * @param {MediaStream} stream */ Peer.prototype.removeTrack = function (track, stream) { - var self = this; + var self = this - self._debug('removeSender()'); + self._debug('removeSender()') - var submap = self._senderMap.get(track); - var sender = submap ? submap.get(stream) : null; + var submap = self._senderMap.get(track) + var sender = submap ? submap.get(stream) : null if (!sender) { - self.destroy(new Error('Cannot remove track that was never added.')); + self.destroy(new Error('Cannot remove track that was never added.')) } try { - self._pc.removeTrack(sender); + self._pc.removeTrack(sender) } catch (err) { if (err.name === 'NS_ERROR_UNEXPECTED') { - self._sendersAwaitingStable.push(sender); // HACK: Firefox must wait until (signalingState === stable) https://bugzilla.mozilla.org/show_bug.cgi?id=1133874 + self._sendersAwaitingStable.push(sender) // HACK: Firefox must wait until (signalingState === stable) https://bugzilla.mozilla.org/show_bug.cgi?id=1133874 } else { - self.destroy(err); + self.destroy(err) } } -}; +} /** * Remove a MediaStream from the connection. * @param {MediaStream} stream */ Peer.prototype.removeStream = function (stream) { - var self = this; + var self = this - self._debug('removeSenders()'); + self._debug('removeSenders()') stream.getTracks().forEach(function (track) { - self.removeTrack(track, stream); - }); -}; + self.removeTrack(track, stream) + }) +} Peer.prototype._needsNegotiation = function () { - var self = this; + var self = this - self._debug('_needsNegotiation'); - if (self._batchedNegotiation) return; // batch synchronous renegotiations - self._batchedNegotiation = true; + self._debug('_needsNegotiation') + if (self._batchedNegotiation) return // batch synchronous renegotiations + self._batchedNegotiation = true setTimeout(function () { - self._batchedNegotiation = false; - self._debug('starting batched negotiation'); - self.negotiate(); - }, 0); -}; + self._batchedNegotiation = false + self._debug('starting batched negotiation') + self.negotiate() + }, 0) +} Peer.prototype.negotiate = function () { - var self = this; + var self = this if (self.initiator) { if (self._isNegotiating) { - self._queuedNegotiation = true; - self._debug('already negotiating, queueing'); + self._queuedNegotiation = true + self._debug('already negotiating, queueing') } else { - self._debug('start negotiation'); - self._createOffer(); + self._debug('start negotiation') + self._createOffer() } } else { - self._debug('requesting negotiation from initiator'); + self._debug('requesting negotiation from initiator') self.emit('signal', { // request initiator to renegotiate renegotiate: true - }); + }) } - self._isNegotiating = true; -}; + self._isNegotiating = true +} // TODO: Delete this method once readable-stream is updated to contain a default // implementation of destroy() that automatically calls _destroy() // See: https://github.com/nodejs/readable-stream/issues/283 Peer.prototype.destroy = function (err) { - var self = this; - self._destroy(err, function () {}); -}; + var self = this + self._destroy(err, function () {}) +} Peer.prototype._destroy = function (err, cb) { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return - self._debug('destroy (error: %s)', err && (err.message || err)); + self._debug('destroy (error: %s)', err && (err.message || err)) - self.readable = self.writable = false; + self.readable = self.writable = false - if (!self._readableState.ended) self.push(null); - if (!self._writableState.finished) self.end(); + if (!self._readableState.ended) self.push(null) + if (!self._writableState.finished) self.end() - self.destroyed = true; - self.connected = false; - self._pcReady = false; - self._channelReady = false; - self._remoteTracks = null; - self._remoteStreams = null; - self._senderMap = null; + self.destroyed = true + self.connected = false + self._pcReady = false + self._channelReady = false + self._remoteTracks = null + self._remoteStreams = null + self._senderMap = null - clearInterval(self._interval); - self._interval = null; - self._chunk = null; - self._cb = null; + clearInterval(self._interval) + self._interval = null + self._chunk = null + self._cb = null - if (self._onFinishBound) self.removeListener('finish', self._onFinishBound); - self._onFinishBound = null; + if (self._onFinishBound) self.removeListener('finish', self._onFinishBound) + self._onFinishBound = null if (self._channel) { try { - self._channel.close(); + self._channel.close() } catch (err) {} - self._channel.onmessage = null; - self._channel.onopen = null; - self._channel.onclose = null; - self._channel.onerror = null; + self._channel.onmessage = null + self._channel.onopen = null + self._channel.onclose = null + self._channel.onerror = null } if (self._pc) { try { - self._pc.close(); + self._pc.close() } catch (err) {} - self._pc.oniceconnectionstatechange = null; - self._pc.onicegatheringstatechange = null; - self._pc.onsignalingstatechange = null; - self._pc.onicecandidate = null; + self._pc.oniceconnectionstatechange = null + self._pc.onicegatheringstatechange = null + self._pc.onsignalingstatechange = null + self._pc.onicecandidate = null if ('addTrack' in self._pc) { - self._pc.ontrack = null; + self._pc.ontrack = null } - self._pc.ondatachannel = null; + self._pc.ondatachannel = null } - self._pc = null; - self._channel = null; + self._pc = null + self._channel = null - if (err) self.emit('error', err); - self.emit('close'); - cb(); -}; + if (err) self.emit('error', err) + self.emit('close') + cb() +} Peer.prototype._setupData = function (event) { - var self = this; + var self = this if (!event.channel) { // In some situations `pc.createDataChannel()` returns `undefined` (in wrtc), // which is invalid behavior. Handle it gracefully. // See: https://github.com/feross/simple-peer/issues/163 - return self.destroy(makeError('Data channel event is missing `channel` property', 'ERR_DATA_CHANNEL')); + return self.destroy(makeError('Data channel event is missing `channel` property', 'ERR_DATA_CHANNEL')) } - self._channel = event.channel; - self._channel.binaryType = 'arraybuffer'; + self._channel = event.channel + self._channel.binaryType = 'arraybuffer' if (typeof self._channel.bufferedAmountLowThreshold === 'number') { - self._channel.bufferedAmountLowThreshold = MAX_BUFFERED_AMOUNT; + self._channel.bufferedAmountLowThreshold = MAX_BUFFERED_AMOUNT } - self.channelName = self._channel.label; + self.channelName = self._channel.label self._channel.onmessage = function (event) { - self._onChannelMessage(event); - }; + self._onChannelMessage(event) + } self._channel.onbufferedamountlow = function () { - self._onChannelBufferedAmountLow(); - }; + self._onChannelBufferedAmountLow() + } self._channel.onopen = function () { - self._onChannelOpen(); - }; + self._onChannelOpen() + } self._channel.onclose = function () { - self._onChannelClose(); - }; + self._onChannelClose() + } self._channel.onerror = function (err) { - self.destroy(makeError(err, 'ERR_DATA_CHANNEL')); - }; -}; + self.destroy(makeError(err, 'ERR_DATA_CHANNEL')) + } +} -Peer.prototype._read = function () {}; +Peer.prototype._read = function () {} Peer.prototype._write = function (chunk, encoding, cb) { - var self = this; - if (self.destroyed) return cb(makeError('cannot write after peer is destroyed', 'ERR_DATA_CHANNEL')); + var self = this + if (self.destroyed) return cb(makeError('cannot write after peer is destroyed', 'ERR_DATA_CHANNEL')) if (self.connected) { try { - self.send(chunk); + self.send(chunk) } catch (err) { - return self.destroy(makeError(err, 'ERR_DATA_CHANNEL')); + return self.destroy(makeError(err, 'ERR_DATA_CHANNEL')) } if (self._channel.bufferedAmount > MAX_BUFFERED_AMOUNT) { - self._debug('start backpressure: bufferedAmount %d', self._channel.bufferedAmount); - self._cb = cb; + self._debug('start backpressure: bufferedAmount %d', self._channel.bufferedAmount) + self._cb = cb } else { - cb(null); + cb(null) } } else { - self._debug('write before connect'); - self._chunk = chunk; - self._cb = cb; + self._debug('write before connect') + self._chunk = chunk + self._cb = cb } -}; +} // When stream finishes writing, close socket. Half open connections are not // supported. Peer.prototype._onFinish = function () { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return if (self.connected) { - destroySoon(); + destroySoon() } else { - self.once('connect', destroySoon); + self.once('connect', destroySoon) } // Wait a bit before destroying so the socket flushes. // TODO: is there a more reliable way to accomplish this? - function destroySoon() { + function destroySoon () { setTimeout(function () { - self.destroy(); - }, 1000); + self.destroy() + }, 1000) } -}; +} Peer.prototype._createOffer = function () { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return self._pc.createOffer(function (offer) { - if (self.destroyed) return; - offer.sdp = self.sdpTransform(offer.sdp); - self._pc.setLocalDescription(offer, onSuccess, onError); + if (self.destroyed) return + offer.sdp = self.sdpTransform(offer.sdp) + self._pc.setLocalDescription(offer, onSuccess, onError) - function onSuccess() { - self._debug('createOffer success'); - if (self.destroyed) return; - if (self.trickle || self._iceComplete) sendOffer();else self.once('_iceComplete', sendOffer); // wait for candidates + function onSuccess () { + self._debug('createOffer success') + if (self.destroyed) return + if (self.trickle || self._iceComplete) sendOffer() + else self.once('_iceComplete', sendOffer) // wait for candidates } - function onError(err) { - self.destroy(makeError(err, 'ERR_SET_LOCAL_DESCRIPTION')); + function onError (err) { + self.destroy(makeError(err, 'ERR_SET_LOCAL_DESCRIPTION')) } - function sendOffer() { - var signal = self._pc.localDescription || offer; - self._debug('signal'); + function sendOffer () { + var signal = self._pc.localDescription || offer + self._debug('signal') self.emit('signal', { type: signal.type, sdp: signal.sdp - }); + }) } - }, function (err) { - self.destroy(makeError(err, 'ERR_CREATE_OFFER')); - }, self.offerConstraints); -}; + }, function (err) { self.destroy(makeError(err, 'ERR_CREATE_OFFER')) }, self.offerConstraints) +} Peer.prototype._createAnswer = function () { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return self._pc.createAnswer(function (answer) { - if (self.destroyed) return; - answer.sdp = self.sdpTransform(answer.sdp); - self._pc.setLocalDescription(answer, onSuccess, onError); + if (self.destroyed) return + answer.sdp = self.sdpTransform(answer.sdp) + self._pc.setLocalDescription(answer, onSuccess, onError) - function onSuccess() { - if (self.destroyed) return; - if (self.trickle || self._iceComplete) sendAnswer();else self.once('_iceComplete', sendAnswer); + function onSuccess () { + if (self.destroyed) return + if (self.trickle || self._iceComplete) sendAnswer() + else self.once('_iceComplete', sendAnswer) } - function onError(err) { - self.destroy(makeError(err, 'ERR_SET_LOCAL_DESCRIPTION')); + function onError (err) { + self.destroy(makeError(err, 'ERR_SET_LOCAL_DESCRIPTION')) } - function sendAnswer() { - var signal = self._pc.localDescription || answer; - self._debug('signal'); + function sendAnswer () { + var signal = self._pc.localDescription || answer + self._debug('signal') self.emit('signal', { type: signal.type, sdp: signal.sdp - }); + }) } - }, function (err) { - self.destroy(makeError(err, 'ERR_CREATE_ANSWER')); - }, self.answerConstraints); -}; + }, function (err) { self.destroy(makeError(err, 'ERR_CREATE_ANSWER')) }, self.answerConstraints) +} Peer.prototype._onIceStateChange = function () { - var self = this; - if (self.destroyed) return; - var iceConnectionState = self._pc.iceConnectionState; - var iceGatheringState = self._pc.iceGatheringState; - - self._debug('iceStateChange (connection: %s) (gathering: %s)', iceConnectionState, iceGatheringState); - self.emit('iceStateChange', iceConnectionState, iceGatheringState); + var self = this + if (self.destroyed) return + var iceConnectionState = self._pc.iceConnectionState + var iceGatheringState = self._pc.iceGatheringState + + self._debug( + 'iceStateChange (connection: %s) (gathering: %s)', + iceConnectionState, + iceGatheringState + ) + self.emit('iceStateChange', iceConnectionState, iceGatheringState) if (iceConnectionState === 'connected' || iceConnectionState === 'completed') { - self._pcReady = true; - self._maybeReady(); + self._pcReady = true + self._maybeReady() } if (iceConnectionState === 'failed') { - self.destroy(makeError('Ice connection failed.', 'ERR_ICE_CONNECTION_FAILURE')); + self.destroy(makeError('Ice connection failed.', 'ERR_ICE_CONNECTION_FAILURE')) } if (iceConnectionState === 'closed') { - self.destroy(new Error('Ice connection closed.')); + self.destroy(new Error('Ice connection closed.')) } -}; +} Peer.prototype.getStats = function (cb) { - var self = this; + var self = this // Promise-based getStats() (standard) if (self._pc.getStats.length === 0) { self._pc.getStats().then(function (res) { - var reports = []; + var reports = [] res.forEach(function (report) { - reports.push(report); - }); - cb(null, reports); - }, function (err) { - cb(err); - }); + reports.push(report) + }) + cb(null, reports) + }, function (err) { cb(err) }) - // Two-parameter callback-based getStats() (deprecated, former standard) + // Two-parameter callback-based getStats() (deprecated, former standard) } else if (self._isReactNativeWebrtc) { self._pc.getStats(null, function (res) { - var reports = []; + var reports = [] res.forEach(function (report) { - reports.push(report); - }); - cb(null, reports); - }, function (err) { - cb(err); - }); + reports.push(report) + }) + cb(null, reports) + }, function (err) { cb(err) }) - // Single-parameter callback-based getStats() (non-standard) + // Single-parameter callback-based getStats() (non-standard) } else if (self._pc.getStats.length > 0) { self._pc.getStats(function (res) { // If we destroy connection in `connect` callback this code might happen to run when actual connection is already closed - if (self.destroyed) return; + if (self.destroyed) return - var reports = []; + var reports = [] res.result().forEach(function (result) { - var report = {}; + var report = {} result.names().forEach(function (name) { - report[name] = result.stat(name); - }); - report.id = result.id; - report.type = result.type; - report.timestamp = result.timestamp; - reports.push(report); - }); - cb(null, reports); - }, function (err) { - cb(err); - }); - - // Unknown browser, skip getStats() since it's anyone's guess which style of - // getStats() they implement. + report[name] = result.stat(name) + }) + report.id = result.id + report.type = result.type + report.timestamp = result.timestamp + reports.push(report) + }) + cb(null, reports) + }, function (err) { cb(err) }) + + // Unknown browser, skip getStats() since it's anyone's guess which style of + // getStats() they implement. } else { - cb(null, []); + cb(null, []) } -}; +} Peer.prototype._maybeReady = function () { - var self = this; - self._debug('maybeReady pc %s channel %s', self._pcReady, self._channelReady); - if (self.connected || self._connecting || !self._pcReady || !self._channelReady) return; + var self = this + self._debug('maybeReady pc %s channel %s', self._pcReady, self._channelReady) + if (self.connected || self._connecting || !self._pcReady || !self._channelReady) return - self._connecting = true; + self._connecting = true // HACK: We can't rely on order here, for details see https://github.com/js-platform/node-webrtc/issues/339 - function findCandidatePair() { - if (self.destroyed) return; + function findCandidatePair () { + if (self.destroyed) return self.getStats(function (err, items) { - if (self.destroyed) return; + if (self.destroyed) return // Treat getStats error as non-fatal. It's not essential. - if (err) items = []; + if (err) items = [] - var remoteCandidates = {}; - var localCandidates = {}; - var candidatePairs = {}; - var foundSelectedCandidatePair = false; + var remoteCandidates = {} + var localCandidates = {} + var candidatePairs = {} + var foundSelectedCandidatePair = false items.forEach(function (item) { // TODO: Once all browsers support the hyphenated stats report types, remove // the non-hypenated ones if (item.type === 'remotecandidate' || item.type === 'remote-candidate') { - remoteCandidates[item.id] = item; + remoteCandidates[item.id] = item } if (item.type === 'localcandidate' || item.type === 'local-candidate') { - localCandidates[item.id] = item; + localCandidates[item.id] = item } if (item.type === 'candidatepair' || item.type === 'candidate-pair') { - candidatePairs[item.id] = item; + candidatePairs[item.id] = item } - }); + }) items.forEach(function (item) { // Spec-compliant if (item.type === 'transport' && item.selectedCandidatePairId) { - setSelectedCandidatePair(candidatePairs[item.selectedCandidatePairId]); + setSelectedCandidatePair(candidatePairs[item.selectedCandidatePairId]) } // Old implementations - if (item.type === 'googCandidatePair' && item.googActiveConnection === 'true' || (item.type === 'candidatepair' || item.type === 'candidate-pair') && item.selected) { - setSelectedCandidatePair(item); + if ( + (item.type === 'googCandidatePair' && item.googActiveConnection === 'true') || + ((item.type === 'candidatepair' || item.type === 'candidate-pair') && item.selected) + ) { + setSelectedCandidatePair(item) } - }); + }) - function setSelectedCandidatePair(selectedCandidatePair) { - foundSelectedCandidatePair = true; + function setSelectedCandidatePair (selectedCandidatePair) { + foundSelectedCandidatePair = true - var local = localCandidates[selectedCandidatePair.localCandidateId]; + var local = localCandidates[selectedCandidatePair.localCandidateId] if (local && local.ip) { // Spec - self.localAddress = local.ip; - self.localPort = Number(local.port); + self.localAddress = local.ip + self.localPort = Number(local.port) } else if (local && local.ipAddress) { // Firefox - self.localAddress = local.ipAddress; - self.localPort = Number(local.portNumber); + self.localAddress = local.ipAddress + self.localPort = Number(local.portNumber) } else if (typeof selectedCandidatePair.googLocalAddress === 'string') { // TODO: remove this once Chrome 58 is released - local = selectedCandidatePair.googLocalAddress.split(':'); - self.localAddress = local[0]; - self.localPort = Number(local[1]); + local = selectedCandidatePair.googLocalAddress.split(':') + self.localAddress = local[0] + self.localPort = Number(local[1]) } - var remote = remoteCandidates[selectedCandidatePair.remoteCandidateId]; + var remote = remoteCandidates[selectedCandidatePair.remoteCandidateId] if (remote && remote.ip) { // Spec - self.remoteAddress = remote.ip; - self.remotePort = Number(remote.port); + self.remoteAddress = remote.ip + self.remotePort = Number(remote.port) } else if (remote && remote.ipAddress) { // Firefox - self.remoteAddress = remote.ipAddress; - self.remotePort = Number(remote.portNumber); + self.remoteAddress = remote.ipAddress + self.remotePort = Number(remote.portNumber) } else if (typeof selectedCandidatePair.googRemoteAddress === 'string') { // TODO: remove this once Chrome 58 is released - remote = selectedCandidatePair.googRemoteAddress.split(':'); - self.remoteAddress = remote[0]; - self.remotePort = Number(remote[1]); + remote = selectedCandidatePair.googRemoteAddress.split(':') + self.remoteAddress = remote[0] + self.remotePort = Number(remote[1]) } - self.remoteFamily = 'IPv4'; + self.remoteFamily = 'IPv4' - self._debug('connect local: %s:%s remote: %s:%s', self.localAddress, self.localPort, self.remoteAddress, self.remotePort); + self._debug( + 'connect local: %s:%s remote: %s:%s', + self.localAddress, self.localPort, self.remoteAddress, self.remotePort + ) } // Ignore candidate pair selection in browsers like Safari 11 that do not have any local or remote candidates // But wait until at least 1 candidate pair is available if (!foundSelectedCandidatePair && (!Object.keys(candidatePairs).length || Object.keys(localCandidates).length)) { - setTimeout(findCandidatePair, 100); - return; + setTimeout(findCandidatePair, 100) + return } else { - self._connecting = false; - self.connected = true; + self._connecting = false + self.connected = true } if (self._chunk) { try { - self.send(self._chunk); + self.send(self._chunk) } catch (err) { - return self.destroy(makeError(err, 'ERR_DATA_CHANNEL')); + return self.destroy(makeError(err, 'ERR_DATA_CHANNEL')) } - self._chunk = null; - self._debug('sent chunk from "write before connect"'); + self._chunk = null + self._debug('sent chunk from "write before connect"') - var cb = self._cb; - self._cb = null; - cb(null); + var cb = self._cb + self._cb = null + cb(null) } // If `bufferedAmountLowThreshold` and 'onbufferedamountlow' are unsupported, // fallback to using setInterval to implement backpressure. if (typeof self._channel.bufferedAmountLowThreshold !== 'number') { - self._interval = setInterval(function () { - self._onInterval(); - }, 150); - if (self._interval.unref) self._interval.unref(); + self._interval = setInterval(function () { self._onInterval() }, 150) + if (self._interval.unref) self._interval.unref() } - self._debug('connect'); - self.emit('connect'); - }); + self._debug('connect') + self.emit('connect') + }) } - findCandidatePair(); -}; + findCandidatePair() +} Peer.prototype._onInterval = function () { - var self = this; + var self = this if (!self._cb || !self._channel || self._channel.bufferedAmount > MAX_BUFFERED_AMOUNT) { - return; + return } - self._onChannelBufferedAmountLow(); -}; + self._onChannelBufferedAmountLow() +} Peer.prototype._onSignalingStateChange = function () { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return if (self._pc.signalingState === 'stable') { - self._isNegotiating = false; + self._isNegotiating = false // HACK: Firefox doesn't yet support removing tracks when signalingState !== 'stable' - self._debug('flushing sender queue', self._sendersAwaitingStable); + self._debug('flushing sender queue', self._sendersAwaitingStable) self._sendersAwaitingStable.forEach(function (sender) { - self.removeTrack(sender); - self._queuedNegotiation = true; - }); - self._sendersAwaitingStable = []; + self.removeTrack(sender) + self._queuedNegotiation = true + }) + self._sendersAwaitingStable = [] if (self._queuedNegotiation) { - self._debug('flushing negotiation queue'); - self._queuedNegotiation = false; - self._needsNegotiation(); // negotiate again + self._debug('flushing negotiation queue') + self._queuedNegotiation = false + self._needsNegotiation() // negotiate again } - self._debug('negotiate'); - self.emit('negotiate'); + self._debug('negotiate') + self.emit('negotiate') } - self._debug('signalingStateChange %s', self._pc.signalingState); - self.emit('signalingStateChange', self._pc.signalingState); -}; + self._debug('signalingStateChange %s', self._pc.signalingState) + self.emit('signalingStateChange', self._pc.signalingState) +} Peer.prototype._onIceCandidate = function (event) { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return if (event.candidate && self.trickle) { self.emit('signal', { candidate: { @@ -53650,151 +57758,139 @@ Peer.prototype._onIceCandidate = function (event) { sdpMLineIndex: event.candidate.sdpMLineIndex, sdpMid: event.candidate.sdpMid } - }); + }) } else if (!event.candidate) { - self._iceComplete = true; - self.emit('_iceComplete'); + self._iceComplete = true + self.emit('_iceComplete') } -}; +} Peer.prototype._onChannelMessage = function (event) { - var self = this; - if (self.destroyed) return; - var data = event.data; - if (data instanceof ArrayBuffer) data = Buffer.from(data); - self.push(data); -}; + var self = this + if (self.destroyed) return + var data = event.data + if (data instanceof ArrayBuffer) data = Buffer.from(data) + self.push(data) +} Peer.prototype._onChannelBufferedAmountLow = function () { - var self = this; - if (self.destroyed || !self._cb) return; - self._debug('ending backpressure: bufferedAmount %d', self._channel.bufferedAmount); - var cb = self._cb; - self._cb = null; - cb(null); -}; + var self = this + if (self.destroyed || !self._cb) return + self._debug('ending backpressure: bufferedAmount %d', self._channel.bufferedAmount) + var cb = self._cb + self._cb = null + cb(null) +} Peer.prototype._onChannelOpen = function () { - var self = this; - if (self.connected || self.destroyed) return; - self._debug('on channel open'); - self._channelReady = true; - self._maybeReady(); -}; + var self = this + if (self.connected || self.destroyed) return + self._debug('on channel open') + self._channelReady = true + self._maybeReady() +} Peer.prototype._onChannelClose = function () { - var self = this; - if (self.destroyed) return; - self._debug('on channel close'); - self.destroy(); -}; + var self = this + if (self.destroyed) return + self._debug('on channel close') + self.destroy() +} Peer.prototype._onTrack = function (event) { - var self = this; - if (self.destroyed) return; + var self = this + if (self.destroyed) return event.streams.forEach(function (eventStream) { - self._debug('on track'); - self.emit('track', event.track, eventStream); + self._debug('on track') + self.emit('track', event.track, eventStream) self._remoteTracks.push({ track: event.track, stream: eventStream - }); + }) if (self._remoteStreams.some(function (remoteStream) { - return remoteStream.id === eventStream.id; - })) return; // Only fire one 'stream' event, even though there may be multiple tracks per stream + return remoteStream.id === eventStream.id + })) return // Only fire one 'stream' event, even though there may be multiple tracks per stream - self._remoteStreams.push(eventStream); + self._remoteStreams.push(eventStream) setTimeout(function () { - self.emit('stream', eventStream); // ensure all tracks have been added - }, 0); - }); -}; + self.emit('stream', eventStream) // ensure all tracks have been added + }, 0) + }) +} Peer.prototype._debug = function () { - var self = this; - var args = [].slice.call(arguments); - args[0] = '[' + self._id + '] ' + args[0]; - debug.apply(null, args); -}; + var self = this + var args = [].slice.call(arguments) + args[0] = '[' + self._id + '] ' + args[0] + debug.apply(null, args) +} // Transform constraints objects into the new format (unless Chromium) // TODO: This can be removed when Chromium supports the new format Peer.prototype._transformConstraints = function (constraints) { - var self = this; + var self = this if (Object.keys(constraints).length === 0) { - return constraints; + return constraints } if ((constraints.mandatory || constraints.optional) && !self._isChromium) { // convert to new format // Merge mandatory and optional objects, prioritizing mandatory - var newConstraints = Object.assign({}, constraints.optional, constraints.mandatory); + var newConstraints = Object.assign({}, constraints.optional, constraints.mandatory) // fix casing if (newConstraints.OfferToReceiveVideo !== undefined) { - newConstraints.offerToReceiveVideo = newConstraints.OfferToReceiveVideo; - delete newConstraints['OfferToReceiveVideo']; + newConstraints.offerToReceiveVideo = newConstraints.OfferToReceiveVideo + delete newConstraints['OfferToReceiveVideo'] } if (newConstraints.OfferToReceiveAudio !== undefined) { - newConstraints.offerToReceiveAudio = newConstraints.OfferToReceiveAudio; - delete newConstraints['OfferToReceiveAudio']; + newConstraints.offerToReceiveAudio = newConstraints.OfferToReceiveAudio + delete newConstraints['OfferToReceiveAudio'] } - return newConstraints; + return newConstraints } else if (!constraints.mandatory && !constraints.optional && self._isChromium) { // convert to old format // fix casing if (constraints.offerToReceiveVideo !== undefined) { - constraints.OfferToReceiveVideo = constraints.offerToReceiveVideo; - delete constraints['offerToReceiveVideo']; + constraints.OfferToReceiveVideo = constraints.offerToReceiveVideo + delete constraints['offerToReceiveVideo'] } if (constraints.offerToReceiveAudio !== undefined) { - constraints.OfferToReceiveAudio = constraints.offerToReceiveAudio; - delete constraints['offerToReceiveAudio']; + constraints.OfferToReceiveAudio = constraints.offerToReceiveAudio + delete constraints['offerToReceiveAudio'] } return { mandatory: constraints // NOTE: All constraints are upgraded to mandatory - }; + } } - return constraints; -}; + return constraints +} -function makeError(message, code) { - var err = new Error(message); - err.code = code; - return err; +function makeError (message, code) { + var err = new Error(message) + err.code = code + return err } -function noop() {} +function noop () {} }).call(this,require("buffer").Buffer) -},{"buffer":401,"debug":292,"get-browser-rtc":228,"inherits":247,"randombytes":264,"readable-stream":273}],292:[function(require,module,exports){ +},{"buffer":415,"debug":294,"get-browser-rtc":228,"inherits":247,"randombytes":264,"readable-stream":273}],294:[function(require,module,exports){ (function (process){ "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; }; - -function _typeof(obj) { - if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") { - _typeof = function _typeof(obj) { - return typeof obj === "undefined" ? "undefined" : _typeof2(obj); - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof2(obj); - }; - }return _typeof(obj); -} +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /* eslint-env browser */ @@ -53848,6 +57944,7 @@ function useColors() { * @api public */ + function formatArgs(args) { args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff); @@ -53884,6 +57981,7 @@ function formatArgs(args) { * @api public */ + function log() { var _console; @@ -53898,6 +57996,7 @@ function log() { * @api private */ + function save(namespaces) { try { if (namespaces) { @@ -53916,6 +58015,7 @@ function save(namespaces) { * @api private */ + function load() { var r; @@ -53943,6 +58043,7 @@ function load() { * @api private */ + function localstorage() { try { // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context @@ -53967,15 +58068,15 @@ formatters.j = function (v) { } }; + }).call(this,require('_process')) -},{"./common":293,"_process":911}],293:[function(require,module,exports){ +},{"./common":295,"_process":925}],295:[function(require,module,exports){ "use strict"; /** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ - function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; @@ -54126,6 +58227,7 @@ function setup(env) { * @api public */ + function enable(namespaces) { createDebug.save(namespaces); createDebug.names = []; @@ -54160,6 +58262,7 @@ function setup(env) { * @api public */ + function disable() { createDebug.enable(''); } @@ -54171,6 +58274,7 @@ function setup(env) { * @api public */ + function enabled(name) { if (name[name.length - 1] === '*') { return true; @@ -54201,6 +58305,7 @@ function setup(env) { * @api private */ + function coerce(val) { if (val instanceof Error) { return val.stack || val.message; @@ -54215,12 +58320,10 @@ function setup(env) { module.exports = setup; -},{"ms":294}],294:[function(require,module,exports){ -arguments[4][191][0].apply(exports,arguments) -},{"dup":191}],295:[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; }; +},{"ms":296}],296:[function(require,module,exports){ +arguments[4][191][0].apply(exports,arguments) +},{"dup":191}],297:[function(require,module,exports){ /** * Module dependencies. @@ -54256,8 +58359,8 @@ var cache = exports.managers = {}; * @api public */ -function lookup(uri, opts) { - if ((typeof uri === 'undefined' ? 'undefined' : _typeof(uri)) === 'object') { +function lookup (uri, opts) { + if (typeof uri === 'object') { opts = uri; uri = undefined; } @@ -54269,7 +58372,8 @@ function lookup(uri, opts) { var id = parsed.id; var path = parsed.path; var sameNamespace = cache[id] && path in cache[id].nsps; - var newConnection = opts.forceNew || opts['force new connection'] || false === opts.multiplex || sameNamespace; + var newConnection = opts.forceNew || opts['force new connection'] || + false === opts.multiplex || sameNamespace; var io; @@ -54315,10 +58419,7 @@ exports.connect = lookup; exports.Manager = require('./manager'); exports.Socket = require('./socket'); -},{"./manager":296,"./socket":298,"./url":299,"debug":300,"socket.io-parser":303}],296:[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; }; +},{"./manager":298,"./socket":300,"./url":301,"debug":302,"socket.io-parser":305}],298:[function(require,module,exports){ /** * Module dependencies. @@ -54354,9 +58455,9 @@ module.exports = Manager; * @api public */ -function Manager(uri, opts) { +function Manager (uri, opts) { if (!(this instanceof Manager)) return new Manager(uri, opts); - if (uri && 'object' === (typeof uri === 'undefined' ? 'undefined' : _typeof(uri))) { + if (uri && ('object' === typeof uri)) { opts = uri; uri = undefined; } @@ -54428,7 +58529,7 @@ Manager.prototype.updateSocketIds = function () { */ Manager.prototype.generateId = function (nsp) { - return (nsp === '/' ? '' : nsp + '#') + this.engine.id; + return (nsp === '/' ? '' : (nsp + '#')) + this.engine.id; }; /** @@ -54538,7 +58639,8 @@ Manager.prototype.maybeReconnectOnOpen = function () { * @api public */ -Manager.prototype.open = Manager.prototype.connect = function (fn, opts) { +Manager.prototype.open = +Manager.prototype.connect = function (fn, opts) { debug('readyState %s', this.readyState); if (~this.readyState.indexOf('open')) return this; @@ -54586,7 +58688,7 @@ Manager.prototype.open = Manager.prototype.connect = function (fn, opts) { }, timeout); this.subs.push({ - destroy: function destroy() { + destroy: function () { clearTimeout(timer); } }); @@ -54700,7 +58802,7 @@ Manager.prototype.socket = function (nsp, opts) { } } - function onConnecting() { + function onConnecting () { if (!~indexOf(self.connecting, socket)) { self.connecting.push(socket); } @@ -54745,8 +58847,7 @@ Manager.prototype.packet = function (packet) { self.encoding = false; self.processPacketQueue(); }); - } else { - // add packet to the queue + } else { // add packet to the queue self.packetBuffer.push(packet); } }; @@ -54793,7 +58894,8 @@ Manager.prototype.cleanup = function () { * @api private */ -Manager.prototype.close = Manager.prototype.disconnect = function () { +Manager.prototype.close = +Manager.prototype.disconnect = function () { debug('disconnect'); this.skipReconnect = true; this.reconnecting = false; @@ -54871,7 +58973,7 @@ Manager.prototype.reconnect = function () { }, delay); this.subs.push({ - destroy: function destroy() { + destroy: function () { clearTimeout(timer); } }); @@ -54892,8 +58994,7 @@ Manager.prototype.onreconnect = function () { this.emitAll('reconnect', attempt); }; -},{"./on":297,"./socket":298,"backo2":178,"component-bind":186,"component-emitter":187,"debug":300,"engine.io-client":212,"indexof":246,"socket.io-parser":303}],297:[function(require,module,exports){ -"use strict"; +},{"./on":299,"./socket":300,"backo2":178,"component-bind":186,"component-emitter":187,"debug":302,"engine.io-client":212,"indexof":246,"socket.io-parser":305}],299:[function(require,module,exports){ /** * Module exports. @@ -54910,19 +59011,16 @@ module.exports = on; * @api public */ -function on(obj, ev, fn) { +function on (obj, ev, fn) { obj.on(ev, fn); return { - destroy: function destroy() { + destroy: function () { obj.removeListener(ev, fn); } }; } -},{}],298:[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; }; +},{}],300:[function(require,module,exports){ /** * Module dependencies. @@ -54978,7 +59076,7 @@ var emit = Emitter.prototype.emit; * @api public */ -function Socket(io, nsp, opts) { +function Socket (io, nsp, opts) { this.io = io; this.nsp = nsp; this.json = this; // compat @@ -55011,7 +59109,11 @@ Socket.prototype.subEvents = function () { if (this.subs) return; var io = this.io; - this.subs = [on(io, 'open', bind(this, 'onopen')), on(io, 'packet', bind(this, 'onpacket')), on(io, 'close', bind(this, 'onclose'))]; + this.subs = [ + on(io, 'open', bind(this, 'onopen')), + on(io, 'packet', bind(this, 'onpacket')), + on(io, 'close', bind(this, 'onclose')) + ]; }; /** @@ -55020,7 +59122,8 @@ Socket.prototype.subEvents = function () { * @api public */ -Socket.prototype.open = Socket.prototype.connect = function () { +Socket.prototype.open = +Socket.prototype.connect = function () { if (this.connected) return this; this.subEvents(); @@ -55110,11 +59213,11 @@ Socket.prototype.onopen = function () { // write connect packet if necessary if ('/' !== this.nsp) { if (this.query) { - var query = _typeof(this.query) === 'object' ? parseqs.encode(this.query) : this.query; + var query = typeof this.query === 'object' ? parseqs.encode(this.query) : this.query; debug('sending connect packet with query %s', query); - this.packet({ type: parser.CONNECT, query: query }); + this.packet({type: parser.CONNECT, query: query}); } else { - this.packet({ type: parser.CONNECT }); + this.packet({type: parser.CONNECT}); } } }; @@ -55314,7 +59417,8 @@ Socket.prototype.destroy = function () { * @api public */ -Socket.prototype.close = Socket.prototype.disconnect = function () { +Socket.prototype.close = +Socket.prototype.disconnect = function () { if (this.connected) { debug('performing disconnect (%s)', this.nsp); this.packet({ type: parser.DISCONNECT }); @@ -55356,9 +59460,8 @@ Socket.prototype.binary = function (binary) { return this; }; -},{"./on":297,"component-bind":186,"component-emitter":187,"debug":300,"has-binary2":229,"parseqs":261,"socket.io-parser":303,"to-array":310}],299:[function(require,module,exports){ +},{"./on":299,"component-bind":186,"component-emitter":187,"debug":302,"has-binary2":229,"parseqs":261,"socket.io-parser":305,"to-array":312}],301:[function(require,module,exports){ (function (global){ -'use strict'; /** * Module dependencies. @@ -55382,7 +59485,7 @@ module.exports = url; * @api public */ -function url(uri, loc) { +function url (uri, loc) { var obj = uri; // default to window.location @@ -55430,22 +59533,18 @@ function url(uri, loc) { // define unique id obj.id = obj.protocol + '://' + host + ':' + obj.port; // define href - obj.href = obj.protocol + '://' + host + (loc && loc.port === obj.port ? '' : ':' + obj.port); + obj.href = obj.protocol + '://' + host + (loc && loc.port === obj.port ? '' : (':' + obj.port)); return obj; } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"debug":300,"parseuri":262}],300:[function(require,module,exports){ +},{"debug":302,"parseuri":262}],302:[function(require,module,exports){ arguments[4][221][0].apply(exports,arguments) -},{"./debug":301,"_process":911,"dup":221}],301:[function(require,module,exports){ +},{"./debug":303,"_process":925,"dup":221}],303:[function(require,module,exports){ arguments[4][222][0].apply(exports,arguments) -},{"dup":222,"ms":260}],302:[function(require,module,exports){ +},{"dup":222,"ms":260}],304:[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; }; - /*global Blob,File*/ /** @@ -55468,13 +59567,13 @@ var withNativeFile = typeof global.File === 'function' || toString.call(global.F * @api public */ -exports.deconstructPacket = function (packet) { +exports.deconstructPacket = function(packet) { var buffers = []; var packetData = packet.data; var pack = packet; pack.data = _deconstructPacket(packetData, buffers); pack.attachments = buffers.length; // number of binary 'attachments' - return { packet: pack, buffers: buffers }; + return {packet: pack, buffers: buffers}; }; function _deconstructPacket(data, buffers) { @@ -55490,7 +59589,7 @@ function _deconstructPacket(data, buffers) { newData[i] = _deconstructPacket(data[i], buffers); } return newData; - } else if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object' && !(data instanceof Date)) { + } else if (typeof data === 'object' && !(data instanceof Date)) { var newData = {}; for (var key in data) { newData[key] = _deconstructPacket(data[key], buffers); @@ -55509,7 +59608,7 @@ function _deconstructPacket(data, buffers) { * @api public */ -exports.reconstructPacket = function (packet, buffers) { +exports.reconstructPacket = function(packet, buffers) { packet.data = _reconstructPacket(packet.data, buffers); packet.attachments = undefined; // no longer useful return packet; @@ -55524,7 +59623,7 @@ function _reconstructPacket(data, buffers) { for (var i = 0; i < data.length; i++) { data[i] = _reconstructPacket(data[i], buffers); } - } else if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object') { + } else if (typeof data === 'object') { for (var key in data) { data[key] = _reconstructPacket(data[key], buffers); } @@ -55543,38 +59642,37 @@ function _reconstructPacket(data, buffers) { * @api private */ -exports.removeBlobs = function (data, callback) { +exports.removeBlobs = function(data, callback) { function _removeBlobs(obj, curKey, containingObject) { if (!obj) return obj; // convert any blob - if (withNativeBlob && obj instanceof Blob || withNativeFile && obj instanceof File) { + if ((withNativeBlob && obj instanceof Blob) || + (withNativeFile && obj instanceof File)) { pendingBlobs++; // async filereader var fileReader = new FileReader(); - fileReader.onload = function () { - // this.result == arraybuffer + fileReader.onload = function() { // this.result == arraybuffer if (containingObject) { containingObject[curKey] = this.result; - } else { + } + else { bloblessData = this.result; } // if nothing pending its callback time - if (! --pendingBlobs) { + if(! --pendingBlobs) { callback(bloblessData); } }; fileReader.readAsArrayBuffer(obj); // blob -> arraybuffer - } else if (isArray(obj)) { - // handle array + } else if (isArray(obj)) { // handle array for (var i = 0; i < obj.length; i++) { _removeBlobs(obj[i], i, obj); } - } else if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !isBuf(obj)) { - // and object + } else if (typeof obj === 'object' && !isBuf(obj)) { // and object for (var key in obj) { _removeBlobs(obj[key], key, obj); } @@ -55590,8 +59688,7 @@ exports.removeBlobs = function (data, callback) { }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./is-buffer":304,"isarray":307}],303:[function(require,module,exports){ -'use strict'; +},{"./is-buffer":306,"isarray":309}],305:[function(require,module,exports){ /** * Module dependencies. @@ -55617,7 +59714,15 @@ exports.protocol = 4; * @api public */ -exports.types = ['CONNECT', 'DISCONNECT', 'EVENT', 'ACK', 'ERROR', 'BINARY_EVENT', 'BINARY_ACK']; +exports.types = [ + 'CONNECT', + 'DISCONNECT', + 'EVENT', + 'ACK', + 'ERROR', + 'BINARY_EVENT', + 'BINARY_ACK' +]; /** * Packet type `connect`. @@ -55711,7 +59816,7 @@ var ERROR_PACKET = exports.ERROR + '"encode error"'; * @api public */ -Encoder.prototype.encode = function (obj, callback) { +Encoder.prototype.encode = function(obj, callback){ debug('encoding packet %j', obj); if (exports.BINARY_EVENT === obj.type || exports.BINARY_ACK === obj.type) { @@ -55768,7 +59873,7 @@ function encodeAsString(obj) { function tryStringify(str) { try { return JSON.stringify(str); - } catch (e) { + } catch(e){ return false; } } @@ -55822,35 +59927,33 @@ Emitter(Decoder.prototype); * @api public */ -Decoder.prototype.add = function (obj) { +Decoder.prototype.add = function(obj) { var packet; if (typeof obj === 'string') { packet = decodeString(obj); - if (exports.BINARY_EVENT === packet.type || exports.BINARY_ACK === packet.type) { - // binary packet's json + if (exports.BINARY_EVENT === packet.type || exports.BINARY_ACK === packet.type) { // binary packet's json this.reconstructor = new BinaryReconstructor(packet); // no attachments, labeled binary but no binary data to follow if (this.reconstructor.reconPack.attachments === 0) { this.emit('decoded', packet); } - } else { - // non-binary full packet + } else { // non-binary full packet this.emit('decoded', packet); } - } else if (isBuf(obj) || obj.base64) { - // raw binary data + } + else if (isBuf(obj) || obj.base64) { // raw binary data if (!this.reconstructor) { throw new Error('got binary data when not reconstructing a packet'); } else { packet = this.reconstructor.takeBinaryData(obj); - if (packet) { - // received final buffer + if (packet) { // received final buffer this.reconstructor = null; this.emit('decoded', packet); } } - } else { + } + else { throw new Error('Unknown type: ' + obj); } }; @@ -55934,7 +60037,7 @@ function decodeString(str) { function tryParse(str) { try { return JSON.parse(str); - } catch (e) { + } catch(e){ return false; } } @@ -55945,7 +60048,7 @@ function tryParse(str) { * @api public */ -Decoder.prototype.destroy = function () { +Decoder.prototype.destroy = function() { if (this.reconstructor) { this.reconstructor.finishedReconstruction(); } @@ -55976,10 +60079,9 @@ function BinaryReconstructor(packet) { * @api private */ -BinaryReconstructor.prototype.takeBinaryData = function (binData) { +BinaryReconstructor.prototype.takeBinaryData = function(binData) { this.buffers.push(binData); - if (this.buffers.length === this.reconPack.attachments) { - // done with buffer list + if (this.buffers.length === this.reconPack.attachments) { // done with buffer list var packet = binary.reconstructPacket(this.reconPack, this.buffers); this.finishedReconstruction(); return packet; @@ -55993,7 +60095,7 @@ BinaryReconstructor.prototype.takeBinaryData = function (binData) { * @api private */ -BinaryReconstructor.prototype.finishedReconstruction = function () { +BinaryReconstructor.prototype.finishedReconstruction = function() { this.reconPack = null; this.buffers = []; }; @@ -56005,24 +60107,21 @@ function error(msg) { }; } -},{"./binary":302,"./is-buffer":304,"component-emitter":187,"debug":305,"isarray":307}],304:[function(require,module,exports){ +},{"./binary":304,"./is-buffer":306,"component-emitter":187,"debug":307,"isarray":309}],306:[function(require,module,exports){ (function (global){ -'use strict'; module.exports = isBuf; var withNativeBuffer = typeof global.Buffer === 'function' && typeof global.Buffer.isBuffer === 'function'; var withNativeArrayBuffer = typeof global.ArrayBuffer === 'function'; -var isView = function () { +var isView = (function () { if (withNativeArrayBuffer && typeof global.ArrayBuffer.isView === 'function') { return global.ArrayBuffer.isView; } else { - return function (obj) { - return obj.buffer instanceof global.ArrayBuffer; - }; + return function (obj) { return obj.buffer instanceof global.ArrayBuffer; }; } -}(); +})(); /** * Returns true if obj is a buffer or an arraybuffer. @@ -56031,17 +60130,18 @@ var isView = function () { */ function isBuf(obj) { - return withNativeBuffer && global.Buffer.isBuffer(obj) || withNativeArrayBuffer && (obj instanceof global.ArrayBuffer || isView(obj)); + return (withNativeBuffer && global.Buffer.isBuffer(obj)) || + (withNativeArrayBuffer && (obj instanceof global.ArrayBuffer || isView(obj))); } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],305:[function(require,module,exports){ +},{}],307:[function(require,module,exports){ arguments[4][221][0].apply(exports,arguments) -},{"./debug":306,"_process":911,"dup":221}],306:[function(require,module,exports){ +},{"./debug":308,"_process":925,"dup":221}],308:[function(require,module,exports){ arguments[4][222][0].apply(exports,arguments) -},{"dup":222,"ms":260}],307:[function(require,module,exports){ +},{"dup":222,"ms":260}],309:[function(require,module,exports){ arguments[4][230][0].apply(exports,arguments) -},{"dup":230}],308:[function(require,module,exports){ +},{"dup":230}],310:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -56225,17 +60325,17 @@ function utf8CheckIncomplete(self, buf, i) { function utf8CheckExtraBytes(self, buf, p) { if ((buf[0] & 0xC0) !== 0x80) { self.lastNeed = 0; - return '\uFFFD'; + return '\ufffd'; } if (self.lastNeed > 1 && buf.length > 1) { if ((buf[1] & 0xC0) !== 0x80) { self.lastNeed = 1; - return '\uFFFD'; + return '\ufffd'; } if (self.lastNeed > 2 && buf.length > 2) { if ((buf[2] & 0xC0) !== 0x80) { self.lastNeed = 2; - return '\uFFFD'; + return '\ufffd'; } } } @@ -56270,7 +60370,7 @@ function utf8Text(buf, i) { // character. function utf8End(buf) { var r = buf && buf.length ? this.write(buf) : ''; - if (this.lastNeed) return r + '\uFFFD'; + if (this.lastNeed) return r + '\ufffd'; return r; } @@ -56338,10 +60438,7 @@ function simpleWrite(buf) { function simpleEnd(buf) { return buf && buf.length ? this.write(buf) : ''; } - -},{"safe-buffer":276}],309:[function(require,module,exports){ -'use strict'; - +},{"safe-buffer":277}],311:[function(require,module,exports){ var isHexPrefixed = require('is-hex-prefixed'); /** @@ -56355,28 +60452,25 @@ module.exports = function stripHexPrefix(str) { } return isHexPrefixed(str) ? str.slice(2) : str; -}; - -},{"is-hex-prefixed":248}],310:[function(require,module,exports){ -"use strict"; +} -module.exports = toArray; +},{"is-hex-prefixed":248}],312:[function(require,module,exports){ +module.exports = toArray function toArray(list, index) { - var array = []; + var array = [] - index = index || 0; + index = index || 0 for (var i = index || 0; i < list.length; i++) { - array[i - index] = list[i]; + array[i - index] = list[i] } - return array; + return array } -},{}],311:[function(require,module,exports){ +},{}],313:[function(require,module,exports){ (function (global){ -'use strict'; /** * Module exports. @@ -56402,7 +60496,7 @@ module.exports = deprecate; * @api public */ -function deprecate(fn, msg) { +function deprecate (fn, msg) { if (config('noDeprecation')) { return fn; } @@ -56433,7 +60527,7 @@ function deprecate(fn, msg) { * @api private */ -function config(name) { +function config (name) { // accessing global.localStorage can trigger a DOMException in sandboxed iframes try { if (!global.localStorage) return false; @@ -56446,49741 +60540,53619 @@ function config(name) { } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],312:[function(require,module,exports){ -'use strict'; - -var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split(''), - length = 64, - map = {}, - seed = 0, - i = 0, - prev; - -/** - * Return a string representing the specified number. +},{}],314:[function(require,module,exports){ +(function (global){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * - * @param {Number} num The number to convert. - * @returns {String} The string representation of the number. - * @api public + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. */ -function encode(num) { - var encoded = ''; + /* eslint-env node */ - do { - encoded = alphabet[num % length] + encoded; - num = Math.floor(num / length); - } while (num > 0); +'use strict'; - return encoded; -} +var adapterFactory = require('./adapter_factory.js'); +module.exports = adapterFactory({window: global.window}); -/** - * Return the integer value specified by the given string. +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{"./adapter_factory.js":315}],315:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * - * @param {String} str The string to convert. - * @returns {Number} The integer value represented by the string. - * @api public + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. */ -function decode(str) { - var decoded = 0; + /* eslint-env node */ - for (i = 0; i < str.length; i++) { - decoded = decoded * length + map[str.charAt(i)]; - } +'use strict'; - return decoded; -} +var utils = require('./utils'); +// Shimming starts here. +module.exports = function(dependencies, opts) { + var window = dependencies && dependencies.window; + + var options = { + shimChrome: true, + shimFirefox: true, + shimEdge: true, + shimSafari: true, + }; + + for (var key in opts) { + if (hasOwnProperty.call(opts, key)) { + options[key] = opts[key]; + } + } + + // Utils. + var logging = utils.log; + var browserDetails = utils.detectBrowser(window); + + // Uncomment the line below if you want logging to occur, including logging + // for the switch statement below. Can also be turned on in the browser via + // adapter.disableLog(false), but then logging from the switch statement below + // will not appear. + // require('./utils').disableLog(false); + + // Browser shims. + var chromeShim = require('./chrome/chrome_shim') || null; + var edgeShim = require('./edge/edge_shim') || null; + var firefoxShim = require('./firefox/firefox_shim') || null; + var safariShim = require('./safari/safari_shim') || null; + var commonShim = require('./common_shim') || null; + + // Export to the adapter global object visible in the browser. + var adapter = { + browserDetails: browserDetails, + commonShim: commonShim, + extractVersion: utils.extractVersion, + disableLog: utils.disableLog, + disableWarnings: utils.disableWarnings + }; + + // Shim browser if found. + switch (browserDetails.browser) { + case 'chrome': + if (!chromeShim || !chromeShim.shimPeerConnection || + !options.shimChrome) { + logging('Chrome shim is not included in this adapter release.'); + return adapter; + } + logging('adapter.js shimming chrome.'); + // Export to the adapter global object visible in the browser. + adapter.browserShim = chromeShim; + commonShim.shimCreateObjectURL(window); + + chromeShim.shimGetUserMedia(window); + chromeShim.shimMediaStream(window); + chromeShim.shimSourceObject(window); + chromeShim.shimPeerConnection(window); + chromeShim.shimOnTrack(window); + chromeShim.shimAddTrackRemoveTrack(window); + chromeShim.shimGetSendersWithDtmf(window); + chromeShim.shimSenderReceiverGetStats(window); + chromeShim.fixNegotiationNeeded(window); + + commonShim.shimRTCIceCandidate(window); + commonShim.shimMaxMessageSize(window); + commonShim.shimSendThrowTypeError(window); + break; + case 'firefox': + if (!firefoxShim || !firefoxShim.shimPeerConnection || + !options.shimFirefox) { + logging('Firefox shim is not included in this adapter release.'); + return adapter; + } + logging('adapter.js shimming firefox.'); + // Export to the adapter global object visible in the browser. + adapter.browserShim = firefoxShim; + commonShim.shimCreateObjectURL(window); + + firefoxShim.shimGetUserMedia(window); + firefoxShim.shimSourceObject(window); + firefoxShim.shimPeerConnection(window); + firefoxShim.shimOnTrack(window); + firefoxShim.shimRemoveStream(window); + firefoxShim.shimSenderGetStats(window); + firefoxShim.shimReceiverGetStats(window); + firefoxShim.shimRTCDataChannel(window); + + commonShim.shimRTCIceCandidate(window); + commonShim.shimMaxMessageSize(window); + commonShim.shimSendThrowTypeError(window); + break; + case 'edge': + if (!edgeShim || !edgeShim.shimPeerConnection || !options.shimEdge) { + logging('MS edge shim is not included in this adapter release.'); + return adapter; + } + logging('adapter.js shimming edge.'); + // Export to the adapter global object visible in the browser. + adapter.browserShim = edgeShim; + commonShim.shimCreateObjectURL(window); -/** - * Yeast: A tiny growing id generator. - * - * @returns {String} A unique id. - * @api public - */ -function yeast() { - var now = encode(+new Date()); + edgeShim.shimGetUserMedia(window); + edgeShim.shimPeerConnection(window); + edgeShim.shimReplaceTrack(window); - if (now !== prev) return seed = 0, prev = now; - return now + '.' + encode(seed++); -} + // the edge shim implements the full RTCIceCandidate object. -// -// Map each character to its index. -// -for (; i < length; i++) { - map[alphabet[i]] = i; -} // -// Expose the `yeast`, `encode` and `decode` functions. -// -yeast.encode = encode; -yeast.decode = decode; -module.exports = yeast; + commonShim.shimMaxMessageSize(window); + commonShim.shimSendThrowTypeError(window); + break; + case 'safari': + if (!safariShim || !options.shimSafari) { + logging('Safari shim is not included in this adapter release.'); + return adapter; + } + logging('adapter.js shimming safari.'); + // Export to the adapter global object visible in the browser. + adapter.browserShim = safariShim; + commonShim.shimCreateObjectURL(window); + + safariShim.shimRTCIceServerUrls(window); + safariShim.shimCreateOfferLegacy(window); + safariShim.shimCallbacksAPI(window); + safariShim.shimLocalStreamsAPI(window); + safariShim.shimRemoteStreamsAPI(window); + safariShim.shimTrackEventTransceiver(window); + safariShim.shimGetUserMedia(window); + + commonShim.shimRTCIceCandidate(window); + commonShim.shimMaxMessageSize(window); + commonShim.shimSendThrowTypeError(window); + break; + default: + logging('Unsupported browser!'); + break; + } -},{}],313:[function(require,module,exports){ -'use strict'; + return adapter; +}; -/** - * @license AngularJS v1.7.5 - * (c) 2010-2018 Google, Inc. http://angularjs.org - * License: MIT +},{"./chrome/chrome_shim":316,"./common_shim":318,"./edge/edge_shim":319,"./firefox/firefox_shim":322,"./safari/safari_shim":324,"./utils":325}],316:[function(require,module,exports){ + +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. */ -(function (window, angular) { - 'use strict'; + /* eslint-env node */ +'use strict'; +var utils = require('../utils.js'); +var logging = utils.log; - 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'; +/* iterates the stats graph recursively. */ +function walkStats(stats, base, resultSet) { + if (!base || resultSet.has(base.id)) { + return; } + resultSet.set(base.id, base); + Object.keys(base).forEach(function(name) { + if (name.endsWith('Id')) { + walkStats(stats, stats.get(base[name]), resultSet); + } else if (name.endsWith('Ids')) { + base[name].forEach(function(id) { + walkStats(stats, stats.get(id), resultSet); + }); + } + }); +} - if (window.onanimationend === undefined && window.onwebkitanimationend !== undefined) { - CSS_PREFIX = '-webkit-'; - ANIMATION_PROP = 'WebkitAnimation'; - ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend'; - } else { - ANIMATION_PROP = 'animation'; - ANIMATIONEND_EVENT = 'animationend'; +/* filter getStats for a sender/receiver track. */ +function filterStats(result, track, outbound) { + var streamStatsType = outbound ? 'outbound-rtp' : 'inbound-rtp'; + var filteredResult = new Map(); + if (track === null) { + return filteredResult; } + var trackStats = []; + result.forEach(function(value) { + if (value.type === 'track' && + value.trackIdentifier === track.id) { + trackStats.push(value); + } + }); + trackStats.forEach(function(trackStat) { + result.forEach(function(stats) { + if (stats.type === streamStatsType && stats.trackId === trackStat.id) { + walkStats(result, stats, filteredResult); + } + }); + }); + return filteredResult; +} - 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; +module.exports = { + shimGetUserMedia: require('./getusermedia'), + shimMediaStream: function(window) { + window.MediaStream = window.MediaStream || window.webkitMediaStream; + }, - 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; + shimOnTrack: function(window) { + if (typeof window === 'object' && window.RTCPeerConnection && !('ontrack' in + window.RTCPeerConnection.prototype)) { + Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', { + get: function() { + return this._ontrack; + }, + set: function(f) { + if (this._ontrack) { + this.removeEventListener('track', this._ontrack); + } + this.addEventListener('track', this._ontrack = f); + }, + enumerable: true, + configurable: true + }); + var origSetRemoteDescription = + window.RTCPeerConnection.prototype.setRemoteDescription; + window.RTCPeerConnection.prototype.setRemoteDescription = function() { + var pc = this; + if (!pc._ontrackpoly) { + pc._ontrackpoly = function(e) { + // onaddstream does not fire when a track is added to an existing + // stream. But stream.onaddtrack is implemented so we use that. + e.stream.addEventListener('addtrack', function(te) { + var receiver; + if (window.RTCPeerConnection.prototype.getReceivers) { + receiver = pc.getReceivers().find(function(r) { + return r.track && r.track.id === te.track.id; + }); + } else { + receiver = {track: te.track}; + } - var ngMinErr = angular.$$minErr('ng'); - function assertArg(arg, name, reason) { - if (!arg) { - throw ngMinErr('areq', 'Argument \'{0}\' is {1}', name || '?', reason || 'required'); + var event = new Event('track'); + event.track = te.track; + event.receiver = receiver; + event.transceiver = {receiver: receiver}; + event.streams = [e.stream]; + pc.dispatchEvent(event); + }); + e.stream.getTracks().forEach(function(track) { + var receiver; + if (window.RTCPeerConnection.prototype.getReceivers) { + receiver = pc.getReceivers().find(function(r) { + return r.track && r.track.id === track.id; + }); + } else { + receiver = {track: track}; + } + var event = new Event('track'); + event.track = track; + event.receiver = receiver; + event.transceiver = {receiver: receiver}; + event.streams = [e.stream]; + pc.dispatchEvent(event); + }); + }; + pc.addEventListener('addstream', pc._ontrackpoly); + } + return origSetRemoteDescription.apply(pc, arguments); + }; + } else { + // even if RTCRtpTransceiver is in window, it is only used and + // emitted in unified-plan. Unfortunately this means we need + // to unconditionally wrap the event. + utils.wrapPeerConnectionEvent(window, 'track', function(e) { + if (!e.transceiver) { + Object.defineProperty(e, 'transceiver', + {value: {receiver: e.receiver}}); + } + return e; + }); } - 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; - } + shimGetSendersWithDtmf: function(window) { + // Overrides addTrack/removeTrack, depends on shimAddTrackRemoveTrack. + if (typeof window === 'object' && window.RTCPeerConnection && + !('getSenders' in window.RTCPeerConnection.prototype) && + 'createDTMFSender' in window.RTCPeerConnection.prototype) { + var shimSenderWithDtmf = function(pc, track) { + return { + track: track, + get dtmf() { + if (this._dtmf === undefined) { + if (track.kind === 'audio') { + this._dtmf = pc.createDTMFSender(track); + } else { + this._dtmf = null; + } + } + return this._dtmf; + }, + _pc: pc + }; + }; - function packageStyles(options) { - var styles = {}; - if (options && (options.to || options.from)) { - styles.to = options.to; - styles.from = options.from; - } - return styles; - } + // augment addTrack when getSenders is not available. + if (!window.RTCPeerConnection.prototype.getSenders) { + window.RTCPeerConnection.prototype.getSenders = function() { + this._senders = this._senders || []; + return this._senders.slice(); // return a copy of the internal state. + }; + var origAddTrack = window.RTCPeerConnection.prototype.addTrack; + window.RTCPeerConnection.prototype.addTrack = function(track, stream) { + var pc = this; + var sender = origAddTrack.apply(pc, arguments); + if (!sender) { + sender = shimSenderWithDtmf(pc, track); + pc._senders.push(sender); + } + return sender; + }; - 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; + var origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack; + window.RTCPeerConnection.prototype.removeTrack = function(sender) { + var pc = this; + origRemoveTrack.apply(pc, arguments); + var idx = pc._senders.indexOf(sender); + if (idx !== -1) { + pc._senders.splice(idx, 1); + } + }; } - }); - return className; - } - - function removeFromArray(arr, val) { - var index = arr.indexOf(val); - if (val >= 0) { - arr.splice(index, 1); - } - } + var origAddStream = window.RTCPeerConnection.prototype.addStream; + window.RTCPeerConnection.prototype.addStream = function(stream) { + var pc = this; + pc._senders = pc._senders || []; + origAddStream.apply(pc, [stream]); + stream.getTracks().forEach(function(track) { + pc._senders.push(shimSenderWithDtmf(pc, track)); + }); + }; - function stripCommentsFromElement(element) { - if (element instanceof jqLite) { - switch (element.length) { - case 0: - return element; + var origRemoveStream = window.RTCPeerConnection.prototype.removeStream; + window.RTCPeerConnection.prototype.removeStream = function(stream) { + var pc = this; + pc._senders = pc._senders || []; + origRemoveStream.apply(pc, [stream]); - 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; + stream.getTracks().forEach(function(track) { + var sender = pc._senders.find(function(s) { + return s.track === track; + }); + if (sender) { + pc._senders.splice(pc._senders.indexOf(sender), 1); // remove sender } - break; + }); + }; + } else if (typeof window === 'object' && window.RTCPeerConnection && + 'getSenders' in window.RTCPeerConnection.prototype && + 'createDTMFSender' in window.RTCPeerConnection.prototype && + window.RTCRtpSender && + !('dtmf' in window.RTCRtpSender.prototype)) { + var origGetSenders = window.RTCPeerConnection.prototype.getSenders; + window.RTCPeerConnection.prototype.getSenders = function() { + var pc = this; + var senders = origGetSenders.apply(pc, []); + senders.forEach(function(sender) { + sender._pc = pc; + }); + return senders; + }; - default: - return jqLite(extractElementNode(element)); - } + Object.defineProperty(window.RTCRtpSender.prototype, 'dtmf', { + get: function() { + if (this._dtmf === undefined) { + if (this.track.kind === 'audio') { + this._dtmf = this._pc.createDTMFSender(this.track); + } else { + this._dtmf = null; + } + } + return this._dtmf; + } + }); } + }, - if (element.nodeType === ELEMENT_NODE) { - return jqLite(element); + shimSenderReceiverGetStats: function(window) { + if (!(typeof window === 'object' && window.RTCPeerConnection && + window.RTCRtpSender && window.RTCRtpReceiver)) { + return; } - } - 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; + // shim sender stats. + if (!('getStats' in window.RTCRtpSender.prototype)) { + var origGetSenders = window.RTCPeerConnection.prototype.getSenders; + if (origGetSenders) { + window.RTCPeerConnection.prototype.getSenders = function() { + var pc = this; + var senders = origGetSenders.apply(pc, []); + senders.forEach(function(sender) { + sender._pc = pc; + }); + return senders; + }; } - } - } - - 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; + var origAddTrack = window.RTCPeerConnection.prototype.addTrack; + if (origAddTrack) { + window.RTCPeerConnection.prototype.addTrack = function() { + var sender = origAddTrack.apply(this, arguments); + sender._pc = this; + return sender; + }; } - }; - } - - function prepareAnimationOptions(options) { - options = options || {}; - if (!options.$$prepared) { - var domOperation = options.domOperation || noop; - options.domOperation = function () { - options.$$domOperationFired = true; - domOperation(); - domOperation = noop; + window.RTCRtpSender.prototype.getStats = function() { + var sender = this; + return this._pc.getStats().then(function(result) { + /* Note: this will include stats of all senders that + * send a track with the same id as sender.track as + * it is not possible to identify the RTCRtpSender. + */ + return filterStats(result, sender.track, true); + }); }; - 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; + // shim receiver stats. + if (!('getStats' in window.RTCRtpReceiver.prototype)) { + var origGetReceivers = window.RTCPeerConnection.prototype.getReceivers; + if (origGetReceivers) { + window.RTCPeerConnection.prototype.getReceivers = function() { + var pc = this; + var receivers = origGetReceivers.apply(pc, []); + receivers.forEach(function(receiver) { + receiver._pc = pc; + }); + return receivers; + }; + } + utils.wrapPeerConnectionEvent(window, 'track', function(e) { + e.receiver._pc = e.srcElement; + return e; + }); + window.RTCRtpReceiver.prototype.getStats = function() { + var receiver = this; + return this._pc.getStats().then(function(result) { + return filterStats(result, receiver.track, false); + }); + }; } - } - function applyAnimationToStyles(element, options) { - if (options.to) { - element.css(options.to); - options.to = null; + if (!('getStats' in window.RTCRtpSender.prototype && + 'getStats' in window.RTCRtpReceiver.prototype)) { + return; } - } - - 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; - } + // shim RTCPeerConnection.getStats(track). + var origGetStats = window.RTCPeerConnection.prototype.getStats; + window.RTCPeerConnection.prototype.getStats = function() { + var pc = this; + if (arguments.length > 0 && + arguments[0] instanceof window.MediaStreamTrack) { + var track = arguments[0]; + var sender; + var receiver; + var err; + pc.getSenders().forEach(function(s) { + if (s.track === track) { + if (sender) { + err = true; + } else { + sender = s; + } + } + }); + pc.getReceivers().forEach(function(r) { + if (r.track === track) { + if (receiver) { + err = true; + } else { + receiver = r; + } + } + return r.track === track; + }); + if (err || (sender && receiver)) { + return Promise.reject(new DOMException( + 'There are more than one sender or receiver for the track.', + 'InvalidAccessError')); + } else if (sender) { + return sender.getStats(); + } else if (receiver) { + return receiver.getStats(); + } + return Promise.reject(new DOMException( + 'There is no sender or receiver for the track.', + 'InvalidAccessError')); + } + return origGetStats.apply(pc, arguments); + }; + }, - // noop is basically when there is no callback; otherwise something has been set - var realDomOperation = target.domOperation !== noop ? target.domOperation : null; + shimSourceObject: function(window) { + var URL = window && window.URL; - extend(target, newOptions); + if (typeof window === 'object') { + if (window.HTMLMediaElement && + !('srcObject' in window.HTMLMediaElement.prototype)) { + // Shim the srcObject property, once, when HTMLMediaElement is found. + Object.defineProperty(window.HTMLMediaElement.prototype, 'srcObject', { + get: function() { + return this._srcObject; + }, + set: function(stream) { + var self = this; + // Use _srcObject as a private property for this shim + this._srcObject = stream; + if (this.src) { + URL.revokeObjectURL(this.src); + } - // 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 (!stream) { + this.src = ''; + return undefined; + } + this.src = URL.createObjectURL(stream); + // We need to recreate the blob url when a track is added or + // removed. Doing it manually since we want to avoid a recursion. + stream.addEventListener('addtrack', function() { + if (self.src) { + URL.revokeObjectURL(self.src); + } + self.src = URL.createObjectURL(stream); + }); + stream.addEventListener('removetrack', function() { + if (self.src) { + URL.revokeObjectURL(self.src); + } + self.src = URL.createObjectURL(stream); + }); + } + }); + } } + }, - if (classes.addClass) { - target.addClass = classes.addClass; - } else { - target.addClass = null; - } + shimAddTrackRemoveTrackWithNative: function(window) { + // shim addTrack/removeTrack with native variants in order to make + // the interactions with legacy getLocalStreams behave as in other browsers. + // Keeps a mapping stream.id => [stream, rtpsenders...] + window.RTCPeerConnection.prototype.getLocalStreams = function() { + var pc = this; + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; + return Object.keys(this._shimmedLocalStreams).map(function(streamId) { + return pc._shimmedLocalStreams[streamId][0]; + }); + }; - if (classes.removeClass) { - target.removeClass = classes.removeClass; - } else { - target.removeClass = null; - } + var origAddTrack = window.RTCPeerConnection.prototype.addTrack; + window.RTCPeerConnection.prototype.addTrack = function(track, stream) { + if (!stream) { + return origAddTrack.apply(this, arguments); + } + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; - oldAnimation.addClass = target.addClass; - oldAnimation.removeClass = target.removeClass; + var sender = origAddTrack.apply(this, arguments); + if (!this._shimmedLocalStreams[stream.id]) { + this._shimmedLocalStreams[stream.id] = [stream, sender]; + } else if (this._shimmedLocalStreams[stream.id].indexOf(sender) === -1) { + this._shimmedLocalStreams[stream.id].push(sender); + } + return sender; + }; - return target; - } + var origAddStream = window.RTCPeerConnection.prototype.addStream; + window.RTCPeerConnection.prototype.addStream = function(stream) { + var pc = this; + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; - function resolveElementClasses(existing, toAdd, toRemove) { - var ADD_CLASS = 1; - var REMOVE_CLASS = -1; + stream.getTracks().forEach(function(track) { + var alreadyExists = pc.getSenders().find(function(s) { + return s.track === track; + }); + if (alreadyExists) { + throw new DOMException('Track already exists.', + 'InvalidAccessError'); + } + }); + var existingSenders = pc.getSenders(); + origAddStream.apply(this, arguments); + var newSenders = pc.getSenders().filter(function(newSender) { + return existingSenders.indexOf(newSender) === -1; + }); + this._shimmedLocalStreams[stream.id] = [stream].concat(newSenders); + }; - var flags = {}; - existing = splitClassesToLookup(existing); + var origRemoveStream = window.RTCPeerConnection.prototype.removeStream; + window.RTCPeerConnection.prototype.removeStream = function(stream) { + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; + delete this._shimmedLocalStreams[stream.id]; + return origRemoveStream.apply(this, arguments); + }; - toAdd = splitClassesToLookup(toAdd); - forEach(toAdd, function (value, key) { - flags[key] = ADD_CLASS; - }); + var origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack; + window.RTCPeerConnection.prototype.removeTrack = function(sender) { + var pc = this; + this._shimmedLocalStreams = this._shimmedLocalStreams || {}; + if (sender) { + Object.keys(this._shimmedLocalStreams).forEach(function(streamId) { + var idx = pc._shimmedLocalStreams[streamId].indexOf(sender); + if (idx !== -1) { + pc._shimmedLocalStreams[streamId].splice(idx, 1); + } + if (pc._shimmedLocalStreams[streamId].length === 1) { + delete pc._shimmedLocalStreams[streamId]; + } + }); + } + return origRemoveTrack.apply(this, arguments); + }; + }, - toRemove = splitClassesToLookup(toRemove); - forEach(toRemove, function (value, key) { - flags[key] = flags[key] === ADD_CLASS ? null : REMOVE_CLASS; - }); + shimAddTrackRemoveTrack: function(window) { + var browserDetails = utils.detectBrowser(window); + // shim addTrack and removeTrack. + if (window.RTCPeerConnection.prototype.addTrack && + browserDetails.version >= 65) { + return this.shimAddTrackRemoveTrackWithNative(window); + } - var classes = { - addClass: '', - removeClass: '' + // also shim pc.getLocalStreams when addTrack is shimmed + // to return the original streams. + var origGetLocalStreams = window.RTCPeerConnection.prototype + .getLocalStreams; + window.RTCPeerConnection.prototype.getLocalStreams = function() { + var pc = this; + var nativeStreams = origGetLocalStreams.apply(this); + pc._reverseStreams = pc._reverseStreams || {}; + return nativeStreams.map(function(stream) { + return pc._reverseStreams[stream.id]; + }); }; - 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] += ' '; + var origAddStream = window.RTCPeerConnection.prototype.addStream; + window.RTCPeerConnection.prototype.addStream = function(stream) { + var pc = this; + pc._streams = pc._streams || {}; + pc._reverseStreams = pc._reverseStreams || {}; + + stream.getTracks().forEach(function(track) { + var alreadyExists = pc.getSenders().find(function(s) { + return s.track === track; + }); + if (alreadyExists) { + throw new DOMException('Track already exists.', + 'InvalidAccessError'); } - classes[prop] += klass; + }); + // Add identity mapping for consistency with addTrack. + // Unless this is being used with a stream from addTrack. + if (!pc._reverseStreams[stream.id]) { + var newStream = new window.MediaStream(stream.getTracks()); + pc._streams[stream.id] = newStream; + pc._reverseStreams[newStream.id] = stream; + stream = newStream; + } + origAddStream.apply(pc, [stream]); + }; + + var origRemoveStream = window.RTCPeerConnection.prototype.removeStream; + window.RTCPeerConnection.prototype.removeStream = function(stream) { + var pc = this; + pc._streams = pc._streams || {}; + pc._reverseStreams = pc._reverseStreams || {}; + + origRemoveStream.apply(pc, [(pc._streams[stream.id] || stream)]); + delete pc._reverseStreams[(pc._streams[stream.id] ? + pc._streams[stream.id].id : stream.id)]; + delete pc._streams[stream.id]; + }; + + window.RTCPeerConnection.prototype.addTrack = function(track, stream) { + var pc = this; + if (pc.signalingState === 'closed') { + throw new DOMException( + 'The RTCPeerConnection\'s signalingState is \'closed\'.', + 'InvalidStateError'); + } + var streams = [].slice.call(arguments, 1); + if (streams.length !== 1 || + !streams[0].getTracks().find(function(t) { + return t === track; + })) { + // this is not fully correct but all we can manage without + // [[associated MediaStreams]] internal slot. + throw new DOMException( + 'The adapter.js addTrack polyfill only supports a single ' + + ' stream which is associated with the specified track.', + 'NotSupportedError'); + } + + var alreadyExists = pc.getSenders().find(function(s) { + return s.track === track; + }); + if (alreadyExists) { + throw new DOMException('Track already exists.', + 'InvalidAccessError'); + } + + pc._streams = pc._streams || {}; + pc._reverseStreams = pc._reverseStreams || {}; + var oldStream = pc._streams[stream.id]; + if (oldStream) { + // this is using odd Chrome behaviour, use with caution: + // https://bugs.chromium.org/p/webrtc/issues/detail?id=7815 + // Note: we rely on the high-level addTrack/dtmf shim to + // create the sender with a dtmf sender. + oldStream.addTrack(track); + + // Trigger ONN async. + Promise.resolve().then(function() { + pc.dispatchEvent(new Event('negotiationneeded')); + }); + } else { + var newStream = new window.MediaStream([track]); + pc._streams[stream.id] = newStream; + pc._reverseStreams[newStream.id] = stream; + pc.addStream(newStream); } + return pc.getSenders().find(function(s) { + return s.track === track; + }); + }; + + // replace the internal stream id with the external one and + // vice versa. + function replaceInternalStreamId(pc, description) { + var sdp = description.sdp; + Object.keys(pc._reverseStreams || []).forEach(function(internalId) { + var externalStream = pc._reverseStreams[internalId]; + var internalStream = pc._streams[externalStream.id]; + sdp = sdp.replace(new RegExp(internalStream.id, 'g'), + externalStream.id); + }); + return new RTCSessionDescription({ + type: description.type, + sdp: sdp + }); + } + function replaceExternalStreamId(pc, description) { + var sdp = description.sdp; + Object.keys(pc._reverseStreams || []).forEach(function(internalId) { + var externalStream = pc._reverseStreams[internalId]; + var internalStream = pc._streams[externalStream.id]; + sdp = sdp.replace(new RegExp(externalStream.id, 'g'), + internalStream.id); + }); + return new RTCSessionDescription({ + type: description.type, + sdp: sdp + }); + } + ['createOffer', 'createAnswer'].forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + var pc = this; + var args = arguments; + var isLegacyCall = arguments.length && + typeof arguments[0] === 'function'; + if (isLegacyCall) { + return nativeMethod.apply(pc, [ + function(description) { + var desc = replaceInternalStreamId(pc, description); + args[0].apply(null, [desc]); + }, + function(err) { + if (args[1]) { + args[1].apply(null, err); + } + }, arguments[2] + ]); + } + return nativeMethod.apply(pc, arguments) + .then(function(description) { + return replaceInternalStreamId(pc, description); + }); + }; }); - function splitClassesToLookup(classes) { - if (isString(classes)) { - classes = classes.split(' '); + var origSetLocalDescription = + window.RTCPeerConnection.prototype.setLocalDescription; + window.RTCPeerConnection.prototype.setLocalDescription = function() { + var pc = this; + if (!arguments.length || !arguments[0].type) { + return origSetLocalDescription.apply(pc, arguments); } + arguments[0] = replaceExternalStreamId(pc, arguments[0]); + return origSetLocalDescription.apply(pc, arguments); + }; - 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; + // TODO: mangle getStats: https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamstats-streamidentifier + + var origLocalDescription = Object.getOwnPropertyDescriptor( + window.RTCPeerConnection.prototype, 'localDescription'); + Object.defineProperty(window.RTCPeerConnection.prototype, + 'localDescription', { + get: function() { + var pc = this; + var description = origLocalDescription.get.apply(this); + if (description.type === '') { + return description; + } + return replaceInternalStreamId(pc, description); + } + }); + + window.RTCPeerConnection.prototype.removeTrack = function(sender) { + var pc = this; + if (pc.signalingState === 'closed') { + throw new DOMException( + 'The RTCPeerConnection\'s signalingState is \'closed\'.', + 'InvalidStateError'); + } + // We can not yet check for sender instanceof RTCRtpSender + // since we shim RTPSender. So we check if sender._pc is set. + if (!sender._pc) { + throw new DOMException('Argument 1 of RTCPeerConnection.removeTrack ' + + 'does not implement interface RTCRtpSender.', 'TypeError'); + } + var isLocal = sender._pc === pc; + if (!isLocal) { + throw new DOMException('Sender was not created by this connection.', + 'InvalidAccessError'); + } + + // Search for the native stream the senders track belongs to. + pc._streams = pc._streams || {}; + var stream; + Object.keys(pc._streams).forEach(function(streamid) { + var hasTrack = pc._streams[streamid].getTracks().find(function(track) { + return sender.track === track; + }); + if (hasTrack) { + stream = pc._streams[streamid]; } }); - return obj; - } - return classes; - } + if (stream) { + if (stream.getTracks().length === 1) { + // if this is the last track of the stream, remove the stream. This + // takes care of any shimmed _senders. + pc.removeStream(pc._reverseStreams[stream.id]); + } else { + // relying on the same odd chrome behaviour as above. + stream.removeTrack(sender.track); + } + pc.dispatchEvent(new Event('negotiationneeded')); + } + }; + }, - function getDomNode(element) { - return element instanceof jqLite ? element[0] : element; - } + shimPeerConnection: function(window) { + var browserDetails = utils.detectBrowser(window); - function applyGeneratedPreparationClasses($$jqLite, 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); - } - } + // The RTCPeerConnection object. + if (!window.RTCPeerConnection && window.webkitRTCPeerConnection) { + window.RTCPeerConnection = function(pcConfig, pcConstraints) { + // Translate iceTransportPolicy to iceTransports, + // see https://code.google.com/p/webrtc/issues/detail?id=4869 + // this was fixed in M56 along with unprefixing RTCPeerConnection. + logging('PeerConnection'); + if (pcConfig && pcConfig.iceTransportPolicy) { + pcConfig.iceTransports = pcConfig.iceTransportPolicy; + } - function clearGeneratedClasses(element, options) { - if (options.preparationClasses) { - element.removeClass(options.preparationClasses); - options.preparationClasses = null; - } - if (options.activeClasses) { - element.removeClass(options.activeClasses); - options.activeClasses = null; + return new window.webkitRTCPeerConnection(pcConfig, pcConstraints); + }; + window.RTCPeerConnection.prototype = + window.webkitRTCPeerConnection.prototype; + // wrap static methods. Currently just generateCertificate. + if (window.webkitRTCPeerConnection.generateCertificate) { + Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', { + get: function() { + return window.webkitRTCPeerConnection.generateCertificate; + } + }); + } } - } - 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]; - } + var origGetStats = window.RTCPeerConnection.prototype.getStats; + window.RTCPeerConnection.prototype.getStats = function(selector, + successCallback, errorCallback) { + var pc = this; + var args = arguments; - function blockKeyframeAnimations(node, applyBlock) { - var value = applyBlock ? 'paused' : ''; - var key = ANIMATION_PROP + ANIMATION_PLAYSTATE_KEY; - applyInlineStyle(node, [key, value]); - return [key, value]; - } + // If selector is a function then we are in the old style stats so just + // pass back the original getStats format to avoid breaking old users. + if (arguments.length > 0 && typeof selector === 'function') { + return origGetStats.apply(this, arguments); + } - function applyInlineStyle(node, styleTuple) { - var prop = styleTuple[0]; - var value = styleTuple[1]; - node.style[prop] = value; - } + // When spec-style getStats is supported, return those when called with + // either no arguments or the selector argument is null. + if (origGetStats.length === 0 && (arguments.length === 0 || + typeof arguments[0] !== 'function')) { + return origGetStats.apply(this, []); + } - function concatWithSpace(a, b) { - if (!a) return b; - if (!b) return a; - return a + ' ' + b; - } + var fixChromeStats_ = function(response) { + var standardReport = {}; + var reports = response.result(); + reports.forEach(function(report) { + var standardStats = { + id: report.id, + timestamp: report.timestamp, + type: { + localcandidate: 'local-candidate', + remotecandidate: 'remote-candidate' + }[report.type] || report.type + }; + report.names().forEach(function(name) { + standardStats[name] = report.stat(name); + }); + standardReport[standardStats.id] = standardStats; + }); - var $$rAFSchedulerFactory = ['$$rAF', function ($$rAF) { - var queue, cancelFn; + return standardReport; + }; - 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(); - } + // shim getStats with maplike support + var makeMapStats = function(stats) { + return new Map(Object.keys(stats).map(function(key) { + return [key, stats[key]]; + })); + }; - queue = scheduler.queue = []; + if (arguments.length >= 2) { + var successCallbackWrapper_ = function(response) { + args[1](makeMapStats(fixChromeStats_(response))); + }; - /* 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(); + return origGetStats.apply(this, [successCallbackWrapper_, + arguments[0]]); + } + + // promise-support + return new Promise(function(resolve, reject) { + origGetStats.apply(pc, [ + function(response) { + resolve(makeMapStats(fixChromeStats_(response))); + }, reject]); + }).then(successCallback, errorCallback); + }; + + // add promise support -- natively available in Chrome 51 + if (browserDetails.version < 51) { + ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'] + .forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + var args = arguments; + var pc = this; + var promise = new Promise(function(resolve, reject) { + nativeMethod.apply(pc, [args[0], resolve, reject]); + }); + if (args.length < 2) { + return promise; + } + return promise.then(function() { + args[1].apply(null, []); + }, + function(err) { + if (args.length >= 3) { + args[2].apply(null, [err]); + } + }); + }; + }); + } - cancelFn = $$rAF(function () { - cancelFn = null; - fn(); - nextTick(); + // promise support for createOffer and createAnswer. Available (without + // bugs) since M52: crbug/619289 + if (browserDetails.version < 52) { + ['createOffer', 'createAnswer'].forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + var pc = this; + if (arguments.length < 1 || (arguments.length === 1 && + typeof arguments[0] === 'object')) { + var opts = arguments.length === 1 ? arguments[0] : undefined; + return new Promise(function(resolve, reject) { + nativeMethod.apply(pc, [resolve, reject, opts]); + }); + } + return nativeMethod.apply(this, arguments); + }; }); - }; - - return scheduler; + } - function nextTick() { - if (!queue.length) return; + // shim implicit creation of RTCSessionDescription/RTCIceCandidate + ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'] + .forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + arguments[0] = new ((method === 'addIceCandidate') ? + window.RTCIceCandidate : + window.RTCSessionDescription)(arguments[0]); + return nativeMethod.apply(this, arguments); + }; + }); - var items = queue.shift(); - for (var i = 0; i < items.length; i++) { - items[i](); + // support for addIceCandidate(null or undefined) + var nativeAddIceCandidate = + window.RTCPeerConnection.prototype.addIceCandidate; + window.RTCPeerConnection.prototype.addIceCandidate = function() { + if (!arguments[0]) { + if (arguments[1]) { + arguments[1].apply(null); + } + return Promise.resolve(); } + return nativeAddIceCandidate.apply(this, arguments); + }; + }, - if (!cancelFn) { - $$rAF(function () { - if (!cancelFn) nextTick(); - }); + fixNegotiationNeeded: function(window) { + utils.wrapPeerConnectionEvent(window, 'negotiationneeded', function(e) { + var pc = e.target; + if (pc.signalingState !== 'stable') { + return; } + return e; + }); + }, + + shimGetDisplayMedia: function(window, getSourceId) { + if ('getDisplayMedia' in window.navigator) { + return; } - }]; + // getSourceId is a function that returns a promise resolving with + // the sourceId of the screen/window/tab to be shared. + if (typeof getSourceId !== 'function') { + console.error('shimGetDisplayMedia: getSourceId argument is not ' + + 'a function'); + return; + } + navigator.getDisplayMedia = function(constraints) { + return getSourceId(constraints) + .then(function(sourceId) { + constraints.video = { + mandatory: { + chromeMediaSource: 'desktop', + chromeMediaSourceId: sourceId, + maxFrameRate: constraints.video.frameRate || 3 + } + }; + if (constraints.video) { + if (constraints.video.height) { + constraints.video.maxWidth = constraints.video.width; + } + if (constraints.video.width) { + constraints.video.maxHeight = constraints.video.height; + } + } + return navigator.mediaDevices.getUserMedia(constraints); + }); + }; + } +}; - /** - * @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 - * - -
    - - -
    -
    -
    - List of items: -
    Item {{item}}
    -
    -
    -
    -
    - - - .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); +},{"../utils.js":325,"./getusermedia":317}],317:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; +var utils = require('../utils.js'); +var logging = utils.log; + +// Expose public methods. +module.exports = function(window) { + var browserDetails = utils.detectBrowser(window); + var navigator = window && window.navigator; + + var constraintsToChrome_ = function(c) { + if (typeof c !== 'object' || c.mandatory || c.optional) { + return c; + } + var cc = {}; + Object.keys(c).forEach(function(key) { + if (key === 'require' || key === 'advanced' || key === 'mediaSource') { + return; + } + var r = (typeof c[key] === 'object') ? c[key] : {ideal: c[key]}; + if (r.exact !== undefined && typeof r.exact === 'number') { + r.min = r.max = r.exact; + } + var oldname_ = function(prefix, name) { + if (prefix) { + return prefix + name.charAt(0).toUpperCase() + name.slice(1); } - - - angular.module('ngAnimateChildren', ['ngAnimate']) - .controller('MainController', function MainController() { - this.animateChildren = false; - this.enterElement = false; - }); - -
    - */ - 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); + return (name === 'deviceId') ? 'sourceId' : name; + }; + if (r.ideal !== undefined) { + cc.optional = cc.optional || []; + var oc = {}; + if (typeof r.ideal === 'number') { + oc[oldname_('min', key)] = r.ideal; + cc.optional.push(oc); + oc = {}; + oc[oldname_('max', key)] = r.ideal; + cc.optional.push(oc); } 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); + oc[oldname_('', key)] = r.ideal; + cc.optional.push(oc); } + } + if (r.exact !== undefined && typeof r.exact !== 'number') { + cc.mandatory = cc.mandatory || {}; + cc.mandatory[oldname_('', key)] = r.exact; + } else { + ['min', 'max'].forEach(function(mix) { + if (r[mix] !== undefined) { + cc.mandatory = cc.mandatory || {}; + cc.mandatory[oldname_(mix, key)] = r[mix]; + } + }); + } + }); + if (c.advanced) { + cc.optional = (cc.optional || []).concat(c.advanced); + } + return cc; + }; - function setData(value) { - value = value === 'on' || value === 'true'; - element.data(NG_ANIMATE_CHILDREN_DATA, value); + var shimConstraints_ = function(constraints, func) { + if (browserDetails.version >= 61) { + return func(constraints); + } + constraints = JSON.parse(JSON.stringify(constraints)); + if (constraints && typeof constraints.audio === 'object') { + var remap = function(obj, a, b) { + if (a in obj && !(b in obj)) { + obj[b] = obj[a]; + delete obj[a]; + } + }; + constraints = JSON.parse(JSON.stringify(constraints)); + remap(constraints.audio, 'autoGainControl', 'googAutoGainControl'); + remap(constraints.audio, 'noiseSuppression', 'googNoiseSuppression'); + constraints.audio = constraintsToChrome_(constraints.audio); + } + if (constraints && typeof constraints.video === 'object') { + // Shim facingMode for mobile & surface pro. + var face = constraints.video.facingMode; + face = face && ((typeof face === 'object') ? face : {ideal: face}); + var getSupportedFacingModeLies = browserDetails.version < 66; + + if ((face && (face.exact === 'user' || face.exact === 'environment' || + face.ideal === 'user' || face.ideal === 'environment')) && + !(navigator.mediaDevices.getSupportedConstraints && + navigator.mediaDevices.getSupportedConstraints().facingMode && + !getSupportedFacingModeLies)) { + delete constraints.video.facingMode; + var matches; + if (face.exact === 'environment' || face.ideal === 'environment') { + matches = ['back', 'rear']; + } else if (face.exact === 'user' || face.ideal === 'user') { + matches = ['front']; + } + if (matches) { + // Look for matches in label, or use last cam for back (typical). + return navigator.mediaDevices.enumerateDevices() + .then(function(devices) { + devices = devices.filter(function(d) { + return d.kind === 'videoinput'; + }); + var dev = devices.find(function(d) { + return matches.some(function(match) { + return d.label.toLowerCase().indexOf(match) !== -1; + }); + }); + if (!dev && devices.length && matches.indexOf('back') !== -1) { + dev = devices[devices.length - 1]; // more likely the back cam + } + if (dev) { + constraints.video.deviceId = face.exact ? {exact: dev.deviceId} : + {ideal: dev.deviceId}; + } + constraints.video = constraintsToChrome_(constraints.video); + logging('chrome: ' + JSON.stringify(constraints)); + return func(constraints); + }); } } - }; - }]; - - /* exported $AnimateCssProvider */ - - var ANIMATE_TIMER_KEY = '$$animateCss'; + constraints.video = constraintsToChrome_(constraints.video); + } + logging('chrome: ' + JSON.stringify(constraints)); + return func(constraints); + }; - /** - * @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 AngularJS. 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 - * - *
    - * This element will go BOOM - *
    - * - * ``` - * - * 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 - * /* 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 */ - * .red { background:red; } - * .large-text { font-size:20px; } - * - * /* we can also use a keyframe animation and $animateCss will make it work alongside the transition */ - * .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 + var shimError_ = function(e) { + if (browserDetails.version >= 64) { + return e; + } + return { + name: { + PermissionDeniedError: 'NotAllowedError', + PermissionDismissedError: 'NotAllowedError', + InvalidStateError: 'NotAllowedError', + DevicesNotFoundError: 'NotFoundError', + ConstraintNotSatisfiedError: 'OverconstrainedError', + TrackStartError: 'NotReadableError', + MediaDeviceFailedDueToShutdown: 'NotAllowedError', + MediaDeviceKillSwitchOn: 'NotAllowedError', + TabCaptureError: 'AbortError', + ScreenCaptureError: 'AbortError', + DeviceCaptureError: 'AbortError' + }[e.name] || e.name, + message: e.message, + constraint: e.constraint || e.constraintName, + toString: function() { + return this.name + (this.message && ': ') + this.message; + } + }; + }; + + var getUserMedia_ = function(constraints, onSuccess, onError) { + shimConstraints_(constraints, function(c) { + navigator.webkitGetUserMedia(c, onSuccess, function(e) { + if (onError) { + onError(shimError_(e)); + } + }); + }); }; - 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); - } + navigator.getUserMedia = getUserMedia_; - // 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; - } + // Returns the result of getUserMedia as a Promise. + var getUserMediaPromise_ = function(constraints) { + return new Promise(function(resolve, reject) { + navigator.getUserMedia(constraints, resolve, reject); }); + }; - 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); + if (!navigator.mediaDevices) { + navigator.mediaDevices = { + getUserMedia: getUserMediaPromise_, + enumerateDevices: function() { + return new Promise(function(resolve) { + var kinds = {audio: 'audioinput', video: 'videoinput'}; + return window.MediaStreamTrack.getSources(function(devices) { + resolve(devices.map(function(device) { + return {label: device.label, + kind: kinds[device.kind], + deviceId: device.id, + groupId: ''}; + })); + }); + }); + }, + getSupportedConstraints: function() { + return { + deviceId: true, echoCancellation: true, facingMode: true, + frameRate: true, height: true, width: true + }; } - value = parseFloat(value) || 0; - maxValue = maxValue ? Math.max(value, maxValue) : value; - }); - return maxValue; + }; } - function truthyTimingValue(val) { - return val === 0 || val != null; + // A shim for getUserMedia method on the mediaDevices object. + // TODO(KaptenJansson) remove once implemented in Chrome stable. + if (!navigator.mediaDevices.getUserMedia) { + navigator.mediaDevices.getUserMedia = function(constraints) { + return getUserMediaPromise_(constraints); + }; + } else { + // Even though Chrome 45 has navigator.mediaDevices and a getUserMedia + // function which returns a Promise, it does not accept spec-style + // constraints. + var origGetUserMedia = navigator.mediaDevices.getUserMedia. + bind(navigator.mediaDevices); + navigator.mediaDevices.getUserMedia = function(cs) { + return shimConstraints_(cs, function(c) { + return origGetUserMedia(c).then(function(stream) { + if (c.audio && !stream.getAudioTracks().length || + c.video && !stream.getVideoTracks().length) { + stream.getTracks().forEach(function(track) { + track.stop(); + }); + throw new DOMException('', 'NotFoundError'); + } + return stream; + }, function(e) { + return Promise.reject(shimError_(e)); + }); + }); + }; } - function getCssTransitionDurationStyle(duration, applyOnlyDuration) { - var style = TRANSITION_PROP; - var value = duration + 's'; - if (applyOnlyDuration) { - style += DURATION_KEY; - } else { - value += ' linear all'; - } - return [style, value]; - } - - // 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); - }); + // Dummy devicechange event methods. + // TODO(KaptenJansson) remove once implemented in Chrome stable. + if (typeof navigator.mediaDevices.addEventListener === 'undefined') { + navigator.mediaDevices.addEventListener = function() { + logging('Dummy mediaDevices.addEventListener called.'); + }; } + if (typeof navigator.mediaDevices.removeEventListener === 'undefined') { + navigator.mediaDevices.removeEventListener = function() { + logging('Dummy mediaDevices.removeEventListener called.'); + }; + } +}; - var $AnimateCssProvider = ['$animateProvider', /** @this */function ($animateProvider) { - - this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout', '$$animateCache', '$$forceReflow', '$sniffer', '$$rAFScheduler', '$$animateQueue', function ($window, $$jqLite, $$AnimateRunner, $timeout, $$animateCache, $$forceReflow, $sniffer, $$rAFScheduler, $$animateQueue) { - - var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); - - function computeCachedCssStyles(node, className, cacheKey, allowNoDuration, properties) { - var timings = $$animateCache.get(cacheKey); - - if (!timings) { - timings = computeCssStyles($window, node, properties); - if (timings.animationIterationCount === 'infinite') { - timings.animationIterationCount = 1; - } - } +},{"../utils.js":325}],318:[function(require,module,exports){ +/* + * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - // if a css animation has no duration we - // should mark that so that repeated addClass/removeClass calls are skipped - var hasDuration = allowNoDuration || timings.transitionDuration > 0 || timings.animationDuration > 0; +var SDPUtils = require('sdp'); +var utils = require('./utils'); - // 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. - $$animateCache.put(cacheKey, timings, hasDuration); +module.exports = { + shimRTCIceCandidate: function(window) { + // foundation is arbitrarily chosen as an indicator for full support for + // https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface + if (!window.RTCIceCandidate || (window.RTCIceCandidate && 'foundation' in + window.RTCIceCandidate.prototype)) { + return; + } - return timings; + var NativeRTCIceCandidate = window.RTCIceCandidate; + window.RTCIceCandidate = function(args) { + // Remove the a= which shouldn't be part of the candidate string. + if (typeof args === 'object' && args.candidate && + args.candidate.indexOf('a=') === 0) { + args = JSON.parse(JSON.stringify(args)); + args.candidate = args.candidate.substr(2); } - function computeCachedCssStaggerStyles(node, className, cacheKey, properties) { - var stagger; - var staggerCacheKey = 'stagger-' + cacheKey; - - // 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 ($$animateCache.count(cacheKey) > 0) { - stagger = $$animateCache.get(staggerCacheKey); - - 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); + if (args.candidate && args.candidate.length) { + // Augment the native candidate with the parsed fields. + var nativeCandidate = new NativeRTCIceCandidate(args); + var parsedCandidate = SDPUtils.parseCandidate(args.candidate); + var augmentedCandidate = Object.assign(nativeCandidate, + parsedCandidate); - $$jqLite.removeClass(node, staggerClassName); - - $$animateCache.put(staggerCacheKey, stagger, true); - } - } - - return stagger || {}; + // Add a serializer that does not serialize the extra attributes. + augmentedCandidate.toJSON = function() { + return { + candidate: augmentedCandidate.candidate, + sdpMid: augmentedCandidate.sdpMid, + sdpMLineIndex: augmentedCandidate.sdpMLineIndex, + usernameFragment: augmentedCandidate.usernameFragment, + }; + }; + return augmentedCandidate; } + return new NativeRTCIceCandidate(args); + }; + window.RTCIceCandidate.prototype = NativeRTCIceCandidate.prototype; - var rafWaitQueue = []; - function waitUntilQuiet(callback) { - rafWaitQueue.push(callback); - $$rAFScheduler.waitUntilQuiet(function () { - $$animateCache.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; + // Hook up the augmented candidate in onicecandidate and + // addEventListener('icecandidate', ...) + utils.wrapPeerConnectionEvent(window, 'icecandidate', function(e) { + if (e.candidate) { + Object.defineProperty(e, 'candidate', { + value: new window.RTCIceCandidate(e.candidate), + writable: 'false' }); } + return e; + }); + }, - function computeTimings(node, className, cacheKey, allowNoDuration) { - var timings = computeCachedCssStyles(node, className, cacheKey, allowNoDuration, 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); + // shimCreateObjectURL must be called before shimSourceObject to avoid loop. - return timings; - } + shimCreateObjectURL: function(window) { + var URL = window && window.URL; - 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)); - } + if (!(typeof window === 'object' && window.HTMLMediaElement && + 'srcObject' in window.HTMLMediaElement.prototype && + URL.createObjectURL && URL.revokeObjectURL)) { + // Only shim CreateObjectURL using srcObject if srcObject exists. + return undefined; + } - var restoreStyles = {}; - var node = getDomNode(element); - if (!node || !node.parentNode || !$$animateQueue.enabled()) { - return closeAndReturnNoopAnimator(); - } + var nativeCreateObjectURL = URL.createObjectURL.bind(URL); + var nativeRevokeObjectURL = URL.revokeObjectURL.bind(URL); + var streams = new Map(), newId = 0; - 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 = []; + URL.createObjectURL = function(stream) { + if ('getTracks' in stream) { + var url = 'polyblob:' + (++newId); + streams.set(url, stream); + utils.deprecated('URL.createObjectURL(stream)', + 'elem.srcObject = stream'); + return url; + } + return nativeCreateObjectURL(stream); + }; + URL.revokeObjectURL = function(url) { + nativeRevokeObjectURL(url); + streams.delete(url); + }; - if (options.duration === 0 || !$sniffer.animations && !$sniffer.transitions) { - return closeAndReturnNoopAnimator(); - } + var dsc = Object.getOwnPropertyDescriptor(window.HTMLMediaElement.prototype, + 'src'); + Object.defineProperty(window.HTMLMediaElement.prototype, 'src', { + get: function() { + return dsc.get.apply(this); + }, + set: function(url) { + this.srcObject = streams.get(url) || null; + return dsc.set.apply(this, [url]); + } + }); - var method = options.event && isArray(options.event) ? options.event.join(' ') : options.event; + var nativeSetAttribute = window.HTMLMediaElement.prototype.setAttribute; + window.HTMLMediaElement.prototype.setAttribute = function() { + if (arguments.length === 2 && + ('' + arguments[0]).toLowerCase() === 'src') { + this.srcObject = streams.get(arguments[1]) || null; + } + return nativeSetAttribute.apply(this, arguments); + }; + }, - var isStructural = method && options.structural; - var structuralClassName = ''; - var addRemoveClassName = ''; + shimMaxMessageSize: function(window) { + if (window.RTCSctpTransport || !window.RTCPeerConnection) { + return; + } + var browserDetails = utils.detectBrowser(window); - if (isStructural) { - structuralClassName = pendClasses(method, EVENT_CLASS_PREFIX, true); - } else if (method) { - structuralClassName = method; + if (!('sctp' in window.RTCPeerConnection.prototype)) { + Object.defineProperty(window.RTCPeerConnection.prototype, 'sctp', { + get: function() { + return typeof this._sctp === 'undefined' ? null : this._sctp; } + }); + } - if (options.addClass) { - addRemoveClassName += pendClasses(options.addClass, ADD_CLASS_SUFFIX); - } + var sctpInDescription = function(description) { + var sections = SDPUtils.splitSections(description.sdp); + sections.shift(); + return sections.some(function(mediaSection) { + var mLine = SDPUtils.parseMLine(mediaSection); + return mLine && mLine.kind === 'application' + && mLine.protocol.indexOf('SCTP') !== -1; + }); + }; - if (options.removeClass) { - if (addRemoveClassName.length) { - addRemoveClassName += ' '; + var getRemoteFirefoxVersion = function(description) { + // TODO: Is there a better solution for detecting Firefox? + var match = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/); + if (match === null || match.length < 2) { + return -1; + } + var version = parseInt(match[1], 10); + // Test for NaN (yes, this is ugly) + return version !== version ? -1 : version; + }; + + var getCanSendMaxMessageSize = function(remoteIsFirefox) { + // Every implementation we know can send at least 64 KiB. + // Note: Although Chrome is technically able to send up to 256 KiB, the + // data does not reach the other peer reliably. + // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=8419 + var canSendMaxMessageSize = 65536; + if (browserDetails.browser === 'firefox') { + if (browserDetails.version < 57) { + if (remoteIsFirefox === -1) { + // FF < 57 will send in 16 KiB chunks using the deprecated PPID + // fragmentation. + canSendMaxMessageSize = 16384; + } else { + // However, other FF (and RAWRTC) can reassemble PPID-fragmented + // messages. Thus, supporting ~2 GiB when sending. + canSendMaxMessageSize = 2147483637; } - 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 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 stagger, - cacheKey = $$animateCache.cacheKey(node, method, options.addClass, options.removeClass); - if ($$animateCache.containsCachedAnimationWithoutDuration(cacheKey)) { - preparationClasses = null; - return closeAndReturnNoopAnimator(); - } - - if (options.stagger > 0) { - var staggerVal = parseFloat(options.stagger); - stagger = { - transitionDelay: staggerVal, - animationDelay: staggerVal, - transitionDuration: 0, - animationDuration: 0 - }; + } else if (browserDetails.version < 60) { + // Currently, all FF >= 57 will reset the remote maximum message size + // to the default value when a data channel is created at a later + // stage. :( + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831 + canSendMaxMessageSize = + browserDetails.version === 57 ? 65535 : 65536; } else { - stagger = computeCachedCssStaggerStyles(node, preparationClasses, cacheKey, DETECT_STAGGER_CSS_PROPERTIES); - } - - if (!options.$$skipPreparationClasses) { - $$jqLite.addClass(element, preparationClasses); + // FF >= 60 supports sending ~2 GiB + canSendMaxMessageSize = 2147483637; } + } + return canSendMaxMessageSize; + }; - var applyOnlyDuration; + var getMaxMessageSize = function(description, remoteIsFirefox) { + // Note: 65536 bytes is the default value from the SDP spec. Also, + // every implementation we know supports receiving 65536 bytes. + var maxMessageSize = 65536; - if (options.transitionStyle) { - var transitionStyle = [TRANSITION_PROP, options.transitionStyle]; - applyInlineStyle(node, transitionStyle); - temporaryStyles.push(transitionStyle); - } + // FF 57 has a slightly incorrect default remote max message size, so + // we need to adjust it here to avoid a failure when sending. + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1425697 + if (browserDetails.browser === 'firefox' + && browserDetails.version === 57) { + maxMessageSize = 65535; + } - if (options.duration >= 0) { - applyOnlyDuration = node.style[TRANSITION_PROP].length > 0; - var durationStyle = getCssTransitionDurationStyle(options.duration, applyOnlyDuration); + var match = SDPUtils.matchPrefix(description.sdp, 'a=max-message-size:'); + if (match.length > 0) { + maxMessageSize = parseInt(match[0].substr(19), 10); + } else if (browserDetails.browser === 'firefox' && + remoteIsFirefox !== -1) { + // If the maximum message size is not present in the remote SDP and + // both local and remote are Firefox, the remote peer can receive + // ~2 GiB. + maxMessageSize = 2147483637; + } + return maxMessageSize; + }; - // we set the duration so that it will be picked up by getComputedStyle later - applyInlineStyle(node, durationStyle); - temporaryStyles.push(durationStyle); - } + var origSetRemoteDescription = + window.RTCPeerConnection.prototype.setRemoteDescription; + window.RTCPeerConnection.prototype.setRemoteDescription = function() { + var pc = this; + pc._sctp = null; - if (options.keyframeStyle) { - var keyframeStyle = [ANIMATION_PROP, options.keyframeStyle]; - applyInlineStyle(node, keyframeStyle); - temporaryStyles.push(keyframeStyle); - } + if (sctpInDescription(arguments[0])) { + // Check if the remote is FF. + var isFirefox = getRemoteFirefoxVersion(arguments[0]); - var itemIndex = stagger ? options.staggerIndex >= 0 ? options.staggerIndex : $$animateCache.count(cacheKey) : 0; + // Get the maximum message size the local peer is capable of sending + var canSendMMS = getCanSendMaxMessageSize(isFirefox); - var isFirst = itemIndex === 0; + // Get the maximum message size of the remote peer. + var remoteMMS = getMaxMessageSize(arguments[0], isFirefox); - // 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); + // Determine final maximum message size + var maxMessageSize; + if (canSendMMS === 0 && remoteMMS === 0) { + maxMessageSize = Number.POSITIVE_INFINITY; + } else if (canSendMMS === 0 || remoteMMS === 0) { + maxMessageSize = Math.max(canSendMMS, remoteMMS); + } else { + maxMessageSize = Math.min(canSendMMS, remoteMMS); } - var timings = computeTimings(node, fullClassName, cacheKey, !isStructural); - 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; + // Create a dummy RTCSctpTransport object and the 'maxMessageSize' + // attribute. + var sctp = {}; + Object.defineProperty(sctp, 'maxMessageSize', { + get: function() { + return maxMessageSize; + } + }); + pc._sctp = sctp; + } - if (flags.applyTransitionDuration || flags.applyAnimationDuration) { - maxDuration = options.duration ? parseFloat(options.duration) : maxDuration; + return origSetRemoteDescription.apply(pc, arguments); + }; + }, - if (flags.applyTransitionDuration) { - flags.hasTransitions = true; - timings.transitionDuration = maxDuration; - applyOnlyDuration = node.style[TRANSITION_PROP + PROPERTY_KEY].length > 0; - temporaryStyles.push(getCssTransitionDurationStyle(maxDuration, applyOnlyDuration)); - } + shimSendThrowTypeError: function(window) { + if (!(window.RTCPeerConnection && + 'createDataChannel' in window.RTCPeerConnection.prototype)) { + return; + } - if (flags.applyAnimationDuration) { - flags.hasAnimations = true; - timings.animationDuration = maxDuration; - temporaryStyles.push(getCssKeyframeDurationStyle(maxDuration)); - } - } + // Note: Although Firefox >= 57 has a native implementation, the maximum + // message size can be reset for all data channels at a later stage. + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831 - if (maxDuration === 0 && !flags.recalculateTimingStyles) { - return closeAndReturnNoopAnimator(); + function wrapDcSend(dc, pc) { + var origDataChannelSend = dc.send; + dc.send = function() { + var data = arguments[0]; + var length = data.length || data.size || data.byteLength; + if (dc.readyState === 'open' && + pc.sctp && length > pc.sctp.maxMessageSize) { + throw new TypeError('Message too large (can send a maximum of ' + + pc.sctp.maxMessageSize + ' bytes)'); } + return origDataChannelSend.apply(dc, arguments); + }; + } + var origCreateDataChannel = + window.RTCPeerConnection.prototype.createDataChannel; + window.RTCPeerConnection.prototype.createDataChannel = function() { + var pc = this; + var dataChannel = origCreateDataChannel.apply(pc, arguments); + wrapDcSend(dataChannel, pc); + return dataChannel; + }; + utils.wrapPeerConnectionEvent(window, 'datachannel', function(e) { + wrapDcSend(e.channel, e.target); + return e; + }); + } +}; - var activeClasses = pendClasses(preparationClasses, ACTIVE_CLASS_SUFFIX); +},{"./utils":325,"sdp":278}],319:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - 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); - } +var utils = require('../utils'); +var filterIceServers = require('./filtericeservers'); +var shimRTCPeerConnection = require('rtcpeerconnection-shim'); - if (flags.applyTransitionDelay) { - temporaryStyles.push(getCssDelayStyle(delayStyle)); +module.exports = { + shimGetUserMedia: require('./getusermedia'), + shimPeerConnection: function(window) { + var browserDetails = utils.detectBrowser(window); + + if (window.RTCIceGatherer) { + if (!window.RTCIceCandidate) { + window.RTCIceCandidate = function(args) { + return args; + }; + } + if (!window.RTCSessionDescription) { + window.RTCSessionDescription = function(args) { + return args; + }; + } + // this adds an additional event listener to MediaStrackTrack that signals + // when a tracks enabled property was changed. Workaround for a bug in + // addStream, see below. No longer required in 15025+ + if (browserDetails.version < 15025) { + var origMSTEnabled = Object.getOwnPropertyDescriptor( + window.MediaStreamTrack.prototype, 'enabled'); + Object.defineProperty(window.MediaStreamTrack.prototype, 'enabled', { + set: function(value) { + origMSTEnabled.set.call(this, value); + var ev = new Event('enabled'); + ev.enabled = value; + this.dispatchEvent(ev); } + }); + } + } - if (flags.applyAnimationDelay) { - temporaryStyles.push(getCssDelayStyle(delayStyle, true)); + // ORTC defines the DTMF sender a bit different. + // https://github.com/w3c/ortc/issues/714 + if (window.RTCRtpSender && !('dtmf' in window.RTCRtpSender.prototype)) { + Object.defineProperty(window.RTCRtpSender.prototype, 'dtmf', { + get: function() { + if (this._dtmf === undefined) { + if (this.track.kind === 'audio') { + this._dtmf = new window.RTCDtmfSender(this); + } else if (this.track.kind === 'video') { + this._dtmf = null; + } } + return this._dtmf; } + }); + } + // Edge currently only implements the RTCDtmfSender, not the + // RTCDTMFSender alias. See http://draft.ortc.org/#rtcdtmfsender2* + if (window.RTCDtmfSender && !window.RTCDTMFSender) { + window.RTCDTMFSender = window.RTCDtmfSender; + } - // 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; - } + var RTCPeerConnectionShim = shimRTCPeerConnection(window, + browserDetails.version); + window.RTCPeerConnection = function(config) { + if (config && config.iceServers) { + config.iceServers = filterIceServers(config.iceServers); + } + return new RTCPeerConnectionShim(config); + }; + window.RTCPeerConnection.prototype = RTCPeerConnectionShim.prototype; + }, + shimReplaceTrack: function(window) { + // ORTC has replaceTrack -- https://github.com/w3c/ortc/issues/614 + if (window.RTCRtpSender && + !('replaceTrack' in window.RTCRtpSender.prototype)) { + window.RTCRtpSender.prototype.replaceTrack = + window.RTCRtpSender.prototype.setTrack; + } + } +}; - 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; - } +},{"../utils":325,"./filtericeservers":320,"./getusermedia":321,"rtcpeerconnection-shim":276}],320:[function(require,module,exports){ +/* + * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - if (options.from) { - if (options.cleanupStyles) { - registerRestorableStyles(restoreStyles, node, Object.keys(options.from)); - } - applyAnimationFromStyles(element, options); - } +var utils = require('../utils'); +// Edge does not like +// 1) stun: filtered after 14393 unless ?transport=udp is present +// 2) turn: that does not have all of turn:host:port?transport=udp +// 3) turn: with ipv6 addresses +// 4) turn: occurring muliple times +module.exports = function(iceServers, edgeVersion) { + var hasTurn = false; + iceServers = JSON.parse(JSON.stringify(iceServers)); + return iceServers.filter(function(server) { + if (server && (server.urls || server.url)) { + var urls = server.urls || server.url; + if (server.url && !server.urls) { + utils.deprecated('RTCIceServer.url', 'RTCIceServer.urls'); + } + var isString = typeof urls === 'string'; + if (isString) { + urls = [urls]; + } + urls = urls.filter(function(url) { + var validTurn = url.indexOf('turn:') === 0 && + url.indexOf('transport=udp') !== -1 && + url.indexOf('turn:[') === -1 && + !hasTurn; - if (flags.blockTransition || flags.blockKeyframeAnimation) { - applyBlocking(maxDuration); - } else if (!options.skipBlocking) { - blockTransitions(node, false); + if (validTurn) { + hasTurn = true; + return true; } + return url.indexOf('stun:') === 0 && edgeVersion >= 14393 && + url.indexOf('?transport=udp') === -1; + }); - // 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 - }; + delete server.url; + server.urls = isString ? urls[0] : urls; + return !!urls.length; + } + }); +}; - runner = new $$AnimateRunner(runnerHost); +},{"../utils":325}],321:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - waitUntilQuiet(_start); +// Expose public methods. +module.exports = function(window) { + var navigator = window && window.navigator; - // 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; - } - }; + var shimError_ = function(e) { + return { + name: {PermissionDeniedError: 'NotAllowedError'}[e.name] || e.name, + message: e.message, + constraint: e.constraint, + toString: function() { + return this.name; + } + }; + }; - function endFn() { - close(); - } + // getUserMedia error shim. + var origGetUserMedia = navigator.mediaDevices.getUserMedia. + bind(navigator.mediaDevices); + navigator.mediaDevices.getUserMedia = function(c) { + return origGetUserMedia(c).catch(function(e) { + return Promise.reject(shimError_(e)); + }); + }; +}; - function cancelFn() { - close(true); - } +},{}],322:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - 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; +var utils = require('../utils'); - if (preparationClasses && !options.$$skipPreparationClasses) { - $$jqLite.removeClass(element, preparationClasses); +module.exports = { + shimGetUserMedia: require('./getusermedia'), + shimOnTrack: function(window) { + if (typeof window === 'object' && window.RTCPeerConnection && !('ontrack' in + window.RTCPeerConnection.prototype)) { + Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', { + get: function() { + return this._ontrack; + }, + set: function(f) { + if (this._ontrack) { + this.removeEventListener('track', this._ontrack); + this.removeEventListener('addstream', this._ontrackpoly); } + this.addEventListener('track', this._ontrack = f); + this.addEventListener('addstream', this._ontrackpoly = function(e) { + e.stream.getTracks().forEach(function(track) { + var event = new Event('track'); + event.track = track; + event.receiver = {track: track}; + event.transceiver = {receiver: event.receiver}; + event.streams = [e.stream]; + this.dispatchEvent(event); + }.bind(this)); + }.bind(this)); + }, + enumerable: true, + configurable: true + }); + } + if (typeof window === 'object' && window.RTCTrackEvent && + ('receiver' in window.RTCTrackEvent.prototype) && + !('transceiver' in window.RTCTrackEvent.prototype)) { + Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', { + get: function() { + return {receiver: this.receiver}; + } + }); + } + }, - if (activeClasses) { - $$jqLite.removeClass(element, activeClasses); + shimSourceObject: function(window) { + // Firefox has supported mozSrcObject since FF22, unprefixed in 42. + if (typeof window === 'object') { + if (window.HTMLMediaElement && + !('srcObject' in window.HTMLMediaElement.prototype)) { + // Shim the srcObject property, once, when HTMLMediaElement is found. + Object.defineProperty(window.HTMLMediaElement.prototype, 'srcObject', { + get: function() { + return this.mozSrcObject; + }, + set: function(stream) { + this.mozSrcObject = stream; } + }); + } + } + }, - 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); + shimPeerConnection: function(window) { + var browserDetails = utils.detectBrowser(window); - if (Object.keys(restoreStyles).length) { - forEach(restoreStyles, function (value, prop) { - if (value) { - node.style.setProperty(prop, value); + if (typeof window !== 'object' || !(window.RTCPeerConnection || + window.mozRTCPeerConnection)) { + return; // probably media.peerconnection.enabled=false in about:config + } + // The RTCPeerConnection object. + if (!window.RTCPeerConnection) { + window.RTCPeerConnection = function(pcConfig, pcConstraints) { + if (browserDetails.version < 38) { + // .urls is not supported in FF < 38. + // create RTCIceServers with a single url. + if (pcConfig && pcConfig.iceServers) { + var newIceServers = []; + for (var i = 0; i < pcConfig.iceServers.length; i++) { + var server = pcConfig.iceServers[i]; + if (server.hasOwnProperty('urls')) { + for (var j = 0; j < server.urls.length; j++) { + var newServer = { + url: server.urls[j] + }; + if (server.urls[j].indexOf('turn') === 0) { + newServer.username = server.username; + newServer.credential = server.credential; + } + newIceServers.push(newServer); + } } else { - node.style.removeProperty(prop); + newIceServers.push(pcConfig.iceServers[i]); } - }); - } - - // 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); + } + pcConfig.iceServers = newIceServers; } } - - function applyBlocking(duration) { - if (flags.blockTransition) { - blockTransitions(node, duration); - } - - if (flags.blockKeyframeAnimation) { - blockKeyframeAnimations(node, !!duration); + return new window.mozRTCPeerConnection(pcConfig, pcConstraints); + }; + window.RTCPeerConnection.prototype = + window.mozRTCPeerConnection.prototype; + + // wrap static methods. Currently just generateCertificate. + if (window.mozRTCPeerConnection.generateCertificate) { + Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', { + get: function() { + return window.mozRTCPeerConnection.generateCertificate; } - } - - function closeAndReturnNoopAnimator() { - runner = new $$AnimateRunner({ - end: endFn, - cancel: cancelFn - }); + }); + } - // should flush the cache animation - waitUntilQuiet(noop); - close(); + window.RTCSessionDescription = window.mozRTCSessionDescription; + window.RTCIceCandidate = window.mozRTCIceCandidate; + } - return { - $$willAnimate: false, - start: function start() { - return runner; - }, - end: endFn + // shim away need for obsolete RTCIceCandidate/RTCSessionDescription. + ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'] + .forEach(function(method) { + var nativeMethod = window.RTCPeerConnection.prototype[method]; + window.RTCPeerConnection.prototype[method] = function() { + arguments[0] = new ((method === 'addIceCandidate') ? + window.RTCIceCandidate : + window.RTCSessionDescription)(arguments[0]); + return nativeMethod.apply(this, arguments); }; - } - - 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(); - } + // support for addIceCandidate(null or undefined) + var nativeAddIceCandidate = + window.RTCPeerConnection.prototype.addIceCandidate; + window.RTCPeerConnection.prototype.addIceCandidate = function() { + if (!arguments[0]) { + if (arguments[1]) { + arguments[1].apply(null); } + return Promise.resolve(); + } + return nativeAddIceCandidate.apply(this, arguments); + }; - 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(); - } - }; + // shim getStats with maplike support + var makeMapStats = function(stats) { + var map = new Map(); + Object.keys(stats).forEach(function(key) { + map.set(key, stats[key]); + map[key] = stats[key]; + }); + return map; + }; - // 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(); + var modernStatsTypes = { + inboundrtp: 'inbound-rtp', + outboundrtp: 'outbound-rtp', + candidatepair: 'candidate-pair', + localcandidate: 'local-candidate', + remotecandidate: 'remote-candidate' + }; + + var nativeGetStats = window.RTCPeerConnection.prototype.getStats; + window.RTCPeerConnection.prototype.getStats = function( + selector, + onSucc, + onErr + ) { + return nativeGetStats.apply(this, [selector || null]) + .then(function(stats) { + if (browserDetails.version < 48) { + stats = makeMapStats(stats); } - - // 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 = $$animateCache.cacheKey(node, method, options.addClass, options.removeClass); - - timings = computeTimings(node, fullClassName, cacheKey, false); - relativeDelay = timings.maxDelay; - maxDelay = Math.max(relativeDelay, 0); - maxDuration = timings.maxDuration; - - if (maxDuration === 0) { - close(); - return; + if (browserDetails.version < 53 && !onSucc) { + // Shim only promise getStats with spec-hyphens in type names + // Leave callback version alone; misc old uses of forEach before Map + try { + stats.forEach(function(stat) { + stat.type = modernStatsTypes[stat.type] || stat.type; + }); + } catch (e) { + if (e.name !== 'TypeError') { + throw e; } - - flags.hasTransitions = timings.transitionDuration > 0; - flags.hasAnimations = timings.animationDuration > 0; + // Avoid TypeError: "type" is read-only, in old versions. 34-43ish + stats.forEach(function(stat, i) { + stats.set(i, Object.assign({}, stat, { + type: modernStatsTypes[stat.type] || stat.type + })); + }); } + } + return stats; + }) + .then(onSucc, onErr); + }; + }, - if (flags.applyAnimationDelay) { - relativeDelay = typeof options.delay !== 'boolean' && truthyTimingValue(options.delay) ? parseFloat(options.delay) : relativeDelay; + shimSenderGetStats: function(window) { + if (!(typeof window === 'object' && window.RTCPeerConnection && + window.RTCRtpSender)) { + return; + } + if (window.RTCRtpSender && 'getStats' in window.RTCRtpSender.prototype) { + return; + } + var origGetSenders = window.RTCPeerConnection.prototype.getSenders; + if (origGetSenders) { + window.RTCPeerConnection.prototype.getSenders = function() { + var pc = this; + var senders = origGetSenders.apply(pc, []); + senders.forEach(function(sender) { + sender._pc = pc; + }); + return senders; + }; + } - maxDelay = Math.max(relativeDelay, 0); - timings.animationDelay = relativeDelay; - delayStyle = getCssDelayStyle(relativeDelay, true); - temporaryStyles.push(delayStyle); - node.style[delayStyle[0]] = delayStyle[1]; - } + var origAddTrack = window.RTCPeerConnection.prototype.addTrack; + if (origAddTrack) { + window.RTCPeerConnection.prototype.addTrack = function() { + var sender = origAddTrack.apply(this, arguments); + sender._pc = this; + return sender; + }; + } + window.RTCRtpSender.prototype.getStats = function() { + return this.track ? this._pc.getStats(this.track) : + Promise.resolve(new Map()); + }; + }, - maxDelayTime = maxDelay * ONE_SECOND; - maxDurationTime = maxDuration * ONE_SECOND; + shimReceiverGetStats: function(window) { + if (!(typeof window === 'object' && window.RTCPeerConnection && + window.RTCRtpSender)) { + return; + } + if (window.RTCRtpSender && 'getStats' in window.RTCRtpReceiver.prototype) { + return; + } + var origGetReceivers = window.RTCPeerConnection.prototype.getReceivers; + if (origGetReceivers) { + window.RTCPeerConnection.prototype.getReceivers = function() { + var pc = this; + var receivers = origGetReceivers.apply(pc, []); + receivers.forEach(function(receiver) { + receiver._pc = pc; + }); + return receivers; + }; + } + utils.wrapPeerConnectionEvent(window, 'track', function(e) { + e.receiver._pc = e.srcElement; + return e; + }); + window.RTCRtpReceiver.prototype.getStats = function() { + return this._pc.getStats(this.track); + }; + }, - 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; - } - } + shimRemoveStream: function(window) { + if (!window.RTCPeerConnection || + 'removeStream' in window.RTCPeerConnection.prototype) { + return; + } + window.RTCPeerConnection.prototype.removeStream = function(stream) { + var pc = this; + utils.deprecated('removeStream', 'removeTrack'); + this.getSenders().forEach(function(sender) { + if (sender.track && stream.getTracks().indexOf(sender.track) !== -1) { + pc.removeTrack(sender); + } + }); + }; + }, - if (timings.transitionDuration) { - events.push(TRANSITIONEND_EVENT); - } + shimRTCDataChannel: function(window) { + // rename DataChannel to RTCDataChannel (native fix in FF60): + // https://bugzilla.mozilla.org/show_bug.cgi?id=1173851 + if (window.DataChannel && !window.RTCDataChannel) { + window.RTCDataChannel = window.DataChannel; + } + }, - if (timings.animationDuration) { - events.push(ANIMATIONEND_EVENT); - } + shimGetDisplayMedia: function(window, preferredMediaSource) { + if ('getDisplayMedia' in window.navigator) { + return; + } + navigator.getDisplayMedia = function(constraints) { + if (!(constraints && constraints.video)) { + var err = new DOMException('getDisplayMedia without video ' + + 'constraints is undefined'); + err.name = 'NotFoundError'; + // from https://heycam.github.io/webidl/#idl-DOMException-error-names + err.code = 8; + return Promise.reject(err); + } + if (constraints.video === true) { + constraints.video = {mediaSource: preferredMediaSource}; + } else { + constraints.video.mediaSource = preferredMediaSource; + } + return navigator.mediaDevices.getUserMedia(constraints); + }; + } +}; - 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); - } - } +},{"../utils":325,"./getusermedia":323}],323:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - if (setupFallbackTimer) { - var timer = $timeout(onAnimationExpired, timerTime, false); - animationsData[0] = { - timer: timer, - expectedEndTime: endTime - }; - animationsData.push(close); - element.data(ANIMATE_TIMER_KEY, animationsData); - } +var utils = require('../utils'); +var logging = utils.log; - if (events.length) { - element.on(events.join(' '), onAnimationProgress); - } +// Expose public methods. +module.exports = function(window) { + var browserDetails = utils.detectBrowser(window); + var navigator = window && window.navigator; + var MediaStreamTrack = window && window.MediaStreamTrack; - if (options.to) { - if (options.cleanupStyles) { - registerRestorableStyles(restoreStyles, node, Object.keys(options.to)); - } - applyAnimationToStyles(element, options); - } + var shimError_ = function(e) { + return { + name: { + InternalError: 'NotReadableError', + NotSupportedError: 'TypeError', + PermissionDeniedError: 'NotAllowedError', + SecurityError: 'NotAllowedError' + }[e.name] || e.name, + message: { + 'The operation is insecure.': 'The request is not allowed by the ' + + 'user agent or the platform in the current context.' + }[e.message] || e.message, + constraint: e.constraint, + toString: function() { + return this.name + (this.message && ': ') + this.message; + } + }; + }; + + // getUserMedia constraints shim. + var getUserMedia_ = function(constraints, onSuccess, onError) { + var constraintsToFF37_ = function(c) { + if (typeof c !== 'object' || c.require) { + return c; + } + var require = []; + Object.keys(c).forEach(function(key) { + if (key === 'require' || key === 'advanced' || key === 'mediaSource') { + return; + } + var r = c[key] = (typeof c[key] === 'object') ? + c[key] : {ideal: c[key]}; + if (r.min !== undefined || + r.max !== undefined || r.exact !== undefined) { + require.push(key); + } + if (r.exact !== undefined) { + if (typeof r.exact === 'number') { + r. min = r.max = r.exact; + } else { + c[key] = r.exact; } - - 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); - } + delete r.exact; + } + if (r.ideal !== undefined) { + c.advanced = c.advanced || []; + var oc = {}; + if (typeof r.ideal === 'number') { + oc[key] = {min: r.ideal, max: r.ideal}; + } else { + oc[key] = r.ideal; + } + c.advanced.push(oc); + delete r.ideal; + if (!Object.keys(r).length) { + delete c[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; + }); + if (require.length) { + c.require = require; + } + return c; + }; + constraints = JSON.parse(JSON.stringify(constraints)); + if (browserDetails.version < 38) { + logging('spec: ' + JSON.stringify(constraints)); + if (constraints.audio) { + constraints.audio = constraintsToFF37_(constraints.audio); + } + if (constraints.video) { + constraints.video = constraintsToFF37_(constraints.video); + } + logging('ff37: ' + JSON.stringify(constraints)); } + return navigator.mozGetUserMedia(constraints, onSuccess, function(e) { + onError(shimError_(e)); + }); + }; - 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); + // Returns the result of getUserMedia as a Promise. + var getUserMediaPromise_ = function(constraints) { + return new Promise(function(resolve, reject) { + getUserMedia_(constraints, resolve, reject); + }); + }; - return function initDriverFn(animationDetails) { - return animationDetails.from && animationDetails.to ? prepareFromToAnchorAnimation(animationDetails.from, animationDetails.to, animationDetails.classes, animationDetails.anchors) : prepareRegularAnimation(animationDetails); + // Shim for mediaDevices on older versions. + if (!navigator.mediaDevices) { + navigator.mediaDevices = {getUserMedia: getUserMediaPromise_, + addEventListener: function() { }, + removeEventListener: function() { } + }; + } + navigator.mediaDevices.enumerateDevices = + navigator.mediaDevices.enumerateDevices || function() { + return new Promise(function(resolve) { + var infos = [ + {kind: 'audioinput', deviceId: 'default', label: '', groupId: ''}, + {kind: 'videoinput', deviceId: 'default', label: '', groupId: ''} + ]; + resolve(infos); + }); }; - function filterCssClasses(classes) { - //remove all the `ng-` stuff - return classes.replace(/\bng-\S+\b/g, ''); + if (browserDetails.version < 41) { + // Work around http://bugzil.la/1169665 + var orgEnumerateDevices = + navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices); + navigator.mediaDevices.enumerateDevices = function() { + return orgEnumerateDevices().then(undefined, function(e) { + if (e.name === 'NotFoundError') { + return []; + } + throw e; + }); + }; + } + if (browserDetails.version < 49) { + var origGetUserMedia = navigator.mediaDevices.getUserMedia. + bind(navigator.mediaDevices); + navigator.mediaDevices.getUserMedia = function(c) { + return origGetUserMedia(c).then(function(stream) { + // Work around https://bugzil.la/802326 + if (c.audio && !stream.getAudioTracks().length || + c.video && !stream.getVideoTracks().length) { + stream.getTracks().forEach(function(track) { + track.stop(); + }); + throw new DOMException('The object can not be found here.', + 'NotFoundError'); + } + return stream; + }, function(e) { + return Promise.reject(shimError_(e)); + }); + }; + } + if (!(browserDetails.version > 55 && + 'autoGainControl' in navigator.mediaDevices.getSupportedConstraints())) { + var remap = function(obj, a, b) { + if (a in obj && !(b in obj)) { + obj[b] = obj[a]; + delete obj[a]; } + }; - 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(' '); + var nativeGetUserMedia = navigator.mediaDevices.getUserMedia. + bind(navigator.mediaDevices); + navigator.mediaDevices.getUserMedia = function(c) { + if (typeof c === 'object' && typeof c.audio === 'object') { + c = JSON.parse(JSON.stringify(c)); + remap(c.audio, 'autoGainControl', 'mozAutoGainControl'); + remap(c.audio, 'noiseSuppression', 'mozNoiseSuppression'); } + return nativeGetUserMedia(c); + }; - 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); + if (MediaStreamTrack && MediaStreamTrack.prototype.getSettings) { + var nativeGetSettings = MediaStreamTrack.prototype.getSettings; + MediaStreamTrack.prototype.getSettings = function() { + var obj = nativeGetSettings.apply(this, arguments); + remap(obj, 'mozAutoGainControl', 'autoGainControl'); + remap(obj, 'mozNoiseSuppression', 'noiseSuppression'); + return obj; + }; + } - clone.addClass(NG_ANIMATE_ANCHOR_CLASS_NAME); + if (MediaStreamTrack && MediaStreamTrack.prototype.applyConstraints) { + var nativeApplyConstraints = MediaStreamTrack.prototype.applyConstraints; + MediaStreamTrack.prototype.applyConstraints = function(c) { + if (this.kind === 'audio' && typeof c === 'object') { + c = JSON.parse(JSON.stringify(c)); + remap(c, 'autoGainControl', 'mozAutoGainControl'); + remap(c, 'noiseSuppression', 'mozNoiseSuppression'); + } + return nativeApplyConstraints.apply(this, [c]); + }; + } + } + navigator.getUserMedia = function(constraints, onSuccess, onError) { + if (browserDetails.version < 44) { + return getUserMedia_(constraints, onSuccess, onError); + } + // Replace Firefox 44+'s deprecation warning with unprefixed version. + utils.deprecated('navigator.getUserMedia', + 'navigator.mediaDevices.getUserMedia'); + navigator.mediaDevices.getUserMedia(constraints).then(onSuccess, onError); + }; +}; - rootBodyElement.append(clone); +},{"../utils":325}],324:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ +'use strict'; +var utils = require('../utils'); - var animatorIn, - animatorOut = prepareOutAnimation(); +module.exports = { + shimLocalStreamsAPI: function(window) { + if (typeof window !== 'object' || !window.RTCPeerConnection) { + return; + } + if (!('getLocalStreams' in window.RTCPeerConnection.prototype)) { + window.RTCPeerConnection.prototype.getLocalStreams = function() { + if (!this._localStreams) { + this._localStreams = []; + } + return this._localStreams; + }; + } + if (!('getStreamById' in window.RTCPeerConnection.prototype)) { + window.RTCPeerConnection.prototype.getStreamById = function(id) { + var result = null; + if (this._localStreams) { + this._localStreams.forEach(function(stream) { + if (stream.id === id) { + result = stream; + } + }); + } + if (this._remoteStreams) { + this._remoteStreams.forEach(function(stream) { + if (stream.id === id) { + result = stream; + } + }); + } + return result; + }; + } + if (!('addStream' in window.RTCPeerConnection.prototype)) { + var _addTrack = window.RTCPeerConnection.prototype.addTrack; + window.RTCPeerConnection.prototype.addStream = function(stream) { + if (!this._localStreams) { + this._localStreams = []; + } + if (this._localStreams.indexOf(stream) === -1) { + this._localStreams.push(stream); + } + var pc = this; + stream.getTracks().forEach(function(track) { + _addTrack.call(pc, track, stream); + }); + }; - // 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(); + window.RTCPeerConnection.prototype.addTrack = function(track, stream) { + if (stream) { + if (!this._localStreams) { + this._localStreams = [stream]; + } else if (this._localStreams.indexOf(stream) === -1) { + this._localStreams.push(stream); } } - - 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(); - } - } + return _addTrack.call(this, track, stream); + }; + } + if (!('removeStream' in window.RTCPeerConnection.prototype)) { + window.RTCPeerConnection.prototype.removeStream = function(stream) { + if (!this._localStreams) { + this._localStreams = []; + } + var index = this._localStreams.indexOf(stream); + if (index === -1) { + return; + } + this._localStreams.splice(index, 1); + var pc = this; + var tracks = stream.getTracks(); + this.getSenders().forEach(function(sender) { + if (tracks.indexOf(sender.track) !== -1) { + pc.removeTrack(sender); } - }; - - 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; + }); + }; + } + }, + shimRemoteStreamsAPI: function(window) { + if (typeof window !== 'object' || !window.RTCPeerConnection) { + return; + } + if (!('getRemoteStreams' in window.RTCPeerConnection.prototype)) { + window.RTCPeerConnection.prototype.getRemoteStreams = function() { + return this._remoteStreams ? this._remoteStreams : []; + }; + } + if (!('onaddstream' in window.RTCPeerConnection.prototype)) { + Object.defineProperty(window.RTCPeerConnection.prototype, 'onaddstream', { + get: function() { + return this._onaddstream; + }, + set: function(f) { + if (this._onaddstream) { + this.removeEventListener('addstream', this._onaddstream); + } + this.addEventListener('addstream', this._onaddstream = f); } - - function prepareOutAnimation() { - var animator = $animateCss(clone, { - addClass: NG_OUT_ANCHOR_CLASS_NAME, - delay: true, - from: calculateAnchorStyles(outAnchor) + }); + var origSetRemoteDescription = + window.RTCPeerConnection.prototype.setRemoteDescription; + window.RTCPeerConnection.prototype.setRemoteDescription = function() { + var pc = this; + if (!this._onaddstreampoly) { + this.addEventListener('track', this._onaddstreampoly = function(e) { + e.streams.forEach(function(stream) { + if (!pc._remoteStreams) { + pc._remoteStreams = []; + } + if (pc._remoteStreams.indexOf(stream) >= 0) { + return; + } + pc._remoteStreams.push(stream); + var event = new Event('addstream'); + event.stream = stream; + pc.dispatchEvent(event); + }); }); - - // read the comment within `prepareRegularAnimation` to understand - // why this check is necessary - return animator.$$willAnimate ? animator : null; - } - - function getClassVal(element) { - return element.attr('class') || ''; } + return origSetRemoteDescription.apply(pc, arguments); + }; + } + }, + shimCallbacksAPI: function(window) { + if (typeof window !== 'object' || !window.RTCPeerConnection) { + return; + } + var prototype = window.RTCPeerConnection.prototype; + var createOffer = prototype.createOffer; + var createAnswer = prototype.createAnswer; + var setLocalDescription = prototype.setLocalDescription; + var setRemoteDescription = prototype.setRemoteDescription; + var addIceCandidate = prototype.addIceCandidate; + + prototype.createOffer = function(successCallback, failureCallback) { + var options = (arguments.length >= 2) ? arguments[2] : arguments[0]; + var promise = createOffer.apply(this, [options]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; - function prepareInAnimation() { - var endingClasses = filterCssClasses(getClassVal(inAnchor)); - var toAdd = getUniqueValues(endingClasses, startingClasses); - var toRemove = getUniqueValues(startingClasses, endingClasses); + prototype.createAnswer = function(successCallback, failureCallback) { + var options = (arguments.length >= 2) ? arguments[2] : arguments[0]; + var promise = createAnswer.apply(this, [options]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; - var animator = $animateCss(clone, { - to: calculateAnchorStyles(inAnchor), - addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd, - removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove, - delay: true - }); + var withCallback = function(description, successCallback, failureCallback) { + var promise = setLocalDescription.apply(this, [description]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; + prototype.setLocalDescription = withCallback; - // read the comment within `prepareRegularAnimation` to understand - // why this check is necessary - return animator.$$willAnimate ? animator : null; - } + withCallback = function(description, successCallback, failureCallback) { + var promise = setRemoteDescription.apply(this, [description]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; + prototype.setRemoteDescription = withCallback; - function end() { - clone.remove(); - outAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); - inAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); + withCallback = function(candidate, successCallback, failureCallback) { + var promise = addIceCandidate.apply(this, [candidate]); + if (!failureCallback) { + return promise; + } + promise.then(successCallback, failureCallback); + return Promise.resolve(); + }; + prototype.addIceCandidate = withCallback; + }, + shimGetUserMedia: function(window) { + var navigator = window && window.navigator; + + if (!navigator.getUserMedia) { + if (navigator.webkitGetUserMedia) { + navigator.getUserMedia = navigator.webkitGetUserMedia.bind(navigator); + } else if (navigator.mediaDevices && + navigator.mediaDevices.getUserMedia) { + navigator.getUserMedia = function(constraints, cb, errcb) { + navigator.mediaDevices.getUserMedia(constraints) + .then(cb, errcb); + }.bind(navigator); + } + } + }, + shimRTCIceServerUrls: function(window) { + // migrate from non-spec RTCIceServer.url to RTCIceServer.urls + var OrigPeerConnection = window.RTCPeerConnection; + window.RTCPeerConnection = function(pcConfig, pcConstraints) { + if (pcConfig && pcConfig.iceServers) { + var newIceServers = []; + for (var i = 0; i < pcConfig.iceServers.length; i++) { + var server = pcConfig.iceServers[i]; + if (!server.hasOwnProperty('urls') && + server.hasOwnProperty('url')) { + utils.deprecated('RTCIceServer.url', 'RTCIceServer.urls'); + server = JSON.parse(JSON.stringify(server)); + server.urls = server.url; + delete server.url; + newIceServers.push(server); + } else { + newIceServers.push(pcConfig.iceServers[i]); + } } + pcConfig.iceServers = newIceServers; } + return new OrigPeerConnection(pcConfig, pcConstraints); + }; + window.RTCPeerConnection.prototype = OrigPeerConnection.prototype; + // wrap static methods. Currently just generateCertificate. + if ('generateCertificate' in window.RTCPeerConnection) { + Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', { + get: function() { + return OrigPeerConnection.generateCertificate; + } + }); + } + }, + shimTrackEventTransceiver: function(window) { + // Add event.transceiver member over deprecated event.receiver + if (typeof window === 'object' && window.RTCPeerConnection && + ('receiver' in window.RTCTrackEvent.prototype) && + // can't check 'transceiver' in window.RTCTrackEvent.prototype, as it is + // defined for some reason even when window.RTCTransceiver is not. + !window.RTCTransceiver) { + Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', { + get: function() { + return {receiver: this.receiver}; + } + }); + } + }, - 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); - } + shimCreateOfferLegacy: function(window) { + var origCreateOffer = window.RTCPeerConnection.prototype.createOffer; + window.RTCPeerConnection.prototype.createOffer = function(offerOptions) { + var pc = this; + if (offerOptions) { + if (typeof offerOptions.offerToReceiveAudio !== 'undefined') { + // support bit values + offerOptions.offerToReceiveAudio = !!offerOptions.offerToReceiveAudio; + } + var audioTransceiver = pc.getTransceivers().find(function(transceiver) { + return transceiver.sender.track && + transceiver.sender.track.kind === 'audio'; }); - - // 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()); + if (offerOptions.offerToReceiveAudio === false && audioTransceiver) { + if (audioTransceiver.direction === 'sendrecv') { + if (audioTransceiver.setDirection) { + audioTransceiver.setDirection('sendonly'); + } else { + audioTransceiver.direction = 'sendonly'; } - - 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(); - }); + } else if (audioTransceiver.direction === 'recvonly') { + if (audioTransceiver.setDirection) { + audioTransceiver.setDirection('inactive'); + } else { + audioTransceiver.direction = 'inactive'; } } - }; - } - - function prepareRegularAnimation(animationDetails) { - var element = animationDetails.element; - var options = animationDetails.options || {}; + } else if (offerOptions.offerToReceiveAudio === true && + !audioTransceiver) { + pc.addTransceiver('audio'); + } - 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; + if (typeof offerOptions.offerToReceiveVideo !== 'undefined') { + // support bit values + offerOptions.offerToReceiveVideo = !!offerOptions.offerToReceiveVideo; + } + var videoTransceiver = pc.getTransceivers().find(function(transceiver) { + return transceiver.sender.track && + transceiver.sender.track.kind === 'video'; + }); + if (offerOptions.offerToReceiveVideo === false && videoTransceiver) { + if (videoTransceiver.direction === 'sendrecv') { + videoTransceiver.setDirection('sendonly'); + } else if (videoTransceiver.direction === 'recvonly') { + videoTransceiver.setDirection('inactive'); } + } else if (offerOptions.offerToReceiveVideo === true && + !videoTransceiver) { + pc.addTransceiver('video'); } + } + return origCreateOffer.apply(pc, arguments); + }; + } +}; - // 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); - } +},{"../utils":325}],325:[function(require,module,exports){ +/* + * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. + */ + /* eslint-env node */ +'use strict'; - var animator = $animateCss(element, options); +var logDisabled_ = true; +var deprecationWarnings_ = true; - // 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; - } - }]; - }]; +/** + * Extract browser version out of the provided user agent string. + * + * @param {!string} uastring userAgent string. + * @param {!string} expr Regular expression used as match criteria. + * @param {!number} pos position in the version string to be returned. + * @return {!number} browser version. + */ +function extractVersion(uastring, expr, pos) { + var match = uastring.match(expr); + return match && match.length >= pos && parseInt(match[pos], 10); +} - // TODO(matsko): use caching here to speed things up for detection - // TODO(matsko): add documentation - // by the time... +// Wraps the peerconnection event eventNameToWrap in a function +// which returns the modified event object (or false to prevent +// the event). +function wrapPeerConnectionEvent(window, eventNameToWrap, wrapper) { + if (!window.RTCPeerConnection) { + return; + } + var proto = window.RTCPeerConnection.prototype; + var nativeAddEventListener = proto.addEventListener; + proto.addEventListener = function(nativeEventName, cb) { + if (nativeEventName !== eventNameToWrap) { + return nativeAddEventListener.apply(this, arguments); + } + var wrappedCallback = function(e) { + var modifiedEvent = wrapper(e); + if (modifiedEvent) { + cb(modifiedEvent); + } + }; + this._eventMap = this._eventMap || {}; + this._eventMap[cb] = wrappedCallback; + return nativeAddEventListener.apply(this, [nativeEventName, + wrappedCallback]); + }; - var $$AnimateJsProvider = ['$animateProvider', /** @this */function ($animateProvider) { - this.$get = ['$injector', '$$AnimateRunner', '$$jqLite', function ($injector, $$AnimateRunner, $$jqLite) { + var nativeRemoveEventListener = proto.removeEventListener; + proto.removeEventListener = function(nativeEventName, cb) { + if (nativeEventName !== eventNameToWrap || !this._eventMap + || !this._eventMap[cb]) { + return nativeRemoveEventListener.apply(this, arguments); + } + var unwrappedCb = this._eventMap[cb]; + delete this._eventMap[cb]; + return nativeRemoveEventListener.apply(this, [nativeEventName, + unwrappedCb]); + }; - var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); - // $animateJs(element, 'enter'); - return function (element, event, classes, options) { - var animationClosed = false; + Object.defineProperty(proto, 'on' + eventNameToWrap, { + get: function() { + return this['_on' + eventNameToWrap]; + }, + set: function(cb) { + if (this['_on' + eventNameToWrap]) { + this.removeEventListener(eventNameToWrap, + this['_on' + eventNameToWrap]); + delete this['_on' + eventNameToWrap]; + } + if (cb) { + this.addEventListener(eventNameToWrap, + this['_on' + eventNameToWrap] = cb); + } + }, + enumerable: true, + configurable: true + }); +} - // 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; - } +// Utility methods. +module.exports = { + extractVersion: extractVersion, + wrapPeerConnectionEvent: wrapPeerConnectionEvent, + disableLog: function(bool) { + if (typeof bool !== 'boolean') { + return new Error('Argument type: ' + typeof bool + + '. Please use a boolean.'); + } + logDisabled_ = bool; + return (bool) ? 'adapter.js logging disabled' : + 'adapter.js logging enabled'; + }, - options = prepareAnimationOptions(options); - if (!classes) { - classes = element.attr('class') || ''; - if (options.addClass) { - classes += ' ' + options.addClass; - } - if (options.removeClass) { - classes += ' ' + options.removeClass; - } - } + /** + * Disable or enable deprecation warnings + * @param {!boolean} bool set to true to disable warnings. + */ + disableWarnings: function(bool) { + if (typeof bool !== 'boolean') { + return new Error('Argument type: ' + typeof bool + + '. Please use a boolean.'); + } + deprecationWarnings_ = !bool; + return 'adapter.js deprecation warnings ' + (bool ? 'disabled' : 'enabled'); + }, - 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; - } + log: function() { + if (typeof window === 'object') { + if (logDisabled_) { + return; + } + if (typeof console !== 'undefined' && typeof console.log === 'function') { + console.log.apply(console, arguments); + } + } + }, - if (event !== 'enter' && event !== 'move') { - before = packageAnimations(element, event, options, animations, beforeFn); - } - after = packageAnimations(element, event, options, animations, afterFn); - } + /** + * Shows a deprecation warning suggesting the modern and spec-compatible API. + */ + deprecated: function(oldMethod, newMethod) { + if (!deprecationWarnings_) { + return; + } + console.warn(oldMethod + ' is deprecated, please use ' + newMethod + + ' instead.'); + }, - // no matching animations - if (!before && !after) return; + /** + * Browser detector. + * + * @return {object} result containing browser and version + * properties. + */ + detectBrowser: function(window) { + var navigator = window && window.navigator; - function applyOptions() { - options.domOperation(); - applyAnimationClasses(element, options); - } + // Returned result object. + var result = {}; + result.browser = null; + result.version = null; - function close() { - animationClosed = true; - applyOptions(); - applyAnimationStyles(element, options); - } + // Fail early if it's not a browser + if (typeof window === 'undefined' || !window.navigator) { + result.browser = 'Not a browser.'; + return result; + } - var runner; + if (navigator.mozGetUserMedia) { // Firefox. + result.browser = 'firefox'; + result.version = extractVersion(navigator.userAgent, + /Firefox\/(\d+)\./, 1); + } else if (navigator.webkitGetUserMedia) { + // Chrome, Chromium, Webview, Opera. + // Version matches Chrome/WebRTC version. + result.browser = 'chrome'; + result.version = extractVersion(navigator.userAgent, + /Chrom(e|ium)\/(\d+)\./, 2); + } else if (navigator.mediaDevices && + navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)) { // Edge. + result.browser = 'edge'; + result.version = extractVersion(navigator.userAgent, + /Edge\/(\d+).(\d+)$/, 2); + } else if (window.RTCPeerConnection && + navigator.userAgent.match(/AppleWebKit\/(\d+)\./)) { // Safari. + result.browser = 'safari'; + result.version = extractVersion(navigator.userAgent, + /AppleWebKit\/(\d+)\./, 1); + } else { // Default fallthrough: not supported. + result.browser = 'Not a supported browser.'; + return result; + } - 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; - } + return result; + } +}; - runner = new $$AnimateRunner(); - var closeActiveAnimations; - var chain = []; +},{}],326:[function(require,module,exports){ +'use strict'; - if (before) { - chain.push(function (fn) { - closeActiveAnimations = before(fn); - }); - } +var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split('') + , length = 64 + , map = {} + , seed = 0 + , i = 0 + , prev; - if (chain.length) { - chain.push(function (fn) { - applyOptions(); - fn(true); - }); - } else { - applyOptions(); - } +/** + * Return a string representing the specified number. + * + * @param {Number} num The number to convert. + * @returns {String} The string representation of the number. + * @api public + */ +function encode(num) { + var encoded = ''; - if (after) { - chain.push(function (fn) { - closeActiveAnimations = after(fn); - }); - } + do { + encoded = alphabet[num % length] + encoded; + num = Math.floor(num / length); + } while (num > 0); - runner.setHost({ - end: function end() { - endAnimations(); - }, - cancel: function cancel() { - endAnimations(true); - } - }); + return encoded; +} - $$AnimateRunner.chain(chain, onComplete); - return runner; +/** + * Return the integer value specified by the given string. + * + * @param {String} str The string to convert. + * @returns {Number} The integer value represented by the string. + * @api public + */ +function decode(str) { + var decoded = 0; - function onComplete(success) { - close(success); - runner.complete(success); - } + for (i = 0; i < str.length; i++) { + decoded = decoded * length + map[str.charAt(i)]; + } - function endAnimations(cancelled) { - if (!animationClosed) { - (closeActiveAnimations || noop)(cancelled); - onComplete(cancelled); - } - } - } - }; + return decoded; +} - function executeAnimationFn(fn, element, event, options, onDone) { - var args; - switch (event) { - case 'animate': - args = [element, options.from, options.to, onDone]; - break; +/** + * Yeast: A tiny growing id generator. + * + * @returns {String} A unique id. + * @api public + */ +function yeast() { + var now = encode(+new Date()); - case 'setClass': - args = [element, classesToAdd, classesToRemove, onDone]; - break; + if (now !== prev) return seed = 0, prev = now; + return now +'.'+ encode(seed++); +} - case 'addClass': - args = [element, classesToAdd, onDone]; - break; +// +// Map each character to its index. +// +for (; i < length; i++) map[alphabet[i]] = i; - case 'removeClass': - args = [element, classesToRemove, onDone]; - break; +// +// Expose the `yeast`, `encode` and `decode` functions. +// +yeast.encode = encode; +yeast.decode = decode; +module.exports = yeast; - default: - args = [element, onDone]; - break; - } +},{}],327:[function(require,module,exports){ +/** + * @license AngularJS v1.7.5 + * (c) 2010-2018 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'; +} - args.push(options); +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; +} - var value = fn.apply(fn, args); - if (value) { - if (isFunction(value.start)) { - value = value.start(); - } +function removeFromArray(arr, val) { + var index = arr.indexOf(val); + if (val >= 0) { + arr.splice(index, 1); + } +} - if (value instanceof $$AnimateRunner) { - value.done(onDone); - } else if (isFunction(value)) { - // optional onEnd / onCancel callback - return value; - } - } +function stripCommentsFromElement(element) { + if (element instanceof jqLite) { + switch (element.length) { + case 0: + return element; - return noop; + 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; - 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; + default: + return jqLite(extractElementNode(element)); + } + } - var resolved = false; - var onAnimationComplete = function onAnimationComplete(rejected) { - if (!resolved) { - resolved = true; - (endProgressCb || noop)(rejected); - runner.complete(!rejected); - } - }; + if (element.nodeType === ELEMENT_NODE) { + return jqLite(element); + } +} - runner = new $$AnimateRunner({ - end: function end() { - onAnimationComplete(); - }, - cancel: function cancel() { - onAnimationComplete(true); - } - }); +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; + } + } +} - endProgressCb = executeAnimationFn(animation, element, event, options, function (result) { - var cancelled = result === false; - onAnimationComplete(cancelled); - }); +function $$addClass($$jqLite, element, className) { + forEach(element, function(elm) { + $$jqLite.addClass(elm, className); + }); +} - return runner; - }); - }); +function $$removeClass($$jqLite, element, className) { + forEach(element, function(elm) { + $$jqLite.removeClass(elm, className); + }); +} - return operations; - } +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 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'); - } +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; +} - if (a) { - operations = operations.concat(a); - } - if (b) { - operations = operations.concat(b); - } - } +function applyAnimationStyles(element, options) { + applyAnimationFromStyles(element, options); + applyAnimationToStyles(element, options); +} - if (operations.length === 0) return; +function applyAnimationFromStyles(element, options) { + if (options.from) { + element.css(options.from); + options.from = null; + } +} - // TODO(matsko): add documentation - return function startAnimation(callback) { - var runners = []; - if (operations.length) { - forEach(operations, function (animateFn) { - runners.push(animateFn()); - }); - } +function applyAnimationToStyles(element, options) { + if (options.to) { + element.css(options.to); + options.to = null; + } +} - if (runners.length) { - $$AnimateRunner.all(runners, callback); - } else { - callback(); - } +function mergeAnimationDetails(element, oldAnimation, newAnimation) { + var target = oldAnimation.options || {}; + var newOptions = newAnimation.options || {}; - return function endFn(reject) { - forEach(runners, function (runner) { - if (reject) { - runner.cancel(); - } else { - runner.end(); - } - }); - }; - }; - } - }; + var toAdd = (target.addClass || '') + ' ' + (newOptions.addClass || ''); + var toRemove = (target.removeClass || '') + ' ' + (newOptions.removeClass || ''); + var classes = resolveElementClasses(element.attr('class'), toAdd, toRemove); - 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; - } - }]; - }]; + if (newOptions.preparationClasses) { + target.preparationClasses = concatWithSpace(newOptions.preparationClasses, target.preparationClasses); + delete newOptions.preparationClasses; + } - 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; + // noop is basically when there is no callback; otherwise something has been set + var realDomOperation = target.domOperation !== noop ? target.domOperation : null; - return { - start: function start() { - var animationRunners = []; + extend(target, newOptions); - if (fromAnimation) { - animationRunners.push(fromAnimation.start()); - } + // 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 (toAnimation) { - animationRunners.push(toAnimation.start()); - } + if (classes.addClass) { + target.addClass = classes.addClass; + } else { + target.addClass = null; + } - $$AnimateRunner.all(animationRunners, done); + if (classes.removeClass) { + target.removeClass = classes.removeClass; + } else { + target.removeClass = null; + } - var runner = new $$AnimateRunner({ - end: endFnFactory(), - cancel: endFnFactory() - }); + oldAnimation.addClass = target.addClass; + oldAnimation.removeClass = target.removeClass; - return runner; + return target; +} - function endFnFactory() { - return function () { - forEach(animationRunners, function (runner) { - // at this point we cannot cancel animations for groups just yet. 1.5+ - runner.end(); - }); - }; - } +function resolveElementClasses(existing, toAdd, toRemove) { + var ADD_CLASS = 1; + var REMOVE_CLASS = -1; - function done(status) { - runner.complete(status); - } - } - }; - } else { - return prepareAnimation(animationDetails); - } - }; + var flags = {}; + existing = splitClassesToLookup(existing); - 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); - } - }]; - }]; + toAdd = splitClassesToLookup(toAdd); + forEach(toAdd, function(value, key) { + flags[key] = ADD_CLASS; + }); - 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 = ' '; + toRemove = splitClassesToLookup(toRemove); + forEach(toRemove, function(value, key) { + flags[key] = flags[key] === ADD_CLASS ? null : REMOVE_CLASS; + }); - var rules = this.rules = { - skip: [], - cancel: [], - join: [] - }; + var classes = { + addClass: '', + removeClass: '' + }; - function getEventData(options) { - return { - addClass: options.addClass, - removeClass: options.removeClass, - from: options.from, - to: options.to - }; + 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]; } - - function makeTruthyCssClassMap(classString) { - if (!classString) { - return null; + if (allow) { + if (classes[prop].length) { + classes[prop] += ' '; } + classes[prop] += klass; + } + }); - var keys = classString.split(ONE_SPACE); - var map = Object.create(null); - - forEach(keys, function (key) { - map[key] = true; - }); - return map; + function splitClassesToLookup(classes) { + if (isString(classes)) { + classes = classes.split(' '); } - function hasMatchingClasses(newClassString, currentClassString) { - if (newClassString && currentClassString) { - var currentClassMap = makeTruthyCssClassMap(currentClassString); - return newClassString.split(ONE_SPACE).some(function (className) { - return currentClassMap[className]; - }); + 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; + } - function isAllowed(ruleType, currentAnimation, previousAnimation) { - return rules[ruleType].some(function (fn) { - return fn(currentAnimation, previousAnimation); - }); - } + return classes; +} - function hasAnimationClasses(animation, and) { - var a = (animation.addClass || '').length > 0; - var b = (animation.removeClass || '').length > 0; - return and ? a && b : a || b; - } +function getDomNode(element) { + return (element instanceof jqLite) ? element[0] : element; +} - 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); - }); +function applyGeneratedPreparationClasses($$jqLite, 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); + } +} - 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); - }); +function clearGeneratedClasses(element, options) { + if (options.preparationClasses) { + element.removeClass(options.preparationClasses); + options.preparationClasses = null; + } + if (options.activeClasses) { + element.removeClass(options.activeClasses); + options.activeClasses = null; + } +} - 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; - }); +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]; +} - 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; - }); +function blockKeyframeAnimations(node, applyBlock) { + var value = applyBlock ? 'paused' : ''; + var key = ANIMATION_PROP + ANIMATION_PLAYSTATE_KEY; + applyInlineStyle(node, [key, value]); + return [key, value]; +} - rules.cancel.push(function (newAnimation, currentAnimation) { - // there can never be two structural animations running at the same time - return currentAnimation.structural && newAnimation.structural; - }); +function applyInlineStyle(node, styleTuple) { + var prop = styleTuple[0]; + var value = styleTuple[1]; + node.style[prop] = value; +} - 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; - }); +function concatWithSpace(a,b) { + if (!a) return b; + if (!b) return a; + return a + ' ' + b; +} - 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 +var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) { + var queue, cancelFn; - if (currentAnimation.structural) return false; + 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(); + } - var nA = newAnimation.addClass; - var nR = newAnimation.removeClass; - var cA = currentAnimation.addClass; - var cR = currentAnimation.removeClass; + queue = scheduler.queue = []; - // early detection to save the global CPU shortage :) - if (isUndefined(nA) && isUndefined(nR) || isUndefined(cA) && isUndefined(cR)) { - return false; - } + /* 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(); - return hasMatchingClasses(nA, cR) || hasMatchingClasses(nR, cA); + cancelFn = $$rAF(function() { + cancelFn = null; + fn(); + nextTick(); }); + }; - 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 removeFromDisabledElementsLookup(evt) { - disabledElementsLookup.delete(evt.target); - } + return scheduler; - 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(); - }); - } - }; - } + function nextTick() { + if (!queue.length) return; - // 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(); + var items = queue.shift(); + for (var i = 0; i < items.length; i++) { + items[i](); + } - // 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; - } - }); - }); + if (!cancelFn) { + $$rAF(function() { + if (!cancelFn) nextTick(); }); + } + } +}]; - 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; - }; +/** + * @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 + * + +
    + + +
    +
    +
    + List of items: +
    Item {{item}}
    +
    +
    +
    +
    + - 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); - }; + .container.ng-enter, + .container.ng-leave { + transition: all ease 1.5s; + } - var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + .container.ng-enter, + .container.ng-leave-active { + opacity: 0; + } - function normalizeAnimationDetails(element, animation) { - return mergeAnimationDetails(element, animation, {}); + .container.ng-leave, + .container.ng-enter-active { + opacity: 1; } - // 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); - }; + .item { + background: firebrick; + color: #FFF; + margin-bottom: 10px; + } - 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); - } - }); - } + .item.ng-enter, + .item.ng-leave { + transition: transform 1.5s ease; + } - return matches; + .item.ng-enter { + transform: translateX(50px); } - 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; + .item.ng-enter-active { + transform: translateX(0); + } + + + angular.module('ngAnimateChildren', ['ngAnimate']) + .controller('MainController', function MainController() { + this.animateChildren = false; + this.enterElement = false; }); + +
    + */ +var $$AnimateChildrenDirective = ['$interpolate', function($interpolate) { + return { + link: function(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 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); - } + function setData(value) { + value = value === 'on' || value === 'true'; + element.data(NG_ANIMATE_CHILDREN_DATA, value); } + } + }; +}]; - 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); - }, +/* exported $AnimateCssProvider */ - 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); - }, +var ANIMATE_TIMER_KEY = '$$animateCss'; - push: function push(element, event, options, domOperation) { - options = options || {}; - options.domOperation = domOperation; - return queueAnimation(element, event, options); - }, +/** + * @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 AngularJS. 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 + * + *
    + * This element will go BOOM + *
    + * + * ``` + * + * 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 + * /* 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 */ + * .red { background:red; } + * .large-text { font-size:20px; } + * + * /* we can also use a keyframe animation and $animateCss will make it work alongside the transition */ + * .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; - // this method has four signatures: - // () - global getter - // (bool) - global setter - // (element) - element getter - // (element, bool) - element setter - enabled: function enabled(element, bool) { - var argCount = arguments.length; - - if (argCount === 0) { - // () - Global getter - bool = !!animationsEnabled; - } else { - var hasElement = isElement(element); +var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3; +var CLOSING_TIME_BUFFER = 1.5; - if (!hasElement) { - // (bool) - Global setter - bool = animationsEnabled = !!element; - } else { - var node = getDomNode(element); +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 +}; - if (argCount === 1) { - // (element) - Element getter - bool = !disabledElementsLookup.get(node); - } else { - // (element, bool) - Element setter - if (!disabledElementsLookup.has(node)) { - // The element is added to the map for the first time. - // Create a listener to remove it on `$destroy` (to avoid memory leak). - jqLite(element).on('$destroy', removeFromDisabledElementsLookup); - } - disabledElementsLookup.set(node, !bool); - } - } - } +var DETECT_STAGGER_CSS_PROPERTIES = { + transitionDuration: TRANSITION_DURATION_PROP, + transitionDelay: TRANSITION_DELAY_PROP, + animationDuration: ANIMATION_DURATION_PROP, + animationDelay: ANIMATION_DELAY_PROP +}; - return bool; - } - }; +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']; +} - return $animate; +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); - 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); + // only numerical-based values have a negative sign or digit as the first value + if (c === '-' || c === '+' || c >= 0) { + val = parseMaxTime(val); + } - var element = stripCommentsFromElement(originalElement); - var node = getDomNode(element); - var parentNode = node && node.parentNode; + // 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; + } + }); - options = prepareAnimationOptions(options); + return styles; +} - // we create a fake runner with a working promise. - // These methods will become available after the digest has passed - var runner = new $$AnimateRunner(); +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; +} - // this is used to trigger callbacks in postDigest mode - var runInNextPostDigestOrNow = postDigestTaskFactory(); +function truthyTimingValue(val) { + return val === 0 || val != null; +} - if (isArray(options.addClass)) { - options.addClass = options.addClass.join(' '); - } +function getCssTransitionDurationStyle(duration, applyOnlyDuration) { + var style = TRANSITION_PROP; + var value = duration + 's'; + if (applyOnlyDuration) { + style += DURATION_KEY; + } else { + value += ' linear all'; + } + return [style, value]; +} + +// 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); + }); +} - if (options.addClass && !isString(options.addClass)) { - options.addClass = null; - } +var $AnimateCssProvider = ['$animateProvider', /** @this */ function($animateProvider) { - if (isArray(options.removeClass)) { - options.removeClass = options.removeClass.join(' '); - } + this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout', '$$animateCache', + '$$forceReflow', '$sniffer', '$$rAFScheduler', '$$animateQueue', + function($window, $$jqLite, $$AnimateRunner, $timeout, $$animateCache, + $$forceReflow, $sniffer, $$rAFScheduler, $$animateQueue) { - if (options.removeClass && !isString(options.removeClass)) { - options.removeClass = null; - } + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); - if (options.from && !isObject(options.from)) { - options.from = null; - } + function computeCachedCssStyles(node, className, cacheKey, allowNoDuration, properties) { + var timings = $$animateCache.get(cacheKey); - if (options.to && !isObject(options.to)) { - options.to = null; + if (!timings) { + timings = computeCssStyles($window, node, properties); + if (timings.animationIterationCount === 'infinite') { + timings.animationIterationCount = 1; } + } - // 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; - } + // if a css animation has no duration we + // should mark that so that repeated addClass/removeClass calls are skipped + var hasDuration = allowNoDuration || (timings.transitionDuration > 0 || timings.animationDuration > 0); + + // 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. + $$animateCache.put(cacheKey, timings, hasDuration); + + return timings; + } + + function computeCachedCssStaggerStyles(node, className, cacheKey, properties) { + var stagger; + var staggerCacheKey = 'stagger-' + cacheKey; + + // 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 ($$animateCache.count(cacheKey) > 0) { + stagger = $$animateCache.get(staggerCacheKey); + + if (!stagger) { + var staggerClassName = pendClasses(className, '-stagger'); + + $$jqLite.addClass(node, staggerClassName); - var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0; + stagger = computeCssStyles($window, node, properties); - var documentHidden = $$isDocumentHidden(); + // 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); - // 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; + $$jqLite.removeClass(node, staggerClassName); - // 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); + $$animateCache.put(staggerCacheKey, stagger, true); } + } - if (skipAnimations) { - // Callbacks should fire even if the document is hidden (regression fix for issue #14120) - if (documentHidden) notifyProgress(runner, event, 'start', getEventData(options)); - close(); - if (documentHidden) notifyProgress(runner, event, 'close', getEventData(options)); - return runner; + return stagger || {}; + } + + var rafWaitQueue = []; + function waitUntilQuiet(callback) { + rafWaitQueue.push(callback); + $$rAFScheduler.waitUntilQuiet(function() { + $$animateCache.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, allowNoDuration) { + var timings = computeCachedCssStyles(node, className, cacheKey, allowNoDuration, 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 (isStructural) { - closeChildAnimations(node); + 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 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 stagger, cacheKey = $$animateCache.cacheKey(node, method, options.addClass, options.removeClass); + if ($$animateCache.containsCachedAnimationWithoutDuration(cacheKey)) { + preparationClasses = null; + return closeAndReturnNoopAnimator(); + } - var newAnimation = { - structural: isStructural, - element: element, - event: event, - addClass: options.addClass, - removeClass: options.removeClass, - close: close, - options: options, - runner: runner + if (options.stagger > 0) { + var staggerVal = parseFloat(options.stagger); + stagger = { + transitionDelay: staggerVal, + animationDelay: staggerVal, + transitionDuration: 0, + animationDuration: 0 }; + } else { + stagger = computeCachedCssStaggerStyles(node, preparationClasses, cacheKey, DETECT_STAGGER_CSS_PROPERTIES); + } - 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); + if (!options.$$skipPreparationClasses) { + $$jqLite.addClass(element, preparationClasses); + } - 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($$jqLite, element, isStructural ? event : null, options); + var applyOnlyDuration; - event = newAnimation.event = existingAnimation.event; - options = mergeAnimationDetails(element, existingAnimation, newAnimation); + if (options.transitionStyle) { + var transitionStyle = [TRANSITION_PROP, options.transitionStyle]; + applyInlineStyle(node, transitionStyle); + temporaryStyles.push(transitionStyle); + } - //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); + 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 + : $$animateCache.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, !isStructural); + 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)); } - // 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 (flags.applyAnimationDuration) { + flags.hasAnimations = true; + timings.animationDuration = maxDuration; + temporaryStyles.push(getCssKeyframeDurationStyle(maxDuration)); } + } - if (!isValidAnimation) { - close(); - clearElementAnimationState(node); - return runner; + if (maxDuration === 0 && !flags.recalculateTimingStyles) { + return closeAndReturnNoopAnimator(); + } + + var activeClasses = pendClasses(preparationClasses, ACTIVE_CLASS_SUFFIX); + + 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); } - // the counter keeps track of cancelled animations - var counter = (existingAnimation.counter || 0) + 1; - newAnimation.counter = counter; + if (flags.applyTransitionDelay) { + temporaryStyles.push(getCssDelayStyle(delayStyle)); + } - markElementAnimationState(node, PRE_DIGEST_STATE, newAnimation); + if (flags.applyAnimationDelay) { + temporaryStyles.push(getCssDelayStyle(delayStyle, true)); + } + } - $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. + // 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; + } - element = stripCommentsFromElement(originalElement); + 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; + } - 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 (options.from) { + if (options.cleanupStyles) { + registerRestorableStyles(restoreStyles, node, Object.keys(options.from)); + } + applyAnimationFromStyles(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(); - } + if (flags.blockTransition || flags.blockKeyframeAnimation) { + applyBlocking(maxDuration); + } else if (!options.skipBlocking) { + blockTransitions(node, false); + } - // 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); - } + // TODO(matsko): for 1.5 change this code to have an animator object for better debugging + return { + $$willAnimate: true, + end: endFn, + start: function() { + if (animationClosed) return; - 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; + } + }; - // 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; + function endFn() { + close(); + } - markElementAnimationState(node, RUNNING_STATE); - var realRunner = $$animation(element, event, animationDetails.options); + function cancelFn() { + close(true); + } - // this will update the runner's flow-control events based on - // the `realRunner` object. - runner.setHost(realRunner); - notifyProgress(runner, event, 'start', getEventData(options)); + 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; - realRunner.done(function (status) { - close(!status); - var animationDetails = activeAnimationsLookup.get(node); - if (animationDetails && animationDetails.counter === counter) { - clearElementAnimationState(node); - } - notifyProgress(runner, event, 'close', getEventData(options)); - }); + if (preparationClasses && !options.$$skipPreparationClasses) { + $$jqLite.removeClass(element, preparationClasses); + } + + if (activeClasses) { + $$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]] = ''; }); - return runner; + applyAnimationClasses(element, options); + applyAnimationStyles(element, options); - 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); - }); + if (Object.keys(restoreStyles).length) { + forEach(restoreStyles, function(value, prop) { + if (value) { + node.style.setProperty(prop, value); } else { - cleanupEventListeners(phase, node); + node.style.removeProperty(prop); } }); - runner.progress(event, phase, data); } - function close(reject) { - clearGeneratedClasses(element, options); - applyAnimationClasses(element, options); - applyAnimationStyles(element, options); - options.domOperation(); - runner.complete(!reject); + // 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 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 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() { + return runner; + }, + end: endFn + }; } - function clearElementAnimationState(node) { - node.removeAttribute(NG_ANIMATE_ATTR_NAME); - activeAnimationsLookup.delete(node); + 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(); + } } - /** - * 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); + function start() { + if (animationClosed) return; + if (!node.parentNode) { + close(); + return; + } - var bodyNodeDetected = node === bodyNode || node.nodeName === 'HTML'; - var rootNodeDetected = node === rootNode; - var parentAnimationDetected = false; - var elementDisabled = disabledElementsLookup.get(node); - var animateChildren; + // 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(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(); + } + }; - var parentHost = jqLite.data(node, NG_ANIMATE_PIN_DATA); - if (parentHost) { - parentNode = getDomNode(parentHost); + // 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(); } - while (parentNode) { - if (!rootNodeDetected) { - // AngularJS 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; + // 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 = $$animateCache.cacheKey(node, method, options.addClass, options.removeClass); + + timings = computeTimings(node, fullClassName, cacheKey, false); + 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 (parentNode.nodeType !== ELEMENT_NODE) { - // no point in inspecting the #document element - break; + 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]; } - 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; + 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; } - parentAnimationDetected = details.structural; } - if (isUndefined(animateChildren) || animateChildren === true) { - var value = jqLite.data(parentNode, NG_ANIMATE_CHILDREN_DATA); - if (isDefined(value)) { - animateChildren = value; - } + if (timings.transitionDuration) { + events.push(TRANSITIONEND_EVENT); + } + + if (timings.animationDuration) { + events.push(ANIMATIONEND_EVENT); } - // there is no need to continue traversing at this point - if (parentAnimationDetected && animateChildren === false) break; + 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 (!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 (setupFallbackTimer) { + var timer = $timeout(onAnimationExpired, timerTime, false); + animationsData[0] = { + timer: timer, + expectedEndTime: endTime + }; + animationsData.push(close); + element.data(ANIMATE_TIMER_KEY, animationsData); } - 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 (events.length) { + element.on(events.join(' '), onAnimationProgress); } - 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; + if (options.to) { + if (options.cleanupStyles) { + registerRestorableStyles(restoreStyles, node, Object.keys(options.to)); } + applyAnimationToStyles(element, options); } - - parentNode = parentNode.parentNode; } - var allowAnimation = (!parentAnimationDetected || animateChildren) && elementDisabled !== true; - return allowAnimation && rootNodeDetected && bodyNodeDetected; + 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); + } + } } + }; + }]; +}]; - function markElementAnimationState(node, state, details) { - details = details || {}; - details.state = state; +var $$AnimateCssDriverProvider = ['$$animationProvider', /** @this */ function($$animationProvider) { + $$animationProvider.drivers.push('$$animateCssDriver'); - node.setAttribute(NG_ANIMATE_ATTR_NAME, state); + var NG_ANIMATE_SHIM_CLASS_NAME = 'ng-animate-shim'; + var NG_ANIMATE_ANCHOR_CLASS_NAME = 'ng-anchor'; - var oldValue = activeAnimationsLookup.get(node); - var newValue = oldValue ? extend(oldValue, details) : details; - activeAnimationsLookup.set(node, newValue); - } - }]; - }]; + var NG_OUT_ANCHOR_CLASS_NAME = 'ng-anchor-out'; + var NG_IN_ANCHOR_CLASS_NAME = 'ng-anchor-in'; - /** @this */ - var $$AnimateCacheProvider = function $$AnimateCacheProvider() { + function isDocumentFragment(node) { + return node.parentNode && node.parentNode.nodeType === 11; + } - var KEY = '$$ngAnimateParentKey'; - var parentCounter = 0; - var cache = Object.create(null); + this.$get = ['$animateCss', '$rootScope', '$$AnimateRunner', '$rootElement', '$sniffer', '$$jqLite', '$document', + function($animateCss, $rootScope, $$AnimateRunner, $rootElement, $sniffer, $$jqLite, $document) { - this.$get = [function () { - return { - cacheKey: function cacheKey(node, method, addClass, removeClass) { - var parentNode = node.parentNode; - var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter); - var parts = [parentID, method, node.getAttribute('class')]; - if (addClass) { - parts.push(addClass); - } - if (removeClass) { - parts.push(removeClass); - } - return parts.join(' '); - }, + // only browsers that support these properties can render animations + if (!$sniffer.animations && !$sniffer.transitions) return noop; - containsCachedAnimationWithoutDuration: function containsCachedAnimationWithoutDuration(key) { - var entry = cache[key]; + var bodyNode = $document[0].body; + var rootNode = getDomNode($rootElement); - // nothing cached, so go ahead and animate - // otherwise it should be a valid animation - return entry && !entry.isValid || false; - }, + 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 + ); - flush: function flush() { - cache = Object.create(null); - }, + return function initDriverFn(animationDetails) { + return animationDetails.from && animationDetails.to + ? prepareFromToAnchorAnimation(animationDetails.from, + animationDetails.to, + animationDetails.classes, + animationDetails.anchors) + : prepareRegularAnimation(animationDetails); + }; - count: function count(key) { - var entry = cache[key]; - return entry ? entry.total : 0; - }, + function filterCssClasses(classes) { + //remove all the `ng-` stuff + return classes.replace(/\bng-\S+\b/g, ''); + } - get: function get(key) { - var entry = cache[key]; - return entry && entry.value; - }, + 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(' '); + } - put: function put(key, value, isValid) { - if (!cache[key]) { - cache[key] = { total: 1, value: value, isValid: isValid }; - } else { - cache[key].total++; - cache[key].value = value; + 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() { + 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(); + } } } }; - }]; - }; - /* exported $$AnimationProvider */ + function calculateAnchorStyles(anchor) { + var styles = {}; - var $$AnimationProvider = ['$animateProvider', /** @this */function ($animateProvider) { - var NG_ANIMATE_REF_ATTR = 'ng-animate-ref'; + var coords = getDomNode(anchor).getBoundingClientRect(); - var drivers = this.drivers = []; + // 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; + } - var RUNNER_STORAGE_KEY = '$$animationRunner'; - var PREPARE_CLASSES_KEY = '$$animatePrepareClasses'; + function prepareOutAnimation() { + var animator = $animateCss(clone, { + addClass: NG_OUT_ANCHOR_CLASS_NAME, + delay: true, + from: calculateAnchorStyles(outAnchor) + }); - function setRunner(element, runner) { - element.data(RUNNER_STORAGE_KEY, runner); - } + // read the comment within `prepareRegularAnimation` to understand + // why this check is necessary + return animator.$$willAnimate ? animator : null; + } - function removeRunner(element) { - element.removeData(RUNNER_STORAGE_KEY); - } + function getClassVal(element) { + return element.attr('class') || ''; + } - function getRunner(element) { - return element.data(RUNNER_STORAGE_KEY); - } + function prepareInAnimation() { + var endingClasses = filterCssClasses(getClassVal(inAnchor)); + var toAdd = getUniqueValues(endingClasses, startingClasses); + var toRemove = getUniqueValues(startingClasses, endingClasses); - this.$get = ['$$jqLite', '$rootScope', '$injector', '$$AnimateRunner', '$$Map', '$$rAFScheduler', '$$animateCache', function ($$jqLite, $rootScope, $injector, $$AnimateRunner, $$Map, $$rAFScheduler, $$animateCache) { + var animator = $animateCss(clone, { + to: calculateAnchorStyles(inAnchor), + addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd, + removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove, + delay: true + }); - var animationQueue = []; - var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + // read the comment within `prepareRegularAnimation` to understand + // why this check is necessary + return animator.$$willAnimate ? animator : null; + } - function sortAnimations(animations) { - var tree = { children: [] }; - var i, - lookup = new $$Map(); + function end() { + clone.remove(); + outAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); + inAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME); + } + } - // 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, - element: animation.element, - fn: animation.fn, - children: [] - }); - } + function prepareFromToAnchorAnimation(from, to, classes, anchors) { + var fromAnimation = prepareRegularAnimation(from, noop); + var toAnimation = prepareRegularAnimation(to, noop); - for (i = 0; i < animations.length; i++) { - processNode(animations[i]); + 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); } + }); - return flatten(tree); + // no point in doing anything when there are no elements to animate + if (!fromAnimation && !toAnimation && anchorAnimations.length === 0) return; - function processNode(entry) { - if (entry.processed) return entry; - entry.processed = true; + return { + start: function() { + var animationRunners = []; - var elementNode = entry.domNode; - var parentNode = elementNode.parentNode; - lookup.set(elementNode, entry); + if (fromAnimation) { + animationRunners.push(fromAnimation.start()); + } - var parentEntry; - while (parentNode) { - parentEntry = lookup.get(parentNode); - if (parentEntry) { - if (!parentEntry.processed) { - parentEntry = processNode(parentEntry); - } - break; - } - parentNode = parentNode.parentNode; + if (toAnimation) { + animationRunners.push(toAnimation.start()); } - (parentEntry || tree).children.push(entry); - return entry; - } + forEach(anchorAnimations, function(animation) { + animationRunners.push(animation.start()); + }); - function flatten(tree) { - var result = []; - var queue = []; - var i; + var runner = new $$AnimateRunner({ + end: endFn, + cancel: endFn // CSS-driven animations cannot be cancelled, only ended + }); - for (i = 0; i < tree.children.length; i++) { - queue.push(tree.children[i]); - } + $$AnimateRunner.all(animationRunners, function(status) { + runner.complete(status); + }); - 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); - entry.children.forEach(function (childEntry) { - nextLevelEntries++; - queue.push(childEntry); + return runner; + + function endFn() { + forEach(animationRunners, function(runner) { + runner.end(); }); - remainingLevelEntries--; } + } + }; + } - if (row.length) { - result.push(row); - } + function prepareRegularAnimation(animationDetails) { + var element = animationDetails.element; + var options = animationDetails.options || {}; + + if (animationDetails.structural) { + options.event = animationDetails.event; + options.structural = true; + options.applyClassesEarly = true; - return result; + // 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; } } - // 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; + // 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); + } - // 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); - } - }); + var animator = $animateCss(element, options); - if (!drivers.length) { - close(); - return runner; - } + // 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; + } + }]; +}]; - var classes = mergeClasses(element.attr('class'), mergeClasses(options.addClass, options.removeClass)); - var tempClasses = options.tempClasses; - if (tempClasses) { - classes += ' ' + tempClasses; - options.tempClasses = null; - } +// TODO(matsko): use caching here to speed things up for detection +// TODO(matsko): add documentation +// by the time... - if (isStructural) { - element.data(PREPARE_CLASSES_KEY, 'ng-' + event + PREPARE_CLASS_SUFFIX); - } +var $$AnimateJsProvider = ['$animateProvider', /** @this */ function($animateProvider) { + this.$get = ['$injector', '$$AnimateRunner', '$$jqLite', + function($injector, $$AnimateRunner, $$jqLite) { - setRunner(element, runner); + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); + // $animateJs(element, 'enter'); + return function(element, event, classes, options) { + var animationClosed = false; - 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 - }); + // 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; + } - 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(); - } - }); + options = prepareAnimationOptions(options); + if (!classes) { + classes = element.attr('class') || ''; + if (options.addClass) { + classes += ' ' + options.addClass; + } + if (options.removeClass) { + classes += ' ' + options.removeClass; + } + } - // now any future animations will be in another postDigest - animationQueue.length = 0; + var classesToAdd = options.addClass; + var classesToRemove = options.removeClass; - var groupedAnimations = groupAnimations(animations); - var toBeSortedAnimations = []; + // 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; + } - forEach(groupedAnimations, function (animationEntry) { - var element = animationEntry.from ? animationEntry.from.element : animationEntry.element; - var extraClasses = options.addClass; + if (event !== 'enter' && event !== 'move') { + before = packageAnimations(element, event, options, animations, beforeFn); + } + after = packageAnimations(element, event, options, animations, afterFn); + } - extraClasses = (extraClasses ? extraClasses + ' ' : '') + NG_ANIMATE_CLASSNAME; - var cacheKey = $$animateCache.cacheKey(element[0], animationEntry.event, extraClasses, options.removeClass); + // no matching animations + if (!before && !after) return; - toBeSortedAnimations.push({ - element: element, - domNode: getDomNode(element), - fn: function triggerAnimationStart() { - var startAnimationFn, - closeFn = animationEntry.close; + function applyOptions() { + options.domOperation(); + applyAnimationClasses(element, options); + } - // in the event that we've cached the animation status for this element - // and it's in fact an invalid animation (something that has duration = 0) - // then we should skip all the heavy work from here on - if ($$animateCache.containsCachedAnimationWithoutDuration(cacheKey)) { - closeFn(); - return; - } + function close() { + animationClosed = true; + applyOptions(); + applyAnimationStyles(element, options); + } - // 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 runner; + + return { + $$willAnimate: true, + end: function() { + if (runner) { + runner.end(); + } else { + close(); + runner = new $$AnimateRunner(); + runner.complete(true); + } + return runner; + }, + start: function() { + if (runner) { + return runner; + } - // 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; + runner = new $$AnimateRunner(); + var closeActiveAnimations; + var chain = []; - if (getRunner(targetElement)) { - var operation = invokeFirstDriver(animationEntry); - if (operation) { - startAnimationFn = operation.start; - } - } + if (before) { + chain.push(function(fn) { + closeActiveAnimations = before(fn); + }); + } - if (!startAnimationFn) { - closeFn(); - } else { - var animationRunner = startAnimationFn(); - animationRunner.done(function (status) { - closeFn(!status); - }); - updateAnimationRunners(animationEntry, animationRunner); - } - } + if (chain.length) { + chain.push(function(fn) { + applyOptions(); + fn(true); }); - }); + } else { + applyOptions(); + } - // 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. - var finalAnimations = sortAnimations(toBeSortedAnimations); - for (var i = 0; i < finalAnimations.length; i++) { - var innerArray = finalAnimations[i]; - for (var j = 0; j < innerArray.length; j++) { - var entry = innerArray[j]; - var element = entry.element; - - // the RAFScheduler code only uses functions - finalAnimations[i][j] = entry.fn; - - // the first row of elements shouldn't have a prepare-class added to them - // since the elements are at the top of the animation hierarchy and they - // will be applied without a RAF having to pass... - if (i === 0) { - element.removeData(PREPARE_CLASSES_KEY); - continue; - } + if (after) { + chain.push(function(fn) { + closeActiveAnimations = after(fn); + }); + } - var prepareClassName = element.data(PREPARE_CLASSES_KEY); - if (prepareClassName) { - $$jqLite.addClass(element, prepareClassName); - } + runner.setHost({ + end: function() { + endAnimations(); + }, + cancel: function() { + endAnimations(true); } - } + }); - $$rAFScheduler(finalAnimations); - }); + $$AnimateRunner.chain(chain, onComplete); + return runner; - return runner; + function onComplete(success) { + close(success); + runner.complete(success); + } - // 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); + function endAnimations(cancelled) { + if (!animationClosed) { + (closeActiveAnimations || noop)(cancelled); + onComplete(cancelled); } - }); - 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); - } - }); + function executeAnimationFn(fn, element, event, options, onDone) { + var args; + switch (event) { + case 'animate': + args = [element, options.from, options.to, onDone]; + break; - 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; - } + case 'setClass': + args = [element, classesToAdd, classesToRemove, onDone]; + break; - 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 - }; + case 'addClass': + args = [element, classesToAdd, onDone]; + break; - // 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); - } - } + case 'removeClass': + args = [element, classesToRemove, onDone]; + break; - anchorGroups[lookupKey].anchors.push({ - 'out': from.element, 'in': to.element - }); - }); + default: + args = [element, onDone]; + break; + } + + args.push(options); - return preparedAnimations; + 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; + } } - function cssClassesIntersection(a, b) { - a = a.split(' '); - b = b.split(' '); - var matches = []; + return noop; + } - for (var i = 0; i < a.length; i++) { - var aa = a[i]; - if (aa.substring(0, 3) === 'ng-') continue; + function groupEventedAnimations(element, event, options, animations, fnName) { + var operations = []; + forEach(animations, function(ani) { + var animation = ani[fnName]; + if (!animation) return; - for (var j = 0; j < b.length; j++) { - if (aa === b[j]) { - matches.push(aa); - break; + // note that all of these animations will run in parallel + operations.push(function() { + var runner; + var endProgressCb; + + var resolved = false; + var onAnimationComplete = function(rejected) { + if (!resolved) { + resolved = true; + (endProgressCb || noop)(rejected); + runner.complete(!rejected); } - } - } + }; - return matches.join(' '); - } + runner = new $$AnimateRunner({ + end: function() { + onAnimationComplete(); + }, + cancel: function() { + onAnimationComplete(true); + } + }); - 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; - } - } - } + endProgressCb = executeAnimationFn(animation, element, event, options, function(result) { + var cancelled = result === false; + onAnimationComplete(cancelled); + }); - function beforeStart() { - tempClasses = (tempClasses ? tempClasses + ' ' : '') + NG_ANIMATE_CLASSNAME; - $$jqLite.addClass(element, tempClasses); + return runner; + }); + }); - var prepareClassName = element.data(PREPARE_CLASSES_KEY); - if (prepareClassName) { - $$jqLite.removeClass(element, prepareClassName); - prepareClassName = null; - } - } + return operations; + } - function updateAnimationRunners(animation, newRunner) { - if (animation.from && animation.to) { - update(animation.from.element); - update(animation.to.element); - } else { - update(animation.element); + 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'); } - function update(element) { - var runner = getRunner(element); - if (runner) runner.setHost(newRunner); + if (a) { + operations = operations.concat(a); } - } - - function handleDestroyedElement() { - var runner = getRunner(element); - if (runner && (event !== 'leave' || !options.$$domOperationFired)) { - runner.end(); + if (b) { + operations = operations.concat(b); } } - function close(rejected) { - element.off('$destroy', handleDestroyedElement); - removeRunner(element); - - applyAnimationClasses(element, options); - applyAnimationStyles(element, options); - options.domOperation(); + if (operations.length === 0) return; - if (tempClasses) { - $$jqLite.removeClass(element, tempClasses); + // TODO(matsko): add documentation + return function startAnimation(callback) { + var runners = []; + if (operations.length) { + forEach(operations, function(animateFn) { + runners.push(animateFn()); + }); } - runner.complete(!rejected); - } - }; - }]; - }]; + if (runners.length) { + $$AnimateRunner.all(runners, callback); + } else { + callback(); + } - /** - * @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 - * - * - *
    - *
    - * {{ number }} - *
    - *
    - *
    - * - * 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]; - * }; - * }]); - * - * - * .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; } - * - *
    - */ - var ngAnimateSwapDirective = ['$animate', function ($animate) { - 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) { - $transclude(function (clone, childScope) { - previousElement = clone; - previousScope = childScope; - $animate.enter(clone, null, $element); + return function endFn(reject) { + forEach(runners, function(runner) { + if (reject) { + runner.cancel(); + } else { + runner.end(); + } }); - } - }); + }; + }; } }; - }]; - /** - * @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 AngularJS 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:form#animations form / ngForm} | add and remove ({@link ng.directive:form#css-classes various classes}) | - * | {@link ngAnimate.directive:ngAnimateSwap#animations ngAnimateSwap} | enter and leave | - * | {@link ng.directive:ngClass#animations ngClass / {{class}​}} | add and remove | - * | {@link ng.directive:ngClassEven#animations ngClassEven} | add and remove | - * | {@link ng.directive:ngClassOdd#animations ngClassOdd} | add and remove | - * | {@link ng.directive:ngHide#animations ngHide} | add and remove (the `ng-hide` class) | - * | {@link ng.directive:ngIf#animations ngIf} | enter and leave | - * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave | - * | {@link module:ngMessages#animations ngMessage / ngMessageExp} | enter and leave | - * | {@link module:ngMessages#animations ngMessages} | add and remove (the `ng-active`/`ng-inactive` classes) | - * | {@link ng.directive:ngModel#animations ngModel} | add and remove ({@link ng.directive:ngModel#css-classes various classes}) | - * | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave, and move | - * | {@link ng.directive:ngShow#animations ngShow} | add and remove (the `ng-hide` class) | - * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave | - * | {@link ngRoute.directive:ngView#animations ngView} | enter and leave | - * - * (More information can be found by visiting the documentation associated with each directive.) - * - * For a full breakdown of the steps involved during each animation event, refer to the - * {@link ng.$animate `$animate` API docs}. - * - * ## 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 AngularJS 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 - *
    - * Fade me in out - *
    - * - * - * ``` - * - * Notice the CSS class **fade**? We can now create the CSS transition code that references this class: - * - * ```css - * /* The starting CSS styles for the enter animation */ - * .fade.ng-enter { - * transition:0.5s linear all; - * opacity:0; - * } - * - * /* The finishing CSS styles for the enter animation */ - * .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 - * /* now the element will fade out before it is removed from the DOM */ - * .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 - * /* there is no need to define anything inside of the destination - * CSS class since the keyframe will take charge of the animation */ - * .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 - *
    - * Show and hide me - *
    - * - * - * - * ``` - * - * 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 - *
    - * Highlight this box - *
    - * - * - * - * ``` - * - * 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 { - * /* standard transition code */ - * transition: 1s linear all; - * opacity:0; - * } - * .my-animation.ng-enter-stagger { - * /* this will have a 100ms delay between each successive leave animation */ - * transition-delay: 0.1s; - * - * /* As of 1.4.4, this must always be set: it signals ngAnimate - * to not accidentally inherit a delay property from another CSS class */ - * transition-duration: 0s; - * - * /* if you are using animations instead of transitions you should configure as follows: - * animation-delay: 0.1s; - * animation-duration: 0s; */ - * } - * .my-animation.ng-enter.ng-enter-active { - * /* standard transition styles */ - * 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 - *
    - *
    - *
    - *
    - *
    - * ``` - * - * 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; - * } - * ``` - * - * ### Animating between value changes - * - * Sometimes you need to animate between different expression states, whose values - * don't necessary need to be known or referenced in CSS styles. - * Unless possible with another {@link ngAnimate#directive-support "animation aware" directive}, - * that specific use case can always be covered with {@link ngAnimate.directive:ngAnimateSwap} as - * can be seen in {@link ngAnimate.directive:ngAnimateSwap#examples this example}. - * - * Note that {@link ngAnimate.directive:ngAnimateSwap} is a *structural directive*, which means it - * creates a new instance of the element (including any other/child directives it may have) and - * links it to a new scope every time *swap* happens. In some cases this might not be desirable - * (e.g. for performance reasons, or when you wish to retain internal state on the original - * element instance). - * - * ## 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 - *
    - * {{ item }} - *
    - * ``` - * - * 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 AngularJS - * // 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 - *
    - * this box is moody - *
    - * - * - * - * ``` - * - * ```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 AngularJS, - * 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 - *
    - * Slide in and out - *
    - * ``` - * - * ```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 - * /* the transition tells ngAnimate to make the animation happen */ - * .slide.ng-enter { transition:0.5s linear all; } - * - * /* this extra CSS class will be absorbed into the transition - * since the $animateCss code is adding the class */ - * .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 - * - *
    - *
    - * - * - * - * - * - * - * - * - * ``` - * - * 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 { - * /* this animation will last for 1 second since there are - * two phases to the animation (an `in` and an `out` phase) */ - * 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; - * - * /* the scale will be applied during the out animation, - * but will be animated away when the in animation runs */ - * transform: scale(1.2); - * } - * - * .banner.ng-anchor-in { - * transition: 1s linear all; - * } - * ``` - * - * - * - * - * ### Anchoring Demo - * - - - Home -
    -
    -
    -
    -
    - - 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; - }]); - - -

    Welcome to the home page

    -

    Please click on an element

    - - {{ record.title }} - -
    - -
    - {{ profile.title }} -
    -
    - - .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; + 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; } - .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; - } - -
    - * - * ### 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 `` 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 AngularJS 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 - * Hi there - * ``` - * - * ```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 - * /* normally we would create a CSS class to reference on the element */ - * 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 AngularJS 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 AngularJS 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 AngularJS 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.7.5' }).directive('ngAnimateSwap', ngAnimateSwapDirective).directive('ngAnimateChildren', $$AnimateChildrenDirective).factory('$$rAFScheduler', $$rAFSchedulerFactory).provider('$$animateQueue', $$AnimateQueueProvider).provider('$$animateCache', $$AnimateCacheProvider).provider('$$animation', $$AnimationProvider).provider('$animateCss', $AnimateCssProvider).provider('$$animateCssDriver', $$AnimateCssDriverProvider).provider('$$animateJs', $$AnimateJsProvider).provider('$$animateJsDriver', $$AnimateJsDriverProvider); -})(window, window.angular); + } + return matches; + } + }]; +}]; -},{}],314:[function(require,module,exports){ -'use strict'; +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; -require('./angular-animate'); -module.exports = 'ngAnimate'; + return { + start: function() { + var animationRunners = []; -},{"./angular-animate":313}],315:[function(require,module,exports){ -'use strict'; + if (fromAnimation) { + animationRunners.push(fromAnimation.start()); + } -/** - * @license AngularJS v1.7.5 - * (c) 2010-2018 Google, Inc. http://angularjs.org - * License: MIT - */ -(function (window, angular) { - 'use strict'; + if (toAnimation) { + animationRunners.push(toAnimation.start()); + } - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * 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 isArray; - var isDefined; - var lowercase; - var noop; - var nodeContains; - var htmlParser; - var htmlSanitizeWriter; + $$AnimateRunner.all(animationRunners, done); - /** - * @ngdoc module - * @name ngSanitize - * @description - * - * The `ngSanitize` module provides functionality to sanitize HTML. - * - * See {@link ngSanitize.$sanitize `$sanitize`} for usage. - */ + var runner = new $$AnimateRunner({ + end: endFnFactory(), + cancel: endFnFactory() + }); - /** - * @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 a 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 $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 - - - -
    - Snippet: - - - - - - - - - - - - - - - - - - - - - - - - - -
    DirectiveHowSourceRendered
    ng-bind-htmlAutomatically uses $sanitize
    <div ng-bind-html="snippet">
    </div>
    ng-bind-htmlBypass $sanitize by explicitly trusting the dangerous value -
    <div ng-bind-html="deliberatelyTrustDangerousSnippet()">
    -  </div>
    -
    ng-bindAutomatically escapes
    <div ng-bind="snippet">
    </div>
    -
    -
    - - it('should sanitize the html snippet by default', function() { - expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')). - toBe('

    an html\nclick here\nsnippet

    '); - }); - - it('should inline raw snippet if bound to a trusted value', function() { - expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')). - toBe("

    an html\n" + - "click here\n" + - "snippet

    "); - }); - - it('should escape snippet without any filter', function() { - expect(element(by.css('#bind-default div')).getAttribute('innerHTML')). - toBe("<p style=\"color:blue\">an html\n" + - "<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" + - "snippet</p>"); - }); - - it('should update', function() { - element(by.model('snippet')).clear(); - element(by.model('snippet')).sendKeys('new text'); - expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')). - toBe('new text'); - expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')).toBe( - 'new text'); - expect(element(by.css('#bind-default div')).getAttribute('innerHTML')).toBe( - "new <b onclick=\"alert(1)\">text</b>"); - }); -
    -
    - */ + return runner; - /** - * @ngdoc provider - * @name $sanitizeProvider - * @this - * - * @description - * Creates and configures {@link $sanitize} instance. - */ - function $SanitizeProvider() { - var hasBeenInstantiated = false; - var svgEnabled = false; - - this.$get = ['$$sanitizeUri', function ($$sanitizeUri) { - hasBeenInstantiated = true; - 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(''); - }; - }]; + function endFnFactory() { + return function() { + forEach(animationRunners, function(runner) { + // at this point we cannot cancel animations for groups just yet. 1.5+ + runner.end(); + }); + }; + } - /** - * @ngdoc method - * @name $sanitizeProvider#enableSvg - * @kind function - * - * @description - * Enables a subset of svg to be supported by the sanitizer. - * - *
    - *

    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.

    - * - *

    To protect against these, explicitly setup `overflow: hidden` css rule for all potential svg - * tags within the sanitized content:

    - * - *
    - * - *
    
    -     *   .rootOfTheIncludedContent svg {
    -     *     overflow: hidden !important;
    -     *   }
    -     *   
    - *
    - * - * @param {boolean=} flag Enable or disable SVG support in the sanitizer. - * @returns {boolean|$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; + function done(status) { + runner.complete(status); + } + } + }; } else { - return svgEnabled; - } - }; - - /** - * @ngdoc method - * @name $sanitizeProvider#addValidElements - * @kind function - * - * @description - * Extends the built-in lists of valid HTML/SVG elements, i.e. elements that are considered safe - * and are not stripped off during sanitization. You can extend the following lists of elements: - * - * - `htmlElements`: A list of elements (tag names) to extend the current list of safe HTML - * elements. HTML elements considered safe will not be removed during sanitization. All other - * elements will be stripped off. - * - * - `htmlVoidElements`: This is similar to `htmlElements`, but marks the elements as - * "void elements" (similar to HTML - * [void elements](https://rawgit.com/w3c/html/html5.1-2/single-page.html#void-elements)). These - * elements have no end tag and cannot have content. - * - * - `svgElements`: This is similar to `htmlElements`, but for SVG elements. This list is only - * taken into account if SVG is {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for - * `$sanitize`. - * - *
    - * This method must be called during the {@link angular.Module#config config} phase. Once the - * `$sanitize` service has been instantiated, this method has no effect. - *
    - * - *
    - * Keep in mind that extending the built-in lists of elements may expose your app to XSS or - * other vulnerabilities. Be very mindful of the elements you add. - *
    - * - * @param {Array|Object} elements - A list of valid HTML elements or an object with one or - * more of the following properties: - * - **htmlElements** - `{Array}` - A list of elements to extend the current list of - * HTML elements. - * - **htmlVoidElements** - `{Array}` - A list of elements to extend the current list of - * void HTML elements; i.e. elements that do not have an end tag. - * - **svgElements** - `{Array}` - A list of elements to extend the current list of SVG - * elements. The list of SVG elements is only taken into account if SVG is - * {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for `$sanitize`. - * - * Passing an array (`[...]`) is equivalent to passing `{htmlElements: [...]}`. - * - * @return {$sanitizeProvider} Returns self for chaining. - */ - this.addValidElements = function (elements) { - if (!hasBeenInstantiated) { - if (isArray(elements)) { - elements = { htmlElements: elements }; - } - - addElementsTo(svgElements, elements.svgElements); - addElementsTo(voidElements, elements.htmlVoidElements); - addElementsTo(validElements, elements.htmlVoidElements); - addElementsTo(validElements, elements.htmlElements); - } - - return this; - }; - - /** - * @ngdoc method - * @name $sanitizeProvider#addValidAttrs - * @kind function - * - * @description - * Extends the built-in list of valid attributes, i.e. attributes that are considered safe and are - * not stripped off during sanitization. - * - * **Note**: - * The new attributes will not be treated as URI attributes, which means their values will not be - * sanitized as URIs using `$compileProvider`'s - * {@link ng.$compileProvider#aHrefSanitizationWhitelist aHrefSanitizationWhitelist} and - * {@link ng.$compileProvider#imgSrcSanitizationWhitelist imgSrcSanitizationWhitelist}. - * - *
    - * This method must be called during the {@link angular.Module#config config} phase. Once the - * `$sanitize` service has been instantiated, this method has no effect. - *
    - * - *
    - * Keep in mind that extending the built-in list of attributes may expose your app to XSS or - * other vulnerabilities. Be very mindful of the attributes you add. - *
    - * - * @param {Array} attrs - A list of valid attributes. - * - * @returns {$sanitizeProvider} Returns self for chaining. - */ - this.addValidAttrs = function (attrs) { - if (!hasBeenInstantiated) { - extend(validAttrs, arrayToMap(attrs, true)); + return prepareAnimation(animationDetails); } - return this; }; - ////////////////////////////////////////////////////////////////////////////////////////////////// - // Private stuff - ////////////////////////////////////////////////////////////////////////////////////////////////// + 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); + } + }]; +}]; - bind = angular.bind; - extend = angular.extend; - forEach = angular.forEach; - isArray = angular.isArray; - isDefined = angular.isDefined; - lowercase = angular.$$lowercase; - noop = angular.noop; +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 = ' '; - htmlParser = htmlParserImpl; - htmlSanitizeWriter = htmlSanitizeWriterImpl; + var rules = this.rules = { + skip: [], + cancel: [], + join: [] + }; - nodeContains = window.Node.prototype.contains || /** @this */function (arg) { - // eslint-disable-next-line no-bitwise - return !!(this.compareDocumentPosition(arg) & 16); + function getEventData(options) { + return { + addClass: options.addClass, + removeClass: options.removeClass, + from: options.from, + to: options.to }; + } - // 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; + function makeTruthyCssClassMap(classString) { + if (!classString) { + return null; + } - // Good source of info about elements and attributes - // http://dev.w3.org/html5/spec/Overview.html#semantics - // http://simon.html5.org/html-elements + var keys = classString.split(ONE_SPACE); + var map = Object.create(null); - // Safe Void Elements - HTML5 - // http://dev.w3.org/html5/spec/Overview.html#void-elements - var voidElements = stringToMap('area,br,col,hr,img,wbr'); + forEach(keys, function(key) { + map[key] = true; + }); + return map; + } - // Elements that you can, intentionally, leave open (and which close themselves) - // http://dev.w3.org/html5/spec/Overview.html#optional-tags - var optionalEndTagBlockElements = stringToMap('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr'), - optionalEndTagInlineElements = stringToMap('rp,rt'), - optionalEndTagElements = extend({}, optionalEndTagInlineElements, optionalEndTagBlockElements); + function hasMatchingClasses(newClassString, currentClassString) { + if (newClassString && currentClassString) { + var currentClassMap = makeTruthyCssClassMap(currentClassString); + return newClassString.split(ONE_SPACE).some(function(className) { + return currentClassMap[className]; + }); + } + } - // Safe Block Elements - HTML5 - var blockElements = extend({}, optionalEndTagBlockElements, stringToMap('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')); + function isAllowed(ruleType, currentAnimation, previousAnimation) { + return rules[ruleType].some(function(fn) { + return fn(currentAnimation, previousAnimation); + }); + } - // Inline Elements - HTML5 - var inlineElements = extend({}, optionalEndTagInlineElements, stringToMap('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')); + function hasAnimationClasses(animation, and) { + var a = (animation.addClass || '').length > 0; + var b = (animation.removeClass || '').length > 0; + return and ? a && b : a || b; + } - // 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 = stringToMap('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'); + 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); + }); - // Blocked Elements (will be stripped) - var blockedElements = stringToMap('script,style'); + 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); + }); - var validElements = extend({}, voidElements, blockElements, inlineElements, optionalEndTagElements); + 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; + }); - //Attributes that have href and hence need to be sanitized - var uriAttrs = stringToMap('background,cite,href,longdesc,src,xlink:href,xml:base'); + 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; + }); - var htmlAttrs = stringToMap('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'); + rules.cancel.push(function(newAnimation, currentAnimation) { + // there can never be two structural animations running at the same time + return currentAnimation.structural && newAnimation.structural; + }); - // SVG attributes (without "id" and "name" attributes) - // https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes - var svgAttrs = stringToMap('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); + 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; + }); - var validAttrs = extend({}, uriAttrs, svgAttrs, htmlAttrs); + 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 - function stringToMap(str, lowercaseKeys) { - return arrayToMap(str.split(','), lowercaseKeys); - } + if (currentAnimation.structural) return false; - function arrayToMap(items, lowercaseKeys) { - var obj = {}, - i; - for (i = 0; i < items.length; i++) { - obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true; - } - return obj; - } + var nA = newAnimation.addClass; + var nR = newAnimation.removeClass; + var cA = currentAnimation.addClass; + var cR = currentAnimation.removeClass; - function addElementsTo(elementsMap, newElements) { - if (newElements && newElements.length) { - extend(elementsMap, arrayToMap(newElements)); - } + // early detection to save the global CPU shortage :) + if ((isUndefined(nA) && isUndefined(nR)) || (isUndefined(cA) && isUndefined(cR))) { + return false; } - /** - * 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'); + return hasMatchingClasses(nA, cR) || hasMatchingClasses(nR, cA); + }); - // Check for the Safari 10.1 bug - which allows JS to run inside the SVG G element - inertBodyElement.innerHTML = ''; - if (!inertBodyElement.querySelector('svg')) { - return getInertBodyElement_XHR; - } else { - // Check for the Firefox bug - which prevents the inner img JS from being sanitized - inertBodyElement.innerHTML = '

    '; - if (inertBodyElement.querySelector('svg img')) { - return getInertBodyElement_DOMParser; + 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 removeFromDisabledElementsLookup(evt) { + disabledElementsLookup.delete(evt.target); + } + + 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 { - return getInertBodyElement_InertDocument; + $rootScope.$$postDigest(function() { + postDigestCalled = true; + fn(); + }); } - } + }; + } - 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 `` do not get hoisted to the `` tag. - html = '' + 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; - } + // 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(); - 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 `` do not get hoisted to the `` tag. - html = '' + html; - try { - var body = new window.DOMParser().parseFromString(html, 'text/html').body; - body.firstChild.remove(); - return body; - } catch (e) { - return undefined; - } + // 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; + } + }); + }); } + ); - function getInertBodyElement_InertDocument(html) { - inertBodyElement.innerHTML = html; - - // Support: IE 9-11 only - // strip custom-namespaced attributes on IE<=11 - if (document.documentMode) { - stripCustomNsAttrs(inertBodyElement); - } + var callbackRegistry = Object.create(null); - return inertBodyElement; - } - }(window, window.document); + // 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() { return true; }; - /** - * @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 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 inertBodyElement = getInertBodyElement(html); - if (!inertBodyElement) return ''; + var applyAnimationClasses = applyAnimationClassesFactory($$jqLite); - //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; - } + function normalizeAnimationDetails(element, animation) { + return mergeAnimationDetails(element, animation, {}); + } - 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()); - } - } + // 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); } - } - node = nextNode; + }); } - while (node = inertBodyElement.firstChild) { - inertBodyElement.removeChild(node); - } + return matches; } - function attrToMap(attrs) { - var map = {}; - for (var i = 0, ii = attrs.length; i < ii; i++) { - var attr = attrs[i]; - map[attr.name] = attr.value; + 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); } - 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, '&').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, '>'); - } + var $animate = { + on: function(event, container, callback) { + var node = extractElementNode(container); + callbackRegistry[event] = callbackRegistry[event] || []; + callbackRegistry[event].push({ + node: node, + callback: callback + }); - /** - * 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(''); - } - // eslint-disable-next-line eqeqeq - if (tag == ignoreCurrentElement) { - ignoreCurrentElement = false; - } - }, - chars: function chars(_chars) { - if (!ignoreCurrentElement) { - out(encodeEntities(_chars)); + // 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); } - } - }; - } + }); + }, - /** - * 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--; - } + off: function(event, container, callback) { + if (arguments.length === 1 && !isString(arguments[0])) { + container = arguments[0]; + for (var eventType in callbackRegistry) { + callbackRegistry[eventType] = filterFromRegistry(callbackRegistry[eventType], container); } - } - var nextNode = node.firstChild; - if (nextNode) { - stripCustomNsAttrs(nextNode); + return; } - 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; - } - } + var entries = callbackRegistry[event]; + if (!entries) return; - function sanitizeText(chars) { - var buf = []; - var writer = htmlSanitizeWriter(buf, noop); - writer.chars(chars); - return buf.join(''); - } + callbackRegistry[event] = arguments.length === 1 + ? null + : filterFromRegistry(entries, container, callback); + }, - // define ngSanitize module and register $sanitize service - angular.module('ngSanitize', []).provider('$sanitize', $SanitizeProvider).info({ angularVersion: '1.7.5' }); + pin: function(element, parentElement) { + assertArg(isElement(element), 'element', 'not an element'); + assertArg(isElement(parentElement), 'parentElement', 'not an element'); + element.data(NG_ANIMATE_PIN_DATA, parentElement); + }, - /** - * @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 - - * - * @example - - -

    - Snippet: - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FilterSourceRendered
    linky filter -
    <div ng-bind-html="snippet | linky">
    </div>
    -
    -
    -
    linky target -
    <div ng-bind-html="snippetWithSingleURL | linky:'_blank'">
    </div>
    -
    -
    -
    linky custom attributes -
    <div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}">
    </div>
    -
    -
    -
    no filter
    <div ng-bind="snippet">
    </div>
    - - - 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/'; - }]); - - - 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'); - }); - - - */ - 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 {}; - }; + push: function(element, event, options, domOperation) { + options = options || {}; + options.domOperation = domOperation; + return queueAnimation(element, event, options); + }, - 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)); - } + // this method has four signatures: + // () - global getter + // (bool) - global setter + // (element) - element getter + // (element, bool) - element setter + enabled: function(element, bool) { + var argCount = arguments.length; + + if (argCount === 0) { + // () - Global getter + bool = !!animationsEnabled; + } else { + var hasElement = isElement(element); - function addLink(url, text) { - var key, - linkAttributes = attributesFn(url); - html.push(''); - addText(text); - html.push(''); + return bool; } }; - }]); -})(window, window.angular); -},{}],316:[function(require,module,exports){ -'use strict'; - -require('./angular-sanitize'); -module.exports = 'ngSanitize'; + return $animate; -},{"./angular-sanitize":315}],317:[function(require,module,exports){ -'use strict'; + 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 _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 element = stripCommentsFromElement(originalElement); + var node = getDomNode(element); + var parentNode = node && node.parentNode; -/*! - * angular-translate - v2.18.1 - 2018-05-19 - * - * Copyright (c) 2018 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 () { + options = prepareAnimationOptions(options); - $translateMissingTranslationHandlerLog.$inject = ['$log']; - angular.module('pascalprecht.translate') + // we create a fake runner with a working promise. + // These methods will become available after the digest has passed + var runner = new $$AnimateRunner(); - /** - * @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); + // this is used to trigger callbacks in postDigest mode + var runInNextPostDigestOrNow = postDigestTaskFactory(); - function $translateMissingTranslationHandlerLog($log) { + if (isArray(options.addClass)) { + options.addClass = options.addClass.join(' '); + } - 'use strict'; + if (options.addClass && !isString(options.addClass)) { + options.addClass = null; + } - return function (translationId) { - $log.warn('Translation for ' + translationId + ' doesn\'t exist'); - }; - } + if (isArray(options.removeClass)) { + options.removeClass = options.removeClass.join(' '); + } - $translateMissingTranslationHandlerLog.displayName = '$translateMissingTranslationHandlerLog'; - return 'pascalprecht.translate'; -}); + if (options.removeClass && !isString(options.removeClass)) { + options.removeClass = null; + } -},{}],318:[function(require,module,exports){ -'use strict'; + if (options.from && !isObject(options.from)) { + options.from = null; + } -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; }; + if (options.to && !isObject(options.to)) { + options.to = null; + } -/*! - * angular-translate - v2.18.1 - 2018-05-19 - * - * Copyright (c) 2018 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 () { + // 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; + } - /** - * @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) { + var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0; - 'use strict'; + var documentHidden = $$isDocumentHidden(); - var key = $translate.storageKey(), - storage = $translate.storage(); + // 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; - 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()); + // 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); } - }; - fallbackFromIncorrectStorageValue.displayName = 'fallbackFromIncorrectStorageValue'; + if (skipAnimations) { + // Callbacks should fire even if the document is hidden (regression fix for issue #14120) + if (documentHidden) notifyProgress(runner, event, 'start', getEventData(options)); + close(); + if (documentHidden) notifyProgress(runner, event, 'close', getEventData(options)); + return runner; + } - if (storage) { - if (!storage.get(key)) { - fallbackFromIncorrectStorageValue(); - } else { - $translate.use(storage.get(key))['catch'](fallbackFromIncorrectStorageValue); + if (isStructural) { + closeChildAnimations(node); } - } else if (angular.isString($translate.preferredLanguage())) { - $translate.use($translate.preferredLanguage()); - } - } - runTranslate.displayName = 'runTranslate'; + var newAnimation = { + structural: isStructural, + element: element, + event: event, + addClass: options.addClass, + removeClass: options.removeClass, + close: close, + options: options, + runner: runner + }; - /** - * @ngdoc object - * @name pascalprecht.translate.$translateSanitizationProvider - * - * @description - * - * Configurations for $translateSanitization - */ - angular.module('pascalprecht.translate').provider('$translateSanitization', $translateSanitizationProvider); + 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($$jqLite, element, isStructural ? event : null, options); - function $translateSanitizationProvider() { + event = newAnimation.event = existingAnimation.event; + options = mergeAnimationDetails(element, existingAnimation, newAnimation); - 'use strict'; + //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); + } - var $sanitize, - $sce, - currentStrategy = null, - // TODO change to either 'sanitize', 'escape' or ['sanitize', 'escapeParameters'] in 3.0. - hasConfiguredStrategy = false, - hasShownNoStrategyConfiguredWarning = false, - strategies; + // 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); + } - /** - * 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} - */ + if (!isValidAnimation) { + close(); + clearElementAnimationState(node); + return runner; + } - /** - * @ngdoc property - * @name strategies - * @propertyOf pascalprecht.translate.$translateSanitizationProvider - * - * @description - * Following strategies are built-in: - *
    - *
    sanitize
    - *
    Sanitizes HTML in the translation text using $sanitize
    - *
    escape
    - *
    Escapes HTML in the translation
    - *
    sanitizeParameters
    - *
    Sanitizes HTML in the values of the interpolation parameters using $sanitize
    - *
    escapeParameters
    - *
    Escapes HTML in the values of the interpolation parameters
    - *
    escaped
    - *
    Support legacy strategy name 'escaped' for backwards compatibility (will be removed in 3.0)
    - *
    - * - */ + // 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); + } - 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); + // 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; } - 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; - }; + // 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; - /** - * @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; - }; + markElementAnimationState(node, RUNNING_STATE); + var realRunner = $$animation(element, event, animationDetails.options); - /** - * @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; - }; + // this will update the runner's flow-control events based on + // the `realRunner` object. + runner.setHost(realRunner); + notifyProgress(runner, event, 'start', getEventData(options)); - /** - * @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); + realRunner.done(function(status) { + close(!status); + var animationDetails = activeAnimationsLookup.get(node); + if (animationDetails && animationDetails.counter === counter) { + clearElementAnimationState(node); + } + notifyProgress(runner, event, 'close', getEventData(options)); + }); + }); + + 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 { - throw new Error('pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: \'' + selectedStrategy + '\''); + cleanupEventListeners(phase, node); } }); - return value; - }; + runner.progress(event, phase, data); + } - // 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; + 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; + } } - }; + }); + } - if ($injector.has('$sanitize')) { - $sanitize = $injector.get('$sanitize'); - } - if ($injector.has('$sce')) { - $sce = $injector.get('$sce'); + 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); } - 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), + while (parentNode) { + if (!rootNodeDetected) { + // AngularJS 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); + } - /** - * @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 (parentNode.nodeType !== ELEMENT_NODE) { + // no point in inspecting the #document element + break; + } - if (!strategy && strategy !== null) { - strategy = currentStrategy; - } + 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 (!strategy) { - return value; + 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 (!context) { - context = 'service'; + if (isUndefined(animateChildren) || animateChildren === true) { + var value = jqLite.data(parentNode, NG_ANIMATE_CHILDREN_DATA); + if (isDefined(value)) { + animateChildren = value; } - - var selectedStrategies = angular.isArray(strategy) ? strategy : [strategy]; - return applyStrategies(value, mode, context, selectedStrategies); } - }; - }]; - - var htmlEscapeValue = function htmlEscapeValue(value) { - var element = angular.element('
    '); - 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); - }; + // there is no need to continue traversing at this point + if (parentAnimationDetected && animateChildren === false) break; - var htmlTrustValue = function htmlTrustValue(value) { - if (!$sce) { - throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sce service.'); - } - return $sce.trustAsHtml(value); - }; + 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); + } - var mapInterpolationParameters = function mapInterpolationParameters(value, iteratee, stack) { - if (angular.isDate(value)) { - return value; - } else if (angular.isObject(value)) { - var result = angular.isArray(value) ? [] : {}; + 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 (!stack) { - stack = []; - } else { - if (stack.indexOf(value) > -1) { - throw new Error('pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object'); + 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; } } - stack.push(value); - angular.forEach(value, function (propertyValue, propertyKey) { + parentNode = parentNode.parentNode; + } - /* Skipping function properties. */ - if (angular.isFunction(propertyValue)) { - return; - } + var allowAnimation = (!parentAnimationDetected || animateChildren) && elementDisabled !== true; + return allowAnimation && rootNodeDetected && bodyNodeDetected; + } - result[propertyKey] = mapInterpolationParameters(propertyValue, iteratee, stack); - }); - stack.splice(-1, 1); // remove last + function markElementAnimationState(node, state, details) { + details = details || {}; + details.state = state; - 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; - } - }; - } + node.setAttribute(NG_ANIMATE_ATTR_NAME, state); - /** - * @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); + var oldValue = activeAnimationsLookup.get(node); + var newValue = oldValue + ? extend(oldValue, details) + : details; + activeAnimationsLookup.set(node, newValue); + } + }]; +}]; - function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvider, pascalprechtTranslateOverrider) { +/** @this */ +var $$AnimateCacheProvider = function() { - 'use strict'; + var KEY = '$$ngAnimateParentKey'; + var parentCounter = 0; + var cache = Object.create(null); - 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; + this.$get = [function() { + return { + cacheKey: function(node, method, addClass, removeClass) { + var parentNode = node.parentNode; + var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter); + var parts = [parentID, method, node.getAttribute('class')]; + if (addClass) { + parts.push(addClass); + } + if (removeClass) { + parts.push(removeClass); + } + return parts.join(' '); }, - 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; - } + containsCachedAnimationWithoutDuration: function(key) { + var entry = cache[key]; - return parts.join('-'); + // nothing cached, so go ahead and animate + // otherwise it should be a valid animation + return (entry && !entry.isValid) || false; }, - 'iso639-1': function iso6391(tag) { - var temp = (tag || '').split('_').join('-'); - var parts = temp.split('-'); - return parts[0].toLowerCase(); - } - }; - var version = '2.18.1'; + flush: function() { + cache = Object.create(null); + }, - // tries to determine the browsers language - var getFirstBrowserLanguage = function getFirstBrowserLanguage() { + count: function(key) { + var entry = cache[key]; + return entry ? entry.total : 0; + }, - // internal purpose only - if (angular.isFunction(pascalprechtTranslateOverrider.getLocale)) { - return pascalprechtTranslateOverrider.getLocale(); - } + get: function(key) { + var entry = cache[key]; + return entry && entry.value; + }, - 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; - } + put: function(key, value, isValid) { + if (!cache[key]) { + cache[key] = { total: 1, value: value, isValid: isValid }; + } else { + cache[key].total++; + cache[key].value = value; } } + }; + }]; +}; - // 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; - } - } +/* exported $$AnimationProvider */ - return null; - }; - getFirstBrowserLanguage.displayName = 'angular-translate/service: getFirstBrowserLanguage'; +var $$AnimationProvider = ['$animateProvider', /** @this */ function($animateProvider) { + var NG_ANIMATE_REF_ATTR = 'ng-animate-ref'; - // 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'; + var drivers = this.drivers = []; - /** - * @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; - }; + var RUNNER_STORAGE_KEY = '$$animationRunner'; + var PREPARE_CLASSES_KEY = '$$animatePrepareClasses'; - /** - * @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, ''); - }; + function setRunner(element, runner) { + element.data(RUNNER_STORAGE_KEY, runner); + } - /** - * @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; - }; + function removeRunner(element) { + element.removeData(RUNNER_STORAGE_KEY); + } - var negotiateLocale = function negotiateLocale(preferred) { - if (!preferred) { - return; - } + function getRunner(element) { + return element.data(RUNNER_STORAGE_KEY); + } - var avail = [], - locale = lowercase(preferred), - i = 0, - n = $availableLanguageKeys.length; + this.$get = ['$$jqLite', '$rootScope', '$injector', '$$AnimateRunner', '$$Map', '$$rAFScheduler', '$$animateCache', + function($$jqLite, $rootScope, $injector, $$AnimateRunner, $$Map, $$rAFScheduler, $$animateCache) { - for (; i < n; i++) { - avail.push(lowercase($availableLanguageKeys[i])); + 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, + element: animation.element, + fn: animation.fn, + children: [] + }); } - // Check for an exact match in our list of available keys - i = indexOf(avail, locale); - if (i > -1) { - return $availableLanguageKeys[i]; + for (i = 0; i < animations.length; i++) { + processNode(animations[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); + return flatten(tree); - 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; - } + 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; } - } - - // Check for a language code without region - var parts = preferred.split('_'); - if (parts.length > 1 && indexOf(avail, lowercase(parts[0])) > -1) { - return parts[0]; + (parentEntry || tree).children.push(entry); + return entry; } - // If everything fails, return undefined. - return; - }; + function flatten(tree) { + var result = []; + var queue = []; + var i; - /** - * @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. - * - *
    -     *  // register translation table for language: 'de_DE'
    -     *  $translateProvider.translations('de_DE', {
    -     *    'GREETING': 'Hallo Welt!'
    -     *  });
    -     *
    -     *  // register another one
    -     *  $translateProvider.translations('en_US', {
    -     *    'GREETING': 'Hello world!'
    -     *  });
    -     * 
    - * - * 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) { + for (i = 0; i < tree.children.length; i++) { + queue.push(tree.children[i]); + } - if (!langKey && !translationTable) { - return $translationTable; - } + var remainingLevelEntries = queue.length; + var nextLevelEntries = 0; + var row = []; - if (langKey && !translationTable) { - if (angular.isString(langKey)) { - return $translationTable[langKey]; + 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); + entry.children.forEach(function(childEntry) { + nextLevelEntries++; + queue.push(childEntry); + }); + remainingLevelEntries--; } - } else { - if (!angular.isObject($translationTable[langKey])) { - $translationTable[langKey] = {}; + + if (row.length) { + result.push(row); } - angular.extend($translationTable[langKey], flatObject(translationTable)); + + return result; } - return this; - }; + } - this.translations = translations; + // 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; - /** - * @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; - }; + // 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() { close(); }, + cancel: function() { close(true); } + }); - /** - * @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; + if (!drivers.length) { + close(); + return runner; } - $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 = []; + var classes = mergeClasses(element.attr('class'), mergeClasses(options.addClass, options.removeClass)); + var tempClasses = options.tempClasses; + if (tempClasses) { + classes += ' ' + tempClasses; + options.tempClasses = null; } - if (!result) { - result = {}; + + if (isStructural) { + element.data(PREPARE_CLASSES_KEY, 'ng-' + event + PREPARE_CLASS_SUFFIX); } - 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; + + setRunner(element, runner); + + 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(); } - 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: - *
    -     *  app.config(function ($translateProvider) {
    -     *    $translateProvider.useMissingTranslationHandler('customHandler');
    -     *  });
    -     *
    -     *  app.factory('customHandler', function (dep1, dep2) {
    -     *    return function (translationId) {
    -     *      // something with translationId and dep1 and dep2
    -     *    };
    -     *  });
    -     * 
    - * - * @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: - *
    -     *  app.config(function ($translateProvider) {
    -     *    $translateProvider.usePostCompiling(true);
    -     *  });
    -     * 
    - * - * @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: - *
    -     *  app.config(function ($translateProvider) {
    -     *    $translateProvider.forceAsyncReload(true);
    -     *  });
    -     * 
    - * - * @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()}. - * - *
    -     * $translateProvider
    -     *   .uniformLanguageTag('bcp47')
    -     *   .determinePreferredLanguage()
    -     * 
    - * - * 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; - }; + // now any future animations will be in another postDigest + animationQueue.length = 0; - /** - * @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: - *
    -     *  app.config(function ($translateProvider) {
    -     *    $translateProvider.keepContent(true);
    -     *  });
    -     * 
    - * - * @param {boolean} value - valid values are true or false - */ - this.keepContent = function (value) { - $keepContent = !!value; - return this; - }; + var groupedAnimations = groupAnimations(animations); + var toBeSortedAnimations = []; - /** - * @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. - * - *
    -     *  $translate('HEADLINE_TEXT').then(function (translation) {
    -     *    $scope.translatedText = translation;
    -     *  });
    -     * 
    - * - * @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); - } + forEach(groupedAnimations, function(animationEntry) { + var element = animationEntry.from ? animationEntry.from.element : animationEntry.element; + var extraClasses = options.addClass; - var deferred = $q.defer(); + extraClasses = (extraClasses ? (extraClasses + ' ') : '') + NG_ANIMATE_CLASSNAME; + var cacheKey = $$animateCache.cacheKey(element[0], animationEntry.event, extraClasses, options.removeClass); - // trim off any whitespace - if (translationId) { - translationId = trim.apply(translationId); - } + toBeSortedAnimations.push({ + element: element, + domNode: getDomNode(element), + fn: function triggerAnimationStart() { + var startAnimationFn, closeFn = animationEntry.close; - var promiseToWaitFor = function () { - var promise = langPromises[uses] || langPromises[$preferredLanguage]; + // in the event that we've cached the animation status for this element + // and it's in fact an invalid animation (something that has duration = 0) + // then we should skip all the heavy work from here on + if ($$animateCache.containsCachedAnimationWithoutDuration(cacheKey)) { + closeFn(); + return; + } - fallbackIndex = 0; + // 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(); + + // 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 ($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); + if (!startAnimationFn) { + closeFn(); + } else { + var animationRunner = startAnimationFn(); + animationRunner.done(function(status) { + closeFn(!status); + }); + updateAnimationRunners(animationEntry, animationRunner); } } - } - 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; + // 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. + var finalAnimations = sortAnimations(toBeSortedAnimations); + for (var i = 0; i < finalAnimations.length; i++) { + var innerArray = finalAnimations[i]; + for (var j = 0; j < innerArray.length; j++) { + var entry = innerArray[j]; + var element = entry.element; + + // the RAFScheduler code only uses functions + finalAnimations[i][j] = entry.fn; + + // the first row of elements shouldn't have a prepare-class added to them + // since the elements are at the top of the animation hierarchy and they + // will be applied without a RAF having to pass... + if (i === 0) { + element.removeData(PREPARE_CLASSES_KEY); + continue; } - 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 prepareClassName = element.data(PREPARE_CLASSES_KEY); + if (prepareClassName) { + $$jqLite.addClass(element, prepareClassName); + } + } } - 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); - } + $$rAFScheduler(finalAnimations); + }); - var loaderOptions = angular.extend({}, $loaderOptions, { - key: key, - $http: angular.extend({}, { - cache: cache - }, $loaderOptions.$http) + 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); + } }); - - 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)); + 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 { - angular.extend(translationTable, flatObject(data)); + preparedAnimations.push(animation); } - 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; - }; + 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; + } - if ($storageFactory) { - Storage = $injector.get($storageFactory); + 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() { + fromAnimation.beforeStart(); + toAnimation.beforeStart(); + }, + close: function() { + fromAnimation.close(); + toAnimation.close(); + }, + classes: cssClassesIntersection(fromAnimation.classes, toAnimation.classes), + from: fromAnimation, + to: toAnimation, + anchors: [] // TODO(matsko): change to reference nodes + }; - if (!Storage.get || !Storage.put) { - throw new Error('Couldn\'t use storage \'' + $storageFactory + '\', missing get() or put() method!'); - } - } + // 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); + } + } - // 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'; + anchorGroups[lookupKey].anchors.push({ + 'out': from.element, 'in': to.element + }); + }); - angular.forEach($interpolatorFactories, eachInterpolationFactory); + return preparedAnimations; } - /** - * @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; - }; + function cssClassesIntersection(a,b) { + a = a.split(' '); + b = b.split(' '); + var matches = []; - /** - * @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); + for (var i = 0; i < a.length; i++) { + var aa = a[i]; + if (aa.substring(0,3) === 'ng-') continue; - deferred.resolve(interpolatedValue); + for (var j = 0; j < b.length; j++) { + if (aa === b[j]) { + matches.push(aa); + break; } - 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]; + return matches.join(' '); + } - 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); + 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; } - Interpolator.setLocale($uses); } + } - return result; - }; + function beforeStart() { + tempClasses = (tempClasses ? (tempClasses + ' ') : '') + NG_ANIMATE_CLASSNAME; + $$jqLite.addClass(element, tempClasses); - /** - * @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; + var prepareClassName = element.data(PREPARE_CLASSES_KEY); + if (prepareClassName) { + $$jqLite.removeClass(element, prepareClassName); + prepareClassName = null; } - }; - - /** - * @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); - }); + function updateAnimationRunners(animation, newRunner) { + if (animation.from && animation.to) { + update(animation.from.element); + update(animation.to.element); } 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); + update(animation.element); + } - // 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)); - } - } + function update(element) { + var runner = getRunner(element); + if (runner) runner.setHost(newRunner); } - 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); - } + function handleDestroyedElement() { + var runner = getRunner(element); + if (runner && (event !== 'leave' || !options.$$domOperationFired)) { + runner.end(); } - 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); - }; + function close(rejected) { + element.off('$destroy', handleDestroyedElement); + removeRunner(element); - /** - * 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); - }; + applyAnimationClasses(element, options); + applyAnimationStyles(element, options); + options.domOperation(); - var determineTranslation = function determineTranslation(translationId, interpolateParams, interpolationId, defaultTranslationText, uses, sanitizeStrategy) { + if (tempClasses) { + $$jqLite.removeClass(element, tempClasses); + } + + runner.complete(!rejected); + } + }; + }]; +}]; - var deferred = $q.defer(); +/** + * @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 + * + * + *
    + *
    + * {{ number }} + *
    + *
    + *
    + * + * 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]; + * }; + * }]); + * + * + * .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; } + * + *
    + */ +var ngAnimateSwapDirective = ['$animate', function($animate) { + return { + restrict: 'A', + transclude: 'element', + terminal: true, + priority: 600, // we use 600 here to ensure that the directive is caught before others + link: function(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) { + $transclude(function(clone, childScope) { + previousElement = clone; + previousScope = childScope; + $animate.enter(clone, null, $element); + }); + } + }); + } + }; +}]; - var table = uses ? $translationTable[uses] : $translationTable, - Interpolator = interpolationId ? interpolatorHashMap[interpolationId] : defaultInterpolator; +/** + * @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 AngularJS 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:form#animations form / ngForm} | add and remove ({@link ng.directive:form#css-classes various classes}) | + * | {@link ngAnimate.directive:ngAnimateSwap#animations ngAnimateSwap} | enter and leave | + * | {@link ng.directive:ngClass#animations ngClass / {{class}​}} | add and remove | + * | {@link ng.directive:ngClassEven#animations ngClassEven} | add and remove | + * | {@link ng.directive:ngClassOdd#animations ngClassOdd} | add and remove | + * | {@link ng.directive:ngHide#animations ngHide} | add and remove (the `ng-hide` class) | + * | {@link ng.directive:ngIf#animations ngIf} | enter and leave | + * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave | + * | {@link module:ngMessages#animations ngMessage / ngMessageExp} | enter and leave | + * | {@link module:ngMessages#animations ngMessages} | add and remove (the `ng-active`/`ng-inactive` classes) | + * | {@link ng.directive:ngModel#animations ngModel} | add and remove ({@link ng.directive:ngModel#css-classes various classes}) | + * | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave, and move | + * | {@link ng.directive:ngShow#animations ngShow} | add and remove (the `ng-hide` class) | + * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave | + * | {@link ngRoute.directive:ngView#animations ngView} | enter and leave | + * + * (More information can be found by visiting the documentation associated with each directive.) + * + * For a full breakdown of the steps involved during each animation event, refer to the + * {@link ng.$animate `$animate` API docs}. + * + * ## 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 AngularJS 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 + *
    + * Fade me in out + *
    + * + * + * ``` + * + * Notice the CSS class **fade**? We can now create the CSS transition code that references this class: + * + * ```css + * /* The starting CSS styles for the enter animation */ + * .fade.ng-enter { + * transition:0.5s linear all; + * opacity:0; + * } + * + * /* The finishing CSS styles for the enter animation */ + * .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 + * /* now the element will fade out before it is removed from the DOM */ + * .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 + * /* there is no need to define anything inside of the destination + * CSS class since the keyframe will take charge of the animation */ + * .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 + *
    + * Show and hide me + *
    + * + * + * + * ``` + * + * 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 + *
    + * Highlight this box + *
    + * + * + * + * ``` + * + * 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 { + * /* standard transition code */ + * transition: 1s linear all; + * opacity:0; + * } + * .my-animation.ng-enter-stagger { + * /* this will have a 100ms delay between each successive leave animation */ + * transition-delay: 0.1s; + * + * /* As of 1.4.4, this must always be set: it signals ngAnimate + * to not accidentally inherit a delay property from another CSS class */ + * transition-duration: 0s; + * + * /* if you are using animations instead of transitions you should configure as follows: + * animation-delay: 0.1s; + * animation-duration: 0s; */ + * } + * .my-animation.ng-enter.ng-enter-active { + * /* standard transition styles */ + * 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 + *
    + *
    + *
    + *
    + *
    + * ``` + * + * 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; + * } + * ``` + * + * ### Animating between value changes + * + * Sometimes you need to animate between different expression states, whose values + * don't necessary need to be known or referenced in CSS styles. + * Unless possible with another {@link ngAnimate#directive-support "animation aware" directive}, + * that specific use case can always be covered with {@link ngAnimate.directive:ngAnimateSwap} as + * can be seen in {@link ngAnimate.directive:ngAnimateSwap#examples this example}. + * + * Note that {@link ngAnimate.directive:ngAnimateSwap} is a *structural directive*, which means it + * creates a new instance of the element (including any other/child directives it may have) and + * links it to a new scope every time *swap* happens. In some cases this might not be desirable + * (e.g. for performance reasons, or when you wish to retain internal state on the original + * element instance). + * + * ## 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 + *
    + * {{ item }} + *
    + * ``` + * + * 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 AngularJS + * // 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 + *
    + * this box is moody + *
    + * + * + * + * ``` + * + * ```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 AngularJS, + * 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 + *
    + * Slide in and out + *
    + * ``` + * + * ```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 + * /* the transition tells ngAnimate to make the animation happen */ + * .slide.ng-enter { transition:0.5s linear all; } + * + * /* this extra CSS class will be absorbed into the transition + * since the $animateCss code is adding the class */ + * .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 + * + *
    + *
    + * + * + * + * + * + * + * + * + * ``` + * + * 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 { + * /* this animation will last for 1 second since there are + * two phases to the animation (an `in` and an `out` phase) */ + * 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; + * + * /* the scale will be applied during the out animation, + * but will be animated away when the in animation runs */ + * transform: scale(1.2); + * } + * + * .banner.ng-anchor-in { + * transition: 1s linear all; + * } + * ``` + * + * + * + * + * ### Anchoring Demo + * + + + Home +
    +
    +
    +
    +
    + + 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; + }]); + + +

    Welcome to the home page

    +

    Please click on an element

    + + {{ record.title }} + +
    + +
    + {{ profile.title }} +
    +
    + + .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; + } + +
    + * + * ### 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 `` 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 AngularJS 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 + * Hi there + * ``` + * + * ```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 + * /* normally we would create a CSS class to reference on the element */ + * 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 AngularJS 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 AngularJS 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 AngularJS 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.7.5' }) + .directive('ngAnimateSwap', ngAnimateSwapDirective) + + .directive('ngAnimateChildren', $$AnimateChildrenDirective) + .factory('$$rAFScheduler', $$rAFSchedulerFactory) + + .provider('$$animateQueue', $$AnimateQueueProvider) + .provider('$$animateCache', $$AnimateCacheProvider) + .provider('$$animation', $$AnimationProvider) + + .provider('$animateCss', $AnimateCssProvider) + .provider('$$animateCssDriver', $$AnimateCssDriverProvider) + + .provider('$$animateJs', $$AnimateJsProvider) + .provider('$$animateJsDriver', $$AnimateJsDriverProvider); - // 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) === '@:') { +})(window, window.angular); - $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); - } +},{}],328:[function(require,module,exports){ +require('./angular-animate'); +module.exports = 'ngAnimate'; - // 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; - }; +},{"./angular-animate":327}],329:[function(require,module,exports){ +/** + * @license AngularJS v1.7.5 + * (c) 2010-2018 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 isArray; +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. + */ - var determineTranslationInstant = function determineTranslationInstant(translationId, interpolateParams, interpolationId, uses, sanitizeStrategy) { +/** + * @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 a 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 $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 + + + +
    + Snippet: + + + + + + + + + + + + + + + + + + + + + + + + + +
    DirectiveHowSourceRendered
    ng-bind-htmlAutomatically uses $sanitize
    <div ng-bind-html="snippet">
    </div>
    ng-bind-htmlBypass $sanitize by explicitly trusting the dangerous value +
    <div ng-bind-html="deliberatelyTrustDangerousSnippet()">
    +</div>
    +
    ng-bindAutomatically escapes
    <div ng-bind="snippet">
    </div>
    +
    +
    + + it('should sanitize the html snippet by default', function() { + expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')). + toBe('

    an html\nclick here\nsnippet

    '); + }); - var result, - table = uses ? $translationTable[uses] : $translationTable, - Interpolator = defaultInterpolator; + it('should inline raw snippet if bound to a trusted value', function() { + expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')). + toBe("

    an html\n" + + "click here\n" + + "snippet

    "); + }); - // if the interpolation id exists use custom interpolator - if (interpolatorHashMap && Object.prototype.hasOwnProperty.call(interpolatorHashMap, interpolationId)) { - Interpolator = interpolatorHashMap[interpolationId]; - } + it('should escape snippet without any filter', function() { + expect(element(by.css('#bind-default div')).getAttribute('innerHTML')). + toBe("<p style=\"color:blue\">an html\n" + + "<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" + + "snippet</p>"); + }); - // 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]; + it('should update', function() { + element(by.model('snippet')).clear(); + element(by.model('snippet')).sendKeys('new text'); + expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')). + toBe('new text'); + expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')).toBe( + 'new text'); + expect(element(by.css('#bind-default div')).getAttribute('innerHTML')).toBe( + "new <b onclick=\"alert(1)\">text</b>"); + }); +
    +
    + */ - // 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); - } - } +/** + * @ngdoc provider + * @name $sanitizeProvider + * @this + * + * @description + * Creates and configures {@link $sanitize} instance. + */ +function $SanitizeProvider() { + var hasBeenInstantiated = false; + var svgEnabled = false; + + this.$get = ['$$sanitizeUri', function($$sanitizeUri) { + hasBeenInstantiated = true; + 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(''); + }; + }]; - return result; - }; - var clearNextLangAndPromise = function clearNextLangAndPromise(key) { - if ($nextLang === key) { - $nextLang = undefined; - } - langPromises[key] = undefined; - }; + /** + * @ngdoc method + * @name $sanitizeProvider#enableSvg + * @kind function + * + * @description + * Enables a subset of svg to be supported by the sanitizer. + * + *
    + *

    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.

    + * + *

    To protect against these, explicitly setup `overflow: hidden` css rule for all potential svg + * tags within the sanitized content:

    + * + *
    + * + *
    
    +   *   .rootOfTheIncludedContent svg {
    +   *     overflow: hidden !important;
    +   *   }
    +   *   
    + *
    + * + * @param {boolean=} flag Enable or disable SVG support in the sanitizer. + * @returns {boolean|$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; + } + }; - var applyPostProcessing = function applyPostProcessing(translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy) { - var fn = postProcessFn; - if (fn) { + /** + * @ngdoc method + * @name $sanitizeProvider#addValidElements + * @kind function + * + * @description + * Extends the built-in lists of valid HTML/SVG elements, i.e. elements that are considered safe + * and are not stripped off during sanitization. You can extend the following lists of elements: + * + * - `htmlElements`: A list of elements (tag names) to extend the current list of safe HTML + * elements. HTML elements considered safe will not be removed during sanitization. All other + * elements will be stripped off. + * + * - `htmlVoidElements`: This is similar to `htmlElements`, but marks the elements as + * "void elements" (similar to HTML + * [void elements](https://rawgit.com/w3c/html/html5.1-2/single-page.html#void-elements)). These + * elements have no end tag and cannot have content. + * + * - `svgElements`: This is similar to `htmlElements`, but for SVG elements. This list is only + * taken into account if SVG is {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for + * `$sanitize`. + * + *
    + * This method must be called during the {@link angular.Module#config config} phase. Once the + * `$sanitize` service has been instantiated, this method has no effect. + *
    + * + *
    + * Keep in mind that extending the built-in lists of elements may expose your app to XSS or + * other vulnerabilities. Be very mindful of the elements you add. + *
    + * + * @param {Array|Object} elements - A list of valid HTML elements or an object with one or + * more of the following properties: + * - **htmlElements** - `{Array}` - A list of elements to extend the current list of + * HTML elements. + * - **htmlVoidElements** - `{Array}` - A list of elements to extend the current list of + * void HTML elements; i.e. elements that do not have an end tag. + * - **svgElements** - `{Array}` - A list of elements to extend the current list of SVG + * elements. The list of SVG elements is only taken into account if SVG is + * {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for `$sanitize`. + * + * Passing an array (`[...]`) is equivalent to passing `{htmlElements: [...]}`. + * + * @return {$sanitizeProvider} Returns self for chaining. + */ + this.addValidElements = function(elements) { + if (!hasBeenInstantiated) { + if (isArray(elements)) { + elements = {htmlElements: elements}; + } - if (typeof fn === 'string') { - // getting on-demand instance - fn = $injector.get(fn); - } - if (fn) { - return fn(translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy); - } - } + addElementsTo(svgElements, elements.svgElements); + addElementsTo(voidElements, elements.htmlVoidElements); + addElementsTo(validElements, elements.htmlVoidElements); + addElementsTo(validElements, elements.htmlElements); + } - return resolvedTranslation; - }; + return this; + }; - 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 method + * @name $sanitizeProvider#addValidAttrs + * @kind function + * + * @description + * Extends the built-in list of valid attributes, i.e. attributes that are considered safe and are + * not stripped off during sanitization. + * + * **Note**: + * The new attributes will not be treated as URI attributes, which means their values will not be + * sanitized as URIs using `$compileProvider`'s + * {@link ng.$compileProvider#aHrefSanitizationWhitelist aHrefSanitizationWhitelist} and + * {@link ng.$compileProvider#imgSrcSanitizationWhitelist imgSrcSanitizationWhitelist}. + * + *
    + * This method must be called during the {@link angular.Module#config config} phase. Once the + * `$sanitize` service has been instantiated, this method has no effect. + *
    + * + *
    + * Keep in mind that extending the built-in list of attributes may expose your app to XSS or + * other vulnerabilities. Be very mindful of the attributes you add. + *
    + * + * @param {Array} attrs - A list of valid attributes. + * + * @returns {$sanitizeProvider} Returns self for chaining. + */ + this.addValidAttrs = function(attrs) { + if (!hasBeenInstantiated) { + extend(validAttrs, arrayToMap(attrs, true)); + } + return this; + }; - /** - * @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; - }; + ////////////////////////////////////////////////////////////////////////////////////////////////// + // Private stuff + ////////////////////////////////////////////////////////////////////////////////////////////////// - /** - * @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; - }; + bind = angular.bind; + extend = angular.extend; + forEach = angular.forEach; + isArray = angular.isArray; + isDefined = angular.isDefined; + lowercase = angular.$$lowercase; + noop = angular.noop; - /** - * @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; - } - }; + htmlParser = htmlParserImpl; + htmlSanitizeWriter = htmlSanitizeWriterImpl; - /** - * @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; - } - } - } - }; + nodeContains = window.Node.prototype.contains || /** @this */ function(arg) { + // eslint-disable-next-line no-bitwise + return !!(this.compareDocumentPosition(arg) & 16); + }; - /** - * @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; - }; + // 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; - /** - * @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; + // 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 = stringToMap('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 = stringToMap('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr'), + optionalEndTagInlineElements = stringToMap('rp,rt'), + optionalEndTagElements = extend({}, + optionalEndTagInlineElements, + optionalEndTagBlockElements); + + // Safe Block Elements - HTML5 + var blockElements = extend({}, optionalEndTagBlockElements, stringToMap('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, stringToMap('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 = stringToMap('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 = stringToMap('script,style'); + + var validElements = extend({}, + voidElements, + blockElements, + inlineElements, + optionalEndTagElements); + + //Attributes that have href and hence need to be sanitized + var uriAttrs = stringToMap('background,cite,href,longdesc,src,xlink:href,xml:base'); + + var htmlAttrs = stringToMap('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 = stringToMap('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 stringToMap(str, lowercaseKeys) { + return arrayToMap(str.split(','), lowercaseKeys); + } + + function arrayToMap(items, lowercaseKeys) { + var obj = {}, i; + for (i = 0; i < items.length; i++) { + obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true; + } + return obj; + } - /** - * @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; - } + function addElementsTo(elementsMap, newElements) { + if (newElements && newElements.length) { + extend(elementsMap, arrayToMap(newElements)); + } + } - var deferred = $q.defer(); - deferred.promise.then(null, angular.noop); // AJS "Possibly unhandled rejection" + /** + * 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'); - $rootScope.$emit('$translateChangeStart', { language: key }); + // Check for the Safari 10.1 bug - which allows JS to run inside the SVG G element + inertBodyElement.innerHTML = ''; + if (!inertBodyElement.querySelector('svg')) { + return getInertBodyElement_XHR; + } else { + // Check for the Firefox bug - which prevents the inner img JS from being sanitized + inertBodyElement.innerHTML = '

    '; + if (inertBodyElement.querySelector('svg img')) { + return getInertBodyElement_DOMParser; + } else { + return getInertBodyElement_InertDocument; + } + } - // 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); - } + 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 `` do not get hoisted to the `` tag. + html = '' + 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; + } - if (aliasedKey) { - key = aliasedKey; - } + 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 `` do not get hoisted to the `` tag. + html = '' + html; + try { + var body = new window.DOMParser().parseFromString(html, 'text/html').body; + body.firstChild.remove(); + return body; + } catch (e) { + return undefined; + } + } - // 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); - } + function getInertBodyElement_InertDocument(html) { + inertBodyElement.innerHTML = html; - return deferred.promise; - }; + // Support: IE 9-11 only + // strip custom-namespaced attributes on IE<=11 + if (document.documentMode) { + stripCustomNsAttrs(inertBodyElement); + } - /** - * @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(); - }; + return inertBodyElement; + } + })(window, window.document); - /** - * @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(); - }; + /** + * @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; + } - /** - * @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; - }; + var inertBodyElement = getInertBodyElement(html); + if (!inertBodyElement) return ''; - /** - * @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; - }; + //mXSS protection + var mXSSAttempts = 5; + do { + if (mXSSAttempts === 0) { + throw $sanitizeMinErr('uinput', 'Failed to sanitize html because the input is unstable'); + } + mXSSAttempts--; - /** - * @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; - }; + // trigger mXSS if it is going to happen by reading and writing the innerHTML + html = inertBodyElement.innerHTML; + inertBodyElement = getInertBodyElement(html); + } while (html !== inertBodyElement.innerHTML); - /** - * @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!'); + 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; + } - $rootScope.$emit('$translateRefreshStart', { language: langKey }); + while ((node = inertBodyElement.firstChild)) { + inertBodyElement.removeChild(node); + } + } - var deferred = $q.defer(), - updatedLanguages = {}; + 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; + } - //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]; - } + /** + * 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, '&'). + 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, '>'); + } + + /** + * 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(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('"'); } - } - if ($uses) { - useLanguage($uses); - } - }, - //handle rejection to appease the $q validation - angular.noop)['finally'](function () { - $rootScope.$emit('$translateRefreshEnd', { language: langKey }); - }); + }); + out('>'); + } + }, + end: function(tag) { + tag = lowercase(tag); + if (!ignoreCurrentElement && validElements[tag] === true && voidElements[tag] !== true) { + out(''); + } + // eslint-disable-next-line eqeqeq + if (tag == ignoreCurrentElement) { + ignoreCurrentElement = false; + } + }, + chars: function(chars) { + if (!ignoreCurrentElement) { + out(encodeEntities(chars)); + } + } + }; + } - 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); + + /** + * 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--; } - $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; - }; + var nextNode = node.firstChild; + if (nextNode) { + stripCustomNsAttrs(nextNode); + } - /** - * @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) { + node = getNonDescendant('nextSibling', node); + } + } - // 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; + 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; + } +} - // Detect undefined and null values to shorten the execution and prevent exceptions - if (translationId === null || angular.isUndefined(translationId)) { - return translationId; - } +function sanitizeText(chars) { + var buf = []; + var writer = htmlSanitizeWriter(buf, noop); + writer.chars(chars); + return buf.join(''); +} - // 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; - } +// define ngSanitize module and register $sanitize service +angular.module('ngSanitize', []) + .provider('$sanitize', $SanitizeProvider) + .info({ angularVersion: '1.7.5' }); - // We discarded unacceptable values. So we just need to verify if translationId is empty String - if (angular.isString(translationId) && translationId.length < 1) { - return translationId; - } +/** + * @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 + + * + * @example + + +

    + Snippet: + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FilterSourceRendered
    linky filter +
    <div ng-bind-html="snippet | linky">
    </div>
    +
    +
    +
    linky target +
    <div ng-bind-html="snippetWithSingleURL | linky:'_blank'">
    </div>
    +
    +
    +
    linky custom attributes +
    <div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}">
    </div>
    +
    +
    +
    no filter
    <div ng-bind="snippet">
    </div>
    + + + 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/'; + }]); + + + 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); + }); - // trim off any whitespace - if (translationId) { - translationId = trim.apply(translationId); - } + 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); + }); - 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; - } - } + 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.'); + }); - 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); - } + 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'); + }); - if ($missingTranslationHandlerFactory && !pendingLoader && missingTranslationHandlerTranslation) { - result = missingTranslationHandlerTranslation; - } - } - } + 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'); + }); + + + */ +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; - return result; - }; + var linkyMinErr = angular.$$minErr('linky'); + var isDefined = angular.isDefined; + var isFunction = angular.isFunction; + var isObject = angular.isObject; + var isString = angular.isString; - /** - * @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; - }; + return function(text, target, attributes) { + if (text == null || text === '') return text; + if (!isString(text)) throw linkyMinErr('notstring', 'Expected string but received: {0}', text); - /** - * @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; - }; + var attributesFn = + isFunction(attributes) ? attributes : + isObject(attributes) ? function getAttributesObject() {return attributes;} : + function getEmptyAttributesObject() {return {};}; - // internal purpose only - $translate.directivePriority = function () { - return directivePriority; - }; + 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)); + } - // internal purpose only - $translate.statefulFilter = function () { - return statefulFilter; - }; + function addLink(url, text) { + var key, linkAttributes = attributesFn(url); + html.push(''); + addText(text); + html.push(''); + } + }; +}]); - /** - * @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; - }; +})(window, window.angular); - /** - * @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; - }; +},{}],330:[function(require,module,exports){ +require('./angular-sanitize'); +module.exports = 'ngSanitize'; - // 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; - }); +},{"./angular-sanitize":329}],331:[function(require,module,exports){ +/*! + * angular-translate - v2.18.1 - 2018-05-19 + * + * Copyright (c) 2018 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 === '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(); + } +}(this, function () { - if ($loaderFactory) { +$translateMissingTranslationHandlerLog.$inject = ['$log']; +angular.module('pascalprecht.translate') - // 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()); - } - } +/** + * @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); - // 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() }); - } +function $translateMissingTranslationHandlerLog ($log) { - return $translate; - }]; + 'use strict'; + + return function (translationId) { + $log.warn('Translation for ' + translationId + ' doesn\'t exist'); + }; +} + +$translateMissingTranslationHandlerLog.displayName = '$translateMissingTranslationHandlerLog'; +return 'pascalprecht.translate'; + +})); + +},{}],332:[function(require,module,exports){ +/*! + * angular-translate - v2.18.1 - 2018-05-19 + * + * Copyright (c) 2018 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 === '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(); } +}(this, function () { - $translate.displayName = 'displayName'; +/** + * @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) { - /** - * @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); + 'use strict'; - function $translateDefaultInterpolation($interpolate, $translateSanitization) { + var key = $translate.storageKey(), + storage = $translate.storage(); - 'use strict'; + var fallbackFromIncorrectStorageValue = function () { + 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()); + } + }; - var $translateInterpolator = {}, - $locale, - $identifier = 'default'; + fallbackFromIncorrectStorageValue.displayName = 'fallbackFromIncorrectStorageValue'; - /** - * @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; - }; + 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()); + } +} - /** - * @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; - }; +runTranslate.displayName = 'runTranslate'; - /** - * @deprecated will be removed in 3.0 - * @see {@link pascalprecht.translate.$translateSanitization} - */ - $translateInterpolator.useSanitizeValueStrategy = function (value) { - $translateSanitization.useStrategy(value); - return this; - }; +/** + * @ngdoc object + * @name pascalprecht.translate.$translateSanitizationProvider + * + * @description + * + * Configurations for $translateSanitization + */ +angular.module('pascalprecht.translate').provider('$translateSanitization', $translateSanitizationProvider); - /** - * @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 = ''; - } +function $translateSanitizationProvider () { - return interpolatedText; - }; + 'use strict'; - return $translateInterpolator; - } + var $sanitize, + $sce, + currentStrategy = null, // TODO change to either 'sanitize', 'escape' or ['sanitize', 'escapeParameters'] in 3.0. + hasConfiguredStrategy = false, + hasShownNoStrategyConfiguredWarning = false, + strategies; - $translateDefaultInterpolation.displayName = '$translateDefaultInterpolation'; + /** + * 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: + *
    + *
    sanitize
    + *
    Sanitizes HTML in the translation text using $sanitize
    + *
    escape
    + *
    Escapes HTML in the translation
    + *
    sanitizeParameters
    + *
    Sanitizes HTML in the values of the interpolation parameters using $sanitize
    + *
    escapeParameters
    + *
    Escapes HTML in the values of the interpolation parameters
    + *
    escaped
    + *
    Support legacy strategy name 'escaped' for backwards compatibility (will be removed in 3.0)
    + *
    + * + */ - angular.module('pascalprecht.translate').constant('$STORAGE_KEY', 'NG_TRANSLATE_LANG_KEY'); + strategies = { + sanitize: function (value, mode/*, context*/) { + if (mode === 'text') { + value = htmlSanitizeValue(value); + } + return value; + }, + escape: function (value, mode/*, context*/) { + if (mode === 'text') { + value = htmlEscapeValue(value); + } + return value; + }, + sanitizeParameters: function (value, mode/*, context*/) { + if (mode === 'params') { + value = mapInterpolationParameters(value, htmlSanitizeValue); + } + return value; + }, + escapeParameters: function (value, mode/*, context*/) { + if (mode === 'params') { + value = mapInterpolationParameters(value, htmlEscapeValue); + } + return value; + }, + sce: function (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 (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; - angular.module('pascalprecht.translate') /** - * @ngdoc directive - * @name pascalprecht.translate.directive:translate - * @requires $interpolate, - * @requires $compile, - * @requires $parse, - * @requires $rootScope - * @restrict AE + * @ngdoc function + * @name pascalprecht.translate.$translateSanitizationProvider#addStrategy + * @methodOf pascalprecht.translate.$translateSanitizationProvider * * @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} + * Adds a sanitization strategy to the list of known strategies. * - * @example - - -
    - -
    
    -          
    TRANSLATION_ID
    -
    
    -          
    
    -          
    {{translationId}}
    -
    
    -          
    WITH_VALUES
    -
    
    -          
    WITH_VALUES
    -
    
    -          
    
    -  
    -        
    -
    - - 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 - }; - }); - - - it('should translate', function () { - inject(function ($rootScope, $compile) { - $rootScope.translationId = 'TRANSLATION_ID'; - - element = $compile('

    ')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('Hello there!'); - - element = $compile('

    ')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('Hello there!'); - - element = $compile('

    TRANSLATION_ID

    ')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('Hello there!'); - - element = $compile('

    {{translationId}}

    ')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('Hello there!'); - - element = $compile('

    ')($rootScope); - $rootScope.$digest(); - expect(element.attr('title')).toBe('Hello there!'); - - element = $compile('

    ')($rootScope); - $rootScope.$digest(); - expect(element.text()).toBe('The interpolation key is camel cased: Hello'); - }); - }); -
    -
    + * @param {string} strategyName - unique key for a strategy + * @param {StrategyFunction} strategyFunction - strategy function + * @returns {object} this */ - .directive('translate', translateDirective); - function translateDirective($translate, $interpolate, $compile, $parse, $rootScope) { + this.addStrategy = function (strategyName, strategyFunction) { + strategies[strategyName] = strategyFunction; + return this; + }; - 'use strict'; + /** + * @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; + }; - /** - * @name trim - * @private - * - * @description - * trim polyfill - * - * @returns {string} The string stripped of whitespace from both ends - */ + /** + * @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; + }; - var trim = function trim() { - return this.toString().replace(/^\s+|\s+$/g, ''); + /** + * @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 (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; }; - /** - * @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; + // TODO: should be removed in 3.0 + var showNoStrategyConfiguredWarning = function () { + 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 { - restrict: 'AE', - scope: true, - priority: $translate.directivePriority(), - compile: function compile(tElement, tAttr) { + /** + * @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), - var translateValuesExist = tAttr.translateValues ? tAttr.translateValues : undefined; + /** + * @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 (value, mode, strategy, context) { + if (!currentStrategy) { + showNoStrategyConfiguredWarning(); + } - var translateInterpolation = tAttr.translateInterpolation ? tAttr.translateInterpolation : undefined; + if (!strategy && strategy !== null) { + strategy = currentStrategy; + } - var translateSanitizeStrategyExist = tAttr.translateSanitizeStrategy ? tAttr.translateSanitizeStrategy : undefined; + if (!strategy) { + return value; + } - var translateValueExist = tElement[0].outerHTML.match(/translate-value-+/i); + if (!context) { + context = 'service'; + } - var interpolateRegExp = '^(.*)(' + $interpolate.startSymbol() + '.*' + $interpolate.endSymbol() + ')(.*)', - watcherRegExp = '^(.*)' + $interpolate.startSymbol() + '(.*)' + $interpolate.endSymbol() + '(.*)'; + var selectedStrategies = angular.isArray(strategy) ? strategy : [strategy]; + return applyStrategies(value, mode, context, selectedStrategies); + } + }; + }]; - return function linkFn(scope, iElement, iAttr) { + var htmlEscapeValue = function (value) { + var element = angular.element('
    '); + element.text(value); // not chainable, see #1044 + return element.html(); + }; - scope.interpolateParams = {}; - scope.preText = ''; - scope.postText = ''; - scope.translateNamespace = getTranslateNamespace(scope); - var translationIds = {}; + var htmlSanitizeValue = function (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 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]; - } - } - } - }; + var htmlTrustValue = function (value) { + if (!$sce) { + throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sce service.'); + } + return $sce.trustAsHtml(value); + }; - // 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) { + var mapInterpolationParameters = function (value, iteratee, stack) { + if (angular.isDate(value)) { + return value; + } else if (angular.isObject(value)) { + var result = angular.isArray(value) ? [] : {}; - // Remove any old watcher - if (angular.isFunction(observeElementTranslation._unwatchOld)) { - observeElementTranslation._unwatchOld(); - observeElementTranslation._unwatchOld = undefined; - } + if (!stack) { + stack = []; + } else { + if (stack.indexOf(value) > -1) { + throw new Error('pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object'); + } + } - 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(); - }; + stack.push(value); + angular.forEach(value, function (propertyValue, propertyKey) { - var observeAttributeTranslation = function observeAttributeTranslation(translateAttr) { - iAttr.$observe(translateAttr, function (translationId) { - translationIds[translateAttr] = translationId; - updateTranslations(); - }); - }; + /* Skipping function properties. */ + if (angular.isFunction(propertyValue)) { + return; + } - // initial setup with values - initInterpolationParams(scope.interpolateParams, iAttr, tAttr); + result[propertyKey] = mapInterpolationParameters(propertyValue, iteratee, stack); + }); + stack.splice(-1, 1); // remove last - var firstAttributeChangedEvent = true; - iAttr.$observe('translate', function (translationId) { - if (typeof translationId === 'undefined') { - // case of element "xyz" - observeElementTranslation(''); - } else { - // case of regular attribute - if (translationId !== '' || !firstAttributeChangedEvent) { - translationIds.translate = translationId; - updateTranslations(); - } - } - firstAttributeChangedEvent = false; - }); + 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; + } + }; +} - for (var translateAttr in iAttr) { - if (iAttr.hasOwnProperty(translateAttr) && translateAttr.substr(0, 13) === 'translateAttr' && translateAttr.length > 13) { - observeAttributeTranslation(translateAttr); - } - } +/** + * @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); - iAttr.$observe('translateDefault', function (value) { - scope.defaultText = value; - updateTranslations(); - }); +function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvider, pascalprechtTranslateOverrider) { - if (translateSanitizeStrategyExist) { - iAttr.$observe('translateSanitizeStrategy', function (value) { - scope.sanitizeStrategy = $parse(value)(scope.$parent); - updateTranslations(); - }); - } + 'use strict'; - if (translateValuesExist) { - iAttr.$observe('translateValues', function (interpolateParams) { - if (interpolateParams) { - scope.$parent.$watch(function () { - angular.extend(scope.interpolateParams, $parse(interpolateParams)(scope.$parent)); - }); - } - }); - } + 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 (tag) { + return (tag || '').split('-').join('_'); + }, + java : function (tag) { + var temp = (tag || '').split('-').join('_'); + var parts = temp.split('_'); + return parts.length > 1 ? (parts[0].toLowerCase() + '_' + parts[1].toUpperCase()) : temp; + }, + bcp47 : function (tag) { + var temp = (tag || '').split('_').join('-'); + var parts = temp.split('-'); - 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); - } + 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; + } - // 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); - } - } - }; + return parts.join('-'); + }, + 'iso639-1' : function (tag) { + var temp = (tag || '').split('_').join('-'); + var parts = temp.split('-'); + return parts[0].toLowerCase(); + } + }; - // 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 version = '2.18.1'; - 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); - } - }; + // tries to determine the browsers language + var getFirstBrowserLanguage = function () { - if (translateValuesExist || translateValueExist || iAttr.translateDefault) { - scope.$watch('interpolateParams', updateTranslations, true); - } + // internal purpose only + if (angular.isFunction(pascalprechtTranslateOverrider.getLocale)) { + return pascalprechtTranslateOverrider.getLocale(); + } - // Replaced watcher on translateLanguage with event listener - scope.$on('translateLanguageChanged', updateTranslations); + var nav = $windowProvider.$get().navigator, + browserLanguagePropertyKeys = ['language', 'browserLanguage', 'systemLanguage', 'userLanguage'], + i, + language; - // Ensures the text will be refreshed after the current language was changed - // w/ $translate.use(...) - var unbind = $rootScope.$on('$translateChangeSuccess', updateTranslations); + // 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; + } + } + } - // 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); - }; + // 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; } - }; - } + } - /** - * Returns the scope's namespace. - * @private - * @param scope - * @returns {string} - */ - function getTranslateNamespace(scope) { - 'use strict'; + return null; + }; + getFirstBrowserLanguage.displayName = 'angular-translate/service: getFirstBrowserLanguage'; - if (scope.translateNamespace) { - return scope.translateNamespace; - } - if (scope.$parent) { - return getTranslateNamespace(scope.$parent); + // tries to determine the browsers locale + var getLocale = function () { + var locale = getFirstBrowserLanguage() || ''; + if (languageTagResolver[uniformLanguageTagResolver]) { + locale = languageTagResolver[uniformLanguageTagResolver](locale); } - } - - translateDirective.displayName = 'translateDirective'; + return locale; + }; + getLocale.displayName = 'angular-translate/service: getLocale'; - angular.module('pascalprecht.translate') /** - * @ngdoc directive - * @name pascalprecht.translate.directive:translate-attr - * @restrict A + * @name indexOf + * @private * * @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. + * indexOf polyfill. Kinda sorta. * - * @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 + * @param {array} array Array to search in. + * @param {string} searchElement Element to search for. * - * @example - - -
    - - - -
    -
    - - 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 - }; - }); - - - it('should translate', function () { - inject(function ($rootScope, $compile) { - $rootScope.translationId = 'TRANSLATION_ID'; - - element = $compile('')($rootScope); - $rootScope.$digest(); - expect(element.attr('placeholder)).toBe('Hello there!'); - expect(element.attr('title)).toBe('The following value is dynamic: 5'); - }); - }); - -
    + * @returns {int} Index of search element. */ - .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); + var indexOf = function (array, searchElement) { + for (var i = 0, len = array.length; i < len; i++) { + if (array[i] === searchElement) { + return i; } - }; - } - - 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'; + return -1; + }; - 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. + * @name trim + * @private * - * The class name is defined in - * {@link pascalprecht.translate.$translateProvider#cloakClassName $translate.cloakClassName()}. + * @description + * trim polyfill * - * @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. + * @returns {string} The string stripped of whitespace from both ends */ - .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'; + var trim = function () { + return this.toString().replace(/^\s+|\s+$/g, ''); + }; - angular.module('pascalprecht.translate') /** - * @ngdoc directive - * @name pascalprecht.translate.directive:translateNamespace - * @restrict A + * @name lowercase + * @private * * @description - * Translates given translation id either through attribute or DOM content. - * Internally it uses `translate` filter to translate translation id. It is possible to - * pass an optional `translate-values` object literal as string into translation id. + * Return the lowercase string only if the type is string * - * @param {string=} translate namespace name which could be either string or interpolated string. - * - * @example - - -
    - -
    -

    .HEADERS.TITLE

    -

    .HEADERS.WELCOME

    -
    - -
    -

    .TITLE

    -

    .WELCOME

    -
    - -
    -
    - - 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'); - - }); - - -
    + * @returns {string} The string all in lowercase */ - .directive('translateNamespace', translateNamespaceDirective); + var lowercase = function (string) { + return angular.isString(string) ? string.toLowerCase() : string; + }; - function translateNamespaceDirective() { + var negotiateLocale = function (preferred) { + if (!preferred) { + return; + } - 'use strict'; + var avail = [], + locale = lowercase(preferred), + i = 0, + n = $availableLanguageKeys.length; - return { - restrict: 'A', - scope: true, - compile: function compile() { - return { - pre: function pre(scope, iElement, iAttrs) { - scope.translateNamespace = _getTranslateNamespace(scope); + for (; i < n; i++) { + avail.push(lowercase($availableLanguageKeys[i])); + } - if (scope.translateNamespace && iAttrs.translateNamespace.charAt(0) === '.') { - scope.translateNamespace += iAttrs.translateNamespace; - } else { - scope.translateNamespace = iAttrs.translateNamespace; + // 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; } } - }; + } } - }; - } + } - /** - * Returns the scope's namespace. - * @private - * @param scope - * @returns {string} - */ - function _getTranslateNamespace(scope) { - 'use strict'; + // Check for a language code without region + var parts = preferred.split('_'); - if (scope.translateNamespace) { - return scope.translateNamespace; - } - if (scope.$parent) { - return _getTranslateNamespace(scope.$parent); + if (parts.length > 1 && indexOf(avail, lowercase(parts[0])) > -1) { + return parts[0]; } - } - translateNamespaceDirective.displayName = 'translateNamespaceDirective'; + // If everything fails, return undefined. + return; + }; - angular.module('pascalprecht.translate') /** - * @ngdoc directive - * @name pascalprecht.translate.directive:translateLanguage - * @restrict A + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#translations + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Forces the language to the directives in the underlying scope. + * Registers a new translation table for specific language key. * - * @param {string=} translate language that will be negotiated. + * To register a translation table for specific language, pass a defined language + * key as first parameter. * - * @example - - -
    - -
    -

    HELLO

    -
    - -
    -

    HELLO

    -
    - -
    -
    - - angular.module('ngView', ['pascalprecht.translate']) - - .config(function ($translateProvider) { - - $translateProvider - .translations('en',{ - 'HELLO': 'Hello world!' - }) - .translations('de',{ - 'HELLO': 'Hallo Welt!' - }) - .preferredLanguage('en'); - - }); - - -
    - */ - .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 + *
    +   *  // register translation table for language: 'de_DE'
    +   *  $translateProvider.translations('de_DE', {
    +   *    'GREETING': 'Hallo Welt!'
    +   *  });
        *
    -   * @description
    -   * Uses `$translate` service to translate contents. Accepts interpolate parameters
    -   * to pass dynamized values though translation.
    +   *  // register another one
    +   *  $translateProvider.translations('en_US', {
    +   *    'GREETING': 'Hello world!'
    +   *  });
    +   * 
    * - * @param {string} translationId A translation id to be translated. - * @param {*=} interpolateParams Optional object literal (as hash or string) to pass values into translation. + * 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. * - * @returns {string} Translated text. + * 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. * - * @example - - -
    - -
    {{ 'TRANSLATION_ID' | translate }}
    -
    {{ translationId | translate }}
    -
    {{ 'WITH_VALUES' | translate:'{value: 5}' }}
    -
    {{ 'WITH_VALUES' | translate:values }}
    - -
    -
    - - 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 - }; - }); - -
    */ - .filter('translate', translateFilterFactory); - - function translateFilterFactory($parse, $translate) { + var translations = function (langKey, translationTable) { - 'use strict'; + if (!langKey && !translationTable) { + return $translationTable; + } - 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); + if (langKey && !translationTable) { + if (angular.isString(langKey)) { + return $translationTable[langKey]; } - - return $translate.instant(translationId, interpolateParams, interpolation, forceLanguage); - }; - - if ($translate.statefulFilter()) { - translateFilter.$stateful = true; + } else { + if (!angular.isObject($translationTable[langKey])) { + $translationTable[langKey] = {}; + } + angular.extend($translationTable[langKey], flatObject(translationTable)); } + return this; + }; - return translateFilter; - } - - translateFilterFactory.displayName = 'translateFilterFactory'; - - angular.module('pascalprecht.translate') + this.translations = translations; /** - * @ngdoc object - * @name pascalprecht.translate.$translationCache - * @requires $cacheFactory + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#cloakClassName + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * Let's you change the class name for `translate-cloak` directive. + * Default class name is `translate-cloak`. + * + * @param {string} name translate-cloak class name */ - .factory('$translationCache', $translationCache); - - function $translationCache($cacheFactory) { - - 'use strict'; - - return $cacheFactory('translations'); - } - - $translationCache.displayName = '$translationCache'; - return 'pascalprecht.translate'; -}); - -},{}],319:[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.7.5 - * (c) 2010-2018 Google, Inc. http://angularjs.org - * License: MIT - */ -(function (window) { - 'use strict'; - - /* exported - minErrConfig, - errorHandlingConfig, - isValidObjectMaxDepth - */ - - var minErrConfig = { - objectMaxDepth: 5, - urlErrorParamsEnabled: true + this.cloakClassName = function (name) { + if (!name) { + return $cloakClassName; + } + $cloakClassName = name; + return this; }; /** * @ngdoc function - * @name angular.errorHandlingConfig - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#nestedObjectDelimeter + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * Let's you change the delimiter for namespaced translations. + * Default delimiter is `.`. * - * 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 - * - * * `urlErrorParamsEnabled` **{Boolean}** - Specifies wether the generated error url will - * contain the parameters of the thrown error. Disabling the parameters can be useful if the - * generated error url is very long. - * - * Default: true. When used without argument, it returns the current value. + * @param {string} delimiter namespace separator */ - function errorHandlingConfig(config) { - if (isObject(config)) { - if (isDefined(config.objectMaxDepth)) { - minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN; - } - if (isDefined(config.urlErrorParamsEnabled) && isBoolean(config.urlErrorParamsEnabled)) { - minErrConfig.urlErrorParamsEnabled = config.urlErrorParamsEnabled; - } - } else { - return minErrConfig; + this.nestedObjectDelimeter = function (delimiter) { + if (!delimiter) { + return $nestedObjectDelimeter; } - } + $nestedObjectDelimeter = delimiter; + return this; + }; /** + * @name flatObject * @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 - * AngularJS. 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 + * @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 (data, path, result, prevKey) { + var key, keyWithPath, keyWithShortPath, val; - function minErr(module, ErrorConstructor) { - ErrorConstructor = ErrorConstructor || Error; - - var url = 'https://errors.angularjs.org/1.7.5/'; - var regex = url.replace('.', '\\.') + '[\\s\\S]*'; - var errRegExp = new RegExp(regex, 'g'); - - 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; - - // A minErr message has two parts: the message itself and the url that contains the - // encoded message. - // The message's parameters can contain other error messages which also include error urls. - // To prevent the messages from getting too long, we strip the error urls from the parameters. - - message += template.replace(/\{\d+\}/g, function (match) { - var index = +match.slice(1, -1); - - if (index < templateArgs.length) { - return templateArgs[index].replace(errRegExp, ''); - } - - return match; - }); - - message += '\n' + url + (module ? module + '/' : '') + code; - - if (minErrConfig.urlErrorParamsEnabled) { - for (i = 0, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') { - message += paramPrefix + 'p' + i + '=' + encodeURIComponent(templateArgs[i]); + 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 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, - 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, - addDateMinutes, - 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 - */ - - //////////////////////////////////// + } + return result; + }; + flatObject.displayName = 'flatObject'; /** - * @ngdoc module - * @name ng - * @module ng - * @installation - * @description + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#addInterpolation + * @methodOf pascalprecht.translate.$translateProvider * - * 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. + * @description + * Adds interpolation services to angular-translate, so it can manage them. * + * @param {object} factory Interpolation service factory */ - - 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; + this.addInterpolation = function (factory) { + $interpolatorFactories.push(factory); + return this; + }; /** - * @private + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useMessageFormatInterpolation + * @methodOf pascalprecht.translate.$translateProvider * - * @description Converts the specified string to lowercase. - * @param {string} string String to be converted to lowercase. - * @returns {string} Lowercased string. + * @description + * Tells angular-translate to use interpolation functionality of messageformat.js. + * This is useful when having high level pluralization and gender selection. */ - var lowercase = function lowercase(string) { - return isString(string) ? string.toLowerCase() : string; + this.useMessageFormatInterpolation = function () { + return this.useInterpolation('$translateMessageFormatInterpolation'); }; /** - * @private + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useInterpolation + * @methodOf pascalprecht.translate.$translateProvider * - * @description Converts the specified string to uppercase. - * @param {string} string String to be converted to uppercase. - * @returns {string} Uppercased string. + * @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. */ - var uppercase = function uppercase(string) { - return isString(string) ? string.toUpperCase() : string; + this.useInterpolation = function (factory) { + $interpolationFactory = factory; + return this; }; - 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 ...) + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useSanitizeStrategy + * @methodOf pascalprecht.translate.$translateProvider + * + * @description + * Simply sets a sanitation strategy type. + * + * @param {string} value Strategy type. */ - 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 || typeof obj.item === 'function'); - } + this.useSanitizeValueStrategy = function (value) { + $translateSanitizationProvider.useStrategy(value); + return this; + }; /** * @ngdoc function - * @name angular.forEach - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#preferredLanguage + * @methodOf pascalprecht.translate.$translateProvider * * @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`. + * 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. */ - - 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); - } - } - } + this.preferredLanguage = function (langKey) { + if (langKey) { + setupPreferredLanguage(langKey); + return this; } - 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 $preferredLanguage; + }; + var setupPreferredLanguage = function (langKey) { + if (langKey) { + $preferredLanguage = langKey; } - return keys; - } - + return $preferredLanguage; + }; /** - * when using forEach the params are value, key, but it is often useful to have key, value. - * @param {function(string, *)} iteratorFn - * @returns {function(*, string)} + * @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. */ - function reverseParams(iteratorFn) { - return function (value, key) { - iteratorFn(key, value); - }; - } + this.translationNotFoundIndicator = function (indicator) { + this.translationNotFoundIndicatorLeft(indicator); + this.translationNotFoundIndicatorRight(indicator); + return this; + }; /** - * A consistent way of creating unique IDs in angular. + * ngdoc function + * @name pascalprecht.translate.$translateProvider#translationNotFoundIndicatorLeft + * @methodOf pascalprecht.translate.$translateProvider * - * 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 + * @description + * Sets an indicator which is used when a translation isn't found left to the + * translation id. * - * @returns {number} an unique alpha-numeric string + * @param {string} indicator An indicator. */ - function nextUid() { - return ++uid; - } + this.translationNotFoundIndicatorLeft = function (indicator) { + if (!indicator) { + return $notFoundIndicatorLeft; + } + $notFoundIndicatorLeft = indicator; + return this; + }; /** - * Set or clear the hashkey for an object. - * @param obj object - * @param h the hashkey (!truthy to delete the hashkey) + * 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. */ - 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; - } - } + this.translationNotFoundIndicatorRight = function (indicator) { + if (!indicator) { + return $notFoundIndicatorRight; } - - setHashKey(dst, h); - return dst; - } + $notFoundIndicatorRight = indicator; + return this; + }; /** * @ngdoc function - * @name angular.extend - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#fallbackLanguage + * @methodOf pascalprecht.translate.$translateProvider * * @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)`. + * 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**. * - * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use - * {@link angular.merge} for this. + * @param {string||array} langKey A language key. * - * @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); - } + this.fallbackLanguage = function (langKey) { + fallbackStack(langKey); + return this; + }; - function toInt(str) { - return parseInt(str, 10); - } + var fallbackStack = function (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); + } - var isNumberNaN = Number.isNaN || function isNumberNaN(num) { - // eslint-disable-next-line no-self-compare - return num !== num; + return this; + } else { + if ($fallbackWasString) { + return $fallbackLanguage[0]; + } else { + return $fallbackLanguage; + } + } }; - function inherit(parent, extra) { - return extend(Object.create(parent), extra); - } - /** * @ngdoc function - * @name angular.noop - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#use + * @methodOf pascalprecht.translate.$translateProvider * * @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); - } - ``` + * 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. */ - function noop() {} - noop.$inject = []; + 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 angular.identity - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#resolveClientLocale + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * 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 */ - function identity($) { - return $; - } - identity.$inject = []; - - function valueFn(value) { - return function valueRef() { - return value; - }; - } - - function hasCustomToString(obj) { - return isFunction(obj.toString) && obj.toString !== toString; - } + this.resolveClientLocale = function () { + return getLocale(); + }; /** * @ngdoc function - * @name angular.isUndefined - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#storageKey + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is undefined. + * Tells the module which key must represent the choosed language by a user in the storage. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is undefined. + * @param {string} key A key for the storage. */ - function isUndefined(value) { - return typeof value === 'undefined'; - } + var storageKey = function (key) { + if (!key) { + if ($storagePrefix) { + return $storagePrefix + $storageKey; + } + return $storageKey; + } + $storageKey = key; + return this; + }; + + this.storageKey = storageKey; /** * @ngdoc function - * @name angular.isDefined - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useUrlLoader + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is defined. + * Tells angular-translate to use `$translateUrlLoader` extension service as loader. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is defined. + * @param {string} url Url + * @param {Object=} options Optional configuration object */ - function isDefined(value) { - return typeof value !== 'undefined'; - } + this.useUrlLoader = function (url, options) { + return this.useLoader('$translateUrlLoader', angular.extend({url : url}, options)); + }; /** * @ngdoc function - * @name angular.isObject - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useStaticFilesLoader + * @methodOf pascalprecht.translate.$translateProvider * * @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 + * Tells angular-translate to use `$translateStaticFilesLoader` extension service as loader. * - * @returns {boolean} True if `value` is an `Object` with a null prototype + * @param {Object=} options Optional configuration object */ - function isBlankObject(value) { - return value !== null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !getPrototypeOf(value); - } + this.useStaticFilesLoader = function (options) { + return this.useLoader('$translateStaticFilesLoader', options); + }; /** * @ngdoc function - * @name angular.isString - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useLoader + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is a `String`. + * Tells angular-translate to use any other service as loader. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a `String`. + * @param {string} loaderFactory Factory name to use + * @param {Object=} options Optional configuration object */ - function isString(value) { - return typeof value === 'string'; - } + this.useLoader = function (loaderFactory, options) { + $loaderFactory = loaderFactory; + $loaderOptions = options || {}; + return this; + }; /** * @ngdoc function - * @name angular.isNumber - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useLocalStorage + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * Tells angular-translate to use `$translateLocalStorage` service as storage layer. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a `Number`. */ - function isNumber(value) { - return typeof value === 'number'; - } + this.useLocalStorage = function () { + return this.useStorage('$translateLocalStorage'); + }; /** * @ngdoc function - * @name angular.isDate - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useCookieStorage + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a value is a date. - * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a `Date`. + * Tells angular-translate to use `$translateCookieStorage` service as storage layer. */ - function isDate(value) { - return toString.call(value) === '[object Date]'; - } + this.useCookieStorage = function () { + return this.useStorage('$translateCookieStorage'); + }; /** * @ngdoc function - * @name angular.isArray - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useStorage + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is an `Array`. - * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is an `Array`. + * Tells angular-translate to use custom service as storage layer. */ - function isArray(arr) { - return Array.isArray(arr) || arr instanceof Array; - } + this.useStorage = function (storageFactory) { + $storageFactory = storageFactory; + return this; + }; /** + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#storagePrefix + * @methodOf pascalprecht.translate.$translateProvider + * * @description - * Determines if a reference is an `Error`. - * Loosely based on https://www.npmjs.com/package/iserror + * Sets prefix for storage key. * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is an `Error`. + * @param {string} prefix Storage key prefix */ - 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; + this.storagePrefix = function (prefix) { + if (!prefix) { + return prefix; } - } + $storagePrefix = prefix; + return this; + }; /** * @ngdoc function - * @name angular.isFunction - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#useMissingTranslationHandlerLog + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is a `Function`. + * Tells angular-translate to use built-in log handler when trying to translate + * a translation Id which doesn't exist. * - * @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. + * This is actually a shortcut method for `useMissingTranslationHandler()`. * - * @private - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a `RegExp`. */ - function isRegExp(value) { - return toString.call(value) === '[object RegExp]'; - } + this.useMissingTranslationHandlerLog = function () { + return this.useMissingTranslationHandler('$translateMissingTranslationHandlerLog'); + }; /** - * Checks if `obj` is a window object. + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useMissingTranslationHandler + * @methodOf pascalprecht.translate.$translateProvider * - * @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(/([-()[\]{}+?*.$^|,:# + * app.config(function ($translateProvider) { + * $translateProvider.useMissingTranslationHandler('customHandler'); + * }); + * + * app.factory('customHandler', function (dep1, dep2) { + * return function (translationId) { + * // something with translationId and dep1 and dep2 + * }; + * }); + * + * + * @param {string} factory Factory name + */ + this.useMissingTranslationHandler = function (factory) { + $missingTranslationHandlerFactory = factory; + return this; }; /** * @ngdoc function - * @name angular.isElement - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#usePostCompiling + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Determines if a reference is a DOM element (or wrapped jQuery element). + * If post compiling is enabled, all translated values will be processed + * again with AngularJS' $compile. + * + * Example: + *
    +   *  app.config(function ($translateProvider) {
    +   *    $translateProvider.usePostCompiling(true);
    +   *  });
    +   * 
    * - * @param {*} value Reference to check. - * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element). + * @param {string} factory Factory name */ - 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. - } + this.usePostCompiling = function (value) { + $postCompilingEnabled = !(!value); + return this; + }; /** - * @param str 'key1,key2,...' - * @returns {object} in the form of {key1:true, key2:true, ...} + * @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: + *
    +   *  app.config(function ($translateProvider) {
    +   *    $translateProvider.forceAsyncReload(true);
    +   *  });
    +   * 
    + * + * @param {boolean} value - valid values are true or false */ - 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; - } + this.forceAsyncReload = function (value) { + $forceAsyncReloadEnabled = !(!value); + return this; + }; /** * @ngdoc function - * @name angular.copy - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#uniformLanguageTag + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Creates a deep copy of `source`, which should be an object or an array. + * Tells angular-translate which language tag should be used as a result when determining + * the current browser language. * - * * 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. + * This setting must be set before invoking {@link pascalprecht.translate.$translateProvider#methods_determinePreferredLanguage determinePreferredLanguage()}. * - *
    + *
    +   * $translateProvider
    +   *   .uniformLanguageTag('bcp47')
    +   *   .determinePreferredLanguage()
    +   * 
    * - *
    - * Only enumerable properties are taken into account. Non-enumerable properties (both on `source` - * and on `destination`) will be ignored. - *
    + * 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 * - * @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. + * See also: + * * http://en.wikipedia.org/wiki/IETF_language_tag + * * http://www.w3.org/International/core/langtags/ + * * http://tools.ietf.org/html/bcp47 * - * @example - - -
    -
    -
    -
    - Gender: -
    - - -
    -
    form = {{user | json}}
    -
    leader = {{leader | json}}
    -
    -
    - - // 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(); - }]); - -
    + * @param {string|object} options - options (or standard) + * @param {string} options.standard - valid values are 'default', 'bcp47', 'java' */ - 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); + this.uniformLanguageTag = function (options) { - return needsRecurse ? copyRecurse(source, destination, maxDepth) : destination; + if (!options) { + options = {}; + } else if (angular.isString(options)) { + options = { + standard : options + }; } - 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()); + uniformLanguageTagResolver = options.standard; - 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; - } + return this; + }; /** * @ngdoc function - * @name angular.equals - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#determinePreferredLanguage + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * 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. * - * Scope and DOMWindow objects are being compared only by identify (`===`). + * The `getLocale()` returns a language key in the format `[lang]_[country]` or + * `[lang]` depending on what the browser provides. * - * @param {*} o1 Object or value to compare. - * @param {*} o2 Object or value to compare. - * @returns {boolean} True if arguments are equal. + * Use this method at your own risk, since not all browsers return a valid + * locale (see {@link pascalprecht.translate.$translateProvider#methods_uniformLanguageTag uniformLanguageTag()}). * - * @example - - -
    -
    -

    User 1

    - Name: - Age: - -

    User 2

    - Name: - Age: - -
    -
    - -
    - User 1:
    {{user1 | json}}
    - User 2:
    {{user2 | json}}
    - Equal:
    {{result}}
    -
    -
    -
    - - angular.module('equalsExample', []).controller('ExampleController', ['$scope', function($scope) { - $scope.user1 = {}; - $scope.user2 = {}; - $scope.compare = function() { - $scope.result = angular.equals($scope.user1, $scope.user2); - }; - }]); - -
    + * @param {Function=} fn Function to determine a browser's locale */ - 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; - } + this.determinePreferredLanguage = function (fn) { - var csp = function csp() { - if (!isDefined(csp.rules)) { + var locale = (fn && angular.isFunction(fn)) ? fn() : getLocale(); - 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 - }; - } + if (!$availableLanguageKeys.length) { + $preferredLanguage = locale; + } else { + $preferredLanguage = negotiateLocale(locale) || locale; } - return csp.rules; + return this; + }; - function noUnsafeEval() { - try { - // eslint-disable-next-line no-new, no-new-func - new Function(''); - return false; - } catch (e) { - return true; + /** + * @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 directive - * @module ng - * @name ngJq + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#useLoaderCache + * @methodOf pascalprecht.translate.$translateProvider * - * @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). + * 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}) * - * Since AngularJS 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 - - - ... - ... - - ``` - * @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 - - - ... - ... - - ``` + * @param {object} cache boolean, string or cache-object */ - 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; - } + 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 jq.name_ = name; + return this; }; - 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 + * @name pascalprecht.translate.$translateProvider#directivePriority + * @methodOf pascalprecht.translate.$translateProvider * * @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. + * 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 */ - 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); - }; + this.directivePriority = function (priority) { + if (priority === undefined) { + // getter + return directivePriority; } 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'; + // setter with chaining + directivePriority = priority; + return this; } - - return val; - } + }; /** * @ngdoc function - * @name angular.toJson - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#statefulFilter + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be - * stripped since AngularJS 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; - * } - * }; - * ``` + * 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. * - * See https://github.com/angular/angular.js/pull/14221 for more information. + * @param {boolean} state - defines the state of the filter */ - function toJson(obj, pretty) { - if (isUndefined(obj)) return undefined; - if (!isNumber(pretty)) { - pretty = pretty ? 2 : null; + this.statefulFilter = function (state) { + if (state === undefined) { + // getter + return statefulFilter; + } else { + // setter with chaining + statefulFilter = state; + return this; } - return JSON.stringify(obj, toJsonReplacer, pretty); - } + }; /** * @ngdoc function - * @name angular.fromJson - * @module ng - * @kind function + * @name pascalprecht.translate.$translateProvider#postProcess + * @methodOf pascalprecht.translate.$translateProvider * * @description - * Deserializes a JSON string. + * The post processor will be intercept right after the translation result. It can modify the result. * - * @param {string} json JSON string to deserialize. - * @returns {Object|Array|string|number} Deserialized JSON string. + * @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 */ - 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('
    ').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); + this.postProcess = function (fn) { + if (fn) { + postProcessFn = fn; + } else { + postProcessFn = undefined; } - } - - ///////////////////////////////////////////////// + return this; + }; /** - * Tries to decode the URI component without throwing an exception. + * @ngdoc function + * @name pascalprecht.translate.$translateProvider#keepContent + * @methodOf pascalprecht.translate.$translateProvider * - * @private - * @param str value potential URI component to check. - * @returns {boolean} True if `value` can be decoded - * with the decodeURIComponent function. + * @description + * If keepContent is set to true than translate directive will always use innerHTML + * as a default translation + * + * Example: + *
    +   *  app.config(function ($translateProvider) {
    +   *    $translateProvider.keepContent(true);
    +   *  });
    +   * 
    + * + * @param {boolean} value - valid values are true or false */ - function tryDecodeURIComponent(value) { - try { - return decodeURIComponent(value); - } catch (e) { - // Ignore any invalid uri component. - } - } + this.keepContent = function (value) { + $keepContent = !(!value); + return this; + }; /** - * Parses an escaped url query string into key-value pairs. - * @returns {Object.} + * @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. + * + *
    +   *  $translate('HEADLINE_TEXT').then(function (translation) {
    +   *    $scope.translatedText = translation;
    +   *  });
    +   * 
    + * + * @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 */ - 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]; + 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 (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 (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 (translationId) { + var deferred = $q.defer(); + var regardless = function (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); } - }); - 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('&') : ''; - } + var deferred = $q.defer(); - /** - * 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, '+'); - } + // trim off any whitespace + if (translationId) { + translationId = trim.apply(translationId); + } - /** - * 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 promiseToWaitFor = (function () { + var promise = langPromises[uses] || langPromises[$preferredLanguage]; - var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-']; + fallbackIndex = 0; - 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; - } + 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]; - function allowAutoBootstrap(document) { - var script = document.currentScript; + 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; - if (!script) { - // Support: IE 9-11 only - // IE does not have `document.currentScript` - return true; - } + // but we can make sure to ALWAYS fallback to preferred language at least + if (indexOf($fallbackLanguage, $preferredLanguage) < 0) { + $fallbackLanguage.push($preferredLanguage); + } + } + } + return promise; + }()); - // 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; - } + 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 () { + // $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'; - var attributes = script.attributes; - var srcs = [attributes.getNamedItem('src'), attributes.getNamedItem('href'), attributes.getNamedItem('xlink:href')]; + promiseToWaitFor['finally'](promiseResolved)['catch'](angular.noop); // we don't care about errors here, already handled + } + return deferred.promise; + }; - return srcs.every(function (src) { - if (!src) { - return true; + /** + * @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 (translationId) { + // applying notFoundIndicators + if ($notFoundIndicatorLeft) { + translationId = [$notFoundIndicatorLeft, translationId].join(' '); } - if (!src.value) { - return false; + if ($notFoundIndicatorRight) { + translationId = [translationId, $notFoundIndicatorRight].join(' '); } + return translationId; + }; - var link = document.createElement('a'); - link.href = src.value; + /** + * @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 (key) { + $uses = key; - 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; + // make sure to store new language key before triggering success event + if ($storageFactory) { + Storage.put($translate.storageKey(), $uses); } - }); - } - // Cached as it has to run during loading so that document.currentScript is available. - var isAutoBootstrapAllowed = allowAutoBootstrap(window.document); + $rootScope.$emit('$translateChangeSuccess', {language : key}); - /** - * @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 `` or `` 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. - * - - -
    - I can add: {{a}} + {{b}} = {{ a+b }} -
    -
    - - angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) { - $scope.a = 1; - $scope.b = 2; - }); - -
    - * - * @example - * - * ### With `ngStrictDi` - * - * Using `ngStrictDi`, you would see something like this: - * - - -
    -
    - I can add: {{a}} + {{b}} = {{ a+b }} - -

    This renders because the controller does not fail to - instantiate, by using explicit annotation style (see - script.js for details) -

    -
    - -
    - Name:
    - Hello, {{name}}! - -

    This renders because the controller does not fail to - instantiate, by using explicit annotation style - (see script.js for details) -

    -
    - -
    - I can add: {{a}} + {{b}} = {{ a+b }} - -

    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. -

    -
    -
    -
    - - 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']; - - - 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; - } - -
    - */ - function angularInit(element, bootstrap) { - var appElement, - module, - config = {}; + // inform default interpolator + defaultInterpolator.setLocale($uses); - // The element `element` has priority over any other element. - forEach(ngAttrPrefixes, function (prefix) { - var name = prefix + 'app'; + var eachInterpolator = function (interpolator, id) { + interpolatorHashMap[id].setLocale($uses); + }; + eachInterpolator.displayName = 'eachInterpolatorLocaleSetter'; - if (!appElement && element.hasAttribute && element.hasAttribute(name)) { - appElement = element; - module = element.getAttribute(name); - } - }); - forEach(ngAttrPrefixes, function (prefix) { - var name = prefix + 'app'; - var candidate; + // inform all others too! + angular.forEach(interpolatorHashMap, eachInterpolator); + $rootScope.$emit('$translateChangeEnd', {language : key}); + }; - if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\:') + ']'))) { - appElement = candidate; - module = candidate.getAttribute(name); - } - }); - if (appElement) { - if (!isAutoBootstrapAllowed) { - try { - window.console.error('AngularJS: disabling automatic bootstrap. - * - * - * - * ``` - * - * @param {DOMElement} element DOM element which is the root of AngularJS application. - * @param {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); + var deferred = $q.defer(); + + $rootScope.$emit('$translateLoadingStart', {language : key}); + pendingLoader = true; - 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(//, '>')); + var cache = loaderCache; + if (typeof(cache) === 'string') { + // getting on-demand instance of loader + cache = $injector.get(cache); } - modules = modules || []; - modules.unshift(['$provide', function ($provide) { - $provide.value('$rootElement', element); - }]); + var loaderOptions = angular.extend({}, $loaderOptions, { + key : key, + $http : angular.extend({}, { + cache : cache + }, $loaderOptions.$http) + }); - if (config.debugInfoEnabled) { - // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`. - modules.push(['$compileProvider', function ($compileProvider) { - $compileProvider.debugInfoEnabled(true); - }]); - } + var onLoaderSuccess = function (data) { + var translationTable = {}; + $rootScope.$emit('$translateLoadingSuccess', {language : key}); - 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); + 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 }); - }]); - return injector; - }; - - var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/; - var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/; + $rootScope.$emit('$translateLoadingEnd', {language : key}); + }; + onLoaderSuccess.displayName = 'onLoaderSuccess'; - if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) { - config.debugInfoEnabled = true; - window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, ''); - } + var onLoaderError = function (key) { + $rootScope.$emit('$translateLoadingError', {language : key}); + deferred.reject(key); + $rootScope.$emit('$translateLoadingEnd', {language : key}); + }; + onLoaderError.displayName = 'onLoaderError'; - if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) { - return doBootstrap(); - } + $injector.get($loaderFactory)(loaderOptions) + .then(onLoaderSuccess, onLoaderError); - window.name = window.name.replace(NG_DEFER_BOOTSTRAP, ''); - angular.resumeBootstrap = function (extraModules) { - forEach(extraModules, function (module) { - modules.push(module); - }); - return doBootstrap(); + return deferred.promise; }; - 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(); - } + if ($storageFactory) { + Storage = $injector.get($storageFactory); - /** - * @name angular.getTestability - * @module ng - * @description - * Get the testability service for the instance of AngularJS on the given - * element. - * @param {DOMElement} element DOM element which is the root of AngularJS application. - */ - function getTestability(rootElement) { - var injector = angular.element(rootElement).injector(); - if (!injector) { - throw ngMinErr('test', 'no injector found for element argument to getTestability'); + if (!Storage.get || !Storage.put) { + throw new Error('Couldn\'t use storage \'' + $storageFactory + '\', missing get() or put() method!'); + } } - 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; - } + // if we have additional interpolations that were added via + // $translateProvider.addInterpolation(), we have to map'em + if ($interpolatorFactories.length) { + var eachInterpolationFactory = function (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'; - // 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. - // AngularJS 1.2+ requires jQuery 1.7+ for on()/off() support. - // AngularJS 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 - }); - } else { - jqLite = JQLite; + angular.forEach($interpolatorFactories, eachInterpolationFactory); } - // All nodes removed from the DOM via various jqLite/jQuery APIs like .remove() - // are passed through jqLite/jQuery.cleanData. Monkey-patch this method to fire - // the $destroy event on all removed nodes. - originalCleanData = jqLite.cleanData; - jqLite.cleanData = function (elems) { - var events; - for (var i = 0, elem; (elem = elems[i]) != null; i++) { - events = (jqLite._data(elem) || {}).events; - if (events && events.$destroy) { - jqLite(elem).triggerHandler('$destroy'); - } + /** + * @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 (langKey) { + var deferred = $q.defer(); + if (Object.prototype.hasOwnProperty.call($translationTable, langKey)) { + deferred.resolve($translationTable[langKey]); + } else if (langPromises[langKey]) { + var onResolve = function (data) { + translations(data.key, data.table); + deferred.resolve(data.table); + }; + onResolve.displayName = 'translationTableResolver'; + langPromises[langKey].then(onResolve, deferred.reject); + } else { + deferred.reject(); } - originalCleanData(elems); + return deferred.promise; }; - angular.element = jqLite; + /** + * @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 (langKey, translationId, interpolateParams, Interpolator, sanitizeStrategy) { + var deferred = $q.defer(); - // Prevent double-proxying. - bindJQueryFired = true; - } + var onResolve = function (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); - /** - * 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; - } + deferred.resolve(interpolatedValue); - function assertArgFn(arg, name, acceptArrayAnnotation) { - if (acceptArrayAnnotation && isArray(arg)) { - arg = arg[arg.length - 1]; - } + } + Interpolator.setLocale($uses); + } else { + deferred.reject(); + } + }; + onResolve.displayName = 'fallbackTranslationResolver'; - 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; - } + getTranslationTable(langKey).then(onResolve, deferred.reject); - /** - * 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 deferred.promise; + }; - /** - * 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; + /** + * @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 (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); + } - 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 result; + }; - /** - * 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); + /** + * @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 (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; } - } - - 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); - } + /** + * @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 (fallbackLanguageIndex, translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy) { + var deferred = $q.defer(); - 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(); + 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 { - 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; + var missingTranslationHandlerTranslation = translateByHandler(translationId, interpolateParams, defaultTranslationText); - /** - * @ngdoc type - * @name angular.Module - * @module ng - * @description - * - * Interface for configuring AngularJS {@link angular.module modules}. - */ + // 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; + }; - function setupModuleLoader(window) { + /** + * @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 (fallbackLanguageIndex, translationId, interpolateParams, Interpolator, sanitizeStrategy) { + var result; - var $injectorMinErr = minErr('$injector'); - var ngMinErr = minErr('ng'); + 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; + }; - function ensure(obj, name, factory) { - return obj[name] || (obj[name] = factory()); - } + /** + * 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 (translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy) { + // Start with the fallbackLanguage with index 0 + return resolveForFallbackLanguage((startFallbackIteration > 0 ? startFallbackIteration : fallbackIndex), translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy); + }; - var angular = ensure(window, 'angular', Object); + /** + * Translates with the usage of the fallback languages. + * + * @param translationId + * @param interpolateParams + * @param Interpolator + * @param sanitizeStrategy + * @returns {String} translation + */ + var fallbackTranslationInstant = function (translationId, interpolateParams, Interpolator, sanitizeStrategy) { + // Start with the fallbackLanguage with index 0 + return resolveForFallbackLanguageInstant((startFallbackIteration > 0 ? startFallbackIteration : fallbackIndex), translationId, interpolateParams, Interpolator, sanitizeStrategy); + }; - // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap - angular.$$minErr = angular.$$minErr || minErr; + var determineTranslation = function (translationId, interpolateParams, interpolationId, defaultTranslationText, uses, sanitizeStrategy) { - return ensure(angular, 'module', function () { - /** @type {Object.} */ - var modules = {}; + var deferred = $q.defer(); - /** - * @ngdoc function - * @name angular.module - * @module ng - * @description - * - * The `angular.module` is a global place for creating, registering and retrieving AngularJS - * modules. - * All modules (AngularJS 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.=} 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 table = uses ? $translationTable[uses] : $translationTable, + Interpolator = (interpolationId) ? interpolatorHashMap[interpolationId] : defaultInterpolator; - var _info = {}; + // 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]; - var assertNotHasOwnProperty = function assertNotHasOwnProperty(name, context) { - if (name === 'hasOwnProperty') { - throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context); - } - }; + // If using link, rerun $translate with linked translationId and return it + if (translation.substr(0, 2) === '@:') { - assertNotHasOwnProperty(name, 'module'); - if (requires && modules.hasOwnProperty(name)) { - modules[name] = null; + $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); } - 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); + } 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); } - - /** @type {!Array.>} */ - var invokeQueue = []; - - /** @type {!Array.} */ - var configBlocks = []; - - /** @type {!Array.} */ - 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 AngularJS expression identifier - * @param {Function} filterFactory Factory function for creating new instance of filter. - * @description - * See {@link ng.$filterProvider#register $filterProvider.register()}. - * - *
    - * **Note:** Filter names must be valid AngularJS {@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`). - *
    - */ - 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|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), - * 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}) - * - * @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 configure services by injecting their - * {@link angular.Module#provider `providers`}, e.g. for adding routes to the - * {@link ngRoute.$routeProvider $routeProvider}. - * - * Note that you can only inject {@link angular.Module#provider `providers`} and - * {@link angular.Module#constant `constants`} into this function. - * - * 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); + } else { + if (defaultTranslationText) { + deferred.resolve(defaultTranslationText); + } else { + deferred.reject(applyNotFoundIndicators(translationId)); } + } + } + return deferred.promise; + }; - 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; - }; - } + var determineTranslationInstant = function (translationId, interpolateParams, interpolationId, uses, sanitizeStrategy) { - /** - * @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; - }; - } - }); - }; - }); - } + var result, table = uses ? $translationTable[uses] : $translationTable, + Interpolator = defaultInterpolator; - /* global shallowCopy: true */ + // if the interpolation id exists use custom interpolator + if (interpolatorHashMap && Object.prototype.hasOwnProperty.call(interpolatorHashMap, interpolationId)) { + Interpolator = interpolatorHashMap[interpolationId]; + } - /** - * 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 || []; + // 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]; - for (var i = 0, ii = src.length; i < ii; i++) { - dst[i] = src[i]; - } - } else if (isObject(src)) { - dst = dst || {}; + // 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); + } - for (var key in src) { - if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) { - dst[key] = src[key]; + // 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 dst || src; - } - - /* exported toDebugString */ + return result; + }; - function serializeObject(obj, maxDepth) { - var seen = []; + var clearNextLangAndPromise = function (key) { + if ($nextLang === key) { + $nextLang = undefined; + } + langPromises[key] = undefined; + }; - // 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)) { + var applyPostProcessing = function (translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy) { + var fn = postProcessFn; - if (seen.indexOf(val) >= 0) return '...'; + if (fn) { - seen.push(val); + if (typeof(fn) === 'string') { + // getting on-demand instance + fn = $injector.get(fn); + } + if (fn) { + return fn(translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy); + } } - 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, - ngRefDirective, - 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, - $$IntervalFactoryProvider, - $IntervalProvider, - $HttpProvider, - $HttpParamSerializerProvider, - $HttpParamSerializerJQLikeProvider, - $HttpBackendProvider, - $xhrFactoryProvider, - $jsonpCallbacksProvider, - $LocationProvider, - $LogProvider, - $$MapProvider, - $ParseProvider, - $RootScopeProvider, - $QProvider, - $$QProvider, - $$SanitizeUriProvider, - $SceProvider, - $SceDelegateProvider, - $SnifferProvider, - $$TaskTrackerFactoryProvider, - $TemplateCacheProvider, - $TemplateRequestProvider, - $$TestabilityProvider, - $TimeoutProvider, - $$RAFProvider, - $WindowProvider, - $$jqLiteProvider, - $$CookieReaderProvider - */ + return resolvedTranslation; + }; - /** - * @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.7.5', - major: 1, - minor: 7, - dot: 5, - codeName: 'anti-prettification' - }; - - 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, - 'callbacks': { $$counter: 0 }, - 'getTestability': getTestability, - 'reloadWithDebugInfo': reloadWithDebugInfo, - '$$minErr': minErr, - '$$csp': csp, - '$$encodeUriSegment': encodeUriSegment, - '$$encodeUriQuery': encodeUriQuery, - '$$lowercase': lowercase, - '$$stringify': stringify, - '$$uppercase': uppercase - }); + var loadTranslationsIfMissing = function (key) { + if (!$translationTable[key] && $loaderFactory && !langPromises[key]) { + langPromises[key] = loadAsync(key).then(function (translation) { + translations(translation.key, translation.table); + return translation; + }); + } + }; - angularModule = setupModuleLoader(window); + /** + * @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; + }; - 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, - ngRef: ngRefDirective, - 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, - $$intervalFactory: $$IntervalFactoryProvider, - $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, - $$taskTrackerFactory: $$TaskTrackerFactoryProvider, - $templateCache: $TemplateCacheProvider, - $templateRequest: $TemplateRequestProvider, - $$testability: $$TestabilityProvider, - $timeout: $TimeoutProvider, - $window: $WindowProvider, - $$rAF: $$RAFProvider, - $$jqLite: $$jqLiteProvider, - $$Map: $$MapProvider, - $$cookieReader: $$CookieReaderProvider - }); - }]).info({ angularVersion: '1.7.5' }); - } + /** + * @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; + }; - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * 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? * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + /** + * @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; + }; - /* global - JQLitePrototype: true, - BOOLEAN_ATTR: true, - ALIASED_ATTR: true - */ + /** + * @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; + } - ////////////////////////////////// - //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 AngularJS's built-in subset of jQuery, called "jQuery lite" or **jqLite**. - * - * jqLite is a tiny, API-compatible subset of jQuery that allows - * AngularJS 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. - * - *
    **Note:** All element references in AngularJS 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.
    - * - *
    **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()`.
    - * - * ## AngularJS'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/) - Contrary to jQuery, this doesn't clone elements - * so will not work correctly when invoked on a jqLite object containing more than one DOM node - * - [`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 - * AngularJS 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. - */ + /** + * @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; + } + } - 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]] || {}; - }; + /** + * @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; + }; - function jqNextId() { - return ++jqId; - } + /** + * @ngdoc function + * @name pascalprecht.translate.$translate#storage + * @methodOf pascalprecht.translate.$translate + * + * @description + * Returns registered storage. + * + * @return {object} Storage + */ + $translate.storage = function () { + return Storage; + }; - var DASH_LOWERCASE_REGEXP = /-([a-z])/g; - var MS_HACK_REGEXP = /^-ms-/; - var MOUSE_EVENT_MAP = { mouseleave: 'mouseout', mouseenter: 'mouseover' }; - var jqLiteMinErr = minErr('jqLite'); + /** + * @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; - /** - * 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-')); - } + /** + * @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; + } - function fnCamelCaseReplace(all, letter) { - return letter.toUpperCase(); - } + var deferred = $q.defer(); + deferred.promise.then(null, angular.noop); // AJS "Possibly unhandled rejection" - /** - * Converts kebab-case to camelCase. - * @param name Name to normalize - */ - function kebabToCamel(name) { - return name.replace(DASH_LOWERCASE_REGEXP, fnCamelCaseReplace); - } + $rootScope.$emit('$translateChangeStart', {language : key}); - 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; + // 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); + } - var wrapMap = { - 'option': [1, ''], + if (aliasedKey) { + key = aliasedKey; + } - 'thead': [1, '', '
    '], - 'col': [2, '', '
    '], - 'tr': [2, '', '
    '], - 'td': [3, '', '
    '], - '_default': [0, '', ''] - }; + // 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); + } - wrapMap.optgroup = wrapMap.option; - wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; - wrapMap.th = wrapMap.td; + return deferred.promise; + }; - function jqLiteIsTextNode(html) { - return !HTML_REGEXP.test(html); - } + /** + * @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(); + }; - 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; - } + /** + * @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(); + }; - function jqLiteHasData(node) { - for (var key in jqCache[node.ng339]) { - return true; - } - return false; - } + /** + * @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; + }; - function jqLiteBuildFragment(html, context) { - var tmp, - tag, - wrap, - fragment = context.createDocumentFragment(), - nodes = [], - i; + /** + * @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; + }; - 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>') + wrap[2]; + /** + * @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; + }; - // Descend through wrappers to the right content - i = wrap[0]; - while (i--) { - tmp = tmp.lastChild; + /** + * @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!'); } - nodes = concat(nodes, tmp.childNodes); + $rootScope.$emit('$translateRefreshStart', {language : langKey}); - tmp = fragment.firstChild; - tmp.textContent = ''; - } - - // Remove wrapper from fragment - fragment.textContent = ''; - fragment.innerHTML = ''; // Clear inner HTML - forEach(nodes, function (node) { - fragment.appendChild(node); - }); + var deferred = $q.defer(), updatedLanguages = {}; - return fragment; - } + //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; + } - function jqLiteParseHTML(html, context) { - context = context || window.document; - var parsed; + //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 (parsed = SINGLE_TAG_REGEXP.exec(html)) { - return [context.createElement(parsed[1])]; - } + 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); - if (parsed = jqLiteBuildFragment(html, context)) { - return parsed.childNodes; - } + } else if ($translationTable[langKey]) { + //just refresh the specified language cache + loadNewData(langKey).then(deferred.resolve, deferred.reject); - return []; - } + } else { + deferred.reject(); + } - function jqLiteWrapNode(node, wrapper) { - var parent = node.parentNode; + return deferred.promise; + }; - if (parent) { - parent.replaceChild(wrapper, node); - } + /** + * @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) { - wrapper.appendChild(node); - } + // 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; - // 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); - }; + // Detect undefined and null values to shorten the execution and prevent exceptions + if (translationId === null || angular.isUndefined(translationId)) { + return translationId; + } - ///////////////////////////////////////////// - function JQLite(element) { - if (element instanceof JQLite) { - return element; - } + // Check forceLanguage is present + if (forceLanguage) { + loadTranslationsIfMissing(forceLanguage); + } - var argIsString; + // 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; + } - 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'); + // We discarded unacceptable values. So we just need to verify if translationId is empty String + if (angular.isString(translationId) && translationId.length < 1) { + return translationId; } - return new JQLite(element); - } - if (argIsString) { - jqLiteAddNodes(this, jqLiteParseHTML(element)); - } else if (isFunction(element)) { - jqLiteReady(element); - } else { - jqLiteAddNodes(this, element); - } - } + // trim off any whitespace + if (translationId) { + translationId = trim.apply(translationId); + } - function jqLiteClone(element) { - return element.cloneNode(true); - } + 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; + } + } - function jqLiteDealoc(element, onlyDescendants) { - if (!onlyDescendants && jqLiteAcceptsData(element)) jqLite.cleanData([element]); + 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); - if (element.querySelectorAll) { - jqLite.cleanData(element.querySelectorAll('*')); - } - } + // 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); + } - function isEmptyObject(obj) { - var name; + if ($missingTranslationHandlerFactory && !pendingLoader && missingTranslationHandlerTranslation) { + result = missingTranslationHandlerTranslation; + } + } + } - for (name in obj) { - return false; - } - return true; - } + return result; + }; - function removeIfEmptyData(element) { - var expandoId = element.ng339; - var expandoStore = expandoId && jqCache[expandoId]; + /** + * @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; + }; - var events = expandoStore && expandoStore.events; - var data = expandoStore && expandoStore.data; + /** + * @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; + }; - if ((!data || isEmptyObject(data)) && (!events || isEmptyObject(events))) { - delete jqCache[expandoId]; - element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it - } - } + // internal purpose only + $translate.directivePriority = function () { + return directivePriority; + }; - function jqLiteOff(element, type, fn, unsupported) { - if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument'); + // internal purpose only + $translate.statefulFilter = function () { + return statefulFilter; + }; - var expandoStore = jqLiteExpandoStore(element); - var events = expandoStore && expandoStore.events; - var handle = expandoStore && expandoStore.handle; + /** + * @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; + }; - if (!handle) return; //no listeners registered + var $onReadyDeferred = $q.defer(); + $onReadyDeferred.promise.then(function () { + $isReady = true; + }); - if (!type) { - for (type in events) { - if (type !== '$destroy') { - element.removeEventListener(type, handle); - } - delete events[type]; + /** + * @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); } - } 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]); - } - }); - } - - removeIfEmptyData(element); - } - - function jqLiteRemoveData(element, name) { - var expandoId = element.ng339; - var expandoStore = expandoId && jqCache[expandoId]; - - if (expandoStore) { - if (name) { - delete expandoStore.data[name]; + if ($isReady) { + deferred.resolve(); } else { - expandoStore.data = {}; + $onReadyDeferred.promise.then(deferred.resolve); } + return deferred.promise; + }; - removeIfEmptyData(element); - } - } - - function jqLiteExpandoStore(element, createIfNecessary) { - var expandoId = element.ng339, - expandoStore = expandoId && jqCache[expandoId]; + /** + * @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; + }; - if (createIfNecessary && !expandoStore) { - element.ng339 = expandoId = jqNextId(); - expandoStore = jqCache[expandoId] = { events: {}, data: {}, handle: undefined }; - } + /** + * @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; + }; - return expandoStore; - } + // 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; + }); - function jqLiteData(element, key, value) { - if (jqLiteAcceptsData(element)) { - var prop; + if ($loaderFactory) { - var isSimpleSetter = isDefined(value); - var isSimpleGetter = !isSimpleSetter && key && !isObject(key); - var massGetter = !key; - var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter); - var data = expandoStore && expandoStore.data; + // 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()); + } + } - 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]; - } + // 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 (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()}); } - } - function jqLiteHasClass(element, selector) { - if (!element.getAttribute) return false; - return (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' ').indexOf(' ' + selector + ' ') > -1; - } + return $translate; + }]; +} - function jqLiteRemoveClass(element, cssClasses) { - if (cssClasses && element.setAttribute) { - var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' '); - var newClasses = existingClasses; +$translate.displayName = 'displayName'; - forEach(cssClasses.split(' '), function (cssClass) { - cssClass = trim(cssClass); - newClasses = newClasses.replace(' ' + cssClass + ' ', ' '); - }); +/** + * @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); - if (newClasses !== existingClasses) { - element.setAttribute('class', trim(newClasses)); - } - } - } +function $translateDefaultInterpolation ($interpolate, $translateSanitization) { - function jqLiteAddClass(element, cssClasses) { - if (cssClasses && element.setAttribute) { - var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' '); - var newClasses = existingClasses; + 'use strict'; - forEach(cssClasses.split(' '), function (cssClass) { - cssClass = trim(cssClass); - if (newClasses.indexOf(' ' + cssClass + ' ') === -1) { - newClasses += cssClass + ' '; - } - }); + var $translateInterpolator = {}, + $locale, + $identifier = 'default'; - if (newClasses !== existingClasses) { - element.setAttribute('class', trim(newClasses)); - } + /** + * @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 = ''; } - } - function jqLiteAddNodes(root, elements) { - // THIS CODE IS VERY HOT. Don't make changes without benchmarking. + return interpolatedText; + }; - if (elements) { + return $translateInterpolator; +} - // if a Node (the most common case) - if (elements.nodeType) { - root[root.length++] = elements; - } else { - var length = elements.length; +$translateDefaultInterpolation.displayName = '$translateDefaultInterpolation'; - // 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; - } - } - } - } +angular.module('pascalprecht.translate').constant('$STORAGE_KEY', 'NG_TRANSLATE_LANG_KEY'); - function jqLiteController(element, name) { - return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller'); - } +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 + + +
    + +
    
    +        
    TRANSLATION_ID
    +
    
    +        
    
    +        
    {{translationId}}
    +
    
    +        
    WITH_VALUES
    +
    
    +        
    WITH_VALUES
    +
    
    +        
    
     
    -  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];
    +      
    +
    + + angular.module('ngView', ['pascalprecht.translate']) - while (element) { - for (var i = 0, ii = names.length; i < ii; i++) { - if (isDefined(value = jqLite.data(element, names[i]))) return value; - } + .config(function ($translateProvider) { - // 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; - } - } + $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'); - 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); - } + angular.module('ngView').controller('TranslateCtrl', function ($scope) { + $scope.translationId = 'TRANSLATION_ID'; - 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); - } - } + $scope.values = { + value: 78 + }; + }); + + + it('should translate', function () { + inject(function ($rootScope, $compile) { + $rootScope.translationId = 'TRANSLATION_ID'; - function jqLiteReady(fn) { - function trigger() { - window.document.removeEventListener('DOMContentLoaded', trigger); - window.removeEventListener('load', trigger); - fn(); - } + element = $compile('

    ')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('Hello there!'); - // 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. + element = $compile('

    ')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('Hello there!'); - // Works for modern browsers and IE9 - window.document.addEventListener('DOMContentLoaded', trigger); + element = $compile('

    TRANSLATION_ID

    ')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('Hello there!'); - // Fallback to window.onload for others - window.addEventListener('load', trigger); - } - } + element = $compile('

    {{translationId}}

    ')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('Hello there!'); + + element = $compile('

    ')($rootScope); + $rootScope.$digest(); + expect(element.attr('title')).toBe('Hello there!'); - ////////////////////////////////////////// - // Functions which are declared directly. - ////////////////////////////////////////// - var JQLitePrototype = JQLite.prototype = { - ready: jqLiteReady, - toString: function toString() { - var value = []; - forEach(this, function (e) { - value.push('' + e); + element = $compile('

    ')($rootScope); + $rootScope.$digest(); + expect(element.text()).toBe('The interpolation key is camel cased: Hello'); + }); }); - return '[' + value.join(', ') + ']'; - }, +
    +
    + */ +.directive('translate', translateDirective); +function translateDirective($translate, $interpolate, $compile, $parse, $rootScope) { - eq: function eq(index) { - return index >= 0 ? jqLite(this[index]) : jqLite(this[this.length + index]); - }, + 'use strict'; - length: 0, - push: push, - sort: [].sort, - splice: [].splice + /** + * @name trim + * @private + * + * @description + * trim polyfill + * + * @returns {string} The string stripped of whitespace from both ends + */ + var trim = function() { + return this.toString().replace(/^\s+|\s+$/g, ''); }; - ////////////////////////////////////////// - // 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' + /** + * @name lowercase + * @private + * + * @description + * Return the lowercase string only if the type is string + * + * @returns {string} The string all in lowercase + */ + var lowercase = function (string) { + return angular.isString(string) ? string.toLowerCase() : string; }; - 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]); - jqLiteOff(nodes[i]); - } - } - }, function (fn, name) { - JQLite[name] = fn; - }); + return { + restrict: 'AE', + scope: true, + priority: $translate.directivePriority(), + compile: function (tElement, tAttr) { - forEach({ - data: jqLiteData, - inheritedData: jqLiteInheritedData, + var translateValuesExist = (tAttr.translateValues) ? + tAttr.translateValues : undefined; - 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']); - }, + var translateInterpolation = (tAttr.translateInterpolation) ? + tAttr.translateInterpolation : undefined; - 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'); - }, + var translateSanitizeStrategyExist = (tAttr.translateSanitizeStrategy) ? + tAttr.translateSanitizeStrategy : undefined; - controller: jqLiteController, + var translateValueExist = tElement[0].outerHTML.match(/translate-value-+/i); - injector: function injector(element) { - return jqLiteInheritedData(element, '$injector'); - }, + var interpolateRegExp = '^(.*)(' + $interpolate.startSymbol() + '.*' + $interpolate.endSymbol() + ')(.*)', + watcherRegExp = '^(.*)' + $interpolate.startSymbol() + '(.*)' + $interpolate.endSymbol() + '(.*)'; - removeAttr: function removeAttr(element, name) { - element.removeAttribute(name); - }, + return function linkFn(scope, iElement, iAttr) { - hasClass: jqLiteHasClass, + scope.interpolateParams = {}; + scope.preText = ''; + scope.postText = ''; + scope.translateNamespace = getTranslateNamespace(scope); + var translationIds = {}; - css: function css(element, name, value) { - name = cssKebabToCamel(name); + var initInterpolationParams = function (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]; + } + } + } + }; - if (isDefined(value)) { - element.style[name] = value; - } else { - return element.style[name]; - } - }, + // 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 (translationId) { - 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; - } + // Remove any old watcher + if (angular.isFunction(observeElementTranslation._unwatchOld)) { + observeElementTranslation._unwatchOld(); + observeElementTranslation._unwatchOld = undefined; + } - var lowercasedName = lowercase(name); - var isBooleanAttr = BOOLEAN_ATTR[lowercasedName]; + 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(); + }; - if (isDefined(value)) { - // setter + var observeAttributeTranslation = function (translateAttr) { + iAttr.$observe(translateAttr, function (translationId) { + translationIds[translateAttr] = translationId; + updateTranslations(); + }); + }; - if (value === null || value === false && isBooleanAttr) { - element.removeAttribute(name); - } else { - element.setAttribute(name, isBooleanAttr ? lowercasedName : value); - } - } else { - // getter + // initial setup with values + initInterpolationParams(scope.interpolateParams, iAttr, tAttr); - ret = element.getAttribute(name); + var firstAttributeChangedEvent = true; + iAttr.$observe('translate', function (translationId) { + if (typeof translationId === 'undefined') { + // case of element "xyz" + observeElementTranslation(''); + } else { + // case of regular attribute + if (translationId !== '' || !firstAttributeChangedEvent) { + translationIds.translate = translationId; + updateTranslations(); + } + } + firstAttributeChangedEvent = false; + }); - if (isBooleanAttr && ret !== null) { - ret = lowercasedName; + for (var translateAttr in iAttr) { + if (iAttr.hasOwnProperty(translateAttr) && translateAttr.substr(0, 13) === 'translateAttr' && translateAttr.length > 13) { + observeAttributeTranslation(translateAttr); + } } - // 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; + iAttr.$observe('translateDefault', function (value) { + scope.defaultText = value; + updateTranslations(); + }); - function getText(element, value) { - if (isUndefined(value)) { - var nodeType = element.nodeType; - return nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT ? element.textContent : ''; + if (translateSanitizeStrategyExist) { + iAttr.$observe('translateSanitizeStrategy', function (value) { + scope.sanitizeStrategy = $parse(value)(scope.$parent); + updateTranslations(); + }); } - 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); + if (translateValuesExist) { + iAttr.$observe('translateValues', function (interpolateParams) { + if (interpolateParams) { + scope.$parent.$watch(function () { + angular.extend(scope.interpolateParams, $parse(interpolateParams)(scope.$parent)); + }); } }); - 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]); - } + if (translateValueExist) { + var observeValueAttribute = function (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); } } - // 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; + // Master update function + var updateTranslations = function () { + for (var key in translationIds) { + if (translationIds.hasOwnProperty(key) && translationIds[key] !== undefined) { + updateTranslation(key, translationIds[key], scope, scope.interpolateParams, scope.defaultText, scope.translateNamespace); + } + } + }; - if (isUndefined(event.immediatePropagationStopped)) { - var originalStopImmediatePropagation = event.stopImmediatePropagation; - event.stopImmediatePropagation = function () { - event.immediatePropagationStopped = true; + // Put translation processing function outside loop + var updateTranslation = function(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; + } - if (event.stopPropagation) { - event.stopPropagation(); + $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); } + }; - if (originalStopImmediatePropagation) { - originalStopImmediatePropagation.call(event); + var applyTranslation = function (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); } }; - } - event.isImmediatePropagationStopped = function () { - return event.immediatePropagationStopped === true; - }; + if (translateValuesExist || translateValueExist || iAttr.translateDefault) { + scope.$watch('interpolateParams', updateTranslations, true); + } - // Some events have special handlers that wrap the real handler - var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper; + // Replaced watcher on translateLanguage with event listener + scope.$on('translateLanguageChanged', updateTranslations); - // Copy event handlers in case event handlers array is modified during execution. - if (eventFnsLength > 1) { - eventFns = shallowCopy(eventFns); - } + // Ensures the text will be refreshed after the current language was changed + // w/ $translate.use(...) + var unbind = $rootScope.$on('$translateChangeSuccess', updateTranslations); - for (var i = 0; i < eventFnsLength; i++) { - if (!event.isImmediatePropagationStopped()) { - handlerWrapper(element, event, eventFns[i]); + // 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); + }; + } + }; +} - // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all - // events on `element` - eventHandler.elem = element; - return eventHandler; +/** + * Returns the scope's namespace. + * @private + * @param scope + * @returns {string} + */ +function getTranslateNamespace(scope) { + 'use strict'; + if (scope.translateNamespace) { + return scope.translateNamespace; } - - function defaultHandlerWrapper(element, event, handler) { - handler.call(element, event); + if (scope.$parent) { + return getTranslateNamespace(scope.$parent); } +} - 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); - } - } +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 + + +
    - ////////////////////////////////////////// - // 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'); +
    +
    + + angular.module('ngView', ['pascalprecht.translate']) - // Do not add event handlers to non-elements because they will not be cleaned up. - if (!jqLiteAcceptsData(element)) { - return; - } + .config(function ($translateProvider) { - var expandoStore = jqLiteExpandoStore(element, true); - var events = expandoStore.events; - var handle = expandoStore.handle; + $translateProvider.translations('en',{ + 'TRANSLATION_ID': 'Hello there!', + 'WITH_VALUES': 'The following value is dynamic: {{value}}', + }).preferredLanguage('en'); - 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; + angular.module('ngView').controller('TranslateCtrl', function ($scope) { + $scope.translationId = 'TRANSLATION_ID'; - var addHandler = function addHandler(type, specialHandlerWrapper, noEventListener) { - var eventFns = events[type]; + $scope.values = { + value: 78 + }; + }); + + + it('should translate', function () { + inject(function ($rootScope, $compile) { + $rootScope.translationId = 'TRANSLATION_ID'; + + element = $compile('')($rootScope); + $rootScope.$digest(); + expect(element.attr('placeholder)).toBe('Hello there!'); + expect(element.attr('title)).toBe('The following value is dynamic: 5'); + }); + }); + +
    + */ +.directive('translateAttr', translateAttrDirective); +function translateAttrDirective($translate, $rootScope) { - if (!eventFns) { - eventFns = events[type] = []; - eventFns.specialHandlerWrapper = specialHandlerWrapper; - if (type !== '$destroy' && !noEventListener) { - element.addEventListener(type, handle); + '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 () { + 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); + }); + }); - eventFns.push(fn); + // Removing unused attributes that were previously used + angular.forEach(previousAttributes, function (flag, attributeName) { + if (!translateAttr[attributeName]) { + element.removeAttr(attributeName); + delete previousAttributes[attributeName]; + } + }); }; - while (i--) { - type = types[i]; - if (MOUSE_EVENT_MAP[type]) { - addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper); - addHandler(type, undefined, true); - } else { - addHandler(type); - } + // 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); } - }, - off: jqLiteOff, + // Replaced watcher on translateLanguage with event listener + scope.$on('translateLanguageChanged', updateTranslations); - one: function one(element, type, fn) { - element = jqLite(element); + // Ensures the text will be refreshed after the current language was changed + // w/ $translate.use(...) + var unbind = $rootScope.$on('$translateChangeSuccess', updateTranslations); - //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); - }, + 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) { - 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); + 'use strict'; + + return { + compile : function (tElement) { + var applyCloak = function (element) { + element.addClass($translate.cloakClassName()); + }, + removeCloak = function (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 { - parent.replaceChild(node, element); + $translate.onReady(iRemoveCloak); } - index = node; - }); - }, + }; + } + }; +} - children: function children(element) { - var children = []; - forEach(element.childNodes, function (element) { - if (element.nodeType === NODE_TYPE_ELEMENT) { - children.push(element); - } - }); - return children; - }, +translateCloakDirective.displayName = 'translateCloakDirective'; - contents: function contents(element) { - return element.contentDocument || element.childNodes || []; - }, +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 is 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 + + +
    - append: function append(element, node) { - var nodeType = element.nodeType; - if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return; +
    +

    .HEADERS.TITLE

    +

    .HEADERS.WELCOME

    +
    - node = new JQLite(node); +
    +

    .TITLE

    +

    .WELCOME

    +
    - for (var i = 0, ii = node.length; i < ii; i++) { - var child = node[i]; - element.appendChild(child); - } - }, +
    +
    + + angular.module('ngView', ['pascalprecht.translate']) - 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); - }); - } - }, + .config(function ($translateProvider) { - wrap: function wrap(element, wrapNode) { - jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]); - }, + $translateProvider.translations('en',{ + 'TRANSLATION_ID': 'Hello there!', + 'CONTENT': { + 'HEADERS': { + TITLE: 'Title' + } + }, + 'CONTENT.HEADERS.WELCOME': 'Welcome' + }).preferredLanguage('en'); - remove: jqLiteRemove, + }); - detach: function detach(element) { - jqLiteRemove(element, true); - }, + +
    + */ +.directive('translateNamespace', translateNamespaceDirective); - after: function after(element, newElement) { - var index = element, - parent = element.parentNode; +function translateNamespaceDirective() { - if (parent) { - newElement = new JQLite(newElement); + 'use strict'; - for (var i = 0, ii = newElement.length; i < ii; i++) { - var node = newElement[i]; - parent.insertBefore(node, index.nextSibling); - index = node; + return { + restrict: 'A', + scope: true, + compile: function () { + return { + pre: function (scope, iElement, iAttrs) { + scope.translateNamespace = _getTranslateNamespace(scope); + + if (scope.translateNamespace && iAttrs.translateNamespace.charAt(0) === '.') { + scope.translateNamespace += iAttrs.translateNamespace; + } else { + scope.translateNamespace = iAttrs.translateNamespace; + } } - } - }, + }; + } + }; +} - addClass: jqLiteAddClass, - removeClass: jqLiteRemoveClass, +/** + * 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); + } +} - 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); - }); - } - }, +translateNamespaceDirective.displayName = 'translateNamespaceDirective'; - parent: function parent(element) { - var parent = element.parentNode; - return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null; - }, +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 + + +
    - next: function next(element) { - return element.nextElementSibling; - }, +
    +

    HELLO

    +
    - find: function find(element, selector) { - if (element.getElementsByTagName) { - return element.getElementsByTagName(selector); - } else { - return []; - } - }, +
    +

    HELLO

    +
    - clone: jqLiteClone, +
    +
    + + angular.module('ngView', ['pascalprecht.translate']) - triggerHandler: function triggerHandler(element, event, extraParameters) { + .config(function ($translateProvider) { - var dummyEvent, eventFnsCopy, handlerArgs; - var eventName = event.type || event; - var expandoStore = jqLiteExpandoStore(element); - var events = expandoStore && expandoStore.events; - var eventFns = events && events[eventName]; + $translateProvider + .translations('en',{ + 'HELLO': 'Hello world!' + }) + .translations('de',{ + 'HELLO': 'Hallo Welt!' + }) + .preferredLanguage('en'); - 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); - } + +
    + */ +.directive('translateLanguage', translateLanguageDirective); - // Copy event handlers in case event handlers array is modified during execution. - eventFnsCopy = shallowCopy(eventFns); - handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent]; +function translateLanguageDirective() { - forEach(eventFnsCopy, function (fn) { - if (!dummyEvent.isImmediatePropagationStopped()) { - fn.apply(element, handlerArgs); - } + 'use strict'; + + return { + restrict: 'A', + scope: true, + compile: function () { + return function linkFn(scope, iElement, iAttrs) { + + iAttrs.$observe('translateLanguage', function (newTranslateLanguage) { + scope.translateLanguage = newTranslateLanguage; }); - } + + scope.$watch('translateLanguage', function(){ + scope.$broadcast('translateLanguageChanged'); + }); + }; } - }, 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; - }; - }); +translateLanguageDirective.displayName = 'translateLanguageDirective'; - // 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); - } - }); - }; - } +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 + + +
    - /** - * 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; +
    {{ 'TRANSLATION_ID' | translate }}
    +
    {{ translationId | translate }}
    +
    {{ 'WITH_VALUES' | translate:'{value: 5}' }}
    +
    {{ 'WITH_VALUES' | translate:values }}
    - if (key) { - if (typeof key === 'function') { - key = obj.$$hashKey(); - } - return key; - } +
    +
    + + angular.module('ngView', ['pascalprecht.translate']) - 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; - } + .config(function ($translateProvider) { - return key; - } + $translateProvider.translations('en', { + 'TRANSLATION_ID': 'Hello there!', + 'WITH_VALUES': 'The following value is dynamic: {{value}}' + }); + $translateProvider.preferredLanguage('en'); - // 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) { - 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]; - } - }, - has: function has(key) { - key = this._transformKey(key); - var idx = this._idx(key); - return idx !== -1; - }, - 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; - } - }; + angular.module('ngView').controller('TranslateCtrl', function ($scope) { + $scope.translationId = 'TRANSLATION_ID'; - // 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; + $scope.values = { + value: 78 + }; + }); + +
    + */ +.filter('translate', translateFilterFactory); - var $$MapProvider = [/** @this */function () { - this.$get = [function () { - return NgMap; - }]; - }]; +function translateFilterFactory($parse, $translate) { - /** - * @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.} 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 AngularJS app - * from outside AngularJS. 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 = $('
    {{content.label}}
    '); - * $(document.body).append($div); - * - * angular.element(document).injector().invoke(function($compile) { - * var scope = angular.element($div).scope(); - * $compile($div)(scope); - * }); - * ``` - */ + 'use strict'; - /** - * @ngdoc module - * @name auto - * @installation - * @description - * - * Implicit module which gets automatically added to each {@link auto.$injector $injector}. - */ + var translateFilter = function (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); + } - 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'); + return $translate.instant(translationId, interpolateParams, interpolation, forceLanguage); + }; - function stringifyFn(fn) { - return Function.prototype.toString.call(fn); + if ($translate.statefulFilter()) { + translateFilter.$stateful = true; } - function extractArgs(fn) { - var fnText = stringifyFn(fn).replace(STRIP_COMMENTS, ''), - args = fnText.match(ARROW_ARG) || fnText.match(FN_ARGS); - return args; - } + return translateFilter; +} - 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'; - } +translateFilterFactory.displayName = 'translateFilterFactory'; - function annotate(fn, strictDi, name) { - var $inject, argDecl, last; +angular.module('pascalprecht.translate') - 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 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) { - /** - * @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. - */ + 'use strict'; - /** - * @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.** - */ + return $cacheFactory('translations'); +} - /** - * @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. - */ +$translationCache.displayName = '$translationCache'; +return 'pascalprecht.translate'; - /** - * @ngdoc method - * @name $injector#invoke - * - * @description - * Invoke the method and supply the method arguments from the `$injector`. - * - * @param {Function|Array.} 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. - */ +},{}],333:[function(require,module,exports){ +/** + * @license AngularJS v1.7.5 + * (c) 2010-2018 Google, Inc. http://angularjs.org + * License: MIT + */ +(function(window) {'use strict'; - /** - * @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`. - */ +/* exported + minErrConfig, + errorHandlingConfig, + isValidObjectMaxDepth +*/ - /** - * @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.} 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.} 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=} 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} - */ +var minErrConfig = { + objectMaxDepth: 5, + urlErrorParamsEnabled: true +}; - /** - * @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 AngularJS **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 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 + * + * * `urlErrorParamsEnabled` **{Boolean}** - Specifies wether the generated error url will + * contain the parameters of the thrown error. Disabling the parameters can be useful if the + * generated error url is very long. + * + * Default: true. When used without argument, it returns the current value. + */ +function errorHandlingConfig(config) { + if (isObject(config)) { + if (isDefined(config.objectMaxDepth)) { + minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN; + } + if (isDefined(config.urlErrorParamsEnabled) && isBoolean(config.urlErrorParamsEnabled)) { + minErrConfig.urlErrorParamsEnabled = config.urlErrorParamsEnabled; + } + } else { + return minErrConfig; + } +} - /** - * @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. - * - * It is possible to inject other providers into the provider function, - * but the injected provider must have been defined before the one that requires it. - * - * @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 }); - * })); - * }); - * ``` - */ +/** + * @private + * @param {Number} maxDepth + * @return {boolean} + */ +function isValidObjectMaxDepth(maxDepth) { + return isNumber(maxDepth) && maxDepth > 0; +} - /** - * @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.} $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.} 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(); - * }]); - * ``` - */ +/** + * @description + * + * This object provides a utility for producing rich Error messages within + * AngularJS. 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 + */ - /** - * @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 AngularJS {@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; - * }); - * ``` - */ +function minErr(module, ErrorConstructor) { + ErrorConstructor = ErrorConstructor || Error; - /** - * @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 AngularJS {@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; - * }); - * ``` - */ + var url = 'https://errors.angularjs.org/1.7.5/'; + var regex = url.replace('.', '\\.') + '[\\s\\S]*'; + var errRegExp = new RegExp(regex, 'g'); - /** - * @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.} 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; - * }]); - * ``` - */ + 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; - 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); - }); + // A minErr message has two parts: the message itself and the url that contains the + // encoded message. + // The message's parameters can contain other error messages which also include error urls. + // To prevent the messages from getting too long, we strip the error urls from the parameters. - instanceInjector.loadNewModules = function (mods) { - forEach(loadModules(mods), function (fn) { - if (fn) instanceInjector.invoke(fn); - }); - }; + message += template.replace(/\{\d+\}/g, function(match) { + var index = +match.slice(1, -1); - return instanceInjector; + if (index < templateArgs.length) { + return templateArgs[index].replace(errRegExp, ''); + } - //////////////////////////////////// - // $provider - //////////////////////////////////// + return match; + }); - function supportObject(delegate) { - return function (key, value) { - if (isObject(key)) { - forEach(key, reverseParams(delegate)); - } else { - return delegate(key, value); - } - }; - } + message += '\n' + url + (module ? module + '/' : '') + code; - 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); + if (minErrConfig.urlErrorParamsEnabled) { + for (i = 0, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') { + message += paramPrefix + 'p' + i + '=' + encodeURIComponent(templateArgs[i]); } - 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; - } - ); - } + return new ErrorConstructor(message); + }; +} - function factory(name, factoryFn, enforce) { - return provider(name, { - $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn - }); - } +/* 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, + 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, + addDateMinutes, + 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 +*/ - function service(name, constructor) { - return factory(name, ['$injector', function ($injector) { - return $injector.instantiate(constructor); - }]); - } +//////////////////////////////////// - function value(name, val) { - return factory(name, valueFn(val), false); - } +/** + * @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. + * + */ - function constant(name, value) { - assertNotHasOwnProperty(name, 'constant'); - providerCache[name] = value; - instanceCache[name] = value; - } +var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/; - function decorator(serviceName, decorFn) { - var origProvider = providerInjector.get(serviceName + providerSuffix), - orig$get = origProvider.$get; +// 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'; - 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]); - } - } +var hasOwnProperty = Object.prototype.hasOwnProperty; - 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; - } +/** + * @private + * + * @description Converts the specified string to lowercase. + * @param {string} string String to be converted to lowercase. + * @returns {string} Lowercased string. + */ +var lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;}; - //////////////////////////////////// - // internal Injector - //////////////////////////////////// +/** + * @private + * + * @description Converts the specified string to uppercase. + * @param {string} string String to be converted to uppercase. + * @returns {string} Uppercased string. + */ +var uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;}; + + +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; - function createInternalInjector(cache, factory) { +// 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; - 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); +/** + * @private + * @param {*} obj + * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments, + * String ...) + */ +function isArrayLike(obj) { - 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)); + // `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 || 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); } - 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; + } else if (isArray(obj) || isArrayLike(obj)) { + var isPrimitive = typeof obj !== 'object'; + for (key = 0, length = obj.length; key < length; key++) { + if (isPrimitive || key in obj) { + iterator.call(context, obj[key], key, obj); } - var result = func.$$ngIsClass; - if (!isBoolean(result)) { - result = func.$$ngIsClass = /^class\b/.test(stringifyFn(func)); + } + } 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); } - return result; } - - function invoke(fn, self, locals, serviceName) { - if (typeof locals === 'string') { - serviceName = locals; - locals = null; + } 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; +} - var args = injectionArgs(fn, locals, serviceName); - if (isArray(fn)) { - fn = fn[fn.length - 1]; - } +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; +} - 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))(); - } +/** + * 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);}; +} - return { - invoke: invoke, - instantiate: instantiate, - get: getService, - annotate: createInjector.$$annotate, - has: function has(name) { - return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name); +/** + * 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; + } } } - createInjector.$$annotate = annotate; + setHashKey(dst, h); + return dst; +} - /** - * @ngdoc provider - * @name $anchorScrollProvider - * @this - * - * @description - * Use `$anchorScrollProvider` to disable automatic scrolling whenever - * {@link ng.$location#hash $location.hash()} changes. - */ - function $AnchorScrollProvider() { +/** + * @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); +} - 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.
    - * 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 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); +} - /** - * @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.

    - * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return - * a number representing the offset (in pixels).

    - * - **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.
    - * **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. - * - *
    - *
    - * In order for `yOffset` to work properly, scrolling should take place on the document's root and - * not some child element. - *
    - * - * @example - - -
    - Go to bottom - You're at the bottom! -
    -
    - - 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(); - }; - }]); - - - #scrollArea { - height: 280px; - overflow: auto; - } - #bottom { - display: block; - margin-top: 2000px; - } - -
    - * - *
    - * 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 - - - -
    - Anchor {{x}} of 5 -
    -
    - - 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(); - } - }; - } - ]); - - - 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; - } - -
    - */ - 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; - } +function toInt(str) { + return parseInt(str, 10); +} - return offset; - } +var isNumberNaN = Number.isNaN || function isNumberNaN(num) { + // eslint-disable-next-line no-self-compare + return num !== num; +}; - function scrollTo(elem) { - if (elem) { - elem.scrollIntoView(); - var offset = getYOffset(); +function inherit(parent, extra) { + return extend(Object.create(parent), extra); +} - 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); - } - } +/** + * @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 = []; - 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); +/** + * @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); + }; - // element with given id - else if (elm = document.getElementById(hash)) scrollTo(elm); + // E.g. + function getResult(fn, input) { + return (fn || angular.identity)(input); + }; - // first anchor with given name :-D - else if (elm = getFirstAnchor(document.getElementsByName(hash))) scrollTo(elm); + 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 = []; - // 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; +function valueFn(value) {return function valueRef() {return value;};} - jqLiteDocumentLoaded(function () { - $rootScope.$evalAsync(scroll); - }); - }); - } +function hasCustomToString(obj) { + return isFunction(obj.toString) && obj.toString !== toString; +} - return scroll; - }]; - } - var $animateMinErr = minErr('$animate'); - var ELEMENT_NODE = 1; - var NG_ANIMATE_CLASSNAME = 'ng-animate'; +/** + * @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';} - 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; - } - } - } +/** + * @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';} - 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; - } +/** + * @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 === 'object'; +} - // 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; - }; +/** + * 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 === 'object' && !getPrototypeOf(value); +} - // 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(); - } +/** + * @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';} - 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); - } +/** + * @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';} - 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; - } - }; +/** + * @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]'; +} - 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; - } +/** + * @ngdoc function + * @name angular.isArray + * @module ng + * @kind function + * + * @description + * Determines if a reference is an `Array`. + * + * @param {*} value Reference to check. + * @returns {boolean} True if `value` is an `Array`. + */ +function isArray(arr) { + return Array.isArray(arr) || arr instanceof Array; +} - function addRemoveClassesPostDigest(element, add, remove) { - var data = postDigestQueue.get(element) || {}; +/** + * @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; + } +} - var classesAdded = updateData(data, add, true); - var classesRemoved = updateData(data, remove, false); +/** + * @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';} - if (classesAdded || classesRemoved) { - postDigestQueue.set(element, data); - postDigestElements.push(element); +/** + * 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]'; +} - 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; +/** + * 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; +} - 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); - } +function isScope(obj) { + return obj && obj.$evalAsync && obj.$watch; +} - 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. - * - *
    - * **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. - *
    - * - * **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; - } +function isFile(obj) { + return toString.call(obj) === '[object File]'; +} - 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; - }; +function isFormData(obj) { + return toString.call(obj) === '[object FormData]'; +} - 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 +function isBlob(obj) { + return toString.call(obj) === '[object Blob]'; +} - /** - * - * @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 - * } - * ); - * ``` - * - *
    - * **Note**: Generally, the events that are fired correspond 1:1 to `$animate` method names, - * e.g. {@link ng.$animate#addClass addClass()} will fire `addClass`, and {@link ng.ngClass} - * will fire `addClass` if classes are added, and `removeClass` if classes are removed. - * However, there are two exceptions: - * - *
      - *
    • if both an {@link ng.$animate#addClass addClass()} and a - * {@link ng.$animate#removeClass removeClass()} action are performed during the same - * animation, the event fired will be `setClass`. This is true even for `ngClass`.
    • - *
    • an {@link ng.$animate#animate animate()} call that adds and removes classes will fire - * the `setClass` event, but if it either removes or adds classes, - * it will fire `animate` instead.
    • - *
    - * - *
    - * - * @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). - * * `data` - an object with these properties: - * * addClass - `{string|null}` - space-separated CSS classes to add to the element - * * removeClass - `{string|null}` - space-separated CSS classes to remove from the element - * * from - `{Object|null}` - CSS properties & values at the beginning of the animation - * * to - `{Object|null}` - CSS properties & values at the end of the animation - * - * Note that the callback does not trigger a scope digest. Wrap your call into a - * {@link $rootScope.Scope#$apply scope.$apply} to propagate changes to the scope. - */ - 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, +function isBoolean(value) { + return typeof value === 'boolean'; +} - /** - * @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 AngularJS 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 `` 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, +function isPromiseLike(obj) { + return obj && isFunction(obj.then); +} - /** - * @ngdoc method - * @name $animate#cancel - * @kind function - * @description Cancels the provided animation and applies the end state of the animation. - * Note that this does not cancel the underlying operation, e.g. the setting of classes or - * adding the element to the DOM. - * - * @param {animationRunner} animationRunner An animation runner returned by an $animate function. - * - * @example - - - angular.module('animationExample', ['ngAnimate']).component('cancelExample', { - templateUrl: 'template.html', - controller: function($element, $animate) { - this.runner = null; - this.addClass = function() { - this.runner = $animate.addClass($element.find('div'), 'red'); - var ctrl = this; - this.runner.finally(function() { - ctrl.runner = null; - }); - }; - this.removeClass = function() { - this.runner = $animate.removeClass($element.find('div'), 'red'); - var ctrl = this; - this.runner.finally(function() { - ctrl.runner = null; - }); - }; - this.cancel = function() { - $animate.cancel(this.runner); - }; - } - }); - - -

    - - -
    - -
    -

    CSS-Animated Text
    -

    -
    - - - - - .red-add, .red-remove { - transition: all 4s cubic-bezier(0.250, 0.460, 0.450, 0.940); - } - .red, - .red-add.red-add-active { - color: #FF0000; - font-size: 40px; - } - .red-remove.red-remove-active { - font-size: 10px; - color: black; - } - -
    - */ - cancel: function cancel(runner) { - if (runner.cancel) { - runner.cancel(); - } - }, - /** - * - * @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 {Runner} the animation runner - */ - 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)); - }, +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)); +} - /** - * - * @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 {Runner} the animation runner - */ - 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)); - }, +function isArrayBuffer(obj) { + return toString.call(obj) === '[object ArrayBuffer]'; +} - /** - * @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 {Runner} the animation runner - */ - 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: - * - * - **removeClass** - `{string}` - space-separated CSS classes to remove from element - * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to` - * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` - * - * @return {Runner} animationRunner the animation runner - */ - addClass: function addClass(element, className, options) { - options = prepareAnimateOptions(options); - options.addClass = mergeClasses(options.addclass, className); - return $$animateQueue.push(element, 'addClass', options); - }, +var trim = function(value) { + return isString(value) ? value.trim() : value; +}; - /** - * @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` - * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` - * - * @return {Runner} the animation runner - */ - removeClass: function removeClass(element, className, options) { - options = prepareAnimateOptions(options); - options.removeClass = mergeClasses(options.removeClass, className); - return $$animateQueue.push(element, 'removeClass', options); - }, +// 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(s) { + return s + .replace(/([-()[\]{}+?*.$^|,:# 1) return; - $$rAF(function () { - for (var i = 0; i < waitQueue.length; i++) { - waitQueue[i](); - } - waitQueue = []; - }); - } +function nodeName_(element) { + return lowercase(element.nodeName || (element[0] && element[0].nodeName)); +} - return function () { - var passed = false; - waitForTick(function () { - passed = true; - }); - return function (callback) { - if (passed) { - callback(); - } else { - waitForTick(callback); - } - }; - }; - }]; - }; +function includes(array, obj) { + return Array.prototype.indexOf.call(array, obj) !== -1; +} - var $$AnimateRunnerFactoryProvider = /** @this */function $$AnimateRunnerFactoryProvider() { - this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$$isDocumentHidden', '$timeout', function ($q, $sniffer, $$animateAsyncRun, $$isDocumentHidden, $timeout) { +function arrayRemove(array, value) { + var index = array.indexOf(value); + if (index >= 0) { + array.splice(index, 1); + } + return index; +} - var INITIAL_STATE = 0; - var DONE_PENDING_STATE = 1; - var DONE_COMPLETE_STATE = 2; +/** + * @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. + * + *
    + * + *
    + * Only enumerable properties are taken into account. Non-enumerable properties (both on `source` + * and on `destination`) will be ignored. + *
    + * + * @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 + + +
    +
    +
    +
    + Gender: +
    + + +
    +
    form = {{user | json}}
    +
    leader = {{leader | json}}
    +
    +
    + + // Module: copyExample + angular. + module('copyExample', []). + controller('ExampleController', ['$scope', function($scope) { + $scope.leader = {}; - AnimateRunner.chain = function (chain, callback) { - var index = 0; + $scope.reset = function() { + // Example with 1 argument + $scope.user = angular.copy($scope.leader); + }; - next(); - function next() { - if (index === chain.length) { - callback(true); - return; - } + $scope.update = function(user) { + // Example with 2 arguments + angular.copy(user, $scope.leader); + }; - chain[index](function (response) { - if (response === false) { - callback(false); - return; - } - index++; - next(); - }); - } - }; + $scope.reset(); + }]); + +
    + */ +function copy(source, destination, maxDepth) { + var stackSource = []; + var stackDest = []; + maxDepth = isValidObjectMaxDepth(maxDepth) ? maxDepth : NaN; - AnimateRunner.all = function (runners, callback) { - var count = 0; - var status = true; - forEach(runners, function (runner) { - runner.done(onProgress); - }); + 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.'); + } - function onProgress(response) { - status = status && response; - if (++count === runners.length) { - callback(status); - } + // Empty the destination object + if (isArray(destination)) { + destination.length = 0; + } else { + forEach(destination, function(value, key) { + if (key !== '$$hashKey') { + delete destination[key]; } - }; + }); + } - function AnimateRunner(host) { - this.setHost(host); + stackSource.push(source); + stackDest.push(destination); + return copyRecurse(source, destination, maxDepth); + } - var rafTick = $$animateAsyncRun(); - var timeoutTick = function timeoutTick(fn) { - $timeout(fn, 0, false); - }; + return copyElement(source, maxDepth); - this._doneCallbacks = []; - this._tick = function (fn) { - if ($$isDocumentHidden()) { - timeoutTick(fn); - } else { - rafTick(fn); - } - }; - this._state = 0; + 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; + } - AnimateRunner.prototype = { - setHost: function setHost(host) { - this.host = host || {}; - }, + function copyElement(source, maxDepth) { + // Simple values + if (!isObject(source)) { + return source; + } - done: function done(fn) { - if (this._state === DONE_COMPLETE_STATE) { - fn(); - } else { - this._doneCallbacks.push(fn); - } - }, + // Already copied values + var index = stackSource.indexOf(source); + if (index !== -1) { + return stackDest[index]; + } - progress: noop, + if (isWindow(source) || isScope(source)) { + throw ngMinErr('cpws', + 'Can\'t copy! Making copies of Window or Scope instances is not supported.'); + } - 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; - }, + var needsRecurse = false; + var destination = copyType(source); - then: function then(resolveHandler, rejectHandler) { - return this.getPromise().then(resolveHandler, rejectHandler); - }, + if (destination === undefined) { + destination = isArray(source) ? [] : Object.create(getPrototypeOf(source)); + needsRecurse = true; + } - 'catch': function _catch(handler) { - return this.getPromise()['catch'](handler); - }, + stackSource.push(source); + stackDest.push(destination); - 'finally': function _finally(handler) { - return this.getPromise()['finally'](handler); - }, + return needsRecurse + ? copyRecurse(source, destination, maxDepth) + : destination; + } - pause: function pause() { - if (this.host.pause) { - this.host.pause(); - } - }, + 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); - resume: function resume() { - if (this.host.resume) { - this.host.resume(); - } - }, + 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); - end: function end() { - if (this.host.end) { - this.host.end(); - } - this._resolve(true); - }, + case '[object Boolean]': + case '[object Number]': + case '[object String]': + case '[object Date]': + return new source.constructor(source.valueOf()); - cancel: function cancel() { - if (this.host.cancel) { - this.host.cancel(); - } - this._resolve(false); - }, + case '[object RegExp]': + var re = new RegExp(source.source, source.toString().match(/[^/]*$/)[0]); + re.lastIndex = source.lastIndex; + return re; - complete: function complete(response) { - var self = this; - if (self._state === INITIAL_STATE) { - self._state = DONE_PENDING_STATE; - self._tick(function () { - self._resolve(response); - }); - } - }, + case '[object Blob]': + return new source.constructor([source], {type: source.type}); + } - _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; - } - } - }; + if (isFunction(source.cloneNode)) { + return source.cloneNode(true); + } + } +} - return AnimateRunner; - }]; - }; - /* exported $CoreAnimateCssProvider */ +// eslint-disable-next-line no-self-compare +function simpleCompare(a, b) { return a === b || (a !== a && b !== b); } - /** - * @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; - } +/** + * @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 + + +
    +
    +

    User 1

    + Name: + Age: - var closed, - runner = new $$AnimateRunner(); - return { - start: run, - end: run - }; +

    User 2

    + Name: + Age: - 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; - } +
    +
    + +
    + User 1:
    {{user1 | json}}
    + User 2:
    {{user2 | json}}
    + Equal:
    {{result}}
    +
    +
    +
    + + angular.module('equalsExample', []).controller('ExampleController', ['$scope', function($scope) { + $scope.user1 = {}; + $scope.user2 = {}; + $scope.compare = function() { + $scope.result = angular.equals($scope.user1, $scope.user2); + }; + }]); + +
    + */ +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, t2 = 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() { + 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 + }; + } + } - /* global getHash: true, stripHash: false */ + return csp.rules; - function getHash(url) { - var index = url.indexOf('#'); - return index === -1 ? '' : url.substr(index); + function noUnsafeEval() { + try { + // eslint-disable-next-line no-new, no-new-func + new Function(''); + return false; + } catch (e) { + return true; + } } +}; - function trimEmptyHash(url) { - return url.replace(/#$/, ''); +/** + * @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 AngularJS 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 + + + ... + ... + + ``` + * @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 + + + ... + ... + + ``` + */ +var jq = function() { + 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; + } } - /** - * ! 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, $$taskTrackerFactory) { - var self = this, - location = window.location, - history = window.history, - setTimeout = window.setTimeout, - clearTimeout = window.clearTimeout, - pendingDeferIds = {}, - taskTracker = $$taskTrackerFactory($log); - - self.isMock = false; - - ////////////////////////////////////////////////////////////// - // Task-tracking API - ////////////////////////////////////////////////////////////// - - // TODO(vojta): remove this temporary api - self.$$completeOutstandingRequest = taskTracker.completeTask; - self.$$incOutstandingRequestCount = taskTracker.incTaskCount; - - // TODO(vojta): prefix this method with $$ ? - self.notifyWhenNoOutstandingRequests = taskTracker.notifyWhenNoPendingTasks; - - ////////////////////////////////////////////////////////////// - // 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). - } - }; + return (jq.name_ = name); +}; - cacheState(); +function concat(array1, array2, index) { + return array1.concat(slice.call(array2, index)); +} - /** - * @name $browser#url - * - * @description - * GETTER: - * Without any argument, this method just returns current value of `location.href` (with a - * trailing `#` stripped of if the hash is empty). - * - * 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 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; - } +function sliceArgs(args, startIndex) { + return slice.call(args, startIndex || 0); +} - // 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(); +/** + * @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 AngularJS 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('
    ').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.} + */ +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 { - 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; + obj[key] = [obj[key],val]; } - 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). - return trimEmptyHash(pendingLocation || location.href); } - }; + } + }); + return obj; +} - /** - * @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; - }; +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 urlChangeListeners = [], - urlChangeInit = false; + var link = document.createElement('a'); + link.href = src.value; - function cacheStateAndFireUrlChange() { - pendingLocation = null; - fireStateOrUrlChange(); + 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 `` or `` 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. + * + + +
    + I can add: {{a}} + {{b}} = {{ a+b }} +
    +
    + + angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) { + $scope.a = 1; + $scope.b = 2; + }); + +
    + * + * @example + * + * ### With `ngStrictDi` + * + * Using `ngStrictDi`, you would see something like this: + * + + +
    +
    + I can add: {{a}} + {{b}} = {{ a+b }} + +

    This renders because the controller does not fail to + instantiate, by using explicit annotation style (see + script.js for details) +

    +
    + +
    + Name:
    + Hello, {{name}}! + +

    This renders because the controller does not fail to + instantiate, by using explicit annotation style + (see script.js for details) +

    +
    + +
    + I can add: {{a}} + {{b}} = {{ a+b }} + +

    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. +

    +
    +
    +
    + + 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']; + + + 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; + } + +
    + */ +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'; - // 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; + if (!appElement && element.hasAttribute && element.hasAttribute(name)) { + appElement = element; + module = element.getAttribute(name); + } + }); + forEach(ngAttrPrefixes, function(prefix) { + var name = prefix + 'app'; + var candidate; - // Prevent callbacks fo fire twice if both hashchange & popstate were fired. - if (equals(cachedState, lastCachedState)) { - cachedState = lastCachedState; + if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\:') + ']'))) { + appElement = candidate; + module = candidate.getAttribute(name); + } + }); + if (appElement) { + if (!isAutoBootstrapAllowed) { + try { + window.console.error('AngularJS: disabling automatic bootstrap. + * + * + * + * ``` + * + * @param {DOMElement} element DOM element which is the root of AngularJS application. + * @param {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() { + 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(//,'>')); + } + + 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); + }]); } - function fireStateOrUrlChange() { - var prevLastHistoryState = lastHistoryState; - cacheState(); + 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 (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { - return; + 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 AngularJS on the given + * element. + * @param {DOMElement} element DOM element which is the root of AngularJS 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. + // AngularJS 1.2+ requires jQuery 1.7+ for on()/off() support. + // AngularJS 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 + }); + } else { + jqLite = JQLite; + } + + // All nodes removed from the DOM via various jqLite/jQuery APIs like .remove() + // are passed through jqLite/jQuery.cleanData. Monkey-patch this method to fire + // the $destroy event on all removed nodes. + originalCleanData = jqLite.cleanData; + jqLite.cleanData = function(elems) { + var events; + for (var i = 0, elem; (elem = elems[i]) != null; i++) { + events = (jqLite._data(elem) || {}).events; + if (events && events.$destroy) { + jqLite(elem).triggerHandler('$destroy'); } + } + originalCleanData(elems); + }; - lastBrowserUrl = self.url(); - lastHistoryState = cachedState; - forEach(urlChangeListeners, function (listener) { - listener(self.url(), cachedState); - }); + 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 === 'object' ? arg.constructor.name || 'Object' : 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; +} - /** - * @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 AngularJS: - * - 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 AngularJS 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); +/** + * 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); +} - urlChangeInit = true; +function stringify(value) { + if (value == null) { // null || undefined + return ''; + } + switch (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); } + } - urlChangeListeners.push(callback); - return callback; - }; + return value; +} - /** - * @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); - }; +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; - /** - * Checks whether the url has changed outside of AngularJS. - * 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; +/** + * @ngdoc type + * @name angular.Module + * @module ng + * @description + * + * Interface for configuring AngularJS {@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; - ////////////////////////////////////////////////////////////// - // Misc API - ////////////////////////////////////////////////////////////// + return ensure(angular, 'module', function() { + /** @type {Object.} */ + var modules = {}; /** - * @name $browser#baseHref - * + * @ngdoc function + * @name angular.module + * @module ng * @description - * Returns current - * (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] Number of milliseconds to defer the function execution. - * @param {string=} [taskType=DEFAULT_TASK_TYPE] The type of task that is deferred. - * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`. + * The `angular.module` is a global place for creating, registering and retrieving AngularJS + * modules. + * All modules (AngularJS core or 3rd party) that should be available to an application must be + * registered using this mechanism. * - * @description - * Executes a fn asynchronously via `setTimeout(fn, delay)`. + * 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('!'); + * }]); + * ``` * - * 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()`. + * 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.=} 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. */ - self.defer = function (fn, delay, taskType) { - var timeoutId; + return function module(name, requires, configFn) { - delay = delay || 0; - taskType = taskType || taskTracker.DEFAULT_TASK_TYPE; + var info = {}; - taskTracker.incTaskCount(taskType); - timeoutId = setTimeout(function () { - delete pendingDeferIds[timeoutId]; - taskTracker.completeTask(fn, taskType); - }, delay); - pendingDeferIds[timeoutId] = taskType; - - return timeoutId; - }; + var assertNotHasOwnProperty = function(name, context) { + if (name === 'hasOwnProperty') { + throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context); + } + }; - /** - * @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.hasOwnProperty(deferId)) { - var taskType = pendingDeferIds[deferId]; - delete pendingDeferIds[deferId]; - clearTimeout(deferId); - taskTracker.completeTask(noop, taskType); - return true; + assertNotHasOwnProperty(name, 'module'); + if (requires && modules.hasOwnProperty(name)) { + modules[name] = null; } - return false; - }; - } - - /** @this */ - function $BrowserProvider() { - this.$get = ['$window', '$log', '$sniffer', '$document', '$$taskTrackerFactory', function ($window, $log, $sniffer, $document, $$taskTrackerFactory) { - return new Browser($window, $document, $log, $sniffer, $$taskTrackerFactory); - }]; - } + 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); + } - /** - * @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 - - -
    - - - - -

    Cached Values

    -
    - - : - -
    - -

    Cache Info

    -
    - - : - -
    -
    -
    - - 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); - }; - }]); - - - p { - margin: 10px 0 3px; - } - -
    - */ - function $CacheFactoryProvider() { + /** @type {!Array.>} */ + var invokeQueue = []; - this.$get = function () { - var caches = {}; + /** @type {!Array.} */ + var configBlocks = []; - function cacheFactory(cacheId, options) { - if (cacheId in caches) { - throw minErr('$cacheFactory')('iid', 'CacheId \'{0}\' is already taken!', cacheId); - } + /** @type {!Array.} */ + var runBlocks = []; - var size = 0, - stats = extend({}, options, { id: cacheId }), - data = createMap(), - capacity = options && options.capacity || Number.MAX_VALUE, - lruHash = createMap(), - freshEnd = null, - staleEnd = null; + var config = invokeLater('$injector', 'invoke', 'push', configBlocks); - /** - * @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] = { + /** @type {angular.Module} */ + var moduleInstance = { + // Private state + _invokeQueue: invokeQueue, + _configBlocks: configBlocks, + _runBlocks: runBlocks, /** * @ngdoc method - * @name $cacheFactory.Cache#put - * @kind function + * @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 - * 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. + * 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' }); + * ``` * - * It will not insert undefined values into the cache. + * The version could then be read back out by accessing the module elsewhere: * - * @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. + * ``` + * 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; + * ``` */ - 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); + info: function(value) { + if (isDefined(value)) { + if (!isObject(value)) throw ngMinErr('aobj', 'Argument \'{0}\' must be an object', 'value'); + info = value; + return this; } - - return value; + return info; }, /** - * @ngdoc method - * @name $cacheFactory.Cache#get - * @kind function + * @ngdoc property + * @name angular.Module#requires + * @module ng * * @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. + * Holds the list of modules which the injector will load before the current module is + * loaded. */ - get: function get(key) { - if (capacity < Number.MAX_VALUE) { - var lruEntry = lruHash[key]; - - if (!lruEntry) return; - - refresh(lruEntry); - } - - return data[key]; - }, + requires: requires, /** - * @ngdoc method - * @name $cacheFactory.Cache#remove - * @kind function + * @ngdoc property + * @name angular.Module#name + * @module ng * * @description - * Removes an entry from the {@link $cacheFactory.Cache Cache} object. - * - * @param {string} key the key of the entry to be removed + * Name of the module. */ - remove: function remove(key) { - if (capacity < Number.MAX_VALUE) { - var lruEntry = lruHash[key]; - - if (!lruEntry) return; + name: name, - 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 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 $cacheFactory.Cache#removeAll - * @kind function - * + * @name angular.Module#factory + * @module ng + * @param {string} name service name + * @param {Function} providerFunction Function for creating new instance of the service. * @description - * Clears the cache object of any entries. + * See {@link auto.$provide#factory $provide.factory()}. */ - removeAll: function removeAll() { - data = createMap(); - size = 0; - lruHash = createMap(); - freshEnd = staleEnd = null; - }, + factory: invokeLaterAndSetModuleName('$provide', 'factory'), /** * @ngdoc method - * @name $cacheFactory.Cache#destroy - * @kind function - * + * @name angular.Module#service + * @module ng + * @param {string} name service name + * @param {Function} constructor A constructor function that will be instantiated. * @description - * Destroys the {@link $cacheFactory.Cache Cache} object entirely, - * removing it from the {@link $cacheFactory $cacheFactory} set. + * See {@link auto.$provide#service $provide.service()}. */ - destroy: function destroy() { - data = null; - stats = null; - lruHash = null; - delete caches[cacheId]; - }, + service: invokeLaterAndSetModuleName('$provide', 'service'), /** * @ngdoc method - * @name $cacheFactory.Cache#info - * @kind function - * + * @name angular.Module#value + * @module ng + * @param {string} name service name + * @param {*} object Service instance object. * @description - * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}. - * - * @returns {object} an object with the following properties: - *
      - *
    • **id**: the id of the cache instance
    • - *
    • **size**: the number of entries kept in the cache instance
    • - *
    • **...**: any additional properties from the options object when creating the - * cache.
    • - *
    + * See {@link auto.$provide#value $provide.value()}. */ - info: function info() { - return extend({}, stats, { size: size }); - } - }; + value: invokeLater('$provide', 'value'), - /** - * 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; - } + /** + * @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'), - link(entry.n, entry.p); - link(entry, freshEnd); - freshEnd = entry; - freshEnd.n = null; - } + /** + * @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 AngularJS expression identifier + * @param {Function} filterFactory Factory function for creating new instance of filter. + * @description + * See {@link ng.$filterProvider#register $filterProvider.register()}. + * + *
    + * **Note:** Filter names must be valid AngularJS {@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`). + *
    + */ + 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|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), + * 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}) + * + * @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 configure services by injecting their + * {@link angular.Module#provider `providers`}, e.g. for adding routes to the + * {@link ngRoute.$routeProvider $routeProvider}. + * + * Note that you can only inject {@link angular.Module#provider `providers`} and + * {@link angular.Module#constant `constants`} into this function. + * + * 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(block) { + runBlocks.push(block); + return this; + } + }; + + if (configFn) { + config(configFn); } + return moduleInstance; + /** - * bidirectionally links two entries of the LRU linked list + * @param {string} provider + * @param {string} method + * @param {String=} insertMethod + * @returns {angular.Module} */ - 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 - } + 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]; } + } + } - /** - * @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; - }; + 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, + ngRefDirective, + 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, + $$IntervalFactoryProvider, + $IntervalProvider, + $HttpProvider, + $HttpParamSerializerProvider, + $HttpParamSerializerJQLikeProvider, + $HttpBackendProvider, + $xhrFactoryProvider, + $jsonpCallbacksProvider, + $LocationProvider, + $LogProvider, + $$MapProvider, + $ParseProvider, + $RootScopeProvider, + $QProvider, + $$QProvider, + $$SanitizeUriProvider, + $SceProvider, + $SceDelegateProvider, + $SnifferProvider, + $$TaskTrackerFactoryProvider, + $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.7.5', + major: 1, + minor: 7, + dot: 5, + codeName: 'anti-prettification' +}; + + +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, + 'callbacks': {$$counter: 0}, + 'getTestability': getTestability, + 'reloadWithDebugInfo': reloadWithDebugInfo, + '$$minErr': minErr, + '$$csp': csp, + '$$encodeUriSegment': encodeUriSegment, + '$$encodeUriQuery': encodeUriQuery, + '$$lowercase': lowercase, + '$$stringify': stringify, + '$$uppercase': uppercase + }); + + 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, + ngRef: ngRefDirective, + 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, + $$intervalFactory: $$IntervalFactoryProvider, + $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, + $$taskTrackerFactory: $$TaskTrackerFactoryProvider, + $templateCache: $TemplateCacheProvider, + $templateRequest: $TemplateRequestProvider, + $$testability: $$TestabilityProvider, + $timeout: $TimeoutProvider, + $window: $WindowProvider, + $$rAF: $$RAFProvider, + $$jqLite: $$jqLiteProvider, + $$Map: $$MapProvider, + $$cookieReader: $$CookieReaderProvider + }); + } + ]) + .info({ angularVersion: '1.7.5' }); +} + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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 AngularJS's built-in subset of jQuery, called "jQuery lite" or **jqLite**. + * + * jqLite is a tiny, API-compatible subset of jQuery that allows + * AngularJS 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. + * + *
    **Note:** All element references in AngularJS 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.
    + * + *
    **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()`.
    + * + * ## AngularJS'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/) - Contrary to jQuery, this doesn't clone elements + * so will not work correctly when invoked on a jqLite object containing more than one DOM node + * - [`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 + * AngularJS 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, ''], + + 'thead': [1, '', '
    '], + 'col': [2, '', '
    '], + 'tr': [2, '', '
    '], + 'td': [3, '', '
    '], + '_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>') + 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); +} - /** - * @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; +// 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 isEmptyObject(obj) { + var name; + + for (name in obj) { + return false; + } + return true; +} + +function removeIfEmptyData(element) { + var expandoId = element.ng339; + var expandoStore = expandoId && jqCache[expandoId]; + + var events = expandoStore && expandoStore.events; + var data = expandoStore && expandoStore.data; + + if ((!data || isEmptyObject(data)) && (!events || isEmptyObject(events))) { + delete jqCache[expandoId]; + element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it + } +} + +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(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]); + } + }); } - /** - * @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 - * - * ``` - * - * **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'); - }]; + removeIfEmptyData(element); +} + +function jqLiteRemoveData(element, name) { + var expandoId = element.ng339; + var expandoStore = expandoId && jqCache[expandoId]; + + if (expandoStore) { + if (name) { + delete expandoStore.data[name]; + } else { + expandoStore.data = {}; + } + + removeIfEmptyData(element); } +} - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * 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) - */ +function jqLiteExpandoStore(element, createIfNecessary) { + var expandoId = element.ng339, + expandoStore = expandoId && jqCache[expandoId]; - /** - * @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}. - * - *
    - * **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}. - *
    - * - * ## 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). - * - *
    - * **Best Practice:** It's recommended to use the "directive definition object" form. - *
    - * - * 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}: '
    ', // 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; - * }); - * ``` - * - *
    - * **Note:** Any unspecified options will use the default value. You can see the default values below. - *
    - * - * 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 AngularJS 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 & 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 AngularJS'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 life-cycle hooks in the new Angular - * The new Angular also uses life-cycle hooks for its components. While the AngularJS life-cycle hooks are similar there are - * some differences that you should be aware of, especially when it comes to moving your code from AngularJS to Angular: - * - * * AngularJS hooks are prefixed with `$`, such as `$onInit`. Angular hooks are prefixed with `ng`, such as `ngOnInit`. - * * AngularJS hooks can be defined on the controller prototype or added to the controller inside its constructor. - * In Angular 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 AngularJS than you would to - * `ngDoCheck` in Angular. - * * 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 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. - * - * - * - * angular.module('do-check-module', []) - * .component('app', { - * template: - * 'Month: ' + - * 'Date: {{ $ctrl.date }}' + - * '', - * controller: function() { - * this.date = new Date(); - * this.month = this.date.getMonth(); - * this.updateDate = function() { - * this.date.setMonth(this.month); - * }; - * } - * }) - * .component('test', { - * bindings: { date: '<' }, - * template: - * '
    {{ $ctrl.log | json }}
    ', - * 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; - * } - * }; - * } - * }); - *
    - * - * - * - *
    - * - * 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) - * - * - * - *
    - * - * - *
    {{ items }}
    - * - *
    - *
    - * - * angular.module('do-check-module', []) - * .component('test', { - * bindings: { items: '<' }, - * template: - * '
    {{ $ctrl.log | json }}
    ', - * 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); - * } - * }; - * } - * }); - *
    - *
    - * - * - * ### 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 `` 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 `` 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. 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 `` and directive definition of - * `scope: { localModel:'` 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})`. - * - * All 4 kinds of bindings (`@`, `=`, `<`, and `&`) can be made optional by adding `?` to the expression. - * The marker must come after the mode and before the attribute name. - * See the {@link error/$compile/iscp Invalid Isolate Scope Definition error} for definition examples. - * This is useful to refine the interface directives provide. - * One subtle difference between optional and non-optional happens **when the binding attribute is not - * set**: - * - the binding is optional: the property will not be defined - * - the binding is not optional: the property is defined - * - * ```js - *app.directive('testDir', function() { - return { - scope: { - notoptional: '=', - optional: '=?', - }, - bindToController: true, - controller: function() { - this.$onInit = function() { - console.log(this.hasOwnProperty('notoptional')) // true - console.log(this.hasOwnProperty('optional')) // false + 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]; } } } - }) - *``` - * - * - * ##### Combining directives with different scope defintions - * - * 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. - * - * 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 ``). - * * 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): `` - * * `A` - Attribute (default): `
    ` - * * `C` - Class: `
    ` - * * `M` - Comment: `` - * - * - * #### `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 `` and ``. - * - * * `html` - All root nodes in the template are HTML. Root nodes may also be - * top-level elements such as `` or ``. - * * `svg` - The root nodes in the template are SVG elements (excluding ``). - * * `math` - The root nodes in the template are MathML elements (excluding ``). - * - * 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 `
    {{delete_str}}
    `. - * * 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` - *
    - * **Note:** `replace` is deprecated in AngularJS and has been removed in the new Angular (v2+). - *
    - * - * 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)` - * - *
    - * **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. - *
    - - *
    - * **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. - *
    - * - *
    - * **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. - *
    - - * 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. - * - *
    - * **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}. - *
    - * - * 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 `` 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. - * - *
    - * 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. - *
    - * - * 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. - * - *
    - * **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. - *
    - * - * 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(); - * ``` - * - *
    - * **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. - *
    - * - * 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 - *
    - *
    - *
    - *
    - *
    - *
    - * ``` - * - * 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 - * - *
    - * **Note**: Typically directives are registered with `module.directive`. The example below is - * to illustrate how `$compile` works. - *
    - * - - - -
    -
    -
    -
    -
    -
    - - it('should auto compile', function() { - var textarea = $('textarea'); - var output = $('div[compile]'); - // The initial state reads 'Hello AngularJS'. - expect(output.getText()).toBe('Hello AngularJS'); - textarea.clear(); - textarea.sendKeys('{{name}}!'); - expect(output.getText()).toBe('AngularJS!'); - }); - -
    - - * - * - * @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. - * - *
    - * **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. - *
    - * - * @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:
    `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 - * AngularJS 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('

    {{total}}

    ')(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('

    {{total}}

    '), - * 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 AngularJS 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. - - * @knownIssue - - ### Issues with `replace: true` - * - *
    - * **Note**: {@link $compile#-replace- `replace: true`} is deprecated and not recommended to use, - * mainly due to the issues listed here. It has been completely removed in the new Angular. - *
    - * - * #### Attribute values are not merged - * - * When a `replace` directive encounters the same attribute on the original and the replace node, - * it will simply deduplicate the attribute and join the values with a space or with a `;` in case of - * the `style` attribute. - * ```html - * Original Node: - * Replace Template: - * Result: - * ``` - * - * That means attributes that contain AngularJS expressions will not be merged correctly, e.g. - * {@link ngShow} or {@link ngClass} will cause a {@link $parse} error: - * - * ```html - * Original Node: - * Replace Template: - * Result: - * ``` - * - * See issue [#5695](https://github.com/angular/angular.js/issues/5695). - * - * #### Directives are not deduplicated before compilation - * - * When the original node and the replace template declare the same directive(s), they will be - * {@link guide/compiler#double-compilation-and-how-to-avoid-it compiled twice} because the compiler - * does not deduplicate them. In many cases, this is not noticable, but e.g. {@link ngModel} will - * attach `$formatters` and `$parsers` twice. - * - * See issue [#2573](https://github.com/angular/angular.js/issues/2573). - * - * #### `transclude: element` in the replace template root can have unexpected effects - * - * When the replace template has a directive at the root node that uses - * {@link $compile#-transclude- `transclude: element`}, e.g. - * {@link ngIf} or {@link ngRepeat}, the DOM structure or scope inheritance can be incorrect. - * See the following issues: - * - * - Incorrect scope on replaced element: - * [#9837](https://github.com/angular/angular.js/issues/9837) - * - Different DOM between `template` and `templateUrl`: - * [#10612](https://github.com/angular/angular.js/issues/14326) - * - */ + } + } +} + +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() { + var value = []; + forEach(this, function(e) { value.push('' + e);}); + return '[' + value.join(', ') + ']'; + }, + + eq: function(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]); + jqLiteOff(nodes[i]); + } + } +}, function(fn, name) { + JQLite[name] = fn; +}); + +forEach({ + data: jqLiteData, + inheritedData: jqLiteInheritedData, + + scope: function(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(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(element) { + return jqLiteInheritedData(element, '$injector'); + }, + + removeAttr: function(element, name) { + element.removeAttribute(name); + }, + + hasClass: jqLiteHasClass, + + css: function(element, name, value) { + name = cssKebabToCamel(name); + + if (isDefined(value)) { + element.style[name] = value; + } else { + return element.style[name]; + } + }, + + attr: function(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(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(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(element, value) { + if (isUndefined(value)) { + return element.innerHTML; + } + jqLiteDealoc(element, true); + element.innerHTML = value; + }, + empty: jqLiteEmpty +}, function(fn, name) { /** - * @ngdoc directive - * @name ngProp - * @restrict A - * @element ANY - * - * @usage - * - * ```html - * - * - * ``` - * - * or with uppercase letters in property (e.g. "propName"): - * - * - * ```html - * - * - * ``` - * - * - * @description - * The `ngProp` directive binds an expression to a DOM element property. - * `ngProp` allows writing to arbitrary properties by including - * the property name in the attribute, e.g. `ng-prop-value="'my value'"` binds 'my value' to - * the `value` property. - * - * Usually, it's not necessary to write to properties in AngularJS, as the built-in directives - * handle the most common use cases (instead of the above example, you would use {@link ngValue}). - * - * However, [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) - * often use custom properties to hold data, and `ngProp` can be used to provide input to these - * custom elements. - * - * ## Binding to camelCase properties - * - * Since HTML attributes are case-insensitive, camelCase properties like `innerHTML` must be escaped. - * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so - * `innerHTML` must be written as `ng-prop-inner_h_t_m_l="expression"` (Note that this is just an - * example, and for binding HTML {@link ngBindHtml} should be used. - * - * ## Security - * - * Binding expressions to arbitrary properties poses a security risk, as properties like `innerHTML` - * can insert potentially dangerous HTML into the application, e.g. script tags that execute - * malicious code. - * For this reason, `ngProp` applies Strict Contextual Escaping with the {@link ng.$sce $sce service}. - * This means vulnerable properties require their content to be "trusted", based on the - * context of the property. For example, the `innerHTML` is in the `HTML` context, and the - * `iframe.src` property is in the `RESOURCE_URL` context, which requires that values written to - * this property are trusted as a `RESOURCE_URL`. - * - * This can be set explicitly by calling $sce.trustAs(type, value) on the value that is - * trusted before passing it to the `ng-prop-*` directive. There are exist shorthand methods for - * each context type in the form of {@link ng.$sce#trustAsResourceUrl $sce.trustAsResourceUrl()} et al. - * - * In some cases you can also rely upon automatic sanitization of untrusted values - see below. - * - * Based on the context, other options may exist to mark a value as trusted / configure the behavior - * of {@link ng.$sce}. For example, to restrict the `RESOURCE_URL` context to specific origins, use - * the {@link $sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist()} - * and {@link $sceDelegateProvider#resourceUrlBlacklist resourceUrlBlacklist()}. - * - * {@link ng.$sce#what-trusted-context-types-are-supported- Find out more about the different context types}. - * - * ### HTML Sanitization - * - * By default, `$sce` will throw an error if it detects untrusted HTML content, and will not bind the - * content. - * However, if you include the {@link ngSanitize ngSanitize module}, it will try to sanitize the - * potentially dangerous HTML, e.g. strip non-whitelisted tags and attributes when binding to - * `innerHTML`. - * - * @example - * ### Binding to different contexts - * - * - * - * angular.module('exampleNgProp', []) - * .component('main', { - * templateUrl: 'main.html', - * controller: function($sce) { - * this.safeContent = 'Safe content'; - * this.unsafeContent = ''; - * this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent); - * } - * }); - * - * - *
    - *
    - * Binding to a property without security context: - *
    - * innerText (safeContent) - *
    - * - *
    - * "Safe" content that requires a security context will throw because the contents could potentially be dangerous ... - *
    - * innerHTML (safeContent) - *
    - * - *
    - * ... so that actually dangerous content cannot be executed: - *
    - * innerHTML (unsafeContent) - *
    - * - *
    - * ... but unsafe Content that has been trusted explicitly works - only do this if you are 100% sure! - *
    - * innerHTML (trustedUnsafeContent) - *
    - *
    - *
    - * - *
    - *
    - * - * .prop-unit { - * margin-bottom: 10px; - * } - * - * .prop-binding { - * min-height: 30px; - * border: 1px solid blue; - * } - * - * .prop-note { - * font-family: Monospace; - * } - * - *
    - * - * - * @example - * ### Binding to innerHTML with ngSanitize - * - * - * - * angular.module('exampleNgProp', ['ngSanitize']) - * .component('main', { - * templateUrl: 'main.html', - * controller: function($sce) { - * this.safeContent = 'Safe content'; - * this.unsafeContent = ''; - * this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent); - * } - * }); - * - * - *
    - *
    - * "Safe" content will be sanitized ... - *
    - * innerHTML (safeContent) - *
    - * - *
    - * ... as will dangerous content: - *
    - * innerHTML (unsafeContent) - *
    - * - *
    - * ... and content that has been trusted explicitly works the same as without ngSanitize: - *
    - * innerHTML (trustedUnsafeContent) - *
    - *
    - *
    - * - *
    - *
    - * - * .prop-unit { - * margin-bottom: 10px; - * } - * - * .prop-binding { - * min-height: 30px; - * border: 1px solid blue; - * } - * - * .prop-note { - * font-family: Monospace; - * } - * - *
    - * + * 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; + } + }; +}); - /** @ngdoc directive - * @name ngOn - * @restrict A - * @element ANY - * - * @usage - * - * ```html - * - * - * ``` - * - * or with uppercase letters in property (e.g. "eventName"): - * - * - * ```html - * - * - * ``` - * - * @description - * The `ngOn` directive adds an event listener to a DOM element via - * {@link angular.element angular.element().on()}, and evaluates an expression when the event is - * fired. - * `ngOn` allows adding listeners for arbitrary events by including - * the event name in the attribute, e.g. `ng-on-drop="onDrop()"` executes the 'onDrop()' expression - * when the `drop` event is fired. - * - * AngularJS provides specific directives for many events, such as {@link ngClick}, so in most - * cases it is not necessary to use `ngOn`. However, AngularJS does not support all events - * (e.g. the `drop` event in the example above), and new events might be introduced in later DOM - * standards. - * - * Another use-case for `ngOn` is listening to - * [custom events](https://developer.mozilla.org/docs/Web/Guide/Events/Creating_and_triggering_events) - * fired by - * [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements). - * - * ## Binding to camelCase properties - * - * Since HTML attributes are case-insensitive, camelCase properties like `myEvent` must be escaped. - * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so - * `myEvent` must be written as `ng-on-my_event="expression"`. - * - * @example - * ### Bind to built-in DOM events - * - * - * - * angular.module('exampleNgOn', []) - * .component('main', { - * templateUrl: 'main.html', - * controller: function() { - * this.clickCount = 0; - * this.mouseoverCount = 0; - * - * this.loadingState = 0; - * } - * }); - * - * - *
    - * This is equivalent to `ngClick` and `ngMouseover`:
    - *
    - * clickCount: {{$ctrl.clickCount}}
    - * mouseover: {{$ctrl.mouseoverCount}} - * - *
    - * - * For the `error` and `load` event on images no built-in AngularJS directives exist:
    - *
    - *
    - * Image is loading - * Image load error - * Image loaded successfully - *
    - *
    - *
    - * - *
    - *
    - *
    - * - * - * @example - * ### Bind to custom DOM events - * - * - * - * angular.module('exampleNgOn', []) - * .component('main', { - * templateUrl: 'main.html', - * controller: function() { - * this.eventLog = ''; - * - * this.listener = function($event) { - * this.eventLog = 'Event with type "' + $event.type + '" fired at ' + $event.detail; - * }; - * } - * }) - * .component('childComponent', { - * templateUrl: 'child.html', - * controller: function($element) { - * this.fireEvent = function() { - * var event = new CustomEvent('customtype', { detail: new Date()}); - * - * $element[0].dispatchEvent(event); - * }; - * } - * }); - * - * - *
    - * Event log: {{$ctrl.eventLog}} - *
    - * - - * - * - *
    - *
    - *
    +function createEventHandler(element, events) { + var eventHandler = function(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(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(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(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(element) { + var children = []; + forEach(element.childNodes, function(element) { + if (element.nodeType === NODE_TYPE_ELEMENT) { + children.push(element); + } + }); + return children; + }, + + contents: function(element) { + return element.contentDocument || element.childNodes || []; + }, + + append: function(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(element, node) { + if (element.nodeType === NODE_TYPE_ELEMENT) { + var index = element.firstChild; + forEach(new JQLite(node), function(child) { + element.insertBefore(child, index); + }); + } + }, + + wrap: function(element, wrapNode) { + jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]); + }, + + remove: jqLiteRemove, + + detach: function(element) { + jqLiteRemove(element, true); + }, + + after: function(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(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(element) { + var parent = element.parentNode; + return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null; + }, + + next: function(element) { + return element.nextElementSibling; + }, + + find: function(element, selector) { + if (element.getElementsByTagName) { + return element.getElementsByTagName(selector); + } else { + return []; + } + }, + + clone: jqLiteClone, + + triggerHandler: function(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() { this.defaultPrevented = true; }, + isDefaultPrevented: function() { return this.defaultPrevented === true; }, + stopImmediatePropagation: function() { this.immediatePropagationStopped = true; }, + isImmediatePropagationStopped: function() { 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(node, classes) { + if (node.attr) node = node[0]; + return jqLiteHasClass(node, classes); + }, + addClass: function(node, classes) { + if (node.attr) node = node[0]; + return jqLiteAddClass(node, classes); + }, + removeClass: function(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; + 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(key) { + if (key !== this._lastKey) { + this._lastKey = key; + this._lastIndex = this._keys.indexOf(key); + } + return this._lastIndex; + }, + _transformKey: function(key) { + return isNumberNaN(key) ? nanKey : key; + }, + get: function(key) { + key = this._transformKey(key); + var idx = this._idx(key); + if (idx !== -1) { + return this._values[idx]; + } + }, + has: function(key) { + key = this._transformKey(key); + var idx = this._idx(key); + return idx !== -1; + }, + set: function(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(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; + } +}; - var $compileMinErr = minErr('$compile'); +// 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; - function UNINITIALIZED_VALUE() {} - var _UNINITIALIZED_VALUE = new UNINITIALIZED_VALUE(); +var $$MapProvider = [/** @this */function() { + this.$get = [function() { + return NgMap; + }]; +}]; - /** - * @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*([\w$]*)$/; - - var bindings = createMap(); - - forEach(scope, function (definition, scopeName) { - definition = definition.trim(); - - if (definition in bindingCache) { - bindings[scopeName] = bindingCache[definition]; - return; - } - var match = definition.match(LOCAL_REGEXP); +/** + * @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.} 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 AngularJS app + * from outside AngularJS. 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 = $('
    {{content.label}}
    '); + * $(document.body).append($div); + * + * angular.element(document).injector().invoke(function($compile) { + * var scope = angular.element($div).scope(); + * $compile($div)(scope); + * }); + * ``` + */ - 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]; - } - }); +/** + * @ngdoc module + * @name auto + * @installation + * @description + * + * Implicit module which gets automatically added to each {@link auto.$injector $injector}. + */ - return bindings; - } +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 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); +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); + }); + }); } - 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; + 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; +} - 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; +/** + * @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. + */ - 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; - }); - } +/** + * @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.** + */ - 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); - } +/** + * @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. + */ - return restrict || 'EA'; - } +/** + * @ngdoc method + * @name $injector#invoke + * + * @description + * Invoke the method and supply the method arguments from the `$injector`. + * + * @param {Function|Array.} 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 $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. ngBind which - * will match as ng-bind), 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 $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 $compileProvider#component - * @module ng - * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), - * 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=}` - 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: '
    My name is {{$ctrl.name}}
    ', - * controller: function() { - * this.name = 'shahar'; - * } - * }); - * - * myMod.component('myComp', { - * template: '
    My name is {{$ctrl.name}}
    ', - * 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}. - * - *
    - * 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; - } +/** + * @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`. + */ - var controller = options.controller || function () {}; +/** + * @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.} 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.} 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=} 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} + */ - 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 - }; +/** + * @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 AngularJS **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. + */ - // Copy annotations (starting with $) over to the DDO - forEach(options, function (val, key) { - if (key.charAt(0) === '$') ddo[key] = val; - }); +/** + * @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. + * + * It is possible to inject other providers into the provider function, + * but the injected provider must have been defined before the one that requires it. + * + * @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 - return ddo; - } + * @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.} $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.} 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(); + * }]); + * ``` + */ - // 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 AngularJS 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; - } - }); +/** + * @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 AngularJS {@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; + * }); + * ``` + */ - factory.$inject = ['$injector']; - return this.directive(name, factory); - }; +/** + * @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 AngularJS {@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 $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; +/** + * @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.} 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 $$sanitizeUriProvider.imgSrcSanitizationWhitelist(); + return delegate(key, value); } }; + } - /** - * @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. ``. - * - * 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; + 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 debugInfoEnabled; + return result; }; + } - /** - * @ngdoc method - * @name $compileProvider#strictComponentBindingsEnabled - * - * @param {boolean=} enabled update the strictComponentBindingsEnabled state if provided, - * otherwise 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 the strict component bindings check. If enabled, the - * compiler will enforce that all scope / controller bindings of a - * {@link $compileProvider#directive directive} / {@link $compileProvider#component component} - * that are not set as optional with `?`, must be provided when the directive is instantiated. - * If not provided, the compiler will throw the - * {@link error/$compile/missingattr $compile:missingattr error}. - * - * The default value is false. - */ - var strictComponentBindingsEnabled = false; - this.strictComponentBindingsEnabled = function (enabled) { - if (isDefined(enabled)) { - strictComponentBindingsEnabled = enabled; - return this; - } - return strictComponentBindingsEnabled; + 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}); }; + } - 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; + //////////////////////////////////// + // 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]); + } } - 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; + 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 commentDirectivesEnabledConfig; - }; + }); + return runBlocks; + } - 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; + //////////////////////////////////// + // 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(); + } } - return cssClassDirectivesEnabledConfig; - }; + } - /** - * The security context of DOM Properties. - * @private - */ - var PROP_CONTEXTS = createMap(); - /** - * @ngdoc method - * @name $compileProvider#addPropertySecurityContext - * @description - * - * Defines the security context for DOM properties bound by ng-prop-*. - * - * @param {string} elementName The element name or '*' to match any element. - * @param {string} propertyName The DOM property name. - * @param {string} ctx The {@link $sce} security context in which this value is safe for use, e.g. `$sce.URL` - * @returns {object} `this` for chaining - */ - this.addPropertySecurityContext = function (elementName, propertyName, ctx) { - var key = elementName.toLowerCase() + '|' + propertyName.toLowerCase(); + function injectionArgs(fn, locals, serviceName) { + var args = [], + $inject = createInjector.$$annotate(fn, strictDi, serviceName); - if (key in PROP_CONTEXTS && PROP_CONTEXTS[key] !== ctx) { - throw $compileMinErr('ctxoverride', 'Property context \'{0}.{1}\' already set to \'{2}\', cannot override to \'{3}\'.', elementName, propertyName, PROP_CONTEXTS[key], ctx); + 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; + } - PROP_CONTEXTS[key] = ctx; - return this; - }; + 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)) { + result = func.$$ngIsClass = /^class\b/.test(stringifyFn(func)); + } + return result; + } - /* Default property contexts. - * - * Copy of https://github.com/angular/angular/blob/6.0.6/packages/compiler/src/schema/dom_security_schema.ts#L31-L58 - * Changing: - * - SecurityContext.* => SCE_CONTEXTS/$sce.* - * - STYLE => CSS - * - various URL => MEDIA_URL - * - *|formAction, form|action URL => RESOURCE_URL (like the attribute) - */ - (function registerNativePropertyContexts() { - function registerContext(ctx, values) { - forEach(values, function (v) { - PROP_CONTEXTS[v.toLowerCase()] = ctx; - }); + function invoke(fn, self, locals, serviceName) { + if (typeof locals === 'string') { + serviceName = locals; + locals = null; } - registerContext(SCE_CONTEXTS.HTML, ['iframe|srcdoc', '*|innerHTML', '*|outerHTML']); - registerContext(SCE_CONTEXTS.CSS, ['*|style']); - registerContext(SCE_CONTEXTS.URL, ['area|href', 'area|ping', 'a|href', 'a|ping', 'blockquote|cite', 'body|background', 'del|cite', 'input|src', 'ins|cite', 'q|cite']); - registerContext(SCE_CONTEXTS.MEDIA_URL, ['audio|src', 'img|src', 'img|srcset', 'source|src', 'source|srcset', 'track|src', 'video|src', 'video|poster']); - registerContext(SCE_CONTEXTS.RESOURCE_URL, ['*|formAction', 'applet|code', 'applet|codebase', 'base|href', 'embed|src', 'frame|src', 'form|action', 'head|profile', 'html|manifest', 'iframe|src', 'link|href', 'media|src', 'object|codebase', 'object|data', 'script|src']); - })(); + var args = injectionArgs(fn, locals, serviceName); + if (isArray(fn)) { + fn = fn[fn.length - 1]; + } - this.$get = ['$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse', '$controller', '$rootScope', '$sce', '$animate', function ($injector, $interpolate, $exceptionHandler, $templateRequest, $parse, $controller, $rootScope, $sce, $animate) { + 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))(); + } + } - var SIMPLE_ATTR_NAME = /^\w/; - var specialAttrHolder = window.document.createElement('div'); - var commentDirectivesEnabled = commentDirectivesEnabledConfig; - var cssClassDirectivesEnabled = cssClassDirectivesEnabledConfig; + 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))(); + } - 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 () { - for (var i = 0, ii = onChangesQueue.length; i < ii; ++i) { - try { - onChangesQueue[i](); - } catch (e) { - $exceptionHandler(e); - } - } - // Reset the queue to trigger a new schedule next time there is a change - onChangesQueue = undefined; - }); - } finally { - onChangesTtl++; - } + return { + invoke: invoke, + instantiate: instantiate, + get: getService, + annotate: createInjector.$$annotate, + has: function(name) { + return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name); } + }; + } +} - function sanitizeSrcset(value, invokeType) { - if (!value) { - return value; - } - if (!isString(value)) { - throw $compileMinErr('srcset', 'Can\'t pass trusted values to `{0}`: "{1}"', invokeType, value.toString()); - } +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() { - // Such values are a bit too complex to handle automatically inside $sce. - // Instead, we sanitize each of the URIs individually, which works, even dynamically. + var autoScrollingEnabled = true; - // It's not possible to work around this using `$sce.trustAsMediaUrl`. - // If you want to programmatically set explicitly trusted unsafe URLs, you should use - // `$sce.trustAsHtml` on the whole `img` tag and inject it into the DOM using the - // `ng-bind-html` directive. + /** + * @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.
    + * 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.

    + * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return + * a number representing the offset (in pixels).

    + * - **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.
    + * **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. + * + *
    + *
    + * In order for `yOffset` to work properly, scrolling should take place on the document's root and + * not some child element. + *
    + * + * @example + + +
    + Go to bottom + You're at the bottom! +
    +
    + + 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(); + }; + }]); + + + #scrollArea { + height: 280px; + overflow: auto; + } + + #bottom { + display: block; + margin-top: 2000px; + } + +
    + * + *
    + * 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 + + + +
    + Anchor {{x}} of 5 +
    +
    + + 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(); + } + }; + } + ]); + + + body { + padding-top: 50px; + } + + .anchor { + border: 2px dashed DarkOrchid; + padding: 10px 10px 200px 10px; + } - var result = ''; + .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; + } + +
    + */ + 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; + } - // 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 : /(,)/; + function getYOffset() { - // split srcset into tuple of uri and descriptor except for the last item - var rawUris = trimmedSrcset.split(pattern); + var offset = scroll.yOffset; - // 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 += $sce.getTrustedMediaUrl(trim(rawUris[innerIdx])); - // add the descriptor - result += ' ' + trim(rawUris[innerIdx + 1]); + 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; + } - // split the last item into uri and descriptor - var lastTuple = trim(rawUris[i * 2]).split(/\s/); + function scrollTo(elem) { + if (elem) { + elem.scrollIntoView(); - // sanitize the last uri - result += $sce.getTrustedMediaUrl(trim(lastTuple[0])); + var offset = getYOffset(); - // and add the last descriptor if any - if (lastTuple.length === 2) { - result += ' ' + trim(lastTuple[1]); + 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); } - return result; + } else { + $window.scrollTo(0, 0); } + } - function Attributes(element, attributesToCopy) { - if (attributesToCopy) { - var keys = Object.keys(attributesToCopy); - var i, l, key; + function scroll(hash) { + // Allow numeric hashes + hash = isString(hash) ? hash : isNumber(hash) ? hash.toString() : $location.hash(); + var elm; - for (i = 0, l = keys.length; i < l; i++) { - key = keys[i]; - this[key] = attributesToCopy[key]; - } - } else { - this.$attr = {}; - } + // empty hash, scroll to the top of the page + if (!hash) scrollTo(null); - this.$$element = element; - } + // element with given id + else if ((elm = document.getElementById(hash))) scrollTo(elm); - 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, + // first anchor with given name :-D + else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm); - /** - * @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); - } - }, + // no element and hash === 'top', scroll to the top of the page + else if (hash === 'top') scrollTo(null); + } - /** - * @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); - } - }, + // 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; - /** - * @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); - } + jqLiteDocumentLoaded(function() { + $rootScope.$evalAsync(scroll); + }); + }); + } - var toRemove = tokenDifference(oldClasses, newClasses); - if (toRemove && toRemove.length) { - $animate.removeClass(this.$$element, toRemove); - } - }, + return scroll; + }]; +} - /** - * 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; - } +var $animateMinErr = minErr('$animate'); +var ELEMENT_NODE = 1; +var NG_ANIMATE_CLASSNAME = 'ng-animate'; - this[key] = value; +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; +} - // 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, '-'); - } - } +function extractElementNode(element) { + for (var i = 0; i < element.length; i++) { + var elm = element[i]; + if (elm.nodeType === ELEMENT_NODE) { + return elm; + } + } +} - nodeName = nodeName_(this.$$element); +function splitClasses(classes) { + if (isString(classes)) { + classes = classes.split(' '); + } - // Sanitize img[srcset] values. - if (nodeName === 'img' && key === 'srcset') { - this[key] = value = sanitizeSrcset(value, '$set(\'srcset\', value)'); - } + // 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 (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); - } - } - } +// 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 + : {}; +} - // fire observers - var $$observers = this.$$observers; - if ($$observers) { - forEach($$observers[observer], function (fn) { - try { - fn(value); - } catch (e) { - $exceptionHandler(e); - } - }); - } - }, +var $$CoreAnimateJsProvider = /** @this */ function() { + this.$get = noop; +}; - /** - * @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]); - } - }); +// this is prefixed with Core since it conflicts with +// the animateQueueProvider defined in ngAnimate/animateQueue.js +var $$CoreAnimateQueueProvider = /** @this */ function() { + var postDigestQueue = new NgMap(); + var postDigestElements = []; - return function () { - arrayRemove(listeners, fn); - }; + this.$get = ['$$AnimateRunner', '$rootScope', + function($$AnimateRunner, $rootScope) { + return { + enabled: noop, + on: noop, + off: noop, + pin: noop, + + push: function(element, event, options, domOperation) { + if (domOperation) { + domOperation(); } - }; - 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 = ''; - 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); - } + options = options || {}; + if (options.from) { + element.css(options.from); + } + if (options.to) { + element.css(options.to); + } - 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. + if (options.addClass || options.removeClass) { + addRemoveClassesPostDigest(element, options.addClass, options.removeClass); } - } - var startSymbol = $interpolate.startSymbol(), - endSymbol = $interpolate.endSymbol(), - denormalizeTemplate = startSymbol === '{{' && endSymbol === '}}' ? identity : function denormalizeTemplate(template) { - return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol); - }, - NG_PREFIX_BINDING = /^ng(Attr|Prop|On)([A-Z].*)$/; - var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/; + var runner = new $$AnimateRunner(); - compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) { - var bindings = $element.data('$binding') || []; + // since there are no animations to run the runner needs to be + // notified that the animation call is complete. + runner.complete(); + return runner; + } + }; - if (isArray(binding)) { - bindings = bindings.concat(binding); - } else { - bindings.push(binding); - } - $element.data('$binding', bindings); - } : noop; + 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; + } + } + }); - compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) { - safeAddClass($element, 'ng-binding'); - } : noop; + forEach(element, function(elm) { + if (toAdd) { + jqLiteAddClass(elm, toAdd); + } + if (toRemove) { + jqLiteRemoveClass(elm, toRemove); + } + }); + postDigestQueue.delete(element); + } + }); + postDigestElements.length = 0; + } - 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; + function addRemoveClassesPostDigest(element, add, remove) { + var data = postDigestQueue.get(element) || {}; - compile.$$createComment = function (directiveName, comment) { - var content = ''; - if (debugInfoEnabled) { - content = ' ' + (directiveName || '') + ': '; - if (comment) content += comment + ' '; - } - return window.document.createComment(content); - }; + var classesAdded = updateData(data, add, true); + var classesRemoved = updateData(data, remove, false); - return compile; + if (classesAdded || classesRemoved) { - //================================ + postDigestQueue.set(element, data); + postDigestElements.push(element); - 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); + if (postDigestElements.length === 1) { + $rootScope.$$postDigest(handleCSSClassChanges); } - 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; - } +/** + * @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; - 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('
    ').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; - } + this.$$registeredAnimations = Object.create(null); - if (transcludeControllers) { - for (var controllerName in transcludeControllers) { - $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance); - } - } + /** + * @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); + }; - compile.$$addScopeInfo($linkNode, scope); + /** + * @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. + * + *
    + * **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. + *
    + * + * **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; + } - if (cloneConnectFn) cloneConnectFn($linkNode, scope); - if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn); + return customFilter; + }; - if (!cloneConnectFn) { - $compileNodes = compositeLinkFn = null; - } - return $linkNode; - }; + /** + * @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; + }; - 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'; + 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 /** - * 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. + * @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 + * } + * ); + * ``` + * + *
    + * **Note**: Generally, the events that are fired correspond 1:1 to `$animate` method names, + * e.g. {@link ng.$animate#addClass addClass()} will fire `addClass`, and {@link ng.ngClass} + * will fire `addClass` if classes are added, and `removeClass` if classes are removed. + * However, there are two exceptions: + * + *
      + *
    • if both an {@link ng.$animate#addClass addClass()} and a + * {@link ng.$animate#removeClass removeClass()} action are performed during the same + * animation, the event fired will be `setClass`. This is true even for `ngClass`.
    • + *
    • an {@link ng.$animate#animate animate()} call that adds and removes classes will fire + * the `setClass` event, but if it either removes or adds classes, + * it will fire `animate` instead.
    • + *
    + * + *
    + * + * @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). + * * `data` - an object with these properties: + * * addClass - `{string|null}` - space-separated CSS classes to add to the element + * * removeClass - `{string|null}` - space-separated CSS classes to remove from the element + * * from - `{Object|null}` - CSS properties & values at the beginning of the animation + * * to - `{Object|null}` - CSS properties & values at the end of the animation + * + * Note that the callback does not trigger a scope digest. Wrap your call into a + * {@link $rootScope.Scope#$apply scope.$apply} to propagate changes to the scope. */ - 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); - } + 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, - // 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); + /** + * @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 AngularJS 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 `` 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, - nodeLinkFn = directives.length ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement, null, [], [], previousCompileContext) : null; + /** + * + * @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, - if (nodeLinkFn && nodeLinkFn.scope) { - compile.$$addScopeClass(attrs.$$element); - } + /** + * @ngdoc method + * @name $animate#cancel + * @kind function + * @description Cancels the provided animation and applies the end state of the animation. + * Note that this does not cancel the underlying operation, e.g. the setting of classes or + * adding the element to the DOM. + * + * @param {animationRunner} animationRunner An animation runner returned by an $animate function. + * + * @example + + + angular.module('animationExample', ['ngAnimate']).component('cancelExample', { + templateUrl: 'template.html', + controller: function($element, $animate) { + this.runner = null; + + this.addClass = function() { + this.runner = $animate.addClass($element.find('div'), 'red'); + var ctrl = this; + this.runner.finally(function() { + ctrl.runner = null; + }); + }; - childLinkFn = nodeLinkFn && nodeLinkFn.terminal || !(childNodes = nodeList[i].childNodes) || !childNodes.length ? null : compileNodes(childNodes, nodeLinkFn ? (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement) && nodeLinkFn.transclude : transcludeFn); + this.removeClass = function() { + this.runner = $animate.removeClass($element.find('div'), 'red'); + var ctrl = this; + this.runner.finally(function() { + ctrl.runner = null; + }); + }; - if (nodeLinkFn || childLinkFn) { - linkFns.push(i, nodeLinkFn, childLinkFn); - linkFnFound = true; - nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn; - } + this.cancel = function() { + $animate.cancel(this.runner); + }; + } + }); + + +

    + + +
    + +
    +

    CSS-Animated Text
    +

    +
    + + + + + .red-add, .red-remove { + transition: all 4s cubic-bezier(0.250, 0.460, 0.450, 0.940); + } + + .red, + .red-add.red-add-active { + color: #FF0000; + font-size: 40px; + } + + .red-remove.red-remove-active { + font-size: 10px; + color: black; + } - //use the previous context only for the first element in the virtual group - previousCompileContext = null; + +
    + */ + cancel: function(runner) { + if (runner.cancel) { + runner.cancel(); } + }, - // return a linking function if we have found anything, null otherwise - return linkFnFound ? compositeLinkFn : null; + /** + * + * @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 {Runner} the animation runner + */ + enter: function(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)); + }, - function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) { - var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn; - var stableNodeList; + /** + * + * @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 {Runner} the animation runner + */ + move: function(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)); + }, - 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); + /** + * @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 {Runner} the animation runner + */ + leave: function(element, options) { + return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() { + element.remove(); + }); + }, - // 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; - } + /** + * @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: + * + * - **removeClass** - `{string}` - space-separated CSS classes to remove from element + * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to` + * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` + * + * @return {Runner} animationRunner the animation runner + */ + addClass: function(element, className, options) { + options = prepareAnimateOptions(options); + options.addClass = mergeClasses(options.addclass, className); + return $$animateQueue.push(element, 'addClass', options); + }, - for (i = 0, ii = linkFns.length; i < ii;) { - node = stableNodeList[linkFns[i++]]; - nodeLinkFn = linkFns[i++]; - childLinkFn = linkFns[i++]; + /** + * @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` + * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` + * + * @return {Runner} the animation runner + */ + removeClass: function(element, className, options) { + options = prepareAnimateOptions(options); + options.removeClass = mergeClasses(options.removeClass, className); + return $$animateQueue.push(element, 'removeClass', options); + }, - if (nodeLinkFn) { - if (nodeLinkFn.scope) { - childScope = scope.$new(); - compile.$$addScopeInfo(jqLite(node), childScope); - } else { - childScope = scope; - } + /** + * @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 + * - **removeClass** - `{string}` - space-separated CSS classes to remove from element + * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to` + * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from` + * + * @return {Runner} the animation runner + */ + setClass: function(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); + }, - 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; - } + /** + * @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 {Runner} the animation runner + */ + animate: function(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; - nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn); - } else if (childLinkFn) { - childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn); - } - } - } + className = className || 'ng-inline-animate'; + options.tempClasses = mergeClasses(options.tempClasses, className); + return $$animateQueue.push(element, 'animate', options); } + }; + }]; +}]; - function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { - var node = nodeList[idx]; - var parent = node.parentNode; - var sibling; +var $$AnimateAsyncRunFactoryProvider = /** @this */ function() { + this.$get = ['$$rAF', function($$rAF) { + var waitQueue = []; - if (node.nodeType !== NODE_TYPE_TEXT) { - return; + function waitForTick(fn) { + waitQueue.push(fn); + if (waitQueue.length > 1) return; + $$rAF(function() { + for (var i = 0; i < waitQueue.length; i++) { + waitQueue[i](); } + waitQueue = []; + }); + } - 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); - } + return function() { + var passed = false; + waitForTick(function() { + passed = true; + }); + return function(callback) { + if (passed) { + callback(); + } else { + waitForTick(callback); } - } + }; + }; + }]; +}; - function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { - function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { +var $$AnimateRunnerFactoryProvider = /** @this */ function() { + this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$$isDocumentHidden', '$timeout', + function($q, $sniffer, $$animateAsyncRun, $$isDocumentHidden, $timeout) { - if (!transcludedScope) { - transcludedScope = scope.$new(false, containingScope); - transcludedScope.$$transcluded = true; - } + var INITIAL_STATE = 0; + var DONE_PENDING_STATE = 1; + var DONE_COMPLETE_STATE = 2; - return transcludeFn(transcludedScope, cloneFn, { - parentBoundTranscludeFn: previousBoundTranscludeFn, - transcludeControllers: controllers, - futureParentElement: futureParentElement - }); - } + AnimateRunner.chain = function(chain, callback) { + var index = 0; - // 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; - } + next(); + function next() { + if (index === chain.length) { + callback(true); + return; } - return boundTranscludeFn; + chain[index](function(response) { + if (response === false) { + callback(false); + return; + } + index++; + next(); + }); } + }; - /** - * 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; + AnimateRunner.all = function(runners, callback) { + var count = 0; + var status = true; + forEach(runners, function(runner) { + runner.done(onProgress); + }); - switch (nodeType) { - case NODE_TYPE_ELEMENT: - /* Element */ + function onProgress(response) { + status = status && response; + if (++count === runners.length) { + callback(status); + } + } + }; - nodeName = nodeName_(node); + function AnimateRunner(host) { + this.setHost(host); - // use the node name: - addDirective(directives, directiveNormalize(nodeName), 'E', maxPriority, ignoreDirective); + var rafTick = $$animateAsyncRun(); + var timeoutTick = function(fn) { + $timeout(fn, 0, false); + }; - // iterate over the attributes - for (var attr, name, nName, value, ngPrefixMatch, nAttrs = node.attributes, j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) { - var attrStartName = false; - var attrEndName = false; + this._doneCallbacks = []; + this._tick = function(fn) { + if ($$isDocumentHidden()) { + timeoutTick(fn); + } else { + rafTick(fn); + } + }; + this._state = 0; + } - var isNgAttr = false, - isNgProp = false, - isNgEvent = false; - var multiElementMatch; + AnimateRunner.prototype = { + setHost: function(host) { + this.host = host || {}; + }, - attr = nAttrs[j]; - name = attr.name; - value = attr.value; + done: function(fn) { + if (this._state === DONE_COMPLETE_STATE) { + fn(); + } else { + this._doneCallbacks.push(fn); + } + }, - nName = directiveNormalize(name.toLowerCase()); + progress: noop, - // Support ng-attr-*, ng-prop-* and ng-on-* - if (ngPrefixMatch = nName.match(NG_PREFIX_BINDING)) { - isNgAttr = ngPrefixMatch[1] === 'Attr'; - isNgProp = ngPrefixMatch[1] === 'Prop'; - isNgEvent = ngPrefixMatch[1] === 'On'; + getPromise: function() { + 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; + }, - // Normalize the non-prefixed name - name = name.replace(PREFIX_REGEXP, '').toLowerCase().substr(4 + ngPrefixMatch[1].length).replace(/_(.)/g, function (match, letter) { - return letter.toUpperCase(); - }); + then: function(resolveHandler, rejectHandler) { + return this.getPromise().then(resolveHandler, rejectHandler); + }, - // Support *-start / *-end multi element directives - } else if ((multiElementMatch = nName.match(MULTI_ELEMENT_DIR_RE)) && directiveIsMultiElement(multiElementMatch[1])) { - attrStartName = name; - attrEndName = name.substr(0, name.length - 5) + 'end'; - name = name.substr(0, name.length - 6); - } + 'catch': function(handler) { + return this.getPromise()['catch'](handler); + }, - if (isNgProp || isNgEvent) { - attrs[nName] = value; - attrsMap[nName] = attr.name; + 'finally': function(handler) { + return this.getPromise()['finally'](handler); + }, - if (isNgProp) { - addPropertyDirective(node, directives, nName, name); - } else { - addEventDirective(directives, nName, name); - } - } else { - // Update nName for cases where a prefix was removed - // NOTE: the .toLowerCase() is unnecessary and causes https://github.com/angular/angular.js/issues/16624 for ng-attr-* - 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 - } - } + pause: function() { + if (this.host.pause) { + this.host.pause(); + } + }, - addAttrInterpolateDirective(node, directives, value, nName, isNgAttr); - addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName, attrEndName); - } - } + resume: function() { + if (this.host.resume) { + this.host.resume(); + } + }, - 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'); - } + end: function() { + if (this.host.end) { + this.host.end(); + } + this._resolve(true); + }, - // 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; + cancel: function() { + if (this.host.cancel) { + this.host.cancel(); } + this._resolve(false); + }, - directives.sort(byPriority); - return directives; - } + complete: function(response) { + var self = this; + if (self._state === INITIAL_STATE) { + self._state = DONE_PENDING_STATE; + self._tick(function() { + self._resolve(response); + }); + } + }, - 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.) + _resolve: function(response) { + if (this._state !== DONE_COMPLETE_STATE) { + forEach(this._doneCallbacks, function(fn) { + fn(response); + }); + this._doneCallbacks.length = 0; + this._state = DONE_COMPLETE_STATE; } } + }; - /** - * 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 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() { + this.$get = ['$$rAF', '$q', '$$AnimateRunner', function($$rAF, $q, $$AnimateRunner) { - return jqLite(nodes); + 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); } - /** - * 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); - }; + // 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; } - /** - * 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 (options.from) { + element.css(options.from); + options.from = null; + } - if (eager) { - return compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext); - } - return (/** @this */function lazyCompilation() { - if (!compiled) { - compiled = compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext); + var closed, runner = new $$AnimateRunner(); + return { + start: run, + end: run + }; - // 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); + function run() { + $$rAF(function() { + applyAnimationContents(); + if (!closed) { + runner.complete(); } - ); + closed = true; + }); + return runner; } - /** - * 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.} preLinkFns - * @param {Array.} 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; + 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; + } + } + }; + }]; +}; - // collect multiblock sections - if (attrStart) { - $compileNode = groupScan(compileNode, attrStart, attrEnd); - } - $template = undefined; +/* global getHash: true, stripHash: false */ - if (terminalPriority > directive.priority) { - break; // prevent further processing of directives - } +function getHash(url) { + var index = url.indexOf('#'); + return index === -1 ? '' : url.substr(index); +} - directiveValue = directive.scope; +function trimEmptyHash(url) { + return url.replace(/#$/, ''); +} + +/** + * ! 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, $$taskTrackerFactory) { + var self = this, + location = window.location, + history = window.history, + setTimeout = window.setTimeout, + clearTimeout = window.clearTimeout, + pendingDeferIds = {}, + taskTracker = $$taskTrackerFactory($log); + + self.isMock = false; + + ////////////////////////////////////////////////////////////// + // Task-tracking API + ////////////////////////////////////////////////////////////// + + // TODO(vojta): remove this temporary api + self.$$completeOutstandingRequest = taskTracker.completeTask; + self.$$incOutstandingRequestCount = taskTracker.incTaskCount; + + // TODO(vojta): prefix this method with $$ ? + self.notifyWhenNoOutstandingRequests = taskTracker.notifyWhenNoPendingTasks; + + ////////////////////////////////////////////////////////////// + // 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). + } + }; - if (directiveValue) { + cacheState(); - // 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); - } - } + /** + * @name $browser#url + * + * @description + * GETTER: + * Without any argument, this method just returns current value of `location.href` (with a + * trailing `#` stripped of if the hash is empty). + * + * 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 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). + return trimEmptyHash(pendingLocation || location.href); + } + }; - newScopeDirective = newScopeDirective || directive; - } + /** + * @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; + }; - directiveName = directive.name; + var urlChangeListeners = [], + urlChangeInit = false; - // 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; + function cacheStateAndFireUrlChange() { + pendingLocation = null; + fireStateOrUrlChange(); + } - for (var scanningIndex = i + 1; candidateDirective = directives[scanningIndex++];) { - if (candidateDirective.transclude && !candidateDirective.$$tlb || candidateDirective.replace && (candidateDirective.templateUrl || candidateDirective.template)) { - mightHaveMultipleTransclusionError = true; - break; - } - } + // 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; - didScanForMultipleTransclusion = true; - } + // Prevent callbacks fo fire twice if both hashchange & popstate were fired. + if (equals(cachedState, lastCachedState)) { + cachedState = lastCachedState; + } - if (!directive.templateUrl && directive.controller) { - controllerDirectives = controllerDirectives || createMap(); - assertNoDuplicate('\'' + directiveName + '\' controller', controllerDirectives[directiveName], directive, $compileNode); - controllerDirectives[directiveName] = directive; - } + lastCachedState = cachedState; + lastHistoryState = cachedState; + } - directiveValue = directive.transclude; + function fireStateOrUrlChange() { + var prevLastHistoryState = lastHistoryState; + cacheState(); - if (directiveValue) { - hasTranscludeDirective = true; + if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { + return; + } - // 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; - } + lastBrowserUrl = self.url(); + lastHistoryState = cachedState; + forEach(urlChangeListeners, function(listener) { + listener(self.url(), cachedState); + }); + } - 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); - - 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 { + /** + * @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 AngularJS: + * - 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 AngularJS 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 - var slots = createMap(); + // html5 history api - popstate event + if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange); + // hashchange event + jqLite(window).on('hashchange', cacheStateAndFireUrlChange); - if (!isObject(directiveValue)) { - $template = jqLite(jqLiteClone(compileNode)).contents(); - } else { + urlChangeInit = true; + } - // We have transclusion slots, - // collect them up, compile them and store their transclusion functions - $template = window.document.createDocumentFragment(); + urlChangeListeners.push(callback); + return callback; + }; - var slotMap = createMap(); - var filledSlots = createMap(); + /** + * @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); + }; - // 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; + /** + * Checks whether the url has changed outside of AngularJS. + * 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; - slotMap[elementSelector] = slotName; + ////////////////////////////////////////////////////////////// + // Misc API + ////////////////////////////////////////////////////////////// - // 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; + /** + * @name $browser#baseHref + * + * @description + * Returns current + * (always relative - without domain) + * + * @returns {string} The current base href + */ + self.baseHref = function() { + var href = baseElement.attr('href'); + return href ? href.replace(/^(https?:)?\/\/[^/]*/, '') : ''; + }; - // 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; - }); + /** + * @name $browser#defer + * @param {function()} fn A function, who's execution should be deferred. + * @param {number=} [delay=0] Number of milliseconds to defer the function execution. + * @param {string=} [taskType=DEFAULT_TASK_TYPE] The type of task that is deferred. + * @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, taskType) { + var timeoutId; - // 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] || window.document.createDocumentFragment(); - slots[slotName].appendChild(node); - } else { - $template.appendChild(node); - } - }); + delay = delay || 0; + taskType = taskType || taskTracker.DEFAULT_TASK_TYPE; - // 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); - } - }); + taskTracker.incTaskCount(taskType); + timeoutId = setTimeout(function() { + delete pendingDeferIds[timeoutId]; + taskTracker.completeTask(fn, taskType); + }, delay); + pendingDeferIds[timeoutId] = taskType; - for (var slotName in slots) { - if (slots[slotName]) { - // Only define a transclusion function if the slot was filled - var slotCompileNodes = jqLite(slots[slotName].childNodes); - slots[slotName] = compilationGenerator(mightHaveMultipleTransclusionError, slotCompileNodes, transcludeFn); - } - } + return timeoutId; + }; - $template = jqLite($template.childNodes); - } - $compileNode.empty(); // clear contents - childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, undefined, undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope }); - childTranscludeFn.$$slots = slots; - } - } + /** + * @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.hasOwnProperty(deferId)) { + var taskType = pendingDeferIds[deferId]; + delete pendingDeferIds[deferId]; + clearTimeout(deferId); + taskTracker.completeTask(noop, taskType); + return true; + } + return false; + }; - if (directive.template) { - hasTemplate = true; - assertNoDuplicate('template', templateDirective, directive, $compileNode); - templateDirective = directive; +} - directiveValue = isFunction(directive.template) ? directive.template($compileNode, templateAttrs) : directive.template; +/** @this */ +function $BrowserProvider() { + this.$get = ['$window', '$log', '$sniffer', '$document', '$$taskTrackerFactory', + function($window, $log, $sniffer, $document, $$taskTrackerFactory) { + return new Browser($window, $document, $log, $sniffer, $$taskTrackerFactory); + }]; +} - directiveValue = denormalizeTemplate(directiveValue); +/** + * @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 + + +
    + + + + +

    Cached Values

    +
    + + : + +
    - if (directive.replace) { - replaceDirective = directive; - if (jqLiteIsTextNode(directiveValue)) { - $template = []; - } else { - $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue))); - } - compileNode = $template[0]; +

    Cache Info

    +
    + + : + +
    +
    +
    + + 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); + }; + }]); + + + p { + margin: 10px 0 3px; + } + +
    + */ +function $CacheFactoryProvider() { - if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) { - throw $compileMinErr('tplrt', 'Template for directive \'{0}\' must have exactly one root element. {1}', directiveName, ''); - } + this.$get = function() { + var caches = {}; - replaceWith(jqCollection, $compileNode, compileNode); + function cacheFactory(cacheId, options) { + if (cacheId in caches) { + throw minErr('$cacheFactory')('iid', 'CacheId \'{0}\' is already taken!', cacheId); + } - var newTemplateAttrs = { $attr: {} }; + var size = 0, + stats = extend({}, options, {id: cacheId}), + data = createMap(), + capacity = (options && options.capacity) || Number.MAX_VALUE, + lruHash = createMap(), + freshEnd = null, + staleEnd = null; - // 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)); + /** + * @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] = { - 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); + /** + * @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(key, value) { + if (isUndefined(value)) return; + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key] || (lruHash[key] = {key: key}); - ii = directives.length; - } else { - $compileNode.html(directiveValue); - } + refresh(lruEntry); } - 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 (!(key in data)) size++; + data[key] = value; - if (directive.terminal) { - nodeLinkFn.terminal = true; - terminalPriority = Math.max(terminalPriority, directive.priority); + if (size > capacity) { + this.remove(staleEnd.key); } - } - nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true; - nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective; - nodeLinkFn.templateOnThisElement = hasTemplate; - nodeLinkFn.transclude = childTranscludeFn; - - previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective; + return value; + }, - // might be normal or delayed nodeLinkFn depending on if templateUrl is present - return nodeLinkFn; + /** + * @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(key) { + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key]; - //////////////////// + if (!lruEntry) return; - 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); + refresh(lruEntry); } - } - function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) { - var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element, attrs, scopeBindingInfo; + return data[key]; + }, - 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; - } + /** + * @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(key) { + if (capacity < Number.MAX_VALUE) { + var lruEntry = lruHash[key]; - 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 (!lruEntry) return; - if (controllerDirectives) { - elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective); - } + if (lruEntry === freshEnd) freshEnd = lruEntry.p; + if (lruEntry === staleEnd) staleEnd = lruEntry.n; + link(lruEntry.n,lruEntry.p); - 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); - } + delete lruHash[key]; } - // Initialize bindToController bindings - for (var name in elementControllers) { - var controllerDirective = controllerDirectives[name]; - var controller = elementControllers[name]; - var bindings = controllerDirective.$$bindings.bindToController; + if (!(key in data)) return; - controller.instance = controller(); - $element.data('$' + controllerDirective.name + 'Controller', controller.instance); - controller.bindingInfo = initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective); - } + delete data[key]; + size--; + }, - // 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(); - }); - } - }); + /** + * @ngdoc method + * @name $cacheFactory.Cache#removeAll + * @kind function + * + * @description + * Clears the cache object of any entries. + */ + removeAll: function() { + data = createMap(); + size = 0; + lruHash = createMap(); + freshEnd = staleEnd = null; + }, - // 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); - } + /** + * @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() { + data = null; + stats = null; + lruHash = null; + delete caches[cacheId]; + }, - // 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(); - } - }); + /** + * @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: + *
      + *
    • **id**: the id of the cache instance
    • + *
    • **size**: the number of entries kept in the cache instance
    • + *
    • **...**: any additional properties from the options object when creating the + * cache.
    • + *
    + */ + info: function() { + return extend({}, stats, {size: size}); + } + }); - // 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); - } + /** + * 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; } } - 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; - } + /** + * 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 + } + } + } - if (!value) { - var dataName = '$' + name + 'Controller'; - if (inheritType === '^^' && $element[0] && $element[0].nodeType === NODE_TYPE_DOCUMENT) { - // inheritedData() uses the documentElement when it finds the document, so we would - // require from the element itself. - value = null; - } else { - value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName); - } - } + /** + * @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; + }; - 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; - } + /** + * @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]; + }; - 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]; - } + return cacheFactory; + }; +} - var controllerInstance = $controller(controller, locals, true, directive.controllerAs); +/** + * @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 + * + * ``` + * + * **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'); + }]; +} - // 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; - } +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - // 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 }); - } - } +/* ! 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) + */ - /** - * 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; - } - } +/** + * @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}. + * + *
    + * **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}. + *
    + * + * ## 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). + * + *
    + * **Best Practice:** It's recommended to use the "directive definition object" form. + *
    + * + * 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}: '
    ', // 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; + * }); + * ``` + * + *
    + * **Note:** Any unspecified options will use the default value. You can see the default values below. + *
    + * + * 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 AngularJS 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 & 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 AngularJS'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 life-cycle hooks in the new Angular + * The new Angular also uses life-cycle hooks for its components. While the AngularJS life-cycle hooks are similar there are + * some differences that you should be aware of, especially when it comes to moving your code from AngularJS to Angular: + * + * * AngularJS hooks are prefixed with `$`, such as `$onInit`. Angular hooks are prefixed with `ng`, such as `ngOnInit`. + * * AngularJS hooks can be defined on the controller prototype or added to the controller inside its constructor. + * In Angular 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 AngularJS than you would to + * `ngDoCheck` in Angular. + * * 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 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. + * + * + * + * angular.module('do-check-module', []) + * .component('app', { + * template: + * 'Month: ' + + * 'Date: {{ $ctrl.date }}' + + * '', + * controller: function() { + * this.date = new Date(); + * this.month = this.date.getMonth(); + * this.updateDate = function() { + * this.date.setMonth(this.month); + * }; + * } + * }) + * .component('test', { + * bindings: { date: '<' }, + * template: + * '
    {{ $ctrl.log | json }}
    ', + * 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; + * } + * }; + * } + * }); + *
    + * + * + * + *
    + * + * 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) + * + * + * + *
    + * + * + *
    {{ items }}
    + * + *
    + *
    + * + * angular.module('do-check-module', []) + * .component('test', { + * bindings: { items: '<' }, + * template: + * '
    {{ $ctrl.log | json }}
    ', + * 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); + * } + * }; + * } + * }); + *
    + *
    + * + * + * ### 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 `` 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 `` 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. 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 `` and directive definition of + * `scope: { localModel:'` 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})`. + * + * All 4 kinds of bindings (`@`, `=`, `<`, and `&`) can be made optional by adding `?` to the expression. + * The marker must come after the mode and before the attribute name. + * See the {@link error/$compile/iscp Invalid Isolate Scope Definition error} for definition examples. + * This is useful to refine the interface directives provide. + * One subtle difference between optional and non-optional happens **when the binding attribute is not + * set**: + * - the binding is optional: the property will not be defined + * - the binding is not optional: the property is defined + * + * ```js + *app.directive('testDir', function() { + return { + scope: { + notoptional: '=', + optional: '=?', + }, + bindToController: true, + controller: function() { + this.$onInit = function() { + console.log(this.hasOwnProperty('notoptional')) // true + console.log(this.hasOwnProperty('optional')) // false } - return false; } + } + }) + *``` + * + * + * ##### Combining directives with different scope defintions + * + * 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. + * + * 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 ``). + * * 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): `` + * * `A` - Attribute (default): `
    ` + * * `C` - Class: `
    ` + * * `M` - Comment: `` + * + * + * #### `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 `` and ``. + * + * * `html` - All root nodes in the template are HTML. Root nodes may also be + * top-level elements such as `` or ``. + * * `svg` - The root nodes in the template are SVG elements (excluding ``). + * * `math` - The root nodes in the template are MathML elements (excluding ``). + * + * 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 `
    {{delete_str}}
    `. + * * 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` + *
    + * **Note:** `replace` is deprecated in AngularJS and has been removed in the new Angular (v2+). + *
    + * + * 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)` + * + *
    + * **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. + *
    + + *
    + * **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. + *
    + * + *
    + * **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. + *
    - /** - * 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]; + * 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. + * + *
    + * **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}. + *
    + * + * 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 `` 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. + * + *
    + * 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. + *
    + * + * 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. + * + *
    + * **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. + *
    + * + * 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(); + * ``` + * + *
    + * **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. + *
    + * + * 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 + *
    + *
    + *
    + *
    + *
    + *
    + * ``` + * + * 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 + * + *
    + * **Note**: Typically directives are registered with `module.directive`. The example below is + * to illustrate how `$compile` works. + *
    + * + + + +
    +
    +
    +
    +
    +
    + + it('should auto compile', function() { + var textarea = $('textarea'); + var output = $('div[compile]'); + // The initial state reads 'Hello AngularJS'. + expect(output.getText()).toBe('Hello AngularJS'); + textarea.clear(); + textarea.sendKeys('{{name}}!'); + expect(output.getText()).toBe('AngularJS!'); + }); + +
    - if (beforeTemplateLinkNode !== beforeTemplateCompileNode) { - var oldClasses = beforeTemplateLinkNode.className; + * + * + * @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. + * + *
    + * **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. + *
    + * + * @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:
    `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 + * AngularJS 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('

    {{total}}

    ')(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('

    {{total}}

    '), + * 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 AngularJS 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. - if (!(previousCompileContext.hasElementTranscludeDirective && origAsyncDirective.replace)) { - // it was cloned therefore we have to clone as well. - linkNode = jqLiteClone(compileNode); - } - replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode); + * @knownIssue - // 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); - } - }); + ### Issues with `replace: true` + * + *
    + * **Note**: {@link $compile#-replace- `replace: true`} is deprecated and not recommended to use, + * mainly due to the issues listed here. It has been completely removed in the new Angular. + *
    + * + * #### Attribute values are not merged + * + * When a `replace` directive encounters the same attribute on the original and the replace node, + * it will simply deduplicate the attribute and join the values with a space or with a `;` in case of + * the `style` attribute. + * ```html + * Original Node: + * Replace Template: + * Result: + * ``` + * + * That means attributes that contain AngularJS expressions will not be merged correctly, e.g. + * {@link ngShow} or {@link ngClass} will cause a {@link $parse} error: + * + * ```html + * Original Node: + * Replace Template: + * Result: + * ``` + * + * See issue [#5695](https://github.com/angular/angular.js/issues/5695). + * + * #### Directives are not deduplicated before compilation + * + * When the original node and the replace template declare the same directive(s), they will be + * {@link guide/compiler#double-compilation-and-how-to-avoid-it compiled twice} because the compiler + * does not deduplicate them. In many cases, this is not noticable, but e.g. {@link ngModel} will + * attach `$formatters` and `$parsers` twice. + * + * See issue [#2573](https://github.com/angular/angular.js/issues/2573). + * + * #### `transclude: element` in the replace template root can have unexpected effects + * + * When the replace template has a directive at the root node that uses + * {@link $compile#-transclude- `transclude: element`}, e.g. + * {@link ngIf} or {@link ngRepeat}, the DOM structure or scope inheritance can be incorrect. + * See the following issues: + * + * - Incorrect scope on replaced element: + * [#9837](https://github.com/angular/angular.js/issues/9837) + * - Different DOM between `template` and `templateUrl`: + * [#10612](https://github.com/angular/angular.js/issues/14326) + * + */ - 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); - } - }; - } +/** + * @ngdoc directive + * @name ngProp + * @restrict A + * @element ANY + * + * @usage + * + * ```html + * + * + * ``` + * + * or with uppercase letters in property (e.g. "propName"): + * + * + * ```html + * + * + * ``` + * + * + * @description + * The `ngProp` directive binds an expression to a DOM element property. + * `ngProp` allows writing to arbitrary properties by including + * the property name in the attribute, e.g. `ng-prop-value="'my value'"` binds 'my value' to + * the `value` property. + * + * Usually, it's not necessary to write to properties in AngularJS, as the built-in directives + * handle the most common use cases (instead of the above example, you would use {@link ngValue}). + * + * However, [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) + * often use custom properties to hold data, and `ngProp` can be used to provide input to these + * custom elements. + * + * ## Binding to camelCase properties + * + * Since HTML attributes are case-insensitive, camelCase properties like `innerHTML` must be escaped. + * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so + * `innerHTML` must be written as `ng-prop-inner_h_t_m_l="expression"` (Note that this is just an + * example, and for binding HTML {@link ngBindHtml} should be used. + * + * ## Security + * + * Binding expressions to arbitrary properties poses a security risk, as properties like `innerHTML` + * can insert potentially dangerous HTML into the application, e.g. script tags that execute + * malicious code. + * For this reason, `ngProp` applies Strict Contextual Escaping with the {@link ng.$sce $sce service}. + * This means vulnerable properties require their content to be "trusted", based on the + * context of the property. For example, the `innerHTML` is in the `HTML` context, and the + * `iframe.src` property is in the `RESOURCE_URL` context, which requires that values written to + * this property are trusted as a `RESOURCE_URL`. + * + * This can be set explicitly by calling $sce.trustAs(type, value) on the value that is + * trusted before passing it to the `ng-prop-*` directive. There are exist shorthand methods for + * each context type in the form of {@link ng.$sce#trustAsResourceUrl $sce.trustAsResourceUrl()} et al. + * + * In some cases you can also rely upon automatic sanitization of untrusted values - see below. + * + * Based on the context, other options may exist to mark a value as trusted / configure the behavior + * of {@link ng.$sce}. For example, to restrict the `RESOURCE_URL` context to specific origins, use + * the {@link $sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist()} + * and {@link $sceDelegateProvider#resourceUrlBlacklist resourceUrlBlacklist()}. + * + * {@link ng.$sce#what-trusted-context-types-are-supported- Find out more about the different context types}. + * + * ### HTML Sanitization + * + * By default, `$sce` will throw an error if it detects untrusted HTML content, and will not bind the + * content. + * However, if you include the {@link ngSanitize ngSanitize module}, it will try to sanitize the + * potentially dangerous HTML, e.g. strip non-whitelisted tags and attributes when binding to + * `innerHTML`. + * + * @example + * ### Binding to different contexts + * + * + * + * angular.module('exampleNgProp', []) + * .component('main', { + * templateUrl: 'main.html', + * controller: function($sce) { + * this.safeContent = 'Safe content'; + * this.unsafeContent = ''; + * this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent); + * } + * }); + * + * + *
    + *
    + * Binding to a property without security context: + *
    + * innerText (safeContent) + *
    + * + *
    + * "Safe" content that requires a security context will throw because the contents could potentially be dangerous ... + *
    + * innerHTML (safeContent) + *
    + * + *
    + * ... so that actually dangerous content cannot be executed: + *
    + * innerHTML (unsafeContent) + *
    + * + *
    + * ... but unsafe Content that has been trusted explicitly works - only do this if you are 100% sure! + *
    + * innerHTML (trustedUnsafeContent) + *
    + *
    + *
    + * + *
    + *
    + * + * .prop-unit { + * margin-bottom: 10px; + * } + * + * .prop-binding { + * min-height: 30px; + * border: 1px solid blue; + * } + * + * .prop-note { + * font-family: Monospace; + * } + * + *
    + * + * + * @example + * ### Binding to innerHTML with ngSanitize + * + * + * + * angular.module('exampleNgProp', ['ngSanitize']) + * .component('main', { + * templateUrl: 'main.html', + * controller: function($sce) { + * this.safeContent = 'Safe content'; + * this.unsafeContent = ''; + * this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent); + * } + * }); + * + * + *
    + *
    + * "Safe" content will be sanitized ... + *
    + * innerHTML (safeContent) + *
    + * + *
    + * ... as will dangerous content: + *
    + * innerHTML (unsafeContent) + *
    + * + *
    + * ... and content that has been trusted explicitly works the same as without ngSanitize: + *
    + * innerHTML (trustedUnsafeContent) + *
    + *
    + *
    + * + *
    + *
    + * + * .prop-unit { + * margin-bottom: 10px; + * } + * + * .prop-binding { + * min-height: 30px; + * border: 1px solid blue; + * } + * + * .prop-note { + * font-family: Monospace; + * } + * + *
    + * + */ - /** - * 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; +/** @ngdoc directive + * @name ngOn + * @restrict A + * @element ANY + * + * @usage + * + * ```html + * + * + * ``` + * + * or with uppercase letters in property (e.g. "eventName"): + * + * + * ```html + * + * + * ``` + * + * @description + * The `ngOn` directive adds an event listener to a DOM element via + * {@link angular.element angular.element().on()}, and evaluates an expression when the event is + * fired. + * `ngOn` allows adding listeners for arbitrary events by including + * the event name in the attribute, e.g. `ng-on-drop="onDrop()"` executes the 'onDrop()' expression + * when the `drop` event is fired. + * + * AngularJS provides specific directives for many events, such as {@link ngClick}, so in most + * cases it is not necessary to use `ngOn`. However, AngularJS does not support all events + * (e.g. the `drop` event in the example above), and new events might be introduced in later DOM + * standards. + * + * Another use-case for `ngOn` is listening to + * [custom events](https://developer.mozilla.org/docs/Web/Guide/Events/Creating_and_triggering_events) + * fired by + * [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements). + * + * ## Binding to camelCase properties + * + * Since HTML attributes are case-insensitive, camelCase properties like `myEvent` must be escaped. + * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so + * `myEvent` must be written as `ng-on-my_event="expression"`. + * + * @example + * ### Bind to built-in DOM events + * + * + * + * angular.module('exampleNgOn', []) + * .component('main', { + * templateUrl: 'main.html', + * controller: function() { + * this.clickCount = 0; + * this.mouseoverCount = 0; + * + * this.loadingState = 0; + * } + * }); + * + * + *
    + * This is equivalent to `ngClick` and `ngMouseover`:
    + *
    + * clickCount: {{$ctrl.clickCount}}
    + * mouseover: {{$ctrl.mouseoverCount}} + * + *
    + * + * For the `error` and `load` event on images no built-in AngularJS directives exist:
    + *
    + *
    + * Image is loading + * Image load error + * Image loaded successfully + *
    + *
    + *
    + * + *
    + *
    + *
    + * + * + * @example + * ### Bind to custom DOM events + * + * + * + * angular.module('exampleNgOn', []) + * .component('main', { + * templateUrl: 'main.html', + * controller: function() { + * this.eventLog = ''; + * + * this.listener = function($event) { + * this.eventLog = 'Event with type "' + $event.type + '" fired at ' + $event.detail; + * }; + * } + * }) + * .component('childComponent', { + * templateUrl: 'child.html', + * controller: function($element) { + * this.fireEvent = function() { + * var event = new CustomEvent('customtype', { detail: new Date()}); + * + * $element[0].dispatchEvent(event); + * }; + * } + * }); + * + * + *
    + * Event log: {{$ctrl.eventLog}} + *
    + * + + * + * + *
    + *
    + *
    + */ + +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*([\w$]*)$/; + + var bindings = createMap(); + + forEach(scope, function(definition, scopeName) { + definition = definition.trim(); + + if (definition in bindingCache) { + bindings[scopeName] = bindingCache[definition]; + return; } + var match = definition.match(LOCAL_REGEXP); - 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)); - } + 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]; } + }); - 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; - }); - }; - } - }); - } - } + return bindings; + } - function wrapTemplate(type, template) { - type = lowercase(type || 'html'); - switch (type) { - case 'svg': - case 'math': - var wrapper = window.document.createElement('div'); - wrapper.innerHTML = '<' + type + '>' + template + ''; - return wrapper.childNodes[0].childNodes; - default: - return template; - } + 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 getTrustedAttrContext(nodeName, attrNormalizedName) { - if (attrNormalizedName === 'srcdoc') { - return $sce.HTML; - } - // All nodes with src attributes require a RESOURCE_URL value, except for - // img and various html5 media nodes, which require the MEDIA_URL context. - if (attrNormalizedName === 'src' || attrNormalizedName === 'ngSrc') { - if (['img', 'video', 'audio', 'source', 'track'].indexOf(nodeName) === -1) { - return $sce.RESOURCE_URL; - } - return $sce.MEDIA_URL; - } else if (attrNormalizedName === 'xlinkHref') { - // Some xlink:href are okay, most aren't - if (nodeName === 'image') return $sce.MEDIA_URL; - if (nodeName === 'a') return $sce.URL; - return $sce.RESOURCE_URL; - } else if ( - // Formaction - nodeName === 'form' && attrNormalizedName === 'action' || - // If relative URLs can go where they are not expected to, then - // all sorts of trust issues can arise. - nodeName === 'base' && attrNormalizedName === 'href' || - // links can be stylesheets or imports, which can run script in the current origin - nodeName === 'link' && attrNormalizedName === 'href') { - return $sce.RESOURCE_URL; - } else if (nodeName === 'a' && (attrNormalizedName === 'href' || attrNormalizedName === 'ngHref')) { - return $sce.URL; - } - } + 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 getTrustedPropContext(nodeName, propNormalizedName) { - var prop = propNormalizedName.toLowerCase(); - return PROP_CONTEXTS[nodeName + '|' + prop] || PROP_CONTEXTS['*|' + prop]; - } + function getDirectiveRequire(directive) { + var require = directive.require || (directive.controller && directive.name); - function sanitizeSrcsetPropertyValue(value) { - return sanitizeSrcset($sce.valueOf(value), 'ng-prop-srcset'); - } - function addPropertyDirective(node, directives, attrName, propName) { - if (EVENT_HANDLER_ATTR_REGEXP.test(propName)) { - throw $compileMinErr('nodomevents', 'Property bindings for HTML DOM event properties are disallowed'); - } + 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; + }); + } - var nodeName = nodeName_(node); - var trustedContext = getTrustedPropContext(nodeName, propName); + return require; + } - var sanitizer = identity; - // Sanitize img[srcset] + source[srcset] values. - if (propName === 'srcset' && (nodeName === 'img' || nodeName === 'source')) { - sanitizer = sanitizeSrcsetPropertyValue; - } else if (trustedContext) { - sanitizer = $sce.getTrusted.bind($sce, trustedContext); - } + function getDirectiveRestrict(restrict, name) { + if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) { + throw $compileMinErr('badrestrict', + 'Restrict property \'{0}\' of directive \'{1}\' is invalid', + restrict, + name); + } - directives.push({ - priority: 100, - compile: function ngPropCompileFn(_, attr) { - var ngPropGetter = $parse(attr[attrName]); - var ngPropWatch = $parse(attr[attrName], function sceValueOf(val) { - // Unwrap the value to compare the actual inner safe value, not the wrapper object. - return $sce.valueOf(val); - }); + return restrict || 'EA'; + } - return { - pre: function ngPropPreLinkFn(scope, $element) { - function applyPropValue() { - var propValue = ngPropGetter(scope); - $element.prop(propName, sanitizer(propValue)); + /** + * @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. ngBind which + * will match as ng-bind), 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); } - - applyPropValue(); - scope.$watch(ngPropWatch, applyPropValue); + 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); } - }; - } - }); - } - - function addEventDirective(directives, attrName, eventName) { - directives.push(createEventDirective($parse, $rootScope, $exceptionHandler, attrName, eventName, /*forceAsync=*/false)); + }); + return directives; + }]); } + hasDirectives[name].push(directiveFactory); + } else { + forEach(name, reverseParams(registerDirective)); + } + return this; + }; - function addAttrInterpolateDirective(node, directives, value, name, isNgAttr) { - var nodeName = nodeName_(node); - var trustedContext = getTrustedAttrContext(nodeName, 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; + /** + * @ngdoc method + * @name $compileProvider#component + * @module ng + * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match ``), + * 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=}` - 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: '
    My name is {{$ctrl.name}}
    ', + * controller: function() { + * this.name = 'shahar'; + * } + * }); + * + * myMod.component('myComp', { + * template: '
    My name is {{$ctrl.name}}
    ', + * 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}. + * + *
    + * 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; + } - if (name === 'multiple' && nodeName === 'select') { - throw $compileMinErr('selmulti', 'Binding to the \'multiple\' attribute is not supported. Element: {0}', startingTag(node)); - } + var controller = options.controller || function() {}; - if (EVENT_HANDLER_ATTR_REGEXP.test(name)) { - throw $compileMinErr('nodomevents', 'Interpolations for HTML DOM event attributes are disallowed'); + 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; } - - 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 AngularJS'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('*')); + 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 + }; - // Update the jqLite collection to only contain the `newNode` - for (i = 1; i < removeCount; i++) { - delete elementsToRemove[i]; - } - elementsToRemove[0] = newNode; - elementsToRemove.length = 1; - } + // Copy annotations (starting with $) over to the DDO + forEach(options, function(val, key) { + if (key.charAt(0) === '$') ddo[key] = val; + }); - function cloneAndAnnotateFn(fn, annotation) { - return extend(function () { - return fn.apply(null, arguments); - }, fn, annotation); - } + return ddo; + } - function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) { - try { - linkFn(scope, $element, attrs, controllers, transcludeFn); - } catch (e) { - $exceptionHandler(e, startingTag($element)); - } - } + // 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 AngularJS looks for annotations on the factory function but we can't remove + // it from 1.5.x yet. - function strictBindingsCheck(attrName, directiveName) { - if (strictComponentBindingsEnabled) { - throw $compileMinErr('missingattr', 'Attribute \'{0}\' of \'{1}\' is non-optional and must be set!', attrName, directiveName); - } + // 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; } + }); - // 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 AngularJS 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 isLiteral = parentGet.literal; - - var initialValue = destination[scopeName] = parentGet(scope); - initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]); - - removeWatch = scope[definition.collection ? '$watchCollection' : '$watch'](parentGet, function parentValueWatchAction(newValue, oldValue) { - if (oldValue === newValue) { - if (oldValue === initialValue || isLiteral && equals(oldValue, initialValue)) { - return; - } - oldValue = initialValue; - } - recordChanges(scopeName, newValue, oldValue); - destination[scopeName] = newValue; - }); - - 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); - } - } + factory.$inject = ['$injector']; - function triggerOnChangesHook() { - destination.$onChanges(changes); - // Now clear the changes so that we schedule onChanges when more changes arrive - changes = undefined; - } + return this.directive(name, factory); + }; - 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; + /** + * @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(); + } }; - 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 + * @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. */ - function directiveNormalize(name) { - return name.replace(PREFIX_REGEXP, '').replace(SPECIAL_CHARS_REGEXP, function (_, letter, offset) { - return offset ? letter.toUpperCase() : letter; - }); - } + this.imgSrcSanitizationWhitelist = function(regexp) { + if (isDefined(regexp)) { + $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp); + return this; + } else { + return $$sanitizeUriProvider.imgSrcSanitizationWhitelist(); + } + }; /** - * @ngdoc type - * @name $compile.directive.Attributes + * @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 - * 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 AngularJS: + * 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. ``. + * + * 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#strictComponentBindingsEnabled * - * ``` - * - * ``` + * @param {boolean=} enabled update the strictComponentBindingsEnabled state if provided, + * otherwise 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 the strict component bindings check. If enabled, the + * compiler will enforce that all scope / controller bindings of a + * {@link $compileProvider#directive directive} / {@link $compileProvider#component component} + * that are not set as optional with `?`, must be provided when the directive is instantiated. + * If not provided, the compiler will throw the + * {@link error/$compile/missingattr $compile:missingattr error}. + * + * 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 property - * @name $compile.directive.Attributes#$attr + * @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 - * 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. + * + * 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 $compile.directive.Attributes#$set - * @kind function + * @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; + }; + + + /** + * The security context of DOM Properties. + * @private + */ + var PROP_CONTEXTS = createMap(); + + /** + * @ngdoc method + * @name $compileProvider#addPropertySecurityContext * @description - * Set DOM element attribute value. * + * Defines the security context for DOM properties bound by ng-prop-*. + * + * @param {string} elementName The element name or '*' to match any element. + * @param {string} propertyName The DOM property name. + * @param {string} ctx The {@link $sce} security context in which this value is safe for use, e.g. `$sce.URL` + * @returns {object} `this` for chaining + */ + this.addPropertySecurityContext = function(elementName, propertyName, ctx) { + var key = (elementName.toLowerCase() + '|' + propertyName.toLowerCase()); + + if (key in PROP_CONTEXTS && PROP_CONTEXTS[key] !== ctx) { + throw $compileMinErr('ctxoverride', 'Property context \'{0}.{1}\' already set to \'{2}\', cannot override to \'{3}\'.', elementName, propertyName, PROP_CONTEXTS[key], ctx); + } + + PROP_CONTEXTS[key] = ctx; + return this; + }; + + /* Default property contexts. * - * @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. + * Copy of https://github.com/angular/angular/blob/6.0.6/packages/compiler/src/schema/dom_security_schema.ts#L31-L58 + * Changing: + * - SecurityContext.* => SCE_CONTEXTS/$sce.* + * - STYLE => CSS + * - various URL => MEDIA_URL + * - *|formAction, form|action URL => RESOURCE_URL (like the attribute) */ + (function registerNativePropertyContexts() { + function registerContext(ctx, values) { + forEach(values, function(v) { PROP_CONTEXTS[v.toLowerCase()] = ctx; }); + } + + registerContext(SCE_CONTEXTS.HTML, [ + 'iframe|srcdoc', + '*|innerHTML', + '*|outerHTML' + ]); + registerContext(SCE_CONTEXTS.CSS, ['*|style']); + registerContext(SCE_CONTEXTS.URL, [ + 'area|href', 'area|ping', + 'a|href', 'a|ping', + 'blockquote|cite', + 'body|background', + 'del|cite', + 'input|src', + 'ins|cite', + 'q|cite' + ]); + registerContext(SCE_CONTEXTS.MEDIA_URL, [ + 'audio|src', + 'img|src', 'img|srcset', + 'source|src', 'source|srcset', + 'track|src', + 'video|src', 'video|poster' + ]); + registerContext(SCE_CONTEXTS.RESOURCE_URL, [ + '*|formAction', + 'applet|code', 'applet|codebase', + 'base|href', + 'embed|src', + 'frame|src', + 'form|action', + 'head|profile', + 'html|manifest', + 'iframe|src', + 'link|href', + 'media|src', + 'object|codebase', 'object|data', + 'script|src' + ]); + })(); + + + this.$get = [ + '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse', + '$controller', '$rootScope', '$sce', '$animate', + function($injector, $interpolate, $exceptionHandler, $templateRequest, $parse, + $controller, $rootScope, $sce, $animate) { + + 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() { + for (var i = 0, ii = onChangesQueue.length; i < ii; ++i) { + try { + onChangesQueue[i](); + } catch (e) { + $exceptionHandler(e); + } + } + // Reset the queue to trigger a new schedule next time there is a change + onChangesQueue = undefined; + }); + } finally { + onChangesTtl++; + } + } - /** - * 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; + function sanitizeSrcset(value, invokeType) { + if (!value) { + return value; + } + if (!isString(value)) { + throw $compileMinErr('srcset', 'Can\'t pass trusted values to `{0}`: "{1}"', invokeType, value.toString()); } - values += (values.length > 0 ? ' ' : '') + token; - } - return values; - } - function removeComments(jqNodes) { - jqNodes = jqLite(jqNodes); - var i = jqNodes.length; + // Such values are a bit too complex to handle automatically inside $sce. + // Instead, we sanitize each of the URIs individually, which works, even dynamically. - if (i <= 1) { - return jqNodes; - } + // It's not possible to work around this using `$sce.trustAsMediaUrl`. + // If you want to programmatically set explicitly trusted unsafe URLs, you should use + // `$sce.trustAsHtml` on the whole `img` tag and inject it into the DOM using the + // `ng-bind-html` directive. - 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); + 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 += $sce.getTrustedMediaUrl(trim(rawUris[innerIdx])); + // add the descriptor + result += ' ' + trim(rawUris[innerIdx + 1]); } - } - return jqNodes; - } - var $controllerMinErr = minErr('$controller'); + // split the last item into uri and descriptor + var lastTuple = trim(rawUris[i * 2]).split(/\s/); - 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]; + // sanitize the last uri + result += $sce.getTrustedMediaUrl(trim(lastTuple[0])); + + // and add the last descriptor if any + if (lastTuple.length === 2) { + result += (' ' + trim(lastTuple[1])); + } + return result; } - } - /** - * @ngdoc provider - * @name $controllerProvider - * @this - * - * @description - * The {@link ng.$controller $controller service} is used by AngularJS to create new - * controllers. - * - * This provider allows controller registration via the - * {@link ng.$controllerProvider#register register} method. - */ - function $ControllerProvider() { - var controllers = {}; - /** - * @ngdoc method - * @name $controllerProvider#has - * @param {string} name Controller name to check. - */ - this.has = function (name) { - return controllers.hasOwnProperty(name); - }; + function Attributes(element, attributesToCopy) { + if (attributesToCopy) { + var keys = Object.keys(attributesToCopy); + var i, l, key; - /** - * @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); + for (i = 0, l = keys.length; i < l; i++) { + key = keys[i]; + this[key] = attributesToCopy[key]; + } } else { - controllers[name] = constructor; + this.$attr = {}; } - }; - this.$get = ['$injector', function ($injector) { + this.$$element = element; + } + Attributes.prototype = { /** - * @ngdoc service - * @name $controller - * @requires $injector + * @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. * - * @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: + * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives} * - * * check if a controller with given name is registered via `$controllerProvider` - * * check if evaluating the string on the current scope returns a constructor + * @param {string} name Name to normalize + */ + $normalize: directiveNormalize, + + + /** + * @ngdoc method + * @name $compile.directive.Attributes#$addClass + * @kind function * - * 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. + * @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 {Object} locals Injection locals for Controller. - * @return {Object} Instance of given controller. + * @param {string} classVal The className value that will be added to the element + */ + $addClass: function(classVal) { + if (classVal && classVal.length > 0) { + $animate.addClass(this.$$element, classVal); + } + }, + + /** + * @ngdoc method + * @name $compile.directive.Attributes#$removeClass + * @kind function * * @description - * `$controller` service is responsible for instantiating controllers. + * 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. * - * 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). + * @param {string} classVal The className value that will be removed from the element */ - 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); + $removeClass: function(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(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); + } + }, - if (!expression) { - throw $controllerMinErr('ctrlreg', 'The controller with the name \'{0}\' is not registered.', constructor); + /** + * 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(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); - assertArgFn(expression, constructor, true); + // Sanitize img[srcset] values. + if (nodeName === 'img' && key === 'srcset') { + this[key] = value = sanitizeSrcset(value, '$set(\'srcset\', value)'); } - 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); + 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); + } } + } - 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); - } + // fire observers + var $$observers = this.$$observers; + if ($$observers) { + forEach($$observers[observer], function(fn) { + try { + fn(value); + } catch (e) { + $exceptionHandler(e); } - return instance; - }, { - instance: instance, - identifier: identifier }); } + }, - instance = $injector.instantiate(expression, locals, constructor); - if (identifier) { - addIdentifier(locals, identifier, instance, constructor || expression.name); - } + /** + * @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(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 instance; - }; + return function() { + arrayRemove(listeners, fn); + }; + } + }; - 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); - } + 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 = ''; + 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); + } - locals.$scope[identifier] = instance; + 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. } - }]; - } + } - /** - * @ngdoc service - * @name $document - * @requires $window - * @this - * - * @description - * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object. - * - * @example - - -
    -

    $document title:

    -

    window.document title:

    -
    -
    - - angular.module('documentExample', []) - .controller('ExampleController', ['$scope', '$document', function($scope, $document) { - $scope.title = $document[0].title; - $scope.windowTitle = angular.element(window.document)[0].title; - }]); - -
    - */ - 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; + var startSymbol = $interpolate.startSymbol(), + endSymbol = $interpolate.endSymbol(), + denormalizeTemplate = (startSymbol === '{{' && endSymbol === '}}') + ? identity + : function denormalizeTemplate(template) { + return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol); + }, + NG_PREFIX_BINDING = /^ng(Attr|Prop|On)([A-Z].*)$/; + var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/; - $document.on('visibilitychange', changeListener); + compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) { + var bindings = $element.data('$binding') || []; - $rootScope.$on('$destroy', function () { - $document.off('visibilitychange', changeListener); - }); + 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; - function changeListener() { - hidden = doc.hidden; + 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 function () { - return hidden; - }; - }]; - } + return compile; - /** - * @ngdoc service - * @name $exceptionHandler - * @requires ng.$log - * @this - * - * @description - * Any uncaught exception in AngularJS 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); - * }; - * }]); - * ``` - * - *
    - * 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; + 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.'); } - 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'); + assertArg(scope, 'scope'); - function serializeValue(v) { - if (isObject(v)) { - return isDate(v) ? v.toISOString() : toJson(v); - } - return v; - } + 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(); + } - /** @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. - */ + options = options || {}; + var parentBoundTranscludeFn = options.parentBoundTranscludeFn, + transcludeControllers = options.transcludeControllers, + futureParentElement = options.futureParentElement; - 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))); - } - }); + // 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; + } - return parts.join('&'); - }; - }; - } + 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('
    ').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; + } - /** @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 (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 { - if (isFunction(toSerialize)) { - toSerialize = toSerialize(); - } - parts.push(encodeUriQuery(prefix) + '=' + (toSerialize == null ? '' : encodeUriQuery(serializeValue(toSerialize)))); + if (transcludeControllers) { + for (var controllerName in transcludeControllers) { + $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance); } } - }; - }; - } - function defaultHttpResponseTransform(data, headers) { - if (isString(data)) { - // Strip json vulnerability protection prefix and trim whitespace - var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim(); + compile.$$addScopeInfo($linkNode, scope); - if (tempData) { - var contentType = headers('Content-Type'); - var hasJsonContentType = contentType && contentType.indexOf(APPLICATION_JSON) === 0; + if (cloneConnectFn) cloneConnectFn($linkNode, scope); + if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn); - 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); - } + 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'; } } - return data; - } + /** + * 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; - 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; + for (var i = 0; i < nodeList.length; i++) { + attrs = new Attributes(); - function fillInParsed(key, val) { - if (key) { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - } + // Support: IE 11 only + // Workaround for #11781 and #14924 + if (msie === 11) { + mergeConsecutiveTextNodes(nodeList, i, notLiveList); + } - 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)); - }); - } + // 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); - return parsed; - } + nodeLinkFn = (directives.length) + ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement, + null, [], [], previousCompileContext) + : null; - /** - * 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; + if (nodeLinkFn && nodeLinkFn.scope) { + compile.$$addScopeClass(attrs.$$element); + } - return function (name) { - if (!headersObj) headersObj = parseHeaders(headers); + childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || + !(childNodes = nodeList[i].childNodes) || + !childNodes.length) + ? null + : compileNodes(childNodes, + nodeLinkFn ? ( + (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement) + && nodeLinkFn.transclude) : transcludeFn); - if (name) { - var value = headersObj[lowercase(name)]; - if (value === undefined) { - value = null; + if (nodeLinkFn || childLinkFn) { + linkFns.push(i, nodeLinkFn, childLinkFn); + linkFnFound = true; + nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn; } - return value; + + //use the previous context only for the first element in the virtual group + previousCompileContext = null; } - return headersObj; - }; - } + // return a linking function if we have found anything, null otherwise + return linkFnFound ? compositeLinkFn : null; - /** - * 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.)} fns Function or an array of functions. - * @returns {*} Transformed data. - */ - function transformData(data, headers, status, fns) { - if (isFunction(fns)) { - return fns(data, headers, status); - } + function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) { + var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn; + var stableNodeList; - forEach(fns, function (fn) { - data = fn(data, headers, status); - }); - return data; - } + 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); - function isSuccess(status) { - return 200 <= status && status < 300; - } + // 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; + } - /** - * @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}` - 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)}` - - * 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)}` - - * 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) - }, + for (i = 0, ii = linkFns.length; i < ii;) { + node = stableNodeList[linkFns[i++]]; + nodeLinkFn = linkFns[i++]; + childLinkFn = linkFns[i++]; - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', + if (nodeLinkFn) { + if (nodeLinkFn.scope) { + childScope = scope.$new(); + compile.$$addScopeInfo(jqLite(node), childScope); + } else { + childScope = scope; + } - paramSerializer: '$httpParamSerializer', + if (nodeLinkFn.transcludeOnThisElement) { + childBoundTranscludeFn = createBoundTranscludeFn( + scope, nodeLinkFn.transclude, parentBoundTranscludeFn); - jsonpCallbackParam: 'callback' - }; + } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) { + childBoundTranscludeFn = parentBoundTranscludeFn; - 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; - }; + } else if (!parentBoundTranscludeFn && transcludeFn) { + childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn); - /** - * @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 = []; + } else { + childBoundTranscludeFn = null; + } - /** - * @ngdoc property - * @name $httpProvider#xsrfWhitelistedOrigins - * @description - * - * Array containing URLs whose origins are trusted to receive the XSRF token. See the - * {@link ng.$http#security-considerations Security Considerations} sections for more details on - * XSRF. - * - * **Note:** An "origin" consists of the [URI scheme](https://en.wikipedia.org/wiki/URI_scheme), - * the [hostname](https://en.wikipedia.org/wiki/Hostname) and the - * [port number](https://en.wikipedia.org/wiki/Port_(computer_networking). For `http:` and - * `https:`, the port number can be omitted if using th default ports (80 and 443 respectively). - * Examples: `http://example.com`, `https://api.example.com:9876` - * - *
    - * It is not possible to whitelist specific URLs/paths. The `path`, `query` and `fragment` parts - * of a URL will be ignored. For example, `https://foo.com/path/bar?query=baz#fragment` will be - * treated as `https://foo.com`, meaning that **all** requests to URLs starting with - * `https://foo.com/` will include the XSRF token. - *
    - * - * @example - * - * ```js - * // App served from `https://example.com/`. - * angular. - * module('xsrfWhitelistedOriginsExample', []). - * config(['$httpProvider', function($httpProvider) { - * $httpProvider.xsrfWhitelistedOrigins.push('https://api.example.com'); - * }]). - * run(['$http', function($http) { - * // The XSRF token will be sent. - * $http.get('https://api.example.com/preferences').then(...); - * - * // The XSRF token will NOT be sent. - * $http.get('https://stats.example.com/activity').then(...); - * }]); - * ``` - */ - var xsrfWhitelistedOrigins = this.xsrfWhitelistedOrigins = []; + nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn); - this.$get = ['$browser', '$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector', '$sce', function ($browser, $httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector, $sce) { + } else if (childLinkFn) { + childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn); + } + } + } + } - var defaultCache = $cacheFactory('$http'); + function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { + var node = nodeList[idx]; + var parent = node.parentNode; + var sibling; - /** - * Make sure that default param serializer is exposed as a function - */ - defaults.paramSerializer = isString(defaults.paramSerializer) ? $injector.get(defaults.paramSerializer) : defaults.paramSerializer; + if (node.nodeType !== NODE_TYPE_TEXT) { + return; + } - /** - * 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 = []; + while (true) { + sibling = parent ? node.nextSibling : nodeList[idx + 1]; + if (!sibling || sibling.nodeType !== NODE_TYPE_TEXT) { + break; + } - forEach(interceptorFactories, function (interceptorFactory) { - reversedInterceptors.unshift(isString(interceptorFactory) ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory)); - }); + node.nodeValue = node.nodeValue + sibling.nodeValue; - /** - * A function to check request URLs against a list of allowed origins. - */ - var urlIsAllowedOrigin = urlIsAllowedOriginFactory(xsrfWhitelistedOrigins); + if (sibling.parentNode) { + sibling.parentNode.removeChild(sibling); + } + if (notLiveList && sibling === nodeList[idx + 1]) { + nodeList.splice(idx + 1, 1); + } + } + } - /** - * @ngdoc service - * @kind function - * @name $http - * @requires ng.$httpBackend - * @requires $cacheFactory - * @requires $rootScope - * @requires $q - * @requires $injector - * - * @description - * The `$http` service is a core AngularJS 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} that is - * resolved (request success) or rejected (request failure) with a - * {@link ng.$http#$http-returns response} object. - * - * ```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. - * }); - * ``` - * - * - * ## 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): - * - Accept: application/json, text/plain, \*/\* - * - `$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. - * - *
    - * **Note:** AngularJS 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. - *
    - * - * ### 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. - * - * AngularJS 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. AngularJS 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"`. - * AngularJS 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'] - * ``` - * - * AngularJS 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. AngularJS 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 (by default `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. - * - * 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 the `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)) - * for added security. - * - * The header will — by default — **not** be set for cross-domain requests. This - * prevents unauthorized servers (e.g. malicious or compromised 3rd-party APIs) from gaining - * access to your users' XSRF tokens and exposing them to Cross Site Request Forgery. If you - * want to, you can whitelist additional origins to also receive the XSRF token, by adding them - * to {@link ng.$httpProvider#xsrfWhitelistedOrigins xsrfWhitelistedOrigins}. This might be - * useful, for example, if your application, served from `example.com`, needs to access your API - * at `api.example.com`. - * See {@link ng.$httpProvider#xsrfWhitelistedOrigins $httpProvider.xsrfWhitelistedOrigins} for - * more details. - * - *
    - * **Warning**
    - * Only whitelist origins that you have control over and make sure you understand the - * implications of doing so. - *
    - * - * The name of the cookie and the header can be specified using the `xsrfCookieName` and - * `xsrfHeaderName` 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 AngularJS apps share the - * same domain or subdomain, we recommend that each application uses a 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.}` – 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.}` – - * 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.}` – - * 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}` - 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. - * - * A numerical timeout or a promise returned from {@link ng.$timeout $timeout}, will set - * the `xhrStatus` in the {@link $http#$http-returns response} to "timeout", and any other - * resolved promise will set it to "abort", following standard XMLHttpRequest behavior. - * - * - **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} A {@link ng.$q `Promise}` that will be resolved (request success) - * or rejected (request failure) with a response object. - * - * 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`. More information - * about the status might be available in the `xhrStatus` property. - * - * 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. - * - * - * @property {Array.} pendingRequests Array of config objects for currently pending - * requests. This is primarily meant to be used for debugging purposes. - * - * - * @example - - -
    - - -
    - - - -
    http status code: {{status}}
    -
    http response data: {{data}}
    -
    -
    - - 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; - }; - }]); - - - Hello, $http! - - - 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'); - }); - -
    - */ - function $http(requestConfig) { + function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { + function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { - if (!isObject(requestConfig)) { - throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig); + if (!transcludedScope) { + transcludedScope = scope.$new(false, containingScope); + transcludedScope.$$transcluded = true; } - 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); + 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; } + } - 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; + return boundTranscludeFn; + } - $browser.$$incOutstandingRequestCount('$http'); + /** + * 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: + addDirective(directives, + directiveNormalize(nodeName), 'E', maxPriority, ignoreDirective); + + // iterate over the attributes + for (var attr, name, nName, value, ngPrefixMatch, nAttrs = node.attributes, + j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) { + var attrStartName = false; + var attrEndName = false; + + var isNgAttr = false, isNgProp = false, isNgEvent = false; + var multiElementMatch; + + attr = nAttrs[j]; + name = attr.name; + value = attr.value; + + nName = directiveNormalize(name.toLowerCase()); + + // Support ng-attr-*, ng-prop-* and ng-on-* + if ((ngPrefixMatch = nName.match(NG_PREFIX_BINDING))) { + isNgAttr = ngPrefixMatch[1] === 'Attr'; + isNgProp = ngPrefixMatch[1] === 'Prop'; + isNgEvent = ngPrefixMatch[1] === 'On'; + + // Normalize the non-prefixed name + name = name.replace(PREFIX_REGEXP, '') + .toLowerCase() + .substr(4 + ngPrefixMatch[1].length).replace(/_(.)/g, function(match, letter) { + return letter.toUpperCase(); + }); - var requestInterceptors = []; - var responseInterceptors = []; - var promise = $q.resolve(config); + // Support *-start / *-end multi element directives + } else if ((multiElementMatch = nName.match(MULTI_ELEMENT_DIR_RE)) && directiveIsMultiElement(multiElementMatch[1])) { + attrStartName = name; + attrEndName = name.substr(0, name.length - 5) + 'end'; + name = name.substr(0, name.length - 6); + } - // 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); - } - }); + if (isNgProp || isNgEvent) { + attrs[nName] = value; + attrsMap[nName] = attr.name; - promise = chainInterceptors(promise, requestInterceptors); - promise = promise.then(serverRequest); - promise = chainInterceptors(promise, responseInterceptors); - promise = promise.finally(completeOutstandingRequest); + if (isNgProp) { + addPropertyDirective(node, directives, nName, name); + } else { + addEventDirective(directives, nName, name); + } + } else { + // Update nName for cases where a prefix was removed + // NOTE: the .toLowerCase() is unnecessary and causes https://github.com/angular/angular.js/issues/16624 for ng-attr-* + nName = directiveNormalize(name.toLowerCase()); + attrsMap[nName] = name; - return promise; + if (isNgAttr || !attrs.hasOwnProperty(nName)) { + attrs[nName] = value; + if (getBooleanAttrName(node, nName)) { + attrs[nName] = true; // presence means true + } + } - function chainInterceptors(promise, interceptors) { - for (var i = 0, ii = interceptors.length; i < ii;) { - var thenFn = interceptors[i++]; - var rejectFn = interceptors[i++]; + addAttrInterpolateDirective(node, directives, value, nName, isNgAttr); + addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName, + attrEndName); + } + } - promise = promise.then(thenFn, rejectFn); + 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'); } - interceptors.length = 0; + // 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; + } - return promise; - } + directives.sort(byPriority); + return directives; + } - function completeOutstandingRequest() { - $browser.$$completeOutstandingRequest(noop, '$http'); + 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.) + } + } - function executeHeaderFns(headers, config) { - var headerContent, - processedHeaders = {}; + /** + * 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); + } - forEach(headers, function (headerFn, header) { - if (isFunction(headerFn)) { - headerContent = headerFn(config); - if (headerContent != null) { - processedHeaders[header] = headerContent; - } - } else { - processedHeaders[header] = headerFn; - } - }); + return jqLite(nodes); + } - return processedHeaders; - } + /** + * 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); + }; + } - function mergeHeaders(config) { - var defHeaders = defaults.headers, - reqHeaders = extend({}, config.headers), - defHeaderName, - lowercaseDefHeaderName, - reqHeaderName; + /** + * 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; - defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]); + if (eager) { + return compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext); + } + return /** @this */ function lazyCompilation() { + if (!compiled) { + compiled = compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext); - // using for-in instead of forEach to avoid unnecessary iteration after header has been found - defaultHeadersIteration: for (defHeaderName in defHeaders) { - lowercaseDefHeaderName = lowercase(defHeaderName); + // 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); + }; + } - for (reqHeaderName in reqHeaders) { - if (lowercase(reqHeaderName) === lowercaseDefHeaderName) { - continue defaultHeadersIteration; - } + /** + * 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.} preLinkFns + * @param {Array.} 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); } - - reqHeaders[defHeaderName] = defHeaders[defHeaderName]; } - // execute if header value is a function for merged headers - return executeHeaderFns(reqHeaders, shallowCopy(config)); + newScopeDirective = newScopeDirective || directive; } - function serverRequest(config) { - var headers = config.headers; - var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest); + directiveName = directive.name; - // strip content-type if data is undefined - if (isUndefined(reqData)) { - forEach(headers, function (value, header) { - if (lowercase(header) === 'content-type') { - delete headers[header]; - } - }); - } + // 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; - if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) { - config.withCredentials = defaults.withCredentials; - } + for (var scanningIndex = i + 1; (candidateDirective = directives[scanningIndex++]);) { + if ((candidateDirective.transclude && !candidateDirective.$$tlb) + || (candidateDirective.replace && (candidateDirective.templateUrl || candidateDirective.template))) { + mightHaveMultipleTransclusionError = true; + break; + } + } - // send request - return sendReq(config, reqData).then(transformResponse, transformResponse); + didScanForMultipleTransclusion = true; } - 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); + if (!directive.templateUrl && directive.controller) { + controllerDirectives = controllerDirectives || createMap(); + assertNoDuplicate('\'' + directiveName + '\' controller', + controllerDirectives[directiveName], directive, $compileNode); + controllerDirectives[directiveName] = directive; } - } - $http.pendingRequests = []; + directiveValue = directive.transclude; - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + if (directiveValue) { + hasTranscludeDirective = true; - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + // 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; + } - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + 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); + + 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 { - /** - * @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'`. - * - *
    - * You can no longer use the `JSON_CALLBACK` string as a placeholder for specifying where the callback - * parameter value should go. - *
    - * - * 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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ - createShortMethods('get', 'delete', 'head', 'jsonp'); + var slots = createMap(); - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + if (!isObject(directiveValue)) { + $template = jqLite(jqLiteClone(compileNode)).contents(); + } else { - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ + // We have transclusion slots, + // collect them up, compile them and store their transclusion functions + $template = window.document.createDocumentFragment(); - /** - * @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 {@link ng.$http#$http-arguments `$http()` arguments}. - * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. - * See {@link ng.$http#$http-returns `$http()` return value}. - */ - createShortMethodsWithData('post', 'put', 'patch'); + var slotMap = createMap(); + var filledSlots = createMap(); - /** - * @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; + // 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; - return $http; + slotMap[elementSelector] = slotName; - function createShortMethods(names) { - forEach(arguments, function (name) { - $http[name] = function (url, config) { - return $http(extend({}, config || {}, { - method: name, - url: url - })); - }; - }); - } + // 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; - function createShortMethodsWithData(name) { - forEach(arguments, function (name) { - $http[name] = function (url, data, config) { - return $http(extend({}, config || {}, { - method: name, - url: url, - data: data - })); - }; - }); - } + // 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; + }); - /** - * 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; + // 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] || window.document.createDocumentFragment(); + slots[slotName].appendChild(node); + } else { + $template.appendChild(node); + } + }); - 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); - } + // 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 + var slotCompileNodes = jqLite(slots[slotName].childNodes); + slots[slotName] = compilationGenerator(mightHaveMultipleTransclusionError, slotCompileNodes, transcludeFn); + } + } - url = buildUrl(url, config.paramSerializer(config.params)); + $template = jqLite($template.childNodes); + } - if (isJsonp) { - // Check the url and add the JSONP callback placeholder - url = sanitizeJsonpCallbackParam(url, config.jsonpCallbackParam); + $compileNode.empty(); // clear contents + childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, undefined, + undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope}); + childTranscludeFn.$$slots = slots; + } } - $http.pendingRequests.push(config); - promise.then(removePendingReq, removePendingReq); + if (directive.template) { + hasTemplate = true; + assertNoDuplicate('template', templateDirective, directive, $compileNode); + templateDirective = directive; - 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; - } + directiveValue = (isFunction(directive.template)) + ? directive.template($compileNode, templateAttrs) + : directive.template; - 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); + directiveValue = denormalizeTemplate(directiveValue); + + if (directive.replace) { + replaceDirective = directive; + if (jqLiteIsTextNode(directiveValue)) { + $template = []; } 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'); - } + $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue))); } - } else { - // put the promise for the non-transformed response into cache as a placeholder - cache.put(url, promise); - } - } + compileNode = $template[0]; - // 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 = urlIsAllowedOrigin(config.url) ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName] : undefined; - if (xsrfValue) { - reqHeaders[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue; - } + if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) { + throw $compileMinErr('tplrt', + 'Template for directive \'{0}\' must have exactly one root element. {1}', + directiveName, ''); + } - $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout, config.withCredentials, config.responseType, createApplyHandlers(config.eventHandlers), createApplyHandlers(config.uploadEventHandlers)); - } + replaceWith(jqCollection, $compileNode, compileNode); - return promise; + var newTemplateAttrs = {$attr: {}}; - 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); - } + // 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)); - function callEventHandler() { - eventHandler(event); - } - }; - }); - return applyHandlers; + 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); } } - /** - * 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); - } - } + if (directive.templateUrl) { + hasTemplate = true; + assertNoDuplicate('template', templateDirective, directive, $compileNode); + templateDirective = directive; - function resolveHttpPromise() { - resolvePromise(response, status, headersString, statusText, xhrStatus); + if (directive.replace) { + replaceDirective = directive; } - if (useApplyAsync) { - $rootScope.$applyAsync(resolveHttpPromise); - } else { - resolveHttpPromise(); - if (!$rootScope.$$phase) $rootScope.$apply(); + // 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)); } } - /** - * 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); + if (directive.terminal) { + nodeLinkFn.terminal = true; + terminalPriority = Math.max(terminalPriority, directive.priority); } - 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; - } + nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true; + nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective; + nodeLinkFn.templateOnThisElement = hasTemplate; + nodeLinkFn.transclude = childTranscludeFn; - 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); - } - }); + previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective; - // Add in the JSON_CALLBACK callback param value - url += (url.indexOf('?') === -1 ? '?' : '&') + cbKey + '=JSON_CALLBACK'; + // might be normal or delayed nodeLinkFn depending on if templateUrl is present + return nodeLinkFn; - return url; + //////////////////// + + 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); + } } - }]; - } - /** - * @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(); - }; - }; - } + function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) { + var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element, + attrs, scopeBindingInfo; - /** - * @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]); - }]; - } + if (compileNode === linkNode) { + attrs = templateAttrs; + $element = templateAttrs.$$element; + } else { + $element = jqLite(linkNode); + attrs = new Attributes($element, templateAttrs); + } - 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(); + controllerScope = scope; + if (newIsolateScopeDirective) { + isolateScope = scope.$new(true); + } else if (newScopeDirective) { + controllerScope = scope.$parent; + } - 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 { + 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]; + }; + } - var xhr = createXhr(method, url); - var abortedByTimeout = false; + if (controllerDirectives) { + elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective); + } - xhr.open(method, url, true); - forEach(headers, function (value, key) { - if (isDefined(value)) { - xhr.setRequestHeader(key, value); + 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); } - }); - - 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; + // Initialize bindToController bindings + for (var name in elementControllers) { + var controllerDirective = controllerDirectives[name]; + var controller = elementControllers[name]; + var bindings = controllerDirective.$$bindings.bindToController; - // 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; + controller.instance = controller(); + $element.data('$' + controllerDirective.name + 'Controller', controller.instance); + controller.bindingInfo = + initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective); } - 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'); - }; + // 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)); + } + }); - var requestAborted = function requestAborted() { - completeRequest(callback, -1, null, null, '', abortedByTimeout ? 'timeout' : 'abort'); - }; + // 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(); + }); + } + }); - 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'); - }; + // 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 + ); + } - xhr.onerror = requestError; - xhr.ontimeout = requestTimeout; - xhr.onabort = requestAborted; + // 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); + } - forEach(eventHandlers, function (value, key) { - xhr.addEventListener(key, value); - }); + // 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 + ); + } - forEach(uploadEventHandlers, function (value, key) { - xhr.upload.addEventListener(key, value); + // Trigger $postLink lifecycle hooks + forEach(elementControllers, function(controller) { + var controllerInstance = controller.instance; + if (isFunction(controllerInstance.$postLink)) { + controllerInstance.$postLink(); + } }); - if (withCredentials) { - xhr.withCredentials = true; - } + // 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 (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; + 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); } } - - xhr.send(isUndefined(post) ? null : post); } + } - // Since we are using xhr.abort() when a request times out, we have to set a flag that - // indicates to requestAborted if the request timed out or was aborted. - // - // http.timeout = numerical timeout timeout - // http.timeout = $timeout timeout - // http.timeout = promise abort - // xhr.abort() abort (The xhr object is normally inaccessible, but - // can be exposed with the xhrFactory) - if (timeout > 0) { - var timeoutId = $browserDefer(function () { - timeoutRequest('timeout'); - }, timeout); - } else if (isPromiseLike(timeout)) { - timeout.then(function () { - timeoutRequest(isDefined(timeout.$$timeoutId) ? 'timeout' : 'abort'); - }); - } + function getControllers(directiveName, require, $element, elementControllers) { + var value; - function timeoutRequest(reason) { - abortedByTimeout = reason === 'timeout'; - if (jsonpDone) { - jsonpDone(); - } - if (xhr) { - xhr.abort(); + 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; } - } - function completeRequest(callback, status, response, headersString, statusText, xhrStatus) { - // cancel timeout and subsequent timeout promise resolution - if (isDefined(timeoutId)) { - $browserDefer.cancel(timeoutId); + if (!value) { + var dataName = '$' + name + 'Controller'; + + if (inheritType === '^^' && $element[0] && $element[0].nodeType === NODE_TYPE_DOCUMENT) { + // inheritedData() uses the documentElement when it finds the document, so we would + // require from the element itself. + value = null; + } else { + value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName); + } } - jsonpDone = xhr = null; - callback(status, response, headersString, statusText, xhrStatus); + 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); + }); } - }; - 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; + return value || null; + } - _callback = function callback(event) { - script.removeEventListener('load', _callback); - script.removeEventListener('error', _callback); - rawDocument.body.removeChild(script); - script = null; - var status = -1; - var text = 'unknown'; + 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 + }; - if (event) { - if (event.type === 'load' && !callbacks.wasCalled(callbackPath)) { - event = { type: 'error' }; - } - text = event.type; - status = event.type === 'error' ? 404 : 200; + var controller = directive.controller; + if (controller === '@') { + controller = attrs[directive.name]; } - if (done) { - done(status, text); - } - }; + var controllerInstance = $controller(controller, locals, true, directive.controllerAs); - script.addEventListener('load', _callback); - script.addEventListener('error', _callback); - rawDocument.body.appendChild(script); - return _callback; + // 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; } - } - 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); - }; + // 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}); + } + } - $interpolateMinErr.interr = function (text, err) { - return $interpolateMinErr('interr', 'Can\'t interpolate: {0}\n{1}', text, err.toString()); - }; + /** + * 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; + } - /** - * @ngdoc provider - * @name $interpolateProvider - * @this - * - * @description - * - * Used for configuring the interpolation markup. Defaults to `{{` and `}}`. - * - *
    - * This feature is sometimes used to mix different markup languages, e.g. to wrap an AngularJS - * 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 AngularJS - * expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS) - * security bugs! - *
    - * - * @example - - - -
    - //demo.label// -
    -
    - - it('should interpolate binding with custom symbols', function() { - expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.'); - }); - -
    - */ - function $InterpolateProvider() { - var startSymbol = '{{'; - var endSymbol = '}}'; /** - * @ngdoc method - * @name $interpolateProvider#startSymbol - * @description - * Symbol to denote start of expression in the interpolated string. Defaults to `{{`. + * 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=} 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. + * @param {string} name name of the directive to look up. + * @returns true if directive was registered as multi-element. */ - this.startSymbol = function (value) { - if (value) { - startSymbol = value; - return this; + 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 startSymbol; - }; + return false; + } /** - * @ngdoc method - * @name $interpolateProvider#endSymbol - * @description - * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`. + * 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 {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. + * @param {object} dst destination attributes (original DOM) + * @param {object} src source attributes (from the directive template) */ - this.endSymbol = function (value) { - if (value) { - endSymbol = value; - return this; - } - 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:'AngularJS'})).toEqual('Hello ANGULARJS!'); - * ``` - * - * `$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 = 'AngularJS'; - * expect(exp(context)).toEqual('Hello AngularJS!'); - * ``` - * - * `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 (<, >) with &lt; and &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. - * - * - * - *
    - *

    {{apptitle}}: \{\{ username = "defaced value"; \}\} - *

    - *

    {{username}} 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.

    - *

    Instead, the result of the attempted script injection is visible, and can be removed - * from the database by an administrator.

    - *
    - *
    - *
    - * - * @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: - * - * ``` - *
    - * ``` - * - * 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) { - var contextAllowsConcatenation = trustedContext === $sce.URL || trustedContext === $sce.MEDIA_URL; - - // Provide a quick exit and simplified result function for text with no interpolation - if (!text.length || text.indexOf(startSymbol) === -1) { - if (mustHaveExpression && !contextAllowsConcatenation) return; - - var unescapedText = unescapeText(text); - if (contextAllowsConcatenation) { - unescapedText = $sce.getTrusted(trustedContext, unescapedText); - } - var 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 = [], - singleExpression; - - 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); - index = endIndex + endSymbolLength; - expressionPositions.push(concat.length); - concat.push(''); // Placeholder that will get replaced with the evaluated expression. - } 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))); + 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]; } - break; } + dst.$set(key, value, true, srcAttr[key]); } + }); - singleExpression = concat.length === 1 && expressionPositions.length === 1; - // Intercept expression if we need to stringify concatenated inputs, which may be SCE trusted - // objects rather than simple strings - // (we don't modify the expression if the input consists of only a single trusted input) - var interceptor = contextAllowsConcatenation && singleExpression ? undefined : parseStringifyInterceptor; - parseFns = expressions.map(function (exp) { - return $parse(exp, interceptor); - }); - - // 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 some $sce-managed secure contexts (RESOURCE_URLs mostly), - // 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. - - // Note that URL and MEDIA_URL $sce contexts do not need this, since `$sce` can sanitize the values - // passed to it. In that case, `$sce.getTrusted` will be called on either the single expression - // or on the overall concatenated string (losing trusted types used in the mix, by design). - // Both these methods will sanitize plain strings. Also, HTML could be included, but since it's - // only used in srcdoc attributes, this would not be very useful. - - 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]; - } - - if (contextAllowsConcatenation) { - // If `singleExpression` then `concat[0]` might be a "trusted" value or `null`, rather than a string - return $sce.getTrusted(trustedContext, singleExpression ? concat[0] : concat.join('')); - } else if (trustedContext && concat.length > 1) { - // This context does not allow more than one part, e.g. expr + string or exp + exp. - $interpolateMinErr.throwNoconcat(text); - } - // In an unprivileged context or only one part: just concatenate and return. - return concat.join(''); - }; - - 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 { - // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual - // parts of a full URL. We don't care about losing the trustedness here. - // In non-concatenable contexts, where there is only one expression, this interceptor is - // not applied to the expression. - value = trustedContext && !contextAllowsConcatenation ? $sce.getTrusted(trustedContext, value) : $sce.valueOf(value); - return allOrNothing && !isDefined(value) ? value : stringify(value); - } catch (err) { - $exceptionHandler($interpolateMinErr.interr(text, err)); + // 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]; } } - } + }); + } - /** - * @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; - }; + 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; - return $interpolate; - }]; - } + $compileNode.empty(); - var $intervalMinErr = minErr('$interval'); + $templateRequest(templateUrl) + .then(function(content) { + var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn; - /** @this */ - function $IntervalProvider() { - this.$get = ['$$intervalFactory', '$window', function ($$intervalFactory, $window) { - var intervals = {}; - var setIntervalFn = function setIntervalFn(tick, delay, deferred) { - var id = $window.setInterval(tick, delay); - intervals[id] = deferred; - return id; - }; - var clearIntervalFn = function clearIntervalFn(id) { - $window.clearInterval(id); - delete intervals[id]; - }; + content = denormalizeTemplate(content); - /** - * @ngdoc service - * @name $interval - * - * @description - * AngularJS'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. - * - *
    - * **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. - *
    - * - * @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 - * - * - * - * - *
    - *
    - *
    - * Current time is: - *
    - * Blood 1 : {{blood_1}} - * Blood 2 : {{blood_2}} - * - * - * - *
    - *
    - * - *
    - *
    - */ - var interval = $$intervalFactory(setIntervalFn, clearIntervalFn); + if (origAsyncDirective.replace) { + if (jqLiteIsTextNode(content)) { + $template = []; + } else { + $template = removeComments(wrapTemplate(templateNamespace, trim(content))); + } + compileNode = $template[0]; - /** - * @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) return false; + 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); + } - if (!promise.hasOwnProperty('$$intervalId')) { - throw $intervalMinErr('badprom', '`$interval.cancel()` called with a promise that was not generated by `$interval()`.'); - } + tempTemplateAttrs = {$attr: {}}; + replaceWith($rootElement, $compileNode, compileNode); + var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs); - if (!intervals.hasOwnProperty(promise.$$intervalId)) return false; + 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); + } - var id = promise.$$intervalId; - var deferred = intervals[id]; + directives.unshift(derivedSyncDirective); - // Interval cancels should not report an unhandled promise. - markQExceptionHandled(deferred.promise); - deferred.reject('canceled'); - clearIntervalFn(id); + 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); - return true; - }; + while (linkQueue.length) { + var scope = linkQueue.shift(), + beforeTemplateLinkNode = linkQueue.shift(), + linkRootElement = linkQueue.shift(), + boundTranscludeFn = linkQueue.shift(), + linkNode = $compileNode[0]; - return interval; - }]; - } + if (scope.$$destroyed) continue; - /** @this */ - function $$IntervalFactoryProvider() { - this.$get = ['$browser', '$q', '$$q', '$rootScope', function ($browser, $q, $$q, $rootScope) { - return function intervalFactory(setIntervalFn, clearIntervalFn) { - return function intervalFn(fn, delay, count, invokeApply) { - var hasParams = arguments.length > 4, - args = hasParams ? sliceArgs(arguments, 4) : [], - iteration = 0, - skipApply = isDefined(invokeApply) && !invokeApply, - deferred = (skipApply ? $$q : $q).defer(), - promise = deferred.promise; + if (beforeTemplateLinkNode !== beforeTemplateCompileNode) { + var oldClasses = beforeTemplateLinkNode.className; - count = isDefined(count) ? count : 0; + if (!(previousCompileContext.hasElementTranscludeDirective && + origAsyncDirective.replace)) { + // it was cloned therefore we have to clone as well. + linkNode = jqLiteClone(compileNode); + } + replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode); - function callback() { - if (!hasParams) { - fn(iteration); - } else { - fn.apply(null, args); + // Copy in CSS classes from original node + safeAddClass(jqLite(linkNode), oldClasses); } - } - - function tick() { - if (skipApply) { - $browser.defer(callback); + if (afterTemplateNodeLinkFn.transcludeOnThisElement) { + childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn); } else { - $rootScope.$evalAsync(callback); - } - deferred.notify(iteration++); - - if (count > 0 && iteration >= count) { - deferred.resolve(iteration); - clearIntervalFn(promise.$$intervalId); + childBoundTranscludeFn = boundTranscludeFn; } - - if (!skipApply) $rootScope.$apply(); + afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement, + childBoundTranscludeFn); } + linkQueue = null; + }).catch(function(error) { + if (isError(error)) { + $exceptionHandler(error); + } + }); - promise.$$intervalId = setIntervalFn(tick, delay, deferred, skipApply); - - return promise; - }; - }; - }]; - } - - /** - * @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]; + 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); } }; - }; - }; - - /** - * @ngdoc service - * @name $locale - * - * @description - * $locale service provides localization rules for various AngularJS components. As of right now the - * only public api is: - * - * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`) - */ - - /* global stripHash: true */ - - 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, '/')); + /** + * 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; } - return segments.join('/'); - } + function assertNoDuplicate(what, previousDirective, directive, element) { - function decodePath(path, html5Mode) { - var segments = path.split('/'), - i = segments.length; + function wrapModuleNameIfDefined(moduleName) { + return moduleName ? + (' (module: ' + moduleName + ')') : + ''; + } - 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'); + 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)); } } - return segments.join('/'); - } - - function normalizePath(pathValue, searchValue, hashValue) { - var search = toKeyValue(searchValue), - hash = hashValue ? '#' + encodeUriSegment(hashValue) : '', - path = encodePath(pathValue); - return path + (search ? '?' + search : '') + hash; - } + 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 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; - } + function wrapTemplate(type, template) { + type = lowercase(type || 'html'); + switch (type) { + case 'svg': + case 'math': + var wrapper = window.document.createElement('div'); + wrapper.innerHTML = '<' + type + '>' + template + ''; + return wrapper.childNodes[0].childNodes; + default: + return template; + } + } - var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/; - function parseAppUrl(url, locationObj, html5Mode) { - if (DOUBLE_SLASH_REGEX.test(url)) { - throw $locationMinErr('badpath', 'Invalid url "{0}".', url); + function getTrustedAttrContext(nodeName, attrNormalizedName) { + if (attrNormalizedName === 'srcdoc') { + return $sce.HTML; + } + // All nodes with src attributes require a RESOURCE_URL value, except for + // img and various html5 media nodes, which require the MEDIA_URL context. + if (attrNormalizedName === 'src' || attrNormalizedName === 'ngSrc') { + if (['img', 'video', 'audio', 'source', 'track'].indexOf(nodeName) === -1) { + return $sce.RESOURCE_URL; + } + return $sce.MEDIA_URL; + } else if (attrNormalizedName === 'xlinkHref') { + // Some xlink:href are okay, most aren't + if (nodeName === 'image') return $sce.MEDIA_URL; + if (nodeName === 'a') return $sce.URL; + return $sce.RESOURCE_URL; + } else if ( + // Formaction + (nodeName === 'form' && attrNormalizedName === 'action') || + // If relative URLs can go where they are not expected to, then + // all sorts of trust issues can arise. + (nodeName === 'base' && attrNormalizedName === 'href') || + // links can be stylesheets or imports, which can run script in the current origin + (nodeName === 'link' && attrNormalizedName === 'href') + ) { + return $sce.RESOURCE_URL; + } else if (nodeName === 'a' && (attrNormalizedName === 'href' || + attrNormalizedName === 'ngHref')) { + return $sce.URL; + } } - var prefixed = url.charAt(0) !== '/'; - if (prefixed) { - url = '/' + url; + function getTrustedPropContext(nodeName, propNormalizedName) { + var prop = propNormalizedName.toLowerCase(); + return PROP_CONTEXTS[nodeName + '|' + prop] || PROP_CONTEXTS['*|' + prop]; } - 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 sanitizeSrcsetPropertyValue(value) { + return sanitizeSrcset($sce.valueOf(value), 'ng-prop-srcset'); } - } + function addPropertyDirective(node, directives, attrName, propName) { + if (EVENT_HANDLER_ATTR_REGEXP.test(propName)) { + throw $compileMinErr('nodomevents', 'Property bindings for HTML DOM event properties are disallowed'); + } - function startsWith(str, search) { - return str.slice(0, search.length) === search; - } + var nodeName = nodeName_(node); + var trustedContext = getTrustedPropContext(nodeName, propName); - /** - * - * @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); + var sanitizer = identity; + // Sanitize img[srcset] + source[srcset] values. + if (propName === 'srcset' && (nodeName === 'img' || nodeName === 'source')) { + sanitizer = sanitizeSrcsetPropertyValue; + } else if (trustedContext) { + sanitizer = $sce.getTrusted.bind($sce, trustedContext); + } + + directives.push({ + priority: 100, + compile: function ngPropCompileFn(_, attr) { + var ngPropGetter = $parse(attr[attrName]); + var ngPropWatch = $parse(attr[attrName], function sceValueOf(val) { + // Unwrap the value to compare the actual inner safe value, not the wrapper object. + return $sce.valueOf(val); + }); + + return { + pre: function ngPropPreLinkFn(scope, $element) { + function applyPropValue() { + var propValue = ngPropGetter(scope); + $element.prop(propName, sanitizer(propValue)); + } + + applyPropValue(); + scope.$watch(ngPropWatch, applyPropValue); + } + }; + } + }); } - } - function stripHash(url) { - var index = url.indexOf('#'); - return index === -1 ? url : url.substr(0, index); - } + function addEventDirective(directives, attrName, eventName) { + directives.push( + createEventDirective($parse, $rootScope, $exceptionHandler, attrName, eventName, /*forceAsync=*/false) + ); + } - function stripFile(url) { - return url.substr(0, stripHash(url).lastIndexOf('/') + 1); - } + function addAttrInterpolateDirective(node, directives, value, name, isNgAttr) { + var nodeName = nodeName_(node); + var trustedContext = getTrustedAttrContext(nodeName, name); + var mustHaveExpression = !isNgAttr; + var allOrNothing = ALL_OR_NOTHING_ATTRS[name] || isNgAttr; - /* return the server only (scheme://host:port) */ - function serverBase(url) { - return url.substring(0, url.indexOf('/', url.indexOf('//') + 2)); - } + var interpolateFn = $interpolate(value, mustHaveExpression, trustedContext, allOrNothing); - /** - * 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); + // no interpolation found -> ignore + if (!interpolateFn) return; - /** - * 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); + if (name === 'multiple' && nodeName === 'select') { + throw $compileMinErr('selmulti', + 'Binding to the \'multiple\' attribute is not supported. Element: {0}', + startingTag(node)); } - parseAppUrl(pathUrl, this, true); - - if (!this.$$path) { - this.$$path = '/'; + if (EVENT_HANDLER_ATTR_REGEXP.test(name)) { + throw $compileMinErr('nodomevents', 'Interpolations for HTML DOM event attributes are disallowed'); } - this.$$compose(); - }; + directives.push({ + priority: 100, + compile: function() { + return { + pre: function attrInterpolatePreLinkFn(scope, element, attr) { + var $$observers = (attr.$$observers || (attr.$$observers = createMap())); - this.$$normalizeUrl = function (url) { - return appBaseNoFile + url.substr(1); // first char is always '/' - }; + // 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; + } - 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 attribute was updated so that there is no interpolation going on we don't want to + // register any observers + if (!interpolateFn) return; - 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; - }; - } + // 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); - /** - * 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) { + ($$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); + } + }); + } + }; + } + }); + } - parseAbsoluteUrl(appBase, this); /** - * Parse given hashbang URL into properties - * @param {string} url Hashbang URL - * @private + * 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. */ - this.$$parse = function (url) { - var withoutBaseUrl = stripBaseUrl(appBase, url) || stripBaseUrl(appBaseNoFile, url); - var withoutHashUrl; - - if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') { + 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; - // 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(); + // 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; } } } - 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 AngularJS, 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; + if (parent) { + parent.replaceChild(newNode, firstElementToRemove); + } - //Get the relative path from the input URL. - if (startsWith(url, base)) { - url = url.replace(base, ''); - } + // 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]); + } - // The input URL intentionally contains a first path segment that ends with a colon. - if (windowsFilePathExp.exec(url)) { - return path; - } + if (jqLite.hasData(firstElementToRemove)) { + // Copy over user data (that includes AngularJS'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)); - firstPathSegmentMatch = windowsFilePathExp.exec(path); - return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path; + // Remove $destroy event listeners from `firstElementToRemove` + jqLite(firstElementToRemove).off('$destroy'); } - }; - this.$$normalizeUrl = function (url) { - return appBase + (url ? hashPrefix + url : ''); - }; + // Cleanup any data/listeners on the elements and children. + // This includes invoking the $destroy event on any elements with listeners. + jqLite.cleanData(fragment.querySelectorAll('*')); - this.$$parseLinkUrl = function (url, relHref) { - if (stripHash(appBase) === stripHash(url)) { - this.$$parse(url); - return true; + // Update the jqLite collection to only contain the `newNode` + for (i = 1; i < removeCount; i++) { + delete elementsToRemove[i]; } - return false; - }; - } + elementsToRemove[0] = newNode; + elementsToRemove.length = 1; + } - /** - * 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; + function cloneAndAnnotateFn(fn, annotation) { + return extend(function() { return fn.apply(null, arguments); }, fn, annotation); + } + - if (appBase === stripHash(url)) { - rewrittenUrl = url; - } else if (appUrl = stripBaseUrl(appBaseNoFile, url)) { - rewrittenUrl = appBase + hashPrefix + appUrl; - } else if (appBaseNoFile === url + '/') { - rewrittenUrl = appBaseNoFile; + function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) { + try { + linkFn(scope, $element, attrs, controllers, transcludeFn); + } catch (e) { + $exceptionHandler(e, startingTag($element)); } - if (rewrittenUrl) { - this.$$parse(rewrittenUrl); + } + + function strictBindingsCheck(attrName, directiveName) { + if (strictComponentBindingsEnabled) { + throw $compileMinErr('missingattr', + 'Attribute \'{0}\' of \'{1}\' is non-optional and must be set!', + attrName, directiveName); } - return !!rewrittenUrl; - }; + } - this.$$normalizeUrl = function (url) { - // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#' - return appBase + hashPrefix + url; - }; - } + // Set up $watches for isolate scope and controller bindings. + function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) { + var removeWatchCollection = []; + var initialChanges = {}; + var changes; - var locationPrototype = { + forEach(bindings, function initializeBinding(definition, scopeName) { + var attrName = definition.attrName, + optional = definition.optional, + mode = definition.mode, // @, =, <, or & + lastValue, + parentGet, parentSet, compare, removeWatch; - /** - * Ensure absolute URL is initialized. - * @private - */ - $$absUrl: '', + switch (mode) { - /** - * Are we in html5 mode? - * @private - */ - $$html5: false, + case '@': + if (!optional && !hasOwnProperty.call(attrs, attrName)) { + strictBindingsCheck(attrName, directive.name); + destination[scopeName] = attrs[attrName] = undefined; - /** - * Has any change been replacing? - * @private - */ - $$replace: false, + } + 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 AngularJS 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; - /** - * Compose url and update `url` and `absUrl` property - * @private - */ - $$compose: function $$compose() { - this.$$url = normalizePath(this.$$path, this.$$search, this.$$hash); - this.$$absUrl = this.$$normalizeUrl(this.$$url); - this.$$urlUpdatedByLocation = true; - }, + case '=': + if (!hasOwnProperty.call(attrs, attrName)) { + if (optional) break; + strictBindingsCheck(attrName, directive.name); + attrs[attrName] = undefined; + } + if (optional && !attrs[attrName]) break; - /** - * @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'), + 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; - /** - * @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; - } + case '<': + if (!hasOwnProperty.call(attrs, attrName)) { + if (optional) break; + strictBindingsCheck(attrName, directive.name); + attrs[attrName] = undefined; + } + if (optional && !attrs[attrName]) break; - 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] || ''); + parentGet = $parse(attrs[attrName]); + var isLiteral = parentGet.literal; - return this; - }, + var initialValue = destination[scopeName] = parentGet(scope); + initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]); - /** - * @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'), + removeWatch = scope[definition.collection ? '$watchCollection' : '$watch'](parentGet, function parentValueWatchAction(newValue, oldValue) { + if (oldValue === newValue) { + if (oldValue === initialValue || (isLiteral && equals(oldValue, initialValue))) { + return; + } + oldValue = initialValue; + } + recordChanges(scopeName, newValue, oldValue); + destination[scopeName] = newValue; + }); - /** - * @ngdoc method - * @name $location#host - * - * @description - * This method is getter only. - * - * Return host of current URL. - * - * Note: compared to the non-AngularJS 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'), + removeWatchCollection.push(removeWatch); + break; - /** - * @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'), + 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; - /** - * @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; - }), + // Don't assign noop to destination if expression is not valid + if (parentGet === noop && optional) break; - /** - * @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.|Object.>} 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|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]; - }); + destination[scopeName] = function(locals) { + return parentGet(scope, locals); + }; + break; + } + }); - this.$$search = _search; - } else { - throw $locationMinErr('isrcharg', 'The first argument of the `$location#search()` call must be a string or an object.'); + 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 = []; } - break; - default: - if (isUndefined(paramValue) || paramValue === null) { - delete this.$$search[_search]; - } else { - this.$$search[_search] = paramValue; + // 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); + } } - 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() : ''; - }), + function triggerOnChangesHook() { + destination.$onChanges(changes); + // Now clear the changes so that we schedule onChanges when more changes arrive + changes = undefined; + } - /** - * @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; + return { + initialChanges: initialChanges, + removeWatches: removeWatchCollection.length && function removeWatches() { + for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) { + removeWatchCollection[i](); + } + } + }; } - }; + }]; +} - forEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function (Location) { - Location.prototype = Object.create(locationPrototype); +function SimpleChange(previous, current) { + this.previousValue = previous; + this.currentValue = current; +} +SimpleChange.prototype.isFirstChange = function() { return this.previousValue === _UNINITIALIZED_VALUE; }; - /** - * @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; +var PREFIX_REGEXP = /^((?:x|data)[:\-_])/i; +var SPECIAL_CHARS_REGEXP = /[:\-_]+(.)/g; - return this; - }; - }); +/** + * 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; + }); +} - function locationGetter(property) { - return (/** @this */function () { - return this[property]; - } - ); +/** + * @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 AngularJS: + * + * ``` + * + * ``` + */ + +/** + * @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 locationGetterSetter(property, preprocess) { - return (/** @this */function (value) { - if (isUndefined(value)) { - return this[property]; - } +function removeComments(jqNodes) { + jqNodes = jqLite(jqNodes); + var i = jqNodes.length; - this[property] = preprocess(value); - this.$$compose(); + if (i <= 1) { + return jqNodes; + } - return this; - } - ); + 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; +} - /** - * @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} - */ +var $controllerMinErr = minErr('$controller'); - /** - * @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; - } - }; +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 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 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 `` 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; - } +/** + * @ngdoc provider + * @name $controllerProvider + * @this + * + * @description + * The {@link ng.$controller $controller service} is used by AngularJS to create new + * controllers. + * + * This provider allows controller registration via the + * {@link ng.$controllerProvider#register register} method. + */ +function $ControllerProvider() { + var controllers = {}; - if (isBoolean(mode.requireBase)) { - html5Mode.requireBase = mode.requireBase; - } + /** + * @ngdoc method + * @name $controllerProvider#has + * @param {string} name Controller name to check. + */ + this.has = function(name) { + return controllers.hasOwnProperty(name); + }; - if (isBoolean(mode.rewriteLinks) || isString(mode.rewriteLinks)) { - html5Mode.rewriteLinks = mode.rewriteLinks; - } + /** + * @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; + } + }; - return this; - } else { - return html5Mode; - } - }; + this.$get = ['$injector', function($injector) { /** - * @ngdoc event - * @name $location#$locationChangeStart - * @eventType broadcast on root scope - * @description - * Broadcasted before a URL will change. + * @ngdoc service + * @name $controller + * @requires $injector * - * 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. + * @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: * - * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when - * the browser supports the HTML5 History API. + * * check if a controller with given name is registered via `$controllerProvider` + * * check if evaluating the string on the current scope returns a constructor * - * @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 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. * - * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when - * the browser supports the HTML5 History API. + * @param {Object} locals Injection locals for Controller. + * @return {Object} Instance of given controller. + * + * @description + * `$controller` service is responsible for instantiating controllers. * - * @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. + * 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); - 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 tag to be present!'); + if (!expression) { + throw $controllerMinErr('ctrlreg', + 'The controller with the name \'{0}\' is not registered.', constructor); } - 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); + assertArgFn(expression, constructor, true); + } - $location.$$state = $browser.state(); + 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); - var IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i; + if (identifier) { + addIdentifier(locals, identifier, instance, constructor || expression.name); + } - // Determine if two URLs are equal despite potentially having different encoding/normalizing - // such as $location.absUrl() vs $browser.url() - // See https://github.com/angular/angular.js/issues/16592 - function urlsEqual(a, b) { - return a === b || urlResolve(a).href === urlResolve(b).href; + 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 + }); } - 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; + instance = $injector.instantiate(expression, locals, constructor); - throw e; - } + if (identifier) { + addIdentifier(locals, identifier, instance, constructor || expression.name); } - $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; + return instance; + }; - var elm = jqLite(event.target); + 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); + } - // 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; - } + locals.$scope[identifier] = instance; + } + }]; +} - if (isString(rewriteLinks) && isUndefined(elm.attr(rewriteLinks))) return; +/** + * @ngdoc service + * @name $document + * @requires $window + * @this + * + * @description + * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object. + * + * @example + + +
    +

    $document title:

    +

    window.document title:

    +
    +
    + + angular.module('documentExample', []) + .controller('ExampleController', ['$scope', '$document', function($scope, $document) { + $scope.title = $document[0].title; + $scope.windowTitle = angular.element(window.document)[0].title; + }]); + +
    + */ +function $DocumentProvider() { + this.$get = ['$window', function(window) { + return jqLite(window.document); + }]; +} - 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; - } +/** + * @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; - // Ignore when url is started with javascript: or mailto: - if (IGNORE_URI_REGEXP.test(absHref)) return; + $document.on('visibilitychange', changeListener); - if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) { - if ($location.$$parseLinkUrl(absHref, relHref)) { - // We do a preventDefault for all urls that are part of the AngularJS 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(); - } - } - } - }); + $rootScope.$on('$destroy', function() { + $document.off('visibilitychange', changeListener); + }); - // rewrite hashbang url <> html5 url - if ($location.absUrl() !== initialUrl) { - $browser.url($location.absUrl(), true); - } + function changeListener() { + hidden = doc.hidden; + } - var initializing = true; + return function() { + return hidden; + }; + }]; +} - // update $location when $browser url changes - $browser.onUrlChange(function (newUrl, newState) { +/** + * @ngdoc service + * @name $exceptionHandler + * @requires ng.$log + * @this + * + * @description + * Any uncaught exception in AngularJS 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); + * }; + * }]); + * ``` + * + *
    + * 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); + }; + }]; +} - if (!startsWith(newUrl, appBaseNoFile)) { - // If we are navigating outside of the app then force a reload - $window.location.href = newUrl; - return; +var $$ForceReflowProvider = /** @this */ function() { + 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; + }; + }]; +}; - $rootScope.$evalAsync(function () { - var oldUrl = $location.absUrl(); - var oldState = $location.$$state; - var defaultPrevented; - $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 = $browser.url(); - var newUrl = $location.absUrl(); - var oldState = $browser.state(); - var currentReplace = $location.$$replace; - var urlOrStateChanged = !urlsEqual(oldUrl, newUrl) || $location.$$html5 && $sniffer.history && oldState !== $location.$$state; +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'); - if (initializing || urlOrStateChanged) { - initializing = false; +function serializeValue(v) { + if (isObject(v)) { + return isDate(v) ? v.toISOString() : toJson(v); + } + return v; +} - $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; +/** @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. + */ - if (defaultPrevented) { - $location.$$parse(oldUrl); - $location.$$state = oldState; - } else { - if (urlOrStateChanged) { - setBrowserUrlWithFallback(newUrl, currentReplace, oldState === $location.$$state ? null : $location.$$state); - } - afterLocationChange(oldUrl, oldState); - } - }); - } + 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))); } - - $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); - } - }]; - } + return parts.join('&'); + }; + }; +} +/** @this */ +function $HttpParamSerializerJQLikeProvider() { /** * @ngdoc service - * @name $log - * @requires $window + * @name $httpParamSerializerJQLike * * @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. + * 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: * - * To reveal the location of the calls to `$log` in the JavaScript console, - * you can "blackbox" the AngularJS source in your browser: + * ```js + * $http({ + * url: myUrl, + * method: 'GET', + * params: myParams, + * paramSerializer: '$httpParamSerializerJQLike' + * }); + * ``` * - * [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). + * It is also possible to set it as the default `paramSerializer` in the + * {@link $httpProvider#defaults `$httpProvider`}. * - * Note: Not all browsers support blackboxing. + * Additionally, you can inject the serializer and use it explicitly, for example to serialize + * form data for submission: * - * The default is to log `debug` messages. You can use - * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this. + * ```js + * .controller(function($http, $httpParamSerializerJQLike) { + * //... + * + * $http({ + * url: myUrl, + * method: 'POST', + * data: $httpParamSerializerJQLike(myData), + * headers: { + * 'Content-Type': 'application/x-www-form-urlencoded' + * } + * }); * - * @example - - - angular.module('logExample', []) - .controller('LogController', ['$scope', '$log', function($scope, $log) { - $scope.$log = $log; - $scope.message = 'Hello World!'; - }]); - - -
    -

    Reload this page with open console, enter text and hit the log button...

    - - - - - - -
    -
    -
    - */ - - /** - * @ngdoc provider - * @name $logProvider - * @this + * }); + * ``` * - * @description - * Use the `$logProvider` to configure how the application logs messages */ - function $LogProvider() { - var debug = true, - self = this; + this.$get = function() { + return function jQueryLikeParamSerializer(params) { + if (!params) return ''; + var parts = []; + serialize(params, '', true); + return parts.join('&'); - /** - * @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; + function serialize(toSerialize, prefix, topLevel) { + 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 { + if (isFunction(toSerialize)) { + toSerialize = toSerialize(); + } + parts.push(encodeUriQuery(prefix) + '=' + + (toSerialize == null ? '' : encodeUriQuery(serializeValue(toSerialize)))); + } } }; + }; +} - 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'); +function defaultHttpResponseTransform(data, headers) { + if (isString(data)) { + // Strip json vulnerability protection prefix and trim whitespace + var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim(); - return function () { - if (debug) { - fn.apply(self, arguments); - } - }; - }() - }; + if (tempData) { + var contentType = headers('Content-Type'); + var hasJsonContentType = contentType && (contentType.indexOf(APPLICATION_JSON) === 0); - 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; + 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 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'); + return data; +} - var objectValueOf = {}.constructor.prototype.valueOf; +function isJsonLike(str) { + var jsonStart = str.match(JSON_START); + return jsonStart && JSON_ENDS[jsonStart[0]].test(str); +} - // Sandboxing AngularJS Expressions - // ------------------------------ - // AngularJS 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 AngularJS 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 +/** + * 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; + } + } - 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 + ''; + 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)); + }); } - var OPERATORS = createMap(); - forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function (operator) { - OPERATORS[operator] = true; - }); - var ESCAPE = { 'n': '\n', 'f': '\f', 'r': '\r', 't': '\t', 'v': '\v', '\'': '\'', '"': '"' }; + 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; - /** - * @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; - }, + return function(name) { + if (!headersObj) headersObj = parseHeaders(headers); - is: function is(ch, chars) { - return chars.indexOf(ch) !== -1; - }, + if (name) { + var value = headersObj[lowercase(name)]; + if (value === undefined) { + value = null; + } + return value; + } - peek: function peek(i) { - var num = i || 1; - return this.index + num < this.text.length ? this.text.charAt(this.index + num) : false; - }, + return headersObj; + }; +} - 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'; - }, +/** + * 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.)} fns Function or an array of functions. + * @returns {*} Transformed data. + */ +function transformData(data, headers, status, fns) { + if (isFunction(fns)) { + return fns(data, headers, status); + } - isIdentifierStart: function isIdentifierStart(ch) { - return this.options.isIdentifierStart ? this.options.isIdentifierStart(ch, this.codePointAt(ch)) : this.isValidIdentifierStart(ch); - }, + forEach(fns, function(fn) { + data = fn(data, headers, status); + }); - isValidIdentifierStart: function isValidIdentifierStart(ch) { - return 'a' <= ch && ch <= 'z' || 'A' <= ch && ch <= 'Z' || '_' === ch || ch === '$'; - }, + return data; +} - 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); - }, +function isSuccess(status) { + return 200 <= status && status < 300; +} - 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; - }, +/** + * @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}` - 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)}` - + * 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)}` - + * 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], - isExpOperator: function isExpOperator(ch) { - return ch === '-' || ch === '+' || this.isNumber(ch); - }, + // transform outgoing request data + transformRequest: [function(d) { + return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d; + }], - 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); + // 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) }, - 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) - }); - }, + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', - 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 - }); - }, + paramSerializer: '$httpParamSerializer', - 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); - } + jsonpCallbackParam: 'callback' }; - var AST = function AST(lexer, options) { - this.lexer = lexer; - this.options = options; + 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; }; - 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]); - } + /** + * @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 = []; - return value; - }, + /** + * @ngdoc property + * @name $httpProvider#xsrfWhitelistedOrigins + * @description + * + * Array containing URLs whose origins are trusted to receive the XSRF token. See the + * {@link ng.$http#security-considerations Security Considerations} sections for more details on + * XSRF. + * + * **Note:** An "origin" consists of the [URI scheme](https://en.wikipedia.org/wiki/URI_scheme), + * the [hostname](https://en.wikipedia.org/wiki/Hostname) and the + * [port number](https://en.wikipedia.org/wiki/Port_(computer_networking). For `http:` and + * `https:`, the port number can be omitted if using th default ports (80 and 443 respectively). + * Examples: `http://example.com`, `https://api.example.com:9876` + * + *
    + * It is not possible to whitelist specific URLs/paths. The `path`, `query` and `fragment` parts + * of a URL will be ignored. For example, `https://foo.com/path/bar?query=baz#fragment` will be + * treated as `https://foo.com`, meaning that **all** requests to URLs starting with + * `https://foo.com/` will include the XSRF token. + *
    + * + * @example + * + * ```js + * // App served from `https://example.com/`. + * angular. + * module('xsrfWhitelistedOriginsExample', []). + * config(['$httpProvider', function($httpProvider) { + * $httpProvider.xsrfWhitelistedOrigins.push('https://api.example.com'); + * }]). + * run(['$http', function($http) { + * // The XSRF token will be sent. + * $http.get('https://api.example.com/preferences').then(...); + * + * // The XSRF token will NOT be sent. + * $http.get('https://stats.example.com/activity').then(...); + * }]); + * ``` + */ + var xsrfWhitelistedOrigins = this.xsrfWhitelistedOrigins = []; - 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 }; - } - } - }, + this.$get = ['$browser', '$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector', '$sce', + function($browser, $httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector, $sce) { - expressionStatement: function expressionStatement() { - return { type: AST.ExpressionStatement, expression: this.filterChain() }; - }, + var defaultCache = $cacheFactory('$http'); - filterChain: function filterChain() { - var left = this.expression(); - while (this.expect('|')) { - left = this.filter(left); - } - return left; - }, + /** + * Make sure that default param serializer is exposed as a function + */ + defaults.paramSerializer = isString(defaults.paramSerializer) ? + $injector.get(defaults.paramSerializer) : defaults.paramSerializer; - expression: function expression() { - return this.assignment(); - }, + /** + * 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 = []; - 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'); - } + forEach(interceptorFactories, function(interceptorFactory) { + reversedInterceptors.unshift(isString(interceptorFactory) + ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory)); + }); - result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '=' }; - } - return result; - }, + /** + * A function to check request URLs against a list of allowed origins. + */ + var urlIsAllowedOrigin = urlIsAllowedOriginFactory(xsrfWhitelistedOrigins); - 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; - }, + /** + * @ngdoc service + * @kind function + * @name $http + * @requires ng.$httpBackend + * @requires $cacheFactory + * @requires $rootScope + * @requires $q + * @requires $injector + * + * @description + * The `$http` service is a core AngularJS 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} that is + * resolved (request success) or rejected (request failure) with a + * {@link ng.$http#$http-returns response} object. + * + * ```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. + * }); + * ``` + * + * + * ## 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): + * - Accept: application/json, text/plain, \*/\* + * - `$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. + * + *
    + * **Note:** AngularJS 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. + *
    + * + * ### 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. + * + * AngularJS 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. AngularJS 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"`. + * AngularJS 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'] + * ``` + * + * AngularJS 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. AngularJS 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 (by default `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. + * + * 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 the `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)) + * for added security. + * + * The header will — by default — **not** be set for cross-domain requests. This + * prevents unauthorized servers (e.g. malicious or compromised 3rd-party APIs) from gaining + * access to your users' XSRF tokens and exposing them to Cross Site Request Forgery. If you + * want to, you can whitelist additional origins to also receive the XSRF token, by adding them + * to {@link ng.$httpProvider#xsrfWhitelistedOrigins xsrfWhitelistedOrigins}. This might be + * useful, for example, if your application, served from `example.com`, needs to access your API + * at `api.example.com`. + * See {@link ng.$httpProvider#xsrfWhitelistedOrigins $httpProvider.xsrfWhitelistedOrigins} for + * more details. + * + *
    + * **Warning**
    + * Only whitelist origins that you have control over and make sure you understand the + * implications of doing so. + *
    + * + * The name of the cookie and the header can be specified using the `xsrfCookieName` and + * `xsrfHeaderName` 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 AngularJS apps share the + * same domain or subdomain, we recommend that each application uses a 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.}` – 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.}` – + * 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.}` – + * 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}` - 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. + * + * A numerical timeout or a promise returned from {@link ng.$timeout $timeout}, will set + * the `xhrStatus` in the {@link $http#$http-returns response} to "timeout", and any other + * resolved promise will set it to "abort", following standard XMLHttpRequest behavior. + * + * - **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} A {@link ng.$q `Promise}` that will be resolved (request success) + * or rejected (request failure) with a response object. + * + * 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`. More information + * about the status might be available in the `xhrStatus` property. + * + * 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. + * + * + * @property {Array.} pendingRequests Array of config objects for currently pending + * requests. This is primarily meant to be used for debugging purposes. + * + * + * @example + + +
    + + +
    + + + +
    http status code: {{status}}
    +
    http response data: {{data}}
    +
    +
    + + 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; + }); + }; - logicalOR: function logicalOR() { - var left = this.logicalAND(); - while (this.expect('||')) { - left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() }; - } - return left; - }, + $scope.updateModel = function(method, url) { + $scope.method = method; + $scope.url = url; + }; + }]); + + + Hello, $http! + + + 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!/); + }); - logicalAND: function logicalAND() { - var left = this.equality(); - while (this.expect('&&')) { - left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality() }; - } - return left; - }, +// 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'); + }); + +
    + */ + function $http(requestConfig) { - 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() }; + if (!isObject(requestConfig)) { + throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig); } - 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() }; + 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); } - 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; - }, + var config = extend({ + method: 'get', + transformRequest: defaults.transformRequest, + transformResponse: defaults.transformResponse, + paramSerializer: defaults.paramSerializer, + jsonpCallbackParam: defaults.jsonpCallbackParam + }, requestConfig); - 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; - }, + config.headers = mergeHeaders(requestConfig); + config.method = uppercase(config.method); + config.paramSerializer = isString(config.paramSerializer) ? + $injector.get(config.paramSerializer) : config.paramSerializer; - 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(); - } - }, + $browser.$$incOutstandingRequestCount('$http'); - 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 requestInterceptors = []; + var responseInterceptors = []; + var promise = $q.resolve(config); - 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'); + // apply interceptors + forEach(reversedInterceptors, function(interceptor) { + if (interceptor.request || interceptor.requestError) { + requestInterceptors.unshift(interceptor.request, interceptor.requestError); } - } - return primary; - }, + if (interceptor.response || interceptor.responseError) { + responseInterceptors.push(interceptor.response, interceptor.responseError); + } + }); - filter: function filter(baseExpression) { - var args = [baseExpression]; - var result = { type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true }; + promise = chainInterceptors(promise, requestInterceptors); + promise = promise.then(serverRequest); + promise = chainInterceptors(promise, responseInterceptors); + promise = promise.finally(completeOutstandingRequest); - while (this.expect(':')) { - args.push(this.expression()); - } + return promise; - return result; - }, - parseArguments: function parseArguments() { - var args = []; - if (this.peekToken().text !== ')') { - do { - args.push(this.filterChain()); - } while (this.expect(',')); - } - return args; - }, + function chainInterceptors(promise, interceptors) { + for (var i = 0, ii = interceptors.length; i < ii;) { + var thenFn = interceptors[i++]; + var rejectFn = interceptors[i++]; - 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 }; - }, + promise = promise.then(thenFn, rejectFn); + } - constant: function constant() { - // TODO check that it is a constant - return { type: AST.Literal, value: this.consume().value }; - }, + interceptors.length = 0; - 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(',')); + return promise; } - this.consume(']'); - return { type: AST.ArrayExpression, elements: elements }; - }, + function completeOutstandingRequest() { + $browser.$$completeOutstandingRequest(noop, '$http'); + } - 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; + 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 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()); + processedHeaders[header] = headerFn; } - properties.push(property); - } while (this.expect(',')); + }); + + return processedHeaders; } - this.consume('}'); - return { type: AST.ObjectExpression, properties: properties }; - }, + function mergeHeaders(config) { + var defHeaders = defaults.headers, + reqHeaders = extend({}, config.headers), + defHeaderName, lowercaseDefHeaderName, reqHeaderName; - 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)); - }, + defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]); - consume: function consume(e1) { - if (this.tokens.length === 0) { - throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); - } + // using for-in instead of forEach to avoid unnecessary iteration after header has been found + defaultHeadersIteration: + for (defHeaderName in defHeaders) { + lowercaseDefHeaderName = lowercase(defHeaderName); - var token = this.expect(e1); - if (!token) { - this.throwError('is unexpected, expecting [' + e1 + ']', this.peek()); - } - return token; - }, + for (reqHeaderName in reqHeaders) { + if (lowercase(reqHeaderName) === lowercaseDefHeaderName) { + continue defaultHeadersIteration; + } + } + + reqHeaders[defHeaderName] = defHeaders[defHeaderName]; + } - peekToken: function peekToken() { - if (this.tokens.length === 0) { - throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); + // execute if header value is a function for merged headers + return executeHeaderFns(reqHeaders, shallowCopy(config)); } - return this.tokens[0]; - }, - peek: function peek(e1, e2, e3, e4) { - return this.peekAhead(0, e1, e2, e3, e4); - }, + function serverRequest(config) { + var headers = config.headers; + var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest); - 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; + // strip content-type if data is undefined + if (isUndefined(reqData)) { + forEach(headers, function(value, header) { + if (lowercase(header) === 'content-type') { + delete headers[header]; + } + }); } - } - return false; - }, - expect: function expect(e1, e2, e3, e4) { - var token = this.peek(e1, e2, e3, e4); - if (token) { - this.tokens.shift(); - return token; + if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) { + config.withCredentials = defaults.withCredentials; + } + + // send request + return sendReq(config, reqData).then(transformResponse, transformResponse); } - return false; - }, - selfReferential: { - 'this': { type: AST.ThisExpression }, - '$locals': { type: AST.LocalsExpression } + 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); + } } - }; - function ifDefined(v, d) { - return typeof v !== 'undefined' ? v : d; - } + $http.pendingRequests = []; - function plusFn(l, r) { - if (typeof l === 'undefined') return r; - if (typeof r === 'undefined') return l; - return l + r; - } + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - function isStateless($filter, filterName) { - var fn = $filter(filterName); - return !fn.$stateful; - } + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - var PURITY_ABSOLUTE = 1; - var PURITY_RELATIVE = 2; + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - // 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; + /** + * @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'`. + * + *
    + * You can no longer use the `JSON_CALLBACK` string as a placeholder for specifying where the callback + * parameter value should go. + *
    + * + * 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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ + 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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - // Unary always convert to primative - case AST.UnaryExpression: - return PURITY_ABSOLUTE; + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ - // The binary + operator can invoke a stateful toString(). - case AST.BinaryExpression: - return node.operator !== '+' ? PURITY_ABSOLUTE : false; + /** + * @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 {@link ng.$http#$http-arguments `$http()` arguments}. + * @returns {HttpPromise} A Promise that will be resolved or rejected with a response object. + * See {@link ng.$http#$http-returns `$http()` return value}. + */ + createShortMethodsWithData('post', 'put', 'patch'); - // Functions / filters probably read state from within objects - case AST.CallExpression: - return false; - } + /** + * @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 undefined === parentIsPure ? PURITY_RELATIVE : parentIsPure; - } - function findConstantAndWatchExpressions(ast, $filter, parentIsPure) { - var allConstants; - var argsToWatch; - var isStatelessFilter; + return $http; - 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 createShortMethods(names) { + forEach(arguments, function(name) { + $http[name] = function(url, config) { + return $http(extend({}, config || {}, { + method: name, + url: url + })); + }; + }); } - } - - 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 createShortMethodsWithData(name) { + forEach(arguments, function(name) { + $http[name] = function(url, data, config) { + return $http(extend({}, config || {}, { + method: name, + url: url, + data: data + })); + }; + }); } - } - 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; - } + /** + * 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); + } + } - 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;'; + // 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 = urlIsAllowedOrigin(config.url) + ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName] + : undefined; + if (xsrfValue) { + reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue; + } - // 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; - }, + $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout, + config.withCredentials, config.responseType, + createApplyHandlers(config.eventHandlers), + createApplyHandlers(config.uploadEventHandlers)); + } - USE: 'use', + return promise; - STRICT: 'strict', + 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); + } - 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) + ';'); + function callEventHandler() { + eventHandler(event); + } + }; + }); + return applyHandlers; } - }); - 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 ''; - }, + /** + * 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); + } + } - varsPrefix: function varsPrefix(section) { - return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : ''; - }, + function resolveHttpPromise() { + resolvePromise(response, status, headersString, statusText, xhrStatus); + } - body: function body(section) { - return this.state[section].body.join(''); - }, + if (useApplyAsync) { + $rootScope.$applyAsync(resolveHttpPromise); + } else { + resolveHttpPromise(); + if (!$rootScope.$$phase) $rootScope.$apply(); + } + } - 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; + + /** + * 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 + }); } - 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; + + function resolvePromiseWithResult(result) { + resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText, result.xhrStatus); } - }, - 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 + ')'); + function removePendingReq() { + var idx = $http.pendingRequests.indexOf(config); + if (idx !== -1) $http.pendingRequests.splice(idx, 1); } - 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); + function buildUrl(url, serializedParams) { + if (serializedParams.length > 0) { + url += ((url.indexOf('?') === -1) ? '?' : '&') + serializedParams; } - return this.state.filters[filterName]; - }, + return url; + } - ifDefined: function ifDefined(id, defaultValue) { - return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')'; - }, + 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); + } + }); - plus: function plus(left, right) { - return 'plus(' + left + ',' + right + ')'; - }, + // Add in the JSON_CALLBACK callback param value + url += ((url.indexOf('?') === -1) ? '?' : '&') + cbKey + '=JSON_CALLBACK'; - return_: function return_(id) { - this.current().body.push('return ', id, ';'); - }, + return url; + } + }]; +} - 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('}'); - } - } - }, +/** + * @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(); + }; + }; +} - not: function not(expression) { - return '!(' + expression + ')'; - }, +/** + * @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]); + }]; +} - isNull: function isNull(expression) { - return expression + '==null'; - }, +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(); - notNull: function notNull(expression) { - return expression + '!=null'; - }, + 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 { - 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) + '"]'; - } - }, + var xhr = createXhr(method, url); + var abortedByTimeout = false; - computedMember: function computedMember(left, right) { - return left + '[' + right + ']'; - }, + xhr.open(method, url, true); + forEach(headers, function(value, key) { + if (isDefined(value)) { + xhr.setRequestHeader(key, value); + } + }); - member: function member(left, right, computed) { - if (computed) return this.computedMember(left, right); - return this.nonComputedMember(left, right); - }, + xhr.onload = function requestLoaded() { + var statusText = xhr.statusText || ''; - getStringValue: function getStringValue(item) { - this.assign(item, 'getStringValue(' + item + ')'); - }, + // 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; - lazyRecurse: function lazyRecurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) { - var self = this; - return function () { - self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck); + // 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'); }; - }, - lazyAssign: function lazyAssign(id, value) { - var self = this; - return function () { - self.assign(id, value); + var requestError = function() { + // 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'); }; - }, - stringEscapeRegex: /[^ a-zA-Z0-9]/g, + var requestAborted = function() { + completeRequest(callback, -1, null, null, '', abortedByTimeout ? 'timeout' : 'abort'); + }; - stringEscapeFn: function stringEscapeFn(c) { - return '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4); - }, + var requestTimeout = function() { + // 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'); + }; - 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'; + xhr.onerror = requestError; + xhr.ontimeout = requestTimeout; + xhr.onabort = requestAborted; - throw $parseMinErr('esc', 'IMPOSSIBLE'); - }, + forEach(eventHandlers, function(value, key) { + xhr.addEventListener(key, value); + }); - nextId: function nextId(skip, init) { - var id = 'v' + this.state.nextId++; - if (!skip) { - this.current().vars.push(id + (init ? '=' + init : '')); + forEach(uploadEventHandlers, function(value, key) { + xhr.upload.addEventListener(key, value); + }); + + if (withCredentials) { + xhr.withCredentials = true; } - return id; - }, - current: function current() { - return this.state[this.state.computing]; - } - }; + 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; + } + } + } - function ASTInterpreter($filter) { - this.$filter = $filter; - } + xhr.send(isUndefined(post) ? null : post); + } - 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)); + // Since we are using xhr.abort() when a request times out, we have to set a flag that + // indicates to requestAborted if the request timed out or was aborted. + // + // http.timeout = numerical timeout timeout + // http.timeout = $timeout timeout + // http.timeout = promise abort + // xhr.abort() abort (The xhr object is normally inaccessible, but + // can be exposed with the xhrFactory) + if (timeout > 0) { + var timeoutId = $browserDefer(function() { + timeoutRequest('timeout'); + }, timeout); + } else if (isPromiseLike(timeout)) { + timeout.then(function() { + timeoutRequest(isDefined(timeout.$$timeoutId) ? 'timeout' : 'abort'); }); - 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); - }; + } + + function timeoutRequest(reason) { + abortedByTimeout = reason === 'timeout'; + if (jsonpDone) { + jsonpDone(); } - if (inputs) { - fn.inputs = inputs; + if (xhr) { + xhr.abort(); } - 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; - }; + function completeRequest(callback, status, response, headersString, statusText, xhrStatus) { + // cancel timeout and subsequent timeout promise resolution + if (isDefined(timeoutId)) { + $browserDefer.cancel(timeoutId); } - }, + jsonpDone = xhr = null; - '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); - }; + callback(status, response, headersString, statusText, xhrStatus); } }; - /** - * @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, + 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; - 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; - }, + callback = function(event) { + script.removeEventListener('load', callback); + script.removeEventListener('error', callback); + rawDocument.body.removeChild(script); + script = null; + var status = -1; + var text = 'unknown'; - getAst: function getAst(exp) { - var oneTime = false; - exp = exp.trim(); + if (event) { + if (event.type === 'load' && !callbacks.wasCalled(callbackPath)) { + event = { type: 'error' }; + } + text = event.type; + status = event.type === 'error' ? 404 : 200; + } - if (exp.charAt(0) === ':' && exp.charAt(1) === ':') { - oneTime = true; - exp = exp.substring(2); + if (done) { + done(status, text); } - return { - ast: this.ast.ast(exp), - oneTime: oneTime - }; - } - }; + }; + + 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 `}}`. + * + *
    + * This feature is sometimes used to mix different markup languages, e.g. to wrap an AngularJS + * 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 AngularJS + * expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS) + * security bugs! + *
    + * + * @example + + + +
    + //demo.label// +
    +
    + + it('should interpolate binding with custom symbols', function() { + expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.'); + }); + +
    + */ +function $InterpolateProvider() { + var startSymbol = '{{'; + var endSymbol = '}}'; /** - * @ngdoc service - * @name $parse - * @kind function - * + * @ngdoc method + * @name $interpolateProvider#startSymbol * @description + * Symbol to denote start of expression in the interpolated string. Defaults to `{{`. * - * Converts AngularJS {@link guide/expression expression} into a function. - * - * ```js - * var getter = $parse('user.name'); - * var setter = getter.assign; - * var context = {user:{name:'AngularJS'}}; - * var locals = {user:{name:'local'}}; - * - * expect(getter(context)).toEqual('AngularJS'); - * 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. - * + * @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; + } + return startSymbol; + }; /** - * @ngdoc provider - * @name $parseProvider - * @this - * + * @ngdoc method + * @name $interpolateProvider#endSymbol * @description - * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse} - * service. + * 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. */ - function $ParseProvider() { - var cache = createMap(); - var literals = { - 'true': true, - 'false': false, - 'null': null, - 'undefined': undefined - }; - var identStart, identContinue; + this.endSymbol = function(value) { + if (value) { + endSymbol = value; + return this; + } + 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 method - * @name $parseProvider#addLiteral + * @ngdoc service + * @name $interpolate + * @kind function + * + * @requires $parse + * @requires $sce + * * @description * - * Configure $parse service to add literal values that will be present as literal at expressions. + * 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. * - * @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 + * ```js + * var $interpolate = ...; // injected + * var exp = $interpolate('Hello {{name | uppercase}}!'); + * expect(exp({name:'AngularJS'})).toEqual('Hello ANGULARJS!'); + * ``` * - * @description + * `$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 = 'AngularJS'; + * expect(exp(context)).toEqual('Hello AngularJS!'); + * ``` + * + * `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 (<, >) with &lt; and &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. + * + * + * + *
    + *

    {{apptitle}}: \{\{ username = "defaced value"; \}\} + *

    + *

    {{username}} 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.

    + *

    Instead, the result of the attempted script injection is visible, and can be removed + * from the database by an administrator.

    + *
    + *
    + *
    * - * Allows defining the set of characters that are allowed in AngularJS 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. + * @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: + * + * ``` + *
    + * ``` * - * @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. + * 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 */ - 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 $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) { + var contextAllowsConcatenation = trustedContext === $sce.URL || trustedContext === $sce.MEDIA_URL; + + // Provide a quick exit and simplified result function for text with no interpolation + if (!text.length || text.indexOf(startSymbol) === -1) { + if (mustHaveExpression && !contextAllowsConcatenation) return; + + var unescapedText = unescapeText(text); + if (contextAllowsConcatenation) { + unescapedText = $sce.getTrusted(trustedContext, unescapedText); + } + var 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 = [], + singleExpression; + + + 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); + index = endIndex + endSymbolLength; + expressionPositions.push(concat.length); + concat.push(''); // Placeholder that will get replaced with the evaluated expression. + } 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; + } + } - function $parse(exp, interceptorFn) { - var parsedExpression, cacheKey; + singleExpression = concat.length === 1 && expressionPositions.length === 1; + // Intercept expression if we need to stringify concatenated inputs, which may be SCE trusted + // objects rather than simple strings + // (we don't modify the expression if the input consists of only a single trusted input) + var interceptor = contextAllowsConcatenation && singleExpression ? undefined : parseStringifyInterceptor; + parseFns = expressions.map(function(exp) { return $parse(exp, interceptor); }); + + // 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 some $sce-managed secure contexts (RESOURCE_URLs mostly), + // 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. + + // Note that URL and MEDIA_URL $sce contexts do not need this, since `$sce` can sanitize the values + // passed to it. In that case, `$sce.getTrusted` will be called on either the single expression + // or on the overall concatenated string (losing trusted types used in the mix, by design). + // Both these methods will sanitize plain strings. Also, HTML could be included, but since it's + // only used in srcdoc attributes, this would not be very useful. + + if (!mustHaveExpression || expressions.length) { + var compute = function(values) { + for (var i = 0, ii = expressions.length; i < ii; i++) { + if (allOrNothing && isUndefined(values[i])) return; + concat[expressionPositions[i]] = values[i]; + } - switch (typeof exp === 'undefined' ? 'undefined' : _typeof(exp)) { - case 'string': - exp = exp.trim(); - cacheKey = exp; + if (contextAllowsConcatenation) { + // If `singleExpression` then `concat[0]` might be a "trusted" value or `null`, rather than a string + return $sce.getTrusted(trustedContext, singleExpression ? concat[0] : concat.join('')); + } else if (trustedContext && concat.length > 1) { + // This context does not allow more than one part, e.g. expr + string or exp + exp. + $interpolateMinErr.throwNoconcat(text); + } + // In an unprivileged context or only one part: just concatenate and return. + return concat.join(''); + }; - parsedExpression = cache[cacheKey]; + return extend(function interpolationFn(context) { + var i = 0; + var ii = expressions.length; + var values = new Array(ii); - if (!parsedExpression) { - var lexer = new Lexer($parseOptions); - var parser = new Parser(lexer, $filter, $parseOptions); - parsedExpression = parser.parse(exp); + try { + for (; i < ii; i++) { + values[i] = parseFns[i](context); + } - cache[cacheKey] = addWatchDelegate(parsedExpression); + return compute(values); + } catch (err) { + $exceptionHandler($interpolateMinErr.interr(text, err)); } - return addInterceptor(parsedExpression, interceptorFn); - case 'function': - return addInterceptor(exp, interceptorFn); + }, { + // all of these properties are undocumented for now + exp: text, //just for compatibility with regular watchers created via $watch + expressions: expressions, + $$watchDelegate: function(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; + }); + } + }); + } - default: - return addInterceptor(noop, interceptorFn); + function parseStringifyInterceptor(value) { + try { + // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual + // parts of a full URL. We don't care about losing the trustedness here. + // In non-concatenable contexts, where there is only one expression, this interceptor is + // not applied to the expression. + value = (trustedContext && !contextAllowsConcatenation) ? + $sce.getTrusted(trustedContext, value) : + $sce.valueOf(value); + return allOrNothing && !isDefined(value) ? value : stringify(value); + } catch (err) { + $exceptionHandler($interpolateMinErr.interr(text, err)); } } + } - 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) { + /** + * @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; + }; + - if (newValue == null || oldValueOfValue == null) { - // null/undefined - return newValue === oldValueOfValue; - } + /** + * @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; + }; - if ((typeof newValue === 'undefined' ? 'undefined' : _typeof(newValue)) === 'object') { + return $interpolate; + }]; +} - // 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); +var $intervalMinErr = minErr('$interval'); - if ((typeof newValue === 'undefined' ? 'undefined' : _typeof(newValue)) === 'object' && !compareObjectIdentity) { - // objects/arrays are not supported - deep-watching them would be too expensive - return false; - } +/** @this */ +function $IntervalProvider() { + this.$get = ['$$intervalFactory', '$window', + function($$intervalFactory, $window) { + var intervals = {}; + var setIntervalFn = function(tick, delay, deferred) { + var id = $window.setInterval(tick, delay); + intervals[id] = deferred; + return id; + }; + var clearIntervalFn = function(id) { + $window.clearInterval(id); + delete intervals[id]; + }; - // fall-through to the primitive equality check - } + /** + * @ngdoc service + * @name $interval + * + * @description + * AngularJS'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. + * + *
    + * **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. + *
    + * + * @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 + * + * + * + * + *
    + *
    + *
    + * Current time is: + *
    + * Blood 1 : {{blood_1}} + * Blood 2 : {{blood_2}} + * + * + * + *
    + *
    + * + *
    + *
    + */ + var interval = $$intervalFactory(setIntervalFn, clearIntervalFn); + + /** + * @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) return false; - //Primitive or NaN - // eslint-disable-next-line no-self-compare - return newValue === oldValueOfValue || newValue !== newValue && oldValueOfValue !== oldValueOfValue; + if (!promise.hasOwnProperty('$$intervalId')) { + throw $intervalMinErr('badprom', + '`$interval.cancel()` called with a promise that was not generated by `$interval()`.'); } - function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { - var inputExpressions = parsedExpression.inputs; - var lastResult; + if (!intervals.hasOwnProperty(promise.$$intervalId)) return false; - 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 id = promise.$$intervalId; + var deferred = intervals[id]; - 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; - } + // Interval cancels should not report an unhandled promise. + markQExceptionHandled(deferred.promise); + deferred.reject('canceled'); + clearIntervalFn(id); - return scope.$watch(function expressionInputsWatch(scope) { - var changed = false; + return true; + }; - 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); - } - } + return interval; + }]; +} - if (changed) { - lastResult = parsedExpression(scope, undefined, undefined, oldInputValues); - } +/** @this */ +function $$IntervalFactoryProvider() { + this.$get = ['$browser', '$q', '$$q', '$rootScope', + function($browser, $q, $$q, $rootScope) { + return function intervalFactory(setIntervalFn, clearIntervalFn) { + return function intervalFn(fn, delay, count, invokeApply) { + var hasParams = arguments.length > 4, + args = hasParams ? sliceArgs(arguments, 4) : [], + iteration = 0, + skipApply = isDefined(invokeApply) && !invokeApply, + deferred = (skipApply ? $$q : $q).defer(), + promise = deferred.promise; - return lastResult; - }, listener, objectEquality, prettyPrintExpression); - } + count = isDefined(count) ? count : 0; - function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { - var isDone = parsedExpression.literal ? isAllDefined : isDefined; - var unwatch, lastValue; + function callback() { + if (!hasParams) { + fn(iteration); + } else { + fn.apply(null, args); + } + } - var exp = parsedExpression.$$intercepted || parsedExpression; - var post = parsedExpression.$$interceptor || identity; + function tick() { + if (skipApply) { + $browser.defer(callback); + } else { + $rootScope.$evalAsync(callback); + } + deferred.notify(iteration++); - var useInputs = parsedExpression.inputs && !exp.inputs; + if (count > 0 && iteration >= count) { + deferred.resolve(iteration); + clearIntervalFn(promise.$$intervalId); + } - // Propogate the literal/inputs/constant attributes - // ... but not oneTime since we are handling it - oneTimeWatch.literal = parsedExpression.literal; - oneTimeWatch.constant = parsedExpression.constant; - oneTimeWatch.inputs = parsedExpression.inputs; + if (!skipApply) $rootScope.$apply(); + } - // Allow other delegates to run on this wrapped expression - addWatchDelegate(oneTimeWatch); + promise.$$intervalId = setIntervalFn(tick, delay, deferred, skipApply); - unwatch = scope.$watch(oneTimeWatch, listener, objectEquality, prettyPrintExpression); + return promise; + }; + }; + }]; +} - return unwatch; +/** + * @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() { + this.$get = function() { + var callbacks = angular.callbacks; + var callbackMap = {}; - function unwatchIfDone() { - if (isDone(lastValue)) { - unwatch(); - } - } + function createCallback(callbackId) { + var callback = function(data) { + callback.data = data; + callback.called = true; + }; + callback.id = callbackId; + return callback; + } - function oneTimeWatch(scope, locals, assign, inputs) { - lastValue = useInputs && inputs ? inputs[0] : exp(scope, locals, assign, inputs); - if (isDone(lastValue)) { - scope.$$postDigest(unwatchIfDone); - } - return post(lastValue); - } + 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(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(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(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(callbackPath) { + var callback = callbackMap[callbackPath]; + delete callbacks[callback.id]; + delete callbackMap[callbackPath]; } + }; + }; +}; - function isAllDefined(value) { - var allDefined = true; - forEach(value, function (val) { - if (!isDefined(val)) allDefined = false; - }); - return allDefined; - } +/** + * @ngdoc service + * @name $locale + * + * @description + * $locale service provides localization rules for various AngularJS components. As of right now the + * only public api is: + * + * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`) + */ - function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) { - var unwatch = scope.$watch(function constantWatch(scope) { - unwatch(); - return parsedExpression(scope); - }, listener, objectEquality); - return unwatch; - } +/* global stripHash: true */ - function addWatchDelegate(parsedExpression) { - if (parsedExpression.constant) { - parsedExpression.$$watchDelegate = constantWatchDelegate; - } else if (parsedExpression.oneTime) { - parsedExpression.$$watchDelegate = oneTimeWatchDelegate; - } else if (parsedExpression.inputs) { - parsedExpression.$$watchDelegate = inputsWatchDelegate; - } +var PATH_MATCH = /^([^?#]*)(\?([^#]*))?(#(.*))?$/, + DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21}; +var $locationMinErr = minErr('$location'); - return parsedExpression; - } - function chainInterceptors(first, second) { - function chainedInterceptor(value) { - return second(first(value)); - } - chainedInterceptor.$stateful = first.$stateful || second.$stateful; - chainedInterceptor.$$pure = first.$$pure && second.$$pure; +/** + * 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; - return chainedInterceptor; - } + while (i--) { + // decode forward slashes to prevent them from being double encoded + segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/')); + } - function addInterceptor(parsedExpression, interceptorFn) { - if (!interceptorFn) return parsedExpression; + return segments.join('/'); +} - // Extract any existing interceptors out of the parsedExpression - // to ensure the original parsedExpression is always the $$intercepted - if (parsedExpression.$$interceptor) { - interceptorFn = chainInterceptors(parsedExpression.$$interceptor, interceptorFn); - parsedExpression = parsedExpression.$$intercepted; - } +function decodePath(path, html5Mode) { + var segments = path.split('/'), + i = segments.length; - var useInputs = false; + 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'); + } + } - var fn = function interceptedExpression(scope, locals, assign, inputs) { - var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs); - return interceptorFn(value); - }; + return segments.join('/'); +} - // Maintain references to the interceptor/intercepted - fn.$$intercepted = parsedExpression; - fn.$$interceptor = interceptorFn; +function normalizePath(pathValue, searchValue, hashValue) { + var search = toKeyValue(searchValue), + hash = hashValue ? '#' + encodeUriSegment(hashValue) : '', + path = encodePath(pathValue); - // Propogate the literal/oneTime/constant attributes - fn.literal = parsedExpression.literal; - fn.oneTime = parsedExpression.oneTime; - fn.constant = parsedExpression.constant; + return path + (search ? '?' + search : '') + hash; +} - // Treat the interceptor like filters. - // If it is not $stateful then only watch its inputs. - // If the expression itself has no inputs then use the full expression as an input. - if (!interceptorFn.$stateful) { - useInputs = !parsedExpression.inputs; - fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression]; +function parseAbsoluteUrl(absoluteUrl, locationObj) { + var parsedUrl = urlResolve(absoluteUrl); - if (!interceptorFn.$$pure) { - 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 - // non-pure interceptor function. - if (e.isPure === PURITY_RELATIVE) { - return function depurifier(s) { - return e(s); - }; - } - return e; - }); - } - } + locationObj.$$protocol = parsedUrl.protocol; + locationObj.$$host = parsedUrl.hostname; + locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null; +} - return addWatchDelegate(fn); - } - }]; +var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/; +function parseAppUrl(url, locationObj, html5Mode) { + + if (DOUBLE_SLASH_REGEX.test(url)) { + throw $locationMinErr('badpath', 'Invalid url "{0}".', url); } - /** - * @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 AngularJS, 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); - }]; + 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); - /** - * @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; - } - }; + // make sure path starts with '/'; + if (locationObj.$$path && locationObj.$$path.charAt(0) !== '/') { + locationObj.$$path = '/' + locationObj.$$path; } +} - /** @this */ - function $$QProvider() { - var errorOnUnhandledRejections = true; - this.$get = ['$browser', '$exceptionHandler', function ($browser, $exceptionHandler) { - return qFactory(function (callback) { - $browser.defer(callback); - }, $exceptionHandler, errorOnUnhandledRejections); - }]; +function startsWith(str, search) { + return str.slice(0, search.length) === search; +} - this.errorOnUnhandledRejections = function (value) { - if (isDefined(value)) { - errorOnUnhandledRejections = value; - return this; - } else { - return errorOnUnhandledRejections; - } - }; +/** + * + * @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); } +} - /** - * 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 = []; +function stripHash(url) { + var index = url.indexOf('#'); + return index === -1 ? url : url.substr(0, index); +} - /** - * @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 stripFile(url) { + return url.substr(0, stripHash(url).lastIndexOf('/') + 1); +} - 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); - }; - } +/* return the server only (scheme://host:port) */ +function serverBase(url) { + return url.substring(0, url.indexOf('/', url.indexOf('//') + 2)); +} - 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(); +/** + * 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); - this.$$state.pending = this.$$state.pending || []; - this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]); - if (this.$$state.status > 0) scheduleProcessQueue(this.$$state); - return result; - }, + /** + * 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); + } - 'catch': function _catch(callback) { - return this.then(null, callback); - }, + parseAppUrl(pathUrl, this, true); - 'finally': function _finally(callback, progressBack) { - return this.then(function (value) { - return handleCallback(value, resolve, callback); - }, function (error) { - return handleCallback(error, reject, callback); - }, progressBack); - } - }); + if (!this.$$path) { + this.$$path = '/'; + } - function processQueue(state) { - var fn, promise, pending; + this.$$compose(); + }; - 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); - } - } - } + this.$$normalizeUrl = function(url) { + return appBaseNoFile + url.substr(1); // first char is always '/' + }; - 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); - } - } - } + 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; - 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)); + if (isDefined(appUrl = stripBaseUrl(appBase, url))) { + prevAppUrl = appUrl; + if (basePrefix && isDefined(appUrl = stripBaseUrl(basePrefix, appUrl))) { + rewrittenUrl = appBaseNoFile + (stripBaseUrl('/', appUrl) || appUrl); } else { - $$resolve(promise, val); + rewrittenUrl = appBase + prevAppUrl; } + } else if (isDefined(appUrl = stripBaseUrl(appBaseNoFile, url))) { + rewrittenUrl = appBaseNoFile + appUrl; + } else if (appBaseNoFile === url + '/') { + rewrittenUrl = appBaseNoFile; } - - 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); - } + if (rewrittenUrl) { + this.$$parse(rewrittenUrl); } + return !!rewrittenUrl; + }; +} - 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); - } +/** + * 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) { - function notifyPromise(promise, progress) { - var callbacks = promise.$$state.pending; + parseAbsoluteUrl(appBase, this); - 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; - } + /** + * 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; - function handleCallback(value, resolver, callback) { - var callbackOutput = null; - try { - if (isFunction(callback)) callbackOutput = callback(); - } catch (e) { - return reject(e); + 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; } - if (isPromiseLike(callbackOutput)) { - return callbackOutput.then(function () { - return resolver(value); - }, reject); + + } 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 { - return resolver(value); + withoutHashUrl = ''; + if (isUndefined(withoutBaseUrl)) { + appBase = url; + /** @type {?} */ (this).replace(); + } } } - /** - * @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 - */ + parseAppUrl(withoutHashUrl, this, false); - function when(value, callback, errback, progressBack) { - var result = new Promise(); - resolvePromise(result, value); - return result.then(callback, errback, progressBack); - } + this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase); - /** - * @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; + this.$$compose(); - /** - * @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.|Object.} 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. + /* + * 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 AngularJS, 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]:(\/.*)/; - 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); - }); - }); + var firstPathSegmentMatch; - if (counter === 0) { - resolvePromise(result, results); + //Get the relative path from the input URL. + if (startsWith(url, base)) { + url = url.replace(base, ''); } - return result; + // 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; } + }; - /** - * @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.|Object.} 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. - */ + this.$$normalizeUrl = function(url) { + return appBase + (url ? hashPrefix + url : ''); + }; - function race(promises) { - var deferred = defer(); + this.$$parseLinkUrl = function(url, relHref) { + if (stripHash(appBase) === stripHash(url)) { + this.$$parse(url); + return true; + } + return false; + }; +} - forEach(promises, function (promise) { - when(promise).then(deferred.resolve, deferred.reject); - }); - return deferred.promise; +/** + * 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; } - function $Q(resolver) { - if (!isFunction(resolver)) { - throw $qMinErr('norslvr', 'Expected resolverFn, got \'{0}\'', resolver); - } + 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; + }; - var promise = new Promise(); + this.$$normalizeUrl = function(url) { + // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#' + return appBase + hashPrefix + url; + }; +} - function resolveFn(value) { - resolvePromise(promise, value); - } - function rejectFn(reason) { - rejectPromise(promise, reason); - } +var locationPrototype = { - resolver(resolveFn, rejectFn); + /** + * Ensure absolute URL is initialized. + * @private + */ + $$absUrl:'', - return promise; - } + /** + * Are we in html5 mode? + * @private + */ + $$html5: false, - // Let's make the instanceof operator work for promises, so that - // `new $q(fn) instanceof $q` would evaluate to true. - $Q.prototype = Promise.prototype; + /** + * Has any change been replacing? + * @private + */ + $$replace: false, - $Q.defer = defer; - $Q.reject = reject; - $Q.when = when; - $Q.resolve = resolve; - $Q.all = all; - $Q.race = race; + /** + * Compose url and update `url` and `absUrl` property + * @private + */ + $$compose: function() { + this.$$url = normalizePath(this.$$path, this.$$search, this.$$hash); + this.$$absUrl = this.$$normalizeUrl(this.$$url); + this.$$urlUpdatedByLocation = true; + }, - return $Q; - } + /** + * @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'), - function isStateExceptionHandled(state) { - return !!state.pur; - } - function markQStateExceptionHandled(state) { - state.pur = true; - } - function markQExceptionHandled(q) { - markQStateExceptionHandled(q.$$state); - } + /** + * @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) { + if (isUndefined(url)) { + return this.$$url; + } - /** @this */ - function $$RAFProvider() { - //rAF - this.$get = ['$window', '$timeout', function ($window, $timeout) { - var requestAnimationFrame = $window.requestAnimationFrame || $window.webkitRequestAnimationFrame; + 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] || ''); - var cancelAnimationFrame = $window.cancelAnimationFrame || $window.webkitCancelAnimationFrame || $window.webkitCancelRequestAnimationFrame; + return this; + }, - 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); - }; - }; + /** + * @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'), - raf.supported = rafSupported; + /** + * @ngdoc method + * @name $location#host + * + * @description + * This method is getter only. + * + * Return host of current URL. + * + * Note: compared to the non-AngularJS 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'), - return raf; - }]; - } + /** + * @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'), /** - * DESIGN NOTES + * @ngdoc method + * @name $location#path + * + * @description + * This method is getter / setter. * - * The design decisions behind the scope are heavily favored for speed and memory consumption. + * Return path of current URL when called without any parameter. * - * 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. + * Change path when called with parameter and return `$location`. * - * 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 + * Note: Path should always begin with forward slash (/), this method will add the forward slash + * if it is missing. * - * 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 + * ```js + * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo + * var path = $location.path(); + * // => "/some/path" + * ``` * - * 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. + * @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 provider - * @name $rootScopeProvider + * @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.|Object.>} 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|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. * - * Provider for the $rootScope service. + * 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, 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 $rootScopeProvider#digestTtl + * @name $location#hash + * * @description + * This method is getter / setter. * - * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and - * assuming that the model is unstable. + * Returns the hash fragment when called without any parameters. * - * The current default is 10 iterations. + * Changes the hash fragment when called with a parameter and returns `$location`. * - * 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. + * ```js + * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue + * var hash = $location.hash(); + * // => "hashValue" + * ``` * - * @param {number} limit The number of digest iterations. + * @param {(string|number)=} hash New hash fragment + * @return {string} hash */ + hash: locationGetterSetter('$$hash', function(hash) { + return hash !== null ? hash.toString() : ''; + }), /** - * @ngdoc service - * @name $rootScope - * @this + * @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() { + 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. * - * 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}. + * 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 */ - function $RootScopeProvider() { - var TTL = 10; - var $rootScopeMinErr = minErr('$rootScope'); - var lastDirtyWatch = null; - var applyAsyncId = null; + Location.prototype.state = function(state) { + if (!arguments.length) { + return this.$$state; + } - this.digestTtl = function (value) { - if (arguments.length) { - TTL = value; - } - return TTL; - }; + 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; - 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; - this.$$suspended = false; - } - ChildScope.prototype = parent; - return ChildScope; + 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.$get = ['$exceptionHandler', '$parse', '$browser', function ($exceptionHandler, $parse, $browser) { + this[property] = preprocess(value); + this.$$compose(); - function destroyChildScope($event) { - $event.currentScope.$$destroyed = true; - } + return this; + }; +} - 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); - } - } +/** + * @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} + */ - // 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 +/** + * @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 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 `` 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)) { - $scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead = $scope.$$childTail = $scope.$root = $scope.$$watchers = null; + if (isBoolean(mode.enabled)) { + html5Mode.enabled = mode.enabled; } - /** - * @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.=} providers Map of service factory which need to be - * provided for the current scope. Defaults to {@link ng}. - * @param {Object.=} 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.$$suspended = false; - this.$$listeners = {}; - this.$$listenerCount = {}; - this.$$watchersCount = 0; - this.$$isolateBindings = null; + if (isBoolean(mode.requireBase)) { + html5Mode.requireBase = mode.requireBase; } - /** - * @ngdoc property - * @name $rootScope.Scope#$id - * - * @description - * Unique scope ID (monotonically increasing) useful for debugging. - */ + if (isBoolean(mode.rewriteLinks) || isString(mode.rewriteLinks)) { + html5Mode.rewriteLinks = mode.rewriteLinks; + } - /** - * @ngdoc property - * @name $rootScope.Scope#$parent - * - * @description - * Reference to the parent scope. - */ + return this; + } else { + return html5Mode; + } + }; - /** - * @ngdoc property - * @name $rootScope.Scope#$root - * - * @description - * Reference to the root scope. - */ + /** + * @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. + */ - 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; + /** + * @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. + */ - parent = parent || this; + 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 tag to be present!'); + } + appBase = serverBase(initialUrl) + (baseHref || '/'); + LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url; + } else { + appBase = stripHash(initialUrl); + LocationMode = LocationHashbangUrl; + } + var appBaseNoFile = stripFile(appBase); - 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; - } + $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix); + $location.$$parseLinkUrl(initialUrl, initialUrl); - // 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); + $location.$$state = $browser.state(); - return child; - }, + var IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i; - /** - * @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; + // Determine if two URLs are equal despite potentially having different encoding/normalizing + // such as $location.absUrl() vs $browser.url() + // See https://github.com/angular/angular.js/issues/16592 + function urlsEqual(a, b) { + return a === b || urlResolve(a).href === urlResolve(b).href; + } - 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 - }; + function setBrowserUrlWithFallback(url, replace, state) { + var oldUrl = $location.url(); + var oldState = $location.$$state; + try { + $browser.url(url, replace, state); - lastDirtyWatch = null; + // 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; - 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; - }; - }, + throw e; + } + } - /** - * @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. - * - * @param {Array.} 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` - * 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; - }; - } + $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 (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); - }); - } + if (!rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 || event.button === 2) return; - forEach(watchExpressions, function (expr, i) { - var unwatchFn = self.$watch(expr, function watchGroupSubAction(value) { - newValues[i] = value; - if (!changeReactionScheduled) { - changeReactionScheduled = true; - self.$evalAsync(watchGroupAction); - } - }); - deregisterFns.push(unwatchFn); - }); + var elm = jqLite(event.target); - function watchGroupAction() { - changeReactionScheduled = false; + // 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; + } - try { - if (firstRun) { - firstRun = false; - listener(newValues, newValues, self); - } else { - listener(newValues, oldValues, self); - } - } finally { - for (var i = 0; i < watchExpressions.length; i++) { - oldValues[i] = newValues[i]; - } - } + 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 AngularJS 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(); } + } + } + }); - 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) { - // Mark the interceptor as - // ... $$pure when literal since the instance will change when any input changes - $watchCollectionInterceptor.$$pure = $parse(obj).literal; - // ... $stateful when non-literal since we must read the state of the collection - $watchCollectionInterceptor.$stateful = !$watchCollectionInterceptor.$$pure; + // rewrite hashbang url <> html5 url + if ($location.absUrl() !== initialUrl) { + $browser.url($location.absUrl(), 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; + var initializing = true; - 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++; - } + // update $location when $browser url changes + $browser.onUrlChange(function(newUrl, newState) { - newLength = newValue.length; + if (!startsWith(newUrl, appBaseNoFile)) { + // If we are navigating outside of the app then force a reload + $window.location.href = newUrl; + return; + } - 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; - } + $rootScope.$evalAsync(function() { + var oldUrl = $location.absUrl(); + var oldState = $location.$$state; + var defaultPrevented; + $location.$$parse(newUrl); + $location.$$state = newState; - function $watchCollectionAction() { - if (initRun) { - initRun = false; - listener(newValue, newValue, self); - } else { - listener(newValue, veryOldValue, self); - } + defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, + newState, oldState).defaultPrevented; - // 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]; - } - } + // 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 = $browser.url(); + var newUrl = $location.absUrl(); + var oldState = $browser.state(); + var currentReplace = $location.$$replace; + var urlOrStateChanged = !urlsEqual(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); } - } + }); + } + } - return this.$watch(changeDetector, $watchCollectionAction); - }, + $location.$$replace = false; - /** - * @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 = asyncQueue.length ? $rootScope : 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(); - } + // we don't need to return anything because $evalAsync will make the digest loop dirty when + // there is a change + }); - lastDirtyWatch = null; + return $location; - do { - // "while dirty" loop - dirty = false; - current = target; + function afterLocationChange(oldUrl, oldState) { + $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl, + $location.$$state, oldState); + } +}]; +} - // 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.$$suspended && 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); - } - } - } +/** + * @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 + + + angular.module('logExample', []) + .controller('LogController', ['$scope', '$log', function($scope, $log) { + $scope.$log = $log; + $scope.message = 'Hello World!'; + }]); + + +
    +

    Reload this page with open console, enter text and hit the log button...

    + + + + + + +
    +
    +
    + */ - // 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 - // (though it differs due to having the extra check for $$suspended and does not - // check $$listenerCount) - if (!(next = !current.$$suspended && current.$$watchersCount && current.$$childHead || current !== target && current.$$nextSibling)) { - while (current !== target && !(next = current.$$nextSibling)) { - current = current.$parent; - } - } - } while (current = next); +/** + * @ngdoc provider + * @name $logProvider + * @this + * + * @description + * Use the `$logProvider` to configure how the application logs messages + */ +function $LogProvider() { + var debug = true, + self = this; - // `break traverseScopesLoop;` takes us to here + /** + * @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; + } + }; - 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); + 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); - clearPhase(); + return { + /** + * @ngdoc method + * @name $log#log + * + * @description + * Write a log message + */ + log: consoleLog('log'), - // 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; + /** + * @ngdoc method + * @name $log#info + * + * @description + * Write an information message + */ + info: consoleLog('info'), - // 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 method + * @name $log#warn + * + * @description + * Write a warning message + */ + warn: consoleLog('warn'), - /** - * @ngdoc method - * @name $rootScope.Scope#$suspend - * @kind function - * - * @description - * Suspend watchers of this scope subtree so that they will not be invoked during digest. - * - * This can be used to optimize your application when you know that running those watchers - * is redundant. - * - * **Warning** - * - * Suspending scopes from the digest cycle can have unwanted and difficult to debug results. - * Only use this approach if you are confident that you know what you are doing and have - * ample tests to ensure that bindings get updated as you expect. - * - * Some of the things to consider are: - * - * * Any external event on a directive/component will not trigger a digest while the hosting - * scope is suspended - even if the event handler calls `$apply()` or `$rootScope.$digest()`. - * * Transcluded content exists on a scope that inherits from outside a directive but exists - * as a child of the directive's containing scope. If the containing scope is suspended the - * transcluded scope will also be suspended, even if the scope from which the transcluded - * scope inherits is not suspended. - * * Multiple directives trying to manage the suspended status of a scope can confuse each other: - * * A call to `$suspend()` on an already suspended scope is a no-op. - * * A call to `$resume()` on a non-suspended scope is a no-op. - * * If two directives suspend a scope, then one of them resumes the scope, the scope will no - * longer be suspended. This could result in the other directive believing a scope to be - * suspended when it is not. - * * If a parent scope is suspended then all its descendants will be also excluded from future - * digests whether or not they have been suspended themselves. Note that this also applies to - * isolate child scopes. - * * Calling `$digest()` directly on a descendant of a suspended scope will still run the watchers - * for that scope and its descendants. When digesting we only check whether the current scope is - * locally suspended, rather than checking whether it has a suspended ancestor. - * * Calling `$resume()` on a scope that has a suspended ancestor will not cause the scope to be - * included in future digests until all its ancestors have been resumed. - * * Resolved promises, e.g. from explicit `$q` deferreds and `$http` calls, trigger `$apply()` - * against the `$rootScope` and so will still trigger a global digest even if the promise was - * initiated by a component that lives on a suspended scope. - */ - $suspend: function $suspend() { - this.$$suspended = true; - }, + /** + * @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'); - /** - * @ngdoc method - * @name $rootScope.Scope#$isSuspended - * @kind function - * - * @description - * Call this method to determine if this scope has been explicitly suspended. It will not - * tell you whether an ancestor has been suspended. - * To determine if this scope will be excluded from a digest triggered at the $rootScope, - * for example, you must check all its ancestors: - * - * ``` - * function isExcludedFromDigest(scope) { - * while(scope) { - * if (scope.$isSuspended()) return true; - * scope = scope.$parent; - * } - * return false; - * ``` - * - * Be aware that a scope may not be included in digests if it has a suspended ancestor, - * even if `$isSuspended()` returns false. - * - * @returns true if the current scope has been suspended. - */ - $isSuspended: function $isSuspended() { - return this.$$suspended; - }, + return function() { + if (debug) { + fn.apply(self, arguments); + } + }; + })() + }; - /** - * @ngdoc method - * @name $rootScope.Scope#$resume - * @kind function - * - * @description - * Resume watchers of this scope subtree in case it was suspended. - * - * See {@link $rootScope.Scope#$suspend} for information about the dangers of using this approach. - */ - $resume: function $resume() { - this.$$suspended = false; - }, + 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; + } - /** - * @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. - */ + function consoleLog(type) { + var console = $window.console || {}, + logFn = console[type] || console.log || noop; - /** - * @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; + 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); + }; + } + }]; +} - this.$broadcast('$destroy'); - this.$$destroyed = true; +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - if (this === $rootScope) { - //Remove handlers attached to window when $rootScope is removed - $browser.$$applicationDestroyed(); - } +var $parseMinErr = minErr('$parse'); - incrementWatchersCount(this, -this.$$watchersCount); - for (var eventName in this.$$listenerCount) { - decrementListenerCount(this, this.$$listenerCount[eventName], eventName); - } +var objectValueOf = {}.constructor.prototype.valueOf; - // 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 = {}; +// Sandboxing AngularJS Expressions +// ------------------------------ +// AngularJS 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 AngularJS 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 - // 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 AngularJS - * 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 AngularJS 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); - }, +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 + ''; +} - /** - * @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 AngularJS 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(); - } - }, null, '$evalAsync'); - } - asyncQueue.push({ scope: this, fn: $parse(expr), locals: locals }); - }, +var OPERATORS = createMap(); +forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; }); +var ESCAPE = {'n':'\n', 'f':'\f', 'r':'\r', 't':'\t', 'v':'\v', '\'':'\'', '"':'"'}; - $$postDigest: function $$postDigest(fn) { - postDigestQueue.push(fn); - }, - /** - * @ngdoc method - * @name $rootScope.Scope#$apply - * @kind function - * - * @description - * `$apply()` is used to execute an expression in AngularJS from outside of the AngularJS - * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries). - * Because we are calling into the AngularJS 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 AngularJS 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 AngularJS 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); - } - }, +/** + * @constructor + */ +var Lexer = function Lexer(options) { + this.options = options; +}; - /** - * @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); +Lexer.prototype = { + constructor: Lexer, - var current = this; - do { - if (!current.$$listenerCount[name]) { - current.$$listenerCount[name] = 0; - } - current.$$listenerCount[name]++; - } while (current = current.$parent); + lex: function(text) { + this.text = text; + this.index = 0; + this.tokens = []; - 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); - } - }; - }, + 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; + }, - /** - * @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); + is: function(ch, chars) { + return chars.indexOf(ch) !== -1; + }, - event.currentScope = null; + peek: function(i) { + var num = i || 1; + return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false; + }, - return event; - }, + isNumber: function(ch) { + return ('0' <= ch && ch <= '9') && typeof ch === 'string'; + }, - /** - * @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 - }; + isWhitespace: function(ch) { + // IE treats non-breaking space as \u00A0 + return (ch === ' ' || ch === '\r' || ch === '\t' || + ch === '\n' || ch === '\v' || ch === '\u00A0'); + }, - 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; - } + isIdentifierStart: function(ch) { + return this.options.isIdentifierStart ? + this.options.isIdentifierStart(ch, this.codePointAt(ch)) : + this.isValidIdentifierStart(ch); + }, - try { - listeners[i].apply(null, listenerArgs); - } catch (e) { - $exceptionHandler(e); - } - } + isValidIdentifierStart: function(ch) { + return ('a' <= ch && ch <= 'z' || + 'A' <= ch && ch <= 'Z' || + '_' === ch || ch === '$'); + }, - // 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 and - // does not check $$suspended) - if (!(next = current.$$listenerCount[name] && current.$$childHead || current !== target && current.$$nextSibling)) { - while (current !== target && !(next = current.$$nextSibling)) { - current = current.$parent; - } - } - } + isIdentifierContinue: function(ch) { + return this.options.isIdentifierContinue ? + this.options.isIdentifierContinue(ch, this.codePointAt(ch)) : + this.isValidIdentifierContinue(ch); + }, - event.currentScope = null; - return event; - } - }; + isValidIdentifierContinue: function(ch, cp) { + return this.isValidIdentifierStart(ch, cp) || this.isNumber(ch); + }, - var $rootScope = new Scope(); + codePointAt: function(ch) { + if (ch.length === 1) return ch.charCodeAt(0); + // eslint-disable-next-line no-bitwise + return (ch.charCodeAt(0) << 10) + ch.charCodeAt(1) - 0x35FDC00; + }, - //The internal queues. Expose them on the $rootScope for debugging/testing purposes. - var asyncQueue = $rootScope.$$asyncQueue = []; - var postDigestQueue = $rootScope.$$postDigestQueue = []; - var applyAsyncQueue = $rootScope.$$applyAsyncQueue = []; + peekMultichar: function() { + 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; + }, - var postDigestQueuePosition = 0; + isExpOperator: function(ch) { + return (ch === '-' || ch === '+' || this.isNumber(ch)); + }, - return $rootScope; + throwError: function(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); + }, - function beginPhase(phase) { - if ($rootScope.$$phase) { - throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase); + readNumber: function() { + 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; } - - $rootScope.$$phase = phase; } + this.index++; + } + this.tokens.push({ + index: start, + text: number, + constant: true, + value: Number(number) + }); + }, - function clearPhase() { - $rootScope.$$phase = null; + readIdent: function() { + 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 + }); + }, - function incrementWatchersCount(current, count) { - do { - current.$$watchersCount += count; - } while (current = current.$parent); + readString: function(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); + } +}; - function decrementListenerCount(current, count, name) { - do { - current.$$listenerCount[name] -= count; +var AST = function AST(lexer, options) { + this.lexer = lexer; + this.options = options; +}; - if (current.$$listenerCount[name] === 0) { - delete current.$$listenerCount[name]; - } - } while (current = current.$parent); +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(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() { + var body = []; + while (true) { + if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']')) + body.push(this.expressionStatement()); + if (!this.expect(';')) { + return { type: AST.Program, body: body}; } + } + }, - /** - * function used as an initial value for watchers. - * because it's unique we can easily tell it apart from other values - */ - function initWatchVal() {} + expressionStatement: function() { + return { type: AST.ExpressionStatement, expression: this.filterChain() }; + }, - function flushApplyAsync() { - while (applyAsyncQueue.length) { - try { - applyAsyncQueue.shift()(); - } catch (e) { - $exceptionHandler(e); - } - } - applyAsyncId = null; + filterChain: function() { + var left = this.expression(); + while (this.expect('|')) { + left = this.filter(left); + } + return left; + }, + + expression: function() { + return this.assignment(); + }, + + assignment: function() { + var result = this.ternary(); + if (this.expect('=')) { + if (!isAssignable(result)) { + throw $parseMinErr('lval', 'Trying to assign a value to a non l-value'); } - function scheduleApplyAsync() { - if (applyAsyncId === null) { - applyAsyncId = $browser.defer(function () { - $rootScope.$apply(flushApplyAsync); - }, null, '$applyAsync'); - } + result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='}; + } + return result; + }, + + ternary: function() { + 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; + }, - /** - * @ngdoc service - * @name $rootElement - * - * @description - * The root element of AngularJS 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()`. - */ + logicalOR: function() { + var left = this.logicalAND(); + while (this.expect('||')) { + left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() }; + } + return left; + }, - // the implementation is in angular.bootstrap + logicalAND: function() { + var left = this.equality(); + while (this.expect('&&')) { + left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()}; + } + return left; + }, - /** - * @this - * @description - * Private service to sanitize uris for links and images. Used by $compile and $sanitize. - */ - function $$SanitizeUriProvider() { + equality: function() { + var left = this.relational(); + var token; + while ((token = this.expect('==','!=','===','!=='))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() }; + } + return left; + }, - var aHrefSanitizationWhitelist = /^\s*(https?|s?ftp|mailto|tel|file):/, - imgSrcSanitizationWhitelist = /^\s*((https?|ftp|file|blob):|data:image\/)/; + relational: function() { + var left = this.additive(); + var token; + while ((token = this.expect('<', '>', '<=', '>='))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() }; + } + return left; + }, - /** - * @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 anchor links. - * - * Any url due to be assigned to an `a[href]` attribute via interpolation is marked as requiring - * the $sce.URL security context. When interpolation occurs a call is made to `$sce.trustAsUrl(url)` - * which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize the potentially malicious URL. - * - * If the URL matches the `aHrefSanitizationWhitelist` regular expression, it is returned unchanged. - * - * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written - * to the DOM it is inactive and potentially malicious code will not be executed. - * - * @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; - }; + additive: function() { + var left = this.multiplicative(); + var token; + while ((token = this.expect('+','-'))) { + left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() }; + } + return left; + }, - /** - * @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 image src links. - * - * Any URL due to be assigned to an `img[src]` attribute via interpolation is marked as requiring - * the $sce.MEDIA_URL security context. When interpolation occurs a call is made to - * `$sce.trustAsMediaUrl(url)` which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize - * the potentially malicious URL. - * - * If the URL matches the `aImgSanitizationWhitelist` regular expression, it is returned unchanged. - * - * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written - * to the DOM it is inactive and potentially malicious code will not be executed. - * - * @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; + multiplicative: function() { + 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() { + var token; + if ((token = this.expect('+', '-', '!'))) { + return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() }; + } else { + return this.primary(); + } + }, + + primary: function() { + 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 imgSrcSanitizationWhitelist; - }; + } + return primary; + }, - this.$get = function () { - return function sanitizeUri(uri, isMediaUrl) { - // if (!uri) return uri; - var regex = isMediaUrl ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist; - var normalizedVal = urlResolve(uri && uri.trim()).href; - if (normalizedVal !== '' && !normalizedVal.match(regex)) { - return 'unsafe:' + normalizedVal; - } - return uri; - }; - }; - } + filter: function(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; + }, - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * 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? * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + parseArguments: function() { + var args = []; + if (this.peekToken().text !== ')') { + do { + args.push(this.filterChain()); + } while (this.expect(',')); + } + return args; + }, - /* exported $SceProvider, $SceDelegateProvider */ + identifier: function() { + var token = this.consume(); + if (!token.identifier) { + this.throwError('is not a valid identifier', token); + } + return { type: AST.Identifier, name: token.text }; + }, - var $sceMinErr = minErr('$sce'); + constant: function() { + // TODO check that it is a constant + return { type: AST.Literal, value: this.consume().value }; + }, - var SCE_CONTEXTS = { - // HTML is used when there's HTML rendered (e.g. ng-bind-html, iframe srcdoc binding). - HTML: 'html', + arrayDeclaration: function() { + 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(']'); - // Style statements or stylesheets. Currently unused in AngularJS. - CSS: 'css', + return { type: AST.ArrayExpression, elements: elements }; + }, - // An URL used in a context where it refers to the source of media, which are not expected to be run - // as scripts, such as an image, audio, video, etc. - MEDIA_URL: 'mediaUrl', + object: function() { + 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('}'); - // An URL used in a context where it does not refer to a resource that loads code. - // A value that can be trusted as a URL can also trusted as a MEDIA_URL. - URL: 'url', + return {type: AST.ObjectExpression, properties: properties }; + }, - // 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) - // A value that can be trusted as a RESOURCE_URL, can also trusted as a URL and a MEDIA_URL. - RESOURCE_URL: 'resourceUrl', + throwError: function(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)); + }, - // Script. Currently unused in AngularJS. - JS: 'js' - }; + consume: function(e1) { + if (this.tokens.length === 0) { + throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); + } - // Helper functions follow. + var token = this.expect(e1); + if (!token) { + this.throwError('is unexpected, expecting [' + e1 + ']', this.peek()); + } + return token; + }, - var UNDERSCORE_LOWERCASE_REGEXP = /_([a-z])/g; + peekToken: function() { + if (this.tokens.length === 0) { + throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text); + } + return this.tokens[0]; + }, - function snakeToCamel(name) { - return name.replace(UNDERSCORE_LOWERCASE_REGEXP, fnCamelCaseReplace); - } + peek: function(e1, e2, e3, e4) { + return this.peekAhead(0, e1, e2, e3, e4); + }, - 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); + peekAhead: function(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; } - 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'); } - } + return false; + }, - function adjustMatchers(matchers) { - var adjustedMatchers = []; - if (isDefined(matchers)) { - forEach(matchers, function (matcher) { - adjustedMatchers.push(adjustMatcher(matcher)); - }); + expect: function(e1, e2, e3, e4) { + var token = this.peek(e1, e2, e3, e4); + if (token) { + this.tokens.shift(); + return token; } - return adjustedMatchers; + return false; + }, + + selfReferential: { + 'this': {type: AST.ThisExpression }, + '$locals': {type: AST.LocalsExpression } } +}; - /** - * @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. - * - *
    - * 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. - *
    - * - * 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} - */ +function ifDefined(v, d) { + return typeof v !== 'undefined' ? v : d; +} - /** - * @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 AngularJS, read the main page for {@link ng.$sce - * Strict Contextual Escaping (SCE)}. - * - * **Example**: Consider the following case.
    - * - * - 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 plusFn(l, r) { + if (typeof l === 'undefined') return r; + if (typeof r === 'undefined') return l; + return l + r; +} - function $SceDelegateProvider() { - this.SCE_CONTEXTS = SCE_CONTEXTS; +function isStateless($filter, filterName) { + var fn = $filter(filterName); + return !fn.$stateful; +} - // Resource URLs can also be trusted by policy. - var resourceUrlWhitelist = ['self'], - resourceUrlBlacklist = []; +var PURITY_ABSOLUTE = 1; +var PURITY_RELATIVE = 2; - /** - * @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. - * - *
    - * **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. - *
    - */ - this.resourceUrlWhitelist = function (value) { - if (arguments.length) { - resourceUrlWhitelist = adjustMatchers(value); +// 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; } - return resourceUrlWhitelist; - }; + break; - /** - * @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.

    - * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items - * allowed in this array.

    - * 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. - *

    - * 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.) - */ + // Unary always convert to primative + case AST.UnaryExpression: + return PURITY_ABSOLUTE; - this.resourceUrlBlacklist = function (value) { - if (arguments.length) { - resourceUrlBlacklist = adjustMatchers(value); - } - return resourceUrlBlacklist; - }; + // The binary + operator can invoke a stateful toString(). + case AST.BinaryExpression: + return node.operator !== '+' ? PURITY_ABSOLUTE : false; - this.$get = ['$injector', '$$sanitizeUri', function ($injector, $$sanitizeUri) { + // Functions / filters probably read state from within objects + case AST.CallExpression: + return false; + } - var htmlSanitizer = function htmlSanitizer(html) { - throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.'); - }; + return (undefined === parentIsPure) ? PURITY_RELATIVE : parentIsPure; +} - if ($injector.has('$sanitize')) { - htmlSanitizer = $injector.get('$sanitize'); - } +function findConstantAndWatchExpressions(ast, $filter, parentIsPure) { + var allConstants; + var argsToWatch; + var isStatelessFilter; - function matchUrl(matcher, parsedUrl) { - if (matcher === 'self') { - return urlIsSameOrigin(parsedUrl) || urlIsSameOriginAsBaseUrl(parsedUrl); - } else { - // definitely a regex. See adjustMatchers() - return !!matcher.exec(parsedUrl.href); - } - } + var astIsPure = ast.isPure = isPure(ast, parentIsPure); - 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; + 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 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; - } +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; +} - var trustedValueHolderBase = generateHolderType(), - byType = {}; +function isAssignable(ast) { + return ast.type === AST.Identifier || ast.type === AST.MemberExpression; +} - byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase); - byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase); - byType[SCE_CONTEXTS.MEDIA_URL] = generateHolderType(trustedValueHolderBase); - byType[SCE_CONTEXTS.URL] = generateHolderType(byType[SCE_CONTEXTS.MEDIA_URL]); - byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase); - byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]); +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: '='}; + } +} - /** - * @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); - } +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); +} - /** - * @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; - } +function isConstant(ast) { + return ast.constant; +} + +function ASTCompiler($filter) { + this.$filter = $filter; +} + +ASTCompiler.prototype = { + compile: function(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() { + 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(''); + }, - /** - * @ngdoc method - * @name $sceDelegate#getTrusted - * - * @description - * Given an object and a security context in which to assign it, returns a value that's safe to - * use in this context, which was represented by the parameter. To do so, this function either - * unwraps the safe type it has been given (for instance, a {@link ng.$sceDelegate#trustAs - * `$sceDelegate.trustAs`} result), or it might try to sanitize the value given, depending on - * the context and sanitizer availablility. - * - * The contexts that can be sanitized are $sce.MEDIA_URL, $sce.URL and $sce.HTML. The first two are available - * by default, and the third one relies on the `$sanitize` service (which may be loaded through - * the `ngSanitize` module). Furthermore, for $sce.RESOURCE_URL context, a plain string may be - * accepted if the resource url policy defined by {@link ng.$sceDelegateProvider#resourceUrlWhitelist - * `$sceDelegateProvider.resourceUrlWhitelist`} and {@link ng.$sceDelegateProvider#resourceUrlBlacklist - * `$sceDelegateProvider.resourceUrlBlacklist`} accepts that resource. - * - * This function will throw if the safe type isn't appropriate for this context, or if the - * value given cannot be accepted in the context (which might be caused by sanitization not - * being available, or the value not being recognized as safe). - * - *

    - * Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting - * (XSS) vulnerability in your application. - *
    - * - * @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(); - } + generateFunction: function(name, params) { + return 'function(' + params + '){' + + this.varsPrefix(name) + + this.body(name) + + '};'; + }, - // If maybeTrusted is a trusted class instance but not of the correct trusted type - // then unwrap it and allow it to pass through to the rest of the checks - if (isFunction(maybeTrusted.$$unwrapTrustedValue)) { - maybeTrusted = maybeTrusted.$$unwrapTrustedValue(); - } + filterPrefix: function() { + 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(section) { + return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : ''; + }, + + body: function(section) { + return this.state[section].body.join(''); + }, - // If we get here, then we will either sanitize the value or throw an exception. - if (type === SCE_CONTEXTS.MEDIA_URL || type === SCE_CONTEXTS.URL) { - // we attempt to sanitize non-resource URLs - return $$sanitizeUri(maybeTrusted.toString(), type === SCE_CONTEXTS.MEDIA_URL); - } else if (type === SCE_CONTEXTS.RESOURCE_URL) { - if (isResourceUrlAllowedByPolicy(maybeTrusted)) { - return maybeTrusted; + recurse: function(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 { - throw $sceMinErr('insecurl', 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}', maybeTrusted.toString()); + 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; + } } - } else if (type === SCE_CONTEXTS.HTML) { - // htmlSanitizer throws its own error when no sanitizer is available. - return htmlSanitizer(maybeTrusted); + }, 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; } - // 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.'); + }); + 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; + } + }, - return { trustAs: trustAs, - getTrusted: getTrusted, - valueOf: valueOf }; - }]; - } + getHasOwnProperty: function(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]; + }, - /** - * @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)}. - */ + assign: function(id, value) { + if (!id) return; + this.current().body.push(id, '=', value, ';'); + return id; + }, - /** - * @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: - * - * ``` - * - *
    - * ``` - * - * 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, AngularJS 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. - * `
    `) just works (remember to include the - * `ngSanitize` module). 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. - * - * - * ### 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} module is present this will sanitize the value instead of throwing an error. | - * | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. | - * | `$sce.MEDIA_URL` | For URLs that are safe to render as media. Is automatically converted from string by sanitizing when needed. | - * | `$sce.URL` | For URLs that are safe to follow as links. Is automatically converted from string by sanitizing when needed. Note that `$sce.URL` makes a stronger statement about the URL than `$sce.MEDIA_URL` does and therefore contexts requiring values trusted for `$sce.URL` can be used anywhere that values trusted for `$sce.MEDIA_URL` are required.| - * | `$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` (e.g. `IFRAME`, `OBJECT`, etc.)

    Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` or `$sce.MEDIA_URL` do and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` or `$sce.MEDIA_URL` are required.

    The {@link $sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider#resourceUrlWhitelist()} and {@link $sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider#resourceUrlBlacklist()} can be used to restrict trusted origins for `RESOURCE_URL` | - * | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. | - * - * - *
    - * Be aware that, before AngularJS 1.7.0, `a[href]` and `img[src]` used to sanitize their - * interpolated values directly rather than rely upon {@link ng.$sce#getTrusted `$sce.getTrusted`}. - * - * **As of 1.7.0, this is no longer the case.** - * - * Now such interpolations are marked as requiring `$sce.URL` (for `a[href]`) or `$sce.MEDIA_URL` - * (for `img[src]`), so that the sanitization happens (via `$sce.getTrusted...`) when the `$interpolate` - * service evaluates the expressions. - *
    - * - * There are no CSS 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} - * - * 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. - * - * - * - *
    - *

    - * User comments
    - * 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. - *
    - *
    - * {{userComment.name}}: - * - *
    - *
    - *
    - *
    - *
    - * - * - * 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( - * 'Hover over this text.'); - * }]); - * - * - * - * [ - * { "name": "Alice", - * "htmlComment": - * "Is anyone reading this?" - * }, - * { "name": "Bob", - * "htmlComment": "Yes! Am I the only other one?" - * } - * ] - * - * - * - * describe('SCE doc demo', function() { - * it('should sanitize untrusted values', function() { - * expect(element.all(by.css('.htmlComment')).first().getAttribute('innerHTML')) - * .toBe('Is anyone reading this?'); - * }); - * - * it('should NOT sanitize explicitly trusted values', function() { - * expect(element(by.id('explicitlyTrustedHtml')).getAttribute('innerHTML')).toBe( - * 'Hover over this text.'); - * }); - * }); - * - *
    - * - * - * - * ## 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); - * }); - * ``` - * - */ + filter: function(filterName) { + if (!this.state.filters.hasOwnProperty(filterName)) { + this.state.filters[filterName] = this.nextId(true); + } + return this.state.filters[filterName]; + }, - function $SceProvider() { - var enabled = true; + ifDefined: function(id, defaultValue) { + return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')'; + }, - /** - * @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; - }; + plus: function(left, right) { + return 'plus(' + left + ',' + right + ')'; + }, - /* 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 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. - */ + return_: function(id) { + this.current().body.push('return ', id, ';'); + }, - 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 to the top of your HTML ' + 'document. See http://docs.angularjs.org/api/ng.$sce for more information.'); + if_: function(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('}'); } + } + }, - var sce = shallowCopy(SCE_CONTEXTS); + not: function(expression) { + return '!(' + expression + ')'; + }, - /** - * @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; + isNull: function(expression) { + return expression + '==null'; + }, - if (!enabled) { - sce.trustAs = sce.getTrusted = function (type, value) { - return value; - }; - sce.valueOf = identity; - } + notNull: function(expression) { + return expression + '!=null'; + }, - /** - * @ngdoc method - * @name $sce#parseAs - * - * @description - * Converts AngularJS {@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); - }); - } - }; + nonComputedMember: function(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) + '"]'; + } + }, - /** - * @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. - */ + computedMember: function(left, right) { + return left + '[' + right + ']'; + }, - /** - * @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`). - */ + member: function(left, right, computed) { + if (computed) return this.computedMember(left, right); + return this.nonComputedMember(left, right); + }, - /** - * @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. - */ + getStringValue: function(item) { + this.assign(item, 'getStringValue(' + item + ')'); + }, - /** - * @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. - */ + lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) { + var self = this; + return function() { + self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck); + }; + }, - /** - * @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, ...) - */ + lazyAssign: function(id, value) { + var self = this; + return function() { + self.assign(id, value); + }; + }, - /** - * @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. - */ + stringEscapeRegex: /[^ a-zA-Z0-9]/g, - /** - * @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. - */ + stringEscapeFn: function(c) { + return '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4); + }, - /** - * @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)` - */ + escape: function(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'; - /** - * @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)` - */ + throw $parseMinErr('esc', 'IMPOSSIBLE'); + }, - /** - * @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)` - */ + nextId: function(skip, init) { + var id = 'v' + (this.state.nextId++); + if (!skip) { + this.current().vars.push(id + (init ? '=' + init : '')); + } + return id; + }, - /** - * @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)` - */ + current: function() { + return this.state[this.state.computing]; + } +}; - /** - * @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`. - */ +function ASTInterpreter($filter) { + this.$filter = $filter; +} - /** - * @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`. - */ +ASTInterpreter.prototype = { + compile: function(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; + }, - /** - * @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`. - */ + recurse: function(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; + }; + } + }, - /** - * @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`. - */ + 'unary+': function(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(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(argument, context) { + return function(scope, locals, assign, inputs) { + var arg = !argument(scope, locals, assign, inputs); + return context ? {value: arg} : arg; + }; + }, + 'binary+': function(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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, context) { + return function() { return context ? {context: undefined, name: undefined, value: value} : value; }; + }, + identifier: function(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(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(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(input, watchId) { + return function(scope, value, locals, inputs) { + if (inputs) return inputs[watchId]; + return input(scope, value, locals); + }; + } +}; - /** - * @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`. - */ +/** + * @constructor + */ +function Parser(lexer, $filter, options) { + this.ast = new AST(lexer, options); + this.astCompiler = options.csp ? new ASTInterpreter($filter) : + new ASTCompiler($filter); +} - // Shorthand delegations. - var parse = sce.parseAs, - getTrusted = sce.getTrusted, - trustAs = sce.trustAs; +Parser.prototype = { + constructor: Parser, - 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); - }; - }); + parse: function(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; + }, - return sce; - }]; + getAst: function(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 + }; } +}; - /* exported $SnifferProvider */ +function getValueOf(value) { + return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value); +} - /** - * !!! 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; - } +/** + * @ngdoc service + * @name $parse + * @kind function + * + * @description + * + * Converts AngularJS {@link guide/expression expression} into a function. + * + * ```js + * var getter = $parse('user.name'); + * var setter = getter.assign; + * var context = {user:{name:'AngularJS'}}; + * var locals = {user:{name:'local'}}; + * + * expect(getter(context)).toEqual('AngularJS'); + * 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. + * + */ - return eventSupport[event]; - }, - csp: csp(), - transitions: transitions, - animations: animations, - android: android - }; - }]; - } + +/** + * @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; /** - * ! This is a private undocumented service ! - * - * @name $$taskTrackerFactory + * @ngdoc method + * @name $parseProvider#addLiteral * @description - * A function to create `TaskTracker` instances. * - * A `TaskTracker` can keep track of pending tasks (grouped by type) and can notify interested - * parties when all pending tasks (or tasks of a specific type) have been completed. + * Configure $parse service to add literal values that will be present as literal at expressions. * - * @param {$log} log - A logger instance (such as `$log`). Used to log error during callback - * execution. + * @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 - */ - function $$TaskTrackerFactoryProvider() { - this.$get = valueFn(function (log) { - return new TaskTracker(log); - }); - } - - function TaskTracker(log) { - var self = this; - var taskCounts = {}; - var taskCallbacks = []; - - var ALL_TASKS_TYPE = self.ALL_TASKS_TYPE = '$$all$$'; - var DEFAULT_TASK_TYPE = self.DEFAULT_TASK_TYPE = '$$default$$'; - - /** - * Execute the specified function and decrement the appropriate `taskCounts` counter. - * If the counter reaches 0, all corresponding `taskCallbacks` are executed. - * - * @param {Function} fn - The function to execute. - * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task that is being completed. - */ - self.completeTask = completeTask; + **/ + this.addLiteral = function(literalName, literalValue) { + literals[literalName] = literalValue; + }; - /** - * Increase the task count for the specified task type (or the default task type if non is - * specified). - * - * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task whose count will be increased. - */ - self.incTaskCount = incTaskCount; + /** + * @ngdoc method + * @name $parseProvider#setIdentifierFns + * + * @description + * + * Allows defining the set of characters that are allowed in AngularJS 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; + }; - /** - * Execute the specified callback when all pending tasks have been completed. - * - * If there are no pending tasks, the callback is executed immediately. You can optionally limit - * the tasks that will be waited for to a specific type, by passing a `taskType`. - * - * @param {function} callback - The function to call when there are no pending tasks. - * @param {string=} [taskType=ALL_TASKS_TYPE] - The type of tasks that will be waited for. - */ - self.notifyWhenNoPendingTasks = notifyWhenNoPendingTasks; + 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 completeTask(fn, taskType) { - taskType = taskType || DEFAULT_TASK_TYPE; + function $parse(exp, interceptorFn) { + var parsedExpression, cacheKey; - try { - fn(); - } finally { - decTaskCount(taskType); + switch (typeof exp) { + case 'string': + exp = exp.trim(); + cacheKey = exp; - var countForType = taskCounts[taskType]; - var countForAll = taskCounts[ALL_TASKS_TYPE]; + parsedExpression = cache[cacheKey]; - // If at least one of the queues (`ALL_TASKS_TYPE` or `taskType`) is empty, run callbacks. - if (!countForAll || !countForType) { - var getNextCallback = !countForAll ? getLastCallback : getLastCallbackForType; - var nextCb; + if (!parsedExpression) { + var lexer = new Lexer($parseOptions); + var parser = new Parser(lexer, $filter, $parseOptions); + parsedExpression = parser.parse(exp); - while (nextCb = getNextCallback(taskType)) { - try { - nextCb(); - } catch (e) { - log.error(e); - } + cache[cacheKey] = addWatchDelegate(parsedExpression); } - } - } - } - - function decTaskCount(taskType) { - taskType = taskType || DEFAULT_TASK_TYPE; - if (taskCounts[taskType]) { - taskCounts[taskType]--; - taskCounts[ALL_TASKS_TYPE]--; - } - } + return addInterceptor(parsedExpression, interceptorFn); - function getLastCallback() { - var cbInfo = taskCallbacks.pop(); - return cbInfo && cbInfo.cb; - } + case 'function': + return addInterceptor(exp, interceptorFn); - function getLastCallbackForType(taskType) { - for (var i = taskCallbacks.length - 1; i >= 0; --i) { - var cbInfo = taskCallbacks[i]; - if (cbInfo.type === taskType) { - taskCallbacks.splice(i, 1); - return cbInfo.cb; - } + default: + return addInterceptor(noop, interceptorFn); } } - function incTaskCount(taskType) { - taskType = taskType || DEFAULT_TASK_TYPE; - taskCounts[taskType] = (taskCounts[taskType] || 0) + 1; - taskCounts[ALL_TASKS_TYPE] = (taskCounts[ALL_TASKS_TYPE] || 0) + 1; + function $$getAst(exp) { + var lexer = new Lexer($parseOptions); + var parser = new Parser(lexer, $filter, $parseOptions); + return parser.getAst(exp).ast; } - function notifyWhenNoPendingTasks(callback, taskType) { - taskType = taskType || ALL_TASKS_TYPE; - if (!taskCounts[taskType]) { - callback(); - } else { - taskCallbacks.push({ type: taskType, cb: callback }); - } - } - } - - var $templateRequestMinErr = minErr('$templateRequest'); - - /** - * @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; + function expressionInputDirtyCheck(newValue, oldValueOfValue, compareObjectIdentity) { - /** - * @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; + if (newValue == null || oldValueOfValue == null) { // null/undefined + return newValue === oldValueOfValue; } - 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) { + if (typeof newValue === 'object') { - function handleRequestFn(tpl, ignoreRequestError) { - handleRequestFn.totalPendingRequests++; + // 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); - // 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 AngularJS 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); + if (typeof newValue === 'object' && !compareObjectIdentity) { + // objects/arrays are not supported - deep-watching them would be too expensive + return false; } - var transformResponse = $http.defaults && $http.defaults.transformResponse; - - if (isArray(transformResponse)) { - transformResponse = transformResponse.filter(function (transformer) { - return transformer !== defaultHttpResponseTransform; - }); - } else if (transformResponse === defaultHttpResponseTransform) { - transformResponse = null; - } + // fall-through to the primitive equality check + } - return $http.get(tpl, extend({ - cache: $templateCache, - transformResponse: transformResponse - }, httpOptions)).finally(function () { - handleRequestFn.totalPendingRequests--; - }).then(function (response) { - return $templateCache.put(tpl, response.data); - }, handleError); + //Primitive or NaN + // eslint-disable-next-line no-self-compare + return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue); + } - function handleError(resp) { - if (!ignoreRequestError) { - resp = $templateRequestMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})', tpl, resp.status, resp.statusText); + function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { + var inputExpressions = parsedExpression.inputs; + var lastResult; - $exceptionHandler(resp); + 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 $q.reject(resp); - } + return lastResult; + }, listener, objectEquality, prettyPrintExpression); } - 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 = {}; + 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; + } - /** - * @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; - }; + return scope.$watch(function expressionInputsWatch(scope) { + var changed = false; - /** - * @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; + 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); } } - }; - /** - * @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(); + if (changed) { + lastResult = parsedExpression(scope, undefined, undefined, oldInputValues); } - }; - - /** - * @name $$testability#whenStable - * - * @description - * Calls the callback when all pending tasks are completed. - * - * Types of tasks waited for include: - * - Pending timeouts (via {@link $timeout}). - * - Pending HTTP requests (via {@link $http}). - * - In-progress route transitions (via {@link $route}). - * - Pending tasks scheduled via {@link $rootScope#$applyAsync}. - * - Pending tasks scheduled via {@link $rootScope#$evalAsync}. - * These include tasks scheduled via `$evalAsync()` indirectly (such as {@link $q} promises). - * - * @param {function} callback - */ - testability.whenStable = function (callback) { - $browser.notifyWhenNoOutstandingRequests(callback); - }; - - return testability; - }]; - } - var $timeoutMinErr = minErr('$timeout'); + return lastResult; + }, listener, objectEquality, prettyPrintExpression); + } - /** @this */ - function $TimeoutProvider() { - this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler', function ($rootScope, $browser, $q, $$q, $exceptionHandler) { + function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) { + var isDone = parsedExpression.literal ? isAllDefined : isDefined; + var unwatch, lastValue; - var deferreds = {}; + var exp = parsedExpression.$$intercepted || parsedExpression; + var post = parsedExpression.$$interceptor || identity; - /** - * @ngdoc service - * @name $timeout - * - * @description - * AngularJS'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 useInputs = parsedExpression.inputs && !exp.inputs; - var args = sliceArgs(arguments, 3), - skipApply = isDefined(invokeApply) && !invokeApply, - deferred = (skipApply ? $$q : $q).defer(), - promise = deferred.promise, - timeoutId; + // Propogate the literal/inputs/constant attributes + // ... but not oneTime since we are handling it + oneTimeWatch.literal = parsedExpression.literal; + oneTimeWatch.constant = parsedExpression.constant; + oneTimeWatch.inputs = parsedExpression.inputs; - timeoutId = $browser.defer(function () { - try { - deferred.resolve(fn.apply(null, args)); - } catch (e) { - deferred.reject(e); - $exceptionHandler(e); - } finally { - delete deferreds[promise.$$timeoutId]; - } + // Allow other delegates to run on this wrapped expression + addWatchDelegate(oneTimeWatch); - if (!skipApply) $rootScope.$apply(); - }, delay, '$timeout'); + unwatch = scope.$watch(oneTimeWatch, listener, objectEquality, prettyPrintExpression); - promise.$$timeoutId = timeoutId; - deferreds[timeoutId] = deferred; + return unwatch; - return promise; + function unwatchIfDone() { + if (isDone(lastValue)) { + unwatch(); + } } - /** - * @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) return false; - - if (!promise.hasOwnProperty('$$timeoutId')) { - throw $timeoutMinErr('badprom', '`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.'); + function oneTimeWatch(scope, locals, assign, inputs) { + lastValue = useInputs && inputs ? inputs[0] : exp(scope, locals, assign, inputs); + if (isDone(lastValue)) { + scope.$$postDigest(unwatchIfDone); } + return post(lastValue); + } + } - if (!deferreds.hasOwnProperty(promise.$$timeoutId)) return false; + function isAllDefined(value) { + var allDefined = true; + forEach(value, function(val) { + if (!isDefined(val)) allDefined = false; + }); + return allDefined; + } - var id = promise.$$timeoutId; - var deferred = deferreds[id]; + function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) { + var unwatch = scope.$watch(function constantWatch(scope) { + unwatch(); + return parsedExpression(scope); + }, listener, objectEquality); + return unwatch; + } - // Timeout cancels should not report an unhandled promise. - markQExceptionHandled(deferred.promise); - deferred.reject('canceled'); - delete deferreds[id]; + function addWatchDelegate(parsedExpression) { + if (parsedExpression.constant) { + parsedExpression.$$watchDelegate = constantWatchDelegate; + } else if (parsedExpression.oneTime) { + parsedExpression.$$watchDelegate = oneTimeWatchDelegate; + } else if (parsedExpression.inputs) { + parsedExpression.$$watchDelegate = inputsWatchDelegate; + } - return $browser.defer.cancel(id); - }; + return parsedExpression; + } - return timeout; - }]; - } + function chainInterceptors(first, second) { + function chainedInterceptor(value) { + return second(first(value)); + } + chainedInterceptor.$stateful = first.$stateful || second.$stateful; + chainedInterceptor.$$pure = first.$$pure && second.$$pure; - // 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); - var baseUrlParsingNode; + return chainedInterceptor; + } - /** - * - * 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|object} url The URL to be parsed. If `url` is not a string, it will be returned - * unchanged. - * @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 without 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) { - if (!isString(url)) return url; + function addInterceptor(parsedExpression, interceptorFn) { + if (!interceptorFn) return parsedExpression; - var href = url; + // Extract any existing interceptors out of the parsedExpression + // to ensure the original parsedExpression is always the $$intercepted + if (parsedExpression.$$interceptor) { + interceptorFn = chainInterceptors(parsedExpression.$$interceptor, interceptorFn); + parsedExpression = parsedExpression.$$intercepted; + } - // 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; - } + var useInputs = false; - urlParsingNode.setAttribute('href', href); + var fn = function interceptedExpression(scope, locals, assign, inputs) { + var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs); + return interceptorFn(value); + }; - 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 - }; - } + // Maintain references to the interceptor/intercepted + fn.$$intercepted = parsedExpression; + fn.$$interceptor = interceptorFn; - /** - * 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) { - return urlsAreSameOrigin(requestUrl, originUrl); - } + // Propogate the literal/oneTime/constant attributes + fn.literal = parsedExpression.literal; + fn.oneTime = parsedExpression.oneTime; + fn.constant = parsedExpression.constant; - /** - * Parse a request URL and determine whether it is same-origin as the current document base URL. - * - * Note: The base URL is usually the same as the document location (`location.href`) but can - * be overriden by using the `` tag. - * - * @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 URL is same-origin as the document base URL. - */ - function urlIsSameOriginAsBaseUrl(requestUrl) { - return urlsAreSameOrigin(requestUrl, getBaseUrl()); - } + // Treat the interceptor like filters. + // If it is not $stateful then only watch its inputs. + // If the expression itself has no inputs then use the full expression as an input. + if (!interceptorFn.$stateful) { + useInputs = !parsedExpression.inputs; + fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression]; - /** - * Create a function that can check a URL's origin against a list of allowed/whitelisted origins. - * The current location's origin is implicitly trusted. - * - * @param {string[]} whitelistedOriginUrls - A list of URLs (strings), whose origins are trusted. - * - * @returns {Function} - A function that receives a URL (string or parsed URL object) and returns - * whether it is of an allowed origin. - */ - function urlIsAllowedOriginFactory(whitelistedOriginUrls) { - var parsedAllowedOriginUrls = [originUrl].concat(whitelistedOriginUrls.map(urlResolve)); + if (!interceptorFn.$$pure) { + 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 + // non-pure interceptor function. + if (e.isPure === PURITY_RELATIVE) { + return function depurifier(s) { return e(s); }; + } + return e; + }); + } + } - /** - * Check whether the specified URL (string or parsed URL object) has an origin that is allowed - * based on a list of whitelisted-origin URLs. The current location's origin is implicitly - * trusted. - * - * @param {string|Object} requestUrl - The URL to be checked (provided as a string that will be - * resolved or a parsed URL object). - * - * @returns {boolean} - Whether the specified URL is of an allowed origin. - */ - return function urlIsAllowedOrigin(requestUrl) { - var parsedUrl = urlResolve(requestUrl); - return parsedAllowedOriginUrls.some(urlsAreSameOrigin.bind(null, parsedUrl)); - }; - } + return addWatchDelegate(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 AngularJS, 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); + }]; /** - * Determine if two URLs share the same origin. + * @ngdoc method + * @name $qProvider#errorOnUnhandledRejections + * @kind function * - * @param {string|Object} url1 - First URL to compare as a string or a normalized URL in the form of - * a dictionary object returned by `urlResolve()`. - * @param {string|object} url2 - Second URL to compare as a string or a normalized URL in the form - * of a dictionary object returned by `urlResolve()`. + * @description + * Retrieves or overrides whether to generate an error when a rejected promise is not handled. + * This feature is enabled by default. * - * @returns {boolean} - True if both URLs have the same origin, and false otherwise. - */ - function urlsAreSameOrigin(url1, url2) { - url1 = urlResolve(url1); - url2 = urlResolve(url2); - - return url1.protocol === url2.protocol && url1.host === url2.host; - } - - /** - * Returns the current document base URL. - * @returns {string} + * @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. */ - function getBaseUrl() { - if (window.document.baseURI) { - return window.document.baseURI; + this.errorOnUnhandledRejections = function(value) { + if (isDefined(value)) { + errorOnUnhandledRejections = value; + return this; + } else { + return errorOnUnhandledRejections; } + }; +} - // `document.baseURI` is available everywhere except IE - if (!baseUrlParsingNode) { - baseUrlParsingNode = window.document.createElement('a'); - baseUrlParsingNode.href = '.'; +/** @this */ +function $$QProvider() { + var errorOnUnhandledRejections = true; + this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) { + return qFactory(function(callback) { + $browser.defer(callback); + }, $exceptionHandler, errorOnUnhandledRejections); + }]; - // Work-around for IE bug described in Implementation Notes. The fix in `urlResolve()` is not - // suitable here because we need to track changes to the base URL. - baseUrlParsingNode = baseUrlParsingNode.cloneNode(false); + this.errorOnUnhandledRejections = function(value) { + if (isDefined(value)) { + errorOnUnhandledRejections = value; + return this; + } else { + return errorOnUnhandledRejections; } - return baseUrlParsingNode.href; - } + }; +} - /** - * @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 AngularJS 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 - - - -
    - - -
    -
    - - 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(); - }); - -
    - */ - function $WindowProvider() { - this.$get = valueFn(window); - } +/** + * 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 = []; /** - * @name $$cookieReader - * @requires $document + * @ngdoc method + * @name ng.$q#defer + * @kind function * * @description - * This is a private service for reading cookies used by $http and ngCookies + * Creates a `Deferred` object which represents a task which will finish in the future. * - * @return {Object} a key/value map of the current cookies + * @returns {Deferred} Returns a new instance of deferred. */ - function $$CookieReader($document) { - var rawDocument = $document[0] || {}; - var lastCookies = {}; - var lastCookieString = ''; - - function safeGetCookie(rawDocument) { - try { - return rawDocument.cookie || ''; - } catch (e) { - return ''; - } - } + function defer() { + return new Deferred(); + } - 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; - }; + 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); }; } - $$CookieReader.$inject = ['$document']; - /** @this */ - function $$CookieReaderProvider() { - this.$get = $$CookieReader; + function Promise() { + this.$$state = { status: 0 }; } - /* global currencyFilter: true, - dateFilter: true, - filterFilter: true, - jsonFilter: true, - limitToFilter: true, - lowercaseFilter: true, - numberFilter: true, - orderByFilter: true, - uppercaseFilter: true, - */ + extend(Promise.prototype, { + then: function(onFulfilled, onRejected, progressBack) { + if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) { + return this; + } + var result = new Promise(); - /** - * @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. - * - *
    - * **Note:** Filter names must be valid AngularJS {@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`). - *
    - * - * ```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 AngularJS filters work, and how to create your own filters, see - * {@link guide/filter Filters} in the AngularJS Developer Guide. - */ + this.$$state.pending = this.$$state.pending || []; + this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]); + if (this.$$state.status > 0) scheduleProcessQueue(this.$$state); - /** - * @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. AngularJS 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 - - -
    -

    {{ originalText }}

    -

    {{ filteredText }}

    -
    -
    - - - angular.module('filterExample', []) - .controller('MainCtrl', function($scope, $filter) { - $scope.originalText = 'hello'; - $scope.filteredText = $filter('uppercase')($scope.originalText); - }); - -
    - */ - $FilterProvider.$inject = ['$provide']; - /** @this */ - function $FilterProvider($provide) { - var suffix = 'Filter'; + return result; + }, - /** - * @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. - * - *
    - * **Note:** Filter names must be valid AngularJS {@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`). - *
    - * @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; + 'catch': function(callback) { + return this.then(null, callback); + }, - this.$get = ['$injector', function ($injector) { - return function (name) { - return $injector.get(name + suffix); - }; - }]; + 'finally': function(callback, progressBack) { + return this.then(function(value) { + return handleCallback(value, resolve, callback); + }, function(error) { + return handleCallback(error, reject, callback); + }, progressBack); + } + }); - //////////////////////////////////////// - - /* global - currencyFilter: false, - dateFilter: false, - filterFilter: false, - jsonFilter: false, - limitToFilter: false, - lowercaseFilter: false, - numberFilter: false, - orderByFilter: false, - uppercaseFilter: false - */ + function processQueue(state) { + var fn, promise, pending; - 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); + 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); + } + } } - /** - * @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. - *
    - * **Note**: If the array contains objects that reference themselves, filtering is not possible. - *
    - * @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 - - -
    - - - - - - - - -
    NamePhone
    {{friend.name}}{{friend.phone}}
    -
    -
    -
    -
    -
    - - - - - - -
    NamePhone
    {{friendObj.name}}{{friendObj.phone}}
    -
    - - 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'); - }); - -
    - */ - - function filterFilter() { - return function (array, expression, comparator, anyPropertyKey) { - if (!isArrayLike(array)) { - if (array == null) { - return array; + 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 { - throw minErr('filter')('notarray', 'Expected array but received: {0}', array); + exceptionHandler(errorMessage); } } + } + } - 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; + function scheduleProcessQueue(state) { + if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) { + if (queueSize === 0 && checkQueue.length === 0) { + nextTick(processChecks); } - - return Array.prototype.filter.call(array, predicateFn); - }; + checkQueue.push(state); + } + if (state.processScheduled || !state.pending) return; + state.processScheduled = true; + ++queueSize; + nextTick(function() { processQueue(state); }); } - // 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; - }; + 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); } - predicateFn = function predicateFn(item) { - if (shouldMatchPrimitives && !isObject(item)) { - return deepCompare(item, expression[anyPropertyKey], comparator, anyPropertyKey, false); + } + + 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); } - return deepCompare(item, expression, comparator, anyPropertyKey, matchAgainstAnyProp); - }; + } catch (e) { + doReject(e); + } - return predicateFn; + 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 deepCompare(actual, expected, comparator, anyPropertyKey, matchAgainstAnyProp, dontMatchWholeObject) { - var actualType = getTypeForFilter(actual); - var expectedType = getTypeForFilter(expected); + function rejectPromise(promise, reason) { + if (promise.$$state.status) return; + $$reject(promise, reason); + } - 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); - }); - } + function $$reject(promise, reason) { + promise.$$state.value = reason; + promise.$$state.status = 2; + scheduleProcessQueue(promise.$$state); + } - 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; - } + function notifyPromise(promise, progress) { + var callbacks = promise.$$state.pending; - 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); + 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); + } + } + }); } } - // 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 + * @ngdoc method + * @name $q#reject * @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. + * 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. * - * @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. + * 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); + * }); + * ``` * - * @example - - - -
    -
    - default currency symbol ($): {{amount | currency}}
    - custom currency identifier (USD$): {{amount | currency:"USD$"}}
    - no fractions (0): {{amount | currency:"USD$":0}} -
    -
    - - 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'); - }); - -
    + * @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`. */ - currencyFilter.$inject = ['$locale']; - function currencyFilter($locale) { - var formats = $locale.NUMBER_FORMATS; - return function (amount, currencySymbol, fractionSize) { - if (isUndefined(currencySymbol)) { - currencySymbol = formats.CURRENCY_SYM; - } + function reject(reason) { + var result = new Promise(); + rejectPromise(result, reason); + return result; + } - if (isUndefined(fractionSize)) { - fractionSize = formats.PATTERNS[1].maxFrac; - } + 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 + */ - // If the currency symbol is empty, trim whitespace around the symbol - var currencySymbolRe = !currencySymbol ? /\s*\u00A4\s*/g : /\u00A4/g; - // if null or undefined pass it through - return amount == null ? amount : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).replace(currencySymbolRe, currencySymbol); - }; + function when(value, callback, errback, progressBack) { + var result = new Promise(); + resolvePromise(result, value); + return result.then(callback, errback, progressBack); } /** - * @ngdoc filter - * @name number + * @ngdoc method + * @name $q#resolve * @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. + * 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 * - * @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 - - - -
    -
    - Default formatting: {{val | number}}
    - No fractions: {{val | number:0}}
    - Negative number: {{-val | number:4}} -
    -
    - - 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'); - }); - -
    + * @description + * Combines multiple promises into a single promise that is resolved when all of the input + * promises are resolved. + * + * @param {Array.|Object.} 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. */ - 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); - }; + 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; } /** - * 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/) + * @ngdoc method + * @name $q#race + * @kind function * - * @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` + * @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.|Object.} 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 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, ''); - } + function race(promises) { + var deferred = defer(); - // 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; + 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); } - // Count the number of leading zeros. - for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {/* empty */} + var promise = new Promise(); - 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); - } + function resolveFn(value) { + resolvePromise(promise, value); } - // 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; + function rejectFn(reason) { + rejectPromise(promise, reason); } - return { d: digits, e: exponent, i: numberOfIntegerDigits }; + resolver(resolveFn, rejectFn); + + return promise; } - /** - * 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; + // Let's make the instanceof operator work for promises, so that + // `new $q(fn) instanceof $q` would evaluate to true. + $Q.prototype = Promise.prototype; - // determine fractionSize if it is not specified; `+fractionSize` converts it to a number - fractionSize = isUndefined(fractionSize) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize; + $Q.defer = defer; + $Q.reject = reject; + $Q.when = when; + $Q.resolve = resolve; + $Q.all = all; + $Q.race = race; - // The index of the digit to where rounding is to occur - var roundAt = fractionSize + parsedNumber.i; - var digit = digits[roundAt]; + return $Q; +} - if (roundAt > 0) { - // Drop fractional digits beyond `roundAt` - digits.splice(Math.max(parsedNumber.i, roundAt)); +function isStateExceptionHandled(state) { + return !!state.pur; +} +function markQStateExceptionHandled(state) { + state.pur = true; +} +function markQExceptionHandled(q) { + markQStateExceptionHandled(q.$$state); +} - // 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; - } - } +/** @this */ +function $$RAFProvider() { //rAF + this.$get = ['$window', '$timeout', function($window, $timeout) { + var requestAnimationFrame = $window.requestAnimationFrame || + $window.webkitRequestAnimationFrame; - if (digit >= 5) { - if (roundAt - 1 < 0) { - for (var k = 0; k > roundAt; k--) { - digits.unshift(0); - parsedNumber.i++; + var cancelAnimationFrame = $window.cancelAnimationFrame || + $window.webkitCancelAnimationFrame || + $window.webkitCancelRequestAnimationFrame; + + var rafSupported = !!requestAnimationFrame; + var raf = rafSupported + ? function(fn) { + var id = requestAnimationFrame(fn); + return function() { + cancelAnimationFrame(id); + }; } - digits.unshift(1); - parsedNumber.i++; - } else { - digits[roundAt - 1]++; - } - } + : function(fn) { + var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666 + return function() { + $timeout.cancel(timer); + }; + }; - // 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++; - } - } + raf.supported = rafSupported; - /** - * 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) { + return raf; + }]; +} - if (!(isString(number) || isNumber(number)) || isNaN(number)) return ''; +/** + * 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. + */ - var isInfinity = !isFinite(number); - var isZero = false; - var numStr = Math.abs(number) + '', - formattedText = '', - parsedNumber; - if (isInfinity) { - formattedText = '\u221E'; - } else { - parsedNumber = parse(numStr); +/** + * @ngdoc provider + * @name $rootScopeProvider + * @description + * + * Provider for the $rootScope service. + */ - roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac); +/** + * @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. + */ - 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++; - } +/** + * @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; - // extract decimals digits - if (integerLen > 0) { - decimals = digits.splice(integerLen, digits.length); - } else { - decimals = digits; - digits = [0]; - } + this.digestTtl = function(value) { + if (arguments.length) { + TTL = value; + } + return TTL; + }; - // 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); + 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; + this.$$suspended = false; + } + ChildScope.prototype = parent; + return ChildScope; + } - // append the decimal digits - if (decimals.length) { - formattedText += decimalSep + decimals.join(''); - } + this.$get = ['$exceptionHandler', '$parse', '$browser', + function($exceptionHandler, $parse, $browser) { - if (exponent) { - formattedText += 'e+' + exponent; - } - } - if (number < 0 && !isZero) { - return pattern.negPre + formattedText + pattern.negSuf; - } else { - return pattern.posPre + formattedText + pattern.posSuf; + function destroyChildScope($event) { + $event.currentScope.$$destroyed = true; } - } - function padNumber(num, digits, trim, negWrap) { - var neg = ''; - if (num < 0 || negWrap && num <= 0) { - if (negWrap) { - num = -num + 1; - } else { - num = -num; - neg = '-'; + 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; } - num = '' + num; - while (num.length < digits) { - num = ZERO_CHAR + num; - }if (trim) { - num = num.substr(num.length - digits); + + /** + * @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.=} providers Map of service factory which need to be + * provided for the current scope. Defaults to {@link ng}. + * @param {Object.=} 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.$$suspended = false; + this.$$listeners = {}; + this.$$listenerCount = {}; + this.$$watchersCount = 0; + this.$$isolateBindings = null; } - 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); - }; - } + /** + * @ngdoc property + * @name $rootScope.Scope#$id + * + * @description + * Unique scope ID (monotonically increasing) useful for debugging. + */ - 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); + /** + * @ngdoc property + * @name $rootScope.Scope#$parent + * + * @description + * Reference to the parent scope. + */ - return formats[get][value]; - }; - } + /** + * @ngdoc property + * @name $rootScope.Scope#$root + * + * @description + * Reference to the root scope. + */ - function timeZoneGetter(date, formats, offset) { - var zone = -1 * offset; - var paddedZone = zone >= 0 ? '+' : ''; + 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(isolate, parent) { + var child; - paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) + padNumber(Math.abs(zone % 60), 2); + parent = parent || this; - return paddedZone; - } + 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; + } - 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); - } + // 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); - function getThursdayThisWeek(datetime) { - return new Date(datetime.getFullYear(), datetime.getMonth(), - // 4 = index of Thursday - datetime.getDate() + (4 - datetime.getDay())); - } + return child; + }, - function weekGetter(size) { - return function (date) { - var firstThurs = getFirstThursdayOfYear(date.getFullYear()), - thisThurs = getThursdayThisWeek(date); + /** + * @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); - var diff = +thisThurs - +firstThurs, - result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week + // Run the digest but since food has not changed count will still be zero + scope.$digest(); + expect(scope.foodCounter).toEqual(0); - return padNumber(result, size); - }; - } + // Update food and run digest. Now the counter will increment + food = 'cheeseburger'; + scope.$digest(); + expect(scope.foodCounter).toEqual(1); - function ampmGetter(date, formats) { - return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[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(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 + }; - function eraGetter(date, formats) { - return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1]; - } + lastDirtyWatch = null; - function longEraGetter(date, formats) { - return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1]; - } + 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); - 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 - }; + return function deregisterWatch() { + var index = arrayRemove(array, watcher); + if (index >= 0) { + incrementWatchersCount(scope, -1); + if (index < array.$$digestWatchIndex) { + array.$$digestWatchIndex--; + } + } + lastDirtyWatch = null; + }; + }, - var DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/, - NUMBER_STRING = /^-?\d+$/; + /** + * @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. + * + * @param {Array.} 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` + * The `scope` refers to the current scope. + * @returns {function()} Returns a de-registration function for all listeners. + */ + $watchGroup: function(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; + }; + } - /** - * @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 - - - {{1288323623006 | date:'medium'}}: - {{1288323623006 | date:'medium'}}
    - {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}: - {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}
    - {{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}: - {{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}
    - {{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}: - {{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}
    -
    - - 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)/); - }); - -
    - */ - 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; - } + 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); + }); + } - return function (date, format, timezone) { - var text = '', - parts = [], - fn, - match; + forEach(watchExpressions, function(expr, i) { + var unwatchFn = self.$watch(expr, function watchGroupSubAction(value) { + newValues[i] = value; + if (!changeReactionScheduled) { + changeReactionScheduled = true; + self.$evalAsync(watchGroupAction); + } + }); + deregisterFns.push(unwatchFn); + }); - format = format || 'mediumDate'; - format = $locale.DATETIME_FORMATS[format] || format; - if (isString(date)) { - date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date); - } + function watchGroupAction() { + changeReactionScheduled = false; - if (isNumber(date)) { - date = new Date(date); - } + try { + if (firstRun) { + firstRun = false; + listener(newValues, newValues, self); + } else { + listener(newValues, oldValues, self); + } + } finally { + for (var i = 0; i < watchExpressions.length; i++) { + oldValues[i] = newValues[i]; + } + } + } - if (!isDate(date) || !isFinite(date.getTime())) { - return date; - } + return function deregisterWatchGroup() { + while (deregisterFns.length) { + deregisterFns.shift()(); + } + }; + }, - while (format) { - match = DATE_FORMATS_SPLIT.exec(format); - if (match) { - parts = concat(parts, match, 1); - format = parts.pop(); - } else { - parts.push(format); - format = null; + + /** + * @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(obj, listener) { + // Mark the interceptor as + // ... $$pure when literal since the instance will change when any input changes + $watchCollectionInterceptor.$$pure = $parse(obj).literal; + // ... $stateful when non-literal since we must read the state of the collection + $watchCollectionInterceptor.$stateful = !$watchCollectionInterceptor.$$pure; + + 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; } - } - 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, '\''); - }); + function $watchCollectionAction() { + if (initRun) { + initRun = false; + listener(newValue, newValue, self); + } else { + listener(newValue, veryOldValue, self); + } - return text; - }; - } + // 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]; + } + } + } + } + } - /** - * @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 - - -
    {{ {'name':'value'} | json }}
    -
    {{ {'name':'value'} | json:4 }}
    -
    - - 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}/); - }); - -
    - * - */ - function jsonFilter() { - return function (object, spacing) { - if (isUndefined(spacing)) { - spacing = 2; - } - return toJson(object, spacing); - }; - } + return this.$watch(changeDetector, $watchCollectionAction); + }, - /** - * @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 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; - /** - * @ngdoc filter - * @name uppercase - * @kind function - * @description - * Converts string to uppercase. - * @example - - - -
    - -

    {{title}}

    - -

    {{title | uppercase}}

    -
    -
    -
    - */ - var uppercaseFilter = valueFn(uppercase); + expect(scope.counter).toEqual(0); + scope.$watch('name', function(newValue, oldValue) { + scope.counter = scope.counter + 1; + }); + expect(scope.counter).toEqual(0); - /** - * @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 - - - -
    - -

    Output numbers: {{ numbers | limitTo:numLimit }}

    - -

    Output letters: {{ letters | limitTo:letterLimit }}

    - -

    Output long number: {{ longNumber | limitTo:longNumberLimit }}

    -
    -
    - - 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'); - }); - -
    - */ - 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; + 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() { + var watch, value, last, fn, get, + watchers, + dirty, ttl = TTL, + next, current, target = asyncQueue.length ? $rootScope : 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.$$suspended && 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 + // (though it differs due to having the extra check for $$suspended and does not + // check $$listenerCount) + if (!(next = ((!current.$$suspended && current.$$watchersCount && current.$$childHead) || + (current !== target && current.$$nextSibling)))) { + while (current !== target && !(next = current.$$nextSibling)) { + current = current.$parent; + } + } + } while ((current = next)); - if (isNumber(input)) input = input.toString(); - if (!isArrayLike(input)) return input; + // `break traverseScopesLoop;` takes us to here - begin = !begin || isNaN(begin) ? 0 : toInt(begin); - begin = begin < 0 ? Math.max(0, input.length + begin) : begin; + 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); + } - 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); + } 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; - function sliceFn(input, begin, end) { - if (isString(input)) return input.slice(begin, end); + // Check for changes to browser url that happened during the $digest + // (for which no event is fired; e.g. via `history.pushState()`) + $browser.$$checkUrlChange(); + }, - return slice.call(input, begin, end); - } + /** + * @ngdoc method + * @name $rootScope.Scope#$suspend + * @kind function + * + * @description + * Suspend watchers of this scope subtree so that they will not be invoked during digest. + * + * This can be used to optimize your application when you know that running those watchers + * is redundant. + * + * **Warning** + * + * Suspending scopes from the digest cycle can have unwanted and difficult to debug results. + * Only use this approach if you are confident that you know what you are doing and have + * ample tests to ensure that bindings get updated as you expect. + * + * Some of the things to consider are: + * + * * Any external event on a directive/component will not trigger a digest while the hosting + * scope is suspended - even if the event handler calls `$apply()` or `$rootScope.$digest()`. + * * Transcluded content exists on a scope that inherits from outside a directive but exists + * as a child of the directive's containing scope. If the containing scope is suspended the + * transcluded scope will also be suspended, even if the scope from which the transcluded + * scope inherits is not suspended. + * * Multiple directives trying to manage the suspended status of a scope can confuse each other: + * * A call to `$suspend()` on an already suspended scope is a no-op. + * * A call to `$resume()` on a non-suspended scope is a no-op. + * * If two directives suspend a scope, then one of them resumes the scope, the scope will no + * longer be suspended. This could result in the other directive believing a scope to be + * suspended when it is not. + * * If a parent scope is suspended then all its descendants will be also excluded from future + * digests whether or not they have been suspended themselves. Note that this also applies to + * isolate child scopes. + * * Calling `$digest()` directly on a descendant of a suspended scope will still run the watchers + * for that scope and its descendants. When digesting we only check whether the current scope is + * locally suspended, rather than checking whether it has a suspended ancestor. + * * Calling `$resume()` on a scope that has a suspended ancestor will not cause the scope to be + * included in future digests until all its ancestors have been resumed. + * * Resolved promises, e.g. from explicit `$q` deferreds and `$http` calls, trigger `$apply()` + * against the `$rootScope` and so will still trigger a global digest even if the promise was + * initiated by a component that lives on a suspended scope. + */ + $suspend: function() { + this.$$suspended = true; + }, - /** - * @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: ... - * } - * ``` - * **Note:** `null` values use `'null'` as their type. - * 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.
    - * (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.
    - * (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, sorts values of different types by type and puts - * `undefined` and `null` values at the end of the sorted list. - * - * More specifically, it follows these steps to determine the relative order of items: - * - * 1. If the compared values are of different types: - * - If one of the values is undefined, consider it "greater than" the other. - * - Else if one of the values is null, consider it "greater than" the other. - * - Else 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` and `undefined` are considered "greater than" - * any other value (with undefined "greater than" null). This effectively means that `null` - * and `undefined` values end up at the end of a list sorted in ascending order. - * **Note:** `null` values use `'null'` as their type to be able to distinguish them from objects. - * - * @param {Array|ArrayLike} collection - The collection (array or array-like object) to sort. - * @param {(Function|string|Array.)=} 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 AngularJS 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.
    - * (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`.)
    - * 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. - * - - -
    - - - - - - - - - - - -
    NamePhone NumberAge
    {{friend.name}}{{friend.phone}}{{friend.age}}
    -
    -
    - - 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} - ]; - }]); - - - .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; - } - - - // 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'); - }); - -
    - *
    - * - * @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. - * - - -
    -
    Sort by = {{propertyName}}; reverse = {{reverse}}
    -
    - -
    - - - - - - - - - - - -
    - - - - - - - - -
    {{friend.name}}{{friend.phone}}{{friend.age}}
    -
    -
    - - 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; - }; - }]); - - - .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 - } - - - // 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'); - }); - -
    - *
    - * - * @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')`.) - * - - -
    -
    Sort by = {{propertyName}}; reverse = {{reverse}}
    -
    - -
    - - - - - - - - - - - -
    - - - - - - - - -
    {{friend.name}}{{friend.phone}}{{friend.age}}
    -
    -
    - - 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); - }; - }]); - - - .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 - } - - - // 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'); - }); - -
    - *
    - * - * @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.) - * - - -
    -
    -

    Locale-sensitive Comparator

    - - - - - - - - - -
    NameFavorite Letter
    {{friend.name}}{{friend.favoriteLetter}}
    -
    -
    -

    Default Comparator

    - - - - - - - - - -
    NameFavorite Letter
    {{friend.name}}{{friend.favoriteLetter}}
    -
    -
    -
    - - 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); - }; - }]); - - - .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; - } - - - // 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'); - }); - -
    - * - */ - orderByFilter.$inject = ['$parse']; - function orderByFilter($parse) { - return function (array, sortPredicate, reverseOrder, compareFn) { + /** + * @ngdoc method + * @name $rootScope.Scope#$isSuspended + * @kind function + * + * @description + * Call this method to determine if this scope has been explicitly suspended. It will not + * tell you whether an ancestor has been suspended. + * To determine if this scope will be excluded from a digest triggered at the $rootScope, + * for example, you must check all its ancestors: + * + * ``` + * function isExcludedFromDigest(scope) { + * while(scope) { + * if (scope.$isSuspended()) return true; + * scope = scope.$parent; + * } + * return false; + * ``` + * + * Be aware that a scope may not be included in digests if it has a suspended ancestor, + * even if `$isSuspended()` returns false. + * + * @returns true if the current scope has been suspended. + */ + $isSuspended: function() { + return this.$$suspended; + }, - if (array == null) return array; - if (!isArrayLike(array)) { - throw minErr('orderBy')('notarray', 'Expected array but received: {0}', array); - } + /** + * @ngdoc method + * @name $rootScope.Scope#$resume + * @kind function + * + * @description + * Resume watchers of this scope subtree in case it was suspended. + * + * See {@link $rootScope.Scope#$suspend} for information about the dangers of using this approach. + */ + $resume: function() { + this.$$suspended = false; + }, - if (!isArray(sortPredicate)) { - sortPredicate = [sortPredicate]; - } - if (sortPredicate.length === 0) { - sortPredicate = ['+']; - } + /** + * @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. + */ - var predicates = processPredicates(sortPredicate); + /** + * @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() { + // We can't destroy a scope that has been already destroyed. + if (this.$$destroyed) return; + var parent = this.$parent; - var descending = reverseOrder ? -1 : 1; + this.$broadcast('$destroy'); + this.$$destroyed = true; - // Define the `compare()` function. Use a default comparator if none is specified. - var compare = isFunction(compareFn) ? compareFn : defaultCompare; + if (this === $rootScope) { + //Remove handlers attached to window when $rootScope is removed + $browser.$$applicationDestroyed(); + } - // 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; - }); + incrementWatchersCount(this, -this.$$watchersCount); + for (var eventName in this.$$listenerCount) { + decrementListenerCount(this, this.$$listenerCount[eventName], eventName); + } - return array; + // 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; - 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); - }) - }; - } + // 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 = {}; - 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; - } + // 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 AngularJS + * 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 AngularJS 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(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 AngularJS 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(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(); + } + }, null, '$evalAsync'); } - return (compare(v1.tieBreaker, v2.tieBreaker) || defaultCompare(v1.tieBreaker, v2.tieBreaker)) * descending; - } - }; + asyncQueue.push({scope: this, fn: $parse(expr), locals: locals}); + }, - function processPredicates(sortPredicates) { - return sortPredicates.map(function (predicate) { - var descending = 1, - get = identity; + $$postDigest: function(fn) { + postDigestQueue.push(fn); + }, - 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); + /** + * @ngdoc method + * @name $rootScope.Scope#$apply + * @kind function + * + * @description + * `$apply()` is used to execute an expression in AngularJS from outside of the AngularJS + * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries). + * Because we are calling into the AngularJS 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 AngularJS 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(expr) { + try { + beginPhase('$apply'); + try { + return this.$eval(expr); + } finally { + clearPhase(); } - if (predicate !== '') { - get = $parse(predicate); - if (get.constant) { - var key = get(); - get = function get(value) { - return value[key]; - }; - } + } catch (e) { + $exceptionHandler(e); + } finally { + try { + $rootScope.$digest(); + } catch (e) { + $exceptionHandler(e); + // eslint-disable-next-line no-unsafe-finally + throw e; } } - 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; - } - } + /** + * @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 AngularJS 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(expr) { + var scope = this; + if (expr) { + applyAsyncQueue.push($applyAsyncExpression); + } + expr = $parse(expr); + scheduleApplyAsync(); - 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; - } + function $applyAsyncExpression() { + scope.$eval(expr); + } + }, - return value; - } + /** + * @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(name, listener) { + var namedListeners = this.$$listeners[name]; + if (!namedListeners) { + this.$$listeners[name] = namedListeners = []; + } + namedListeners.push(listener); - function getPredicateValue(value, index) { - var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); - if (value === null) { - type = 'null'; - } else if (type === 'object') { - value = objectValue(value); - } - return { value: value, type: type, index: index }; - } + 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); + } + }; + }, - 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; + /** + * @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(name, args) { + var empty = [], + namedListeners, + scope = this, + stopPropagation = false, + event = { + name: name, + targetScope: scope, + stopPropagation: function() {stopPropagation = true;}, + preventDefault: function() { + event.defaultPrevented = true; + }, + defaultPrevented: false + }, + listenerArgs = concat([event], arguments, 1), + i, length; - 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; - } + do { + namedListeners = scope.$$listeners[name] || empty; + event.currentScope = scope; + for (i = 0, length = namedListeners.length; i < length; i++) { - if (value1 !== value2) { - result = value1 < value2 ? -1 : 1; - } - } else { - result = type1 === 'undefined' ? 1 : type2 === 'undefined' ? -1 : type1 === 'null' ? 1 : type2 === 'null' ? -1 : type1 < type2 ? -1 : 1; - } + // 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); - return result; - } - } + event.currentScope = null; - function ngDirective(directive) { - if (isFunction(directive)) { - directive = { - link: directive - }; - } - directive.restrict = directive.restrict || 'AC'; - return valueFn(directive); - } + return event; + }, - /** - * @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 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(name, args) { + var target = this, + current = target, + next = target, + event = { + name: name, + targetScope: target, + preventDefault: function() { + 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; } - }); - }; - } - } - }); - /** - * @ngdoc directive - * @name ngHref - * @restrict A - * @priority 99 - * - * @description - * Using AngularJS markup like `{{hash}}` in an href attribute will - * make the link go to the wrong URL if the user clicks it before - * AngularJS has a chance to replace the `{{hash}}` markup with its - * value. Until AngularJS 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 - * link1 - * ``` - * - * The correct way to write it: - * ```html - * link1 - * ``` - * - * @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: - - -
    - link 1 (link, don't reload)
    - link 2 (link, don't reload)
    - link 3 (link, reload!)
    - anchor (link, don't reload)
    - anchor (no link)
    - link (link, change location) -
    - - 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 AngularJS 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 AngularJS 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'); - }); - -
    - */ + try { + listeners[i].apply(null, listenerArgs); + } catch (e) { + $exceptionHandler(e); + } + } - /** - * @ngdoc directive - * @name ngSrc - * @restrict A - * @priority 99 - * - * @description - * Using AngularJS markup like `{{hash}}` in a `src` attribute doesn't - * work right: The browser will fetch from the URL with the literal - * text `{{hash}}` until AngularJS replaces the expression inside - * `{{hash}}`. The `ngSrc` directive solves this problem. - * - * The buggy way to write it: - * ```html - * Description - * ``` - * - * The correct way to write it: - * ```html - * Description - * ``` - * - * @element IMG - * @param {template} ngSrc any string which can contain `{{}}` markup. - */ + // 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 and + // does not check $$suspended) + if (!(next = ((current.$$listenerCount[name] && current.$$childHead) || + (current !== target && current.$$nextSibling)))) { + while (current !== target && !(next = current.$$nextSibling)) { + current = current.$parent; + } + } + } - /** - * @ngdoc directive - * @name ngSrcset - * @restrict A - * @priority 99 - * - * @description - * Using AngularJS markup like `{{hash}}` in a `srcset` attribute doesn't - * work right: The browser will fetch from the URL with the literal - * text `{{hash}}` until AngularJS replaces the expression inside - * `{{hash}}`. The `ngSrcset` directive solves this problem. - * - * The buggy way to write it: - * ```html - * Description - * ``` - * - * The correct way to write it: - * ```html - * Description - * ``` - * - * @element IMG - * @param {template} ngSrcset any string which can contain `{{}}` markup. - */ + event.currentScope = null; + return event; + } + }; - /** - * @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 - - -
    - -
    - - 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(); - }); - -
    - * - * @element INPUT - * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy, - * then the `disabled` attribute will be set on the element - */ + var $rootScope = new Scope(); - /** - * @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 - - -
    - -
    - - 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(); - }); - -
    - * - * @element INPUT - * @param {expression} ngChecked If the {@link guide/expression expression} is truthy, - * then the `checked` attribute will be set on the element - */ + //The internal queues. Expose them on the $rootScope for debugging/testing purposes. + var asyncQueue = $rootScope.$$asyncQueue = []; + var postDigestQueue = $rootScope.$$postDigestQueue = []; + var applyAsyncQueue = $rootScope.$$applyAsyncQueue = []; - /** - * @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 - - -
    - -
    - - 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(); - }); - -
    - * - * @element INPUT - * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy, - * then special attribute "readonly" will be set on the element - */ + var postDigestQueuePosition = 0; - /** - * @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. - * - *
    - * **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. - *
    - * - * @example - - -
    - -
    - - 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(); - }); - -
    - * - * @element OPTION - * @param {expression} ngSelected If the {@link guide/expression expression} is truthy, - * then special attribute "selected" will be set on the element - */ + return $rootScope; - /** - * @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 - - -
    -
    - List -
      -
    • Apple
    • -
    • Orange
    • -
    • Durian
    • -
    -
    -
    - - 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(); - }); - -
    - * - * @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 = {}; + function beginPhase(phase) { + if ($rootScope.$$phase) { + throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase); + } + + $rootScope.$$phase = phase; + } - // boolean attrs are evaluated - forEach(BOOLEAN_ATTR, function (propName, attrName) { - // binding to multiple is not supported - if (propName === 'multiple') return; + function clearPhase() { + $rootScope.$$phase = null; + } - function defaultLinkFn(scope, element, attr) { - scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) { - attr.$set(attrName, !!value); - }); + function incrementWatchersCount(current, count) { + do { + current.$$watchersCount += count; + } while ((current = current.$parent)); } - var normalized = directiveNormalize('ng-' + attrName); - var linkFn = defaultLinkFn; + function decrementListenerCount(current, count, name) { + do { + current.$$listenerCount[name] -= count; - 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); + if (current.$$listenerCount[name] === 0) { + delete current.$$listenerCount[name]; } - }; + } while ((current = current.$parent)); } - 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; - } - } + /** + * function used as an initial value for watchers. + * because it's unique we can easily tell it apart from other values + */ + function initWatchVal() {} - scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) { - attr.$set(ngAttr, value); - }); + function flushApplyAsync() { + while (applyAsyncQueue.length) { + try { + applyAsyncQueue.shift()(); + } catch (e) { + $exceptionHandler(e); } - }; - }; - }); + } + applyAsyncId = null; + } - // 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; - } + function scheduleApplyAsync() { + if (applyAsyncId === null) { + applyAsyncId = $browser.defer(function() { + $rootScope.$apply(flushApplyAsync); + }, null, '$applyAsync'); + } + } + }]; +} - attr.$observe(normalized, function (value) { - if (!value) { - if (attrName === 'href') { - attr.$set(name, null); - } - return; - } +/** + * @ngdoc service + * @name $rootElement + * + * @description + * The root element of AngularJS 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()`. + */ - 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 might have sanitized the url. - if (msie && propName) element.prop(propName, attr[name]); - }); - } - }; - }; - }); +// the implementation is in angular.bootstrap - /* global -nullFormCtrl, -PENDING_CLASS, -SUBMITTED_CLASS - */ - var nullFormCtrl = { - $addControl: noop, - $getControls: valueFn([]), - $$renameControl: nullFormRenameControl, - $removeControl: noop, - $setValidity: noop, - $setDirty: noop, - $setPristine: noop, - $setSubmitted: noop, - $$setSubmitted: noop - }, - PENDING_CLASS = 'ng-pending', - SUBMITTED_CLASS = 'ng-submitted'; +/** + * @this + * @description + * Private service to sanitize uris for links and images. Used by $compile and $sanitize. + */ +function $$SanitizeUriProvider() { - function nullFormRenameControl(control, name) { - control.$name = name; - } + var aHrefSanitizationWhitelist = /^\s*(https?|s?ftp|mailto|tel|file):/, + imgSrcSanitizationWhitelist = /^\s*((https?|ftp|file|blob):|data:image\/)/; /** - * @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 + * 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 anchor links. + * + * Any url due to be assigned to an `a[href]` attribute via interpolation is marked as requiring + * the $sce.URL security context. When interpolation occurs a call is made to `$sce.trustAsUrl(url)` + * which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize the potentially malicious URL. + * + * If the URL matches the `aHrefSanitizationWhitelist` regular expression, it is returned unchanged. * + * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written + * to the DOM it is inactive and potentially malicious code will not be executed. + * + * @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 - * `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. + * Retrieves or overrides the default regular expression that is used for whitelisting of safe + * urls during img[src] sanitization. * - * Each {@link ng.directive:form form} directive creates an instance - * of `FormController`. + * The sanitization is a security measure aimed at prevent XSS attacks via HTML image src links. * + * Any URL due to be assigned to an `img[src]` attribute via interpolation is marked as requiring + * the $sce.MEDIA_URL security context. When interpolation occurs a call is made to + * `$sce.trustAsMediaUrl(url)` which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize + * the potentially malicious URL. + * + * If the URL matches the `aImgSanitizationWhitelist` regular expression, it is returned unchanged. + * + * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written + * to the DOM it is inactive and potentially malicious code will not be executed. + * + * @param {RegExp=} regexp New regexp to whitelist urls with. + * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for + * chaining otherwise. */ - //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.imgSrcSanitizationWhitelist = function(regexp) { + if (isDefined(regexp)) { + imgSrcSanitizationWhitelist = regexp; + return this; + } + return imgSrcSanitizationWhitelist; + }; - this.$$element = $element; - this.$$animate = $animate; + this.$get = function() { + return function sanitizeUri(uri, isMediaUrl) { + // if (!uri) return uri; + var regex = isMediaUrl ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist; + var normalizedVal = urlResolve(uri && uri.trim()).href; + if (normalizedVal !== '' && !normalizedVal.match(regex)) { + return 'unsafe:' + normalizedVal; + } + return uri; + }; + }; +} - setupValidity(this); - } +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * 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? * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - 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(); - }); - }, +/* exported $SceProvider, $SceDelegateProvider */ - /** - * @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(); - }); - }, +var $sceMinErr = minErr('$sce'); - /** - * @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); +var SCE_CONTEXTS = { + // HTML is used when there's HTML rendered (e.g. ng-bind-html, iframe srcdoc binding). + HTML: 'html', - if (control.$name) { - this[control.$name] = control; - } + // Style statements or stylesheets. Currently unused in AngularJS. + CSS: 'css', - control.$$parentForm = this; - }, + // An URL used in a context where it refers to the source of media, which are not expected to be run + // as scripts, such as an image, audio, video, etc. + MEDIA_URL: 'mediaUrl', - /** - * @ngdoc method - * @name form.FormController#$getControls - * @returns {Array} the controls that are currently part of this form - * - * @description - * This method returns a **shallow copy** of the controls that are currently part of this form. - * The controls can be instances of {@link form.FormController `FormController`} - * ({@link ngForm "child-forms"}) and of {@link ngModel.NgModelController `NgModelController`}. - * If you need access to the controls of child-forms, you have to call `$getControls()` - * recursively on them. - * This can be used for example to iterate over all controls to validate them. - * - * The controls can be accessed normally, but adding to, or removing controls from the array has - * no effect on the form. Instead, use {@link form.FormController#$addControl `$addControl()`} and - * {@link form.FormController#$removeControl `$removeControl()`} for this use-case. - * Likewise, adding a control to, or removing a control from the form is not reflected - * in the shallow copy. That means you should get a fresh copy from `$getControls()` every time - * you need access to the controls. - */ - $getControls: function $getControls() { - return shallowCopy(this.$$controls); - }, + // An URL used in a context where it does not refer to a resource that loads code. + // A value that can be trusted as a URL can also trusted as a MEDIA_URL. + URL: 'url', - // Private API: rename a form control - $$renameControl: function $$renameControl(control, newName) { - var oldName = control.$name; + // 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) + // A value that can be trusted as a RESOURCE_URL, can also trusted as a URL and a MEDIA_URL. + RESOURCE_URL: 'resourceUrl', - if (this[oldName] === control) { - delete this[oldName]; - } - this[newName] = control; - control.$name = newName; - }, + // Script. Currently unused in AngularJS. + JS: 'js' +}; - /** - * @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); +// Helper functions follow. - arrayRemove(this.$$controls, control); - control.$$parentForm = nullFormCtrl; - }, +var UNDERSCORE_LOWERCASE_REGEXP = /_([a-z])/g; - /** - * @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(); - }, +function snakeToCamel(name) { + return name + .replace(UNDERSCORE_LOWERCASE_REGEXP, fnCamelCaseReplace); +} - /** - * @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(); - }); - }, +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'); + } +} - /** - * @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. This will also set `$submitted` on all child and - * parent forms of the form. - */ - $setSubmitted: function $setSubmitted() { - var rootForm = this; - while (rootForm.$$parentForm && rootForm.$$parentForm !== nullFormCtrl) { - rootForm = rootForm.$$parentForm; - } - rootForm.$$setSubmitted(); - }, +function adjustMatchers(matchers) { + var adjustedMatchers = []; + if (isDefined(matchers)) { + forEach(matchers, function(matcher) { + adjustedMatchers.push(adjustMatcher(matcher)); + }); + } + return adjustedMatchers; +} - $$setSubmitted: function $$setSubmitted() { - this.$$animate.addClass(this.$$element, SUBMITTED_CLASS); - this.$submitted = true; - forEach(this.$$controls, function (control) { - if (control.$$setSubmitted) { - control.$$setSubmitted(); - } - }); - } - }; + +/** + * @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. + * + *
    + * 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. + *
    + * + * 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 AngularJS, read the main page for {@link ng.$sce + * Strict Contextual Escaping (SCE)}. + * + * **Example**: Consider the following case. + * + * - 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 form.FormController#$setValidity + * @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 - * 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. + * 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. + * + *
    + * **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. + *
    */ - 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]; - } + this.resourceUrlWhitelist = function(value) { + if (arguments.length) { + resourceUrlWhitelist = adjustMatchers(value); } - }); + return resourceUrlWhitelist; + }; /** - * @ngdoc directive - * @name ngForm - * @restrict EAC + * @ngdoc method + * @name $sceDelegateProvider#resourceUrlBlacklist + * @kind function * - * @description - * Helper directive that makes it possible to create control groups inside a - * {@link ng.directive:form `form`} directive. - * These "child forms" can be used, for example, to determine the validity of a sub-group of - * controls. + * @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.

    + * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items + * allowed in this array.

    + * 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. + *

    + * Finally, **the blacklist overrides the whitelist** and has the final say. * - *

    - * **Note**: `ngForm` cannot be used as a replacement for `
    `, because it lacks its - * [built-in HTML functionality](https://html.spec.whatwg.org/#the-form-element). - * Specifically, you cannot submit `ngForm` like a `` tag. That means, - * you cannot send data to the server with `ngForm`, or integrate it with - * {@link ng.directive:ngSubmit `ngSubmit`}. - *
    + * @return {Array} The currently set blacklist array. * - * @param {string=} ngForm|name Name of the form. If specified, the form controller will - * be published into the related scope, under this name. + * @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.) */ - /** - * @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 AngularJS, 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 `` elements, so - * AngularJS 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 AngularJS 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, AngularJS prevents the default action (form submission to the server) unless the - * `` 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: - * - *
    -  * //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;
    -  * }
    -  * 
    - * - * @example - - - - - - userType: - Required!
    - userType = {{userType}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    - -
    - - 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'); - }); - -
    - * - * @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; - } - }]; + this.resourceUrlBlacklist = function(value) { + if (arguments.length) { + resourceUrlBlacklist = adjustMatchers(value); + } + return resourceUrlBlacklist; }; - var formDirective = formDirectiveFactory(); - var ngFormDirective = formDirectiveFactory(true); + this.$get = ['$injector', '$$sanitizeUri', function($injector, $$sanitizeUri) { - // 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; + var htmlSanitizer = function htmlSanitizer(html) { + throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.'); + }; - 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; - } + if ($injector.has('$sanitize')) { + htmlSanitizer = $injector.get('$sanitize'); + } - toggleValidationCss(this, validationErrorKey, combinedState); - this.$$parentForm.$setValidity(validationErrorKey, combinedState, this); - }; - function createAndSet(ctrl, name, value, controller) { - if (!ctrl[name]) { - ctrl[name] = {}; + function matchUrl(matcher, parsedUrl) { + if (matcher === 'self') { + return urlIsSameOrigin(parsedUrl) || urlIsSameOriginAsBaseUrl(parsedUrl); + } else { + // definitely a regex. See adjustMatchers() + return !!matcher.exec(parsedUrl.href); } - set(ctrl[name], value, controller); } - function unsetAndCleanup(ctrl, name, value, controller) { - if (ctrl[name]) { - unset(ctrl[name], value, controller); + 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 (isObjectEmpty(ctrl[name])) { - ctrl[name] = undefined; + 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 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 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; } - function toggleValidationCss(ctrl, validationErrorKey, isValid) { - validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : ''; + var trustedValueHolderBase = generateHolderType(), + byType = {}; - cachedToggleClass(ctrl, VALID_CLASS + validationErrorKey, isValid === true); - cachedToggleClass(ctrl, INVALID_CLASS + validationErrorKey, isValid === false); - } - } + byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.MEDIA_URL] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.URL] = generateHolderType(byType[SCE_CONTEXTS.MEDIA_URL]); + byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase); + byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]); - function isObjectEmpty(obj) { - if (obj) { - for (var prop in obj) { - if (obj.hasOwnProperty(prop)) { - return false; - } + /** + * @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); } - 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] + * @ngdoc method + * @name $sceDelegate#valueOf * * @description - * Standard HTML text input with AngularJS data binding, inherited by most of the `input` elements. - * - * - * @param {string} ngModel Assignable AngularJS 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 AngularJS 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$')`.
    - * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. - * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input. - * This parameter is ignored for input[type=password] controls, which will never trim the - * input. - * - * @example - - - -
    - -
    - - Required! - - Single word only! -
    - text = {{example.text}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    -
    -
    - - 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'); - }); - -
    + * 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. */ - 'text': textInputType, + function valueOf(maybeTrusted) { + if (maybeTrusted instanceof trustedValueHolderBase) { + return maybeTrusted.$$unwrapTrustedValue(); + } else { + return maybeTrusted; + } + } /** - * @ngdoc input - * @name input[date] + * @ngdoc method + * @name $sceDelegate#getTrusted * * @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 AngularJS 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. + * Given an object and a security context in which to assign it, returns a value that's safe to + * use in this context, which was represented by the parameter. To do so, this function either + * unwraps the safe type it has been given (for instance, a {@link ng.$sceDelegate#trustAs + * `$sceDelegate.trustAs`} result), or it might try to sanitize the value given, depending on + * the context and sanitizer availablility. + * + * The contexts that can be sanitized are $sce.MEDIA_URL, $sce.URL and $sce.HTML. The first two are available + * by default, and the third one relies on the `$sanitize` service (which may be loaded through + * the `ngSanitize` module). Furthermore, for $sce.RESOURCE_URL context, a plain string may be + * accepted if the resource url policy defined by {@link ng.$sceDelegateProvider#resourceUrlWhitelist + * `$sceDelegateProvider.resourceUrlWhitelist`} and {@link ng.$sceDelegateProvider#resourceUrlBlacklist + * `$sceDelegateProvider.resourceUrlBlacklist`} accepts that resource. + * + * This function will throw if the safe type isn't appropriate for this context, or if the + * value given cannot be accepted in the context (which might be caused by sanitization not + * being available, or the value not being recognized as safe). * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + *
    + * Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting + * (XSS) vulnerability in your application. + *
    * - * @example - - - -
    - - -
    - - Required! - - Not a valid date! -
    - value = {{example.value | date: "yyyy-MM-dd"}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    -
    -
    - - 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); + * @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(); + } + + // If maybeTrusted is a trusted class instance but not of the correct trusted type + // then unwrap it and allow it to pass through to the rest of the checks + if (isFunction(maybeTrusted.$$unwrapTrustedValue)) { + maybeTrusted = maybeTrusted.$$unwrapTrustedValue(); + } + + // If we get here, then we will either sanitize the value or throw an exception. + if (type === SCE_CONTEXTS.MEDIA_URL || type === SCE_CONTEXTS.URL) { + // we attempt to sanitize non-resource URLs + return $$sanitizeUri(maybeTrusted.toString(), type === SCE_CONTEXTS.MEDIA_URL); + } else if (type === SCE_CONTEXTS.RESOURCE_URL) { + if (isResourceUrlAllowedByPolicy(maybeTrusted)) { + return maybeTrusted; + } else { + throw $sceMinErr('insecurl', + 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}', + maybeTrusted.toString()); } - 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'); - }); - -
    + } 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: + * + * ``` + * + *
    + * ``` + * + * 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, AngularJS 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. + * `
    `) just works (remember to include the + * `ngSanitize` module). 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. + * + * + * ### 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} module is present this will sanitize the value instead of throwing an error. | + * | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. | + * | `$sce.MEDIA_URL` | For URLs that are safe to render as media. Is automatically converted from string by sanitizing when needed. | + * | `$sce.URL` | For URLs that are safe to follow as links. Is automatically converted from string by sanitizing when needed. Note that `$sce.URL` makes a stronger statement about the URL than `$sce.MEDIA_URL` does and therefore contexts requiring values trusted for `$sce.URL` can be used anywhere that values trusted for `$sce.MEDIA_URL` are required.| + * | `$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` (e.g. `IFRAME`, `OBJECT`, etc.)

    Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` or `$sce.MEDIA_URL` do and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` or `$sce.MEDIA_URL` are required.

    The {@link $sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider#resourceUrlWhitelist()} and {@link $sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider#resourceUrlBlacklist()} can be used to restrict trusted origins for `RESOURCE_URL` | + * | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. | + * + * + *
    + * Be aware that, before AngularJS 1.7.0, `a[href]` and `img[src]` used to sanitize their + * interpolated values directly rather than rely upon {@link ng.$sce#getTrusted `$sce.getTrusted`}. + * + * **As of 1.7.0, this is no longer the case.** + * + * Now such interpolations are marked as requiring `$sce.URL` (for `a[href]`) or `$sce.MEDIA_URL` + * (for `img[src]`), so that the sanitization happens (via `$sce.getTrusted...`) when the `$interpolate` + * service evaluates the expressions. + *
    + * + * There are no CSS 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} + * + * 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. + * + * + * + *
    + *

    + * User comments
    + * 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. + *
    + *
    + * {{userComment.name}}: + * + *
    + *
    + *
    + *
    + *
    + * + * + * 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( + * 'Hover over this text.'); + * }]); + * + * + * + * [ + * { "name": "Alice", + * "htmlComment": + * "Is anyone reading this?" + * }, + * { "name": "Bob", + * "htmlComment": "Yes! Am I the only other one?" + * } + * ] + * + * + * + * describe('SCE doc demo', function() { + * it('should sanitize untrusted values', function() { + * expect(element.all(by.css('.htmlComment')).first().getAttribute('innerHTML')) + * .toBe('Is anyone reading this?'); + * }); + * + * it('should NOT sanitize explicitly trusted values', function() { + * expect(element(by.id('explicitlyTrustedHtml')).getAttribute('innerHTML')).toBe( + * 'Hover over this text.'); + * }); + * }); + * + *
    + * + * + * + * ## 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 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 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. */ - 'date': createDateInputType('date', DATE_REGEXP, createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']), 'yyyy-MM-dd'), + 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 input - * @name input[datetime-local] + * @ngdoc method + * @name $sce#parseAs * * @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`. + * Converts AngularJS {@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 * - * The model must always be a Date object, otherwise AngularJS will throw an error. - * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * @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 * - * 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. + * @description + * Shorthand method. `$sce.trustAsHtml(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`} * - * The format of the displayed time can be adjusted with the - * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions} `timeSecondsFormat` - * and `timeStripZeroSeconds`. + * @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 * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @description + * Shorthand method. `$sce.trustAsCss(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.CSS, value)`} * - * @example - - - -
    - - -
    - - Required! - - Not a valid date! -
    - value = {{example.value | date: "yyyy-MM-ddTHH:mm:ss"}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    -
    -
    - - 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'); - }); - -
    + * @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. */ - '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] + * @ngdoc method + * @name $sce#trustAsUrl * * @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)`. + * Shorthand method. `$sce.trustAsUrl(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`} * - * The model must always be a Date object, otherwise AngularJS will throw an error. - * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * @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 * - * The timezone to be used to read/write the `Date` instance in the model can be defined using - * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions}. By default, - * this is the timezone of the browser. + * @description + * Shorthand method. `$sce.trustAsResourceUrl(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`} * - * The format of the displayed time can be adjusted with the - * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions} `timeSecondsFormat` - * and `timeStripZeroSeconds`. + * @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 * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @description + * Shorthand method. `$sce.trustAsJs(value)` → + * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`} * - * @example - - - -
    - - -
    - - Required! - - Not a valid date! -
    - value = {{example.value | date: "HH:mm:ss"}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    -
    -
    - - 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'); - }); - -
    + * @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. */ - 'time': createDateInputType('time', TIME_REGEXP, createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']), 'HH:mm:ss.sss'), /** - * @ngdoc input - * @name input[week] + * @ngdoc method + * @name $sce#getTrusted * * @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 AngularJS will throw an error. - * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string. + * 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 * - * The value of the resulting Date object will be set to Thursday at 00:00:00 of the requested week, - * due to ISO-8601 week numbering standards. Information on ISO's system for numbering the weeks of the - * year can be found at: https://en.wikipedia.org/wiki/ISO_8601#Week_dates + * @description + * Shorthand method. `$sce.getTrustedHtml(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`} * - * 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 {*} value The value to pass to `$sce.getTrusted`. + * @return {*} The return value of `$sce.getTrusted($sce.HTML, value)` + */ + + /** + * @ngdoc method + * @name $sce#getTrustedCss * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @description + * Shorthand method. `$sce.getTrustedCss(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`} * - * @example - - - -
    - -
    - - Required! - - Not a valid date! -
    - value = {{example.value | date: "yyyy-Www"}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    -
    -
    - - 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'); - }); - -
    + * @param {*} value The value to pass to `$sce.getTrusted`. + * @return {*} The return value of `$sce.getTrusted($sce.CSS, value)` */ - 'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'), /** - * @ngdoc input - * @name input[month] + * @ngdoc method + * @name $sce#getTrustedUrl * * @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`. + * Shorthand method. `$sce.getTrustedUrl(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`} * - * The model must always be a Date object, otherwise AngularJS 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. + * @param {*} value The value to pass to `$sce.getTrusted`. + * @return {*} The return value of `$sce.getTrusted($sce.URL, value)` + */ + + /** + * @ngdoc method + * @name $sce#getTrustedResourceUrl * - * 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. + * @description + * Shorthand method. `$sce.getTrustedResourceUrl(value)` → + * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`} * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @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 * - * @example - - - -
    - - -
    - - Required! - - Not a valid month! -
    - value = {{example.value | date: "yyyy-MM"}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    -
    -
    - - 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'); - }); - -
    + * @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)` */ - 'month': createDateInputType('month', MONTH_REGEXP, createDateParser(MONTH_REGEXP, ['yyyy', 'MM']), 'yyyy-MM'), /** - * @ngdoc input - * @name input[number] + * @ngdoc method + * @name $sce#parseAsHtml * * @description - * Text input with number validation and transformation. Sets the `number` validation - * error if not a valid number. + * Shorthand method. `$sce.parseAsHtml(expression string)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`} * - *
    - * The model must always be of type `number` otherwise AngularJS 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. - *
    + * @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)`} * - * @knownIssue + * @param {string} expression String expression to compile. + * @return {function(context, locals)} A function which represents the compiled expression: * - * ### HTML5 constraint validation and `allowInvalid` + * * `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 * - * 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. + * @description + * Shorthand method. `$sce.parseAsUrl(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`} * - * @knownIssue + * @param {string} expression String expression to compile. + * @return {function(context, locals)} A function which represents the compiled expression: * - * ### Large numbers and `step` validation + * * `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 * - * The `step` validation will not work correctly for very large numbers (e.g. 9999999999) due to - * Javascript's arithmetic limitations. If you need to handle large numbers, purpose-built - * libraries (e.g. https://github.com/MikeMcl/big.js/), can be included into AngularJS by - * {@link guide/forms#modifying-built-in-validators overwriting the validators} - * for `number` and / or `step`, or by {@link guide/forms#custom-validation applying custom validators} - * to an `input[text]` element. The source for `input[number]` type can be used as a starting - * point for both implementations. + * @description + * Shorthand method. `$sce.parseAsResourceUrl(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`} * - * @param {string} ngModel Assignable AngularJS 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 AngularJS 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$')`.
    - * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * @param {string} expression String expression to compile. + * @return {function(context, locals)} A function which represents the compiled expression: * - * @example - - - -
    - -
    - - Required! - - Not valid number! -
    - value = {{example.value}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    -
    -
    - - 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'); - }); - -
    + * * `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`. */ - 'number': numberInputType, /** - * @ngdoc input - * @name input[url] + * @ngdoc method + * @name $sce#parseAsJs * * @description - * Text input with URL validation. Sets the `url` validation error key if the content is not a - * valid URL. + * Shorthand method. `$sce.parseAsJs(value)` → + * {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`} * - *
    - * **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}) - *
    + * @param {string} expression String expression to compile. + * @return {function(context, locals)} A function which represents the compiled expression: * - * @param {string} ngModel Assignable AngularJS 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 AngularJS 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$')`.
    - * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * * `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(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 + }; + }]; +} + +/** + * ! This is a private undocumented service ! + * + * @name $$taskTrackerFactory + * @description + * A function to create `TaskTracker` instances. + * + * A `TaskTracker` can keep track of pending tasks (grouped by type) and can notify interested + * parties when all pending tasks (or tasks of a specific type) have been completed. + * + * @param {$log} log - A logger instance (such as `$log`). Used to log error during callback + * execution. + * + * @this + */ +function $$TaskTrackerFactoryProvider() { + this.$get = valueFn(function(log) { return new TaskTracker(log); }); +} + +function TaskTracker(log) { + var self = this; + var taskCounts = {}; + var taskCallbacks = []; + + var ALL_TASKS_TYPE = self.ALL_TASKS_TYPE = '$$all$$'; + var DEFAULT_TASK_TYPE = self.DEFAULT_TASK_TYPE = '$$default$$'; + + /** + * Execute the specified function and decrement the appropriate `taskCounts` counter. + * If the counter reaches 0, all corresponding `taskCallbacks` are executed. + * + * @param {Function} fn - The function to execute. + * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task that is being completed. + */ + self.completeTask = completeTask; + + /** + * Increase the task count for the specified task type (or the default task type if non is + * specified). + * + * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task whose count will be increased. + */ + self.incTaskCount = incTaskCount; + + /** + * Execute the specified callback when all pending tasks have been completed. + * + * If there are no pending tasks, the callback is executed immediately. You can optionally limit + * the tasks that will be waited for to a specific type, by passing a `taskType`. + * + * @param {function} callback - The function to call when there are no pending tasks. + * @param {string=} [taskType=ALL_TASKS_TYPE] - The type of tasks that will be waited for. + */ + self.notifyWhenNoPendingTasks = notifyWhenNoPendingTasks; + + function completeTask(fn, taskType) { + taskType = taskType || DEFAULT_TASK_TYPE; + + try { + fn(); + } finally { + decTaskCount(taskType); + + var countForType = taskCounts[taskType]; + var countForAll = taskCounts[ALL_TASKS_TYPE]; + + // If at least one of the queues (`ALL_TASKS_TYPE` or `taskType`) is empty, run callbacks. + if (!countForAll || !countForType) { + var getNextCallback = !countForAll ? getLastCallback : getLastCallbackForType; + var nextCb; + + while ((nextCb = getNextCallback(taskType))) { + try { + nextCb(); + } catch (e) { + log.error(e); + } + } + } + } + } + + function decTaskCount(taskType) { + taskType = taskType || DEFAULT_TASK_TYPE; + if (taskCounts[taskType]) { + taskCounts[taskType]--; + taskCounts[ALL_TASKS_TYPE]--; + } + } + + function getLastCallback() { + var cbInfo = taskCallbacks.pop(); + return cbInfo && cbInfo.cb; + } + + function getLastCallbackForType(taskType) { + for (var i = taskCallbacks.length - 1; i >= 0; --i) { + var cbInfo = taskCallbacks[i]; + if (cbInfo.type === taskType) { + taskCallbacks.splice(i, 1); + return cbInfo.cb; + } + } + } + + function incTaskCount(taskType) { + taskType = taskType || DEFAULT_TASK_TYPE; + taskCounts[taskType] = (taskCounts[taskType] || 0) + 1; + taskCounts[ALL_TASKS_TYPE] = (taskCounts[ALL_TASKS_TYPE] || 0) + 1; + } + + function notifyWhenNoPendingTasks(callback, taskType) { + taskType = taskType || ALL_TASKS_TYPE; + if (!taskCounts[taskType]) { + callback(); + } else { + taskCallbacks.push({type: taskType, cb: callback}); + } + } +} + +var $templateRequestMinErr = minErr('$templateRequest'); + +/** + * @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 AngularJS 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) { + return $templateCache.put(tpl, 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 * - * @example - - - -
    -
    - - 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'); - }); - -
    + * @description + * The private $$testability service provides a collection of methods for use when debugging + * or by automated test and debugging tools. */ - 'url': urlInputType, + var testability = {}; /** - * @ngdoc input - * @name input[email] + * @name $$testability#findBindings * * @description - * Text input with email validation. Sets the `email` validation error key if not a valid email - * address. - * - *
    - * **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}) - *
    - * - * @param {string} ngModel Assignable AngularJS 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 AngularJS 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$')`.
    - * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * Returns an array of elements that are bound (via ng-bind or {{}}) + * to expressions matching the input. * - * @example - - - -
    - -
    - - Required! - - Not valid email! -
    - text = {{email.text}}
    - myForm.input.$valid = {{myForm.input.$valid}}
    - myForm.input.$error = {{myForm.input.$error}}
    - myForm.$valid = {{myForm.$valid}}
    - myForm.$error.required = {{!!myForm.$error.required}}
    - myForm.$error.email = {{!!myForm.$error.email}}
    -
    -
    - - 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'); - }); - -
    + * @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. */ - 'email': emailInputType, + 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; + }; /** - * @ngdoc input - * @name input[radio] + * @name $$testability#findModels * * @description - * HTML radio button. - * - * **Note:**
    - * All inputs controlled by {@link ngModel ngModel} (including those of type `radio`) will use the - * value of their `name` attribute to determine the property under which their - * {@link ngModel.NgModelController NgModelController} will be published on the parent - * {@link form.FormController FormController}. Thus, if you use the same `name` for multiple - * inputs of a form (e.g. a group of radio inputs), only _one_ `NgModelController` will be - * published on the parent `FormController` under that name. The rest of the controllers will - * continue to work as expected, but you won't be able to access them as properties on the parent - * `FormController`. - * - *
    - *

    - * In plain HTML forms, the `name` attribute is used to identify groups of radio inputs, so - * that the browser can manage their state (checked/unchecked) based on the state of other - * inputs in the same group. - *

    - *

    - * In AngularJS forms, this is not necessary. The input's state will be updated based on the - * value of the underlying model data. - *

    - *
    + * Returns an array of elements that are two-way found via ng-model to + * expressions matching the input. * - *
    - * If you omit the `name` attribute on a radio input, `ngModel` will automatically assign it a - * unique name. - *
    - * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. - * @param {string} ngValue AngularJS 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 - - - -
    -
    -
    -
    - color = {{color.name | json}}
    -
    - Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`. -
    - - 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'); - }); - -
    + * @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. */ - 'radio': radioInputType, + 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; + } + } + }; /** - * @ngdoc input - * @name input[range] + * @name $$testability#getLocation * * @description - * Native range input with validation and transformation. - * - * The model for the range input must always be a `Number`. + * 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 * - * 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. + * @description + * Shortcut for navigating to a location without doing a full page reload. * - * 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. + * @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 * - * See the [HTML Spec on input[type=range]](https://www.w3.org/TR/html5/forms.html#range-state-(type=range)) - * for more info. + * @description + * Calls the callback when all pending tasks are completed. * - * This has the following consequences for AngularJS: + * Types of tasks waited for include: + * - Pending timeouts (via {@link $timeout}). + * - Pending HTTP requests (via {@link $http}). + * - In-progress route transitions (via {@link $route}). + * - Pending tasks scheduled via {@link $rootScope#$applyAsync}. + * - Pending tasks scheduled via {@link $rootScope#$evalAsync}. + * These include tasks scheduled via `$evalAsync()` indirectly (such as {@link $q} promises). * - * 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 ``, - * if the application sets `model.value = null`, the browser will set the input to `'50'`. - * AngularJS will then set the model to `50`, to prevent input and model value being out of sync. + * @param {function} callback + */ + testability.whenStable = function(callback) { + $browser.notifyWhenNoOutstandingRequests(callback); + }; + + return testability; + }]; +} + +var $timeoutMinErr = minErr('$timeout'); + +/** @this */ +function $TimeoutProvider() { + this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler', + function($rootScope, $browser, $q, $$q, $exceptionHandler) { + + var deferreds = {}; + + + /** + * @ngdoc service + * @name $timeout * - * 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. + * @description + * AngularJS'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. * - * 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, AngularJS will also update the model value. + * 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. * - * Automatic value adjustment also means that a range input element can never have the `required`, - * `min`, or `max` errors. + * To cancel a timeout request, call `$timeout.cancel(promise)`. * - * 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 AngularJS will set the `step` - * error on the input, and set the model to `undefined`. + * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to + * synchronously flush the queue of deferred functions. * - * 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. + * If you only want a promise that will be resolved after some specified delay + * then you can call `$timeout` without the `fn` function. * - * @param {string} ngModel Assignable AngularJS 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. + * @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. * - * @example - - - -
    - Model as range: -
    - Model as number:
    - Min:
    - Max:
    - value = {{value}}
    - myForm.range.$valid = {{myForm.range.$valid}}
    - myForm.range.$error = {{myForm.range.$error}} -
    -
    -
    - * ## Range Input with ngMin & ngMax attributes - * @example - - - -
    - Model as range: -
    - Model as number:
    - Min:
    - Max:
    - value = {{value}}
    - myForm.range.$valid = {{myForm.range.$valid}}
    - myForm.range.$error = {{myForm.range.$error}} -
    -
    -
    - */ - 'range': rangeInputType, + */ + 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, '$timeout'); + + promise.$$timeoutId = timeoutId; + deferreds[timeoutId] = deferred; + + return promise; + } + /** - * @ngdoc input - * @name input[checkbox] + * @ngdoc method + * @name $timeout#cancel * * @description - * HTML checkbox. - * - * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. + * Cancels a task associated with the `promise`. As a result of this, the promise will be + * resolved with a rejection. * - * @example - - - -
    -
    -
    - value1 = {{checkboxModel.value1}}
    - value2 = {{checkboxModel.value2}}
    -
    -
    - - 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'); - }); - -
    + * @param {Promise=} promise Promise returned by the `$timeout` function. + * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully + * canceled. */ - 'checkbox': checkboxInputType, + timeout.cancel = function(promise) { + if (!promise) return false; - 'hidden': noop, - 'button': noop, - 'submit': noop, - 'reset': noop, - 'file': noop - }; + if (!promise.hasOwnProperty('$$timeoutId')) { + throw $timeoutMinErr('badprom', + '`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.'); + } - function stringBasedInputType(ctrl) { - ctrl.$formatters.push(function (value) { - return ctrl.$isEmpty(value) ? value : value.toString(); - }); + if (!deferreds.hasOwnProperty(promise.$$timeoutId)) return false; + + var id = promise.$$timeoutId; + var deferred = deferreds[id]; + + // Timeout cancels should not report an unhandled promise. + markQExceptionHandled(deferred.promise); + deferred.reject('canceled'); + delete deferreds[id]; + + return $browser.defer.cancel(id); + }; + + 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); +var baseUrlParsingNode; + + +/** + * + * 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|object} url The URL to be parsed. If `url` is not a string, it will be returned + * unchanged. + * @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 without 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) { + if (!isString(url)) return 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; } - function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { - baseInputType(scope, element, attr, ctrl, $sniffer, $browser); - stringBasedInputType(ctrl); + urlParsingNode.setAttribute('href', href); + + 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) { + return urlsAreSameOrigin(requestUrl, originUrl); +} + +/** + * Parse a request URL and determine whether it is same-origin as the current document base URL. + * + * Note: The base URL is usually the same as the document location (`location.href`) but can + * be overriden by using the `` tag. + * + * @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 URL is same-origin as the document base URL. + */ +function urlIsSameOriginAsBaseUrl(requestUrl) { + return urlsAreSameOrigin(requestUrl, getBaseUrl()); +} + +/** + * Create a function that can check a URL's origin against a list of allowed/whitelisted origins. + * The current location's origin is implicitly trusted. + * + * @param {string[]} whitelistedOriginUrls - A list of URLs (strings), whose origins are trusted. + * + * @returns {Function} - A function that receives a URL (string or parsed URL object) and returns + * whether it is of an allowed origin. + */ +function urlIsAllowedOriginFactory(whitelistedOriginUrls) { + var parsedAllowedOriginUrls = [originUrl].concat(whitelistedOriginUrls.map(urlResolve)); + + /** + * Check whether the specified URL (string or parsed URL object) has an origin that is allowed + * based on a list of whitelisted-origin URLs. The current location's origin is implicitly + * trusted. + * + * @param {string|Object} requestUrl - The URL to be checked (provided as a string that will be + * resolved or a parsed URL object). + * + * @returns {boolean} - Whether the specified URL is of an allowed origin. + */ + return function urlIsAllowedOrigin(requestUrl) { + var parsedUrl = urlResolve(requestUrl); + return parsedAllowedOriginUrls.some(urlsAreSameOrigin.bind(null, parsedUrl)); + }; +} + +/** + * Determine if two URLs share the same origin. + * + * @param {string|Object} url1 - First URL to compare as a string or a normalized URL in the form of + * a dictionary object returned by `urlResolve()`. + * @param {string|object} url2 - Second URL to compare as a string or a normalized URL in the form + * of a dictionary object returned by `urlResolve()`. + * + * @returns {boolean} - True if both URLs have the same origin, and false otherwise. + */ +function urlsAreSameOrigin(url1, url2) { + url1 = urlResolve(url1); + url2 = urlResolve(url2); + + return (url1.protocol === url2.protocol && + url1.host === url2.host); +} + +/** + * Returns the current document base URL. + * @returns {string} + */ +function getBaseUrl() { + if (window.document.baseURI) { + return window.document.baseURI; } - function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) { - var type = lowercase(element[0].type); + // `document.baseURI` is available everywhere except IE + if (!baseUrlParsingNode) { + baseUrlParsingNode = window.document.createElement('a'); + baseUrlParsingNode.href = '.'; - // 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; + // Work-around for IE bug described in Implementation Notes. The fix in `urlResolve()` is not + // suitable here because we need to track changes to the base URL. + baseUrlParsingNode = baseUrlParsingNode.cloneNode(false); + } + return baseUrlParsingNode.href; +} - element.on('compositionstart', function () { - composing = true; +/** + * @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 AngularJS 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 + + + +
    + + +
    +
    + + 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(); }); + +
    + */ +function $WindowProvider() { + this.$get = valueFn(window); +} - // Support: IE9+ - element.on('compositionupdate', function (ev) { - // End composition when ev.data is empty string on 'compositionupdate' event. - // When the input de-focusses (e.g. by clicking away), IE triggers 'compositionupdate' - // instead of 'compositionend'. - if (isUndefined(ev.data) || ev.data === '') { - composing = false; - } - }); +/** + * @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 = ''; - element.on('compositionend', function () { - composing = false; - listener(); - }); + function safeGetCookie(rawDocument) { + try { + return rawDocument.cookie || ''; + } catch (e) { + return ''; } + } - var timeout; + function safeDecodeURIComponent(str) { + try { + return decodeURIComponent(str); + } catch (e) { + return str; + } + } - var listener = function listener(ev) { - if (timeout) { - $browser.defer.cancel(timeout); - timeout = null; - } - if (composing) return; - var value = element.val(), - event = ev && ev.type; + return function() { + var cookieArray, cookie, i, index, name; + var currentCookieString = safeGetCookie(rawDocument); - // 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 (currentCookieString !== lastCookieString) { + lastCookieString = currentCookieString; + cookieArray = lastCookieString.split('; '); + lastCookies = {}; - // 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); + 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; + }; +} - // 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); - } - }); - } - }; +$$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, + */ - element.on('keydown', /** @this */function (event) { - var key = event.keyCode; +/** + * @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. + * + *
    + * **Note:** Filter names must be valid AngularJS {@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`). + *
    + * + * ```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 AngularJS filters work, and how to create your own filters, see + * {@link guide/filter Filters} in the AngularJS Developer Guide. + */ - // ignore - // command modifiers arrows - if (key === 91 || 15 < key && key < 19 || 37 <= key && key <= 40) return; +/** + * @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. AngularJS 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 + + +
    +

    {{ originalText }}

    +

    {{ filteredText }}

    +
    +
    - deferListener(event, this, this.value); + + angular.module('filterExample', []) + .controller('MainCtrl', function($scope, $filter) { + $scope.originalText = 'hello'; + $scope.filteredText = $filter('uppercase')($scope.originalText); }); + +
    + */ +$FilterProvider.$inject = ['$provide']; +/** @this */ +function $FilterProvider($provide) { + var suffix = 'Filter'; - // if user modifies input value using context menu in IE, we need "paste", "cut" and "drop" events to catch it - if ($sniffer.hasEvent('paste')) { - element.on('paste cut drop', 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); - } - }); - } + /** + * @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. + * + *
    + * **Note:** Filter names must be valid AngularJS {@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`). + *
    + * @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; - ctrl.$render = function () { - // Workaround for Firefox validation #12102. - var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue; - if (element.val() !== value) { - element.val(value); - } + this.$get = ['$injector', function($injector) { + return function(name) { + return $injector.get(name + suffix); }; - } + }]; - 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; + /* global + currencyFilter: false, + dateFilter: false, + filterFilter: false, + jsonFilter: false, + limitToFilter: false, + lowercaseFilter: false, + numberFilter: false, + orderByFilter: false, + uppercaseFilter: false + */ - if (existingDate) { - hours = existingDate.getHours(); - minutes = existingDate.getMinutes(); - seconds = existingDate.getSeconds(); - milliseconds = existingDate.getMilliseconds(); - } + 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); +} - return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds); - } - } +/** + * @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. + *
    + * **Note**: If the array contains objects that reference themselves, filtering is not possible. + *
    + * @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 + + +
    + + + + + + + + +
    NamePhone
    {{friend.name}}{{friend.phone}}
    +
    +
    +
    +
    +
    + + + + + + +
    NamePhone
    {{friendObj.name}}{{friendObj.phone}}
    +
    + + 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]); + }); + }); + }; - return NaN; - } + 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'); + }); - function createDateParser(regexp, mapping) { - return function (iso, previousDate) { - var parts, map; + 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'); + }); + +
    + */ - if (isDate(iso)) { - return iso; +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); } + } - 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); + anyPropertyKey = anyPropertyKey || '$'; + var expressionType = getTypeForFilter(expression); + var predicateFn; + var matchAgainstAnyProp; - if (parts) { - parts.shift(); - if (previousDate) { - map = { - yyyy: previousDate.getFullYear(), - MM: previousDate.getMonth() + 1, - dd: previousDate.getDate(), - HH: previousDate.getHours(), - mm: previousDate.getMinutes(), - ss: previousDate.getSeconds(), - sss: previousDate.getMilliseconds() / 1000 - }; - } else { - map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 }; - } + 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; + } - forEach(parts, function (part, index) { - if (index < mapping.length) { - map[mapping[index]] = +part; - } - }); + return Array.prototype.filter.call(array, predicateFn); + }; +} - var date = new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0); - if (map.yyyy < 100) { - // In the constructor, 2-digit years map to 1900-1999. - // Use `setFullYear()` to set the correct year. - date.setFullYear(map.yyyy); - } +// Helper functions for `filterFilter` +function createPredicateFn(expression, comparator, anyPropertyKey, matchAgainstAnyProp) { + var shouldMatchPrimitives = isObject(expression) && (anyPropertyKey in expression); + var predicateFn; - return date; - } + if (comparator === true) { + comparator = equals; + } else if (!isFunction(comparator)) { + comparator = function(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; } - return NaN; + actual = lowercase('' + actual); + expected = lowercase('' + expected); + return actual.indexOf(expected) !== -1; }; } - function createDateInputType(type, regexp, parseDate, format) { - return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) { - badInputChecker(scope, element, attr, ctrl, type); - baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + predicateFn = function(item) { + if (shouldMatchPrimitives && !isObject(item)) { + return deepCompare(item, expression[anyPropertyKey], comparator, anyPropertyKey, false); + } + return deepCompare(item, expression, comparator, anyPropertyKey, matchAgainstAnyProp); + }; - var isTimeType = type === 'time' || type === 'datetimelocal'; - var previousDate; - var previousTimezone; + return predicateFn; +} - ctrl.$parsers.push(function (value) { - if (ctrl.$isEmpty(value)) return null; +function deepCompare(actual, expected, comparator, anyPropertyKey, matchAgainstAnyProp, dontMatchWholeObject) { + var actualType = getTypeForFilter(actual); + var expectedType = getTypeForFilter(expected); - 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! - return parseDateAndConvertTimeZoneToLocal(value, previousDate); - } - ctrl.$$parserName = type; - return undefined; - }); + 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); + }); + } - ctrl.$formatters.push(function (value) { - if (value && !isDate(value)) { - throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value); + 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; + } } - if (isValidDate(value)) { - previousDate = value; - var timezone = ctrl.$options.getOption('timezone'); - - if (timezone) { - previousTimezone = timezone; - previousDate = convertTimezoneToLocal(previousDate, timezone, 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; } - return formatter(value, timezone); - } else { - previousDate = null; - previousTimezone = null; - return ''; + var matchAnyProperty = key === anyPropertyKey; + var actualVal = matchAnyProperty ? actual : actual[key]; + if (!deepCompare(actualVal, expectedVal, comparator, anyPropertyKey, matchAnyProperty, matchAnyProperty)) { + return false; + } } - }); - - 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(); - }); + return true; + } else { + return comparator(actual, expected); } + case 'function': + return false; + default: + return comparator(actual, expected); + } +} - function isValidDate(value) { - // Invalid Date: getTime() returns NaN - return value && !(value.getTime && value.getTime() !== value.getTime()); - } +// Used for easily differentiating between `null` and actual `object` +function getTypeForFilter(val) { + return (val === null) ? 'null' : typeof val; +} - function parseObservedDateValue(val) { - return isDefined(val) && !isDate(val) ? parseDateAndConvertTimeZoneToLocal(val) || undefined : val; - } +var MAX_DIGITS = 22; +var DECIMAL_SEP = '.'; +var ZERO_CHAR = '0'; - function parseDateAndConvertTimeZoneToLocal(value, previousDate) { - var timezone = ctrl.$options.getOption('timezone'); +/** + * @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 + + + +
    +
    + default currency symbol ($): {{amount | currency}}
    + custom currency identifier (USD$): {{amount | currency:"USD$"}}
    + no fractions (0): {{amount | currency:"USD$":0}} +
    +
    + + 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'); + }); + +
    + */ +currencyFilter.$inject = ['$locale']; +function currencyFilter($locale) { + var formats = $locale.NUMBER_FORMATS; + return function(amount, currencySymbol, fractionSize) { + if (isUndefined(currencySymbol)) { + currencySymbol = formats.CURRENCY_SYM; + } - if (previousTimezone && previousTimezone !== timezone) { - // If the timezone has changed, adjust the previousDate to the default timezone - // so that the new date is converted with the correct timezone offset - previousDate = addDateMinutes(previousDate, timezoneToOffset(previousTimezone)); - } + if (isUndefined(fractionSize)) { + fractionSize = formats.PATTERNS[1].maxFrac; + } - var parsedDate = parseDate(value, previousDate); + // If the currency symbol is empty, trim whitespace around the symbol + var currencySymbolRe = !currencySymbol ? /\s*\u00A4\s*/g : /\u00A4/g; - if (!isNaN(parsedDate) && timezone) { - parsedDate = convertTimezoneToLocal(parsedDate, timezone); - } - return parsedDate; - } + // if null or undefined pass it through + return (amount == null) + ? amount + : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize). + replace(currencySymbolRe, currencySymbol); + }; +} - function formatter(value, timezone) { - var targetFormat = format; +/** + * @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 + + + +
    +
    + Default formatting: {{val | number}}
    + No fractions: {{val | number:0}}
    + Negative number: {{-val | number:4}} +
    +
    + + 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'); + }); - if (isTimeType && isString(ctrl.$options.getOption('timeSecondsFormat'))) { - targetFormat = format.replace('ss.sss', ctrl.$options.getOption('timeSecondsFormat')).replace(/:$/, ''); - } + 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'); + }); + +
    + */ +numberFilter.$inject = ['$locale']; +function numberFilter($locale) { + var formats = $locale.NUMBER_FORMATS; + return function(number, fractionSize) { - var formatted = $filter('date')(value, targetFormat, timezone); + // if null or undefined pass it through + return (number == null) + ? number + : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP, + fractionSize); + }; +} - if (isTimeType && ctrl.$options.getOption('timeStripZeroSeconds')) { - formatted = formatted.replace(/(?::00)?(?:\.000)?$/, ''); - } +/** + * 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; - return formatted; - } - }; + // Decimal point? + if ((numberOfIntegerDigits = numStr.indexOf(DECIMAL_SEP)) > -1) { + numStr = numStr.replace(DECIMAL_SEP, ''); } - function badInputChecker(scope, element, attr, ctrl, parserName) { - 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) || {}; - if (validity.badInput || validity.typeMismatch) { - ctrl.$$parserName = parserName; - return undefined; - } - - return value; - }); - } + // 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; } - function numberFormatterParser(ctrl) { - ctrl.$parsers.push(function (value) { - if (ctrl.$isEmpty(value)) return null; - if (NUMBER_REGEXP.test(value)) return parseFloat(value); + // Count the number of leading zeros. + for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { /* empty */ } - ctrl.$$parserName = 'number'; - return undefined; - }); + 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--; - 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; - }); + // 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); + } } - function parseNumberAttrVal(val) { - if (isDefined(val) && !isNumber(val)) { - val = parseFloat(val); - } - return !isNumberNaN(val) ? val : undefined; + // 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; } - 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) + return { d: digits, e: exponent, i: numberOfIntegerDigits }; +} - // eslint-disable-next-line no-bitwise - return (num | 0) === num; - } +/** + * 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; - function countDecimals(num) { - var numString = num.toString(); - var decimalSymbolIndex = numString.indexOf('.'); + // determine fractionSize if it is not specified; `+fractionSize` converts it to a number + fractionSize = (isUndefined(fractionSize)) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize; - if (decimalSymbolIndex === -1) { - if (-1 < num && num < 1) { - // It may be in the exponential notation format (`1e-X`) - var match = /e-(\d+)$/.exec(numString); + // The index of the digit to where rounding is to occur + var roundAt = fractionSize + parsedNumber.i; + var digit = digits[roundAt]; - if (match) { - return Number(match[1]); + 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]++; } + } - return 0; + // 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++; } +} - return numString.length - decimalSymbolIndex - 1; - } +/** + * 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; - 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); + if (isInfinity) { + formattedText = '\u221e'; + } else { + parsedNumber = parse(numStr); + + roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac); - var isNonIntegerValue = !isNumberInteger(value); - var isNonIntegerStepBase = !isNumberInteger(stepBase); - var isNonIntegerStep = !isNumberInteger(step); + var digits = parsedNumber.d; + var integerLen = parsedNumber.i; + var exponent = parsedNumber.e; + var decimals = []; + isZero = digits.reduce(function(isZero, d) { return isZero && !d; }, true); - // 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; + // pad zeros for small numbers + while (integerLen < 0) { + digits.unshift(0); + integerLen++; + } - var decimalCount = Math.max(valueDecimals, stepBaseDecimals, stepDecimals); - var multiplier = Math.pow(10, decimalCount); + // extract decimals digits + if (integerLen > 0) { + decimals = digits.splice(integerLen, digits.length); + } else { + decimals = digits; + digits = [0]; + } - value = value * multiplier; - stepBase = stepBase * multiplier; - step = step * multiplier; + // 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); - if (isNonIntegerValue) value = Math.round(value); - if (isNonIntegerStepBase) stepBase = Math.round(stepBase); - if (isNonIntegerStep) step = Math.round(step); + // append the decimal digits + if (decimals.length) { + formattedText += decimalSep + decimals.join(''); } - return (value - stepBase) % step === 0; + if (exponent) { + formattedText += 'e+' + exponent; + } } + if (number < 0 && !isZero) { + return pattern.negPre + formattedText + pattern.negSuf; + } else { + return pattern.posPre + formattedText + pattern.posSuf; + } +} - function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) { - badInputChecker(scope, element, attr, ctrl, 'number'); - numberFormatterParser(ctrl); - baseInputType(scope, element, attr, ctrl, $sniffer, $browser); - - var minVal; - var maxVal; - - if (isDefined(attr.min) || attr.ngMin) { - ctrl.$validators.min = function (modelValue, viewValue) { - return ctrl.$isEmpty(viewValue) || isUndefined(minVal) || viewValue >= minVal; - }; - - attr.$observe('min', function (val) { - minVal = parseNumberAttrVal(val); - // TODO(matsko): implement validateLater to reduce number of validations - ctrl.$validate(); - }); +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; +} - if (isDefined(attr.max) || attr.ngMax) { - ctrl.$validators.max = function (modelValue, viewValue) { - return ctrl.$isEmpty(viewValue) || isUndefined(maxVal) || viewValue <= maxVal; - }; - attr.$observe('max', function (val) { - maxVal = parseNumberAttrVal(val); - // TODO(matsko): implement validateLater to reduce number of validations - ctrl.$validate(); - }); +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); + }; +} - 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); - }; +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); - attr.$observe('step', function (val) { - stepVal = parseNumberAttrVal(val); - // TODO(matsko): implement validateLater to reduce number of validations - ctrl.$validate(); - }); - } - } + return formats[get][value]; + }; +} - function rangeInputType(scope, element, attr, ctrl, $sniffer, $browser) { - badInputChecker(scope, element, attr, ctrl, 'range'); - numberFormatterParser(ctrl); - baseInputType(scope, element, attr, ctrl, $sniffer, $browser); +function timeZoneGetter(date, formats, offset) { + var zone = -1 * offset; + var paddedZone = (zone >= 0) ? '+' : ''; - 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); + paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) + + padNumber(Math.abs(zone % 60), 2); - var originalRender = ctrl.$render; + return paddedZone; +} - 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; +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); +} - 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; - }; +function getThursdayThisWeek(datetime) { + return new Date(datetime.getFullYear(), datetime.getMonth(), + // 4 = index of Thursday + datetime.getDate() + (4 - datetime.getDay())); +} - setInitialValueAndObserver('min', minChange); - } +function weekGetter(size) { + return function(date) { + var firstThurs = getFirstThursdayOfYear(date.getFullYear()), + thisThurs = getThursdayThisWeek(date); - 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; - }; + var diff = +thisThurs - +firstThurs, + result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week - setInitialValueAndObserver('max', maxChange); - } + return padNumber(result, size); + }; +} - 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); - }; +function ampmGetter(date, formats) { + return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1]; +} - setInitialValueAndObserver('step', stepChange); - } +function eraGetter(date, formats) { + return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1]; +} - 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 longEraGetter(date, formats) { + return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1]; +} - function minChange(val) { - minVal = parseNumberAttrVal(val); - // ignore changes before model is initialized - if (isNumberNaN(ctrl.$modelValue)) { - return; - } +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 +}; - 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(); - } - } +var DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/, + NUMBER_STRING = /^-?\d+$/; - function maxChange(val) { - maxVal = parseNumberAttrVal(val); - // ignore changes before model is initialized - if (isNumberNaN(ctrl.$modelValue)) { - return; - } +/** + * @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 + + + {{1288323623006 | date:'medium'}}: + {{1288323623006 | date:'medium'}}
    + {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}: + {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}
    + {{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}: + {{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}
    + {{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}: + {{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}
    +
    + + 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)/); + }); + +
    + */ +dateFilter.$inject = ['$locale']; +function dateFilter($locale) { - 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; - } + 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; - // 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(); + 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; } - 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.$validators.url = function (modelValue, viewValue) { - var value = modelValue || viewValue; - return ctrl.$isEmpty(value) || URL_REGEXP.test(value); - }; - } + return function(date, format, timezone) { + var text = '', + parts = [], + fn, match; - 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); + format = format || 'mediumDate'; + format = $locale.DATETIME_FORMATS[format] || format; + if (isString(date)) { + date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date); + } - ctrl.$validators.email = function (modelValue, viewValue) { - var value = modelValue || viewValue; - return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value); - }; - } + if (isNumber(date)) { + date = new Date(date); + } - 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()); + if (!isDate(date) || !isFinite(date.getTime())) { + return date; } - 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); + while (format) { + match = DATE_FORMATS_SPLIT.exec(format); + if (match) { + parts = concat(parts, match, 1); + format = parts.pop(); + } else { + parts.push(format); + format = null; } - }; + } - element.on('change', listener); + 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, '\''); + }); - ctrl.$render = function () { - var value = attr.value; - if (doTrim) { - value = trim(value); - } - element[0].checked = value === ctrl.$viewValue; - }; + return text; + }; +} - 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); +/** + * @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 + + +
    {{ {'name':'value'} | json }}
    +
    {{ {'name':'value'} | json:4 }}
    +
    + + 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}/); + }); + +
    + * + */ +function jsonFilter() { + return function(object, spacing) { + if (isUndefined(spacing)) { + spacing = 2; } - return fallback; - } + return toJson(object, spacing); + }; +} - 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); - }; +/** + * @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); - element.on('change', listener); - ctrl.$render = function () { - element[0].checked = ctrl.$viewValue; - }; +/** + * @ngdoc filter + * @name uppercase + * @kind function + * @description + * Converts string to uppercase. + * @example + + + +
    + +

    {{title}}

    + +

    {{title | uppercase}}

    +
    +
    +
    + */ +var uppercaseFilter = valueFn(uppercase); - // 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; - }; +/** + * @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 + + + +
    + +

    Output numbers: {{ numbers | limitTo:numLimit }}

    + +

    Output letters: {{ letters | limitTo:letterLimit }}

    + +

    Output long number: {{ longNumber | limitTo:longNumberLimit }}

    +
    +
    + + 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'); + }); - ctrl.$formatters.push(function (value) { - return equals(value, trueValue); - }); + // 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'); + }); + +
    +*/ +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; - ctrl.$parsers.push(function (value) { - return value ? trueValue : falseValue; - }); - } + if (isNumber(input)) input = input.toString(); + if (!isArrayLike(input)) return input; - /** - * @ngdoc directive - * @name textarea - * @restrict E - * - * @description - * HTML textarea element control with AngularJS 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 AngularJS 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 AngularJS 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$')`.
    - * **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 AngularJS expression to be executed when input changes due to user - * interaction with the input element. - * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input. - * - * @knownIssue - * - * When specifying the `placeholder` attribute of ` - *
    {{ list | json }}
    - * - * - * 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]'); - * }); - * - * + * See the [HTML Spec on input[type=range]](https://www.w3.org/TR/html5/forms.html#range-state-(type=range)) + * for more info. * - */ - 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.} $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.} $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); - * ``` + * This has the following consequences for AngularJS: * - * @property {Object.} $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. + * 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 ``, + * if the application sets `model.value = null`, the browser will set the input to `'50'`. + * AngularJS will then set the model to `50`, to prevent input and model value being out of sync. * - * ```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); - * }; - * ``` + * 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. * - * @property {Object.} $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. + * 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, AngularJS will also update the model value. * - * 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. + * Automatic value adjustment also means that a range input element can never have the `required`, + * `min`, or `max` errors. * - * ```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; - * }); - * }; - * ``` + * 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 AngularJS will set the `step` + * error on the input, and set the model to `undefined`. * - * @property {Array.} $viewChangeListeners Array of functions to execute whenever - * a change to {@link ngModel.NgModelController#$viewValue `$viewValue`} has caused a change - * to {@link ngModel.NgModelController#$modelValue `$modelValue`}. - * 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. + * 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. * - * @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. + * @param {string} ngModel Assignable AngularJS 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. * - * @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. + * @example + + + +
    + + Model as range: +
    + Model as number:
    + Min:
    + Max:
    + value = {{value}}
    + myForm.range.$valid = {{myForm.range.$valid}}
    + myForm.range.$error = {{myForm.range.$error}} +
    +
    +
    + + * ## Range Input with ngMin & ngMax attributes + + * @example + + + +
    + Model as range: +
    + Model as number:
    + Min:
    + Max:
    + value = {{value}}
    + myForm.range.$valid = {{myForm.range.$valid}}
    + myForm.range.$error = {{myForm.range.$error}} +
    +
    +
    + + */ + 'range': rangeInputType, + + /** + * @ngdoc input + * @name input[checkbox] * * @description + * HTML checkbox. * - * `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. - * AngularJS 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. + * @param {string} ngModel Assignable AngularJS 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 AngularJS expression to be executed when input changes due to user + * interaction with the input element. * * @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. ``). - * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks - * that content using the `$sce` service. - * - * - - [contenteditable] { - border: 1px solid black; - background-color: white; - min-height: 20px; - } - - .ng-invalid { - border: 1px solid red; - } - - - - 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
    behind - // If strip-br attribute is provided then we strip this out - if (attrs.stripBr && html === '
    ') { - html = ''; - } - ngModel.$setViewValue(html); - } - } - }; - }]); -
    - -
    -
    Change me!
    - Required! -
    - -
    -
    - - 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/); - }); - - *
    - * - * + + + +
    +
    +
    + value1 = {{checkboxModel.value1}}
    + value2 = {{checkboxModel.value2}}
    +
    +
    + + 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'); + }); + +
    */ - 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.$$parserName = 'parse'; + 'checkbox': checkboxInputType, - this.$$currentValidationRunId = 0; + 'hidden': noop, + 'button': noop, + 'submit': noop, + 'reset': noop, + 'file': noop +}; - this.$$scope = $scope; - this.$$rootScope = $scope.$root; - 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)); - } - }, +function stringBasedInputType(ctrl) { + ctrl.$formatters.push(function(value) { + return ctrl.$isEmpty(value) ? value : value.toString(); + }); +} - /** - * @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, +function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + stringBasedInputType(ctrl); +} - /** - * @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; - }, +function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) { + var type = lowercase(element[0].type); - $$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); + // 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; + }); + + // Support: IE9+ + element.on('compositionupdate', function(ev) { + // End composition when ev.data is empty string on 'compositionupdate' event. + // When the input de-focusses (e.g. by clicking away), IE triggers 'compositionupdate' + // instead of 'compositionend'. + if (isUndefined(ev.data) || ev.data === '') { + composing = false; } - }, + }); - /** - * @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); - }, + element.on('compositionend', function() { + composing = false; + listener(); + }); + } - /** - * @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(); - }, + var timeout; - /** - * @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); - }, + var listener = function(ev) { + if (timeout) { + $browser.defer.cancel(timeout); + timeout = null; + } + if (composing) return; + var value = element.val(), + event = ev && ev.type; - /** - * @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); - }, + // 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); + } - /** - * @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 AngularJS'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 - * - * - * 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] = ''; - * } - * }; - * }]); - * - * - *
    - *

    Both of these inputs are only updated if they are blurred. Hitting escape should - * empty them. Follow these steps and observe the difference:

    - *
      - *
    1. Type something in the input. You will see that the model is not yet updated
    2. - *
    3. Press the Escape key. - *
        - *
      1. 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. - *
      2. - *
      3. 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. - *
      4. - *
      - *
    4. - *
    - * - *
    - *
    - *

    Without $rollbackViewValue():

    - * - * value1: "{{ model.value1 }}" - *
    - * - *
    - *

    With $rollbackViewValue():

    - * - * value2: "{{ model.value2 }}" - *
    - *
    - *
    - *
    - - div { - display: table-cell; - } - div:nth-child(1) { - padding-right: 30px; - } - - *
    - */ - $rollbackViewValue: function $rollbackViewValue() { - this.$$timeout.cancel(this.$$pendingDebounce); - this.$viewValue = this.$$lastCommittedViewValue; - this.$render(); - }, + // 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); + } + }; - /** - * @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; + // 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(ev, input, origValue) { + if (!timeout) { + timeout = $browser.defer(function() { + timeout = null; + if (!input || input.value !== origValue) { + listener(ev); + } + }); } + }; - 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; + element.on('keydown', /** @this */ function(event) { + var key = event.keyCode; - var prevValid = this.$valid; - var prevModelValue = this.$modelValue; + // ignore + // command modifiers arrows + if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return; - var allowInvalid = this.$options.getOption('allowInvalid'); + deferListener(event, this, this.value); + }); - 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(); + // if user modifies input value using context menu in IE, we need "paste", "cut" and "drop" events to catch it + if ($sniffer.hasEvent('paste')) { + element.on('paste cut drop', 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); } - } - }); - }, + }); + } + }); + } - $$runValidators: function $$runValidators(modelValue, viewValue, doneCallback) { - this.$$currentValidationRunId++; - var localValidationRunId = this.$$currentValidationRunId; - var that = this; + ctrl.$render = function() { + // Workaround for Firefox validation #12102. + var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue; + if (element.val() !== value) { + element.val(value); + } + }; +} - // check parser error - if (!processParseErrors()) { - validationDone(false); - return; - } - if (!processSyncValidators()) { - validationDone(false); - return; +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(); } - processAsyncValidators(); - function processParseErrors() { - var errorKey = that.$$parserName; + return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds); + } + } - 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); - }); - } + return NaN; +} - // Set the parse error last, to prevent unsetting it, should a $validators key == parserName - setValidity(errorKey, that.$$parserValid); - return that.$$parserValid; - } - return true; +function createDateParser(regexp, mapping) { + return function(iso, previousDate) { + 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); - 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; + if (parts) { + parts.shift(); + if (previousDate) { + map = { + yyyy: previousDate.getFullYear(), + MM: previousDate.getMonth() + 1, + dd: previousDate.getDate(), + HH: previousDate.getHours(), + mm: previousDate.getMinutes(), + ss: previousDate.getSeconds(), + sss: previousDate.getMilliseconds() / 1000 + }; + } else { + map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 }; } - 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); + forEach(parts, function(part, index) { + if (index < mapping.length) { + map[mapping[index]] = +part; } - 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); + + var date = new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0); + if (map.yyyy < 100) { + // In the constructor, 2-digit years map to 1900-1999. + // Use `setFullYear()` to set the correct year. + date.setFullYear(map.yyyy); } + + return date; } + } - function setValidity(name, isValid) { - if (localValidationRunId === that.$$currentValidationRunId) { - that.$setValidity(name, isValid); - } + return NaN; + }; +} + +function createDateInputType(type, regexp, parseDate, format) { + return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) { + badInputChecker(scope, element, attr, ctrl, type); + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + + var isTimeType = type === 'time' || type === 'datetimelocal'; + var previousDate; + var previousTimezone; + + 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! + return parseDateAndConvertTimeZoneToLocal(value, previousDate); } + ctrl.$$parserName = type; + return undefined; + }); - function validationDone(allValid) { - if (localValidationRunId === that.$$currentValidationRunId) { + ctrl.$formatters.push(function(value) { + if (value && !isDate(value)) { + throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value); + } + if (isValidDate(value)) { + previousDate = value; + var timezone = ctrl.$options.getOption('timezone'); - doneCallback(allValid); + if (timezone) { + previousTimezone = timezone; + previousDate = convertTimezoneToLocal(previousDate, timezone, true); } + + return formatter(value, timezone); + } else { + previousDate = null; + previousTimezone = null; + return ''; } - }, + }); - /** - * @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; + 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(); + }); + } - this.$$timeout.cancel(this.$$pendingDebounce); + function isValidDate(value) { + // Invalid Date: getTime() returns NaN + return value && !(value.getTime && value.getTime() !== value.getTime()); + } - // 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; + function parseObservedDateValue(val) { + return isDefined(val) && !isDate(val) ? parseDateAndConvertTimeZoneToLocal(val) || undefined : val; + } + + function parseDateAndConvertTimeZoneToLocal(value, previousDate) { + var timezone = ctrl.$options.getOption('timezone'); + + if (previousTimezone && previousTimezone !== timezone) { + // If the timezone has changed, adjust the previousDate to the default timezone + // so that the new date is converted with the correct timezone offset + previousDate = addDateMinutes(previousDate, timezoneToOffset(previousTimezone)); } - this.$$updateEmptyClasses(viewValue); - this.$$lastCommittedViewValue = viewValue; - // change to dirty - if (this.$pristine) { - this.$setDirty(); + var parsedDate = parseDate(value, previousDate); + + if (!isNaN(parsedDate) && timezone) { + parsedDate = convertTimezoneToLocal(parsedDate, timezone); } - this.$$parseAndValidate(); - }, + return parsedDate; + } - $$parseAndValidate: function $$parseAndValidate() { - var viewValue = this.$$lastCommittedViewValue; - var modelValue = viewValue; - var that = this; + function formatter(value, timezone) { + var targetFormat = format; - this.$$parserValid = isUndefined(modelValue) ? undefined : true; + if (isTimeType && isString(ctrl.$options.getOption('timeSecondsFormat'))) { + targetFormat = format + .replace('ss.sss', ctrl.$options.getOption('timeSecondsFormat')) + .replace(/:$/, ''); + } - // Reset any previous parse error - this.$setValidity(this.$$parserName, null); - this.$$parserName = 'parse'; + var formatted = $filter('date')(value, targetFormat, timezone); - 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 (isTimeType && ctrl.$options.getOption('timeStripZeroSeconds')) { + formatted = formatted.replace(/(?::00)?(?:\.000)?$/, ''); } - if (isNumberNaN(this.$modelValue)) { - // this.$modelValue has not been touched yet... - this.$modelValue = this.$$ngModelGet(this.$$scope); + + return formatted; + } + }; +} + +function badInputChecker(scope, element, attr, ctrl, parserName) { + 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) || {}; + if (validity.badInput || validity.typeMismatch) { + ctrl.$$parserName = parserName; + return undefined; } - var prevModelValue = this.$modelValue; - var allowInvalid = this.$options.getOption('allowInvalid'); - this.$$rawModelValue = modelValue; - if (allowInvalid) { - this.$modelValue = modelValue; - writeToModelIfNeeded(); + return value; + }); + } +} + +function numberFormatterParser(ctrl) { + ctrl.$parsers.push(function(value) { + if (ctrl.$isEmpty(value)) return null; + if (NUMBER_REGEXP.test(value)) return parseFloat(value); + + ctrl.$$parserName = 'number'; + 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; + }); +} - // 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 parseNumberAttrVal(val) { + if (isDefined(val) && !isNumber(val)) { + val = parseFloat(val); + } + return !isNumberNaN(val) ? val : undefined; +} - function writeToModelIfNeeded() { - if (that.$modelValue !== prevModelValue) { - that.$$writeModelToScope(); - } +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]); } - }, + } - $$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); - }, + return 0; + } - /** - * @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. - * - *
    - * 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. - *
    - * - * @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); + 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, 'number'); + numberFormatterParser(ctrl); + baseInputType(scope, element, attr, ctrl, $sniffer, $browser); + + var minVal; + var maxVal; + + if (isDefined(attr.min) || attr.ngMin) { + ctrl.$validators.min = function(modelValue, viewValue) { + return ctrl.$isEmpty(viewValue) || isUndefined(minVal) || viewValue >= 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(modelValue, viewValue) { + return ctrl.$isEmpty(viewValue) || isUndefined(maxVal) || viewValue <= 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, 'range'); + 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(); + } + } - $$debounceViewValueCommit: function $$debounceViewValueCommit(trigger) { - var debounceDelay = this.$options.getOption('debounce'); + function maxChange(val) { + maxVal = parseNumberAttrVal(val); + // ignore changes before model is initialized + if (isNumberNaN(ctrl.$modelValue)) { + return; + } - if (isNumber(debounceDelay[trigger])) { - debounceDelay = debounceDelay[trigger]; - } else if (isNumber(debounceDelay['default']) && this.$options.getOption('updateOn').indexOf(trigger) === -1) { - debounceDelay = debounceDelay['default']; - } else if (isNumber(debounceDelay['*'])) { - debounceDelay = debounceDelay['*']; + 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(); + } + } - 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.$$rootScope.$$phase) { - this.$commitViewValue(); - } else { - this.$$scope.$apply(function () { - that.$commitViewValue(); - }); + 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.$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.$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(ev) { + var value; + if (element[0].checked) { + value = attr.value; + if (doTrim) { + value = trim(value); } - }, + ctrl.$setViewValue(value, ev && ev.type); + } + }; - /** - * @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. - * - *
    - * **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. - *
    - * - *
    - * **Note:** it is not possible to override the `getterSetter` option. - *
    - * - * @param {Object} options a hash of settings to override the previous options - * - */ - $overrideModelOptions: function $overrideModelOptions(options) { - this.$options = this.$options.createChild(options); - this.$$setUpdateOnEvents(); - }, + element.on('change', listener); - /** - * @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. - * - * - -
    -
    - Search Fruit: - -
    -
    - Model:
    -
    {{selectedFruit | json}}
    -
    -
    -
    - - 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}); - }; - } - }); - - -
    - -
      -
    • - -
    • -
    -
    -
    - *
    - * - */ - $processModelValue: function $processModelValue() { - var viewValue = this.$$format(); + 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(ev) { + ctrl.$setViewValue(element[0].checked, ev && ev.type); + }; + + element.on('change', 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 AngularJS 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 AngularJS 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 AngularJS 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$')`.
    + * **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 AngularJS expression to be executed when input changes due to user + * interaction with the input element. + * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input. + * + * @knownIssue + * + * When specifying the `placeholder` attribute of ` + *
    {{ list | json }}
    + * + * + * 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]'); + * }); + * + * + * + */ +var ngListDirective = function() { + return { + restrict: 'A', + priority: 100, + require: 'ngModel', + link: function(scope, element, attr, ctrl) { + var ngList = attr.ngList || ', '; + var trimValues = attr.ngTrim !== 'false'; + var separator = trimValues ? trim(ngList) : ngList; - match = lhs.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/); + var parse = function(viewValue) { + // If the viewValue is invalid (say required but empty) it will be `undefined` + if (isUndefined(viewValue)) return; - 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]; + var list = []; - 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); + if (viewValue) { + forEach(viewValue.split(separator), function(value) { + if (value) list.push(trimValues ? trim(value) : value); + }); } - var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn; - var hashFnLocals = { $id: hashKey }; + return list; + }; - if (trackByExp) { - trackByExpGetter = $parse(trackByExp); - } else { - trackByIdArrayFn = function trackByIdArrayFn(key, value) { - return hashKey(value); - }; - trackByIdObjFn = function trackByIdObjFn(key) { - return key; - }; + ctrl.$parsers.push(parse); + ctrl.$formatters.push(function(value) { + if (isArray(value)) { + return value.join(ngList); } - return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) { + return undefined; + }); - 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); - }; - } + // Override the standard $isEmpty because an empty array means the input is empty. + ctrl.$isEmpty = function(value) { + return !value || !value.length; + }; + } + }; +}; - // 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; - } +/* 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 +*/ - 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; - } - } +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'; - // 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(); - } +var ngModelMinErr = minErr('ngModel'); - // 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]; +/** + * @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.} $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); + * ``` - if (block.scope) { - // if we have already seen this object, then we need to reuse the - // associated scope/element + * + * @property {Array.} $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.} $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.} $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.} $viewChangeListeners Array of functions to execute whenever + * a change to {@link ngModel.NgModelController#$viewValue `$viewValue`} has caused a change + * to {@link ngModel.NgModelController#$modelValue `$modelValue`}. + * 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. + * AngularJS 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. ``). + * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks + * that content using the `$sce` service. + * + * + + [contenteditable] { + border: 1px solid black; + background-color: white; + min-height: 20px; + } - nextNode = previousNode; + .ng-invalid { + border: 1px solid red; + } - // skip nodes that are already pending removal via leave animation - do { - nextNode = nextNode.nextSibling; - } while (nextNode && nextNode[NG_REMOVED]); + + + 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 || '')); + }; - if (getBlockStart(block) !== nextNode) { - // existing item which got moved - $animate.move(getBlockNodes(block.clone), null, previousNode); + // 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
    behind + // If strip-br attribute is provided then we strip this out + if (attrs.stripBr && html === '
    ') { + html = ''; } - 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); - }); + ngModel.$setViewValue(html); } } - lastBlockMap = nextBlockMap; - }); - }; + }; + }]); +
    + +
    +
    Change me!
    + Required! +
    + +
    +
    + + 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/); + }); + + *
    + * + * + */ +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.$$parserName = 'parse'; + + this.$$currentValidationRunId = 0; + + this.$$scope = $scope; + this.$$rootScope = $scope.$root; + 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() { + 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)); + } + }, + - var NG_HIDE_CLASS = 'ng-hide'; - var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate'; /** - * @ngdoc directive - * @name ngShow - * @multiElement + * @ngdoc method + * @name ngModel.NgModelController#$render * * @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}). + * Called when the view needs to be updated. It is expected that the user of the ng-model + * directive will implement this method. * - * ```html - * - *
    + * The `$render()` method is invoked in the following situations: * - * - *
    - * ``` - * - * 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. + * * `$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. * - * ## Why is `!important` used? + * 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 * - * 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. + * @description + * This is called when we need to determine if the value of an input is empty. * - * 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. + * For instance, the required directive does this to work out if the input has data or not. * - * ### Overriding `.ng-hide` + * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`. * - * 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. + * 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. * - * ```css - * .ng-hide:not(.ng-hide-animate) { - * /* These are just alternative ways of hiding an element */ - * display: block!important; - * position: absolute; - * top: -9999px; - * left: -9999px; - * } - * ``` + * @param {*} value The value of the input to check for emptiness. + * @returns {boolean} True if `value` is "empty". + */ + $isEmpty: function(value) { + // eslint-disable-next-line no-self-compare + return isUndefined(value) || value === '' || value === null || value !== value; + }, + + $$updateEmptyClasses: function(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 * - * By default you don't need to override anything in CSS and the animations will work around the - * display style. + * @description + * Sets the control to its pristine state. * - * @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. | + * 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() { + 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 * - * 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. + * @description + * Sets the control to its dirty state. * - * ```css - * /* A working example can be found at the bottom of this page. */ - * .my-element.ng-hide-add, .my-element.ng-hide-remove { - * transition: all 0.5s linear; - * } + * 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() { + 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 * - * .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 { ... } - * ``` + * @description + * Sets the control to its untouched state. * - * 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. + * 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() { + this.$touched = false; + this.$untouched = true; + this.$$animate.setClass(this.$$element, UNTOUCHED_CLASS, TOUCHED_CLASS); + }, + + /** + * @ngdoc method + * @name ngModel.NgModelController#$setTouched * - * @element ANY - * @param {expression} ngShow If the {@link guide/expression expression} is truthy/falsy then the - * element is shown/hidden respectively. + * @description + * Sets the control to its touched state. * - * @example - * A simple example, animating the element's opacity: + * 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() { + this.$touched = true; + this.$untouched = false; + this.$$animate.setClass(this.$$element, TOUCHED_CLASS, UNTOUCHED_CLASS); + }, + + /** + * @ngdoc method + * @name ngModel.NgModelController#$rollbackViewValue * - - - Show:
    -
    - I show up when your checkbox is checked. -
    -
    - - .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; - } - - - 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); - }); - -
    + * @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. * - *
    - * @example - * A more complex example, featuring different show/hide animations: + * 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`. * - - - Show:
    -
    - I show up when your checkbox is checked. -
    -
    - - 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; - } - - - 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); - }); - -
    + * In this case, you can use `$rollbackViewValue()` to manually cancel the debounced / future update + * and reset the input to the last committed view value. * - * @knownIssue + * 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 AngularJS's + * dirty checking mechanism is not able to tell whether the model has actually changed or not. * - * ### Flickering when using ngShow to toggle between elements + * 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. * - * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can - * happen that both the element to show and the element to hide are visible for a very short time. + * @example + * + * + * angular.module('cancel-update-example', []) * - * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations - * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than - * other browsers. + * .controller('CancelUpdateController', ['$scope', function($scope) { + * $scope.model = {value1: '', value2: ''}; * - * There are several way to mitigate this problem: + * $scope.setEmpty = function(e, value, rollback) { + * if (e.keyCode === 27) { + * e.preventDefault(); + * if (rollback) { + * $scope.myForm[value].$rollbackViewValue(); + * } + * $scope.model[value] = ''; + * } + * }; + * }]); + * + * + *
    + *

    Both of these inputs are only updated if they are blurred. Hitting escape should + * empty them. Follow these steps and observe the difference:

    + *
      + *
    1. Type something in the input. You will see that the model is not yet updated
    2. + *
    3. Press the Escape key. + *
        + *
      1. 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. + *
      2. + *
      3. 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. + *
      4. + *
      + *
    4. + *
    + * + *
    + *
    + *

    Without $rollbackViewValue():

    + * + * value1: "{{ model.value1 }}" + *
    + * + *
    + *

    With $rollbackViewValue():

    + * + * value2: "{{ model.value2 }}" + *
    + *
    + *
    + *
    + + div { + display: table-cell; + } + div:nth-child(1) { + padding-right: 30px; + } + + + *
    + */ + $rollbackViewValue: function() { + this.$$timeout.cancel(this.$$pendingDebounce); + this.$viewValue = this.$$lastCommittedViewValue; + this.$render(); + }, + + /** + * @ngdoc method + * @name ngModel.NgModelController#$validate * - * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}. - * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}. - * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements. - * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}. - * - Define an animation on the affected elements. + * @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. */ - 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 + $validate: function() { + // 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(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; + + 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 directive - * @name ngHide - * @multiElement + * @ngdoc method + * @name ngModel.NgModelController#$commitViewValue * * @description - * The `ngHide` directive shows or hides the given HTML element based on the expression provided to - * the `ngHide` attribute. + * Commit a pending update to the `$modelValue`. * - * 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}). + * 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() { + 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() { + var viewValue = this.$$lastCommittedViewValue; + var modelValue = viewValue; + var that = this; + + this.$$parserValid = isUndefined(modelValue) ? undefined : true; + + // Reset any previous parse error + this.$setValidity(this.$$parserName, null); + this.$$parserName = 'parse'; + + 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() { + 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 * - * ```html - * - *
    + * @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. * - * - *
    - * ``` + *
    + * 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. + *
    * - * 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. + * @param {*} value value from the view. + * @param {string} trigger Event that triggered the update. + */ + $setViewValue: function(value, trigger) { + this.$viewValue = value; + if (this.$options.getOption('updateOnDefault')) { + this.$$debounceViewValueCommit(trigger); + } + }, + + $$debounceViewValueCommit: function(trigger) { + var debounceDelay = this.$options.getOption('debounce'); + + if (isNumber(debounceDelay[trigger])) { + debounceDelay = debounceDelay[trigger]; + } else if (isNumber(debounceDelay['default']) && + this.$options.getOption('updateOn').indexOf(trigger) === -1 + ) { + debounceDelay = debounceDelay['default']; + } else if (isNumber(debounceDelay['*'])) { + debounceDelay = debounceDelay['*']; + } + + 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.$$rootScope.$$phase) { + this.$commitViewValue(); + } else { + this.$$scope.$apply(function() { + that.$commitViewValue(); + }); + } + }, + + /** + * @ngdoc method * - * ## Why is `!important` used? + * @name ngModel.NgModelController#$overrideModelOptions * - * 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. + * @description * - * 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. + * Override the current model options settings programmatically. * - * ### Overriding `.ng-hide` + * 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. * - * 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. + * See {@link ngModelOptions} for information about what options can be specified + * and how model option inheritance works. * - * ```css - * .ng-hide:not(.ng-hide-animate) { - * /* These are just alternative ways of hiding an element */ - * display: block!important; - * position: absolute; - * top: -9999px; - * left: -9999px; - * } - * ``` + *
    + * **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. + *
    * - * By default you don't need to override in CSS anything and the animations will work around the - * display style. + *
    + * **Note:** it is not possible to override the `getterSetter` option. + *
    * - * @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. | + * @param {Object} options a hash of settings to override the previous options * - * 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. + */ + $overrideModelOptions: function(options) { + this.$options = this.$options.createChild(options); + this.$$setUpdateOnEvents(); + }, + + /** + * @ngdoc method * - * ```css - * /* A working example can be found at the bottom of this page. */ - * .my-element.ng-hide-add, .my-element.ng-hide-remove { - * transition: all 0.5s linear; - * } + * @name ngModel.NgModelController#$processModelValue + + * @description * - * .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 { ... } - * ``` + * Runs the model -> view pipeline on the current + * {@link ngModel.NgModelController#$modelValue $modelValue}. * - * 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. + * The following actions are performed by this method: * - * @element ANY - * @param {expression} ngHide If the {@link guide/expression expression} is truthy/falsy then the - * element is hidden/shown respectively. + * - 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. * - * @example - * A simple example, animating the element's opacity: + * This method is called by ngModel internally when the bound scope value changes. + * Application developers usually do not have to call this function themselves. * - - - Hide:
    -
    - I hide when your checkbox is checked. -
    -
    - - .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; - } - - - 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); - }); - -
    + * 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 - * A more complex example, featuring different show/hide animations: - * - - - Hide:
    -
    - I hide when your checkbox is checked. + * 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. + * + * + +
    +
    + Search Fruit: +
    - - - 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; - } - - - 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); +
    + Model:
    +
    {{selectedFruit | json}}
    +
    +
    +
    + + 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}); + }; + } }); - -
    - * - * @knownIssue - * - * ### Flickering when using ngHide to toggle between elements - * - * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can - * happen that both the element to show and the element to hide are visible for a very short time. - * - * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations - * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than - * other browsers. - * - * There are several way to mitigate this problem: + + +
    + +
      +
    • + +
    • +
    +
    +
    + * * - * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}. - * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}. - * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements. - * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}. - * - Define an animation on the affected elements. */ - 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 - }); - }); - } - }; - }]; + $processModelValue: function() { + 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); + } + }, /** - * @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 - - - - - -
    - Sample Text -
    myStyle={{myStyle}}
    -
    - - span { - color: black; - } - - - 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)'); - }); - -
    + * This method is called internally to run the $formatters on the $modelValue */ - var ngStyleDirective = ngDirective(function (scope, element, attr) { - scope.$watchCollection(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) { - if (oldStyles && newStyles !== oldStyles) { - forEach(oldStyles, function (val, style) { - element.css(style, ''); - }); - } - if (newStyles) element.css(newStyles); - }); - }); + $$format: function() { + var formatters = this.$formatters, + idx = formatters.length; + + var viewValue = this.$modelValue; + while (idx--) { + viewValue = formatters[idx](viewValue); + } + + return viewValue; + }, /** - * @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. - * - *
    - * 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`. - *
    - - * @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 - * - * ``` - * - * ... - * ... - * ... - * - * ``` - * - * - * @scope - * @priority 1200 - * @param {*} ngSwitch|on expression to match against ng-switch-when. - * 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 - - -
    - - selection={{selection}} -
    -
    -
    Settings Div
    -
    Home Span
    -
    default
    -
    -
    -
    - - angular.module('switchExample', ['ngAnimate']) + * This method is called internally when the bound scope value changes. + */ + $$setModelValue: function(modelValue) { + this.$modelValue = this.$$rawModelValue = modelValue; + this.$$parserValid = undefined; + this.$processModelValue(); + }, + + $$setUpdateOnEvents: function() { + 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(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 AngularJS 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(object, property) { + object[property] = true; + }, + unset: function(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: + * + *
    + * //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;
    + * }
    + * 
    + * + * @example + * ### Basic Usage + * + + + +

    + Update input to see transitions when valid/invalid. + Integer is a valid value. +

    +
    + +
    +
    + *
    + * + * @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. + * + *
    + * **Best Practice:** It's best to keep getters fast because AngularJS is likely to call them more + * frequently than other parts of your code. + *
    + * + * 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 `
    `, which will enable this behavior for all ``s within it. See + * {@link ng.directive:ngModelOptions `ngModelOptions`} for more. + * + * The following example shows how to use `ngModel` with a getter/setter: + * + * @example + * + +
    + + + +
    user.name = 
    +
    +
    + + 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; + } + }; + }]); + + *
    + */ +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); - scope.$watch(watchExpr, function ngSwitchWatchAction(value) { - var i, ii; + return { + pre: function ngModelPreLink(scope, element, attr, ctrls) { + var modelCtrl = ctrls[0], + formCtrl = ctrls[1] || modelCtrl.$$parentForm, + optionsCtrl = ctrls[2]; - // Start with the last, in case the array is modified during the loop - while (previousLeaveAnimations.length) { - $animate.cancel(previousLeaveAnimations.pop()); + if (optionsCtrl) { + modelCtrl.$options = optionsCtrl.$options; } - 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)); - } + modelCtrl.$$initGetterSetters(); - selectedElements.length = 0; - selectedScopes.length = 0; + // notify others, especially parent forms + formCtrl.$addControl(modelCtrl); - 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 }; + attr.$observe('name', function(newValue) { + if (modelCtrl.$name !== newValue) { + modelCtrl.$$parentForm.$$renameControl(modelCtrl, newValue); + } + }); - selectedElements.push(block); - $animate.enter(caseElement, anchor.parent(), anchor); - }); - }); - } - }); - } - }; - }]; + scope.$on('$destroy', function() { + modelCtrl.$$parentForm.$removeControl(modelCtrl); + }); + }, + post: function ngModelPostLink(scope, element, attr, ctrls) { + var modelCtrl = ctrls[0]; + modelCtrl.$$setUpdateOnEvents(); - var ngSwitchWhenDirective = ngDirective({ - transclude: 'element', - priority: 1200, - require: '^ngSwitch', - multiElement: true, - link: function link(scope, element, attrs, ctrl, $transclude) { + function setTouched() { + modelCtrl.$setTouched(); + } - var cases = attrs.ngSwitchWhen.split(attrs.ngSwitchWhenSeparator).sort().filter( - // Filter duplicate cases - function (element, index, array) { - return array[index - 1] !== element; - }); + element.on('blur', function() { + if (modelCtrl.$touched) return; - forEach(cases, function (whenCase) { - ctrl.cases['!' + whenCase] = ctrl.cases['!' + whenCase] || []; - ctrl.cases['!' + whenCase].push({ transclude: $transclude, element: element }); - }); + if ($rootScope.$$phase) { + scope.$evalAsync(setTouched); + } else { + scope.$apply(setTouched); + } + }); + } + }; } - }); + }; +}]; - 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 }); - } - }); +/* 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 directive - * @name ngTransclude - * @restrict EAC - * + * @ngdoc method + * @name ModelOptions#getOption + * @param {string} name the name of the option to retrieve + * @returns {*} the value of the option * @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. - * - * - * - *
    - *
    - *
    - * {{text}} - *
    - *
    - * - * 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'); - * }); - * - *
    - * - * @example - * ### Transclude fallback content - * This example shows how to use `NgTransclude` with fallback content, that - * is displayed if no transcluded content is provided. - * - * - * - * - * - * - * - * - * Button2 - * - * - * - * it('should have different transclude element content', function() { - * expect(element(by.id('fallback')).getText()).toBe('Button1'); - * expect(element(by.id('modified')).getText()).toBe('Button2'); - * }); - * - * - * - * @example - * ### Multi-slot transclusion - * This example demonstrates using multi-slot transclusion in a component directive. - * - * - * - *
    - *
    - *
    - * - * {{title}} - *

    {{text}}

    - *
    - *
    - *
    - * - * angular.module('multiSlotTranscludeExample', []) - * .directive('pane', function() { - * return { - * restrict: 'E', - * transclude: { - * 'title': '?paneTitle', - * 'body': 'paneBody', - * 'footer': '?paneFooter' - * }, - * template: '
    ' + - * '
    Fallback Title
    ' + - * '
    ' + - * '' + - * '
    ' - * }; - * }) - * .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...'; - * }]); - *
    - * - * 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'); - * }); - * - *
    + * Returns the value of the given option */ - var ngTranscludeMinErr = minErr('ngTransclude'); - var ngTranscludeDirective = ['$compile', function ($compile) { - return { - restrict: 'EAC', - compile: function ngTranscludeCompile(tElement) { + getOption: function(name) { + return this.$$options[name]; + }, - // Remove and cache any original content to act as a fallback - var fallbackLinkFn = $compile(tElement.contents()); - tElement.empty(); + /** + * @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(options) { + var inheritAll = false; - return function ngTranscludePostLink($scope, $element, $attrs, controller, $transclude) { + // make a shallow copy + options = extend({}, options); - 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)); + // 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 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 (inheritAll) { + // We have a property of the form: `"*": "$inherit"` + delete options['*']; + defaults(options, this.$$options); + } - // If the slot is required and no transclusion content is provided then this call will throw an error - $transclude(ngTranscludeCloneAttachFn, null, slotName); + // Finally add in any missing defaults + defaults(options, defaultModelOptions.$$options); - // If the slot is optional and no transclusion content is provided then use the fallback content - if (slotName && !$transclude.isSlotFilled(slotName)) { - useFallbackContent(); - } + return new ModelOptions(options); + } +}; - 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); - }); - } +defaultModelOptions = new ModelOptions({ + updateOn: '', + updateOnDefault: true, + debounce: 0, + getterSetter: false, + allowInvalid: false, + timezone: null +}); - 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 ` - - Load inlined template -
    -
    - - 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/); - }); - -
    - */ - 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; +/** + * @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 AngularJS expression. This expression should evaluate to an object, whose properties contain + * the settings. For example: `
    + *
    + * + *
    + *
    + * ``` + * + * 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 + *
    + *
    + * + *
    + *
    + * ``` + * + * 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 `
    ` 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. + * + * + * + *
    + *
    + *
    + *
    + *
    + *
    user.name = 
    + *
    + *
    + * + * 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(); + * } + * }; + * }]); + * + * + * 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'); + * }); + * + *
    + * + * ### 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. + * + * + * + *
    + *
    + * Name: + * + *
    + *
    + *
    user.name = 
    + *
    + *
    + * + * angular.module('optionsExample', []) + * .controller('ExampleController', ['$scope', function($scope) { + * $scope.user = { name: 'say' }; + * }]); + * + *
    + * + * ### Default events, extra triggers, and catch-all debounce values + * + * This example shows the relationship between "default" update events and + * additional `updateOn` triggers. + * + * `default` events are those that are bound to the control, and when fired, update the `$viewValue` + * via {@link ngModel.NgModelController#$setViewValue $setViewValue}. Every event that is not listed + * in `updateOn` is considered a "default" event, since different control types have different + * default events. + * + * The control in this example updates by "default", "click", and "blur", with different `debounce` + * values. You can see that "click" doesn't have an individual `debounce` value - + * therefore it uses the `*` debounce value. + * + * There is also a button that calls {@link ngModel.NgModelController#$setViewValue $setViewValue} + * directly with a "custom" event. Since "custom" is not defined in the `updateOn` list, + * it is considered a "default" event and will update the + * control if "default" is defined in `updateOn`, and will receive the "default" debounce value. + * Note that this is just to illustrate how custom controls would possibly call `$setViewValue`. + * + * You can change the `updateOn` and `debounce` configuration to test different scenarios. This + * is done with {@link ngModel.NgModelController#$overrideModelOptions $overrideModelOptions}. + * + + + + + + angular.module('optionsExample', []) + .component('modelUpdateDemo', { + templateUrl: 'template.html', + controller: function() { + this.name = 'Chinua'; + + this.options = { + updateOn: 'default blur click', + debounce: { + default: 2000, + blur: 0, + '*': 1000 + } + }; - $templateCache.put(templateUrl, text); - } - } - }; - }]; + this.updateEvents = function() { + var eventList = this.options.updateOn.split(' '); + eventList.push('*'); + var events = {}; - /* exported selectDirective, optionDirective */ + for (var i = 0; i < eventList.length; i++) { + events[eventList[i]] = this.options.debounce[eventList[i]]; + } - var noopNgModelController = { $setViewValue: noop, $render: noop }; + this.events = events; + }; - 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); - } + this.updateOptions = function() { + var options = angular.extend(this.options, { + updateOn: Object.keys(this.events).join(' ').replace('*', ''), + debounce: this.events + }); - /** - * @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. - * - * - * - *
    - *
    - *
    - *
    - * - * Error: The current model doesn't match any option
    - * - *
    - *
    - *
    - *
    - * - * 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; - * }; - * } - * - * }; - * }); - * - *
    - * - * - * @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. - * - * - * - *
    - *
    - *
    - *
    - * Error: Please select a value
    - * - *
    - *
    - *
    - *
    - * - * 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); - * }; - * } - * }; - * }); - * - * - * 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'); - }); - * - *
    - * - * - */ - var SelectController = ['$element', '$scope', /** @this */function ($element, $scope) { + this.form.input.$overrideModelOptions(options); + }; - var self = this, - optionsMap = new NgMap(); + // Initialize the event form + this.updateEvents(); + } + }); +
    + +
    + Input: +
    + Model: {{$ctrl.name}} +
    + + +
    +
    + updateOn
    + + + + + + + + + + + +
    OptionDebounce value
    {{key}}
    - self.selectValueMap = {}; // Keys are the hashed values, values the original values +
    + +
    +
    +
    + * + * + * ## 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: + * + * + * + *
    + *
    + * + *
    + *
    user.name = 
    + *
    + *
    + * + * angular.module('getterSetterExample', []) + * .controller('ExampleController', ['$scope', function($scope) { + * var _name = 'Brian'; + * $scope.user = { + * name: function(newName) { + * return angular.isDefined(newName) ? (_name = newName) : _name; + * } + * }; + * }]); + * + *
    + * + * + * ## 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()`}. + * See also the example for + * {@link ngModelOptions#default-events-extra-triggers-and-catch-all-debounce-values + * Default events, extra triggers, and catch-all debounce values}. + * + * + * ## Specifying timezones + * + * You can specify the timezone that date/time input directives expect by providing its name in the + * `timezone` property. + * + * + * ## Formatting the value of `time` and `datetime-local` + * + * With the options `timeSecondsFormat` and `timeStripZeroSeconds` it is possible to adjust the value + * that is displayed in the control. Note that browsers may apply their own formatting + * in the user interface. + * + + + + + + angular.module('timeExample', []) + .component('timeExample', { + templateUrl: 'timeExample.html', + controller: function() { + this.time = new Date(1970, 0, 1, 14, 57, 0); - // If the ngModel doesn't get provided then provide a dummy noop version to prevent errors - self.ngModelCtrl = noopNgModelController; - self.multiple = false; + this.options = { + timeSecondsFormat: 'ss', + timeStripZeroSeconds: true + }; - // 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(' + * + * + * @param {Object} ngModelOptions options to apply to {@link ngModel} directives on this element and + * and its descendents. + * + * **General options**: + * + * - `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', + * debounce: { 'default': 500, 'blur': 0 } + * }" + * ``` + * You can use the `*` key to specify a debounce value that applies to all events that are not + * specifically listed. In the following example, `mouseup` would have a debounce delay of 1000: + * ``` + * ng-model-options="{ + * updateOn: 'default blur mouseup', + * debounce: { 'default': 500, 'blur': 0, '*': 1000 } + * }" + * ``` + * - `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. + * + * + * **Input-type specific options**: + * + * - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for + * ``, ``, ... . 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. + * Note that changing the timezone will have no effect on the current date, and is only applied after + * the next input / model change. + * + * - `timeSecondsFormat`: Defines if the `time` and `datetime-local` types should show seconds and + * milliseconds. The option follows the format string of {@link date date filter}. + * By default, the options is `undefined` which is equal to `'ss.sss'` (seconds and milliseconds). + * The other options are `'ss'` (strips milliseconds), and `''` (empty string), which strips both + * seconds and milliseconds. + * Note that browsers that support `time` and `datetime-local` require the hour and minutes + * part of the time string, and may show the value differently in the user interface. + * {@link ngModelOptions#formatting-the-value-of-time-and-datetime-local- See the example}. + * + * - `timeStripZeroSeconds`: Defines if the `time` and `datetime-local` types should strip the + * seconds and milliseconds from the formatted value if they are zero. This option is applied + * after `timeSecondsFormat`. + * This option can be used to make the formatting consistent over different browsers, as some + * browsers with support for `time` will natively hide the milliseconds and + * seconds if they are zero, but others won't, and browsers that don't implement these input + * types will always show the full string. + * {@link ngModelOptions#formatting-the-value-of-time-and-datetime-local- See the example}. + * + */ +var ngModelOptionsDirective = function() { + NgModelOptionsController.$inject = ['$attrs', '$scope']; + function NgModelOptionsController($attrs, $scope) { + this.$$attrs = $attrs; + this.$$scope = $scope; + } + NgModelOptionsController.prototype = { + $onInit: function() { + var parentOptions = this.parentCtrl ? this.parentCtrl.$options : defaultModelOptions; + var modelOptionsDefinition = this.$$scope.$eval(this.$$attrs.ngModelOptions); - // 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; + this.$options = parentOptions.createChild(modelOptionsDefinition); + } + }; - self.renderUnknownOption = function (val) { - var unknownVal = self.generateUnknownOptionValue(val); - self.unknownOption.val(unknownVal); - $element.prepend(self.unknownOption); - setOptionSelectedStatus(self.unknownOption, true); - $element.val(unknownVal); - }; + return { + restrict: 'A', + // ngModelOptions needs to run before ngModel and input directives + priority: 10, + require: {parentCtrl: '?^^ngModelOptions'}, + bindToController: true, + controller: NgModelOptionsController + }; +}; - 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) + ' ?'; - }; +// 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; + } + }); +} - self.removeUnknownOption = function () { - if (self.unknownOption.parent()) self.unknownOption.remove(); - }; +/** + * @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. + * + + +
    Normal: {{1 + 2}}
    +
    Ignored: {{1 + 2}}
    +
    + + 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/); + }); + +
    + */ +var ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 }); - self.selectEmptyOption = function () { - if (self.emptyOption) { - $element.val(''); - setOptionSelectedStatus(self.emptyOption, true); - } - }; +/* exported ngOptionsDirective */ - self.unselectEmptyOption = function () { - if (self.hasEmptyOption) { - setOptionSelectedStatus(self.emptyOption, false); - } - }; +/* global jqLiteRemove */ - $scope.$on('$destroy', function () { - // disable unknown option so that we don't do work when the whole select is being destroyed - self.renderUnknownOption = noop; - }); +var ngOptionsMinErr = minErr('ngOptions'); - // 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; +/** + * @ngdoc directive + * @name ngOptions + * @restrict A + * + * @description + * + * The `ngOptions` attribute can be used to dynamically generate a list of `` + * DOM element. + * * `disable`: The result of this expression will be used to disable the rendered ` - * - *
    - * - *
    - *
    - *
    - * singleSelect = {{data.singleSelect}} - * - *
    - *
    - *
    - * multipleSelect = {{data.multipleSelect}}
    - * - *
    - * - * - * angular.module('staticSelect', []) - * .controller('ExampleController', ['$scope', function($scope) { - * $scope.data = { - * singleSelect: null, - * multipleSelect: [], - * option1: 'option-1' - * }; - * - * $scope.forceUnknownOption = function() { - * $scope.data.singleSelect = 'nonsense'; - * }; - * }]); - * - * - * - * @example - * ### Using `ngRepeat` to generate `select` options - * - * - *
    - *
    - * - * - *
    - *
    - * model = {{data.model}}
    - *
    - *
    - * - * 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'} - * ] - * }; - * }]); - * - *
    - * - * @example - * ### Using `ngValue` to bind the model to an array of objects - * - * - *
    - *
    - * - * - *
    - *
    - *
    model = {{data.model | json}}

    - *
    - *
    - * - * 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'} - * ] - * }; - * }]); - * - *
    - * - * @example - * ### Using `select` with `ngOptions` and setting a default value - * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples. - * - * - * - *
    - *
    - * - * - *
    - *
    - * option = {{data.selectedOption}}
    - *
    - *
    - * - * 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 - * }; - * }]); - * - *
    - * - * @example - * ### Binding `select` to a non-string value via `ngModel` parsing / formatting - * - * - * - * - * {{ model }} - * - * - * 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; - * }); - * } - * }; - * }); - * - * - * it('should initialize to model', function() { - * expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two'); - * }); - * - * - * - */ - var selectDirective = function selectDirective() { + }; - return { - restrict: 'E', - require: ['select', '?ngModel'], - controller: SelectController, - priority: 1, - link: { - pre: selectPreLink, - post: selectPostLink - } - }; + selectCtrl.readValue = function readNgOptionsValue() { - function selectPreLink(scope, element, attr, ctrls) { + var selectedOption = options.selectValueMap[selectElement.val()]; - var selectCtrl = ctrls[0]; - var ngModelCtrl = ctrls[1]; + if (selectedOption && !selectedOption.disabled) { + selectCtrl.unselectEmptyOption(); + selectCtrl.removeUnknownOption(); + return options.getViewValueFromOption(selectedOption); + } + return null; + }; - // 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; - } + // 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(); } + ); + } - selectCtrl.ngModelCtrl = ngModelCtrl; + } else { - // 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()); - }); - }); + selectCtrl.writeValue = function writeNgOptionsMultiple(values) { + // The options might not be defined yet when ngModel tries to render + if (!options) return; - // 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; + // Only set `
    - *
    - * - 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'); - }); - * - *
    - */ - 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 + selectElement.prepend(selectCtrl.emptyOption); - ctrl.$validators.required = function (modelValue, viewValue) { - return !attr.required || !ctrl.$isEmpty(viewValue); - }; + 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; - attr.$observe('required', function () { - ctrl.$validate(); - }); - } - }; - }; + // 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(); - /** - * @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. - * - *
    - * **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. - *
    - * - *
    - * **Note:** This directive is also added when the plain `pattern` attribute is used, with two - * differences: - *
      - *
    1. - * `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is - * not available. - *
    2. - *
    3. - * The `ngPattern` attribute must be an expression, while the `pattern` value must be - * interpolated. - *
    4. - *
    - *
    - * - * @example - * - * - * - *
    - *
    - * - * - *
    - * - *
    - *
    - * input valid? = {{form.input.$valid}}
    - * model = {{model}} - *
    - *
    - *
    - * - 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'); - }); - }); - * - *
    - */ - 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 + '$'); - } + optionEl.on('$destroy', function() { + var needsRerender = selectCtrl.$isEmptyOptionSelected(); - if (regex && !regex.test) { - throw minErr('ngPattern')('noregexp', 'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp, regex, startingTag(elm)); - } + selectCtrl.hasEmptyOption = false; + selectCtrl.emptyOption = undefined; - regexp = regex || undefined; - ctrl.$validate(); - }); + if (needsRerender) ngModelCtrl.$render(); + }); + } + }; - 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); - }; - } - }; - }; + } else { + // remove the class, which is added automatically because we recompile the element and it + // becomes the compilation root + selectCtrl.emptyOption.removeClass('ng-scope'); + } - /** - * @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 AngularJS expression given in the - * `ngMaxlength` attribute value. - * - *
    - * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two - * differences: - *
      - *
    1. - * `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint - * validation is not available. - *
    2. - *
    3. - * The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be - * interpolated. - *
    4. - *
    - *
    - * - * @example - * - * - * - *
    - *
    - * - * - *
    - * - *
    - *
    - * input valid? = {{form.input.$valid}}
    - * model = {{model}} - *
    - *
    - *
    - * - 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'); - }); - }); - * - *
    - */ - 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 AngularJS expression given in the - * `ngMinlength` attribute value. - * - *
    - * **Note:** This directive is also added when the plain `minlength` attribute is used, with two - * differences: - *
      - *
    1. - * `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint - * validation is not available. - *
    2. - *
    3. - * The `ngMinlength` value must be an expression, while the `minlength` value must be - * interpolated. - *
    4. - *
    - *
    - * - * @example - * - * - * - *
    - *
    - * - * - *
    - * - *
    - *
    - * input valid? = {{form.input.$valid}}
    - * model = {{model}} - *
    - *
    - *
    - * - 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'); - }); - * - *
    - */ - 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; - }; - } - }; - }; + // We will re-render the option elements if the option values or labels change + scope.$watchCollection(ngOptions.getWatchables, updateOptions); - if (window.angular.bootstrap) { - // AngularJS is already loaded, so we can return here... - if (window.console) { - console.log('WARNING: Tried to load AngularJS 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; + function addOptionElement(option, parent) { + var optionElement = optionTemplate.cloneNode(false); + parent.appendChild(optionElement); + updateOptionElement(option, optionElement); } - }); - }]); - - jqLite(function () { - angularInit(window.document, bootstrap); - }); -})(window); - -!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend(''); -},{}],320:[function(require,module,exports){ -'use strict'; + function getAndUpdateSelectedOption(viewValue) { + var option = options.getOptionFromViewValue(viewValue); + var element = option && option.element; -require('./angular'); -module.exports = angular; + if (element && !element.selected) element.selected = true; -},{"./angular":319}],321:[function(require,module,exports){ -'use strict'; + return option; + } -var asn1 = exports; + 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; + } -asn1.bignum = require('bn.js'); + function updateOptions() { + var previousValue = options && selectCtrl.readValue(); -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'); + // 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) { -},{"./asn1/api":322,"./asn1/base":324,"./asn1/constants":328,"./asn1/decoders":330,"./asn1/encoders":333,"bn.js":367}],322:[function(require,module,exports){ -'use strict'; + 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); + } + } + } -var asn1 = require('../asn1'); -var inherits = require('inherits'); + options = ngOptions.getOptions(); -var api = exports; + var groupElementMap = {}; -api.define = function define(name, body) { - return new Entity(name, body); -}; + options.items.forEach(function addOption(option) { + var groupElement; -function Entity(name, body) { - this.name = name; - this.body = body; + if (isDefined(option.group)) { - this.decoders = {}; - this.encoders = {}; -}; + // This option is to live in a group + // See if we have already created this group + groupElement = groupElementMap[option.group]; -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); - }; + if (!groupElement) { - return new named(this); -}; + groupElement = optGroupTemplate.cloneNode(false); + listFragment.appendChild(groupElement); -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]; -}; + // Update the label on the group element + // "null" is special cased because of Safari + groupElement.label = option.group === null ? 'null' : option.group; -Entity.prototype.decode = function decode(data, enc, options) { - return this._getDecoder(enc).decode(data, options); -}; + // Store it for use later + groupElementMap[option.group] = groupElement; + } -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]; -}; + addOptionElement(option, groupElement); -Entity.prototype.encode = function encode(data, enc, /* internal */reporter) { - return this._getEncoder(enc).encode(data, reporter); -}; + } else { -},{"../asn1":321,"inherits":882,"vm":995}],323:[function(require,module,exports){ -'use strict'; + // This option is not in a group + addOptionElement(option, listFragment); + } + }); -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; }; + selectElement[0].appendChild(listFragment); -var inherits = require('inherits'); -var Reporter = require('../base').Reporter; -var Buffer = require('buffer').Buffer; + ngModelCtrl.$render(); -function DecoderBuffer(base, options) { - Reporter.call(this, options); - if (!Buffer.isBuffer(base)) { - this.error('Input not Buffer'); - return; + // 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(); + } + } + } } - 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; + 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 + } + }; +}]; - this.offset = save.offset; - Reporter.prototype.restore.call(this, save.reporter); +/** + * @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 AngularJS 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 AngularJS'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 + * AngularJS 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 + * + * + *``` + * + * 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, AngularJS will replace `{}` with + * `{{personCount}}`. The closed braces `{}` is a placeholder + * for {{numberExpression}}. + * + * 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 + * + * + * ``` + * + * 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 AngularJS 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 + + + +
    +
    +
    +
    + + + Without Offset: + +
    + + + With Offset(2): + + +
    +
    + + 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')); - return res; -}; + expect(withoutOffset.getText()).toEqual('1 person is viewing.'); + expect(withOffset.getText()).toEqual('Igor is viewing.'); -DecoderBuffer.prototype.isEmpty = function isEmpty() { - return this.offset === this.length; -}; + countInput.clear(); + countInput.sendKeys('0'); -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'); -}; + expect(withoutOffset.getText()).toEqual('Nobody is viewing.'); + expect(withOffset.getText()).toEqual('Nobody is viewing.'); -DecoderBuffer.prototype.skip = function skip(bytes, fail) { - if (!(this.offset + bytes <= this.length)) return this.error(fail || 'DecoderBuffer overrun'); + countInput.clear(); + countInput.sendKeys('2'); - var res = new DecoderBuffer(this.base); + expect(withoutOffset.getText()).toEqual('2 people are viewing.'); + expect(withOffset.getText()).toEqual('Igor and Misko are viewing.'); - // Share reporter state - res._reporterState = this._reporterState; + countInput.clear(); + countInput.sendKeys('3'); - res.offset = this.offset; - res.length = this.offset + bytes; - this.offset += bytes; - return res; -}; + expect(withoutOffset.getText()).toEqual('3 people are viewing.'); + expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.'); -DecoderBuffer.prototype.raw = function raw(save) { - return this.base.slice(save ? save.offset : this.offset, this.length); -}; + countInput.clear(); + countInput.sendKeys('4'); -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; + 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.'); + }); + +
    + */ +var ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale, $interpolate, $log) { + var BRACE = /{}/g, + IS_WHEN = /^when(Minus)?(.+)$/; -EncoderBuffer.prototype.join = function join(out, offset) { - if (!out) out = new Buffer(this.length); - if (!offset) offset = 0; + return { + link: function(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; - if (this.length === 0) return out; + 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)); - 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; -}; + scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) { + var count = parseFloat(newVal); + var countIsNaN = isNumberNaN(count); -},{"../base":324,"buffer":401,"inherits":882}],324:[function(require,module,exports){ -'use strict'; + 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); + } -var base = exports; + // 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; + } + }); -base.Reporter = require('./reporter').Reporter; -base.DecoderBuffer = require('./buffer').DecoderBuffer; -base.EncoderBuffer = require('./buffer').EncoderBuffer; -base.Node = require('./node'); + function updateElementText(newText) { + element.text(newText || ''); + } + } + }; +}]; -},{"./buffer":323,"./node":325,"./reporter":326}],325:[function(require,module,exports){ -'use strict'; +/** + * @ngdoc directive + * @name ngRef + * @restrict A + * + * @description + * The `ngRef` attribute tells AngularJS to assign the controller of a component (or a directive) + * to the given property in the current scope. It is also possible to add the jqlite-wrapped DOM + * element to the scope. + * + * If the element with `ngRef` is destroyed `null` is assigned to the property. + * + * Note that if you want to assign from a child into the parent scope, you must initialize the + * target property on the parent scope, otherwise `ngRef` will assign on the child scope. + * This commonly happens when assigning elements or components wrapped in {@link ngIf} or + * {@link ngRepeat}. See the second example below. + * + * + * @element ANY + * @param {string} ngRef property name - A valid AngularJS expression identifier to which the + * controller or jqlite-wrapped DOM element will be bound. + * @param {string=} ngRefRead read value - The name of a directive (or component) on this element, + * or the special string `$element`. If a name is provided, `ngRef` will + * assign the matching controller. If `$element` is provided, the element + * itself is assigned (even if a controller is available). + * + * + * @example + * ### Simple toggle + * This example shows how the controller of the component toggle + * is reused in the template through the scope to use its logic. + * + * + * + * + *
    + * You are using a component in the same template to show it. + *
    + *
    + * + * angular.module('myApp', []) + * .component('myToggle', { + * controller: function ToggleController() { + * var opened = false; + * this.isOpen = function() { return opened; }; + * this.toggle = function() { opened = !opened; }; + * } + * }); + * + * + * it('should publish the toggle into the scope', function() { + * var toggle = element(by.buttonText('Toggle')); + * expect(toggle.evaluate('myToggle.isOpen()')).toEqual(false); + * toggle.click(); + * expect(toggle.evaluate('myToggle.isOpen()')).toEqual(true); + * }); + * + *
    + * + * @example + * ### ngRef inside scopes + * This example shows how `ngRef` works with child scopes. The `ngRepeat`-ed `myWrapper` components + * are assigned to the scope of `myRoot`, because the `toggles` property has been initialized. + * The repeated `myToggle` components are published to the child scopes created by `ngRepeat`. + * `ngIf` behaves similarly - the assignment of `myToggle` happens in the `ngIf` child scope, + * because the target property has not been initialized on the `myRoot` component controller. + * + * + * + * + * + * + * angular.module('myApp', []) + * .component('myRoot', { + * templateUrl: 'root.html', + * controller: function() { + * this.wrappers = []; // initialize the array so that the wrappers are assigned into the parent scope + * } + * }) + * .component('myToggle', { + * template: 'myToggle', + * transclude: true, + * controller: function ToggleController() { + * var opened = false; + * this.isOpen = function() { return opened; }; + * this.toggle = function() { opened = !opened; }; + * } + * }) + * .component('myWrapper', { + * transclude: true, + * template: 'myWrapper' + + * '
    ngRepeatToggle.isOpen(): {{$ctrl.ngRepeatToggle.isOpen() | json}}
    ' + + * '' + * }); + *
    + * + * myRoot + * Outer Toggle + *
    outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}
    + *
    wrappers assigned to root
    + *
    + * wrapper.ngRepeatToggle.isOpen(): {{wrapper.ngRepeatToggle.isOpen() | json}} + *
    + * + *
      + *
    • + * ngRepeat + *
      outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}
      + * ngRepeat Toggle {{$index + 1}} + *
    • + *
    + * + *
    ngIfToggle.isOpen(): {{ngIfToggle.isOpen()}} // This is always undefined because it's + * assigned to the child scope created by ngIf. + *
    + *
    + ngIf + * ngIf Toggle + *
    ngIfToggle.isOpen(): {{ngIfToggle.isOpen() | json}}
    + *
    outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}
    + *
    + * + * + * ul { + * list-style: none; + * padding-left: 0; + * } + * + * li[ng-repeat] { + * background: lightgreen; + * padding: 8px; + * margin: 8px; + * } + * + * [ng-if] { + * background: lightgrey; + * padding: 8px; + * } + * + * my-root { + * background: lightgoldenrodyellow; + * padding: 8px; + * display: block; + * } + * + * my-wrapper { + * background: lightsalmon; + * padding: 8px; + * display: block; + * } + * + * my-toggle { + * background: lightblue; + * padding: 8px; + * display: block; + * } + * + * + * var OuterToggle = function() { + * this.toggle = function() { + * element(by.buttonText('Outer Toggle')).click(); + * }; + * this.isOpen = function() { + * return element.all(by.binding('outerToggle.isOpen()')).first().getText(); + * }; + * }; + * var NgRepeatToggle = function(i) { + * var parent = element.all(by.repeater('(index, value) in [1,2,3]')).get(i - 1); + * this.toggle = function() { + * element(by.buttonText('ngRepeat Toggle ' + i)).click(); + * }; + * this.isOpen = function() { + * return parent.element(by.binding('ngRepeatToggle.isOpen() | json')).getText(); + * }; + * this.isOuterOpen = function() { + * return parent.element(by.binding('outerToggle.isOpen() | json')).getText(); + * }; + * }; + * var NgRepeatToggles = function() { + * var toggles = [1,2,3].map(function(i) { return new NgRepeatToggle(i); }); + * this.forEach = function(fn) { + * toggles.forEach(fn); + * }; + * this.isOuterOpen = function(i) { + * return toggles[i - 1].isOuterOpen(); + * }; + * }; + * var NgIfToggle = function() { + * var parent = element(by.css('[ng-if]')); + * this.toggle = function() { + * element(by.buttonText('ngIf Toggle')).click(); + * }; + * this.isOpen = function() { + * return by.binding('ngIfToggle.isOpen() | json').getText(); + * }; + * this.isOuterOpen = function() { + * return parent.element(by.binding('outerToggle.isOpen() | json')).getText(); + * }; + * }; + * + * it('should toggle the outer toggle', function() { + * var outerToggle = new OuterToggle(); + * expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): false'); + * outerToggle.toggle(); + * expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): true'); + * }); + * + * it('should toggle all outer toggles', function() { + * var outerToggle = new OuterToggle(); + * var repeatToggles = new NgRepeatToggles(); + * var ifToggle = new NgIfToggle(); + * expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): false'); + * expect(repeatToggles.isOuterOpen(1)).toEqual('outerToggle.isOpen(): false'); + * expect(repeatToggles.isOuterOpen(2)).toEqual('outerToggle.isOpen(): false'); + * expect(repeatToggles.isOuterOpen(3)).toEqual('outerToggle.isOpen(): false'); + * expect(ifToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false'); + * outerToggle.toggle(); + * expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): true'); + * expect(repeatToggles.isOuterOpen(1)).toEqual('outerToggle.isOpen(): true'); + * expect(repeatToggles.isOuterOpen(2)).toEqual('outerToggle.isOpen(): true'); + * expect(repeatToggles.isOuterOpen(3)).toEqual('outerToggle.isOpen(): true'); + * expect(ifToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): true'); + * }); + * + * it('should toggle each repeat iteration separately', function() { + * var repeatToggles = new NgRepeatToggles(); + * + * repeatToggles.forEach(function(repeatToggle) { + * expect(repeatToggle.isOpen()).toEqual('ngRepeatToggle.isOpen(): false'); + * expect(repeatToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false'); + * repeatToggle.toggle(); + * expect(repeatToggle.isOpen()).toEqual('ngRepeatToggle.isOpen(): true'); + * expect(repeatToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false'); + * }); + * }); + * + * + * + */ -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 ngRefMinErr = minErr('ngRef'); -var Reporter = require('../base').Reporter; -var EncoderBuffer = require('../base').EncoderBuffer; -var DecoderBuffer = require('../base').DecoderBuffer; -var assert = require('minimalistic-assert'); +var ngRefDirective = ['$parse', function($parse) { + return { + priority: -1, // Needed for compatibility with element transclusion on the same element + restrict: 'A', + compile: function(tElement, tAttrs) { + // Get the expected controller name, converts into "someThing" + var controllerName = directiveNormalize(nodeName_(tElement)); + + // Get the expression for value binding + var getter = $parse(tAttrs.ngRef); + var setter = getter.assign || function() { + throw ngRefMinErr('nonassign', 'Expression in ngRef="{0}" is non-assignable!', tAttrs.ngRef); + }; -// 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']; + return function(scope, element, attrs) { + var refValue; -// Public methods list -var methods = ['key', 'obj', 'use', 'optional', 'explicit', 'implicit', 'def', 'choice', 'any', 'contains'].concat(tags); + if (attrs.hasOwnProperty('ngRefRead')) { + if (attrs.ngRefRead === '$element') { + refValue = element; + } else { + refValue = element.data('$' + attrs.ngRefRead + 'Controller'); + + if (!refValue) { + throw ngRefMinErr( + 'noctrl', + 'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"', + attrs.ngRefRead, + tAttrs.ngRef + ); + } + } + } else { + refValue = element.data('$' + controllerName + 'Controller'); + } -// Overrided methods list -var overrided = ['_peekTag', '_decodeTag', '_use', '_decodeStr', '_decodeObjid', '_decodeTime', '_decodeNull', '_decodeInt', '_decodeBool', '_decodeList', '_encodeComposite', '_encodeStr', '_encodeObjid', '_encodeTime', '_encodeNull', '_encodeInt', '_encodeBool']; + refValue = refValue || element; -function Node(enc, parent) { - var state = {}; - this._baseState = state; + setter(scope, refValue); - state.enc = enc; + // when the element is removed, remove it (nullify it) + element.on('$destroy', function() { + // only remove it if value has not changed, + // because animations (and other procedures) may duplicate elements + if (getter(scope) === refValue) { + setter(scope, null); + } + }); + }; + } + }; +}]; - state.parent = parent || null; - state.children = null; +/* exported ngRepeatDirective */ - // 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; +/** + * @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). | + * + *
    + * Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}. + * This may be useful when, for instance, nesting ngRepeats. + *
    + * + * + * ## Iterating over object properties + * + * It is possible to get `ngRepeat` to iterate over the properties of an object using the following + * syntax: + * + * ```js + *
    ...
    + * ``` + * + * 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 AngularJS 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 AngularJS 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. + * + * All different types of tracking functions, their syntax, and their support for duplicate + * items in collections can be found in the + * {@link ngRepeat#ngRepeat-arguments ngRepeat expression description}. + * + *
    + * **Best Practice:** If you are working with objects that have a unique identifier property, you + * should track by this identifier instead of the object instance, + * e.g. `item in items track by item.id`. + * 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. + *
    + * + * ### Effects of DOM Element re-use + * + * When DOM elements are re-used, ngRepeat updates the scope for the element, which will + * automatically update any active bindings on the template. However, other + * functionality will not be updated, because the element is not re-created: + * + * - Directives are not re-compiled + * - {@link guide/expression#one-time-binding one-time expressions} on the repeated template are not + * updated if they have stabilized. + * + * The above affects all kinds of element re-use due to tracking, but may be especially visible + * when tracking by `$index` due to the way ngRepeat re-uses elements. + * + * The following example shows the effects of different actions with tracking: + + + + angular.module('ngRepeat', ['ngAnimate']).controller('repeatController', function($scope) { + var friends = [ + {name:'John', age:25}, + {name:'Mary', age:40}, + {name:'Peter', age:85} + ]; + + $scope.removeFirst = function() { + $scope.friends.shift(); + }; - // Should create new instance on each method - if (!state.parent) { - state.children = []; - this._wrap(); - } -} -module.exports = Node; + $scope.updateAge = function() { + $scope.friends.forEach(function(el) { + el.age = el.age + 5; + }); + }; -var stateProps = ['enc', 'parent', 'children', 'tag', 'args', 'reverseArgs', 'choice', 'optional', 'any', 'obj', 'use', 'alteredUse', 'key', 'default', 'explicit', 'implicit', 'contains']; + $scope.copy = function() { + $scope.friends = angular.copy($scope.friends); + }; -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; -}; + $scope.reset = function() { + $scope.friends = angular.copy(friends); + }; -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); -}; + $scope.reset(); + }); + + +
    +
      +
    1. When you click "Update Age", only the first list updates the age, because all others have + a one-time binding on the age property. If you then click "Copy", the current friend list + is copied, and now the second list updates the age, because the identity of the collection items + has changed and the list must be re-rendered. The 3rd and 4th list stay the same, because all the + items are already known according to their tracking functions. +
    2. +
    3. When you click "Remove First", the 4th list has the wrong age on both remaining items. This is + due to tracking by $index: when the first collection item is removed, ngRepeat reuses the first + DOM element for the new first collection item, and so on. Since the age property is one-time + bound, the value remains from the collection item which was previously at this index. +
    4. +
    + + + + +
    +
    + track by $id(friend) (default): +
      +
    • + {{friend.name}} is {{friend.age}} years old. +
    • +
    + track by $id(friend) (default), with age one-time binding: +
      +
    • + {{friend.name}} is {{::friend.age}} years old. +
    • +
    + track by friend.name, with age one-time binding: +
      +
    • + {{friend.name}} is {{::friend.age}} years old. +
    • +
    + track by $index, with age one-time binding: +
      +
    • + {{friend.name}} is {{::friend.age}} years old. +
    • +
    +
    +
    + + .example-animate-container { + background:white; + border:1px solid black; + list-style:none; + margin:0; + padding:0 10px; + } -Node.prototype._init = function init(body) { - var state = this._baseState; + .animate-repeat { + line-height:30px; + list-style:none; + box-sizing:border-box; + } - assert(state.parent === null); - body.call(this); + .animate-repeat.ng-move, + .animate-repeat.ng-enter, + .animate-repeat.ng-leave { + transition:all linear 0.5s; + } - // 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'); -}; + .animate-repeat.ng-leave.ng-leave-active, + .animate-repeat.ng-move, + .animate-repeat.ng-enter { + opacity:0; + max-height:0; + } -Node.prototype._useArgs = function useArgs(args) { - var state = this._baseState; + .animate-repeat.ng-leave, + .animate-repeat.ng-move.ng-move-active, + .animate-repeat.ng-enter.ng-enter-active { + opacity:1; + max-height:30px; + } + +
    - // 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); + * + * ## 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 {{ item }} + *
    + *
    + * Body {{ item }} + *
    + *
    + * Footer {{ item }} + *
    + * ``` + * + * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to: + * ```html + *
    + * Header A + *
    + *
    + * Body A + *
    + *
    + * Footer A + *
    + *
    + * Header B + *
    + *
    + * Body B + *
    + *
    + * Footer B + *
    + * ``` + * + * 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.) + * + * *Default tracking: $id()*: `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 collection. + * + * The built-in `$id()` function can be used to assign a unique + * `$$hashKey` property to each item in the collection. This property is then used as a key to associated DOM elements + * with the corresponding item in the collection by identity. Moving the same object would move + * the DOM element in the same way in the DOM. + * Note that the default id function does not support duplicate primitive values (`number`, `string`), + * but supports duplictae non-primitive values (`object`) that are *equal* in shape. + * + * *Custom Expression*: It is possible to use any AngularJS expression to compute the tracking + * id, for example with a function, or using a property on the collection items. + * `item in items track by item.id` is a typical pattern when the items have a unique identifier, + * e.g. database id. In this case the object identity does not matter. Two objects are considered + * equivalent as long as their `id` property is same. + * Tracking by unique identifier is the most performant way and should be used whenever possible. + * + * *$index*: This special property tracks the collection items by their index, and + * re-uses the DOM elements that match that index, e.g. `item in items track by $index`. This can + * be used for a performance improvement if no unique identfier is available and the identity of + * the collection items cannot be easily computed. It also allows duplicates. + * + *
    + * Note: Re-using DOM elements can have unforeseen effects. Read the + * {@link ngRepeat#tracking-and-duplicates section on tracking and duplicates} for + * more info. + *
    + * + *
    + * Note: the `track by` expression must come last - after any filters, and the alias expression: + * `item in items | filter:searchText as results track by item.id` + *
    + * + * * `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 after all filters (and not as operator, inside an expression). + * + * For example: `item in items | filter : x | orderBy : order | limitTo : limit as results track by item.id` . + * + * @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. + + +
    + I have {{friends.length}} friends. They are: + +
      +
    • + [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old. +
    • +
    • + No results found... +
    • +
    +
    +
    + + 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'} + ]; + }); + + + .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; + } + + + 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:"); + }); - if (children.length !== 0) { - assert(state.children === null); - state.children = children; + it('should update repeater when filter predicate changes', function() { + expect(friends.count()).toBe(10); - // 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; + element(by.model('q')).sendKeys('ma'); - var res = {}; - Object.keys(arg).forEach(function (key) { - if (key == (key | 0)) key |= 0; - var value = arg[key]; - res[value] = key; - }); - return res; - }); - } -}; + 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.'); + }); + +
    + */ +var ngRepeatDirective = ['$parse', '$animate', '$compile', function($parse, $animate, $compile) { + var NG_REMOVED = '$$NG_REMOVED'; + var ngRepeatMinErr = minErr('ngRepeat'); + + var updateScope = function(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); + }; -// -// Overrided methods -// + var getBlockStart = function(block) { + return block.clone[0]; + }; -overrided.forEach(function (method) { - Node.prototype[method] = function _overrided() { - var state = this._baseState; - throw new Error(method + ' not implemented for encoding: ' + state.enc); + var getBlockEnd = function(block) { + return block.clone[block.clone.length - 1]; }; -}); -// -// Public methods -// -tags.forEach(function (tag) { - Node.prototype[tag] = function _tagMethod() { - var state = this._baseState; - var args = Array.prototype.slice.call(arguments); + 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); - assert(state.tag === null); - state.tag = tag; + 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*$/); - this._useArgs(args); + if (!match) { + throw ngRepeatMinErr('iexp', 'Expected expression in form of \'_item_ in _collection_[ track by _id_]\' but got \'{0}\'.', + expression); + } - return this; - }; -}); + var lhs = match[1]; + var rhs = match[2]; + var aliasAs = match[3]; + var trackByExp = match[4]; -Node.prototype.use = function use(item) { - assert(item); - var state = this._baseState; + match = lhs.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/); - assert(state.use === null); - state.use = item; + 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]; - return this; -}; + 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); + } -Node.prototype.optional = function optional() { - var state = this._baseState; + var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn; + var hashFnLocals = {$id: hashKey}; - state.optional = true; + if (trackByExp) { + trackByExpGetter = $parse(trackByExp); + } else { + trackByIdArrayFn = function(key, value) { + return hashKey(value); + }; + trackByIdObjFn = function(key) { + return key; + }; + } - return this; -}; + return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) { -Node.prototype.def = function def(val) { - var state = this._baseState; + if (trackByExpGetter) { + trackByIdExpFn = function(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); + }; + } - assert(state['default'] === null); - state['default'] = val; - state.optional = true; + // 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; + } - return this; -}; + 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); + } + } + } -Node.prototype.explicit = function explicit(num) { - var state = this._baseState; + 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; + } + } - assert(state.explicit === null && state.implicit === null); - state.explicit = num; + // 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(); + } - return this; -}; + // 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]; -Node.prototype.implicit = function implicit(num) { - var state = this._baseState; + if (block.scope) { + // if we have already seen this object, then we need to reuse the + // associated scope/element - assert(state.explicit === null && state.implicit === null); - state.implicit = num; + nextNode = previousNode; - return this; -}; + // skip nodes that are already pending removal via leave animation + do { + nextNode = nextNode.nextSibling; + } while (nextNode && nextNode[NG_REMOVED]); -Node.prototype.obj = function obj() { - var state = this._baseState; - var args = Array.prototype.slice.call(arguments); + 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; + }); + }; + } + }; +}]; - state.obj = true; +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 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) { + * /* These are just alternative ways of hiding an element */ + * 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 + * /* A working example can be found at the bottom of this page. */ + * .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: + * + + + Show:
    +
    + I show up when your checkbox is checked. +
    +
    + + .animate-show-hide.ng-hide { + opacity: 0; + } - if (args.length !== 0) this._useArgs(args); + .animate-show-hide.ng-hide-add, + .animate-show-hide.ng-hide-remove { + transition: all linear 0.5s; + } - return this; -}; + .check-element { + border: 1px solid black; + opacity: 1; + padding: 10px; + } + + + it('should check ngShow', function() { + var checkbox = element(by.model('checked')); + var checkElem = element(by.css('.check-element')); -Node.prototype.key = function key(newKey) { - var state = this._baseState; + expect(checkElem.isDisplayed()).toBe(false); + checkbox.click(); + expect(checkElem.isDisplayed()).toBe(true); + }); + +
    + * + *
    + * @example + * A more complex example, featuring different show/hide animations: + * + + + Show:
    +
    + I show up when your checkbox is checked. +
    +
    + + body { + overflow: hidden; + perspective: 1000px; + } - assert(state.key === null); - state.key = newKey; + .funky-show-hide.ng-hide-add { + transform: rotateZ(0); + transform-origin: right; + transition: all 0.5s ease-in-out; + } - return this; -}; + .funky-show-hide.ng-hide-add.ng-hide-add-active { + transform: rotateZ(-135deg); + } -Node.prototype.any = function any() { - var state = this._baseState; + .funky-show-hide.ng-hide-remove { + transform: rotateY(90deg); + transform-origin: left; + transition: all 0.5s ease; + } - state.any = true; + .funky-show-hide.ng-hide-remove.ng-hide-remove-active { + transform: rotateY(0); + } - return this; -}; + .check-element { + border: 1px solid black; + opacity: 1; + padding: 10px; + } + + + it('should check ngShow', function() { + var checkbox = element(by.model('checked')); + var checkElem = element(by.css('.check-element')); -Node.prototype.choice = function choice(obj) { - var state = this._baseState; + expect(checkElem.isDisplayed()).toBe(false); + checkbox.click(); + expect(checkElem.isDisplayed()).toBe(true); + }); + +
    + * + * @knownIssue + * + * ### Flickering when using ngShow to toggle between elements + * + * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can + * happen that both the element to show and the element to hide are visible for a very short time. + * + * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations + * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than + * other browsers. + * + * There are several way to mitigate this problem: + * + * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}. + * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}. + * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements. + * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}. + * - Define an animation on the affected elements. + */ +var ngShowDirective = ['$animate', function($animate) { + return { + restrict: 'A', + multiElement: true, + link: function(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 + }); + }); + } + }; +}]; - assert(state.choice === null); - state.choice = obj; - this._useArgs(Object.keys(obj).map(function (key) { - return obj[key]; - })); - return this; -}; +/** + * @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 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) { + * /* These are just alternative ways of hiding an element */ + * 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 + * /* A working example can be found at the bottom of this page. */ + * .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: + * + + + Hide:
    +
    + I hide when your checkbox is checked. +
    +
    + + .animate-show-hide.ng-hide { + opacity: 0; + } -Node.prototype.contains = function contains(item) { - var state = this._baseState; + .animate-show-hide.ng-hide-add, + .animate-show-hide.ng-hide-remove { + transition: all linear 0.5s; + } - assert(state.use === null); - state.contains = item; + .check-element { + border: 1px solid black; + opacity: 1; + padding: 10px; + } + + + it('should check ngHide', function() { + var checkbox = element(by.model('checked')); + var checkElem = element(by.css('.check-element')); - return this; -}; + expect(checkElem.isDisplayed()).toBe(true); + checkbox.click(); + expect(checkElem.isDisplayed()).toBe(false); + }); + +
    + * + *
    + * @example + * A more complex example, featuring different show/hide animations: + * + + + Hide:
    +
    + I hide when your checkbox is checked. +
    +
    + + body { + overflow: hidden; + perspective: 1000px; + } -// -// Decoding -// + .funky-show-hide.ng-hide-add { + transform: rotateZ(0); + transform-origin: right; + transition: all 0.5s ease-in-out; + } -Node.prototype._decode = function decode(input, options) { - var state = this._baseState; + .funky-show-hide.ng-hide-add.ng-hide-add-active { + transform: rotateZ(-135deg); + } - // Decode root node - if (state.parent === null) return input.wrapResult(state.children[0]._decode(input, options)); + .funky-show-hide.ng-hide-remove { + transform: rotateY(90deg); + transform-origin: left; + transition: all 0.5s ease; + } - var result = state['default']; - var present = true; + .funky-show-hide.ng-hide-remove.ng-hide-remove-active { + transform: rotateY(0); + } - var prevKey = null; - if (state.key !== null) prevKey = input.enterKey(state.key); + .check-element { + border: 1px solid black; + opacity: 1; + padding: 10px; + } + + + it('should check ngHide', function() { + var checkbox = element(by.model('checked')); + var checkElem = element(by.css('.check-element')); - // 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; + expect(checkElem.isDisplayed()).toBe(true); + checkbox.click(); + expect(checkElem.isDisplayed()).toBe(false); + }); + +
    + * + * @knownIssue + * + * ### Flickering when using ngHide to toggle between elements + * + * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can + * happen that both the element to show and the element to hide are visible for a very short time. + * + * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations + * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than + * other browsers. + * + * There are several way to mitigate this problem: + * + * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}. + * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}. + * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements. + * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}. + * - Define an animation on the affected elements. + */ +var ngHideDirective = ['$animate', function($animate) { + return { + restrict: 'A', + multiElement: true, + link: function(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 + + + + + +
    + Sample Text +
    myStyle={{myStyle}}
    +
    + + span { + color: black; + } + + + 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)'); + }); + +
    + */ +var ngStyleDirective = ngDirective(function(scope, element, attr) { + scope.$watchCollection(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) { + if (oldStyles && (newStyles !== oldStyles)) { + forEach(oldStyles, function(val, style) { element.css(style, '');}); + } + if (newStyles) element.css(newStyles); + }); +}); + +/** + * @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. + * + *
    + * 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`. + *
    + + * @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 + * + * ``` + * + * ... + * ... + * ... + * + * ``` + * + * + * @scope + * @priority 1200 + * @param {*} ngSwitch|on expression to match against ng-switch-when. + * 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 + + +
    + + selection={{selection}} +
    +
    +
    Settings Div
    +
    Home Span
    +
    default
    +
    +
    +
    + + angular.module('switchExample', ['ngAnimate']) + .controller('ExampleController', ['$scope', function($scope) { + $scope.items = ['settings', 'home', 'options', 'other']; + $scope.selection = $scope.items[0]; + }]); + + + .animate-switch-container { + position:relative; + background:white; + border:1px solid black; + height:40px; + overflow:hidden; + } - 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; + .animate-switch { + padding:10px; } - input.restore(save); - } else { - present = this._peekTag(input, tag, state.any); - if (input.isError(present)) return present; - } - } + .animate-switch.ng-animate { + transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; - // Push object on stack - var prevObj; - if (state.obj && present) prevObj = input.enterObject(); + position:absolute; + top:0; + left:0; + right:0; + bottom:0; + } - if (present) { - // Unwrap explicit values - if (state.explicit !== null) { - var explicit = this._decodeTag(input, state.explicit); - if (input.isError(explicit)) return explicit; - input = explicit; - } + .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; + } + + + var switchElem = element(by.css('[ng-switch]')); + var select = element(by.model('selection')); - var start = input.offset; + 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/); + }); + +
    + */ +var ngSwitchDirective = ['$animate', '$compile', function($animate, $compile) { + return { + require: 'ngSwitch', - // 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; + // asks for $scope to fool the BC controller module + controller: ['$scope', function NgSwitchController() { + this.cases = {}; + }], + link: function(scope, element, attr, ngSwitchController) { + var watchExpr = attr.ngSwitch || attr.on, + selectedTranscludes = [], + selectedElements = [], + previousLeaveAnimations = [], + selectedScopes = []; + + var spliceFactory = function(array, index) { + return function(response) { + if (response !== false) array.splice(index, 1); + }; + }; - if (state.any) result = input.raw(save);else input = body; - } + scope.$watch(watchExpr, function ngSwitchWatchAction(value) { + var i, ii; - if (options && options.track && state.tag !== null) options.track(input.path(), start, input.length, 'tagged'); + // Start with the last, in case the array is modified during the loop + while (previousLeaveAnimations.length) { + $animate.cancel(previousLeaveAnimations.pop()); + } - if (options && options.track && state.tag !== null) options.track(input.path(), input.offset, input.length, 'content'); + 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)); + } - // 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); + selectedElements.length = 0; + selectedScopes.length = 0; - if (input.isError(result)) return result; + 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 }; - // 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); + selectedElements.push(block); + $animate.enter(caseElement, anchor.parent(), anchor); + }); + }); + } }); } + }; +}]; - // 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); +var ngSwitchWhenDirective = ngDirective({ + transclude: 'element', + priority: 1200, + require: '^ngSwitch', + multiElement: true, + link: function(scope, element, attrs, ctrl, $transclude) { - return result; -}; + var cases = attrs.ngSwitchWhen.split(attrs.ngSwitchWhenSeparator).sort().filter( + // Filter duplicate cases + function(element, index, array) { return array[index - 1] !== element; } + ); -Node.prototype._decodeGeneric = function decodeGeneric(tag, input, options) { - var state = this._baseState; + forEach(cases, function(whenCase) { + ctrl.cases['!' + whenCase] = (ctrl.cases['!' + whenCase] || []); + ctrl.cases['!' + whenCase].push({ transclude: $transclude, element: element }); + }); + } +}); - 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); +var ngSwitchDefaultDirective = ngDirective({ + transclude: 'element', + priority: 1200, + require: '^ngSwitch', + multiElement: true, + link: function(scope, element, attr, ctrl, $transclude) { + ctrl.cases['?'] = (ctrl.cases['?'] || []); + ctrl.cases['?'].push({ transclude: $transclude, element: element }); + } +}); - if (state.use !== null) { - return this._getUse(state.use, input._reporterState.obj)._decode(input, options); - } else { - return input.error('unknown tag: ' + tag); - } -}; +/** + * @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. + * + * + * + *
    + *
    + *
    + * {{text}} + *
    + *
    + * + * 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'); + * }); + * + *
    + * + * @example + * ### Transclude fallback content + * This example shows how to use `NgTransclude` with fallback content, that + * is displayed if no transcluded content is provided. + * + * + * + * + * + * + * + * + * Button2 + * + * + * + * it('should have different transclude element content', function() { + * expect(element(by.id('fallback')).getText()).toBe('Button1'); + * expect(element(by.id('modified')).getText()).toBe('Button2'); + * }); + * + * + * + * @example + * ### Multi-slot transclusion + * This example demonstrates using multi-slot transclusion in a component directive. + * + * + * + *
    + *
    + *
    + * + * {{title}} + *

    {{text}}

    + *
    + *
    + *
    + * + * angular.module('multiSlotTranscludeExample', []) + * .directive('pane', function() { + * return { + * restrict: 'E', + * transclude: { + * 'title': '?paneTitle', + * 'body': 'paneBody', + * 'footer': '?paneFooter' + * }, + * template: '
    ' + + * '
    Fallback Title
    ' + + * '
    ' + + * '' + + * '
    ' + * }; + * }) + * .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...'; + * }]); + *
    + * + * 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'); + * }); + * + *
    + */ +var ngTranscludeMinErr = minErr('ngTransclude'); +var ngTranscludeDirective = ['$compile', function($compile) { + return { + restrict: 'EAC', + compile: function ngTranscludeCompile(tElement) { -Node.prototype._getUse = function _getUse(entity, obj) { + // Remove and cache any original content to act as a fallback + var fallbackLinkFn = $compile(tElement.contents()); + tElement.empty(); - 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; -}; + return function ngTranscludePostLink($scope, $element, $attrs, controller, $transclude) { -Node.prototype._decodeChoice = function decodeChoice(input, options) { - var state = this._baseState; - var result = null; - var match = false; + 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)); + } - 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 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 (!match) return input.error('Choice not matched'); + // If the slot is required and no transclusion content is provided then this call will throw an error + $transclude(ngTranscludeCloneAttachFn, null, slotName); - return result; -}; + // If the slot is optional and no transclusion content is provided then use the fallback content + if (slotName && !$transclude.isSlotFilled(slotName)) { + useFallbackContent(); + } -// -// Encoding -// + 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(); + } + } -Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) { - return new EncoderBuffer(data, this.reporter); -}; + 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); + }); + } -Node.prototype._encode = function encode(data, reporter, parent) { - var state = this._baseState; - if (state['default'] !== null && state['default'] === data) return; + 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; + } + } + } + }; + } + }; +}]; - var result = this._encodeValue(data, reporter, parent); - if (result === undefined) return; +/** + * @ngdoc directive + * @name script + * @restrict E + * + * @description + * Load the content of a ` - if (this._skipDefault(result, reporter, parent)) return; + Load inlined template +
    + + + 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/); + }); + + + */ +var scriptDirective = ['$templateCache', function($templateCache) { + return { + restrict: 'E', + terminal: true, + compile: function(element, attr) { + if (attr.type === 'text/ng-template') { + var templateUrl = attr.id, + text = element[0].text; - return result; -}; + $templateCache.put(templateUrl, text); + } + } + }; +}]; -Node.prototype._encodeValue = function encode(data, reporter, parent) { - var state = this._baseState; +/* exported selectDirective, optionDirective */ - // Decode root node - if (state.parent === null) return state.children[0]._encode(data, reporter || new Reporter()); +var noopNgModelController = { $setViewValue: noop, $render: noop }; - var result = null; +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); +} - // Set reporter to share it with a child class - this.reporter = reporter; +/** + * @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. + * + * + * + *
    + *
    + *
    + *
    + * + * Error: The current model doesn't match any option
    + * + *
    + *
    + *
    + *
    + * + * 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; + * }; + * } + * + * }; + * }); + * + *
    + * + * + * @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. + * + * + * + *
    + *
    + *
    + *
    + * Error: Please select a value
    + * + *
    + *
    + *
    + *
    + * + * 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); + * }; + * } + * }; + * }); + * + * + * it('should show the error message when the unknown option is selected', function() { - // Check if data is there - if (state.optional && data === undefined) { - if (state['default'] !== null) data = state['default'];else return; - } + var error = element(by.className('error')); - // 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); + expect(error.getText()).toBe('Error: Please select a value'); - if (child._baseState.key === null) return reporter.error('Child should have a key'); - var prevKey = reporter.enterKey(child._baseState.key); + element(by.cssContainingText('option', 'Option 1')).click(); - if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) !== 'object') return reporter.error('Child expected, but input is not object'); + expect(error.isPresent()).toBe(false); - var res = child._encode(data[child._baseState.key], reporter, data); - reporter.leaveKey(prevKey); + element(by.tagName('button')).click(); - return res; - }, this).filter(function (child) { - return child; + expect(error.getText()).toBe('Error: Please select a value'); }); - 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 SelectController = + ['$element', '$scope', /** @this */ function($element, $scope) { - var child = this.clone(); - child._baseState.implicit = null; - content = this._createEncoderBuffer(data.map(function (item) { - var state = this._baseState; + var self = this, + optionsMap = new NgMap(); - 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; - } - } + self.selectValueMap = {}; // Keys are the hashed values, values the original values - // 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 the ngModel doesn't get provided then provide a dummy noop version to prevent errors + self.ngModelCtrl = noopNgModelController; + self.multiple = false; - 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); - } - } + // 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(' + * + *
    + * + *
    + *
    + *
    + * singleSelect = {{data.singleSelect}} + * + *
    + *
    + *
    + * multipleSelect = {{data.multipleSelect}}
    + * + *
    + *
    + * + * angular.module('staticSelect', []) + * .controller('ExampleController', ['$scope', function($scope) { + * $scope.data = { + * singleSelect: null, + * multipleSelect: [], + * option1: 'option-1' + * }; + * + * $scope.forceUnknownOption = function() { + * $scope.data.singleSelect = 'nonsense'; + * }; + * }]); + * + *
    + * + * @example + * ### Using `ngRepeat` to generate `select` options + * + * + *
    + *
    + * + * + *
    + *
    + * model = {{data.model}}
    + *
    + *
    + * + * 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'} + * ] + * }; + * }]); + * + *
    + * + * @example + * ### Using `ngValue` to bind the model to an array of objects + * + * + *
    + *
    + * + * + *
    + *
    + *
    model = {{data.model | json}}

    + *
    + *
    + * + * 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'} + * ] + * }; + * }]); + * + *
    + * + * @example + * ### Using `select` with `ngOptions` and setting a default value + * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples. + * + * + * + *
    + *
    + * + * + *
    + *
    + * option = {{data.selectedOption}}
    + *
    + *
    + * + * 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 + * }; + * }]); + * + *
    + * + * @example + * ### Binding `select` to a non-string value via `ngModel` parsing / formatting + * + * + * + * + * {{ model }} + * + * + * 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; + * }); + * } + * }; + * }); + * + * + * it('should initialize to model', function() { + * expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two'); + * }); + * + * + * + */ +var selectDirective = function() { -// Import DER constants -var der = asn1.constants.der; + return { + restrict: 'E', + require: ['select', '?ngModel'], + controller: SelectController, + priority: 1, + link: { + pre: selectPreLink, + post: selectPostLink + } + }; -function DERDecoder(entity) { - this.enc = 'der'; - this.name = entity.name; - this.entity = entity; + function selectPreLink(scope, element, attr, ctrls) { - // Construct base tree - this.tree = new DERNode(); - this.tree._init(entity.body); -}; -module.exports = DERDecoder; + var selectCtrl = ctrls[0]; + var ngModelCtrl = ctrls[1]; -DERDecoder.prototype.decode = function decode(data, options) { - if (!(data instanceof base.DecoderBuffer)) data = new base.DecoderBuffer(data, options); + // 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; + } - return this.tree._decode(data, options); -}; -// Tree methods + selectCtrl.ngModelCtrl = ngModelCtrl; -function DERNode(parent) { - base.Node.call(this, 'der', parent); -} -inherits(DERNode, base.Node); + // 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()); + }); + }); -DERNode.prototype._peekTag = function peekTag(buffer, tag, any) { - if (buffer.isEmpty()) return false; + // 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; - var state = buffer.save(); - var decodedTag = derDecodeTag(buffer, 'Failed to peek tag: "' + tag + '"'); - if (buffer.isError(decodedTag)) return decodedTag; + // 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; + }; - buffer.restore(state); + // 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; - return decodedTag.tag === tag || decodedTag.tagStr === tag || decodedTag.tagStr + 'of' === tag || any; -}; + // 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); + } -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 + '"'); + // 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; + }); - // Failure - if (buffer.isError(len)) return len; + // 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; + }; - 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 + '"'); + 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; - // 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; + var selectCtrl = ctrls[0]; - len = buffer.offset - state.offset; - buffer.restore(state); - return buffer.skip(len, 'Failed to match body of: "' + tag + '"'); + // 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); + }; + } }; -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; +// 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(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()); + } + } - if (tag.tagStr === 'end') break; - } -}; + 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 -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; + if (selectCtrl) { + selectCtrl.registerOption(scope, element, attr, interpolateValueFn, interpolateTextFn); + } + }; + } + }; +}]; - var res = decoder.decode(buffer, 'der', options); - if (buffer.isError(res) && possibleEnd) break; - result.push(res); - } - return result; -}; +/** + * @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 AngularJS 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 + * + * + * + *
    + *
    + * + * + *
    + * + *
    + *
    + * required error set? = {{form.input.$error.required}}
    + * model = {{model}} + *
    + *
    + *
    + * + 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'); + }); + * + *
    + */ +var requiredDirective = function() { + return { + restrict: 'A', + require: '?ngModel', + link: function(scope, elm, attr, ctrl) { + if (!ctrl) return; + attr.required = true; // force truthy in case we are on non input element -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'); + ctrl.$validators.required = function(modelValue, viewValue) { + return !attr.required || !ctrl.$isEmpty(viewValue); + }; - 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'); + attr.$observe('required', function() { + ctrl.$validate(); + }); } - 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; - } +/** + * @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. + * + *
    + * **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. + *
    + * + *
    + * **Note:** This directive is also added when the plain `pattern` attribute is used, with two + * differences: + *
      + *
    1. + * `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is + * not available. + *
    2. + *
    3. + * The `ngPattern` attribute must be an expression, while the `pattern` value must be + * interpolated. + *
    4. + *
    + *
    + * + * @example + * + * + * + *
    + *
    + * + * + *
    + * + *
    + *
    + * input valid? = {{form.input.$valid}}
    + * model = {{model}} + *
    + *
    + *
    + * + 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'); + }); + }); + * + *
    + */ +var patternDirective = function() { + return { + restrict: 'A', + require: '?ngModel', + link: function(scope, elm, attr, ctrl) { + if (!ctrl) return; - return result; -}; + var regexp, patternExp = attr.ngPattern || attr.pattern; + attr.$observe('pattern', function(regex) { + if (isString(regex) && regex.length > 0) { + regex = new RegExp('^' + regex + '$'); + } -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'); - } + if (regex && !regex.test) { + throw minErr('ngPattern')('noregexp', + 'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp, + regex, startingTag(elm)); + } - return Date.UTC(year, mon - 1, day, hour, min, sec, 0); -}; + regexp = regex || undefined; + ctrl.$validate(); + }); -DERNode.prototype._decodeNull = function decodeNull(buffer) { - return null; + 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); + }; + } + }; }; -DERNode.prototype._decodeBool = function decodeBool(buffer) { - var res = buffer.readUInt8(); - if (buffer.isError(res)) return res;else return res !== 0; +/** + * @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 AngularJS expression given in the + * `ngMaxlength` attribute value. + * + *
    + * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two + * differences: + *
      + *
    1. + * `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint + * validation is not available. + *
    2. + *
    3. + * The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be + * interpolated. + *
    4. + *
    + *
    + * + * @example + * + * + * + *
    + *
    + * + * + *
    + * + *
    + *
    + * input valid? = {{form.input.$valid}}
    + * model = {{model}} + *
    + *
    + *
    + * + 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'); + }); + }); + * + *
    + */ +var maxlengthDirective = function() { + return { + restrict: 'A', + require: '?ngModel', + link: function(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); + }; + } + }; }; -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; -}; +/** + * @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 AngularJS expression given in the + * `ngMinlength` attribute value. + * + *
    + * **Note:** This directive is also added when the plain `minlength` attribute is used, with two + * differences: + *
      + *
    1. + * `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint + * validation is not available. + *
    2. + *
    3. + * The `ngMinlength` value must be an expression, while the `minlength` value must be + * interpolated. + *
    4. + *
    + *
    + * + * @example + * + * + * + *
    + *
    + * + * + *
    + * + *
    + *
    + * input valid? = {{form.input.$valid}}
    + * model = {{model}} + *
    + *
    + *
    + * + 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'); + }); + * + *
    + */ +var minlengthDirective = function() { + return { + restrict: 'A', + require: '?ngModel', + link: function(scope, elm, attr, ctrl) { + if (!ctrl) return; -DERNode.prototype._use = function use(entity, obj) { - if (typeof entity === 'function') entity = entity(obj); - return entity._getDecoder('der').tree; + 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; + }; + } + }; }; -// 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; +if (window.angular.bootstrap) { + // AngularJS is already loaded, so we can return here... + if (window.console) { + console.log('WARNING: Tried to load AngularJS more than once.'); } - var tagStr = der.tag[tag]; - - return { - cls: cls, - primitive: primitive, - tag: tag, - tagStr: tagStr - }; + return; } -function derDecodeLen(buf, primitive, fail) { - var len = buf.readUInt8(fail); - if (buf.isError(len)) return len; +// try to bind to jquery now so that one can write jqLite(fn) +// but we will rebind on bootstrap again. +bindJQuery(); - // Indefinite form - if (!primitive && len === 0x80) return null; +publishExternalAPI(angular); - // Definite form - if ((len & 0x80) === 0) { - // Short form - return len; - } +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; +} - // Long form - var num = len & 0x7f; - if (num > 4) return buf.error('length octect is too long'); +function getVF(n, opt_precision) { + var v = opt_precision; - len = 0; - for (var i = 0; i < num; i++) { - len <<= 8; - var j = buf.readUInt8(fail); - if (buf.isError(j)) return j; - len |= j; + if (undefined === v) { + v = Math.min(getDecimals(n), 3); } - return len; + var base = Math.pow(10, v); + var f = ((n * base) | 0) % base; + return {v: v, f: f}; } -},{"../../asn1":321,"inherits":882}],330:[function(require,module,exports){ -'use strict'; - -var decoders = exports; - -decoders.der = require('./der'); -decoders.pem = require('./pem'); - -},{"./der":329,"./pem":331}],331:[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(); +$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": "-\u00a4", + "negSuf": "", + "posPre": "\u00a4", + "posSuf": "" + } + ] + }, + "id": "en-us", + "localeID": "en_US", + "pluralCat": function(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;} +}); +}]); - 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; + jqLite(function() { + angularInit(window.document, bootstrap); + }); - if (match[2] !== label) continue; +})(window); - 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); +!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend(''); +},{}],334:[function(require,module,exports){ +require('./angular'); +module.exports = angular; - var base64 = lines.slice(start + 1, end).join(''); - // Remove excessive symbols - base64.replace(/[^a-z0-9\+\/=]+/gi, ''); +},{"./angular":333}],335:[function(require,module,exports){ +var asn1 = exports; - var input = new Buffer(base64, 'base64'); - return DERDecoder.prototype.decode.call(this, input, options); -}; +asn1.bignum = require('bn.js'); -},{"./der":329,"buffer":401,"inherits":882}],332:[function(require,module,exports){ -'use strict'; +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":336,"./asn1/base":338,"./asn1/constants":342,"./asn1/decoders":344,"./asn1/encoders":347,"bn.js":381}],336:[function(require,module,exports){ +var asn1 = require('../asn1'); 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; +var api = exports; -DEREncoder.prototype.encode = function encode(data, reporter) { - return this.tree._encode(data, reporter).join(); +api.define = function define(name, body) { + return new Entity(name, body); }; -// Tree methods - -function DERNode(parent) { - base.Node.call(this, 'der', parent); -} -inherits(DERNode, base.Node); +function Entity(name, body) { + this.name = name; + this.body = body; -DERNode.prototype._encodeComposite = function encodeComposite(tag, primitive, cls, content) { - var encodedTag = encodeTag(tag, primitive, cls, this.reporter); + this.decoders = {}; + this.encoders = {}; +}; - // Short form - if (content.length < 0x80) { - var header = new Buffer(2); - header[0] = encodedTag; - header[1] = content.length; - return this._createEncoderBuffer([header, content]); +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 (entity) { + this._initNamed(entity); + }; } + inherits(named, base); + named.prototype._initNamed = function initnamed(entity) { + base.call(this, entity); + }; - // 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]); + return new named(this); }; -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'); - } +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]; }; -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; - } - } +Entity.prototype.decode = function decode(data, enc, options) { + return this._getDecoder(enc).decode(data, options); +}; - if (!Array.isArray(id)) { - return this.reporter.error('objid() should be either array or string, ' + 'got: ' + JSON.stringify(id)); - } +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]; +}; - if (!relative) { - if (id[1] >= 40) return this.reporter.error('Second objid identifier OOB'); - id.splice(0, 2, id[0] * 40 + id[1]); - } +Entity.prototype.encode = function encode(data, enc, /* internal */ reporter) { + return this._getEncoder(enc).encode(data, reporter); +}; - // 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++; - } - } +},{"../asn1":335,"inherits":896,"vm":1009}],337:[function(require,module,exports){ +var inherits = require('inherits'); +var Reporter = require('../base').Reporter; +var Buffer = require('buffer').Buffer; - 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; - } +function DecoderBuffer(base, options) { + Reporter.call(this, options); + if (!Buffer.isBuffer(base)) { + this.error('Input not Buffer'); + return; } - return this._createEncoderBuffer(objid); -}; - -function two(num) { - if (num < 10) return '0' + num;else return num; + this.base = base; + this.offset = 0; + this.length = base.length; } +inherits(DecoderBuffer, Reporter); +exports.DecoderBuffer = DecoderBuffer; -DERNode.prototype._encodeTime = function encodeTime(time, tag) { - var str; - var date = new Date(time); +DecoderBuffer.prototype.save = function save() { + return { offset: this.offset, reporter: Reporter.prototype.save.call(this) }; +}; - 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'); - } +DecoderBuffer.prototype.restore = function restore(save) { + // Return skipped data + var res = new DecoderBuffer(this.base); + res.offset = save.offset; + res.length = this.offset; - return this._encodeStr(str, 'octstr'); + this.offset = save.offset; + Reporter.prototype.restore.call(this, save.reporter); + + return res; }; -DERNode.prototype._encodeNull = function encodeNull() { - return this._createEncoderBuffer(''); +DecoderBuffer.prototype.isEmpty = function isEmpty() { + return this.offset === this.length; }; -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]; - } +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'); +} - // 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); - } +DecoderBuffer.prototype.skip = function skip(bytes, fail) { + if (!(this.offset + bytes <= this.length)) + return this.error(fail || 'DecoderBuffer overrun'); - if (Buffer.isBuffer(num)) { - var size = num.length; - if (num.length === 0) size++; + var res = new DecoderBuffer(this.base); - var out = new Buffer(size); - num.copy(out); - if (num.length === 0) out[0] = 0; - return this._createEncoderBuffer(out); - } + // Share reporter state + res._reporterState = this._reporterState; - if (num < 0x80) return this._createEncoderBuffer(num); + res.offset = this.offset; + res.length = this.offset + bytes; + this.offset += bytes; + return res; +} - if (num < 0x100) return this._createEncoderBuffer([0, num]); +DecoderBuffer.prototype.raw = function raw(save) { + return this.base.slice(save ? save.offset : this.offset, this.length); +} - 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; +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); } - if (out[0] & 0x80) { - out.unshift(0); +} +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 this._createEncoderBuffer(new Buffer(out)); + return out; }; -DERNode.prototype._encodeBool = function encodeBool(value) { - return this._createEncoderBuffer(value ? 0xff : 0); -}; +},{"../base":338,"buffer":415,"inherits":896}],338:[function(require,module,exports){ +var base = exports; -DERNode.prototype._use = function use(entity, obj) { - if (typeof entity === 'function') entity = entity(obj); - return entity._getEncoder('der').tree; -}; +base.Reporter = require('./reporter').Reporter; +base.DecoderBuffer = require('./buffer').DecoderBuffer; +base.EncoderBuffer = require('./buffer').EncoderBuffer; +base.Node = require('./node'); -DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) { - var state = this._baseState; - var i; - if (state['default'] === null) return false; +},{"./buffer":337,"./node":339,"./reporter":340}],339:[function(require,module,exports){ +var Reporter = require('../base').Reporter; +var EncoderBuffer = require('../base').EncoderBuffer; +var DecoderBuffer = require('../base').DecoderBuffer; +var assert = require('minimalistic-assert'); - var data = dataBuffer.join(); - if (state.defaultBuffer === undefined) state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join(); +// 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' +]; - if (data.length !== state.defaultBuffer.length) return false; +// Public methods list +var methods = [ + 'key', 'obj', 'use', 'optional', 'explicit', 'implicit', 'def', 'choice', + 'any', 'contains' +].concat(tags); - for (i = 0; i < data.length; i++) { - if (data[i] !== state.defaultBuffer[i]) return false; - }return true; -}; +// Overrided methods list +var overrided = [ + '_peekTag', '_decodeTag', '_use', + '_decodeStr', '_decodeObjid', '_decodeTime', + '_decodeNull', '_decodeInt', '_decodeBool', '_decodeList', -// Utility methods + '_encodeComposite', '_encodeStr', '_encodeObjid', '_encodeTime', + '_encodeNull', '_encodeInt', '_encodeBool' +]; -function encodeTag(tag, primitive, cls, reporter) { - var res; +function Node(enc, parent) { + var state = {}; + this._baseState = state; - if (tag === 'seqof') tag = 'seq';else if (tag === 'setof') tag = 'set'; + state.enc = enc; - 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); + state.parent = parent || null; + state.children = null; - if (res >= 0x1f) return reporter.error('Multi-octet tag encoding unsupported'); + // 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; - if (!primitive) res |= 0x20; + // Should create new instance on each method + if (!state.parent) { + state.children = []; + this._wrap(); + } +} +module.exports = Node; - res |= der.tagClassByName[cls || 'universal'] << 6; +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; -} +}; -},{"../../asn1":321,"buffer":401,"inherits":882}],333:[function(require,module,exports){ -'use strict'; +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); +}; -var encoders = exports; +Node.prototype._init = function init(body) { + var state = this._baseState; -encoders.der = require('./der'); -encoders.pem = require('./pem'); + assert(state.parent === null); + body.call(this); -},{"./der":332,"./pem":334}],334:[function(require,module,exports){ -'use strict'; + // 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'); +}; -var inherits = require('inherits'); +Node.prototype._useArgs = function useArgs(args) { + var state = this._baseState; -var DEREncoder = require('./der'); + // 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); -function PEMEncoder(entity) { - DEREncoder.call(this, entity); - this.enc = 'pem'; -}; -inherits(PEMEncoder, DEREncoder); -module.exports = PEMEncoder; + if (children.length !== 0) { + assert(state.children === null); + state.children = children; -PEMEncoder.prototype.encode = function encode(data, options) { - var buf = DEREncoder.prototype.encode.call(this, data); + // 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 !== 'object' || arg.constructor !== Object) + return arg; - 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'); + var res = {}; + Object.keys(arg).forEach(function(key) { + if (key == (key | 0)) + key |= 0; + var value = arg[key]; + res[value] = key; + }); + return res; + }); + } }; -},{"./der":332,"inherits":882}],335:[function(require,module,exports){ -(function (global){ -'use strict'; +// +// Overrided methods +// -// compare and isBuffer taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js -// original notice: +overrided.forEach(function(method) { + Node.prototype[method] = function _overrided() { + var state = this._baseState; + throw new Error(method + ' not implemented for encoding: ' + state.enc); + }; +}); -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ +// +// Public methods +// -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; }; +tags.forEach(function(tag) { + Node.prototype[tag] = function _tagMethod() { + var state = this._baseState; + var args = Array.prototype.slice.call(arguments); -function compare(a, b) { - if (a === b) { - return 0; - } + assert(state.tag === null); + state.tag = tag; - var x = a.length; - var y = b.length; + this._useArgs(args); - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i]; - y = b[i]; - break; - } - } + return this; + }; +}); - 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); -} +Node.prototype.use = function use(item) { + assert(item); + var state = this._baseState; -// based on node assert, original notice: + assert(state.use === null); + state.use = item; -// 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. + return this; +}; -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. +Node.prototype.optional = function optional() { + var state = this._baseState; -var assert = module.exports = ok; + state.optional = true; -// 2. The AssertionError is defined in assert. -// new assert.AssertionError({ message: message, -// actual: actual, -// expected: expected }) + return this; +}; -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; +Node.prototype.def = function def(val) { + var state = this._baseState; - // 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); - } + assert(state['default'] === null); + state['default'] = val; + state.optional = true; - this.stack = out; - } - } + return this; }; -// assert.AssertionError instanceof Error -util.inherits(assert.AssertionError, Error); +Node.prototype.explicit = function explicit(num) { + var state = this._baseState; -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); -} + assert(state.explicit === null && state.implicit === null); + state.explicit = num; -// 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. + return this; +}; -// 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. +Node.prototype.implicit = function implicit(num) { + var state = this._baseState; -function fail(actual, expected, message, operator, stackStartFunction) { - throw new assert.AssertionError({ - message: message, - actual: actual, - expected: expected, - operator: operator, - stackStartFunction: stackStartFunction - }); -} + 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); -// EXTENSION! allows for well behaved errors defined elsewhere. -assert.fail = fail; + state.obj = true; -// 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);. + if (args.length !== 0) + this._useArgs(args); -function ok(value, message) { - if (!value) fail(value, true, message, '==', assert.ok); -} -assert.ok = ok; + return this; +}; -// 5. The equality assertion tests shallow, coercive equality with -// ==. -// assert.equal(actual, expected, message_opt); +Node.prototype.key = function key(newKey) { + var state = this._baseState; -assert.equal = function equal(actual, expected, message) { - if (actual != expected) fail(actual, expected, message, '==', assert.equal); + assert(state.key === null); + state.key = newKey; + + return this; }; -// 6. The non-equality assertion tests for whether two objects are not equal -// with != assert.notEqual(actual, expected, message_opt); +Node.prototype.any = function any() { + var state = this._baseState; -assert.notEqual = function notEqual(actual, expected, message) { - if (actual == expected) { - fail(actual, expected, message, '!=', assert.notEqual); - } + state.any = true; + + return this; }; -// 7. The equivalence assertion tests a deep equality relation. -// assert.deepEqual(actual, expected, message_opt); +Node.prototype.choice = function choice(obj) { + var state = this._baseState; -assert.deepEqual = function deepEqual(actual, expected, message) { - if (!_deepEqual(actual, expected, false)) { - fail(actual, expected, message, 'deepEqual', assert.deepEqual); - } + assert(state.choice === null); + state.choice = obj; + this._useArgs(Object.keys(obj).map(function(key) { + return obj[key]; + })); + + return this; }; -assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) { - if (!_deepEqual(actual, expected, true)) { - fail(actual, expected, message, 'deepStrictEqual', assert.deepStrictEqual); - } +Node.prototype.contains = function contains(item) { + var state = this._baseState; + + assert(state.use === null); + state.contains = item; + + return this; }; -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; +// +// Decoding +// - // 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(); +Node.prototype._decode = function decode(input, options) { + var state = this._baseState; - // 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; + // Decode root node + if (state.parent === null) + return input.wrapResult(state.children[0]._decode(input, options)); - // 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; + var result = state['default']; + var present = true; - // 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 prevKey = null; + if (state.key !== null) + prevKey = input.enterKey(state.key); - var actualIndex = memos.actual.indexOf(actual); - if (actualIndex !== -1) { - if (actualIndex === memos.expected.indexOf(expected)) { - return true; + // 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; } + } - memos.actual.push(actual); - memos.expected.push(expected); + // Push object on stack + var prevObj; + if (state.obj && present) + prevObj = input.enterObject(); - return objEquiv(actual, expected, strict, memos); - } -} + if (present) { + // Unwrap explicit values + if (state.explicit !== null) { + var explicit = this._decodeTag(input, state.explicit); + if (input.isError(explicit)) + return explicit; + input = explicit; + } -function isArguments(object) { - return Object.prototype.toString.call(object) == '[object Arguments]'; -} + var start = input.offset; -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; -} + // 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; -// 8. The non-equivalence assertion tests for any deep inequality. -// assert.notDeepEqual(actual, expected, message_opt); + if (state.any) + result = input.raw(save); + else + input = body; + } -assert.notDeepEqual = function notDeepEqual(actual, expected, message) { - if (_deepEqual(actual, expected, false)) { - fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual); + 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; }; -assert.notDeepStrictEqual = notDeepStrictEqual; -function notDeepStrictEqual(actual, expected, message) { - if (_deepEqual(actual, expected, true)) { - fail(actual, expected, message, 'notDeepStrictEqual', notDeepStrictEqual); - } -} +Node.prototype._decodeGeneric = function decodeGeneric(tag, input, options) { + var state = this._baseState; -// 9. The strict equality assertion tests strict equality, as determined by ===. -// assert.strictEqual(actual, expected, message_opt); + 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); -assert.strictEqual = function strictEqual(actual, expected, message) { - if (actual !== expected) { - fail(actual, expected, message, '===', assert.strictEqual); + if (state.use !== null) { + return this._getUse(state.use, input._reporterState.obj) + ._decode(input, options); + } else { + return input.error('unknown tag: ' + tag); } }; -// 10. The strict non-equality assertion tests for strict inequality, as -// determined by !==. assert.notStrictEqual(actual, expected, message_opt); +Node.prototype._getUse = function _getUse(entity, obj) { -assert.notStrictEqual = function notStrictEqual(actual, expected, message) { - if (actual === expected) { - fail(actual, expected, message, '!==', assert.notStrictEqual); + 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; }; -function expectedException(actual, expected) { - if (!actual || !expected) { - return false; - } +Node.prototype._decodeChoice = function decodeChoice(input, options) { + var state = this._baseState; + var result = null; + var match = false; - if (Object.prototype.toString.call(expected) == '[object RegExp]') { - return expected.test(actual); - } + 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; - try { - if (actual instanceof expected) { - return true; + result = { type: key, value: value }; + match = true; + } catch (e) { + input.restore(save); + return false; } - } catch (e) { - // Ignore. The instanceof check doesn't work for arrow functions. - } + return true; + }, this); - if (Error.isPrototypeOf(expected)) { - return false; - } + if (!match) + return input.error('Choice not matched'); - return expected.call({}, actual) === true; -} + return result; +}; -function _tryBlock(block) { - var error; - try { - block(); - } catch (e) { - error = e; - } - return error; -} +// +// Encoding +// -function _throws(shouldThrow, block, expected, message) { - var actual; +Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) { + return new EncoderBuffer(data, this.reporter); +}; - if (typeof block !== 'function') { - throw new TypeError('"block" argument must be a function'); - } +Node.prototype._encode = function encode(data, reporter, parent) { + var state = this._baseState; + if (state['default'] !== null && state['default'] === data) + return; - if (typeof expected === 'string') { - message = expected; - expected = null; - } + var result = this._encodeValue(data, reporter, parent); + if (result === undefined) + return; - actual = _tryBlock(block); + if (this._skipDefault(result, reporter, parent)) + return; - message = (expected && expected.name ? ' (' + expected.name + ').' : '.') + (message ? ' ' + message : '.'); + return result; +}; - if (shouldThrow && !actual) { - fail(actual, expected, 'Missing expected exception' + message); +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; } - var userProvidedMessage = typeof message === 'string'; - var isUnwantedException = !shouldThrow && util.isError(actual); - var isUnexpectedException = !shouldThrow && actual && !expected; + // 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 (isUnwantedException && userProvidedMessage && expectedException(actual, expected) || isUnexpectedException) { - fail(actual, expected, 'Got unwanted exception' + message); + if (child._baseState.key === null) + return reporter.error('Child should have a key'); + var prevKey = reporter.enterKey(child._baseState.key); + + if (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; + } } - if (shouldThrow && actual && expected && !expectedException(actual, expected) || !shouldThrow && actual) { - throw actual; + // 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); + } } -} -// 11. Expected to throw an error: -// assert.throws(block, Error_opt, message_opt); + // Wrap in explicit + if (state.explicit !== null) + result = this._encodeComposite(state.explicit, false, 'context', result); -assert.throws = function (block, /*optional*/error, /*optional*/message) { - _throws(true, block, error, message); + return result; }; -// EXTENSION! This is annoying to write outside this module. -assert.doesNotThrow = function (block, /*optional*/error, /*optional*/message) { - _throws(false, block, error, message); +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); }; -assert.ifError = function (err) { - if (err) throw err; +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); }; -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) { - if (hasOwn.call(obj, key)) keys.push(key); - } - return keys; +Node.prototype._isNumstr = function isNumstr(str) { + return /^[0-9 ]*$/.test(str); }; -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"util/":338}],336:[function(require,module,exports){ -arguments[4][247][0].apply(exports,arguments) -},{"dup":247}],337:[function(require,module,exports){ -'use strict'; +Node.prototype._isPrintstr = function isPrintstr(str) { + return /^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(str); +}; -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; }; +},{"../base":338,"minimalistic-assert":912}],340:[function(require,module,exports){ +var inherits = require('inherits'); -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'; +function Reporter(options) { + this._reporterState = { + obj: null, + path: [], + options: options || {}, + errors: [] + }; +} +exports.Reporter = Reporter; + +Reporter.prototype.isError = function isError(obj) { + return obj instanceof ReporterError; }; -},{}],338:[function(require,module,exports){ -(function (process,global){ -'use strict'; +Reporter.prototype.save = function save() { + var state = this._reporterState; -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; }; + return { obj: state.obj, pathLen: state.path.length }; +}; -// 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. +Reporter.prototype.restore = function restore(data) { + var state = this._reporterState; -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(' '); - } + state.obj = data.obj; + state.path = state.path.slice(0, data.pathLen); +}; - 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; +Reporter.prototype.enterKey = function enterKey(key) { + return this._reporterState.path.push(key); }; -// 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); - }; - } +Reporter.prototype.exitKey = function exitKey(index) { + var state = this._reporterState; - if (process.noDeprecation === true) { - return fn; - } + state.path = state.path.slice(0, index - 1); +}; - 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); - } +Reporter.prototype.leaveKey = function leaveKey(index, key, value) { + var state = this._reporterState; - return deprecated; + this.exitKey(index); + if (state.obj !== null) + state.obj[key] = value; }; -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]; +Reporter.prototype.path = function path() { + return this._reporterState.path.join('/'); }; -/** - * 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; +Reporter.prototype.enterObject = function enterObject() { + var state = this._reporterState; -// 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] + var prev = state.obj; + state.obj = {}; + return prev; }; -// 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' +Reporter.prototype.leaveObject = function leaveObject(prev) { + var state = this._reporterState; + + var now = state.obj; + state.obj = prev; + return now; }; -function stylizeWithColor(str, styleType) { - var style = inspect.styles[styleType]; +Reporter.prototype.error = function error(msg) { + var err; + var state = this._reporterState; - if (style) { - return '\x1B[' + inspect.colors[style][0] + 'm' + str + '\x1B[' + inspect.colors[style][1] + 'm'; + var inherited = msg instanceof ReporterError; + if (inherited) { + err = msg; } else { - return str; + err = new ReporterError(state.path.map(function(elem) { + return '[' + JSON.stringify(elem) + ']'; + }).join(''), msg.message || msg, msg.stack); } -} -function stylizeNoColor(str, styleType) { - return str; -} + if (!state.options.partial) + throw err; -function arrayToHash(array) { - var hash = {}; + if (!inherited) + state.errors.push(err); - array.forEach(function (val, idx) { - hash[val] = true; - }); + return err; +}; - return hash; -} +Reporter.prototype.wrapResult = function wrapResult(result) { + var state = this._reporterState; + if (!state.options.partial) + return result; -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 { + 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 ret; } + return this; +}; - // Primitive types cannot have properties - var primitive = formatPrimitive(ctx, value); - if (primitive) { - return primitive; - } +},{"inherits":896}],341:[function(require,module,exports){ +var constants = require('../constants'); - // Look up the keys of the object. - var keys = Object.keys(value); - var visibleKeys = arrayToHash(keys); +exports.tagClass = { + 0: 'universal', + 1: 'application', + 2: 'context', + 3: 'private' +}; +exports.tagClassByName = constants._reverse(exports.tagClass); - if (ctx.showHidden) { - keys = Object.getOwnPropertyNames(value); - } +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); - // 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); - } +},{"../constants":342}],342:[function(require,module,exports){ +var constants = exports; - // 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); - } - } +// Helper +constants._reverse = function reverse(map) { + var res = {}; - var base = '', - array = false, - braces = ['{', '}']; + Object.keys(map).forEach(function(key) { + // Convert key to integer if it is stringified + if ((key | 0) == key) + key = key | 0; - // Make Array say that they are Array - if (isArray(value)) { - array = true; - braces = ['[', ']']; - } + var value = map[key]; + res[value] = key; + }); - // Make functions say that they are functions - if (isFunction(value)) { - var n = value.name ? ': ' + value.name : ''; - base = ' [Function' + n + ']'; - } + return res; +}; - // Make RegExps say that they are RegExps - if (isRegExp(value)) { - base = ' ' + RegExp.prototype.toString.call(value); - } +constants.der = require('./der'); - // Make dates with properties first say the date - if (isDate(value)) { - base = ' ' + Date.prototype.toUTCString.call(value); - } +},{"./der":341}],343:[function(require,module,exports){ +var inherits = require('inherits'); - // Make error with message first say the error - if (isError(value)) { - base = ' ' + formatError(value); - } +var asn1 = require('../../asn1'); +var base = asn1.base; +var bignum = asn1.bignum; - if (keys.length === 0 && (!array || value.length == 0)) { - return braces[0] + base + braces[1]; - } +// Import DER constants +var der = asn1.constants.der; - if (recurseTimes < 0) { - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } else { - return ctx.stylize('[Object]', 'special'); - } - } +function DERDecoder(entity) { + this.enc = 'der'; + this.name = entity.name; + this.entity = entity; - ctx.seen.push(value); + // Construct base tree + this.tree = new DERNode(); + this.tree._init(entity.body); +}; +module.exports = DERDecoder; - 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); - }); - } +DERDecoder.prototype.decode = function decode(data, options) { + if (!(data instanceof base.DecoderBuffer)) + data = new base.DecoderBuffer(data, options); - ctx.seen.pop(); + return this.tree._decode(data, options); +}; - return reduceToSingleString(output, base, braces); -} +// Tree methods -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 DERNode(parent) { + base.Node.call(this, 'der', parent); } +inherits(DERNode, base.Node); -function formatError(value) { - return '[' + Error.prototype.toString.call(value) + ']'; -} +DERNode.prototype._peekTag = function peekTag(buffer, tag, any) { + if (buffer.isEmpty()) + return false; -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; -} + var state = buffer.save(); + var decodedTag = derDecodeTag(buffer, 'Failed to peek tag: "' + tag + '"'); + if (buffer.isError(decodedTag)) + return decodedTag; -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'); - } - } + buffer.restore(state); - return name + ': ' + str; -} + return decodedTag.tag === tag || decodedTag.tagStr === tag || + (decodedTag.tagStr + 'of') === tag || any; +}; -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); +DERNode.prototype._decodeTag = function decodeTag(buffer, tag, any) { + var decodedTag = derDecodeTag(buffer, + 'Failed to decode tag of "' + tag + '"'); + if (buffer.isError(decodedTag)) + return decodedTag; - if (length > 60) { - return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; + 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 + '"'); } - return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; -} + if (decodedTag.primitive || len !== null) + return buffer.skip(len, 'Failed to match body of: "' + tag + '"'); -// 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; + // 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; -function isBoolean(arg) { - return typeof arg === 'boolean'; -} -exports.isBoolean = isBoolean; + len = buffer.offset - state.offset; + buffer.restore(state); + return buffer.skip(len, 'Failed to match body of: "' + tag + '"'); +}; -function isNull(arg) { - return arg === null; -} -exports.isNull = isNull; +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; -function isNullOrUndefined(arg) { - return arg == null; -} -exports.isNullOrUndefined = isNullOrUndefined; + var res; + if (tag.primitive || len !== null) + res = buffer.skip(len) + else + res = this._skipUntilEnd(buffer, fail); -function isNumber(arg) { - return typeof arg === 'number'; -} -exports.isNumber = isNumber; + // Failure + if (buffer.isError(res)) + return res; -function isString(arg) { - return typeof arg === 'string'; -} -exports.isString = isString; + if (tag.tagStr === 'end') + break; + } +}; -function isSymbol(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol'; -} -exports.isSymbol = isSymbol; +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; -function isUndefined(arg) { - return arg === void 0; -} -exports.isUndefined = isUndefined; + var res = decoder.decode(buffer, 'der', options); + if (buffer.isError(res) && possibleEnd) + break; + result.push(res); + } + return result; +}; -function isRegExp(re) { - return isObject(re) && objectToString(re) === '[object RegExp]'; -} -exports.isRegExp = isRegExp; +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'); -function isObject(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null; -} -exports.isObject = isObject; + 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'); + } +}; -function isDate(d) { - return isObject(d) && objectToString(d) === '[object Date]'; -} -exports.isDate = isDate; +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); -function isError(e) { - return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); -} -exports.isError = isError; + var first = (identifiers[0] / 40) | 0; + var second = identifiers[0] % 40; -function isFunction(arg) { - return typeof arg === 'function'; -} -exports.isFunction = isFunction; + if (relative) + result = identifiers; + else + result = [first, second].concat(identifiers.slice(1)); -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; + if (values) { + var tmp = values[result.join(' ')]; + if (tmp === undefined) + tmp = values[result.join('.')]; + if (tmp !== undefined) + result = tmp; + } -exports.isBuffer = require('./support/isBuffer'); + 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; +}; -function objectToString(o) { - return Object.prototype.toString.call(o); -} +DERNode.prototype._decodeBool = function decodeBool(buffer) { + var res = buffer.readUInt8(); + if (buffer.isError(res)) + return res; + else + return res !== 0; +}; -function pad(n) { - return n < 10 ? '0' + n.toString(10) : n.toString(10); -} +DERNode.prototype._decodeInt = function decodeInt(buffer, values) { + // Bigint, return as it is (assume big endian) + var raw = buffer.raw(); + var res = new bignum(raw); -var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; + if (values) + res = values[res.toString(10)] || res; -// 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(' '); -} + return res; +}; -// 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)); +DERNode.prototype._use = function use(entity, obj) { + if (typeof entity === 'function') + entity = entity(obj); + return entity._getDecoder('der').tree; }; -/** - * 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'); +// Utility methods -exports._extend = function (origin, add) { - // Don't do anything if add isn't an object - if (!add || !isObject(add)) return origin; +function derDecodeTag(buf, fail) { + var tag = buf.readUInt8(fail); + if (buf.isError(tag)) + return tag; - var keys = Object.keys(add); - var i = keys.length; - while (i--) { - origin[keys[i]] = add[keys[i]]; + 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; } - return origin; -}; + var tagStr = der.tag[tag]; -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); + return { + cls: cls, + primitive: primitive, + tag: tag, + tagStr: tagStr + }; } -}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./support/isBuffer":337,"_process":911,"inherits":336}],339:[function(require,module,exports){ -(function (global){ -"use strict"; +function derDecodeLen(buf, primitive, fail) { + var len = buf.readUInt8(fail); + if (buf.isError(len)) + return len; -require("core-js/shim"); + // Indefinite form + if (!primitive && len === 0x80) + return null; -require("regenerator-runtime/runtime"); + // Definite form + if ((len & 0x80) === 0) { + // Short form + return len; + } -require("core-js/fn/regexp/escape"); + // Long form + var num = len & 0x7f; + if (num > 4) + return buf.error('length octect is too long'); -if (global._babelPolyfill) { - throw new Error("only one instance of babel-polyfill is allowed"); -} -global._babelPolyfill = true; + len = 0; + for (var i = 0; i < num; i++) { + len <<= 8; + var j = buf.readUInt8(fail); + if (buf.isError(j)) + return j; + len |= j; + } -var DEFINE_PROPERTY = "defineProperty"; -function define(O, key, value) { - O[key] || Object[DEFINE_PROPERTY](O, key, { - writable: true, - configurable: true, - value: value - }); + return len; } -define(String.prototype, "padLeft", "".padStart); -define(String.prototype, "padRight", "".padEnd); +},{"../../asn1":335,"inherits":896}],344:[function(require,module,exports){ +var decoders = exports; -"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) { - [][key] && define(Array, key, Function.call.bind([][key])); -}); +decoders.der = require('./der'); +decoders.pem = require('./pem'); -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"core-js/fn/regexp/escape":404,"core-js/shim":820,"regenerator-runtime/runtime":340}],340:[function(require,module,exports){ -(function (global){ -"use strict"; +},{"./der":343,"./pem":345}],345:[function(require,module,exports){ +var inherits = require('inherits'); +var Buffer = require('buffer').Buffer; -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 DERDecoder = require('./der'); -/** - * Copyright (c) 2014, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * https://raw.github.com/facebook/regenerator/master/LICENSE file. An - * additional grant of patent rights can be found in the PATENTS file in - * the same directory. - */ +function PEMDecoder(entity) { + DERDecoder.call(this, entity); + this.enc = 'pem'; +}; +inherits(PEMDecoder, DERDecoder); +module.exports = PEMDecoder; -!function (global) { - "use strict"; +PEMDecoder.prototype.decode = function decode(data, options) { + var lines = data.toString().split(/[\r\n]+/g); - var Op = Object.prototype; - var hasOwn = Op.hasOwnProperty; - var undefined; // More compressible than void 0. - var $Symbol = typeof Symbol === "function" ? Symbol : {}; - var iteratorSymbol = $Symbol.iterator || "@@iterator"; - var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; - var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + var label = options.label.toUpperCase(); - var inModule = (typeof module === "undefined" ? "undefined" : _typeof(module)) === "object"; - var runtime = global.regeneratorRuntime; - if (runtime) { - if (inModule) { - // If regeneratorRuntime is defined globally and we're in a module, - // make the exports object identical to regeneratorRuntime. - module.exports = runtime; + 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; } - // Don't bother evaluating the rest of this file if the runtime was - // already defined globally. - return; } + if (start === -1 || end === -1) + throw new Error('PEM section not found for: ' + label); - // Define the runtime globally (as expected by generated code) as either - // module.exports (if we're in a module) or a new, empty object. - runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + var base64 = lines.slice(start + 1, end).join(''); + // Remove excessive symbols + base64.replace(/[^a-z0-9\+\/=]+/gi, ''); - function wrap(innerFn, outerFn, self, tryLocsList) { - // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; - var generator = Object.create(protoGenerator.prototype); - var context = new Context(tryLocsList || []); + var input = new Buffer(base64, 'base64'); + return DERDecoder.prototype.decode.call(this, input, options); +}; - // The ._invoke method unifies the implementations of the .next, - // .throw, and .return methods. - generator._invoke = makeInvokeMethod(innerFn, self, context); +},{"./der":343,"buffer":415,"inherits":896}],346:[function(require,module,exports){ +var inherits = require('inherits'); +var Buffer = require('buffer').Buffer; - return generator; - } - runtime.wrap = wrap; +var asn1 = require('../../asn1'); +var base = asn1.base; - // Try/catch helper to minimize deoptimizations. Returns a completion - // record like context.tryEntries[i].completion. This interface could - // have been (and was previously) designed to take a closure to be - // invoked without arguments, but in all the cases we care about we - // already have an existing method we want to call, so there's no need - // to create a new function object. We can even get away with assuming - // the method takes exactly one argument, since that happens to be true - // in every case, so we don't have to touch the arguments object. The - // only additional allocation required is the completion record, which - // has a stable shape and so hopefully should be cheap to allocate. - function tryCatch(fn, obj, arg) { - try { - return { type: "normal", arg: fn.call(obj, arg) }; - } catch (err) { - return { type: "throw", arg: err }; - } - } +// Import DER constants +var der = asn1.constants.der; - var GenStateSuspendedStart = "suspendedStart"; - var GenStateSuspendedYield = "suspendedYield"; - var GenStateExecuting = "executing"; - var GenStateCompleted = "completed"; +function DEREncoder(entity) { + this.enc = 'der'; + this.name = entity.name; + this.entity = entity; - // Returning this object from the innerFn has the same effect as - // breaking out of the dispatch switch statement. - var ContinueSentinel = {}; + // Construct base tree + this.tree = new DERNode(); + this.tree._init(entity.body); +}; +module.exports = DEREncoder; - // Dummy constructor functions that we use as the .constructor and - // .constructor.prototype properties for functions that return Generator - // objects. For full spec compliance, you may wish to configure your - // minifier not to mangle the names of these two functions. - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} +DEREncoder.prototype.encode = function encode(data, reporter) { + return this.tree._encode(data, reporter).join(); +}; - // This is a polyfill for %IteratorPrototype% for environments that - // don't natively support it. - var IteratorPrototype = {}; - IteratorPrototype[iteratorSymbol] = function () { - return this; - }; +// Tree methods - var getProto = Object.getPrototypeOf; - var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { - // This environment has a native %IteratorPrototype%; use it instead - // of the polyfill. - IteratorPrototype = NativeIteratorPrototype; - } +function DERNode(parent) { + base.Node.call(this, 'der', parent); +} +inherits(DERNode, base.Node); - var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); - GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; - GeneratorFunctionPrototype.constructor = GeneratorFunction; - GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; +DERNode.prototype._encodeComposite = function encodeComposite(tag, + primitive, + cls, + content) { + var encodedTag = encodeTag(tag, primitive, cls, this.reporter); - // Helper for defining the .next, .throw, and .return methods of the - // Iterator interface in terms of a single ._invoke method. - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function (method) { - prototype[method] = function (arg) { - return this._invoke(method, arg); - }; - }); + // Short form + if (content.length < 0x80) { + var header = new Buffer(2); + header[0] = encodedTag; + header[1] = content.length; + return this._createEncoderBuffer([ header, content ]); } - runtime.isGeneratorFunction = function (genFun) { - var ctor = typeof genFun === "function" && genFun.constructor; - return ctor ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" : false; - }; + // Long form + // Count octets required to store length + var lenOctets = 1; + for (var i = content.length; i >= 0x100; i >>= 8) + lenOctets++; - runtime.mark = function (genFun) { - if (Object.setPrototypeOf) { - Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); - } else { - genFun.__proto__ = GeneratorFunctionPrototype; - if (!(toStringTagSymbol in genFun)) { - genFun[toStringTagSymbol] = "GeneratorFunction"; - } - } - genFun.prototype = Object.create(Gp); - return genFun; - }; + var header = new Buffer(1 + 1 + lenOctets); + header[0] = encodedTag; + header[1] = 0x80 | lenOctets; - // Within the body of any async function, `await x` is transformed to - // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test - // `hasOwn.call(value, "__await")` to determine if the yielded value is - // meant to be awaited. - runtime.awrap = function (arg) { - return { __await: arg }; - }; + for (var i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8) + header[i] = j & 0xff; - function AsyncIterator(generator) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if (record.type === "throw") { - reject(record.arg); - } else { - var result = record.arg; - var value = result.value; - if (value && (typeof value === "undefined" ? "undefined" : _typeof(value)) === "object" && hasOwn.call(value, "__await")) { - return Promise.resolve(value.__await).then(function (value) { - invoke("next", value, resolve, reject); - }, function (err) { - invoke("throw", err, resolve, reject); - }); - } + return this._createEncoderBuffer([ header, content ]); +}; - return Promise.resolve(value).then(function (unwrapped) { - // When a yielded Promise is resolved, its final value becomes - // the .value of the Promise<{value,done}> result for the - // current iteration. If the Promise is rejected, however, the - // result for this iteration will be rejected with the same - // reason. Note that rejections of yielded Promises are not - // thrown back into the generator function, as is the case - // when an awaited Promise is rejected. This difference in - // behavior between yield and await is important, because it - // allows the consumer to decide what to do with the yielded - // rejection (swallow it and continue, manually .throw it back - // into the generator, abandon iteration, whatever). With - // await, by contrast, there is no opportunity to examine the - // rejection reason outside the generator function, so the - // only option is to throw it from the await expression, and - // let the generator function handle the exception. - result.value = unwrapped; - resolve(result); - }, reject); - } +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); } - - if (_typeof(global.process) === "object" && global.process.domain) { - invoke = global.process.domain.bind(invoke); + 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'); + } +}; - var previousPromise; +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; + } - function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new Promise(function (resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } + if (!Array.isArray(id)) { + return this.reporter.error('objid() should be either array or string, ' + + 'got: ' + JSON.stringify(id)); + } - return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } + if (!relative) { + if (id[1] >= 40) + return this.reporter.error('Second objid identifier OOB'); + id.splice(0, 2, id[0] * 40 + id[1]); + } - // Define the unified helper method that is used to implement .next, - // .throw, and .return (see defineIteratorMethods). - this._invoke = enqueue; + // 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++; } - defineIteratorMethods(AsyncIterator.prototype); - AsyncIterator.prototype[asyncIteratorSymbol] = function () { - return this; - }; - runtime.AsyncIterator = AsyncIterator; + 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); + } - // Note that simple async functions are implemented on top of - // AsyncIterator objects; they just return a Promise for the value of - // the final result produced by the iterator. - runtime.async = function (innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList)); + return this._createEncoderBuffer(objid); +}; - return runtime.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function (result) { - return result.done ? result.value : iter.next(); - }); - }; +function two(num) { + if (num < 10) + return '0' + num; + else + return num; +} - function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; +DERNode.prototype._encodeTime = function encodeTime(time, tag) { + var str; + var date = new Date(time); - return function invoke(method, arg) { - if (state === GenStateExecuting) { - throw new Error("Generator is already running"); - } + 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'); + } - if (state === GenStateCompleted) { - if (method === "throw") { - throw arg; - } + return this._encodeStr(str, 'octstr'); +}; - // Be forgiving, per 25.3.3.3.3 of the spec: - // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume - return doneResult(); - } +DERNode.prototype._encodeNull = function encodeNull() { + return this._createEncoderBuffer(''); +}; - context.method = method; - context.arg = arg; +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]; + } - while (true) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } + // 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 (context.method === "next") { - // Setting context._sent for legacy support of Babel's - // function.sent implementation. - context.sent = context._sent = context.arg; - } else if (context.method === "throw") { - if (state === GenStateSuspendedStart) { - state = GenStateCompleted; - throw context.arg; - } + if (Buffer.isBuffer(num)) { + var size = num.length; + if (num.length === 0) + size++; - context.dispatchException(context.arg); - } else if (context.method === "return") { - context.abrupt("return", context.arg); - } + var out = new Buffer(size); + num.copy(out); + if (num.length === 0) + out[0] = 0 + return this._createEncoderBuffer(out); + } - state = GenStateExecuting; + if (num < 0x80) + return this._createEncoderBuffer(num); - var record = tryCatch(innerFn, self, context); - if (record.type === "normal") { - // If an exception is thrown from innerFn, we leave state === - // GenStateExecuting and loop back for another invocation. - state = context.done ? GenStateCompleted : GenStateSuspendedYield; + if (num < 0x100) + return this._createEncoderBuffer([0, num]); - if (record.arg === ContinueSentinel) { - continue; - } + var size = 1; + for (var i = num; i >= 0x100; i >>= 8) + size++; - return { - value: record.arg, - done: context.done - }; - } else if (record.type === "throw") { - state = GenStateCompleted; - // Dispatch the exception by looping back around to the - // context.dispatchException(context.arg) call above. - context.method = "throw"; - context.arg = record.arg; - } - } - }; + 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); } - // Call delegate.iterator[context.method](context.arg) and handle the - // result, either by returning a { value, done } result from the - // delegate iterator, or by modifying context.method and context.arg, - // setting context.delegate to null, and returning the ContinueSentinel. - function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; - if (method === undefined) { - // A .throw or .return when the delegate iterator has no .throw - // method always terminates the yield* loop. - context.delegate = null; + 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; +}; - if (context.method === "throw") { - if (delegate.iterator.return) { - // If the delegate iterator has a return method, give it a - // chance to clean up. - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); +DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) { + var state = this._baseState; + var i; + if (state['default'] === null) + return false; - if (context.method === "throw") { - // If maybeInvokeDelegate(context) changed context.method from - // "return" to "throw", let that override the TypeError below. - return ContinueSentinel; - } - } + var data = dataBuffer.join(); + if (state.defaultBuffer === undefined) + state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join(); - context.method = "throw"; - context.arg = new TypeError("The iterator does not provide a 'throw' method"); - } + if (data.length !== state.defaultBuffer.length) + return false; - return ContinueSentinel; - } + for (i=0; i < data.length; i++) + if (data[i] !== state.defaultBuffer[i]) + return false; - var record = tryCatch(method, delegate.iterator, context.arg); + return true; +}; - if (record.type === "throw") { - context.method = "throw"; - context.arg = record.arg; - context.delegate = null; - return ContinueSentinel; - } +// Utility methods - var info = record.arg; +function encodeTag(tag, primitive, cls, reporter) { + var res; - if (!info) { - context.method = "throw"; - context.arg = new TypeError("iterator result is not an object"); - context.delegate = null; - return ContinueSentinel; - } + if (tag === 'seqof') + tag = 'seq'; + else if (tag === 'setof') + tag = 'set'; - if (info.done) { - // Assign the result of the finished delegate to the temporary - // variable specified by delegate.resultName (see delegateYield). - context[delegate.resultName] = info.value; + 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); - // Resume execution at the desired location (see delegateYield). - context.next = delegate.nextLoc; + if (res >= 0x1f) + return reporter.error('Multi-octet tag encoding unsupported'); - // If context.method was "throw" but the delegate handled the - // exception, let the outer generator proceed normally. If - // context.method was "next", forget context.arg since it has been - // "consumed" by the delegate iterator. If context.method was - // "return", allow the original .return call to continue in the - // outer generator. - if (context.method !== "return") { - context.method = "next"; - context.arg = undefined; - } - } else { - // Re-yield the result returned by the delegate method. - return info; - } + if (!primitive) + res |= 0x20; - // The delegate iterator is finished, so forget it and continue with - // the outer generator. - context.delegate = null; - return ContinueSentinel; - } + res |= (der.tagClassByName[cls || 'universal'] << 6); - // Define Generator.prototype.{next,throw,return} in terms of the - // unified ._invoke helper method. - defineIteratorMethods(Gp); + return res; +} - Gp[toStringTagSymbol] = "Generator"; +},{"../../asn1":335,"buffer":415,"inherits":896}],347:[function(require,module,exports){ +var encoders = exports; - // A Generator should always return itself as the iterator object when the - // @@iterator function is called on it. Some browsers' implementations of the - // iterator prototype chain incorrectly implement this, causing the Generator - // object to not be returned from this call. This ensures that doesn't happen. - // See https://github.com/facebook/regenerator/issues/274 for more details. - Gp[iteratorSymbol] = function () { - return this; - }; +encoders.der = require('./der'); +encoders.pem = require('./pem'); - Gp.toString = function () { - return "[object Generator]"; - }; +},{"./der":346,"./pem":348}],348:[function(require,module,exports){ +var inherits = require('inherits'); - function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; +var DEREncoder = require('./der'); - if (1 in locs) { - entry.catchLoc = locs[1]; - } +function PEMEncoder(entity) { + DEREncoder.call(this, entity); + this.enc = 'pem'; +}; +inherits(PEMEncoder, DEREncoder); +module.exports = PEMEncoder; - if (2 in locs) { - entry.finallyLoc = locs[2]; - entry.afterLoc = locs[3]; - } +PEMEncoder.prototype.encode = function encode(data, options) { + var buf = DEREncoder.prototype.encode.call(this, data); - this.tryEntries.push(entry); - } + 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'); +}; - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal"; - delete record.arg; - entry.completion = record; - } +},{"./der":346,"inherits":896}],349:[function(require,module,exports){ +(function (global){ +'use strict'; - function Context(tryLocsList) { - // The root entry object (effectively a try statement without a catch - // or a finally block) gives us a place to store values thrown from - // locations where there is no enclosing try statement. - this.tryEntries = [{ tryLoc: "root" }]; - tryLocsList.forEach(pushTryEntry, this); - this.reset(true); +// 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 + * @license MIT + */ +function compare(a, b) { + if (a === b) { + return 0; } - runtime.keys = function (object) { - var keys = []; - for (var key in object) { - keys.push(key); + 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; } - keys.reverse(); + } - // Rather than returning an object with a next method, we keep - // things simple and return the next function itself. - return function next() { - while (keys.length) { - var key = keys.pop(); - if (key in object) { - next.value = key; - next.done = false; - return next; - } - } + 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); +} - // To avoid creating an additional object, we just hang the .value - // and .done properties off the next function object itself. This - // also ensures that the minifier will not anonymize the function. - next.done = true; - return next; - }; - }; +// based on node assert, original notice: - function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) { - return iteratorMethod.call(iterable); - } +// 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. - if (typeof iterable.next === "function") { - return iterable; - } +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. - if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { - while (++i < iterable.length) { - if (hasOwn.call(iterable, i)) { - next.value = iterable[i]; - next.done = false; - return next; - } - } +var assert = module.exports = ok; - next.value = undefined; - next.done = true; +// 2. The AssertionError is defined in assert. +// new assert.AssertionError({ message: message, +// actual: actual, +// expected: expected }) - return next; - }; +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; - return next.next = next; + // 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); } - } - - // Return an iterator with no values. - return { next: doneResult }; - } - runtime.values = values; - function doneResult() { - return { value: undefined, done: true }; + this.stack = out; + } } +}; - Context.prototype = { - constructor: Context, +// assert.AssertionError instanceof Error +util.inherits(assert.AssertionError, Error); - reset: function reset(skipTempReset) { - this.prev = 0; - this.next = 0; - // Resetting context._sent for legacy support of Babel's - // function.sent implementation. - this.sent = this._sent = undefined; - this.done = false; - this.delegate = null; +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); +} - this.method = "next"; - this.arg = undefined; +// 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. - this.tryEntries.forEach(resetTryEntry); +// 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. - if (!skipTempReset) { - for (var name in this) { - // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { - this[name] = undefined; - } - } - } - }, +function fail(actual, expected, message, operator, stackStartFunction) { + throw new assert.AssertionError({ + message: message, + actual: actual, + expected: expected, + operator: operator, + stackStartFunction: stackStartFunction + }); +} - stop: function stop() { - this.done = true; +// EXTENSION! allows for well behaved errors defined elsewhere. +assert.fail = fail; - var rootEntry = this.tryEntries[0]; - var rootRecord = rootEntry.completion; - if (rootRecord.type === "throw") { - throw rootRecord.arg; - } +// 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);. - return this.rval; - }, +function ok(value, message) { + if (!value) fail(value, true, message, '==', assert.ok); +} +assert.ok = ok; - dispatchException: function dispatchException(exception) { - if (this.done) { - throw exception; - } +// 5. The equality assertion tests shallow, coercive equality with +// ==. +// assert.equal(actual, expected, message_opt); - var context = this; - function handle(loc, caught) { - record.type = "throw"; - record.arg = exception; - context.next = loc; +assert.equal = function equal(actual, expected, message) { + if (actual != expected) fail(actual, expected, message, '==', assert.equal); +}; - if (caught) { - // If the dispatched exception was caught by a catch block, - // then let that catch block handle the exception normally. - context.method = "next"; - context.arg = undefined; - } +// 6. The non-equality assertion tests for whether two objects are not equal +// with != assert.notEqual(actual, expected, message_opt); - return !!caught; - } +assert.notEqual = function notEqual(actual, expected, message) { + if (actual == expected) { + fail(actual, expected, message, '!=', assert.notEqual); + } +}; - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - var record = entry.completion; +// 7. The equivalence assertion tests a deep equality relation. +// assert.deepEqual(actual, expected, message_opt); - if (entry.tryLoc === "root") { - // Exception thrown outside of any try block that could handle - // it, so set the completion value of the entire function to - // throw the exception. - return handle("end"); - } +assert.deepEqual = function deepEqual(actual, expected, message) { + if (!_deepEqual(actual, expected, false)) { + fail(actual, expected, message, 'deepEqual', assert.deepEqual); + } +}; - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"); - var hasFinally = hasOwn.call(entry, "finallyLoc"); +assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) { + if (!_deepEqual(actual, expected, true)) { + fail(actual, expected, message, 'deepStrictEqual', assert.deepStrictEqual); + } +}; - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } else if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - } else if (hasCatch) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } - } else if (hasFinally) { - if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - } else { - throw new Error("try statement without catch or finally"); - } - } - } - }, +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; - abrupt: function abrupt(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } + // 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(); - if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { - // Ignore the finally entry if control is not jumping to a - // location outside the try/catch block. - finallyEntry = null; - } + // 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 !== 'object') && + (expected === null || typeof expected !== 'object')) { + return strict ? actual === expected : actual == expected; - var record = finallyEntry ? finallyEntry.completion : {}; - record.type = type; - record.arg = arg; + // 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: []}; - if (finallyEntry) { - this.method = "next"; - this.next = finallyEntry.finallyLoc; - return ContinueSentinel; + var actualIndex = memos.actual.indexOf(actual); + if (actualIndex !== -1) { + if (actualIndex === memos.expected.indexOf(expected)) { + return true; } + } - return this.complete(record); - }, + memos.actual.push(actual); + memos.expected.push(expected); - complete: function complete(record, afterLoc) { - if (record.type === "throw") { - throw record.arg; - } + return objEquiv(actual, expected, strict, memos); + } +} - if (record.type === "break" || record.type === "continue") { - this.next = record.arg; - } else if (record.type === "return") { - this.rval = this.arg = record.arg; - this.method = "return"; - this.next = "end"; - } else if (record.type === "normal" && afterLoc) { - this.next = afterLoc; - } +function isArguments(object) { + return Object.prototype.toString.call(object) == '[object Arguments]'; +} - return ContinueSentinel; - }, +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; +} - finish: function finish(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) { - this.complete(entry.completion, entry.afterLoc); - resetTryEntry(entry); - return ContinueSentinel; - } - } - }, +// 8. The non-equivalence assertion tests for any deep inequality. +// assert.notDeepEqual(actual, expected, message_opt); - "catch": function _catch(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if (record.type === "throw") { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } +assert.notDeepEqual = function notDeepEqual(actual, expected, message) { + if (_deepEqual(actual, expected, false)) { + fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual); + } +}; - // The context.catch method must only be called with a location - // argument that corresponds to a known catch block. - throw new Error("illegal catch attempt"); - }, +assert.notDeepStrictEqual = notDeepStrictEqual; +function notDeepStrictEqual(actual, expected, message) { + if (_deepEqual(actual, expected, true)) { + fail(actual, expected, message, 'notDeepStrictEqual', notDeepStrictEqual); + } +} - delegateYield: function delegateYield(iterable, resultName, nextLoc) { - this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }; - if (this.method === "next") { - // Deliberately forget the last sent value so that we don't - // accidentally pass it on to the delegate. - this.arg = undefined; - } +// 9. The strict equality assertion tests strict equality, as determined by ===. +// assert.strictEqual(actual, expected, message_opt); - return ContinueSentinel; - } - }; -}( -// Among the various tricks for obtaining a reference to the global -// object, this seems to be the most reliable technique that does not -// use indirect eval (which violates Content Security Policy). -(typeof global === "undefined" ? "undefined" : _typeof(global)) === "object" ? global : (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" ? window : (typeof self === "undefined" ? "undefined" : _typeof(self)) === "object" ? self : undefined); +assert.strictEqual = function strictEqual(actual, expected, message) { + if (actual !== expected) { + fail(actual, expected, message, '===', assert.strictEqual); + } +}; -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],341:[function(require,module,exports){ -"use strict"; +// 10. The strict non-equality assertion tests for strict inequality, as +// determined by !==. assert.notStrictEqual(actual, expected, message_opt); -module.exports = { "default": require("core-js/library/fn/object/assign"), __esModule: true }; +assert.notStrictEqual = function notStrictEqual(actual, expected, message) { + if (actual === expected) { + fail(actual, expected, message, '!==', assert.notStrictEqual); + } +}; -},{"core-js/library/fn/object/assign":405}],342:[function(require,module,exports){ -"use strict"; +function expectedException(actual, expected) { + if (!actual || !expected) { + return false; + } -module.exports = { "default": require("core-js/library/fn/object/create"), __esModule: true }; + if (Object.prototype.toString.call(expected) == '[object RegExp]') { + return expected.test(actual); + } -},{"core-js/library/fn/object/create":406}],343:[function(require,module,exports){ -"use strict"; + try { + if (actual instanceof expected) { + return true; + } + } catch (e) { + // Ignore. The instanceof check doesn't work for arrow functions. + } -module.exports = { "default": require("core-js/library/fn/object/set-prototype-of"), __esModule: true }; + if (Error.isPrototypeOf(expected)) { + return false; + } -},{"core-js/library/fn/object/set-prototype-of":407}],344:[function(require,module,exports){ -"use strict"; + return expected.call({}, actual) === true; +} -module.exports = { "default": require("core-js/library/fn/promise"), __esModule: true }; +function _tryBlock(block) { + var error; + try { + block(); + } catch (e) { + error = e; + } + return error; +} -},{"core-js/library/fn/promise":408}],345:[function(require,module,exports){ -"use strict"; +function _throws(shouldThrow, block, expected, message) { + var actual; -module.exports = { "default": require("core-js/library/fn/symbol"), __esModule: true }; + if (typeof block !== 'function') { + throw new TypeError('"block" argument must be a function'); + } -},{"core-js/library/fn/symbol":409}],346:[function(require,module,exports){ -"use strict"; + if (typeof expected === 'string') { + message = expected; + expected = null; + } -module.exports = { "default": require("core-js/library/fn/symbol/iterator"), __esModule: true }; + actual = _tryBlock(block); -},{"core-js/library/fn/symbol/iterator":410}],347:[function(require,module,exports){ -"use strict"; + message = (expected && expected.name ? ' (' + expected.name + ').' : '.') + + (message ? ' ' + message : '.'); -exports.__esModule = true; + if (shouldThrow && !actual) { + fail(actual, expected, 'Missing expected exception' + message); + } -var _promise = require("../core-js/promise"); + var userProvidedMessage = typeof message === 'string'; + var isUnwantedException = !shouldThrow && util.isError(actual); + var isUnexpectedException = !shouldThrow && actual && !expected; -var _promise2 = _interopRequireDefault(_promise); + if ((isUnwantedException && + userProvidedMessage && + expectedException(actual, expected)) || + isUnexpectedException) { + fail(actual, expected, 'Got unwanted exception' + message); + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; + if ((shouldThrow && actual && expected && + !expectedException(actual, expected)) || (!shouldThrow && actual)) { + throw actual; + } } -exports.default = function (fn) { - return function () { - var gen = fn.apply(this, arguments); - return new _promise2.default(function (resolve, reject) { - function step(key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - return _promise2.default.resolve(value).then(function (value) { - step("next", value); - }, function (err) { - step("throw", err); - }); - } - } +// 11. Expected to throw an error: +// assert.throws(block, Error_opt, message_opt); - return step("next"); - }); - }; +assert.throws = function(block, /*optional*/error, /*optional*/message) { + _throws(true, block, error, message); }; -},{"../core-js/promise":344}],348:[function(require,module,exports){ -"use strict"; +// EXTENSION! This is annoying to write outside this module. +assert.doesNotThrow = function(block, /*optional*/error, /*optional*/message) { + _throws(false, block, error, message); +}; -exports.__esModule = true; +assert.ifError = function(err) { if (err) throw err; }; -exports.default = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); +var objectKeys = Object.keys || function (obj) { + var keys = []; + for (var key in obj) { + if (hasOwn.call(obj, key)) keys.push(key); } + return keys; }; -},{}],349:[function(require,module,exports){ -"use strict"; +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{"util/":352}],350:[function(require,module,exports){ +arguments[4][247][0].apply(exports,arguments) +},{"dup":247}],351:[function(require,module,exports){ +module.exports = function isBuffer(arg) { + return arg && typeof arg === 'object' + && typeof arg.copy === 'function' + && typeof arg.fill === 'function' + && typeof arg.readUInt8 === 'function'; +} +},{}],352:[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. -exports.__esModule = true; +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 _assign = require("../core-js/object/assign"); + 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; +}; -var _assign2 = _interopRequireDefault(_assign); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +// 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); + }; + } -exports.default = _assign2.default || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + if (process.noDeprecation === true) { + return fn; + } - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; + 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 target; + return deprecated; }; -},{"../core-js/object/assign":341}],350:[function(require,module,exports){ -"use strict"; -exports.__esModule = true; +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]; +}; -var _setPrototypeOf = require("../core-js/object/set-prototype-of"); -var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); +/** + * 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; -var _create = require("../core-js/object/create"); -var _create2 = _interopRequireDefault(_create); +// 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] +}; -var _typeof2 = require("../helpers/typeof"); +// 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' +}; -var _typeof3 = _interopRequireDefault(_typeof2); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function stylizeWithColor(str, styleType) { + var style = inspect.styles[styleType]; -exports.default = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); + if (style) { + return '\u001b[' + inspect.colors[style][0] + 'm' + str + + '\u001b[' + inspect.colors[style][1] + 'm'; + } else { + return str; } +} - subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; -}; -},{"../core-js/object/create":342,"../core-js/object/set-prototype-of":343,"../helpers/typeof":352}],351:[function(require,module,exports){ -"use strict"; +function stylizeNoColor(str, styleType) { + return str; +} -exports.__esModule = true; -var _typeof2 = require("../helpers/typeof"); +function arrayToHash(array) { + var hash = {}; -var _typeof3 = _interopRequireDefault(_typeof2); + array.forEach(function(val, idx) { + hash[val] = true; + }); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; + return hash; } -exports.default = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + +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; } - return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; -}; + // Primitive types cannot have properties + var primitive = formatPrimitive(ctx, value); + if (primitive) { + return primitive; + } -},{"../helpers/typeof":352}],352:[function(require,module,exports){ -"use strict"; + // Look up the keys of the object. + var keys = Object.keys(value); + var visibleKeys = arrayToHash(keys); + + if (ctx.showHidden) { + keys = Object.getOwnPropertyNames(value); + } -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; }; + // 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); + } -exports.__esModule = true; + // 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 _iterator = require("../core-js/symbol/iterator"); + var base = '', array = false, braces = ['{', '}']; -var _iterator2 = _interopRequireDefault(_iterator); + // Make Array say that they are Array + if (isArray(value)) { + array = true; + braces = ['[', ']']; + } -var _symbol = require("../core-js/symbol"); + // Make functions say that they are functions + if (isFunction(value)) { + var n = value.name ? ': ' + value.name : ''; + base = ' [Function' + n + ']'; + } -var _symbol2 = _interopRequireDefault(_symbol); + // Make RegExps say that they are RegExps + if (isRegExp(value)) { + base = ' ' + RegExp.prototype.toString.call(value); + } -var _typeof = typeof _symbol2.default === "function" && _typeof2(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof2(obj); -} : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof2(obj); -}; + // 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'); + } + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} + ctx.seen.push(value); -exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof(obj); -} : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); -}; + 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); + }); + } -},{"../core-js/symbol":345,"../core-js/symbol/iterator":346}],353:[function(require,module,exports){ -"use strict"; + ctx.seen.pop(); -module.exports = require("regenerator-runtime"); + return reduceToSingleString(output, base, braces); +} -},{"regenerator-runtime":933}],354:[function(require,module,exports){ -'use strict'; -// base-x encoding -// Forked from https://github.com/cryptocoinjs/bs58 -// 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 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'); +} -var Buffer = require('safe-buffer').Buffer; -module.exports = function base(ALPHABET) { - var ALPHABET_MAP = {}; - var BASE = ALPHABET.length; - var LEADER = ALPHABET.charAt(0); +function formatError(value) { + return '[' + Error.prototype.toString.call(value) + ']'; +} - // pre-compute lookup table - for (var z = 0; z < ALPHABET.length; z++) { - var x = ALPHABET.charAt(z); - if (ALPHABET_MAP[x] !== undefined) throw new TypeError(x + ' is ambiguous'); - ALPHABET_MAP[x] = z; +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 encode(source) { - if (source.length === 0) return ''; - var digits = [0]; - for (var i = 0; i < source.length; ++i) { - for (var j = 0, carry = source[i]; j < digits.length; ++j) { - carry += digits[j] << 8; - digits[j] = carry % BASE; - carry = carry / BASE | 0; +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); } - - while (carry > 0) { - digits.push(carry % BASE); - carry = carry / BASE | 0; + 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'); } - - var string = ''; - - // deal with leading zeros - for (var k = 0; source[k] === 0 && k < source.length - 1; ++k) { - string += LEADER; - } // convert digits to a string - for (var q = digits.length - 1; q >= 0; --q) { - string += ALPHABET[digits[q]]; - }return string; } - function decodeUnsafe(string) { - if (typeof string !== 'string') throw new TypeError('Expected String'); - if (string.length === 0) return Buffer.allocUnsafe(0); - - var bytes = [0]; - for (var i = 0; i < string.length; i++) { - var value = ALPHABET_MAP[string[i]]; - if (value === undefined) return; - - for (var j = 0, carry = value; j < bytes.length; ++j) { - carry += bytes[j] * BASE; - bytes[j] = carry & 0xff; - carry >>= 8; - } + return name + ': ' + str; +} - while (carry > 0) { - bytes.push(carry & 0xff); - carry >>= 8; - } - } - // deal with leading zeros - for (var k = 0; string[k] === LEADER && k < string.length - 1; ++k) { - bytes.push(0); - } +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); - return Buffer.from(bytes.reverse()); + if (length > 60) { + return braces[0] + + (base === '' ? '' : base + '\n ') + + ' ' + + output.join(',\n ') + + ' ' + + braces[1]; } - function decode(string) { - var buffer = decodeUnsafe(string); - if (buffer) return buffer; + return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; +} - throw new Error('Non-base' + BASE + ' character'); - } - return { - encode: encode, - decodeUnsafe: decodeUnsafe, - decode: decode - }; -}; +// 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; -},{"safe-buffer":937}],355:[function(require,module,exports){ -'use strict'; +function isBoolean(arg) { + return typeof arg === 'boolean'; +} +exports.isBoolean = isBoolean; -exports.byteLength = byteLength; -exports.toByteArray = toByteArray; -exports.fromByteArray = fromByteArray; +function isNull(arg) { + return arg === null; +} +exports.isNull = isNull; -var lookup = []; -var revLookup = []; -var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array; +function isNullOrUndefined(arg) { + return arg == null; +} +exports.isNullOrUndefined = isNullOrUndefined; -var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i]; - revLookup[code.charCodeAt(i)] = i; +function isNumber(arg) { + return typeof arg === 'number'; } +exports.isNumber = isNumber; -// Support decoding URL-safe base64 strings, as Node.js does. -// See: https://en.wikipedia.org/wiki/Base64#URL_applications -revLookup['-'.charCodeAt(0)] = 62; -revLookup['_'.charCodeAt(0)] = 63; +function isString(arg) { + return typeof arg === 'string'; +} +exports.isString = isString; -function getLens(b64) { - var len = b64.length; +function isSymbol(arg) { + return typeof arg === 'symbol'; +} +exports.isSymbol = isSymbol; - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4'); - } +function isUndefined(arg) { + return arg === void 0; +} +exports.isUndefined = isUndefined; - // Trim off extra bytes after placeholder bytes are found - // See: https://github.com/beatgammit/base64-js/issues/42 - var validLen = b64.indexOf('='); - if (validLen === -1) validLen = len; +function isRegExp(re) { + return isObject(re) && objectToString(re) === '[object RegExp]'; +} +exports.isRegExp = isRegExp; - var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4; +function isObject(arg) { + return typeof arg === 'object' && arg !== null; +} +exports.isObject = isObject; - return [validLen, placeHoldersLen]; +function isDate(d) { + return isObject(d) && objectToString(d) === '[object Date]'; } +exports.isDate = isDate; -// base64 is 4/3 + up to two characters of the original data -function byteLength(b64) { - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; +function isError(e) { + return isObject(e) && + (objectToString(e) === '[object Error]' || e instanceof Error); } +exports.isError = isError; -function _byteLength(b64, validLen, placeHoldersLen) { - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; +function isFunction(arg) { + return typeof arg === 'function'; } +exports.isFunction = isFunction; -function toByteArray(b64) { - var tmp; - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; +function isPrimitive(arg) { + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; +} +exports.isPrimitive = isPrimitive; - var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); +exports.isBuffer = require('./support/isBuffer'); - var curByte = 0; +function objectToString(o) { + return Object.prototype.toString.call(o); +} - // if there are placeholders, only get up to the last complete 4 chars - var len = placeHoldersLen > 0 ? validLen - 4 : validLen; - for (var i = 0; i < len; 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[curByte++] = tmp >> 16 & 0xFF; - arr[curByte++] = tmp >> 8 & 0xFF; - arr[curByte++] = tmp & 0xFF; - } +function pad(n) { + return n < 10 ? '0' + n.toString(10) : n.toString(10); +} - if (placeHoldersLen === 2) { - tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4; - arr[curByte++] = tmp & 0xFF; - } - if (placeHoldersLen === 1) { - tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2; - arr[curByte++] = tmp >> 8 & 0xFF; - arr[curByte++] = tmp & 0xFF; - } +var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', + 'Oct', 'Nov', 'Dec']; - return arr; +// 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(' '); } -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 & 0xFF0000) + (uint8[i + 1] << 8 & 0xFF00) + (uint8[i + 2] & 0xFF); - output.push(tripletToBase64(tmp)); +// 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 output.join(''); + return origin; +}; + +function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); } -function fromByteArray(uint8) { - var tmp; - var len = uint8.length; - var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes - var parts = []; - var maxChunkLength = 16383; // must be multiple of 3 +}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{"./support/isBuffer":351,"_process":925,"inherits":350}],353:[function(require,module,exports){ +(function (global){ +"use strict"; - // 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)); - } +require("core-js/shim"); - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1]; - parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '=='); - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + uint8[len - 1]; - parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '='); - } +require("regenerator-runtime/runtime"); - return parts.join(''); +require("core-js/fn/regexp/escape"); + +if (global._babelPolyfill) { + throw new Error("only one instance of babel-polyfill is allowed"); } +global._babelPolyfill = true; -},{}],356:[function(require,module,exports){ -'use strict'; +var DEFINE_PROPERTY = "defineProperty"; +function define(O, key, value) { + O[key] || Object[DEFINE_PROPERTY](O, key, { + writable: true, + configurable: true, + value: value + }); +} -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; }; +define(String.prototype, "padLeft", "".padStart); +define(String.prototype, "padRight", "".padEnd); -/*! bignumber.js v4.1.0 https://github.com/MikeMcl/bignumber.js/LICENCE */ +"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) { + [][key] && define(Array, key, Function.call.bind([][key])); +}); +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{"core-js/fn/regexp/escape":418,"core-js/shim":834,"regenerator-runtime/runtime":354}],354:[function(require,module,exports){ +(function (global){ +/** + * Copyright (c) 2014, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * https://raw.github.com/facebook/regenerator/master/LICENSE file. An + * additional grant of patent rights can be found in the PATENTS file in + * the same directory. + */ -;(function (globalObj) { - 'use strict'; +!(function(global) { + "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 - MIT Expat Licence - */ + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - 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, + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; - /* - * 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 + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); - /* - * Create and return a BigNumber constructor. - */ - function constructorFactory(config) { - var div, - parseNumeric, + return generator; + } + runtime.wrap = wrap; + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } - // id tracks the caller function, so its name can be included in error messages. - id = 0, - P = BigNumber.prototype, - ONE = new BigNumber(1), + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; - /********************************* EDITABLE DEFAULTS **********************************/ + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} - /* - * The default values below must be integers within the inclusive ranges stated. - * The values can also be changed at run-time using BigNumber.config. - */ + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; - // The maximum number of decimal places for operations involving division. - DECIMAL_PLACES = 20, - // 0 to MAX + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } - /* - * 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 + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; - // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS] + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } - // The exponent value at and beneath which toString returns exponential notation. - // Number type: -7 - TO_EXP_NEG = -7, - // 0 to -MAX + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; - // The exponent value at and above which toString returns exponential notation. - // Number type: 21 - TO_EXP_POS = 21, - // 0 to MAX + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; - // RANGE : [MIN_EXP, MAX_EXP] + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; - // The minimum exponent value, beneath which underflow to zero occurs. - // Number type: -324 (5e-324) - MIN_EXP = -1e7, - // -1 to -MAX + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } - // 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 + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. If the Promise is rejected, however, the + // result for this iteration will be rejected with the same + // reason. Note that rejections of yielded Promises are not + // thrown back into the generator function, as is the case + // when an awaited Promise is rejected. This difference in + // behavior between yield and await is important, because it + // allows the consumer to decide what to do with the yielded + // rejection (swallow it and continue, manually .throw it back + // into the generator, abandon iteration, whatever). With + // await, by contrast, there is no opportunity to examine the + // rejection reason outside the generator function, so the + // only option is to throw it from the await expression, and + // let the generator function handle the exception. + result.value = unwrapped; + resolve(result); + }, reject); + } + } - // Whether BigNumber Errors are ever thrown. - ERRORS = true, - // true or false + if (typeof global.process === "object" && global.process.domain) { + invoke = global.process.domain.bind(invoke); + } - // Change to intValidatorNoErrors if ERRORS is false. - isValidInt = intValidatorWithErrors, - // intValidatorWithErrors/intValidatorNoErrors + var previousPromise; - // Whether to use cryptographically-secure random number generation, if available. - CRYPTO = false, - // true or false + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } - /* - * 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 - }; + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } - /******************************************************************************************/ + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } - // CONSTRUCTOR + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); - /* - * 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); - } + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; - // 'new BigNumber() base not an integer: {b}' - // 'new BigNumber() base out of range: {b}' - if (b == null || !isValidInt(b, 2, 64, id, 'base')) { + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; - // Duplicate. - if (n instanceof BigNumber) { - x.s = n.s; - x.e = n.e; - x.c = (n = n.c) ? n.slice() : n; - id = 0; - return; - } + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } - if ((num = typeof n == 'number') && n * 0 == 0) { - x.s = 1 / n < 0 ? (n = -n, -1) : 1; + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } - // 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; - } + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } - 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); - } + context.method = method; + context.arg = arg; - // 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); - } + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } - if (num) { - x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1; + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; - if (ERRORS && str.replace(/^0\.0*|\./, '').length > 15) { + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } - // 'new BigNumber() number type has more than 15 significant digits: {n}' - raise(id, tooManyDigits, n); - } + context.dispatchException(context.arg); - // Prevent later check for length on converted number. - num = false; - } else { - x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1; - } + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } - str = convertBase(str, 10, b, x.s); - } + state = GenStateExecuting; - // Decimal point? - if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; - // Exponential form? - if ((i = str.search(/e/i)) > 0) { + if (record.arg === ContinueSentinel) { + continue; + } - // Determine exponent. - if (e < 0) e = i; - e += +str.slice(i + 1); - str = str.substring(0, i); - } else if (e < 0) { + return { + value: record.arg, + done: context.done + }; - // Integer. - e = str.length; - } + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } - // Determine leading zeros. - for (i = 0; str.charCodeAt(i) === 48; i++) {} + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; - // Determine trailing zeros. - for (len = str.length; str.charCodeAt(--len) === 48;) {} - str = str.slice(i, len + 1); + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); - if (str) { - len = str.length; + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } - // 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); - } + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } - e = e - i - 1; + return ContinueSentinel; + } - // Overflow? - if (e > MAX_EXP) { + var record = tryCatch(method, delegate.iterator, context.arg); - // Infinity. - x.c = x.e = null; + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } - // Underflow? - } else if (e < MIN_EXP) { + var info = record.arg; - // Zero. - x.c = [x.e = 0]; - } else { - x.e = e; - x.c = []; + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } - // Transform base + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; - // 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; + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; - if (i < len) { - if (i) x.c.push(+str.slice(0, i)); + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } - for (len -= LOG_BASE; i < len;) { - x.c.push(+str.slice(i, i += LOG_BASE)); - } + } else { + // Re-yield the result returned by the delegate method. + return info; + } - str = str.slice(i); - i = LOG_BASE - str.length; - } else { - i -= len; - } + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } - for (; i--; str += '0') {} - x.c.push(+str); - } - } else { + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); - // Zero. - x.c = [x.e = 0]; - } + Gp[toStringTagSymbol] = "Generator"; - id = 0; - } + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; - // CONSTRUCTOR PROPERTIES + Gp.toString = function() { + return "[object Generator]"; + }; + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; - BigNumber.another = constructorFactory; + if (1 in locs) { + entry.catchLoc = locs[1]; + } - 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; + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } - /* - * 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; - }; + this.tryEntries.push(entry); + } - // 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; + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } - // 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]; + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } - // ERRORS {boolean|number} true, false, 1 or 0. - // 'config() ERRORS not a boolean or binary digit: {v}' - if (has(p = 'ERRORS')) { + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); - 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; + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } - // 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; + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; - // 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; + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } - // FORMAT {object} - // 'config() FORMAT not an object: {v}' - if (has(p = 'FORMAT')) { + if (typeof iterable.next === "function") { + return iterable; + } - if ((typeof v === 'undefined' ? 'undefined' : _typeof(v)) == 'object') { - FORMAT = v; - } else if (ERRORS) { - raise(2, p + ' not an object', v); - } + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; } - 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); - }; + next.value = undefined; + next.done = true; - /* - * 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 next; }; - /* - * 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 { + return next.next = next; + } + } - // 0 <= v <= 8999999999999999 - // 0 <= (v % 1e14) <= 99999999999999 - c.push(v % 1e14); - i += 2; - } - } - i = k / 2; + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; - // Node.js supporting crypto.randomBytes. - } else if (crypto.randomBytes) { + function doneResult() { + return { value: undefined, done: true }; + } - // buffer - a = crypto.randomBytes(k *= 7); + Context.prototype = { + constructor: Context, - for (; i < k;) { + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; - // 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]; + this.method = "next"; + this.arg = undefined; - if (v >= 9e15) { - crypto.randomBytes(7).copy(a, i); - } else { + this.tryEntries.forEach(resetTryEntry); - // 0 <= (v % 1e14) <= 99999999999999 - c.push(v % 1e14); - i += 7; - } - } - i = k / 7; - } else { - CRYPTO = false; - if (ERRORS) raise(14, 'crypto unavailable', crypto); - } - } + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, - // Use Math.random. - if (!CRYPTO) { + stop: function() { + this.done = true; - for (; i < k;) { - v = random53bitInt(); - if (v < 9e15) c[i++] = v % 1e14; - } - } + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } - k = c[--i]; - dp %= LOG_BASE; + return this.rval; + }, - // Convert trailing digits to zeros according to dp. - if (k && dp) { - v = POWS_TEN[LOG_BASE - dp]; - c[i] = mathfloor(k / v) * v; - } + dispatchException: function(exception) { + if (this.done) { + throw exception; + } - // Remove trailing elements which are zero. - for (; c[i] === 0; c.pop(), i--) {} + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; - // Zero? - if (i < 0) { - c = [e = 0]; - } else { + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } - // Remove leading elements which are zero and adjust exponent accordingly. - for (e = -1; c[0] === 0; c.splice(0, 1), e -= LOG_BASE) {} + return !! caught; + } - // 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++) {} + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; - // adjust the exponent accordingly. - if (i < LOG_BASE) e -= LOG_BASE - i; - } + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } - rand.e = e; - rand.c = c; - return rand; - }; - }(); + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); - // 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; + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); } - // 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; + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); } - 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); + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); } - // 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; - } + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, - if (carry) x = [carry].concat(x); + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } - return x; - } + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } - function compare(a, b, aL, bL) { - var i, cmp; + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; - if (aL != bL) { - cmp = aL > bL ? 1 : -1; - } else { + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } - for (i = cmp = 0; i < aL; i++) { + return this.complete(record); + }, - if (a[i] != b[i]) { - cmp = a[i] > b[i] ? 1 : -1; - break; - } - } - } - return cmp; - } + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } - function subtract(a, b, aL, base) { - var i = 0; + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } - // Subtract b from a. - for (; aL--;) { - a[aL] -= i; - i = a[aL] < b[aL] ? 1 : 0; - a[aL] = i * base + a[aL] - b[aL]; - } + return ContinueSentinel; + }, - // Remove leading zeros. - for (; !a[0] && a.length > 1; a.splice(0, 1)) {} - } + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, - // 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); - } + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } - q = new BigNumber(s); - qc = q.c = []; - e = x.e - y.e; - s = dp + e + 1; + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, - if (!base) { - base = BASE; - e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE); - s = s / LOG_BASE | 0; - } + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; - // 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 (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } - 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; - } + return ContinueSentinel; + } + }; +})( + // Among the various tricks for obtaining a reference to the global + // object, this seems to be the most reliable technique that does not + // use indirect eval (which violates Content Security Policy). + typeof global === "object" ? global : + typeof window === "object" ? window : + typeof self === "object" ? self : this +); - 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 { +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}],355:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/object/assign"), __esModule: true }; +},{"core-js/library/fn/object/assign":419}],356:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/object/create"), __esModule: true }; +},{"core-js/library/fn/object/create":420}],357:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/object/set-prototype-of"), __esModule: true }; +},{"core-js/library/fn/object/set-prototype-of":421}],358:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/promise"), __esModule: true }; +},{"core-js/library/fn/promise":422}],359:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/symbol"), __esModule: true }; +},{"core-js/library/fn/symbol":423}],360:[function(require,module,exports){ +module.exports = { "default": require("core-js/library/fn/symbol/iterator"), __esModule: true }; +},{"core-js/library/fn/symbol/iterator":424}],361:[function(require,module,exports){ +"use strict"; - // 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) { +exports.__esModule = true; - // divisor < remainder, so n must be at least 1. - cmp = n = 1; - } +var _promise = require("../core-js/promise"); - // product = divisor - prod = yc.slice(); - prodL = prod.length; - } +var _promise2 = _interopRequireDefault(_promise); - if (prodL < remL) prod = [0].concat(prod); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = function (fn) { + return function () { + var gen = fn.apply(this, arguments); + return new _promise2.default(function (resolve, reject) { + function step(key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } - // Subtract product from remainder. - subtract(rem, prod, remL, base); - remL = rem.length; + if (info.done) { + resolve(value); + } else { + return _promise2.default.resolve(value).then(function (value) { + step("next", value); + }, function (err) { + step("throw", err); + }); + } + } - // If product was < remainder. - if (cmp == -1) { + return step("next"); + }); + }; +}; +},{"../core-js/promise":358}],362:[function(require,module,exports){ +"use strict"; - // 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++; +exports.__esModule = true; - // 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 +exports.default = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +}; +},{}],363:[function(require,module,exports){ +"use strict"; - // Add the next digit, n, to the result array. - qc[i++] = n; +exports.__esModule = true; - // Update the remainder. - if (rem[0]) { - rem[remL++] = xc[xi] || 0; - } else { - rem = [xc[xi]]; - remL = 1; - } - } while ((xi++ < xL || rem[0] != null) && s--); +var _assign = require("../core-js/object/assign"); - more = rem[0] != null; +var _assign2 = _interopRequireDefault(_assign); - // Leading zero? - if (!qc[0]) qc.splice(0, 1); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - if (base == BASE) { +exports.default = _assign2.default || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - // 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); + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } - // Caller is convertBase. - } else { - q.e = e; - q.r = +more; - } + return target; +}; +},{"../core-js/object/assign":355}],364:[function(require,module,exports){ +"use strict"; - return q; - }; - }(); +exports.__esModule = true; - /* - * 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; +var _setPrototypeOf = require("../core-js/object/set-prototype-of"); - rm = rm != null && isValidInt(rm, 0, 8, caller, roundingMode) ? rm | 0 : ROUNDING_MODE; +var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); - if (!n.c) return n.toString(); - c0 = n.c[0]; - ne = n.e; +var _create = require("../core-js/object/create"); - 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); +var _create2 = _interopRequireDefault(_create); - // n.e may have changed if the value was rounded up. - e = n.e; +var _typeof2 = require("../helpers/typeof"); - str = coeffToString(n.c); - len = str.length; +var _typeof3 = _interopRequireDefault(_typeof2); - // 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. +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - // Exponential notation. - if (caller == 19 || caller == 24 && (i <= e || e <= TO_EXP_NEG)) { +exports.default = function (subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); + } - // Append zeros? - for (; len < i; str += '0', len++) {} - str = toExponential(str, e); + subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; +}; +},{"../core-js/object/create":356,"../core-js/object/set-prototype-of":357,"../helpers/typeof":366}],365:[function(require,module,exports){ +"use strict"; - // Fixed-point notation. - } else { - i -= ne; - str = toFixedPoint(str, e); +exports.__esModule = true; - // 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') {} - } - } - } - } +var _typeof2 = require("../helpers/typeof"); - return n.s < 0 && c0 ? '-' + str : str; - } +var _typeof3 = _interopRequireDefault(_typeof2); - // Handle BigNumber.max and BigNumber.min. - function maxOrMin(args, method) { - var m, - n, - i = 0; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - if (isArray(args[0])) args = args[0]; - m = new BigNumber(args[0]); +exports.default = function (self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } - for (; ++i < args.length;) { - n = new BigNumber(args[i]); + return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; +}; +},{"../helpers/typeof":366}],366:[function(require,module,exports){ +"use strict"; - // If any number is NaN, return NaN. - if (!n.s) { - m = n; - break; - } else if (method.call(m, n)) { - m = n; - } - } +exports.__esModule = true; - return m; - } +var _iterator = require("../core-js/symbol/iterator"); - /* - * 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); - } +var _iterator2 = _interopRequireDefault(_iterator); - return true; - } +var _symbol = require("../core-js/symbol"); - /* - * 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; +var _symbol2 = _interopRequireDefault(_symbol); - // Remove trailing zeros. - for (; !c[--j]; c.pop()) {} +var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; - // Calculate the base 10 exponent. First get the number of digits of c[0]. - for (j = c[0]; j >= 10; j /= 10, i++) {} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - // Overflow? - if ((e = i + e * LOG_BASE - 1) > MAX_EXP) { +exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { + return typeof obj === "undefined" ? "undefined" : _typeof(obj); +} : function (obj) { + return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); +}; +},{"../core-js/symbol":359,"../core-js/symbol/iterator":360}],367:[function(require,module,exports){ +module.exports = require("regenerator-runtime"); - // Infinity. - n.c = n.e = null; +},{"regenerator-runtime":947}],368:[function(require,module,exports){ +// base-x encoding +// Forked from https://github.com/cryptocoinjs/bs58 +// 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 - // Underflow? - } else if (e < MIN_EXP) { +var Buffer = require('safe-buffer').Buffer - // Zero. - n.c = [n.e = 0]; - } else { - n.e = e; - n.c = c; - } +module.exports = function base (ALPHABET) { + var ALPHABET_MAP = {} + var BASE = ALPHABET.length + var LEADER = ALPHABET.charAt(0) - return n; - } + // pre-compute lookup table + for (var z = 0; z < ALPHABET.length; z++) { + var x = ALPHABET.charAt(z) - // 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; + if (ALPHABET_MAP[x] !== undefined) throw new TypeError(x + ' is ambiguous') + ALPHABET_MAP[x] = z + } - return function (x, str, num, b) { - var base, - s = num ? str : str.replace(whitespaceOrPlus, ''); + function encode (source) { + if (source.length === 0) return '' - // No exception on ±Infinity or NaN. - if (isInfinityOrNaN.test(s)) { - x.s = isNaN(s) ? null : s < 0 ? -1 : 1; - } else { - if (!num) { + var digits = [0] + for (var i = 0; i < source.length; ++i) { + for (var j = 0, carry = source[i]; j < digits.length; ++j) { + carry += digits[j] << 8 + digits[j] = carry % BASE + carry = (carry / BASE) | 0 + } - // 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; - }); + while (carry > 0) { + digits.push(carry % BASE) + carry = (carry / BASE) | 0 + } + } - if (b) { - base = b; + var string = '' - // E.g. '1.' to '1', '.1' to '0.1' - s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1'); - } + // deal with leading zeros + for (var k = 0; source[k] === 0 && k < source.length - 1; ++k) string += LEADER + // convert digits to a string + for (var q = digits.length - 1; q >= 0; --q) string += ALPHABET[digits[q]] - if (str != s) return new BigNumber(s, base); - } + return string + } - // '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; - } + function decodeUnsafe (string) { + if (typeof string !== 'string') throw new TypeError('Expected String') + if (string.length === 0) return Buffer.allocUnsafe(0) - x.c = x.e = null; - id = 0; - }; - }(); + var bytes = [0] + for (var i = 0; i < string.length; i++) { + var value = ALPHABET_MAP[string[i]] + if (value === undefined) return - // 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; - } + for (var j = 0, carry = value; j < bytes.length; ++j) { + carry += bytes[j] * BASE + bytes[j] = carry & 0xff + carry >>= 8 + } - /* - * 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); + while (carry > 0) { + bytes.push(carry & 0xff) + carry >>= 8 + } + } - if (ni >= xc.length) { + // deal with leading zeros + for (var k = 0; string[k] === LEADER && k < string.length - 1; ++k) { + bytes.push(0) + } - if (r) { + return Buffer.from(bytes.reverse()) + } - // 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]; + function decode (string) { + var buffer = decodeUnsafe(string) + if (buffer) return buffer - // Get the number of digits of n. - for (d = 1; k >= 10; k /= 10, d++) {} + throw new Error('Non-base' + BASE + ' character') + } - // Get the index of rd within n. - i %= LOG_BASE; + return { + encode: encode, + decodeUnsafe: decodeUnsafe, + decode: decode + } +} - // 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; +},{"safe-buffer":951}],369:[function(require,module,exports){ +'use strict' - // Get the rounding digit at index j of n. - rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0; - } - } +exports.byteLength = byteLength +exports.toByteArray = toByteArray +exports.fromByteArray = fromByteArray - r = r || sd < 0 || +var lookup = [] +var revLookup = [] +var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array - // 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]); +var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' +for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i] + revLookup[code.charCodeAt(i)] = i +} - r = rm < 4 ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && +// Support decoding URL-safe base64 strings, as Node.js does. +// See: https://en.wikipedia.org/wiki/Base64#URL_applications +revLookup['-'.charCodeAt(0)] = 62 +revLookup['_'.charCodeAt(0)] = 63 - // 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)); +function getLens (b64) { + var len = b64.length - if (sd < 1 || !xc[0]) { - xc.length = 0; + if (len % 4 > 0) { + throw new Error('Invalid string. Length must be a multiple of 4') + } - if (r) { + // Trim off extra bytes after placeholder bytes are found + // See: https://github.com/beatgammit/base64-js/issues/42 + var validLen = b64.indexOf('=') + if (validLen === -1) validLen = len - // Convert sd to decimal places. - sd -= x.e + 1; + var placeHoldersLen = validLen === len + ? 0 + : 4 - (validLen % 4) - // 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 { + return [validLen, placeHoldersLen] +} - // Zero. - xc[0] = x.e = 0; - } +// base64 is 4/3 + up to two characters of the original data +function byteLength (b64) { + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} - return x; - } +function _byteLength (b64, validLen, placeHoldersLen) { + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} - // Remove excess digits. - if (i == 0) { - xc.length = ni; - k = 1; - ni--; - } else { - xc.length = ni + 1; - k = pows10[LOG_BASE - i]; +function toByteArray (b64) { + var tmp + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] - // 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; - } + var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) - // Round up? - if (r) { + var curByte = 0 - for (;;) { + // if there are placeholders, only get up to the last complete 4 chars + var len = placeHoldersLen > 0 + ? validLen - 4 + : validLen - // If the digit to be rounded up is in the first element of xc... - if (ni == 0) { + for (var i = 0; i < len; 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[curByte++] = (tmp >> 16) & 0xFF + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } - // 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 (placeHoldersLen === 2) { + tmp = + (revLookup[b64.charCodeAt(i)] << 2) | + (revLookup[b64.charCodeAt(i + 1)] >> 4) + arr[curByte++] = tmp & 0xFF + } - // if i != k the length has increased. - if (i != k) { - x.e++; - if (xc[0] == BASE) xc[0] = 1; - } + if (placeHoldersLen === 1) { + tmp = + (revLookup[b64.charCodeAt(i)] << 10) | + (revLookup[b64.charCodeAt(i + 1)] << 4) | + (revLookup[b64.charCodeAt(i + 2)] >> 2) + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } - break; - } else { - xc[ni] += k; - if (xc[ni] != BASE) break; - xc[ni--] = 0; - k = 1; - } - } - } + return arr +} - // Remove trailing zeros. - for (i = xc.length; xc[--i] === 0; xc.pop()) {} - } +function tripletToBase64 (num) { + return lookup[num >> 18 & 0x3F] + + lookup[num >> 12 & 0x3F] + + lookup[num >> 6 & 0x3F] + + lookup[num & 0x3F] +} - // Overflow? Infinity. - if (x.e > MAX_EXP) { - x.c = x.e = null; +function encodeChunk (uint8, start, end) { + var tmp + var output = [] + for (var i = start; i < end; i += 3) { + tmp = + ((uint8[i] << 16) & 0xFF0000) + + ((uint8[i + 1] << 8) & 0xFF00) + + (uint8[i + 2] & 0xFF) + output.push(tripletToBase64(tmp)) + } + return output.join('') +} - // Underflow? Zero. - } else if (x.e < MIN_EXP) { - x.c = [x.e = 0]; - } - } +function fromByteArray (uint8) { + var tmp + var len = uint8.length + var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes + var parts = [] + var maxChunkLength = 16383 // must be multiple of 3 - return x; - } + // 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) + )) + } - // PROTOTYPE/INSTANCE METHODS + // pad the end with zeros, but make sure to not forget the extra bytes + if (extraBytes === 1) { + tmp = uint8[len - 1] + parts.push( + lookup[tmp >> 2] + + lookup[(tmp << 4) & 0x3F] + + '==' + ) + } else if (extraBytes === 2) { + tmp = (uint8[len - 2] << 8) + uint8[len - 1] + parts.push( + lookup[tmp >> 10] + + lookup[(tmp >> 4) & 0x3F] + + lookup[(tmp << 2) & 0x3F] + + '=' + ) + } + return parts.join('') +} +},{}],370:[function(require,module,exports){ +/*! 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 + 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 == '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 == '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; - }; - + */ + 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); - }; - + */ + 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)); - }; - + */ + 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; - }; - + */ + 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 @@ -106200,109 +114172,123 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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); - }; - + */ + 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; - }; - + */ + 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); - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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; - }; - + */ + 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 @@ -106322,123 +114308,121 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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 @@ -106459,50 +114443,51 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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)); - }; - + */ + 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; - }; - + */ + P.negated = P.neg = function () { + var x = new BigNumber(this); + x.s = -x.s || null; + return x; + }; + + /* * n + 0 = n * n + N = N @@ -106522,116 +114507,117 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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; - }; - + */ + 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 @@ -106644,17 +114630,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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; - }; - + */ + 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. @@ -106666,15 +114654,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * '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); - }; - + */ + 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 @@ -106685,109 +114677,107 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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 @@ -106807,90 +114797,78 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * 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); - }; - + */ + 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. @@ -106902,14 +114880,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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; - }; - + */ + 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. @@ -106921,11 +114900,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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); - }; - + */ + 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. @@ -106940,11 +114921,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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); - }; - + */ + 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 @@ -106966,42 +114949,49 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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; - }; - + */ + 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 @@ -107013,89 +115003,87 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * '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; - }; - + */ + 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; - }; - + */ + 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. @@ -107113,72 +115101,73 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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; - }; - + */ + 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 @@ -107192,11 +115181,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * '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); - }; - + */ + 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 @@ -107208,373 +115199,385 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * * '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; - }; - + */ + 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); - }; - + */ + 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; - } - + */ + 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]'; - } - + */ + 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); - -},{}],357:[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'); + */ + 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; + } +})(this); + +},{}],371:[function(require,module,exports){ +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 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 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'; +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 lpad (str, padString, length) { + while (str.length < length) str = padString + str + return str } -function binaryToByte(bin) { - return parseInt(bin, 2); +function binaryToByte (bin) { + return parseInt(bin, 2) } -function bytesToBinary(bytes) { +function bytesToBinary (bytes) { return bytes.map(function (x) { - return lpad(x.toString(2), '0', 8); - }).join(''); + 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(); +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); + return bytesToBinary([].slice.call(hash)).slice(0, CS) } -function salt(password) { - return 'mnemonic' + (password || ''); +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'); +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'); + return pbkdf2(mnemonicBuffer, saltBuffer, 2048, 64, 'sha512') } -function mnemonicToSeedHex(mnemonic, password) { - return mnemonicToSeed(mnemonic, password).toString('hex'); +function mnemonicToSeedHex (mnemonic, password) { + return mnemonicToSeed(mnemonic, password).toString('hex') } -function mnemonicToEntropy(mnemonic, wordlist) { - wordlist = wordlist || DEFAULT_WORDLIST; +function mnemonicToEntropy (mnemonic, wordlist) { + wordlist = wordlist || DEFAULT_WORDLIST - var words = unorm.nfkd(mnemonic).split(' '); - if (words.length % 3 !== 0) throw new Error(INVALID_MNEMONIC); + 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); + var index = wordlist.indexOf(word) + if (index === -1) throw new Error(INVALID_MNEMONIC) - return lpad(index.toString(2), '0', 11); - }).join(''); + 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); + 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 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); + var entropy = Buffer.from(entropyBytes) + var newChecksum = deriveChecksumBits(entropy) + if (newChecksum !== checksumBits) throw new Error(INVALID_CHECKSUM) - return entropy.toString('hex'); + return entropy.toString('hex') } -function entropyToMnemonic(entropy, wordlist) { - if (!Buffer.isBuffer(entropy)) entropy = Buffer.from(entropy, 'hex'); - wordlist = wordlist || DEFAULT_WORDLIST; +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); + 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 entropyBits = bytesToBinary([].slice.call(entropy)) + var checksumBits = deriveChecksumBits(entropy) - var bits = entropyBits + checksumBits; - var chunks = bits.match(/(.{1,11})/g); + var bits = entropyBits + checksumBits + var chunks = bits.match(/(.{1,11})/g) var words = chunks.map(function (binary) { - var index = binaryToByte(binary); - return wordlist[index]; - }); + var index = binaryToByte(binary) + return wordlist[index] + }) - return wordlist === JAPANESE_WORDLIST ? words.join('\u3000') : words.join(' '); + 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; +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); + return entropyToMnemonic(rng(strength / 8), wordlist) } -function validateMnemonic(mnemonic, wordlist) { +function validateMnemonic (mnemonic, wordlist) { try { - mnemonicToEntropy(mnemonic, wordlist); + mnemonicToEntropy(mnemonic, wordlist) } catch (e) { - return false; + return false } - return true; + return true } module.exports = { @@ -107597,9 +115600,9 @@ module.exports = { korean: KOREAN_WORDLIST, spanish: SPANISH_WORDLIST } -}; +} -},{"./wordlists/chinese_simplified.json":358,"./wordlists/chinese_traditional.json":359,"./wordlists/english.json":360,"./wordlists/french.json":361,"./wordlists/italian.json":362,"./wordlists/japanese.json":363,"./wordlists/korean.json":364,"./wordlists/spanish.json":365,"create-hash":823,"pbkdf2":905,"randombytes":918,"safe-buffer":937,"unorm":987}],358:[function(require,module,exports){ +},{"./wordlists/chinese_simplified.json":372,"./wordlists/chinese_traditional.json":373,"./wordlists/english.json":374,"./wordlists/french.json":375,"./wordlists/italian.json":376,"./wordlists/japanese.json":377,"./wordlists/korean.json":378,"./wordlists/spanish.json":379,"create-hash":837,"pbkdf2":919,"randombytes":932,"safe-buffer":951,"unorm":1001}],372:[function(require,module,exports){ module.exports=[ "的", "一", @@ -109651,7 +117654,7 @@ module.exports=[ "歇" ] -},{}],359:[function(require,module,exports){ +},{}],373:[function(require,module,exports){ module.exports=[ "的", "一", @@ -111703,7 +119706,7 @@ module.exports=[ "歇" ] -},{}],360:[function(require,module,exports){ +},{}],374:[function(require,module,exports){ module.exports=[ "abandon", "ability", @@ -113755,7 +121758,7 @@ module.exports=[ "zoo" ] -},{}],361:[function(require,module,exports){ +},{}],375:[function(require,module,exports){ module.exports=[ "abaisser", "abandon", @@ -115807,7 +123810,7 @@ module.exports=[ "zoologie" ] -},{}],362:[function(require,module,exports){ +},{}],376:[function(require,module,exports){ module.exports=[ "abaco", "abbaglio", @@ -117859,7 +125862,7 @@ module.exports=[ "zuppa" ] -},{}],363:[function(require,module,exports){ +},{}],377:[function(require,module,exports){ module.exports=[ "あいこくしん", "あいさつ", @@ -119911,7 +127914,7 @@ module.exports=[ "われる" ] -},{}],364:[function(require,module,exports){ +},{}],378:[function(require,module,exports){ module.exports=[ "가격", "가끔", @@ -121963,7 +129966,7 @@ module.exports=[ "힘껏" ] -},{}],365:[function(require,module,exports){ +},{}],379:[function(require,module,exports){ module.exports=[ "ábaco", "abdomen", @@ -124015,132 +132018,129 @@ module.exports=[ "zurdo" ] -},{}],366:[function(require,module,exports){ +},{}],380:[function(require,module,exports){ arguments[4][180][0].apply(exports,arguments) -},{"dup":180,"safe-buffer":937}],367:[function(require,module,exports){ +},{"dup":180,"safe-buffer":951}],381:[function(require,module,exports){ arguments[4][182][0].apply(exports,arguments) -},{"buffer":369,"dup":182}],368:[function(require,module,exports){ +},{"buffer":383,"dup":182}],382:[function(require,module,exports){ arguments[4][183][0].apply(exports,arguments) -},{"crypto":369,"dup":183}],369:[function(require,module,exports){ -"use strict"; - -},{}],370:[function(require,module,exports){ -'use strict'; +},{"crypto":383,"dup":183}],383:[function(require,module,exports){ +},{}],384:[function(require,module,exports){ // 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; +var Buffer = require('safe-buffer').Buffer -function asUInt32Array(buf) { - if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf); +function asUInt32Array (buf) { + if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf) - var len = buf.length / 4 | 0; - var out = new Array(len); + var len = (buf.length / 4) | 0 + var out = new Array(len) for (var i = 0; i < len; i++) { - out[i] = buf.readUInt32BE(i * 4); + out[i] = buf.readUInt32BE(i * 4) } - return out; + return out } -function scrubVec(v) { +function scrubVec (v) { for (var i = 0; i < v.length; v++) { - v[i] = 0; + 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]; +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; + 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 = 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; + 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]; + return [t0, t1, t2, t3] } // AES constants -var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]; -var G = function () { +var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36] +var G = (function () { // Compute double table - var d = new Array(256); + var d = new Array(256) for (var j = 0; j < 256; j++) { if (j < 128) { - d[j] = j << 1; + d[j] = j << 1 } else { - d[j] = j << 1 ^ 0x11b; + d[j] = (j << 1) ^ 0x11b } } - var SBOX = []; - var INV_SBOX = []; - var SUB_MIX = [[], [], [], []]; - var INV_SUB_MIX = [[], [], [], []]; + var SBOX = [] + var INV_SBOX = [] + var SUB_MIX = [[], [], [], []] + var INV_SUB_MIX = [[], [], [], []] // Walk GF(2^8) - var x = 0; - var xi = 0; + 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; + 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]; + 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; + 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; + 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; + x = xi = 1 } else { - x = x2 ^ d[d[d[x8 ^ x2]]]; - xi ^= d[d[xi]]; + x = x2 ^ d[d[d[x8 ^ x2]]] + xi ^= d[d[xi]] } } @@ -124149,767 +132149,764 @@ var G = function () { INV_SBOX: INV_SBOX, SUB_MIX: SUB_MIX, INV_SUB_MIX: INV_SUB_MIX - }; -}(); + } +})() -function AES(key) { - this._key = asUInt32Array(key); - this._reset(); +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.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 keyWords = this._key + var keySize = keyWords.length + var nRounds = keySize + 6 + var ksRows = (nRounds + 1) * 4 - var keySchedule = []; + var keySchedule = [] for (var k = 0; k < keySize; k++) { - keySchedule[k] = keyWords[k]; + keySchedule[k] = keyWords[k] } for (k = keySize; k < ksRows; k++) { - var t = keySchedule[k - 1]; + 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; + 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]; + 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; + keySchedule[k] = keySchedule[k - keySize] ^ t } - var invKeySchedule = []; + var invKeySchedule = [] for (var ik = 0; ik < ksRows; ik++) { - var ksR = ksRows - ik; - var tt = keySchedule[ksR - (ik % 4 ? 0 : 4)]; + var ksR = ksRows - ik + var tt = keySchedule[ksR - (ik % 4 ? 0 : 4)] if (ik < 4 || ksR <= 4) { - invKeySchedule[ik] = tt; + 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]]; + 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; -}; + 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); -}; + 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; -}; + 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); + M = asUInt32Array(M) // swap - var m1 = M[1]; - M[1] = M[3]; - M[3] = m1; + 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; -}; + 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; + scrubVec(this._keySchedule) + scrubVec(this._invKeySchedule) + scrubVec(this._key) +} -},{"safe-buffer":937}],371:[function(require,module,exports){ -'use strict'; +module.exports.AES = AES -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'); +},{"safe-buffer":951}],385:[function(require,module,exports){ +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++; +function xorTest (a, b) { + var out = 0 + if (a.length !== b.length) out++ - var len = Math.min(a.length, b.length); + var len = Math.min(a.length, b.length) for (var i = 0; i < len; ++i) { - out += a[i] ^ b[i]; + out += (a[i] ^ b[i]) } - return out; + return out } -function calcIv(self, iv, ck) { +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])]); + 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); + 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; + 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); +function StreamCipher (mode, key, iv, decrypt) { + Transform.call(this) - var h = Buffer.alloc(4, 0); + 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._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._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; + this._authTag = null + this._called = false } -inherits(StreamCipher, Transform); +inherits(StreamCipher, Transform) StreamCipher.prototype._update = function (chunk) { if (!this._called && this._alen) { - var rump = 16 - this._alen % 16; + var rump = 16 - (this._alen % 16) if (rump < 16) { - rump = Buffer.alloc(rump, 0); - this._ghash.update(rump); + rump = Buffer.alloc(rump, 0) + this._ghash.update(rump) } } - this._called = true; - var out = this._mode.encrypt(this, chunk); + this._called = true + var out = this._mode.encrypt(this, chunk) if (this._decrypt) { - this._ghash.update(chunk); + this._ghash.update(chunk) } else { - this._ghash.update(out); + this._ghash.update(out) } - this._len += chunk.length; - return 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'); + 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'); + 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(); -}; + 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'); +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; -}; + return this._authTag +} -StreamCipher.prototype.setAuthTag = function setAuthTag(tag) { - if (!this._decrypt) throw new Error('Attempting to set auth tag in unsupported state'); +StreamCipher.prototype.setAuthTag = function setAuthTag (tag) { + if (!this._decrypt) throw new Error('Attempting to set auth tag in unsupported state') - this._authTag = tag; -}; + this._authTag = tag +} -StreamCipher.prototype.setAAD = function setAAD(buf) { - if (this._called) throw new Error('Attempting to set AAD in unsupported state'); +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; + this._ghash.update(buf) + this._alen += buf.length +} -},{"./aes":370,"./ghash":375,"./incr32":376,"buffer-xor":400,"cipher-base":402,"inherits":882,"safe-buffer":937}],372:[function(require,module,exports){ -'use strict'; +module.exports = StreamCipher -var ciphers = require('./encrypter'); -var deciphers = require('./decrypter'); -var modes = require('./modes/list.json'); +},{"./aes":384,"./ghash":389,"./incr32":390,"buffer-xor":414,"cipher-base":416,"inherits":896,"safe-buffer":951}],386:[function(require,module,exports){ +var ciphers = require('./encrypter') +var deciphers = require('./decrypter') +var modes = require('./modes/list.json') -function getCiphers() { - return Object.keys(modes); +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":373,"./encrypter":374,"./modes/list.json":384}],373:[function(require,module,exports){ -'use strict'; +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 -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'); +},{"./decrypter":387,"./encrypter":388,"./modes/list.json":398}],387:[function(require,module,exports){ +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); +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; + 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); +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); + 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); -}; + return Buffer.concat(out) +} Decipher.prototype._final = function () { - var chunk = this._cache.flush(); + var chunk = this._cache.flush() if (this._autopadding) { - return unpad(this._mode.decrypt(this, chunk)); + return unpad(this._mode.decrypt(this, chunk)) } else if (chunk) { - throw new Error('data not multiple of block length'); + throw new Error('data not multiple of block length') } -}; +} Decipher.prototype.setAutoPadding = function (setTo) { - this._autopadding = !!setTo; - return this; -}; + this._autopadding = !!setTo + return this +} -function Splitter() { - this.cache = Buffer.allocUnsafe(0); +function Splitter () { + this.cache = Buffer.allocUnsafe(0) } Splitter.prototype.add = function (data) { - this.cache = Buffer.concat([this.cache, data]); -}; + this.cache = Buffer.concat([this.cache, data]) +} Splitter.prototype.get = function (autoPadding) { - var out; + var out if (autoPadding) { if (this.cache.length > 16) { - out = this.cache.slice(0, 16); - this.cache = this.cache.slice(16); - return out; + 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; + out = this.cache.slice(0, 16) + this.cache = this.cache.slice(16) + return out } } - return null; -}; + return null +} Splitter.prototype.flush = function () { - if (this.cache.length) return this.cache; -}; + if (this.cache.length) return this.cache +} -function unpad(last) { - var padded = last[15]; +function unpad (last) { + var padded = last[15] if (padded < 1 || padded > 16) { - throw new Error('unable to decrypt data'); + throw new Error('unable to decrypt data') } - var i = -1; + var i = -1 while (++i < padded) { - if (last[i + (16 - padded)] !== padded) { - throw new Error('unable to decrypt data'); + if (last[(i + (16 - padded))] !== padded) { + throw new Error('unable to decrypt data') } } - if (padded === 16) return; + if (padded === 16) return - return last.slice(0, 16 - padded); + return last.slice(0, 16 - padded) } -function createDecipheriv(suite, password, iv) { - var config = MODES[suite.toLowerCase()]; - if (!config) throw new TypeError('invalid suite type'); +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 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 (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); + return new StreamCipher(config.module, password, iv, true) } else if (config.type === 'auth') { - return new AuthCipher(config.module, password, iv, true); + return new AuthCipher(config.module, password, iv, true) } - return new Decipher(config.module, password, iv); + return new Decipher(config.module, password, iv) } -function createDecipher(suite, password) { - var config = MODES[suite.toLowerCase()]; - if (!config) throw new TypeError('invalid suite type'); +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); + var keys = ebtk(password, false, config.key, config.iv) + return createDecipheriv(suite, keys.key, keys.iv) } -exports.createDecipher = createDecipher; -exports.createDecipheriv = createDecipheriv; - -},{"./aes":370,"./authCipher":371,"./modes":383,"./streamCipher":386,"cipher-base":402,"evp_bytestokey":862,"inherits":882,"safe-buffer":937}],374:[function(require,module,exports){ -'use strict'; +exports.createDecipher = createDecipher +exports.createDecipheriv = createDecipheriv -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'); +},{"./aes":384,"./authCipher":385,"./modes":397,"./streamCipher":400,"cipher-base":416,"evp_bytestokey":876,"inherits":896,"safe-buffer":951}],388:[function(require,module,exports){ +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); +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; + this._cache = new Splitter() + this._cipher = new aes.AES(key) + this._prev = Buffer.from(iv) + this._mode = mode + this._autopadding = true } -inherits(Cipher, Transform); +inherits(Cipher, Transform) Cipher.prototype._update = function (data) { - this._cache.add(data); - var chunk; - var thing; - var out = []; + this._cache.add(data) + var chunk + var thing + var out = [] - while (chunk = this._cache.get()) { - thing = this._mode.encrypt(this, chunk); - out.push(thing); + while ((chunk = this._cache.get())) { + thing = this._mode.encrypt(this, chunk) + out.push(thing) } - return Buffer.concat(out); -}; + return Buffer.concat(out) +} -var PADDING = Buffer.alloc(16, 0x10); +var PADDING = Buffer.alloc(16, 0x10) Cipher.prototype._final = function () { - var chunk = this._cache.flush(); + var chunk = this._cache.flush() if (this._autopadding) { - chunk = this._mode.encrypt(this, chunk); - this._cipher.scrub(); - return chunk; + 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'); + this._cipher.scrub() + throw new Error('data not multiple of block length') } -}; +} Cipher.prototype.setAutoPadding = function (setTo) { - this._autopadding = !!setTo; - return this; -}; + this._autopadding = !!setTo + return this +} -function Splitter() { - this.cache = Buffer.allocUnsafe(0); +function Splitter () { + this.cache = Buffer.allocUnsafe(0) } Splitter.prototype.add = function (data) { - this.cache = Buffer.concat([this.cache, 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; + var out = this.cache.slice(0, 16) + this.cache = this.cache.slice(16) + return out } - return null; -}; + return null +} Splitter.prototype.flush = function () { - var len = 16 - this.cache.length; - var padBuff = Buffer.allocUnsafe(len); + var len = 16 - this.cache.length + var padBuff = Buffer.allocUnsafe(len) - var i = -1; + var i = -1 while (++i < len) { - padBuff.writeUInt8(len, i); + padBuff.writeUInt8(len, i) } - return Buffer.concat([this.cache, padBuff]); -}; + return Buffer.concat([this.cache, padBuff]) +} -function createCipheriv(suite, password, iv) { - var config = MODES[suite.toLowerCase()]; - if (!config) throw new TypeError('invalid suite type'); +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 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 (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); + return new StreamCipher(config.module, password, iv) } else if (config.type === 'auth') { - return new AuthCipher(config.module, password, iv); + return new AuthCipher(config.module, password, iv) } - return new Cipher(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'); +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); + var keys = ebtk(password, false, config.key, config.iv) + return createCipheriv(suite, keys.key, keys.iv) } -exports.createCipheriv = createCipheriv; -exports.createCipher = createCipher; - -},{"./aes":370,"./authCipher":371,"./modes":383,"./streamCipher":386,"cipher-base":402,"evp_bytestokey":862,"inherits":882,"safe-buffer":937}],375:[function(require,module,exports){ -'use strict'; +exports.createCipheriv = createCipheriv +exports.createCipher = createCipher -var Buffer = require('safe-buffer').Buffer; -var ZEROES = Buffer.alloc(16, 0); +},{"./aes":384,"./authCipher":385,"./modes":397,"./streamCipher":400,"cipher-base":416,"evp_bytestokey":876,"inherits":896,"safe-buffer":951}],389:[function(require,module,exports){ +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 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 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); +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; + var i = -1 while (++i < block.length) { - this.state[i] ^= block[i]; + this.state[i] ^= block[i] } - this._multiply(); -}; + this._multiply() +} GHASH.prototype._multiply = function () { - var Vi = toArray(this.h); - var Zi = [0, 0, 0, 0]; - var j, xi, lsbVi; - var i = -1; + 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; + 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]; + 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; + 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[j] = (Vi[j] >>> 1) | ((Vi[j - 1] & 1) << 31) } - Vi[0] = Vi[0] >>> 1; + 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; + Vi[0] = Vi[0] ^ (0xe1 << 24) } } - this.state = fromArray(Zi); -}; + this.state = fromArray(Zi) +} GHASH.prototype.update = function (buf) { - this.cache = Buffer.concat([this.cache, buf]); - var chunk; + 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); + 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(Buffer.concat([this.cache, ZEROES], 16)) } - this.ghash(fromArray([0, abl, 0, bl])); - return this.state; -}; - -module.exports = GHASH; + this.ghash(fromArray([0, abl, 0, bl])) + return this.state +} -},{"safe-buffer":937}],376:[function(require,module,exports){ -"use strict"; +module.exports = GHASH -function incr32(iv) { - var len = iv.length; - var item; +},{"safe-buffer":951}],390:[function(require,module,exports){ +function incr32 (iv) { + var len = iv.length + var item while (len--) { - item = iv.readUInt8(len); + item = iv.readUInt8(len) if (item === 255) { - iv.writeUInt8(0, len); + iv.writeUInt8(0, len) } else { - item++; - iv.writeUInt8(item, len); - break; + item++ + iv.writeUInt8(item, len) + break } } } -module.exports = incr32; +module.exports = incr32 -},{}],377:[function(require,module,exports){ -'use strict'; - -var xor = require('buffer-xor'); +},{}],391:[function(require,module,exports){ +var xor = require('buffer-xor') exports.encrypt = function (self, block) { - var data = xor(block, self._prev); + var data = xor(block, self._prev) - self._prev = self._cipher.encryptBlock(data); - return 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); + var pad = self._prev - return xor(out, pad); -}; + self._prev = block + var out = self._cipher.decryptBlock(block) -},{"buffer-xor":400}],378:[function(require,module,exports){ -'use strict'; + return xor(out, pad) +} -var Buffer = require('safe-buffer').Buffer; -var xor = require('buffer-xor'); +},{"buffer-xor":414}],392:[function(require,module,exports){ +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; +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; + 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); + 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); + 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; + out = Buffer.concat([out, encryptStart(self, data, decrypt)]) + break } } - return out; -}; + return out +} -},{"buffer-xor":400,"safe-buffer":937}],379:[function(require,module,exports){ -'use strict'; +},{"buffer-xor":414,"safe-buffer":951}],393:[function(require,module,exports){ +var Buffer = require('safe-buffer').Buffer -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; +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); + 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; + 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])]); +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; + out[i] = buffer[i] << 1 | buffer[i + 1] >> (7) } - return out; + return out } exports.encrypt = function (self, chunk, decrypt) { - var len = chunk.length; - var out = Buffer.allocUnsafe(len); - var i = -1; + var len = chunk.length + var out = Buffer.allocUnsafe(len) + var i = -1 while (++i < len) { - out[i] = encryptByte(self, chunk[i], decrypt); + out[i] = encryptByte(self, chunk[i], decrypt) } - return out; -}; - -},{"safe-buffer":937}],380:[function(require,module,exports){ -'use strict'; + return out +} -var Buffer = require('safe-buffer').Buffer; +},{"safe-buffer":951}],394:[function(require,module,exports){ +var Buffer = require('safe-buffer').Buffer -function encryptByte(self, byteParam, decrypt) { - var pad = self._cipher.encryptBlock(self._prev); - var out = pad[0] ^ byteParam; +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])]); + self._prev = Buffer.concat([ + self._prev.slice(1), + Buffer.from([decrypt ? byteParam : out]) + ]) - return out; + return out } exports.encrypt = function (self, chunk, decrypt) { - var len = chunk.length; - var out = Buffer.allocUnsafe(len); - var i = -1; + var len = chunk.length + var out = Buffer.allocUnsafe(len) + var i = -1 while (++i < len) { - out[i] = encryptByte(self, chunk[i], decrypt); + out[i] = encryptByte(self, chunk[i], decrypt) } - return out; -}; - -},{"safe-buffer":937}],381:[function(require,module,exports){ -'use strict'; + return out +} -var xor = require('buffer-xor'); -var Buffer = require('safe-buffer').Buffer; -var incr32 = require('../incr32'); +},{"safe-buffer":951}],395:[function(require,module,exports){ +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; +function getBlock (self) { + var out = self._cipher.encryptBlockRaw(self._prev) + incr32(self._prev) + return out } -var blockSize = 16; +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)]); + 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 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":376,"buffer-xor":400,"safe-buffer":937}],382:[function(require,module,exports){ -"use strict"; + var pad = self._cache.slice(0, chunk.length) + self._cache = self._cache.slice(chunk.length) + return xor(chunk, pad) +} +},{"../incr32":390,"buffer-xor":414,"safe-buffer":951}],396:[function(require,module,exports){ exports.encrypt = function (self, block) { - return self._cipher.encryptBlock(block); -}; + return self._cipher.encryptBlock(block) +} exports.decrypt = function (self, block) { - return self._cipher.decryptBlock(block); -}; - -},{}],383:[function(require,module,exports){ -'use strict'; + return self._cipher.decryptBlock(block) +} +},{}],397:[function(require,module,exports){ var modeModules = { ECB: require('./ecb'), CBC: require('./cbc'), @@ -124919,17 +132916,17 @@ var modeModules = { OFB: require('./ofb'), CTR: require('./ctr'), GCM: require('./ctr') -}; +} -var modes = require('./list.json'); +var modes = require('./list.json') for (var key in modes) { - modes[key].module = modeModules[modes[key].mode]; + modes[key].module = modeModules[modes[key].mode] } -module.exports = modes; +module.exports = modes -},{"./cbc":377,"./cfb":378,"./cfb1":379,"./cfb8":380,"./ctr":381,"./ecb":382,"./list.json":384,"./ofb":385}],384:[function(require,module,exports){ +},{"./cbc":391,"./cfb":392,"./cfb1":393,"./cfb8":394,"./ctr":395,"./ecb":396,"./list.json":398,"./ofb":399}],398:[function(require,module,exports){ module.exports={ "aes-128-ecb": { "cipher": "AES", @@ -125122,137 +133119,129 @@ module.exports={ } } -},{}],385:[function(require,module,exports){ +},{}],399:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var xor = require('buffer-xor'); +var xor = require('buffer-xor') -function getBlock(self) { - self._prev = self._cipher.encryptBlock(self._prev); - return self._prev; +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)]); + 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); -}; + 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":401,"buffer-xor":400}],386:[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'); +},{"buffer":415,"buffer-xor":414}],400:[function(require,module,exports){ +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); +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; + 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); +inherits(StreamCipher, Transform) StreamCipher.prototype._update = function (chunk) { - return this._mode.encrypt(this, chunk, this._decrypt); -}; + return this._mode.encrypt(this, chunk, this._decrypt) +} StreamCipher.prototype._final = function () { - this._cipher.scrub(); -}; + this._cipher.scrub() +} -module.exports = StreamCipher; +module.exports = StreamCipher -},{"./aes":370,"cipher-base":402,"inherits":882,"safe-buffer":937}],387:[function(require,module,exports){ -'use strict'; +},{"./aes":384,"cipher-base":416,"inherits":896,"safe-buffer":951}],401:[function(require,module,exports){ +var DES = require('browserify-des') +var aes = require('browserify-aes/browser') +var aesModes = require('browserify-aes/modes') +var desModes = require('browserify-des/modes') +var ebtk = require('evp_bytestokey') -var DES = require('browserify-des'); -var aes = require('browserify-aes/browser'); -var aesModes = require('browserify-aes/modes'); -var desModes = require('browserify-des/modes'); -var ebtk = require('evp_bytestokey'); +function createCipher (suite, password) { + suite = suite.toLowerCase() -function createCipher(suite, password) { - suite = suite.toLowerCase(); - - var keyLen, ivLen; + var keyLen, ivLen if (aesModes[suite]) { - keyLen = aesModes[suite].key; - ivLen = aesModes[suite].iv; + keyLen = aesModes[suite].key + ivLen = aesModes[suite].iv } else if (desModes[suite]) { - keyLen = desModes[suite].key * 8; - ivLen = desModes[suite].iv; + keyLen = desModes[suite].key * 8 + ivLen = desModes[suite].iv } else { - throw new TypeError('invalid suite type'); + throw new TypeError('invalid suite type') } - var keys = ebtk(password, false, keyLen, ivLen); - return createCipheriv(suite, keys.key, keys.iv); + var keys = ebtk(password, false, keyLen, ivLen) + return createCipheriv(suite, keys.key, keys.iv) } -function createDecipher(suite, password) { - suite = suite.toLowerCase(); +function createDecipher (suite, password) { + suite = suite.toLowerCase() - var keyLen, ivLen; + var keyLen, ivLen if (aesModes[suite]) { - keyLen = aesModes[suite].key; - ivLen = aesModes[suite].iv; + keyLen = aesModes[suite].key + ivLen = aesModes[suite].iv } else if (desModes[suite]) { - keyLen = desModes[suite].key * 8; - ivLen = desModes[suite].iv; + keyLen = desModes[suite].key * 8 + ivLen = desModes[suite].iv } else { - throw new TypeError('invalid suite type'); + throw new TypeError('invalid suite type') } - var keys = ebtk(password, false, keyLen, ivLen); - return createDecipheriv(suite, keys.key, keys.iv); + 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); - if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite }); +function createCipheriv (suite, key, iv) { + suite = suite.toLowerCase() + if (aesModes[suite]) return aes.createCipheriv(suite, key, iv) + if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite }) - throw new TypeError('invalid suite type'); + throw new TypeError('invalid suite type') } -function createDecipheriv(suite, key, iv) { - suite = suite.toLowerCase(); - if (aesModes[suite]) return aes.createDecipheriv(suite, key, iv); - if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite, decrypt: true }); +function createDecipheriv (suite, key, iv) { + suite = suite.toLowerCase() + if (aesModes[suite]) return aes.createDecipheriv(suite, key, iv) + if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite, decrypt: true }) - throw new TypeError('invalid suite type'); + throw new TypeError('invalid suite type') } -function getCiphers() { - return Object.keys(desModes).concat(aes.getCiphers()); +function getCiphers () { + return Object.keys(desModes).concat(aes.getCiphers()) } -exports.createCipher = exports.Cipher = createCipher; -exports.createCipheriv = exports.Cipheriv = createCipheriv; -exports.createDecipher = exports.Decipher = createDecipher; -exports.createDecipheriv = exports.Decipheriv = createDecipheriv; -exports.listCiphers = exports.getCiphers = getCiphers; - -},{"browserify-aes/browser":372,"browserify-aes/modes":383,"browserify-des":388,"browserify-des/modes":389,"evp_bytestokey":862}],388:[function(require,module,exports){ -'use strict'; +exports.createCipher = exports.Cipher = createCipher +exports.createCipheriv = exports.Cipheriv = createCipheriv +exports.createDecipher = exports.Decipher = createDecipher +exports.createDecipheriv = exports.Decipheriv = createDecipheriv +exports.listCiphers = exports.getCiphers = getCiphers -var CipherBase = require('cipher-base'); -var des = require('des.js'); -var inherits = require('inherits'); -var Buffer = require('safe-buffer').Buffer; +},{"browserify-aes/browser":386,"browserify-aes/modes":397,"browserify-des":402,"browserify-des/modes":403,"evp_bytestokey":876}],402:[function(require,module,exports){ +var CipherBase = require('cipher-base') +var des = require('des.js') +var inherits = require('inherits') +var Buffer = require('safe-buffer').Buffer var modes = { 'des-ede3-cbc': des.CBC.instantiate(des.EDE), @@ -125261,86 +133250,83 @@ var modes = { '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; +} +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'; + type = 'decrypt' } else { - type = 'encrypt'; + type = 'encrypt' } - var key = opts.key; + var key = opts.key if (!Buffer.isBuffer(key)) { - key = Buffer.from(key); + key = Buffer.from(key) } if (modeName === 'des-ede' || modeName === 'des-ede-cbc') { - key = Buffer.concat([key, key.slice(0, 8)]); + key = Buffer.concat([key, key.slice(0, 8)]) } - var iv = opts.iv; + var iv = opts.iv if (!Buffer.isBuffer(iv)) { - iv = Buffer.from(iv); + iv = Buffer.from(iv) } this._des = mode.create({ key: key, iv: iv, type: type - }); + }) } DES.prototype._update = function (data) { - return Buffer.from(this._des.update(data)); -}; + return Buffer.from(this._des.update(data)) +} DES.prototype._final = function () { - return Buffer.from(this._des.final()); -}; - -},{"cipher-base":402,"des.js":828,"inherits":882,"safe-buffer":937}],389:[function(require,module,exports){ -'use strict'; + return Buffer.from(this._des.final()) +} +},{"cipher-base":416,"des.js":842,"inherits":896,"safe-buffer":951}],403:[function(require,module,exports){ 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 -}; +} -},{}],390:[function(require,module,exports){ +},{}],404:[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(); + var blinder = r.toRed(bn.mont(priv.modulus)) + .redPow(new bn(priv.publicExponent)).fromRed(); return { blinder: blinder, - unblinder: r.invm(priv.modulus) + unblinder:r.invm(priv.modulus) }; } function crt(msg, priv) { @@ -125366,19 +133352,17 @@ 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)) { + 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":367,"buffer":401,"randombytes":918}],391:[function(require,module,exports){ -'use strict'; - -module.exports = require('./browser/algorithms.json'); +},{"bn.js":381,"buffer":415,"randombytes":932}],405:[function(require,module,exports){ +module.exports = require('./browser/algorithms.json') -},{"./browser/algorithms.json":392}],392:[function(require,module,exports){ +},{"./browser/algorithms.json":406}],406:[function(require,module,exports){ module.exports={ "sha224WithRSAEncryption": { "sign": "rsa", @@ -125532,7 +133516,7 @@ module.exports={ } } -},{}],393:[function(require,module,exports){ +},{}],407:[function(require,module,exports){ module.exports={ "1.3.132.0.10": "secp256k1", "1.3.132.0.33": "p224", @@ -125542,93 +133526,91 @@ module.exports={ "1.3.132.0.35": "p521" } -},{}],394:[function(require,module,exports){ +},{}],408:[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 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'); +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]; -}); + algorithms[key].id = new Buffer(algorithms[key].id, 'hex') + algorithms[key.toLowerCase()] = algorithms[key] +}) -function Sign(algorithm) { - stream.Writable.call(this); +function Sign (algorithm) { + stream.Writable.call(this) - var data = algorithms[algorithm]; - if (!data) throw new Error('Unknown message digest'); + 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; + this._hashType = data.hash + this._hash = createHash(data.hash) + this._tag = data.id + this._signType = data.sign } -inherits(Sign, stream.Writable); +inherits(Sign, stream.Writable) -Sign.prototype._write = function _write(data, _, done) { - this._hash.update(data); - done(); -}; +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); +Sign.prototype.update = function update (data, enc) { + if (typeof data === 'string') data = new Buffer(data, enc) - this._hash.update(data); - return this; -}; + 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); +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; -}; + return enc ? sig.toString(enc) : sig +} -function Verify(algorithm) { - stream.Writable.call(this); +function Verify (algorithm) { + stream.Writable.call(this) - var data = algorithms[algorithm]; - if (!data) throw new Error('Unknown message digest'); + 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; + this._hash = createHash(data.hash) + this._tag = data.id + this._signType = data.sign } -inherits(Verify, stream.Writable); +inherits(Verify, stream.Writable) -Verify.prototype._write = function _write(data, _, done) { - this._hash.update(data); - done(); -}; +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); +Verify.prototype.update = function update (data, enc) { + if (typeof data === 'string') data = new Buffer(data, enc) - this._hash.update(data); - return this; -}; + this._hash.update(data) + return this +} -Verify.prototype.verify = function verifyMethod(key, sig, enc) { - if (typeof sig === 'string') sig = new Buffer(sig, enc); +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); -}; + this.end() + var hash = this._hash.digest() + return verify(sig, hash, key, this._signType, this._tag) +} -function createSign(algorithm) { - return new Sign(algorithm); +function createSign (algorithm) { + return new Sign(algorithm) } -function createVerify(algorithm) { - return new Verify(algorithm); +function createVerify (algorithm) { + return new Verify(algorithm) } module.exports = { @@ -125636,293 +133618,288 @@ module.exports = { Verify: createVerify, createSign: createSign, createVerify: createVerify -}; +} }).call(this,require("buffer").Buffer) -},{"./algorithms.json":392,"./sign":395,"./verify":396,"buffer":401,"create-hash":823,"inherits":882,"stream":954}],395:[function(require,module,exports){ +},{"./algorithms.json":406,"./sign":409,"./verify":410,"buffer":415,"create-hash":837,"inherits":896,"stream":968}],409:[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); +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); + 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); + 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'); + 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; + 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('.')); +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); + var curve = new EC(curveId) + var key = curve.keyFromPrivate(priv.privateKey) + var out = key.sign(hash) - return new Buffer(out.toDER()); + 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); +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); + 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); + s = false + r = new BN(0) } } - return toDER(r, s); + return toDER(r, s) } -function toDER(r, s) { - r = r.toArray(); - s = s.toArray(); +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); + 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); + 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()); +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()); + 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]); + var zeros = new Buffer(q.byteLength() - out.length) + zeros.fill(0) + out = Buffer.concat([ zeros, out ]) } - return out; + return out } -function makeKey(q, kv, algo) { - var t; - var k; +function makeKey (q, kv, algo) { + var t + var k do { - t = new Buffer(0); + 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]); + 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); + 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; + return k } -function makeR(g, k, p, q) { - return g.toRed(BN.mont(p)).redPow(k).fromRed().mod(q); +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; +module.exports = sign +module.exports.getKey = getKey +module.exports.makeKey = makeKey }).call(this,require("buffer").Buffer) -},{"./curves.json":393,"bn.js":367,"browserify-rsa":390,"buffer":401,"create-hmac":825,"elliptic":841,"parse-asn1":904}],396:[function(require,module,exports){ +},{"./curves.json":407,"bn.js":381,"browserify-rsa":404,"buffer":415,"create-hmac":839,"elliptic":855,"parse-asn1":918}],410:[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'); +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); +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); + 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); + 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'); + 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; + 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(0xff) + padNum++ } - pad.push(0x00); - var i = -1; + pad.push(0x00) + var i = -1 while (++i < hash.length) { - pad.push(hash[i]); + pad.push(hash[i]) } - pad = new Buffer(pad); - var red = BN.mont(pub.modulus); - sig = new BN(sig).toRed(red); + 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; + 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; + 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('.')); +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; + var curve = new EC(curveId) + var pubkey = pub.data.subjectPrivateKey.data - return curve.verify(hash, sig, pubkey); + 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 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'); +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; +module.exports = verify }).call(this,require("buffer").Buffer) -},{"./curves.json":393,"bn.js":367,"buffer":401,"elliptic":841,"parse-asn1":904}],397:[function(require,module,exports){ +},{"./curves.json":407,"bn.js":381,"buffer":415,"elliptic":855,"parse-asn1":918}],411:[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) { +;(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) { + var freeExports = typeof exports == 'object' && exports && + !exports.nodeType && exports; + var freeModule = typeof module == 'object' && module && + !module.nodeType && module; + var freeGlobal = typeof global == 'object' && global; + if ( + freeGlobal.global === freeGlobal || + freeGlobal.window === freeGlobal || + freeGlobal.self === freeGlobal + ) { root = freeGlobal; } /** - * The `punycode` object. - * @name punycode - * @type Object - */ + * The `punycode` object. + * @name punycode + * @type Object + */ var punycode, - /** Highest positive signed 32-bit float value */ - maxInt = 2147483647, - // aka. 0x7FFFFFFF or 2^31-1 + 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' + 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 + regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars + regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators /** Error messages */ errors = { @@ -125931,12 +133908,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 'invalid-input': 'Invalid input' }, - /** Convenience shortcuts */ baseMinusTMin = base - tMin, - floor = Math.floor, - stringFromCharCode = String.fromCharCode, - + floor = Math.floor, + stringFromCharCode = String.fromCharCode, /** Temporary variable */ key; @@ -125944,23 +133919,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /*--------------------------------------------------------------------------*/ /** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ + * 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. - */ + * 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 = []; @@ -125971,15 +133946,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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. - */ + * 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 = ''; @@ -125997,18 +133972,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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 - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ + * 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 + * @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, @@ -126020,8 +133995,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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 + 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 @@ -126037,15 +134011,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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). - */ + * 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) { + return map(array, function(value) { var output = ''; if (value > 0xFFFF) { value -= 0x10000; @@ -126058,14 +134032,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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. - */ + * 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; @@ -126080,16 +134054,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * 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. - */ + * 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 @@ -126097,27 +134071,27 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } /** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ + * 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) { + 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. - */ + * 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 = [], @@ -126134,9 +134108,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol k, digit, t, - - /** Cached calculation results */ - baseMinusT; + /** 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 @@ -126158,14 +134131,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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 */{ + 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) { + for (oldi = i, w = 1, k = base; /* no condition */; k += base) { if (index >= inputLength) { error('invalid-input'); @@ -126178,7 +134151,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } i += digit * w; - t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; + t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); if (digit < t) { break; @@ -126190,6 +134163,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } w *= baseMinusT; + } out = output.length + 1; @@ -126206,18 +134180,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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. - */ + * 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, @@ -126231,12 +134206,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol t, currentValue, output = [], - - /** `inputLength` will hold the number of code points in `input`. */ - inputLength, - - /** Cached calculation results */ - handledCPCountPlusOne, + /** `inputLength` will hold the number of code points in `input`. */ + inputLength, + /** Cached calculation results */ + handledCPCountPlusOne, baseMinusT, qMinusT; @@ -126300,14 +134273,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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; + 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))); + output.push( + stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) + ); q = floor(qMinusT / baseMinusT); } @@ -126320,41 +134295,46 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol ++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. - */ + * 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; + 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. - */ + * 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; + return mapDomain(input, function(string) { + return regexNonASCII.test(string) + ? 'xn--' + encode(string) + : string; }); } @@ -126363,18 +134343,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /** Define the public API */ punycode = { /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ + * 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 - * @memberOf punycode - * @type Object - */ + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see + * @memberOf punycode + * @type Object + */ 'ucs2': { 'decode': ucs2decode, 'encode': ucs2encode @@ -126388,8 +134368,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /** 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 () { + if ( + typeof define == 'function' && + typeof define.amd == 'object' && + define.amd + ) { + define('punycode', function() { return punycode; }); } else if (freeExports && freeModule) { @@ -126406,10 +134390,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // in Rhino or a web browser root.punycode = punycode; } -})(undefined); + +}(this)); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],398:[function(require,module,exports){ +},{}],412:[function(require,module,exports){ 'use strict'; var Buffer = require('safe-buffer').Buffer; @@ -126569,17 +134554,17 @@ function utf8CheckIncomplete(self, buf, i) { function utf8CheckExtraBytes(self, buf, p) { if ((buf[0] & 0xC0) !== 0x80) { self.lastNeed = 0; - return '\uFFFD'.repeat(p); + return '\ufffd'.repeat(p); } if (self.lastNeed > 1 && buf.length > 1) { if ((buf[1] & 0xC0) !== 0x80) { self.lastNeed = 1; - return '\uFFFD'.repeat(p + 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); + return '\ufffd'.repeat(p + 2); } } } @@ -126614,7 +134599,7 @@ function utf8Text(buf, i) { // 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); + if (this.lastNeed) return r + '\ufffd'.repeat(this.lastTotal - this.lastNeed); return r; } @@ -126682,10 +134667,7 @@ function simpleWrite(buf) { function simpleEnd(buf) { return buf && buf.length ? this.write(buf) : ''; } - -},{"safe-buffer":937}],399:[function(require,module,exports){ -'use strict'; - +},{"safe-buffer":951}],413:[function(require,module,exports){ // Base58 encoding/decoding // Originally written by Mike Hearn for BitcoinJ // Copyright (c) 2011 Google Inc @@ -126693,107 +134675,100 @@ function simpleEnd(buf) { // 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 ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' +var ALPHABET_MAP = {} +for(var i = 0; i < ALPHABET.length; i++) { + ALPHABET_MAP[ALPHABET.charAt(i)] = i } -var BASE = 58; +var BASE = 58 function encode(buffer) { - if (buffer.length === 0) return ''; + if (buffer.length === 0) return '' - var i, - j, - digits = [0]; + 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]; + for (j = 0; j < digits.length; j++) digits[j] <<= 8 - var carry = 0; + digits[0] += buffer[i] + + var carry = 0 for (j = 0; j < digits.length; ++j) { - digits[j] += carry; + digits[j] += carry - carry = digits[j] / BASE | 0; - digits[j] %= BASE; + carry = (digits[j] / BASE) | 0 + digits[j] %= BASE } while (carry) { - digits.push(carry % BASE); + digits.push(carry % BASE) - carry = carry / BASE | 0; + 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 (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]]; + stringOutput = stringOutput + ALPHABET[digits[i]] } - return stringOutput; + return stringOutput } function decode(string) { - if (string.length === 0) return []; + if (string.length === 0) return [] - var i, - j, - bytes = [0]; + 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'); + 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]; + for (j = 0; j < bytes.length; j++) bytes[j] *= BASE + bytes[0] += ALPHABET_MAP[c] - var carry = 0; + var carry = 0 for (j = 0; j < bytes.length; ++j) { - bytes[j] += carry; + bytes[j] += carry - carry = bytes[j] >> 8; - bytes[j] &= 0xff; + carry = bytes[j] >> 8 + bytes[j] &= 0xff } while (carry) { - bytes.push(carry & 0xff); + bytes.push(carry & 0xff) - carry >>= 8; + carry >>= 8 } } // deal with leading zeros - for (i = 0; string[i] === '1' && i < string.length - 1; i++) { - bytes.push(0); - }return bytes.reverse(); + for (i = 0; string[i] === '1' && i < string.length - 1; i++) bytes.push(0) + + return bytes.reverse() } module.exports = { encode: encode, decode: decode -}; +} -},{}],400:[function(require,module,exports){ +},{}],414:[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); +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]; + buffer[i] = a[i] ^ b[i] } - return buffer; -}; + return buffer +} }).call(this,require("buffer").Buffer) -},{"buffer":401}],401:[function(require,module,exports){ +},{"buffer":415}],415:[function(require,module,exports){ /*! * The buffer module from node.js, for the browser. * @@ -126802,19 +134777,17 @@ module.exports = function xor(a, b) { */ /* eslint-disable no-proto */ -'use strict'; +'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 base64 = require('base64-js'); -var ieee754 = require('ieee754'); +var base64 = require('base64-js') +var ieee754 = require('ieee754') -exports.Buffer = Buffer; -exports.SlowBuffer = SlowBuffer; -exports.INSPECT_MAX_BYTES = 50; +exports.Buffer = Buffer +exports.SlowBuffer = SlowBuffer +exports.INSPECT_MAX_BYTES = 50 -var K_MAX_LENGTH = 0x7fffffff; -exports.kMaxLength = K_MAX_LENGTH; +var K_MAX_LENGTH = 0x7fffffff +exports.kMaxLength = K_MAX_LENGTH /** * If `Buffer.TYPED_ARRAY_SUPPORT`: @@ -126830,49 +134803,51 @@ exports.kMaxLength = K_MAX_LENGTH; * (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(); +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.'); +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() { +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; + var arr = new Uint8Array(1) + arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42 } } + return arr.foo() === 42 } catch (e) { - return false; + return false } } Object.defineProperty(Buffer.prototype, 'parent', { enumerable: true, - get: function get() { - if (!Buffer.isBuffer(this)) return undefined; - return this.buffer; + get: function () { + if (!Buffer.isBuffer(this)) return undefined + return this.buffer } -}); +}) Object.defineProperty(Buffer.prototype, 'offset', { enumerable: true, - get: function get() { - if (!Buffer.isBuffer(this)) return undefined; - return this.byteOffset; + get: function () { + if (!Buffer.isBuffer(this)) return undefined + return this.byteOffset } -}); +}) -function createBuffer(length) { +function createBuffer (length) { if (length > K_MAX_LENGTH) { - throw new RangeError('The value "' + length + '" is invalid for option "size"'); + throw new RangeError('The value "' + length + '" is invalid for option "size"') } // Return an augmented `Uint8Array` instance - var buf = new Uint8Array(length); - buf.__proto__ = Buffer.prototype; - return buf; + var buf = new Uint8Array(length) + buf.__proto__ = Buffer.prototype + return buf } /** @@ -126885,63 +134860,78 @@ function createBuffer(length) { * The `Uint8Array` prototype remains unmodified. */ -function Buffer(arg, encodingOrOffset, length) { +function Buffer (arg, encodingOrOffset, length) { // Common case. if (typeof arg === 'number') { if (typeof encodingOrOffset === 'string') { - throw new TypeError('The "string" argument must be of type string. Received type number'); + throw new TypeError( + 'The "string" argument must be of type string. Received type number' + ) } - return allocUnsafe(arg); + return allocUnsafe(arg) } - return from(arg, encodingOrOffset, length); + return from(arg, encodingOrOffset, length) } // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 -if (typeof Symbol !== 'undefined' && Symbol.species != null && Buffer[Symbol.species] === Buffer) { +if (typeof Symbol !== 'undefined' && Symbol.species != null && + 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 +Buffer.poolSize = 8192 // not used by this implementation -function from(value, encodingOrOffset, length) { +function from (value, encodingOrOffset, length) { if (typeof value === 'string') { - return fromString(value, encodingOrOffset); + return fromString(value, encodingOrOffset) } if (ArrayBuffer.isView(value)) { - return fromArrayLike(value); + return fromArrayLike(value) } if (value == null) { - throw TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + (typeof value === 'undefined' ? 'undefined' : _typeof(value))); + throw TypeError( + 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + + 'or Array-like Object. Received type ' + (typeof value) + ) } - if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) { - return fromArrayBuffer(value, encodingOrOffset, length); + if (isInstance(value, ArrayBuffer) || + (value && isInstance(value.buffer, ArrayBuffer))) { + return fromArrayBuffer(value, encodingOrOffset, length) } if (typeof value === 'number') { - throw new TypeError('The "value" argument must not be of type number. Received type number'); + throw new TypeError( + 'The "value" argument must not be of type number. Received type number' + ) } - var valueOf = value.valueOf && value.valueOf(); + var valueOf = value.valueOf && value.valueOf() if (valueOf != null && valueOf !== value) { - return Buffer.from(valueOf, encodingOrOffset, length); + return Buffer.from(valueOf, encodingOrOffset, length) } - var b = fromObject(value); - if (b) return b; + var b = fromObject(value) + if (b) return b - if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === 'function') { - return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length); + if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null && + typeof value[Symbol.toPrimitive] === 'function') { + return Buffer.from( + value[Symbol.toPrimitive]('string'), encodingOrOffset, length + ) } - throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + (typeof value === 'undefined' ? 'undefined' : _typeof(value))); + throw new TypeError( + 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + + 'or Array-like Object. Received type ' + (typeof value) + ) } /** @@ -126953,34 +134943,36 @@ function from(value, encodingOrOffset, length) { * Buffer.from(arrayBuffer[, byteOffset[, length]]) **/ Buffer.from = function (value, encodingOrOffset, length) { - return from(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; +Buffer.prototype.__proto__ = Uint8Array.prototype +Buffer.__proto__ = Uint8Array -function assertSize(size) { +function assertSize (size) { if (typeof size !== 'number') { - throw new TypeError('"size" argument must be of type number'); + throw new TypeError('"size" argument must be of type number') } else if (size < 0) { - throw new RangeError('The value "' + size + '" is invalid for option "size"'); + throw new RangeError('The value "' + size + '" is invalid for option "size"') } } -function alloc(size, fill, encoding) { - assertSize(size); +function alloc (size, fill, encoding) { + assertSize(size) if (size <= 0) { - return createBuffer(size); + 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 typeof encoding === 'string' + ? createBuffer(size).fill(fill, encoding) + : createBuffer(size).fill(fill) } - return createBuffer(size); + return createBuffer(size) } /** @@ -126988,155 +134980,158 @@ function alloc(size, fill, encoding) { * alloc(size[, fill[, encoding]]) **/ Buffer.alloc = function (size, fill, encoding) { - return alloc(size, fill, encoding); -}; + return alloc(size, fill, encoding) +} -function allocUnsafe(size) { - assertSize(size); - return createBuffer(size < 0 ? 0 : checked(size) | 0); +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); -}; + return allocUnsafe(size) +} /** * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. */ Buffer.allocUnsafeSlow = function (size) { - return allocUnsafe(size); -}; + return allocUnsafe(size) +} -function fromString(string, encoding) { +function fromString (string, encoding) { if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8'; + encoding = 'utf8' } if (!Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding); + throw new TypeError('Unknown encoding: ' + encoding) } - var length = byteLength(string, encoding) | 0; - var buf = createBuffer(length); + var length = byteLength(string, encoding) | 0 + var buf = createBuffer(length) - var actual = buf.write(string, encoding); + 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); + buf = buf.slice(0, actual) } - return buf; + return buf } -function fromArrayLike(array) { - var length = array.length < 0 ? 0 : checked(array.length) | 0; - var buf = createBuffer(length); +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; + buf[i] = array[i] & 255 } - return buf; + return buf } -function fromArrayBuffer(array, byteOffset, length) { +function fromArrayBuffer (array, byteOffset, length) { if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('"offset" is outside of buffer bounds'); + throw new RangeError('"offset" is outside of buffer bounds') } if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('"length" is outside of buffer bounds'); + throw new RangeError('"length" is outside of buffer bounds') } - var buf; + var buf if (byteOffset === undefined && length === undefined) { - buf = new Uint8Array(array); + buf = new Uint8Array(array) } else if (length === undefined) { - buf = new Uint8Array(array, byteOffset); + buf = new Uint8Array(array, byteOffset) } else { - buf = new Uint8Array(array, byteOffset, length); + buf = new Uint8Array(array, byteOffset, length) } // Return an augmented `Uint8Array` instance - buf.__proto__ = Buffer.prototype; - return buf; + buf.__proto__ = Buffer.prototype + return buf } -function fromObject(obj) { +function fromObject (obj) { if (Buffer.isBuffer(obj)) { - var len = checked(obj.length) | 0; - var buf = createBuffer(len); + var len = checked(obj.length) | 0 + var buf = createBuffer(len) if (buf.length === 0) { - return buf; + return buf } - obj.copy(buf, 0, 0, len); - return buf; + obj.copy(buf, 0, 0, len) + return buf } if (obj.length !== undefined) { if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) { - return createBuffer(0); + return createBuffer(0) } - return fromArrayLike(obj); + return fromArrayLike(obj) } if (obj.type === 'Buffer' && Array.isArray(obj.data)) { - return fromArrayLike(obj.data); + return fromArrayLike(obj.data) } } -function checked(length) { +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'); + throw new RangeError('Attempt to allocate Buffer larger than maximum ' + + 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes') } - return length | 0; + return length | 0 } -function SlowBuffer(length) { - if (+length != length) { - // eslint-disable-line eqeqeq - length = 0; +function SlowBuffer (length) { + if (+length != length) { // eslint-disable-line eqeqeq + length = 0 } - return Buffer.alloc(+length); + return Buffer.alloc(+length) } -Buffer.isBuffer = function isBuffer(b) { - return b != null && b._isBuffer === true && b !== Buffer.prototype; // so Buffer.isBuffer(Buffer.prototype) will be false -}; +Buffer.isBuffer = function isBuffer (b) { + return b != null && b._isBuffer === true && + b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false +} -Buffer.compare = function compare(a, b) { - if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength); - if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength); +Buffer.compare = function compare (a, b) { + if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength) + if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength) if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); + throw new TypeError( + 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' + ) } - if (a === b) return 0; + if (a === b) return 0 - var x = a.length; - var y = b.length; + 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; + x = a[i] + y = b[i] + break } } - if (x < y) return -1; - if (y < x) return 1; - return 0; -}; + if (x < y) return -1 + if (y < x) return 1 + return 0 +} -Buffer.isEncoding = function isEncoding(encoding) { +Buffer.isEncoding = function isEncoding (encoding) { switch (String(encoding).toLowerCase()) { case 'hex': case 'utf8': @@ -127149,93 +135144,96 @@ Buffer.isEncoding = function isEncoding(encoding) { case 'ucs-2': case 'utf16le': case 'utf-16le': - return true; + return true default: - return false; + return false } -}; +} -Buffer.concat = function concat(list, length) { +Buffer.concat = function concat (list, length) { if (!Array.isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers'); + throw new TypeError('"list" argument must be an Array of Buffers') } if (list.length === 0) { - return Buffer.alloc(0); + return Buffer.alloc(0) } - var i; + var i if (length === undefined) { - length = 0; + length = 0 for (i = 0; i < list.length; ++i) { - length += list[i].length; + length += list[i].length } } - var buffer = Buffer.allocUnsafe(length); - var pos = 0; + var buffer = Buffer.allocUnsafe(length) + var pos = 0 for (i = 0; i < list.length; ++i) { - var buf = list[i]; + var buf = list[i] if (isInstance(buf, Uint8Array)) { - buf = Buffer.from(buf); + buf = Buffer.from(buf) } if (!Buffer.isBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers'); + throw new TypeError('"list" argument must be an Array of Buffers') } - buf.copy(buffer, pos); - pos += buf.length; + buf.copy(buffer, pos) + pos += buf.length } - return buffer; -}; + return buffer +} -function byteLength(string, encoding) { +function byteLength (string, encoding) { if (Buffer.isBuffer(string)) { - return string.length; + return string.length } if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) { - return string.byteLength; + return string.byteLength } if (typeof string !== 'string') { - throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + 'Received type ' + (typeof string === 'undefined' ? 'undefined' : _typeof(string))); + throw new TypeError( + 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + + 'Received type ' + typeof string + ) } - var len = string.length; - var mustMatch = arguments.length > 2 && arguments[2] === true; - if (!mustMatch && len === 0) return 0; + var len = string.length + var mustMatch = (arguments.length > 2 && arguments[2] === true) + if (!mustMatch && len === 0) return 0 // Use a for loop to avoid recursion - var loweredCase = false; + var loweredCase = false for (;;) { switch (encoding) { case 'ascii': case 'latin1': case 'binary': - return len; + return len case 'utf8': case 'utf-8': - return utf8ToBytes(string).length; + return utf8ToBytes(string).length case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': - return len * 2; + return len * 2 case 'hex': - return len >>> 1; + return len >>> 1 case 'base64': - return base64ToBytes(string).length; + return base64ToBytes(string).length default: if (loweredCase) { - return mustMatch ? -1 : utf8ToBytes(string).length; // assume utf8 + return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8 } - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; + encoding = ('' + encoding).toLowerCase() + loweredCase = true } } } -Buffer.byteLength = byteLength; +Buffer.byteLength = byteLength -function slowToString(encoding, start, end) { - var loweredCase = false; +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. @@ -127245,61 +135243,61 @@ function slowToString(encoding, start, end) { // 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; + start = 0 } // Return early if start > this.length. Done here to prevent potential uint32 // coercion fail below. if (start > this.length) { - return ''; + return '' } if (end === undefined || end > this.length) { - end = this.length; + end = this.length } if (end <= 0) { - return ''; + return '' } // Force coersion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0; - start >>>= 0; + end >>>= 0 + start >>>= 0 if (end <= start) { - return ''; + return '' } - if (!encoding) encoding = 'utf8'; + if (!encoding) encoding = 'utf8' while (true) { switch (encoding) { case 'hex': - return hexSlice(this, start, end); + return hexSlice(this, start, end) case 'utf8': case 'utf-8': - return utf8Slice(this, start, end); + return utf8Slice(this, start, end) case 'ascii': - return asciiSlice(this, start, end); + return asciiSlice(this, start, end) case 'latin1': case 'binary': - return latin1Slice(this, start, end); + return latin1Slice(this, start, end) case 'base64': - return base64Slice(this, start, end); + return base64Slice(this, start, end) case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': - return utf16leSlice(this, start, end); + return utf16leSlice(this, start, end) default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding); - encoding = (encoding + '').toLowerCase(); - loweredCase = true; + if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) + encoding = (encoding + '').toLowerCase() + loweredCase = true } } } @@ -127310,135 +135308,138 @@ function slowToString(encoding, start, end) { // 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; +Buffer.prototype._isBuffer = true -function swap(b, n, m) { - var i = b[n]; - b[n] = b[m]; - b[m] = i; +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; +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'); + 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); + swap(this, i, i + 1) } - return this; -}; + return this +} -Buffer.prototype.swap32 = function swap32() { - var len = this.length; +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'); + 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); + swap(this, i, i + 3) + swap(this, i + 1, i + 2) } - return this; -}; + return this +} -Buffer.prototype.swap64 = function swap64() { - var len = this.length; +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'); + 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); + 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; -}; + 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.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.toLocaleString = Buffer.prototype.toString; +Buffer.prototype.toLocaleString = Buffer.prototype.toString -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.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; - str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim(); - if (this.length > max) str += ' ... '; - return ''; -}; +Buffer.prototype.inspect = function inspect () { + var str = '' + var max = exports.INSPECT_MAX_BYTES + str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim() + if (this.length > max) str += ' ... ' + return '' +} -Buffer.prototype.compare = function compare(target, start, end, thisStart, thisEnd) { +Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { if (isInstance(target, Uint8Array)) { - target = Buffer.from(target, target.offset, target.byteLength); + target = Buffer.from(target, target.offset, target.byteLength) } if (!Buffer.isBuffer(target)) { - throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. ' + 'Received type ' + (typeof target === 'undefined' ? 'undefined' : _typeof(target))); + throw new TypeError( + 'The "target" argument must be one of type Buffer or Uint8Array. ' + + 'Received type ' + (typeof target) + ) } if (start === undefined) { - start = 0; + start = 0 } if (end === undefined) { - end = target ? target.length : 0; + end = target ? target.length : 0 } if (thisStart === undefined) { - thisStart = 0; + thisStart = 0 } if (thisEnd === undefined) { - thisEnd = this.length; + thisEnd = this.length } if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { - throw new RangeError('out of range index'); + throw new RangeError('out of range index') } if (thisStart >= thisEnd && start >= end) { - return 0; + return 0 } if (thisStart >= thisEnd) { - return -1; + return -1 } if (start >= end) { - return 1; + return 1 } - start >>>= 0; - end >>>= 0; - thisStart >>>= 0; - thisEnd >>>= 0; + start >>>= 0 + end >>>= 0 + thisStart >>>= 0 + thisEnd >>>= 0 - if (this === target) return 0; + if (this === target) return 0 - var x = thisEnd - thisStart; - var y = end - start; - var len = Math.min(x, y); + 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); + 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; + x = thisCopy[i] + y = targetCopy[i] + break } } - if (x < y) return -1; - if (y < x) return 1; - return 0; -}; + 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`. @@ -127449,302 +135450,310 @@ Buffer.prototype.compare = function compare(target, start, end, thisStart, thisE // - 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) { +function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { // Empty buffer means no match - if (buffer.length === 0) return -1; + if (buffer.length === 0) return -1 // Normalize byteOffset if (typeof byteOffset === 'string') { - encoding = byteOffset; - byteOffset = 0; + encoding = byteOffset + byteOffset = 0 } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff; + byteOffset = 0x7fffffff } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000; + byteOffset = -0x80000000 } - byteOffset = +byteOffset; // Coerce to Number. + 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; + 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 < 0) byteOffset = buffer.length + byteOffset if (byteOffset >= buffer.length) { - if (dir) return -1;else byteOffset = buffer.length - 1; + if (dir) return -1 + else byteOffset = buffer.length - 1 } else if (byteOffset < 0) { - if (dir) byteOffset = 0;else return -1; + if (dir) byteOffset = 0 + else return -1 } // Normalize val if (typeof val === 'string') { - val = Buffer.from(val, encoding); + 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 -1 } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir); + return arrayIndexOf(buffer, val, byteOffset, encoding, dir) } else if (typeof val === 'number') { - val = val & 0xFF; // Search for a byte value [0-255] + 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); + return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset); + return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) } } - return arrayIndexOf(buffer, [val], byteOffset, encoding, dir); + return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) } - throw new TypeError('val must be string, number or Buffer'); + 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; +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') { + encoding = String(encoding).toLowerCase() + if (encoding === 'ucs2' || encoding === 'ucs-2' || + encoding === 'utf16le' || encoding === 'utf-16le') { if (arr.length < 2 || val.length < 2) { - return -1; + return -1 } - indexSize = 2; - arrLength /= 2; - valLength /= 2; - byteOffset /= 2; + indexSize = 2 + arrLength /= 2 + valLength /= 2 + byteOffset /= 2 } } - function read(buf, i) { + function read (buf, i) { if (indexSize === 1) { - return buf[i]; + return buf[i] } else { - return buf.readUInt16BE(i * indexSize); + return buf.readUInt16BE(i * indexSize) } } - var i; + var i if (dir) { - var foundIndex = -1; + 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; + if (foundIndex === -1) foundIndex = i + if (i - foundIndex + 1 === valLength) return foundIndex * indexSize } else { - if (foundIndex !== -1) i -= i - foundIndex; - foundIndex = -1; + if (foundIndex !== -1) i -= i - foundIndex + foundIndex = -1 } } } else { - if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; + if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength for (i = byteOffset; i >= 0; i--) { - var found = true; + var found = true for (var j = 0; j < valLength; j++) { if (read(arr, i + j) !== read(val, j)) { - found = false; - break; + found = false + break } } - if (found) return i; + if (found) return i } } - return -1; + return -1 } -Buffer.prototype.includes = function includes(val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -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.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); -}; +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; +function hexWrite (buf, string, offset, length) { + offset = Number(offset) || 0 + var remaining = buf.length - offset if (!length) { - length = remaining; + length = remaining } else { - length = Number(length); + length = Number(length) if (length > remaining) { - length = remaining; + length = remaining } } - var strLen = string.length; + var strLen = string.length if (length > strLen / 2) { - 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; + var parsed = parseInt(string.substr(i * 2, 2), 16) + if (numberIsNaN(parsed)) return i + buf[offset + i] = parsed } - return i; + return i } -function utf8Write(buf, string, offset, length) { - return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length); +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 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 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 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); +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.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) + 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]) + encoding = offset + length = this.length + offset = 0 + // Buffer#write(string, offset[, length][, encoding]) } else if (isFinite(offset)) { - offset = offset >>> 0; + offset = offset >>> 0 if (isFinite(length)) { - length = length >>> 0; - if (encoding === undefined) encoding = 'utf8'; + length = length >>> 0 + if (encoding === undefined) encoding = 'utf8' } else { - encoding = length; - length = undefined; + encoding = length + length = undefined } } else { - throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported'); + 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; + 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 ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { + throw new RangeError('Attempt to write outside buffer bounds') } - if (!encoding) encoding = 'utf8'; + if (!encoding) encoding = 'utf8' - var loweredCase = false; + var loweredCase = false for (;;) { switch (encoding) { case 'hex': - return hexWrite(this, string, offset, length); + return hexWrite(this, string, offset, length) case 'utf8': case 'utf-8': - return utf8Write(this, string, offset, length); + return utf8Write(this, string, offset, length) case 'ascii': - return asciiWrite(this, string, offset, length); + return asciiWrite(this, string, offset, length) case 'latin1': case 'binary': - return latin1Write(this, string, offset, length); + return latin1Write(this, string, offset, length) case 'base64': // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length); + return base64Write(this, string, offset, length) case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': - return ucs2Write(this, string, offset, length); + return ucs2Write(this, string, offset, length) default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding); - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; + if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) + encoding = ('' + encoding).toLowerCase() + loweredCase = true } } -}; +} -Buffer.prototype.toJSON = function toJSON() { +Buffer.prototype.toJSON = function toJSON () { return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) - }; -}; + } +} -function base64Slice(buf, start, end) { +function base64Slice (buf, start, end) { if (start === 0 && end === buf.length) { - return base64.fromByteArray(buf); + return base64.fromByteArray(buf) } else { - return base64.fromByteArray(buf.slice(start, end)); + return base64.fromByteArray(buf.slice(start, end)) } } -function utf8Slice(buf, start, end) { - end = Math.min(buf.length, end); - var res = []; +function utf8Slice (buf, start, end) { + end = Math.min(buf.length, end) + var res = [] - var i = start; + 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; + 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; + var secondByte, thirdByte, fourthByte, tempCodePoint switch (bytesPerSequence) { case 1: if (firstByte < 0x80) { - codePoint = firstByte; + codePoint = firstByte } - break; + break case 2: - secondByte = buf[i + 1]; + secondByte = buf[i + 1] if ((secondByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0x1F) << 0x6 | secondByte & 0x3F; + tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F) if (tempCodePoint > 0x7F) { - codePoint = tempCodePoint; + codePoint = tempCodePoint } } - break; + break case 3: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; + secondByte = buf[i + 1] + thirdByte = buf[i + 2] if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | thirdByte & 0x3F; + tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F) if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { - codePoint = tempCodePoint; + codePoint = tempCodePoint } } - break; + break case 4: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; - fourthByte = buf[i + 3]; + 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; + tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F) if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { - codePoint = tempCodePoint; + codePoint = tempCodePoint } } } @@ -127753,647 +135762,670 @@ function utf8Slice(buf, start, end) { 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; + 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; + codePoint -= 0x10000 + res.push(codePoint >>> 10 & 0x3FF | 0xD800) + codePoint = 0xDC00 | codePoint & 0x3FF } - res.push(codePoint); - i += bytesPerSequence; + res.push(codePoint) + i += bytesPerSequence } - return decodeCodePointsArray(res); + 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; +var MAX_ARGUMENTS_LENGTH = 0x1000 -function decodeCodePointsArray(codePoints) { - var len = codePoints.length; +function decodeCodePointsArray (codePoints) { + var len = codePoints.length if (len <= MAX_ARGUMENTS_LENGTH) { - return String.fromCharCode.apply(String, codePoints); // avoid extra slice() + return String.fromCharCode.apply(String, codePoints) // avoid extra slice() } // Decode in chunks to avoid "call stack size exceeded". - var res = ''; - var i = 0; + var res = '' + var i = 0 while (i < len) { - res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)); + res += String.fromCharCode.apply( + String, + codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) + ) } - return res; + return res } -function asciiSlice(buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); +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); + ret += String.fromCharCode(buf[i] & 0x7F) } - return ret; + return ret } -function latin1Slice(buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); +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]); + ret += String.fromCharCode(buf[i]) } - return ret; + return ret } -function hexSlice(buf, start, end) { - var len = buf.length; +function hexSlice (buf, start, end) { + var len = buf.length - if (!start || start < 0) start = 0; - if (!end || end < 0 || end > len) end = len; + if (!start || start < 0) start = 0 + if (!end || end < 0 || end > len) end = len - var out = ''; + var out = '' for (var i = start; i < end; ++i) { - out += toHex(buf[i]); + out += toHex(buf[i]) } - return out; + return out } -function utf16leSlice(buf, start, end) { - var bytes = buf.slice(start, end); - var res = ''; +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); + res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256)) } - return res; + return res } -Buffer.prototype.slice = function slice(start, end) { - var len = this.length; - start = ~~start; - end = end === undefined ? len : ~~end; +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; + start += len + if (start < 0) start = 0 } else if (start > len) { - start = len; + start = len } if (end < 0) { - end += len; - if (end < 0) end = 0; + end += len + if (end < 0) end = 0 } else if (end > len) { - end = len; + end = len } - if (end < start) end = start; + if (end < start) end = start - var newBuf = this.subarray(start, end); + var newBuf = this.subarray(start, end) // Return an augmented `Uint8Array` instance - newBuf.__proto__ = Buffer.prototype; - return newBuf; -}; + 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'); +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); +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; + var val = this[offset] + var mul = 1 + var i = 0 while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; + val += this[offset + i] * mul } - return val; -}; + return val +} -Buffer.prototype.readUIntBE = function readUIntBE(offset, byteLength, noAssert) { - offset = offset >>> 0; - byteLength = byteLength >>> 0; +Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { + offset = offset >>> 0 + byteLength = byteLength >>> 0 if (!noAssert) { - checkOffset(offset, byteLength, this.length); + checkOffset(offset, byteLength, this.length) } - var val = this[offset + --byteLength]; - var mul = 1; + var val = this[offset + --byteLength] + var mul = 1 while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul; + val += this[offset + --byteLength] * mul } - return val; -}; + return val +} -Buffer.prototype.readUInt8 = function readUInt8(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 1, this.length); - return this[offset]; -}; +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.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.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); +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; -}; + 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); +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]); -}; + 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); +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; + var val = this[offset] + var mul = 1 + var i = 0 while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; + val += this[offset + i] * mul } - mul *= 0x80; + mul *= 0x80 - if (val >= mul) val -= Math.pow(2, 8 * byteLength); + if (val >= mul) val -= Math.pow(2, 8 * byteLength) - return val; -}; + return val +} -Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) { - offset = offset >>> 0; - byteLength = byteLength >>> 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); +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]; + var i = byteLength + var mul = 1 + var val = this[offset + --i] while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul; + val += this[offset + --i] * mul } - mul *= 0x80; + mul *= 0x80 - if (val >= mul) val -= Math.pow(2, 8 * byteLength); + if (val >= mul) val -= Math.pow(2, 8 * byteLength) - return val; -}; + 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.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.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.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); +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; -}; + 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); +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]; -}; + 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.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.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.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); -}; +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'); +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; +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 maxBytes = Math.pow(2, 8 * byteLength) - 1 + checkInt(this, value, offset, byteLength, maxBytes, 0) } - var mul = 1; - var i = 0; - this[offset] = value & 0xFF; + var mul = 1 + var i = 0 + this[offset] = value & 0xFF while (++i < byteLength && (mul *= 0x100)) { - this[offset + i] = value / mul & 0xFF; + this[offset + i] = (value / mul) & 0xFF } - return offset + byteLength; -}; + return offset + byteLength +} -Buffer.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength, noAssert) { - value = +value; - offset = offset >>> 0; - byteLength = byteLength >>> 0; +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 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; + var i = byteLength - 1 + var mul = 1 + this[offset + i] = value & 0xFF while (--i >= 0 && (mul *= 0x100)) { - this[offset + i] = value / mul & 0xFF; + this[offset + i] = (value / mul) & 0xFF } - return offset + byteLength; -}; + 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.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.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.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.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.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; +Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { + value = +value + offset = offset >>> 0 if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); + var limit = Math.pow(2, (8 * byteLength) - 1) - checkInt(this, value, offset, byteLength, limit - 1, -limit); + checkInt(this, value, offset, byteLength, limit - 1, -limit) } - var i = 0; - var mul = 1; - var sub = 0; - this[offset] = value & 0xFF; + 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; + sub = 1 } - this[offset + i] = (value / mul >> 0) - sub & 0xFF; + this[offset + i] = ((value / mul) >> 0) - sub & 0xFF } - return offset + byteLength; -}; + return offset + byteLength +} -Buffer.prototype.writeIntBE = function writeIntBE(value, offset, byteLength, noAssert) { - value = +value; - offset = offset >>> 0; +Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { + value = +value + offset = offset >>> 0 if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); + var limit = Math.pow(2, (8 * byteLength) - 1) - checkInt(this, value, offset, byteLength, limit - 1, -limit); + checkInt(this, value, offset, byteLength, limit - 1, -limit) } - var i = byteLength - 1; - var mul = 1; - var sub = 0; - this[offset + i] = value & 0xFF; + 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; + sub = 1 } - this[offset + i] = (value / mul >> 0) - sub & 0xFF; + this[offset + i] = ((value / mul) >> 0) - sub & 0xFF } - return offset + byteLength; -}; + 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.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.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.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.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; -}; +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 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; +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); + checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38) } - ieee754.write(buf, value, offset, littleEndian, 23, 4); - return offset + 4; + 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.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); -}; +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; +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); + checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308) } - ieee754.write(buf, value, offset, littleEndian, 52, 8); - return offset + 8; + 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.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); -}; +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 (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer'); - 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; +Buffer.prototype.copy = function copy (target, targetStart, start, end) { + if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer') + 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; + 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'); + throw new RangeError('targetStart out of bounds') } - if (start < 0 || start >= this.length) throw new RangeError('Index out of range'); - if (end < 0) throw new RangeError('sourceEnd out of bounds'); + if (start < 0 || start >= this.length) throw new RangeError('Index out of range') + if (end < 0) throw new RangeError('sourceEnd out of bounds') // Are we oob? - if (end > this.length) end = this.length; + if (end > this.length) end = this.length if (target.length - targetStart < end - start) { - end = target.length - targetStart + start; + end = target.length - targetStart + start } - var len = end - start; + var len = end - start if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') { // Use built-in when available, missing from IE11 - this.copyWithin(targetStart, start, end); + this.copyWithin(targetStart, start, end) } else if (this === target && start < targetStart && targetStart < end) { // descending copy from end for (var i = len - 1; i >= 0; --i) { - target[i + targetStart] = this[i + start]; + target[i + targetStart] = this[i + start] } } else { - Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart); + Uint8Array.prototype.set.call( + target, + this.subarray(start, end), + targetStart + ) } - return len; -}; + 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) { +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; + encoding = start + start = 0 + end = this.length } else if (typeof end === 'string') { - encoding = end; - end = this.length; + encoding = end + end = this.length } if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string'); + throw new TypeError('encoding must be a string') } if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding); + throw new TypeError('Unknown encoding: ' + encoding) } if (val.length === 1) { - var code = val.charCodeAt(0); - if (encoding === 'utf8' && code < 128 || encoding === 'latin1') { + var code = val.charCodeAt(0) + if ((encoding === 'utf8' && code < 128) || + encoding === 'latin1') { // Fast path: If `val` fits into a single byte, use that numeric value. - val = code; + val = code } } } else if (typeof val === 'number') { - val = val & 255; + 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'); + throw new RangeError('Out of range index') } if (end <= start) { - return this; + return this } - start = start >>> 0; - end = end === undefined ? this.length : end >>> 0; + start = start >>> 0 + end = end === undefined ? this.length : end >>> 0 - if (!val) val = 0; + if (!val) val = 0 - var i; + var i if (typeof val === 'number') { for (i = start; i < end; ++i) { - this[i] = val; + this[i] = val } } else { - var bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding); - var len = bytes.length; + var bytes = Buffer.isBuffer(val) + ? val + : Buffer.from(val, encoding) + var len = bytes.length if (len === 0) { - throw new TypeError('The value "' + val + '" is invalid for argument "value"'); + throw new TypeError('The value "' + val + + '" is invalid for argument "value"') } for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len]; + this[i + start] = bytes[i % len] } } - return this; -}; + return this +} // HELPER FUNCTIONS // ================ -var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g; +var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g -function base64clean(str) { +function base64clean (str) { // Node takes equal signs as end of the Base64 encoding - str = str.split('=')[0]; + str = str.split('=')[0] // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = str.trim().replace(INVALID_BASE64_RE, ''); + str = str.trim().replace(INVALID_BASE64_RE, '') // Node converts strings with length < 2 to '' - if (str.length < 2) return ''; + 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 + '='; + str = str + '=' } - return str; + return str } -function toHex(n) { - if (n < 16) return '0' + n.toString(16); - return n.toString(16); +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 = []; +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); + codePoint = string.charCodeAt(i) // is surrogate component if (codePoint > 0xD7FF && codePoint < 0xE000) { @@ -128402,194 +136434,206 @@ function utf8ToBytes(string, units) { // no lead yet if (codePoint > 0xDBFF) { // unexpected trail - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - continue; + 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; + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) + continue } // valid lead - leadSurrogate = codePoint; + leadSurrogate = codePoint - continue; + continue } // 2 leads in a row if (codePoint < 0xDC00) { - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - leadSurrogate = codePoint; - continue; + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) + leadSurrogate = codePoint + continue } // valid surrogate pair - codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000; + 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); + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) } - leadSurrogate = null; + leadSurrogate = null // encode utf8 if (codePoint < 0x80) { - if ((units -= 1) < 0) break; - bytes.push(codePoint); + 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); + 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); + 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); + 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'); + throw new Error('Invalid code point') } } - return bytes; + return bytes } -function asciiToBytes(str) { - var byteArray = []; +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); + byteArray.push(str.charCodeAt(i) & 0xFF) } - return byteArray; + return byteArray } -function utf16leToBytes(str, units) { - var c, hi, lo; - var byteArray = []; +function utf16leToBytes (str, units) { + var c, hi, lo + var byteArray = [] for (var i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break; + if ((units -= 2) < 0) break - c = str.charCodeAt(i); - hi = c >> 8; - lo = c % 256; - byteArray.push(lo); - byteArray.push(hi); + c = str.charCodeAt(i) + hi = c >> 8 + lo = c % 256 + byteArray.push(lo) + byteArray.push(hi) } - return byteArray; + return byteArray } -function base64ToBytes(str) { - return base64.toByteArray(base64clean(str)); +function base64ToBytes (str) { + return base64.toByteArray(base64clean(str)) } -function blitBuffer(src, dst, offset, length) { +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]; + if ((i + offset >= dst.length) || (i >= src.length)) break + dst[i + offset] = src[i] } - return i; + return i } // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass // the `instanceof` check but they should be treated as of that type. // See: https://github.com/feross/buffer/issues/166 -function isInstance(obj, type) { - return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name; +function isInstance (obj, type) { + return obj instanceof type || + (obj != null && obj.constructor != null && obj.constructor.name != null && + obj.constructor.name === type.name) } -function numberIsNaN(obj) { +function numberIsNaN (obj) { // For IE11 support - return obj !== obj; // eslint-disable-line no-self-compare + return obj !== obj // eslint-disable-line no-self-compare } -},{"base64-js":355,"ieee754":880}],402:[function(require,module,exports){ +},{"base64-js":369,"ieee754":894}],416:[function(require,module,exports){ arguments[4][185][0].apply(exports,arguments) -},{"dup":185,"inherits":882,"safe-buffer":937,"stream":954,"string_decoder":398}],403:[function(require,module,exports){ +},{"dup":185,"inherits":896,"safe-buffer":951,"stream":968,"string_decoder":412}],417:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var base58 = require('bs58'); -var createHash = require('create-hash'); +var base58 = require('bs58') +var createHash = require('create-hash') -function encode(payload, version) { +function encode (payload, version) { if (Array.isArray(payload) || payload instanceof Uint8Array) { - payload = new Buffer(payload); + payload = new Buffer(payload) } - var buf; + var buf if (version != null) { if (typeof version === 'number') { - version = new Buffer([version]); + version = new Buffer([version]) } - buf = Buffer.concat([version, payload]); + buf = Buffer.concat([version, payload]) } else { - buf = payload; + buf = payload } - var checksum = sha256x2(buf).slice(0, 4); - var result = Buffer.concat([buf, checksum]); - return base58.encode(result); + 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; +function decode (base58str, version) { + var arr = base58.decode(base58str) + var buf = new Buffer(arr) + var versionLength if (version == null) { - versionLength = 0; + versionLength = 0 } else { - if (typeof version === 'number') version = new Buffer([version]); + if (typeof version === 'number') version = new Buffer([version]) - versionLength = version.length; - var versionCompare = buf.slice(0, versionLength); + versionLength = version.length + var versionCompare = buf.slice(0, versionLength) if (versionCompare.toString('hex') !== version.toString('hex')) { - throw new Error('Invalid version'); + throw new Error('Invalid version') } } - var checksum = buf.slice(-4); - var endPos = buf.length - 4; - var bytes = buf.slice(0, endPos); + var checksum = buf.slice(-4) + var endPos = buf.length - 4 + var bytes = buf.slice(0, endPos) - var newChecksum = sha256x2(bytes).slice(0, 4); + var newChecksum = sha256x2(bytes).slice(0, 4) if (checksum.toString('hex') !== newChecksum.toString('hex')) { - throw new Error('Invalid checksum'); + throw new Error('Invalid checksum') } - return bytes.slice(versionLength); + return bytes.slice(versionLength) } -function isValid(base58str, version) { +function isValid (base58str, version) { try { - decode(base58str, version); + decode(base58str, version) } catch (e) { - return false; + return false } - return true; + return true } -function createEncoder(version) { +function createEncoder (version) { return function (payload) { - return encode(payload, version); - }; + return encode(payload, version) + } } -function createDecoder(version) { +function createDecoder (version) { return function (base58str) { - return decode(base58str, version); - }; + return decode(base58str, version) + } } -function createValidator(version) { +function createValidator (version) { return function (base58str) { - return isValid(base58str, version); - }; + return isValid(base58str, version) + } } -function sha256x2(buffer) { - var sha = createHash('sha256').update(buffer).digest(); - return createHash('sha256').update(sha).digest(); +function sha256x2 (buffer) { + var sha = createHash('sha256').update(buffer).digest() + return createHash('sha256').update(sha).digest() } module.exports = { @@ -128599,39 +136643,29 @@ module.exports = { createEncoder: createEncoder, createDecoder: createDecoder, createValidator: createValidator -}; +} }).call(this,require("buffer").Buffer) -},{"bs58":399,"buffer":401,"create-hash":823}],404:[function(require,module,exports){ -'use strict'; - +},{"bs58":413,"buffer":415,"create-hash":837}],418:[function(require,module,exports){ require('../../modules/core.regexp.escape'); module.exports = require('../../modules/_core').RegExp.escape; -},{"../../modules/_core":518,"../../modules/core.regexp.escape":623}],405:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":532,"../../modules/core.regexp.escape":637}],419:[function(require,module,exports){ require('../../modules/es6.object.assign'); module.exports = require('../../modules/_core').Object.assign; -},{"../../modules/_core":418,"../../modules/es6.object.assign":486}],406:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":432,"../../modules/es6.object.assign":500}],420:[function(require,module,exports){ require('../../modules/es6.object.create'); var $Object = require('../../modules/_core').Object; module.exports = function create(P, D) { return $Object.create(P, D); }; -},{"../../modules/_core":418,"../../modules/es6.object.create":487}],407:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":432,"../../modules/es6.object.create":501}],421:[function(require,module,exports){ require('../../modules/es6.object.set-prototype-of'); module.exports = require('../../modules/_core').Object.setPrototypeOf; -},{"../../modules/_core":418,"../../modules/es6.object.set-prototype-of":488}],408:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":432,"../../modules/es6.object.set-prototype-of":502}],422:[function(require,module,exports){ require('../modules/es6.object.to-string'); require('../modules/es6.string.iterator'); require('../modules/web.dom.iterable'); @@ -128640,56 +136674,42 @@ require('../modules/es7.promise.finally'); require('../modules/es7.promise.try'); module.exports = require('../modules/_core').Promise; -},{"../modules/_core":418,"../modules/es6.object.to-string":489,"../modules/es6.promise":490,"../modules/es6.string.iterator":491,"../modules/es7.promise.finally":493,"../modules/es7.promise.try":494,"../modules/web.dom.iterable":497}],409:[function(require,module,exports){ -'use strict'; - +},{"../modules/_core":432,"../modules/es6.object.to-string":503,"../modules/es6.promise":504,"../modules/es6.string.iterator":505,"../modules/es7.promise.finally":507,"../modules/es7.promise.try":508,"../modules/web.dom.iterable":511}],423:[function(require,module,exports){ require('../../modules/es6.symbol'); require('../../modules/es6.object.to-string'); require('../../modules/es7.symbol.async-iterator'); require('../../modules/es7.symbol.observable'); module.exports = require('../../modules/_core').Symbol; -},{"../../modules/_core":418,"../../modules/es6.object.to-string":489,"../../modules/es6.symbol":492,"../../modules/es7.symbol.async-iterator":495,"../../modules/es7.symbol.observable":496}],410:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_core":432,"../../modules/es6.object.to-string":503,"../../modules/es6.symbol":506,"../../modules/es7.symbol.async-iterator":509,"../../modules/es7.symbol.observable":510}],424:[function(require,module,exports){ require('../../modules/es6.string.iterator'); require('../../modules/web.dom.iterable'); module.exports = require('../../modules/_wks-ext').f('iterator'); -},{"../../modules/_wks-ext":482,"../../modules/es6.string.iterator":491,"../../modules/web.dom.iterable":497}],411:[function(require,module,exports){ -'use strict'; - +},{"../../modules/_wks-ext":496,"../../modules/es6.string.iterator":505,"../../modules/web.dom.iterable":511}],425:[function(require,module,exports){ module.exports = function (it) { if (typeof it != 'function') throw TypeError(it + ' is not a function!'); return it; }; -},{}],412:[function(require,module,exports){ -"use strict"; - -module.exports = function () {/* empty */}; - -},{}],413:[function(require,module,exports){ -'use strict'; +},{}],426:[function(require,module,exports){ +module.exports = function () { /* empty */ }; +},{}],427:[function(require,module,exports){ module.exports = function (it, Constructor, name, forbiddenField) { - if (!(it instanceof Constructor) || forbiddenField !== undefined && forbiddenField in it) { + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { throw TypeError(name + ': incorrect invocation!'); - }return it; + } return it; }; -},{}],414:[function(require,module,exports){ -'use strict'; - +},{}],428:[function(require,module,exports){ var isObject = require('./_is-object'); module.exports = function (it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; -},{"./_is-object":437}],415:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":451}],429:[function(require,module,exports){ // false -> Array#indexOf // true -> Array#includes var toIObject = require('./_to-iobject'); @@ -128707,108 +136727,85 @@ module.exports = function (IS_INCLUDES) { value = O[index++]; // eslint-disable-next-line no-self-compare if (value != value) return true; - // Array#indexOf ignores holes, Array#includes - not - } else for (; length > index; index++) { - if (IS_INCLUDES || index in O) { - if (O[index] === el) return IS_INCLUDES || index || 0; - } - }return !IS_INCLUDES && -1; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { + if (O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; }; }; -},{"./_to-absolute-index":473,"./_to-iobject":475,"./_to-length":476}],416:[function(require,module,exports){ -'use strict'; - +},{"./_to-absolute-index":487,"./_to-iobject":489,"./_to-length":490}],430:[function(require,module,exports){ // getting tag from 19.1.3.6 Object.prototype.toString() var cof = require('./_cof'); var TAG = require('./_wks')('toStringTag'); // ES3 wrong here -var ARG = cof(function () { - return arguments; -}()) == 'Arguments'; +var ARG = cof(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error -var tryGet = function tryGet(it, key) { +var tryGet = function (it, key) { try { return it[key]; - } catch (e) {/* empty */} + } catch (e) { /* empty */ } }; module.exports = function (it) { var O, T, B; return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T - // builtinTag case - : ARG ? cof(O) - // ES3 arguments fallback - : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; + // @@toStringTag case + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T + // builtinTag case + : ARG ? cof(O) + // ES3 arguments fallback + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; }; -},{"./_cof":417,"./_wks":483}],417:[function(require,module,exports){ -"use strict"; - +},{"./_cof":431,"./_wks":497}],431:[function(require,module,exports){ var toString = {}.toString; module.exports = function (it) { return toString.call(it).slice(8, -1); }; -},{}],418:[function(require,module,exports){ -'use strict'; - +},{}],432:[function(require,module,exports){ var core = module.exports = { version: '2.5.7' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef -},{}],419:[function(require,module,exports){ -'use strict'; - +},{}],433:[function(require,module,exports){ // optional / simple context binding var aFunction = require('./_a-function'); module.exports = function (fn, that, length) { aFunction(fn); if (that === undefined) return fn; switch (length) { - case 1: - return function (a) { - return fn.call(that, a); - }; - case 2: - return function (a, b) { - return fn.call(that, a, b); - }; - case 3: - return function (a, b, c) { - return fn.call(that, a, b, c); - }; + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; } - return function () /* ...args */{ + return function (/* ...args */) { return fn.apply(that, arguments); }; }; -},{"./_a-function":411}],420:[function(require,module,exports){ -"use strict"; - +},{"./_a-function":425}],434:[function(require,module,exports){ // 7.2.1 RequireObjectCoercible(argument) module.exports = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; -},{}],421:[function(require,module,exports){ -'use strict'; - +},{}],435:[function(require,module,exports){ // Thank's IE8 for his funny defineProperty module.exports = !require('./_fails')(function () { - return Object.defineProperty({}, 'a', { get: function get() { - return 7; - } }).a != 7; + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); -},{"./_fails":426}],422:[function(require,module,exports){ -'use strict'; - +},{"./_fails":440}],436:[function(require,module,exports){ var isObject = require('./_is-object'); var document = require('./_global').document; // typeof document.createElement is 'object' in old IE @@ -128817,15 +136814,13 @@ module.exports = function (it) { return is ? document.createElement(it) : {}; }; -},{"./_global":428,"./_is-object":437}],423:[function(require,module,exports){ -'use strict'; - +},{"./_global":442,"./_is-object":451}],437:[function(require,module,exports){ // IE 8- don't enum bug keys -module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(','); - -},{}],424:[function(require,module,exports){ -'use strict'; +module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' +).split(','); +},{}],438:[function(require,module,exports){ // all enumerable object keys, includes symbols var getKeys = require('./_object-keys'); var gOPS = require('./_object-gops'); @@ -128838,15 +136833,11 @@ module.exports = function (it) { var isEnum = pIE.f; var i = 0; var key; - while (symbols.length > i) { - if (isEnum.call(it, key = symbols[i++])) result.push(key); - } - }return result; + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); + } return result; }; -},{"./_object-gops":455,"./_object-keys":458,"./_object-pie":459}],425:[function(require,module,exports){ -'use strict'; - +},{"./_object-gops":469,"./_object-keys":472,"./_object-pie":473}],439:[function(require,module,exports){ var global = require('./_global'); var core = require('./_core'); var ctx = require('./_ctx'); @@ -128854,7 +136845,7 @@ var hide = require('./_hide'); var has = require('./_has'); var PROTOTYPE = 'prototype'; -var $export = function $export(type, name, source) { +var $export = function (type, name, source) { var IS_FORCED = type & $export.F; var IS_GLOBAL = type & $export.G; var IS_STATIC = type & $export.S; @@ -128877,23 +136868,20 @@ var $export = function $export(type, name, source) { // bind timers to global for call from export context : IS_BIND && own ? ctx(out, global) // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? function (C) { - var F = function F(a, b, c) { + : IS_WRAP && target[key] == out ? (function (C) { + var F = function (a, b, c) { if (this instanceof C) { switch (arguments.length) { - case 0: - return new C(); - case 1: - return new C(a); - case 2: - return new C(a, b); - }return new C(a, b, c); - }return C.apply(this, arguments); + case 0: return new C(); + case 1: return new C(a); + case 2: return new C(a, b); + } return new C(a, b, c); + } return C.apply(this, arguments); }; F[PROTOTYPE] = C[PROTOTYPE]; return F; - // make static versions for prototype methods - }(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // make static versions for prototype methods + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% if (IS_PROTO) { (exports.virtual || (exports.virtual = {}))[key] = out; @@ -128903,19 +136891,17 @@ var $export = function $export(type, name, source) { } }; // type bitmap -$export.F = 1; // forced -$export.G = 2; // global -$export.S = 4; // static -$export.P = 8; // proto -$export.B = 16; // bind -$export.W = 32; // wrap -$export.U = 64; // safe +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe $export.R = 128; // real proto method for `library` module.exports = $export; -},{"./_core":418,"./_ctx":419,"./_global":428,"./_has":429,"./_hide":430}],426:[function(require,module,exports){ -"use strict"; - +},{"./_core":432,"./_ctx":433,"./_global":442,"./_has":443,"./_hide":444}],440:[function(require,module,exports){ module.exports = function (exec) { try { return !!exec(); @@ -128924,9 +136910,7 @@ module.exports = function (exec) { } }; -},{}],427:[function(require,module,exports){ -'use strict'; - +},{}],441:[function(require,module,exports){ var ctx = require('./_ctx'); var call = require('./_iter-call'); var isArrayIter = require('./_is-array-iter'); @@ -128935,10 +136919,8 @@ var toLength = require('./_to-length'); var getIterFn = require('./core.get-iterator-method'); var BREAK = {}; var RETURN = {}; -var _exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { - var iterFn = ITERATOR ? function () { - return iterable; - } : getIterFn(iterable); +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); var f = ctx(fn, that, entries ? 2 : 1); var index = 0; var length, step, iterator, result; @@ -128952,29 +136934,24 @@ var _exports = module.exports = function (iterable, entries, fn, that, ITERATOR) if (result === BREAK || result === RETURN) return result; } }; -_exports.BREAK = BREAK; -_exports.RETURN = RETURN; - -},{"./_an-object":414,"./_ctx":419,"./_is-array-iter":435,"./_iter-call":438,"./_to-length":476,"./core.get-iterator-method":484}],428:[function(require,module,exports){ -'use strict'; +exports.BREAK = BREAK; +exports.RETURN = RETURN; +},{"./_an-object":428,"./_ctx":433,"./_is-array-iter":449,"./_iter-call":452,"./_to-length":490,"./core.get-iterator-method":498}],442:[function(require,module,exports){ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self -// eslint-disable-next-line no-new-func -: Function('return this')(); +var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef -},{}],429:[function(require,module,exports){ -"use strict"; - +},{}],443:[function(require,module,exports){ var hasOwnProperty = {}.hasOwnProperty; module.exports = function (it, key) { return hasOwnProperty.call(it, key); }; -},{}],430:[function(require,module,exports){ -'use strict'; - +},{}],444:[function(require,module,exports){ var dP = require('./_object-dp'); var createDesc = require('./_property-desc'); module.exports = require('./_descriptors') ? function (object, key, value) { @@ -128984,44 +136961,34 @@ module.exports = require('./_descriptors') ? function (object, key, value) { return object; }; -},{"./_descriptors":421,"./_object-dp":450,"./_property-desc":462}],431:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":435,"./_object-dp":464,"./_property-desc":476}],445:[function(require,module,exports){ var document = require('./_global').document; module.exports = document && document.documentElement; -},{"./_global":428}],432:[function(require,module,exports){ -'use strict'; - +},{"./_global":442}],446:[function(require,module,exports){ module.exports = !require('./_descriptors') && !require('./_fails')(function () { - return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function get() { - return 7; - } }).a != 7; + return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7; }); -},{"./_descriptors":421,"./_dom-create":422,"./_fails":426}],433:[function(require,module,exports){ -"use strict"; - +},{"./_descriptors":435,"./_dom-create":436,"./_fails":440}],447:[function(require,module,exports){ // fast apply, http://jsperf.lnkit.com/fast-apply/5 module.exports = function (fn, args, that) { - var un = that === undefined; - switch (args.length) { - case 0: - return un ? fn() : fn.call(that); - case 1: - return un ? fn(args[0]) : fn.call(that, args[0]); - case 2: - return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); - case 3: - return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); - case 4: - return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]); - }return fn.apply(that, args); -}; - -},{}],434:[function(require,module,exports){ -'use strict'; - + var un = that === undefined; + switch (args.length) { + case 0: return un ? fn() + : fn.call(that); + case 1: return un ? fn(args[0]) + : fn.call(that, args[0]); + case 2: return un ? fn(args[0], args[1]) + : fn.call(that, args[0], args[1]); + case 3: return un ? fn(args[0], args[1], args[2]) + : fn.call(that, args[0], args[1], args[2]); + case 4: return un ? fn(args[0], args[1], args[2], args[3]) + : fn.call(that, args[0], args[1], args[2], args[3]); + } return fn.apply(that, args); +}; + +},{}],448:[function(require,module,exports){ // fallback for non-array-like ES3 and non-enumerable old V8 strings var cof = require('./_cof'); // eslint-disable-next-line no-prototype-builtins @@ -129029,9 +136996,7 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { return cof(it) == 'String' ? it.split('') : Object(it); }; -},{"./_cof":417}],435:[function(require,module,exports){ -'use strict'; - +},{"./_cof":431}],449:[function(require,module,exports){ // check on default Array iterator var Iterators = require('./_iterators'); var ITERATOR = require('./_wks')('iterator'); @@ -129041,33 +137006,25 @@ module.exports = function (it) { return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); }; -},{"./_iterators":443,"./_wks":483}],436:[function(require,module,exports){ -'use strict'; - +},{"./_iterators":457,"./_wks":497}],450:[function(require,module,exports){ // 7.2.2 IsArray(argument) var cof = require('./_cof'); module.exports = Array.isArray || function isArray(arg) { return cof(arg) == 'Array'; }; -},{"./_cof":417}],437:[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; }; - +},{"./_cof":431}],451:[function(require,module,exports){ module.exports = function (it) { - return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) === 'object' ? it !== null : typeof it === 'function'; + return typeof it === 'object' ? it !== null : typeof it === 'function'; }; -},{}],438:[function(require,module,exports){ -'use strict'; - +},{}],452:[function(require,module,exports){ // call something on iterator step with safe closing on error var anObject = require('./_an-object'); module.exports = function (iterator, fn, value, entries) { try { return entries ? fn(anObject(value)[0], value[1]) : fn(value); - // 7.4.6 IteratorClose(iterator, completion) + // 7.4.6 IteratorClose(iterator, completion) } catch (e) { var ret = iterator['return']; if (ret !== undefined) anObject(ret.call(iterator)); @@ -129075,27 +137032,23 @@ module.exports = function (iterator, fn, value, entries) { } }; -},{"./_an-object":414}],439:[function(require,module,exports){ +},{"./_an-object":428}],453:[function(require,module,exports){ 'use strict'; - var create = require('./_object-create'); var descriptor = require('./_property-desc'); var setToStringTag = require('./_set-to-string-tag'); var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -require('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { - return this; -}); +require('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; }); module.exports = function (Constructor, NAME, next) { Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); setToStringTag(Constructor, NAME + ' Iterator'); }; -},{"./_hide":430,"./_object-create":449,"./_property-desc":462,"./_set-to-string-tag":467,"./_wks":483}],440:[function(require,module,exports){ +},{"./_hide":444,"./_object-create":463,"./_property-desc":476,"./_set-to-string-tag":481,"./_wks":497}],454:[function(require,module,exports){ 'use strict'; - var LIBRARY = require('./_library'); var $export = require('./_export'); var redefine = require('./_redefine'); @@ -129110,26 +137063,16 @@ var FF_ITERATOR = '@@iterator'; var KEYS = 'keys'; var VALUES = 'values'; -var returnThis = function returnThis() { - return this; -}; +var returnThis = function () { return this; }; module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { $iterCreate(Constructor, NAME, next); - var getMethod = function getMethod(kind) { + var getMethod = function (kind) { if (!BUGGY && kind in proto) return proto[kind]; switch (kind) { - case KEYS: - return function keys() { - return new Constructor(this, kind); - }; - case VALUES: - return function values() { - return new Constructor(this, kind); - }; - }return function entries() { - return new Constructor(this, kind); - }; + case KEYS: return function keys() { return new Constructor(this, kind); }; + case VALUES: return function values() { return new Constructor(this, kind); }; + } return function entries() { return new Constructor(this, kind); }; }; var TAG = NAME + ' Iterator'; var DEF_VALUES = DEFAULT == VALUES; @@ -129153,9 +137096,7 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE // fix Array#{values, @@iterator}.name in V8 / FF if (DEF_VALUES && $native && $native.name !== VALUES) { VALUES_BUG = true; - $default = function values() { - return $native.call(this); - }; + $default = function values() { return $native.call(this); }; } // Define iterator if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { @@ -129177,22 +137118,16 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE return methods; }; -},{"./_export":425,"./_hide":430,"./_iter-create":439,"./_iterators":443,"./_library":444,"./_object-gpo":456,"./_redefine":464,"./_set-to-string-tag":467,"./_wks":483}],441:[function(require,module,exports){ -'use strict'; - +},{"./_export":439,"./_hide":444,"./_iter-create":453,"./_iterators":457,"./_library":458,"./_object-gpo":470,"./_redefine":478,"./_set-to-string-tag":481,"./_wks":497}],455:[function(require,module,exports){ var ITERATOR = require('./_wks')('iterator'); var SAFE_CLOSING = false; try { var riter = [7][ITERATOR](); - riter['return'] = function () { - SAFE_CLOSING = true; - }; + riter['return'] = function () { SAFE_CLOSING = true; }; // eslint-disable-next-line no-throw-literal - Array.from(riter, function () { - throw 2; - }); -} catch (e) {/* empty */} + Array.from(riter, function () { throw 2; }); +} catch (e) { /* empty */ } module.exports = function (exec, skipClosing) { if (!skipClosing && !SAFE_CLOSING) return false; @@ -129200,39 +137135,25 @@ module.exports = function (exec, skipClosing) { try { var arr = [7]; var iter = arr[ITERATOR](); - iter.next = function () { - return { done: safe = true }; - }; - arr[ITERATOR] = function () { - return iter; - }; + iter.next = function () { return { done: safe = true }; }; + arr[ITERATOR] = function () { return iter; }; exec(arr); - } catch (e) {/* empty */} + } catch (e) { /* empty */ } return safe; }; -},{"./_wks":483}],442:[function(require,module,exports){ -"use strict"; - +},{"./_wks":497}],456:[function(require,module,exports){ module.exports = function (done, value) { return { value: value, done: !!done }; }; -},{}],443:[function(require,module,exports){ -"use strict"; - +},{}],457:[function(require,module,exports){ module.exports = {}; -},{}],444:[function(require,module,exports){ -"use strict"; - +},{}],458:[function(require,module,exports){ module.exports = true; -},{}],445:[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; }; - +},{}],459:[function(require,module,exports){ var META = require('./_uid')('meta'); var isObject = require('./_is-object'); var has = require('./_has'); @@ -129244,15 +137165,15 @@ var isExtensible = Object.isExtensible || function () { var FREEZE = !require('./_fails')(function () { return isExtensible(Object.preventExtensions({})); }); -var setMeta = function setMeta(it) { +var setMeta = function (it) { setDesc(it, META, { value: { - i: 'O' + ++id, // object ID - w: {} // weak collections IDs - } }); + i: 'O' + ++id, // object ID + w: {} // weak collections IDs + } }); }; -var fastKey = function fastKey(it, create) { +var fastKey = function (it, create) { // return primitive with prefix - if (!isObject(it)) return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return 'F'; @@ -129260,10 +137181,10 @@ var fastKey = function fastKey(it, create) { if (!create) return 'E'; // add missing metadata setMeta(it); - // return object ID - }return it[META].i; + // return object ID + } return it[META].i; }; -var getWeak = function getWeak(it, create) { +var getWeak = function (it, create) { if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return true; @@ -129271,11 +137192,11 @@ var getWeak = function getWeak(it, create) { if (!create) return false; // add missing metadata setMeta(it); - // return hash weak collections IDs - }return it[META].w; + // return hash weak collections IDs + } return it[META].w; }; // add metadata on freeze-family methods calling -var onFreeze = function onFreeze(it) { +var onFreeze = function (it) { if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); return it; }; @@ -129287,9 +137208,7 @@ var meta = module.exports = { onFreeze: onFreeze }; -},{"./_fails":426,"./_has":429,"./_is-object":437,"./_object-dp":450,"./_uid":479}],446:[function(require,module,exports){ -'use strict'; - +},{"./_fails":440,"./_has":443,"./_is-object":451,"./_object-dp":464,"./_uid":493}],460:[function(require,module,exports){ var global = require('./_global'); var macrotask = require('./_task').set; var Observer = global.MutationObserver || global.WebKitMutationObserver; @@ -129300,7 +137219,7 @@ var isNode = require('./_cof')(process) == 'process'; module.exports = function () { var head, last, notify; - var flush = function flush() { + var flush = function () { var parent, fn; if (isNode && (parent = process.domain)) parent.exit(); while (head) { @@ -129309,41 +137228,42 @@ module.exports = function () { try { fn(); } catch (e) { - if (head) notify();else last = undefined; + if (head) notify(); + else last = undefined; throw e; } - }last = undefined; + } last = undefined; if (parent) parent.enter(); }; // Node.js if (isNode) { - notify = function notify() { + notify = function () { process.nextTick(flush); }; - // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 + // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 } else if (Observer && !(global.navigator && global.navigator.standalone)) { var toggle = true; var node = document.createTextNode(''); new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new - notify = function notify() { + notify = function () { node.data = toggle = !toggle; }; - // environments with maybe non-completely correct, but existent Promise + // environments with maybe non-completely correct, but existent Promise } else if (Promise && Promise.resolve) { // Promise.resolve without an argument throws an error in LG WebOS 2 var promise = Promise.resolve(undefined); - notify = function notify() { + notify = function () { promise.then(flush); }; - // for other environments - macrotask based on: - // - setImmediate - // - MessageChannel - // - window.postMessag - // - onreadystatechange - // - setTimeout + // for other environments - macrotask based on: + // - setImmediate + // - MessageChannel + // - window.postMessag + // - onreadystatechange + // - setTimeout } else { - notify = function notify() { + notify = function () { // strange IE + webpack dev server bug - use .call(global) macrotask.call(global, flush); }; @@ -129355,14 +137275,13 @@ module.exports = function () { if (!head) { head = task; notify(); - }last = task; + } last = task; }; }; -},{"./_cof":417,"./_global":428,"./_task":472}],447:[function(require,module,exports){ +},{"./_cof":431,"./_global":442,"./_task":486}],461:[function(require,module,exports){ 'use strict'; // 25.4.1.5 NewPromiseCapability(C) - var aFunction = require('./_a-function'); function PromiseCapability(C) { @@ -129380,10 +137299,9 @@ module.exports.f = function (C) { return new PromiseCapability(C); }; -},{"./_a-function":411}],448:[function(require,module,exports){ +},{"./_a-function":425}],462:[function(require,module,exports){ 'use strict'; // 19.1.2.1 Object.assign(target, source, ...) - var getKeys = require('./_object-keys'); var gOPS = require('./_object-gops'); var pIE = require('./_object-pie'); @@ -129399,12 +137317,9 @@ module.exports = !$assign || require('./_fails')(function () { var S = Symbol(); var K = 'abcdefghijklmnopqrst'; A[S] = 7; - K.split('').forEach(function (k) { - B[k] = k; - }); + K.split('').forEach(function (k) { B[k] = k; }); return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; -}) ? function assign(target, source) { - // eslint-disable-line no-unused-vars +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars var T = toObject(target); var aLen = arguments.length; var index = 1; @@ -129416,25 +137331,21 @@ module.exports = !$assign || require('./_fails')(function () { var length = keys.length; var j = 0; var key; - while (length > j) { - if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; - } - }return T; + while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; + } return T; } : $assign; -},{"./_fails":426,"./_iobject":434,"./_object-gops":455,"./_object-keys":458,"./_object-pie":459,"./_to-object":477}],449:[function(require,module,exports){ -'use strict'; - +},{"./_fails":440,"./_iobject":448,"./_object-gops":469,"./_object-keys":472,"./_object-pie":473,"./_to-object":491}],463:[function(require,module,exports){ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = require('./_an-object'); var dPs = require('./_object-dps'); var enumBugKeys = require('./_enum-bug-keys'); var IE_PROTO = require('./_shared-key')('IE_PROTO'); -var Empty = function Empty() {/* empty */}; +var Empty = function () { /* empty */ }; var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype -var _createDict = function createDict() { +var createDict = function () { // Thrash, waste and sodomy: IE GC bug var iframe = require('./_dom-create')('iframe'); var i = enumBugKeys.length; @@ -129450,10 +137361,9 @@ var _createDict = function createDict() { iframeDocument.open(); iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); iframeDocument.close(); - _createDict = iframeDocument.F; - while (i--) { - delete _createDict[PROTOTYPE][enumBugKeys[i]]; - }return _createDict(); + createDict = iframeDocument.F; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; + return createDict(); }; module.exports = Object.create || function create(O, Properties) { @@ -129464,13 +137374,11 @@ module.exports = Object.create || function create(O, Properties) { Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; - } else result = _createDict(); + } else result = createDict(); return Properties === undefined ? result : dPs(result, Properties); }; -},{"./_an-object":414,"./_dom-create":422,"./_enum-bug-keys":423,"./_html":431,"./_object-dps":451,"./_shared-key":468}],450:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":428,"./_dom-create":436,"./_enum-bug-keys":437,"./_html":445,"./_object-dps":465,"./_shared-key":482}],464:[function(require,module,exports){ var anObject = require('./_an-object'); var IE8_DOM_DEFINE = require('./_ie8-dom-define'); var toPrimitive = require('./_to-primitive'); @@ -129482,15 +137390,13 @@ exports.f = require('./_descriptors') ? Object.defineProperty : function defineP anObject(Attributes); if (IE8_DOM_DEFINE) try { return dP(O, P, Attributes); - } catch (e) {/* empty */} + } catch (e) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; -},{"./_an-object":414,"./_descriptors":421,"./_ie8-dom-define":432,"./_to-primitive":478}],451:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":428,"./_descriptors":435,"./_ie8-dom-define":446,"./_to-primitive":492}],465:[function(require,module,exports){ var dP = require('./_object-dp'); var anObject = require('./_an-object'); var getKeys = require('./_object-keys'); @@ -129501,14 +137407,11 @@ module.exports = require('./_descriptors') ? Object.defineProperties : function var length = keys.length; var i = 0; var P; - while (length > i) { - dP.f(O, P = keys[i++], Properties[P]); - }return O; + while (length > i) dP.f(O, P = keys[i++], Properties[P]); + return O; }; -},{"./_an-object":414,"./_descriptors":421,"./_object-dp":450,"./_object-keys":458}],452:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":428,"./_descriptors":435,"./_object-dp":464,"./_object-keys":472}],466:[function(require,module,exports){ var pIE = require('./_object-pie'); var createDesc = require('./_property-desc'); var toIObject = require('./_to-iobject'); @@ -129522,23 +137425,20 @@ exports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor P = toPrimitive(P, true); if (IE8_DOM_DEFINE) try { return gOPD(O, P); - } catch (e) {/* empty */} + } catch (e) { /* empty */ } if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); }; -},{"./_descriptors":421,"./_has":429,"./_ie8-dom-define":432,"./_object-pie":459,"./_property-desc":462,"./_to-iobject":475,"./_to-primitive":478}],453:[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; }; - +},{"./_descriptors":435,"./_has":443,"./_ie8-dom-define":446,"./_object-pie":473,"./_property-desc":476,"./_to-iobject":489,"./_to-primitive":492}],467:[function(require,module,exports){ // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window var toIObject = require('./_to-iobject'); var gOPN = require('./_object-gopn').f; var toString = {}.toString; -var windowNames = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames + ? Object.getOwnPropertyNames(window) : []; -var getWindowNames = function getWindowNames(it) { +var getWindowNames = function (it) { try { return gOPN(it); } catch (e) { @@ -129550,9 +137450,7 @@ module.exports.f = function getOwnPropertyNames(it) { return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); }; -},{"./_object-gopn":454,"./_to-iobject":475}],454:[function(require,module,exports){ -'use strict'; - +},{"./_object-gopn":468,"./_to-iobject":489}],468:[function(require,module,exports){ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) var $keys = require('./_object-keys-internal'); var hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype'); @@ -129561,14 +137459,10 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return $keys(O, hiddenKeys); }; -},{"./_enum-bug-keys":423,"./_object-keys-internal":457}],455:[function(require,module,exports){ -"use strict"; - +},{"./_enum-bug-keys":437,"./_object-keys-internal":471}],469:[function(require,module,exports){ exports.f = Object.getOwnPropertySymbols; -},{}],456:[function(require,module,exports){ -'use strict'; - +},{}],470:[function(require,module,exports){ // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) var has = require('./_has'); var toObject = require('./_to-object'); @@ -129580,12 +137474,10 @@ module.exports = Object.getPrototypeOf || function (O) { if (has(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; - }return O instanceof Object ? ObjectProto : null; + } return O instanceof Object ? ObjectProto : null; }; -},{"./_has":429,"./_shared-key":468,"./_to-object":477}],457:[function(require,module,exports){ -'use strict'; - +},{"./_has":443,"./_shared-key":482,"./_to-object":491}],471:[function(require,module,exports){ var has = require('./_has'); var toIObject = require('./_to-iobject'); var arrayIndexOf = require('./_array-includes')(false); @@ -129596,19 +137488,15 @@ module.exports = function (object, names) { var i = 0; var result = []; var key; - for (key in O) { - if (key != IE_PROTO) has(O, key) && result.push(key); - } // Don't enum bug & hidden keys - while (names.length > i) { - if (has(O, key = names[i++])) { - ~arrayIndexOf(result, key) || result.push(key); - } - }return result; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; }; -},{"./_array-includes":415,"./_has":429,"./_shared-key":468,"./_to-iobject":475}],458:[function(require,module,exports){ -'use strict'; - +},{"./_array-includes":429,"./_has":443,"./_shared-key":482,"./_to-iobject":489}],472:[function(require,module,exports){ // 19.1.2.14 / 15.2.3.14 Object.keys(O) var $keys = require('./_object-keys-internal'); var enumBugKeys = require('./_enum-bug-keys'); @@ -129617,14 +137505,10 @@ module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); }; -},{"./_enum-bug-keys":423,"./_object-keys-internal":457}],459:[function(require,module,exports){ -"use strict"; - +},{"./_enum-bug-keys":437,"./_object-keys-internal":471}],473:[function(require,module,exports){ exports.f = {}.propertyIsEnumerable; -},{}],460:[function(require,module,exports){ -"use strict"; - +},{}],474:[function(require,module,exports){ module.exports = function (exec) { try { return { e: false, v: exec() }; @@ -129633,9 +137517,7 @@ module.exports = function (exec) { } }; -},{}],461:[function(require,module,exports){ -'use strict'; - +},{}],475:[function(require,module,exports){ var anObject = require('./_an-object'); var isObject = require('./_is-object'); var newPromiseCapability = require('./_new-promise-capability'); @@ -129649,9 +137531,7 @@ module.exports = function (C, x) { return promiseCapability.promise; }; -},{"./_an-object":414,"./_is-object":437,"./_new-promise-capability":447}],462:[function(require,module,exports){ -"use strict"; - +},{"./_an-object":428,"./_is-object":451,"./_new-promise-capability":461}],476:[function(require,module,exports){ module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), @@ -129661,54 +137541,47 @@ module.exports = function (bitmap, value) { }; }; -},{}],463:[function(require,module,exports){ -'use strict'; - +},{}],477:[function(require,module,exports){ var hide = require('./_hide'); module.exports = function (target, src, safe) { for (var key in src) { - if (safe && target[key]) target[key] = src[key];else hide(target, key, src[key]); - }return target; + if (safe && target[key]) target[key] = src[key]; + else hide(target, key, src[key]); + } return target; }; -},{"./_hide":430}],464:[function(require,module,exports){ -'use strict'; - +},{"./_hide":444}],478:[function(require,module,exports){ module.exports = require('./_hide'); -},{"./_hide":430}],465:[function(require,module,exports){ -'use strict'; - +},{"./_hide":444}],479:[function(require,module,exports){ // Works with __proto__ only. Old v8 can't work with null proto objects. /* eslint-disable no-proto */ var isObject = require('./_is-object'); var anObject = require('./_an-object'); -var check = function check(O, proto) { +var check = function (O, proto) { anObject(O); if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); }; module.exports = { set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line - function (test, buggy, set) { - try { - set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2); - set(test, []); - buggy = !(test instanceof Array); - } catch (e) { - buggy = true; - } - return function setPrototypeOf(O, proto) { - check(O, proto); - if (buggy) O.__proto__ = proto;else set(O, proto); - return O; - }; - }({}, false) : undefined), + function (test, buggy, set) { + try { + set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2); + set(test, []); + buggy = !(test instanceof Array); + } catch (e) { buggy = true; } + return function setPrototypeOf(O, proto) { + check(O, proto); + if (buggy) O.__proto__ = proto; + else set(O, proto); + return O; + }; + }({}, false) : undefined), check: check }; -},{"./_an-object":414,"./_ctx":419,"./_is-object":437,"./_object-gopd":452}],466:[function(require,module,exports){ +},{"./_an-object":428,"./_ctx":433,"./_is-object":451,"./_object-gopd":466}],480:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var core = require('./_core'); var dP = require('./_object-dp'); @@ -129719,15 +137592,11 @@ module.exports = function (KEY) { var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { configurable: true, - get: function get() { - return this; - } + get: function () { return this; } }); }; -},{"./_core":418,"./_descriptors":421,"./_global":428,"./_object-dp":450,"./_wks":483}],467:[function(require,module,exports){ -'use strict'; - +},{"./_core":432,"./_descriptors":435,"./_global":442,"./_object-dp":464,"./_wks":497}],481:[function(require,module,exports){ var def = require('./_object-dp').f; var has = require('./_has'); var TAG = require('./_wks')('toStringTag'); @@ -129736,18 +137605,14 @@ module.exports = function (it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); }; -},{"./_has":429,"./_object-dp":450,"./_wks":483}],468:[function(require,module,exports){ -'use strict'; - +},{"./_has":443,"./_object-dp":464,"./_wks":497}],482:[function(require,module,exports){ var shared = require('./_shared')('keys'); var uid = require('./_uid'); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; -},{"./_shared":469,"./_uid":479}],469:[function(require,module,exports){ -'use strict'; - +},{"./_shared":483,"./_uid":493}],483:[function(require,module,exports){ var core = require('./_core'); var global = require('./_global'); var SHARED = '__core-js_shared__'; @@ -129761,9 +137626,7 @@ var store = global[SHARED] || (global[SHARED] = {}); copyright: '© 2018 Denis Pushkarev (zloirock.ru)' }); -},{"./_core":418,"./_global":428,"./_library":444}],470:[function(require,module,exports){ -'use strict'; - +},{"./_core":432,"./_global":442,"./_library":458}],484:[function(require,module,exports){ // 7.3.20 SpeciesConstructor(O, defaultConstructor) var anObject = require('./_an-object'); var aFunction = require('./_a-function'); @@ -129774,9 +137637,7 @@ module.exports = function (O, D) { return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); }; -},{"./_a-function":411,"./_an-object":414,"./_wks":483}],471:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":425,"./_an-object":428,"./_wks":497}],485:[function(require,module,exports){ var toInteger = require('./_to-integer'); var defined = require('./_defined'); // true -> String#at @@ -129789,13 +137650,13 @@ module.exports = function (TO_STRING) { var a, b; if (i < 0 || i >= l) return TO_STRING ? '' : undefined; a = s.charCodeAt(i); - return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff + ? TO_STRING ? s.charAt(i) : a + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; -},{"./_defined":420,"./_to-integer":474}],472:[function(require,module,exports){ -'use strict'; - +},{"./_defined":434,"./_to-integer":488}],486:[function(require,module,exports){ var ctx = require('./_ctx'); var invoke = require('./_invoke'); var html = require('./_html'); @@ -129810,7 +137671,7 @@ var counter = 0; var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; var defer, channel, port; -var run = function run() { +var run = function () { var id = +this; // eslint-disable-next-line no-prototype-builtins if (queue.hasOwnProperty(id)) { @@ -129819,7 +137680,7 @@ var run = function run() { fn(); } }; -var listener = function listener(event) { +var listener = function (event) { run.call(event.data); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: @@ -129827,9 +137688,8 @@ if (!setTask || !clearTask) { setTask = function setImmediate(fn) { var args = []; var i = 1; - while (arguments.length > i) { - args.push(arguments[i++]); - }queue[++counter] = function () { + while (arguments.length > i) args.push(arguments[i++]); + queue[++counter] = function () { // eslint-disable-next-line no-new-func invoke(typeof fn == 'function' ? fn : Function(fn), args); }; @@ -129841,38 +137701,38 @@ if (!setTask || !clearTask) { }; // Node.js 0.8- if (require('./_cof')(process) == 'process') { - defer = function defer(id) { + defer = function (id) { process.nextTick(ctx(run, id, 1)); }; - // Sphere (JS game engine) Dispatch API + // Sphere (JS game engine) Dispatch API } else if (Dispatch && Dispatch.now) { - defer = function defer(id) { + defer = function (id) { Dispatch.now(ctx(run, id, 1)); }; - // Browsers with MessageChannel, includes WebWorkers + // Browsers with MessageChannel, includes WebWorkers } else if (MessageChannel) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = listener; defer = ctx(port.postMessage, port, 1); - // Browsers with postMessage, skip WebWorkers - // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' + // Browsers with postMessage, skip WebWorkers + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { - defer = function defer(id) { + defer = function (id) { global.postMessage(id + '', '*'); }; global.addEventListener('message', listener, false); - // IE8- + // IE8- } else if (ONREADYSTATECHANGE in cel('script')) { - defer = function defer(id) { + defer = function (id) { html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { html.removeChild(this); run.call(id); }; }; - // Rest old browsers + // Rest old browsers } else { - defer = function defer(id) { + defer = function (id) { setTimeout(ctx(run, id, 1), 0); }; } @@ -129882,9 +137742,7 @@ module.exports = { clear: clearTask }; -},{"./_cof":417,"./_ctx":419,"./_dom-create":422,"./_global":428,"./_html":431,"./_invoke":433}],473:[function(require,module,exports){ -'use strict'; - +},{"./_cof":431,"./_ctx":433,"./_dom-create":436,"./_global":442,"./_html":445,"./_invoke":447}],487:[function(require,module,exports){ var toInteger = require('./_to-integer'); var max = Math.max; var min = Math.min; @@ -129893,9 +137751,7 @@ module.exports = function (index, length) { return index < 0 ? max(index + length, 0) : min(index, length); }; -},{"./_to-integer":474}],474:[function(require,module,exports){ -"use strict"; - +},{"./_to-integer":488}],488:[function(require,module,exports){ // 7.1.4 ToInteger var ceil = Math.ceil; var floor = Math.floor; @@ -129903,9 +137759,7 @@ module.exports = function (it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; -},{}],475:[function(require,module,exports){ -'use strict'; - +},{}],489:[function(require,module,exports){ // to indexed object, toObject with fallback for non-array-like ES3 strings var IObject = require('./_iobject'); var defined = require('./_defined'); @@ -129913,9 +137767,7 @@ module.exports = function (it) { return IObject(defined(it)); }; -},{"./_defined":420,"./_iobject":434}],476:[function(require,module,exports){ -'use strict'; - +},{"./_defined":434,"./_iobject":448}],490:[function(require,module,exports){ // 7.1.15 ToLength var toInteger = require('./_to-integer'); var min = Math.min; @@ -129923,18 +137775,14 @@ module.exports = function (it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; -},{"./_to-integer":474}],477:[function(require,module,exports){ -'use strict'; - +},{"./_to-integer":488}],491:[function(require,module,exports){ // 7.1.13 ToObject(argument) var defined = require('./_defined'); module.exports = function (it) { return Object(defined(it)); }; -},{"./_defined":420}],478:[function(require,module,exports){ -'use strict'; - +},{"./_defined":434}],492:[function(require,module,exports){ // 7.1.1 ToPrimitive(input [, PreferredType]) var isObject = require('./_is-object'); // instead of the ES6 spec version, we didn't implement @@toPrimitive case @@ -129948,26 +137796,20 @@ module.exports = function (it, S) { throw TypeError("Can't convert object to primitive value"); }; -},{"./_is-object":437}],479:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":451}],493:[function(require,module,exports){ var id = 0; var px = Math.random(); module.exports = function (key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; -},{}],480:[function(require,module,exports){ -'use strict'; - +},{}],494:[function(require,module,exports){ var global = require('./_global'); var navigator = global.navigator; module.exports = navigator && navigator.userAgent || ''; -},{"./_global":428}],481:[function(require,module,exports){ -'use strict'; - +},{"./_global":442}],495:[function(require,module,exports){ var global = require('./_global'); var core = require('./_core'); var LIBRARY = require('./_library'); @@ -129978,38 +137820,34 @@ module.exports = function (name) { if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); }; -},{"./_core":418,"./_global":428,"./_library":444,"./_object-dp":450,"./_wks-ext":482}],482:[function(require,module,exports){ -'use strict'; - +},{"./_core":432,"./_global":442,"./_library":458,"./_object-dp":464,"./_wks-ext":496}],496:[function(require,module,exports){ exports.f = require('./_wks'); -},{"./_wks":483}],483:[function(require,module,exports){ -'use strict'; - +},{"./_wks":497}],497:[function(require,module,exports){ var store = require('./_shared')('wks'); var uid = require('./_uid'); -var _Symbol = require('./_global').Symbol; -var USE_SYMBOL = typeof _Symbol == 'function'; +var Symbol = require('./_global').Symbol; +var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { - return store[name] || (store[name] = USE_SYMBOL && _Symbol[name] || (USE_SYMBOL ? _Symbol : uid)('Symbol.' + name)); + return store[name] || (store[name] = + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; -},{"./_global":428,"./_shared":469,"./_uid":479}],484:[function(require,module,exports){ -'use strict'; - +},{"./_global":442,"./_shared":483,"./_uid":493}],498:[function(require,module,exports){ var classof = require('./_classof'); var ITERATOR = require('./_wks')('iterator'); var Iterators = require('./_iterators'); module.exports = require('./_core').getIteratorMethod = function (it) { - if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; + if (it != undefined) return it[ITERATOR] + || it['@@iterator'] + || Iterators[classof(it)]; }; -},{"./_classof":416,"./_core":418,"./_iterators":443,"./_wks":483}],485:[function(require,module,exports){ +},{"./_classof":430,"./_core":432,"./_iterators":457,"./_wks":497}],499:[function(require,module,exports){ 'use strict'; - var addToUnscopables = require('./_add-to-unscopables'); var step = require('./_iter-step'); var Iterators = require('./_iterators'); @@ -130021,9 +137859,9 @@ var toIObject = require('./_to-iobject'); // 22.1.3.30 Array.prototype[@@iterator]() module.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) { this._t = toIObject(iterated); // target - this._i = 0; // next index - this._k = kind; // kind - // 22.1.5.2.1 %ArrayIteratorPrototype%.next() + this._i = 0; // next index + this._k = kind; // kind +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() }, function () { var O = this._t; var kind = this._k; @@ -130044,34 +137882,26 @@ addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); -},{"./_add-to-unscopables":412,"./_iter-define":440,"./_iter-step":442,"./_iterators":443,"./_to-iobject":475}],486:[function(require,module,exports){ -'use strict'; - +},{"./_add-to-unscopables":426,"./_iter-define":454,"./_iter-step":456,"./_iterators":457,"./_to-iobject":489}],500:[function(require,module,exports){ // 19.1.3.1 Object.assign(target, source) var $export = require('./_export'); $export($export.S + $export.F, 'Object', { assign: require('./_object-assign') }); -},{"./_export":425,"./_object-assign":448}],487:[function(require,module,exports){ -'use strict'; - +},{"./_export":439,"./_object-assign":462}],501:[function(require,module,exports){ var $export = require('./_export'); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) $export($export.S, 'Object', { create: require('./_object-create') }); -},{"./_export":425,"./_object-create":449}],488:[function(require,module,exports){ -'use strict'; - +},{"./_export":439,"./_object-create":463}],502:[function(require,module,exports){ // 19.1.3.19 Object.setPrototypeOf(O, proto) var $export = require('./_export'); $export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set }); -},{"./_export":425,"./_set-proto":465}],489:[function(require,module,exports){ -"use strict"; - -},{}],490:[function(require,module,exports){ +},{"./_export":439,"./_set-proto":479}],503:[function(require,module,exports){ +arguments[4][383][0].apply(exports,arguments) +},{"dup":383}],504:[function(require,module,exports){ 'use strict'; - var LIBRARY = require('./_library'); var global = require('./_global'); var ctx = require('./_ctx'); @@ -130095,7 +137925,7 @@ var versions = process && process.versions; var v8 = versions && versions.v8 || ''; var $Promise = global[PROMISE]; var isNode = classof(process) == 'process'; -var empty = function empty() {/* empty */}; +var empty = function () { /* empty */ }; var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; @@ -130107,20 +137937,22 @@ var USE_NATIVE = !!function () { exec(empty, empty); }; // unhandled rejections tracking support, NodeJS Promise without it fails @@species test - return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise - // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables - // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 - // we can't detect it synchronously, so just check versions - && v8.indexOf('6.6') !== 0 && userAgent.indexOf('Chrome/66') === -1; - } catch (e) {/* empty */} + return (isNode || typeof PromiseRejectionEvent == 'function') + && promise.then(empty) instanceof FakePromise + // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 + // we can't detect it synchronously, so just check versions + && v8.indexOf('6.6') !== 0 + && userAgent.indexOf('Chrome/66') === -1; + } catch (e) { /* empty */ } }(); // helpers -var isThenable = function isThenable(it) { +var isThenable = function (it) { var then; return isObject(it) && typeof (then = it.then) == 'function' ? then : false; }; -var notify = function notify(promise, isReject) { +var notify = function (promise, isReject) { if (promise._n) return; promise._n = true; var chain = promise._c; @@ -130128,7 +137960,7 @@ var notify = function notify(promise, isReject) { var value = promise._v; var ok = promise._s == 1; var i = 0; - var run = function run(reaction) { + var run = function (reaction) { var handler = ok ? reaction.ok : reaction.fail; var resolve = reaction.resolve; var reject = reaction.reject; @@ -130140,7 +137972,8 @@ var notify = function notify(promise, isReject) { if (promise._h == 2) onHandleUnhandled(promise); promise._h = 1; } - if (handler === true) result = value;else { + if (handler === true) result = value; + else { if (domain) domain.enter(); result = handler(value); // may throw if (domain) { @@ -130159,15 +137992,13 @@ var notify = function notify(promise, isReject) { reject(e); } }; - while (chain.length > i) { - run(chain[i++]); - } // variable length - can't use forEach + while (chain.length > i) run(chain[i++]); // variable length - can't use forEach promise._c = []; promise._n = false; if (isReject && !promise._h) onUnhandled(promise); }); }; -var onUnhandled = function onUnhandled(promise) { +var onUnhandled = function (promise) { task.call(global, function () { var value = promise._v; var unhandled = isUnhandled(promise); @@ -130184,14 +138015,14 @@ var onUnhandled = function onUnhandled(promise) { }); // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should promise._h = isNode || isUnhandled(promise) ? 2 : 1; - }promise._a = undefined; + } promise._a = undefined; if (unhandled && result.e) throw result.v; }); }; -var isUnhandled = function isUnhandled(promise) { +var isUnhandled = function (promise) { return promise._h !== 1 && (promise._a || promise._c).length === 0; }; -var onHandleUnhandled = function onHandleUnhandled(promise) { +var onHandleUnhandled = function (promise) { task.call(global, function () { var handler; if (isNode) { @@ -130201,7 +138032,7 @@ var onHandleUnhandled = function onHandleUnhandled(promise) { } }); }; -var $reject = function $reject(value) { +var $reject = function (value) { var promise = this; if (promise._d) return; promise._d = true; @@ -130211,7 +138042,7 @@ var $reject = function $reject(value) { if (!promise._a) promise._a = promise._c.slice(); notify(promise, true); }; -var $resolve = function $resolve(value) { +var $resolve = function (value) { var promise = this; var then; if (promise._d) return; @@ -130253,13 +138084,13 @@ if (!USE_NATIVE) { }; // eslint-disable-next-line no-unused-vars Internal = function Promise(executor) { - this._c = []; // <- awaiting reactions - this._a = undefined; // <- checked in isUnhandled reactions - this._s = 0; // <- state - this._d = false; // <- done - this._v = undefined; // <- value - this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled - this._n = false; // <- notify + this._c = []; // <- awaiting reactions + this._a = undefined; // <- checked in isUnhandled reactions + this._s = 0; // <- state + this._d = false; // <- done + this._v = undefined; // <- value + this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled + this._n = false; // <- notify }; Internal.prototype = require('./_redefine-all')($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) @@ -130274,18 +138105,20 @@ if (!USE_NATIVE) { return reaction.promise; }, // 25.4.5.1 Promise.prototype.catch(onRejected) - 'catch': function _catch(onRejected) { + 'catch': function (onRejected) { return this.then(undefined, onRejected); } }); - OwnPromiseCapability = function OwnPromiseCapability() { + OwnPromiseCapability = function () { var promise = new Internal(); this.promise = promise; this.resolve = ctx($resolve, promise, 1); this.reject = ctx($reject, promise, 1); }; - newPromiseCapabilityModule.f = newPromiseCapability = function newPromiseCapability(C) { - return C === $Promise || C === Wrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); + newPromiseCapabilityModule.f = newPromiseCapability = function (C) { + return C === $Promise || C === Wrapper + ? new OwnPromiseCapability(C) + : newGenericPromiseCapability(C); }; } @@ -130355,16 +138188,15 @@ $export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(functi } }); -},{"./_a-function":411,"./_an-instance":413,"./_classof":416,"./_core":418,"./_ctx":419,"./_export":425,"./_for-of":427,"./_global":428,"./_is-object":437,"./_iter-detect":441,"./_library":444,"./_microtask":446,"./_new-promise-capability":447,"./_perform":460,"./_promise-resolve":461,"./_redefine-all":463,"./_set-species":466,"./_set-to-string-tag":467,"./_species-constructor":470,"./_task":472,"./_user-agent":480,"./_wks":483}],491:[function(require,module,exports){ +},{"./_a-function":425,"./_an-instance":427,"./_classof":430,"./_core":432,"./_ctx":433,"./_export":439,"./_for-of":441,"./_global":442,"./_is-object":451,"./_iter-detect":455,"./_library":458,"./_microtask":460,"./_new-promise-capability":461,"./_perform":474,"./_promise-resolve":475,"./_redefine-all":477,"./_set-species":480,"./_set-to-string-tag":481,"./_species-constructor":484,"./_task":486,"./_user-agent":494,"./_wks":497}],505:[function(require,module,exports){ 'use strict'; - var $at = require('./_string-at')(true); // 21.1.3.27 String.prototype[@@iterator]() require('./_iter-define')(String, 'String', function (iterated) { this._t = String(iterated); // target - this._i = 0; // next index - // 21.1.5.2.1 %StringIteratorPrototype%.next() + this._i = 0; // next index +// 21.1.5.2.1 %StringIteratorPrototype%.next() }, function () { var O = this._t; var index = this._i; @@ -130375,12 +138207,9 @@ require('./_iter-define')(String, 'String', function (iterated) { return { value: point, done: false }; }); -},{"./_iter-define":440,"./_string-at":471}],492:[function(require,module,exports){ +},{"./_iter-define":454,"./_string-at":485}],506:[function(require,module,exports){ 'use strict'; // ECMAScript 6 symbols shim - -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 global = require('./_global'); var has = require('./_has'); var DESCRIPTORS = require('./_descriptors'); @@ -130428,9 +138257,7 @@ var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 var setSymbolDesc = DESCRIPTORS && $fails(function () { return _create(dP({}, 'a', { - get: function get() { - return dP(this, 'a', { value: 7 }).a; - } + get: function () { return dP(this, 'a', { value: 7 }).a; } })).a != 7; }) ? function (it, key, D) { var protoDesc = gOPD(ObjectProto, key); @@ -130439,14 +138266,14 @@ var setSymbolDesc = DESCRIPTORS && $fails(function () { if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); } : dP; -var wrap = function wrap(tag) { +var wrap = function (tag) { var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); sym._k = tag; return sym; }; -var isSymbol = USE_NATIVE && _typeof($Symbol.iterator) == 'symbol' ? function (it) { - return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) == 'symbol'; +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { + return typeof it == 'symbol'; } : function (it) { return it instanceof $Symbol; }; @@ -130463,8 +138290,8 @@ var $defineProperty = function defineProperty(it, key, D) { } else { if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; D = _create(D, { enumerable: createDesc(0, false) }); - }return setSymbolDesc(it, key, D); - }return dP(it, key, D); + } return setSymbolDesc(it, key, D); + } return dP(it, key, D); }; var $defineProperties = function defineProperties(it, P) { anObject(it); @@ -130472,9 +138299,8 @@ var $defineProperties = function defineProperties(it, P) { var i = 0; var l = keys.length; var key; - while (l > i) { - $defineProperty(it, key = keys[i++], P[key]); - }return it; + while (l > i) $defineProperty(it, key = keys[i++], P[key]); + return it; }; var $create = function create(it, P) { return P === undefined ? _create(it) : $defineProperties(_create(it), P); @@ -130499,7 +138325,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames(it) { var key; while (names.length > i) { if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); - }return result; + } return result; }; var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { var IS_OP = it === ObjectProto; @@ -130509,15 +138335,15 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { var key; while (names.length > i) { if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); - }return result; + } return result; }; // 19.4.1.1 Symbol([description]) if (!USE_NATIVE) { - $Symbol = function _Symbol() { + $Symbol = function Symbol() { if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); var tag = uid(arguments.length > 0 ? arguments[0] : undefined); - var $set = function $set(value) { + var $set = function (value) { if (this === ObjectProto) $set.call(OPSymbols, value); if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDesc(this, tag, createDesc(1, value)); @@ -130546,30 +138372,27 @@ if (!USE_NATIVE) { $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); -for (var es6Symbols = -// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 -'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split(','), j = 0; es6Symbols.length > j;) { - wks(es6Symbols[j++]); -}for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) { - wksDefine(wellKnownSymbols[k++]); -}$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { +for (var es6Symbols = ( + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); + +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); + +$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { // 19.4.2.1 Symbol.for(key) - 'for': function _for(key) { - return has(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); + 'for': function (key) { + return has(SymbolRegistry, key += '') + ? SymbolRegistry[key] + : SymbolRegistry[key] = $Symbol(key); }, // 19.4.2.5 Symbol.keyFor(sym) keyFor: function keyFor(sym) { if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) { - if (SymbolRegistry[key] === sym) return key; - } + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; }, - useSetter: function useSetter() { - setter = true; - }, - useSimple: function useSimple() { - setter = false; - } + useSetter: function () { setter = true; }, + useSimple: function () { setter = false; } }); $export($export.S + $export.F * !USE_NATIVE, 'Object', { @@ -130599,11 +138422,10 @@ $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { var args = [it]; var i = 1; var replacer, $replacer; - while (arguments.length > i) { - args.push(arguments[i++]); - }$replacer = replacer = args[1]; + while (arguments.length > i) args.push(arguments[i++]); + $replacer = replacer = args[1]; if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined - if (!isArray(replacer)) replacer = function replacer(key, value) { + if (!isArray(replacer)) replacer = function (key, value) { if (typeof $replacer == 'function') value = $replacer.call(this, key, value); if (!isSymbol(value)) return value; }; @@ -130621,65 +138443,60 @@ setToStringTag(Math, 'Math', true); // 24.3.3 JSON[@@toStringTag] setToStringTag(global.JSON, 'JSON', true); -},{"./_an-object":414,"./_descriptors":421,"./_enum-keys":424,"./_export":425,"./_fails":426,"./_global":428,"./_has":429,"./_hide":430,"./_is-array":436,"./_is-object":437,"./_library":444,"./_meta":445,"./_object-create":449,"./_object-dp":450,"./_object-gopd":452,"./_object-gopn":454,"./_object-gopn-ext":453,"./_object-gops":455,"./_object-keys":458,"./_object-pie":459,"./_property-desc":462,"./_redefine":464,"./_set-to-string-tag":467,"./_shared":469,"./_to-iobject":475,"./_to-primitive":478,"./_uid":479,"./_wks":483,"./_wks-define":481,"./_wks-ext":482}],493:[function(require,module,exports){ +},{"./_an-object":428,"./_descriptors":435,"./_enum-keys":438,"./_export":439,"./_fails":440,"./_global":442,"./_has":443,"./_hide":444,"./_is-array":450,"./_is-object":451,"./_library":458,"./_meta":459,"./_object-create":463,"./_object-dp":464,"./_object-gopd":466,"./_object-gopn":468,"./_object-gopn-ext":467,"./_object-gops":469,"./_object-keys":472,"./_object-pie":473,"./_property-desc":476,"./_redefine":478,"./_set-to-string-tag":481,"./_shared":483,"./_to-iobject":489,"./_to-primitive":492,"./_uid":493,"./_wks":497,"./_wks-define":495,"./_wks-ext":496}],507:[function(require,module,exports){ // https://github.com/tc39/proposal-promise-finally 'use strict'; - var $export = require('./_export'); var core = require('./_core'); var global = require('./_global'); var speciesConstructor = require('./_species-constructor'); var promiseResolve = require('./_promise-resolve'); -$export($export.P + $export.R, 'Promise', { 'finally': function _finally(onFinally) { - var C = speciesConstructor(this, core.Promise || global.Promise); - var isFunction = typeof onFinally == 'function'; - return this.then(isFunction ? function (x) { - return promiseResolve(C, onFinally()).then(function () { - return x; - }); - } : onFinally, isFunction ? function (e) { - return promiseResolve(C, onFinally()).then(function () { - throw e; - }); - } : onFinally); - } }); +$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { + var C = speciesConstructor(this, core.Promise || global.Promise); + var isFunction = typeof onFinally == 'function'; + return this.then( + isFunction ? function (x) { + return promiseResolve(C, onFinally()).then(function () { return x; }); + } : onFinally, + isFunction ? function (e) { + return promiseResolve(C, onFinally()).then(function () { throw e; }); + } : onFinally + ); +} }); -},{"./_core":418,"./_export":425,"./_global":428,"./_promise-resolve":461,"./_species-constructor":470}],494:[function(require,module,exports){ +},{"./_core":432,"./_export":439,"./_global":442,"./_promise-resolve":475,"./_species-constructor":484}],508:[function(require,module,exports){ 'use strict'; // https://github.com/tc39/proposal-promise-try - var $export = require('./_export'); var newPromiseCapability = require('./_new-promise-capability'); var perform = require('./_perform'); -$export($export.S, 'Promise', { 'try': function _try(callbackfn) { - var promiseCapability = newPromiseCapability.f(this); - var result = perform(callbackfn); - (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); - return promiseCapability.promise; - } }); - -},{"./_export":425,"./_new-promise-capability":447,"./_perform":460}],495:[function(require,module,exports){ -'use strict'; +$export($export.S, 'Promise', { 'try': function (callbackfn) { + var promiseCapability = newPromiseCapability.f(this); + var result = perform(callbackfn); + (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); + return promiseCapability.promise; +} }); +},{"./_export":439,"./_new-promise-capability":461,"./_perform":474}],509:[function(require,module,exports){ require('./_wks-define')('asyncIterator'); -},{"./_wks-define":481}],496:[function(require,module,exports){ -'use strict'; - +},{"./_wks-define":495}],510:[function(require,module,exports){ require('./_wks-define')('observable'); -},{"./_wks-define":481}],497:[function(require,module,exports){ -'use strict'; - +},{"./_wks-define":495}],511:[function(require,module,exports){ require('./es6.array.iterator'); var global = require('./_global'); var hide = require('./_hide'); var Iterators = require('./_iterators'); var TO_STRING_TAG = require('./_wks')('toStringTag'); -var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 'TextTrackList,TouchList').split(','); +var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + + 'TextTrackList,TouchList').split(','); for (var i = 0; i < DOMIterables.length; i++) { var NAME = DOMIterables[i]; @@ -130689,20 +138506,16 @@ for (var i = 0; i < DOMIterables.length; i++) { Iterators[NAME] = Iterators.Array; } -},{"./_global":428,"./_hide":430,"./_iterators":443,"./_wks":483,"./es6.array.iterator":485}],498:[function(require,module,exports){ -arguments[4][411][0].apply(exports,arguments) -},{"dup":411}],499:[function(require,module,exports){ -'use strict'; - +},{"./_global":442,"./_hide":444,"./_iterators":457,"./_wks":497,"./es6.array.iterator":499}],512:[function(require,module,exports){ +arguments[4][425][0].apply(exports,arguments) +},{"dup":425}],513:[function(require,module,exports){ var cof = require('./_cof'); module.exports = function (it, msg) { if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg); return +it; }; -},{"./_cof":513}],500:[function(require,module,exports){ -'use strict'; - +},{"./_cof":527}],514:[function(require,module,exports){ // 22.1.3.31 Array.prototype[@@unscopables] var UNSCOPABLES = require('./_wks')('unscopables'); var ArrayProto = Array.prototype; @@ -130711,14 +138524,13 @@ module.exports = function (key) { ArrayProto[UNSCOPABLES][key] = true; }; -},{"./_hide":537,"./_wks":621}],501:[function(require,module,exports){ -arguments[4][413][0].apply(exports,arguments) -},{"dup":413}],502:[function(require,module,exports){ -arguments[4][414][0].apply(exports,arguments) -},{"./_is-object":546,"dup":414}],503:[function(require,module,exports){ +},{"./_hide":551,"./_wks":635}],515:[function(require,module,exports){ +arguments[4][427][0].apply(exports,arguments) +},{"dup":427}],516:[function(require,module,exports){ +arguments[4][428][0].apply(exports,arguments) +},{"./_is-object":560,"dup":428}],517:[function(require,module,exports){ // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) 'use strict'; - var toObject = require('./_to-object'); var toAbsoluteIndex = require('./_to-absolute-index'); var toLength = require('./_to-length'); @@ -130737,16 +138549,16 @@ module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* to += count - 1; } while (count-- > 0) { - if (from in O) O[to] = O[from];else delete O[to]; + if (from in O) O[to] = O[from]; + else delete O[to]; to += inc; from += inc; - }return O; + } return O; }; -},{"./_to-absolute-index":606,"./_to-length":610,"./_to-object":611}],504:[function(require,module,exports){ +},{"./_to-absolute-index":620,"./_to-length":624,"./_to-object":625}],518:[function(require,module,exports){ // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) 'use strict'; - var toObject = require('./_to-object'); var toAbsoluteIndex = require('./_to-absolute-index'); var toLength = require('./_to-length'); @@ -130757,14 +138569,11 @@ module.exports = function fill(value /* , start = 0, end = @length */) { var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length); var end = aLen > 2 ? arguments[2] : undefined; var endPos = end === undefined ? length : toAbsoluteIndex(end, length); - while (endPos > index) { - O[index++] = value; - }return O; + while (endPos > index) O[index++] = value; + return O; }; -},{"./_to-absolute-index":606,"./_to-length":610,"./_to-object":611}],505:[function(require,module,exports){ -'use strict'; - +},{"./_to-absolute-index":620,"./_to-length":624,"./_to-object":625}],519:[function(require,module,exports){ var forOf = require('./_for-of'); module.exports = function (iter, ITERATOR) { @@ -130773,11 +138582,9 @@ module.exports = function (iter, ITERATOR) { return result; }; -},{"./_for-of":534}],506:[function(require,module,exports){ -arguments[4][415][0].apply(exports,arguments) -},{"./_to-absolute-index":606,"./_to-iobject":609,"./_to-length":610,"dup":415}],507:[function(require,module,exports){ -'use strict'; - +},{"./_for-of":548}],520:[function(require,module,exports){ +arguments[4][429][0].apply(exports,arguments) +},{"./_to-absolute-index":620,"./_to-iobject":623,"./_to-length":624,"dup":429}],521:[function(require,module,exports){ // 0 -> Array#forEach // 1 -> Array#map // 2 -> Array#filter @@ -130806,31 +138613,24 @@ module.exports = function (TYPE, $create) { var index = 0; var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; var val, res; - for (; length > index; index++) { - if (NO_HOLES || index in self) { - val = self[index]; - res = f(val, index, O); - if (TYPE) { - if (IS_MAP) result[index] = res; // map - else if (res) switch (TYPE) { - case 3: - return true; // some - case 5: - return val; // find - case 6: - return index; // findIndex - case 2: - result.push(val); // filter - } else if (IS_EVERY) return false; // every - } + for (;length > index; index++) if (NO_HOLES || index in self) { + val = self[index]; + res = f(val, index, O); + if (TYPE) { + if (IS_MAP) result[index] = res; // map + else if (res) switch (TYPE) { + case 3: return true; // some + case 5: return val; // find + case 6: return index; // findIndex + case 2: result.push(val); // filter + } else if (IS_EVERY) return false; // every } - }return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; + } + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; }; }; -},{"./_array-species-create":510,"./_ctx":520,"./_iobject":542,"./_to-length":610,"./_to-object":611}],508:[function(require,module,exports){ -'use strict'; - +},{"./_array-species-create":524,"./_ctx":534,"./_iobject":556,"./_to-length":624,"./_to-object":625}],522:[function(require,module,exports){ var aFunction = require('./_a-function'); var toObject = require('./_to-object'); var IObject = require('./_iobject'); @@ -130854,16 +138654,13 @@ module.exports = function (that, callbackfn, aLen, memo, isRight) { throw TypeError('Reduce of empty array with no initial value'); } } - for (; isRight ? index >= 0 : length > index; index += i) { - if (index in self) { - memo = callbackfn(memo, self[index], index, O); - } - }return memo; + for (;isRight ? index >= 0 : length > index; index += i) if (index in self) { + memo = callbackfn(memo, self[index], index, O); + } + return memo; }; -},{"./_a-function":498,"./_iobject":542,"./_to-length":610,"./_to-object":611}],509:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_iobject":556,"./_to-length":624,"./_to-object":625}],523:[function(require,module,exports){ var isObject = require('./_is-object'); var isArray = require('./_is-array'); var SPECIES = require('./_wks')('species'); @@ -130878,12 +138675,10 @@ module.exports = function (original) { C = C[SPECIES]; if (C === null) C = undefined; } - }return C === undefined ? Array : C; + } return C === undefined ? Array : C; }; -},{"./_is-array":544,"./_is-object":546,"./_wks":621}],510:[function(require,module,exports){ -'use strict'; - +},{"./_is-array":558,"./_is-object":560,"./_wks":635}],524:[function(require,module,exports){ // 9.4.2.3 ArraySpeciesCreate(originalArray, length) var speciesConstructor = require('./_array-species-constructor'); @@ -130891,28 +138686,26 @@ module.exports = function (original, length) { return new (speciesConstructor(original))(length); }; -},{"./_array-species-constructor":509}],511:[function(require,module,exports){ +},{"./_array-species-constructor":523}],525:[function(require,module,exports){ 'use strict'; - var aFunction = require('./_a-function'); var isObject = require('./_is-object'); var invoke = require('./_invoke'); var arraySlice = [].slice; var factories = {}; -var construct = function construct(F, len, args) { +var construct = function (F, len, args) { if (!(len in factories)) { - for (var n = [], i = 0; i < len; i++) { - n[i] = 'a[' + i + ']'; - } // eslint-disable-next-line no-new-func + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; + // eslint-disable-next-line no-new-func factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); - }return factories[len](F, args); + } return factories[len](F, args); }; module.exports = Function.bind || function bind(that /* , ...args */) { var fn = aFunction(this); var partArgs = arraySlice.call(arguments, 1); - var bound = function bound() /* args... */{ + var bound = function (/* args... */) { var args = partArgs.concat(arraySlice.call(arguments)); return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); }; @@ -130920,13 +138713,12 @@ module.exports = Function.bind || function bind(that /* , ...args */) { return bound; }; -},{"./_a-function":498,"./_invoke":541,"./_is-object":546}],512:[function(require,module,exports){ -arguments[4][416][0].apply(exports,arguments) -},{"./_cof":513,"./_wks":621,"dup":416}],513:[function(require,module,exports){ -arguments[4][417][0].apply(exports,arguments) -},{"dup":417}],514:[function(require,module,exports){ +},{"./_a-function":512,"./_invoke":555,"./_is-object":560}],526:[function(require,module,exports){ +arguments[4][430][0].apply(exports,arguments) +},{"./_cof":527,"./_wks":635,"dup":430}],527:[function(require,module,exports){ +arguments[4][431][0].apply(exports,arguments) +},{"dup":431}],528:[function(require,module,exports){ 'use strict'; - var dP = require('./_object-dp').f; var create = require('./_object-create'); var redefineAll = require('./_redefine-all'); @@ -130941,7 +138733,7 @@ var fastKey = require('./_meta').fastKey; var validate = require('./_validate-collection'); var SIZE = DESCRIPTORS ? '_s' : 'size'; -var getEntry = function getEntry(that, key) { +var getEntry = function (that, key) { // fast case var index = fastKey(key); var entry; @@ -130953,14 +138745,14 @@ var getEntry = function getEntry(that, key) { }; module.exports = { - getConstructor: function getConstructor(wrapper, NAME, IS_MAP, ADDER) { + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { anInstance(that, C, NAME, '_i'); - that._t = NAME; // collection type + that._t = NAME; // collection type that._i = create(null); // index - that._f = undefined; // first entry - that._l = undefined; // last entry - that[SIZE] = 0; // size + that._f = undefined; // first entry + that._l = undefined; // last entry + that[SIZE] = 0; // size if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); redefineAll(C.prototype, { @@ -130977,7 +138769,7 @@ module.exports = { }, // 23.1.3.3 Map.prototype.delete(key) // 23.2.3.4 Set.prototype.delete(value) - 'delete': function _delete(key) { + 'delete': function (key) { var that = validate(this, NAME); var entry = getEntry(that, key); if (entry) { @@ -130990,7 +138782,7 @@ module.exports = { if (that._f == entry) that._f = next; if (that._l == entry) that._l = prev; that[SIZE]--; - }return !!entry; + } return !!entry; }, // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) @@ -131001,9 +138793,7 @@ module.exports = { while (entry = entry ? entry.n : this._f) { f(entry.v, entry.k, this); // revert to the last existing entry - while (entry && entry.r) { - entry = entry.p; - } + while (entry && entry.r) entry = entry.p; } }, // 23.1.3.7 Map.prototype.has(key) @@ -131013,51 +138803,50 @@ module.exports = { } }); if (DESCRIPTORS) dP(C.prototype, 'size', { - get: function get() { + get: function () { return validate(this, NAME)[SIZE]; } }); return C; }, - def: function def(that, key, value) { + def: function (that, key, value) { var entry = getEntry(that, key); var prev, index; // change existing entry if (entry) { entry.v = value; - // create new entry + // create new entry } else { that._l = entry = { i: index = fastKey(key, true), // <- index - k: key, // <- key - v: value, // <- value - p: prev = that._l, // <- previous entry - n: undefined, // <- next entry - r: false // <- removed + k: key, // <- key + v: value, // <- value + p: prev = that._l, // <- previous entry + n: undefined, // <- next entry + r: false // <- removed }; if (!that._f) that._f = entry; if (prev) prev.n = entry; that[SIZE]++; // add to index if (index !== 'F') that._i[index] = entry; - }return that; + } return that; }, getEntry: getEntry, - setStrong: function setStrong(C, NAME, IS_MAP) { + setStrong: function (C, NAME, IS_MAP) { // add .keys, .values, .entries, [@@iterator] // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 $iterDefine(C, NAME, function (iterated, kind) { this._t = validate(iterated, NAME); // target - this._k = kind; // kind - this._l = undefined; // previous + this._k = kind; // kind + this._l = undefined; // previous }, function () { var that = this; var kind = that._k; var entry = that._l; // revert to the last existing entry - while (entry && entry.r) { - entry = entry.p; - } // get next entry + while (entry && entry.r) entry = entry.p; + // get next entry if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { // or finish the iteration that._t = undefined; @@ -131074,9 +138863,7 @@ module.exports = { } }; -},{"./_an-instance":501,"./_ctx":520,"./_descriptors":524,"./_for-of":534,"./_iter-define":550,"./_iter-step":552,"./_meta":560,"./_object-create":565,"./_object-dp":566,"./_redefine-all":585,"./_set-species":592,"./_validate-collection":618}],515:[function(require,module,exports){ -'use strict'; - +},{"./_an-instance":515,"./_ctx":534,"./_descriptors":538,"./_for-of":548,"./_iter-define":564,"./_iter-step":566,"./_meta":574,"./_object-create":579,"./_object-dp":580,"./_redefine-all":599,"./_set-species":606,"./_validate-collection":632}],529:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON var classof = require('./_classof'); var from = require('./_array-from-iterable'); @@ -131087,9 +138874,8 @@ module.exports = function (NAME) { }; }; -},{"./_array-from-iterable":505,"./_classof":512}],516:[function(require,module,exports){ +},{"./_array-from-iterable":519,"./_classof":526}],530:[function(require,module,exports){ 'use strict'; - var redefineAll = require('./_redefine-all'); var getWeak = require('./_meta').getWeak; var anObject = require('./_an-object'); @@ -131104,30 +138890,31 @@ var arrayFindIndex = createArrayMethod(6); var id = 0; // fallback for uncaught frozen keys -var uncaughtFrozenStore = function uncaughtFrozenStore(that) { +var uncaughtFrozenStore = function (that) { return that._l || (that._l = new UncaughtFrozenStore()); }; -var UncaughtFrozenStore = function UncaughtFrozenStore() { +var UncaughtFrozenStore = function () { this.a = []; }; -var findUncaughtFrozen = function findUncaughtFrozen(store, key) { +var findUncaughtFrozen = function (store, key) { return arrayFind(store.a, function (it) { return it[0] === key; }); }; UncaughtFrozenStore.prototype = { - get: function get(key) { + get: function (key) { var entry = findUncaughtFrozen(this, key); if (entry) return entry[1]; }, - has: function has(key) { + has: function (key) { return !!findUncaughtFrozen(this, key); }, - set: function set(key, value) { + set: function (key, value) { var entry = findUncaughtFrozen(this, key); - if (entry) entry[1] = value;else this.a.push([key, value]); + if (entry) entry[1] = value; + else this.a.push([key, value]); }, - 'delete': function _delete(key) { + 'delete': function (key) { var index = arrayFindIndex(this.a, function (it) { return it[0] === key; }); @@ -131137,18 +138924,18 @@ UncaughtFrozenStore.prototype = { }; module.exports = { - getConstructor: function getConstructor(wrapper, NAME, IS_MAP, ADDER) { + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { anInstance(that, C, NAME, '_i'); - that._t = NAME; // collection type - that._i = id++; // collection id + that._t = NAME; // collection type + that._i = id++; // collection id that._l = undefined; // leak store for uncaught frozen objects if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); redefineAll(C.prototype, { // 23.3.3.2 WeakMap.prototype.delete(key) // 23.4.3.3 WeakSet.prototype.delete(value) - 'delete': function _delete(key) { + 'delete': function (key) { if (!isObject(key)) return false; var data = getWeak(key); if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); @@ -131165,17 +138952,17 @@ module.exports = { }); return C; }, - def: function def(that, key, value) { + def: function (that, key, value) { var data = getWeak(anObject(key), true); - if (data === true) uncaughtFrozenStore(that).set(key, value);else data[that._i] = value; + if (data === true) uncaughtFrozenStore(that).set(key, value); + else data[that._i] = value; return that; }, ufstore: uncaughtFrozenStore }; -},{"./_an-instance":501,"./_an-object":502,"./_array-methods":507,"./_for-of":534,"./_has":536,"./_is-object":546,"./_meta":560,"./_redefine-all":585,"./_validate-collection":618}],517:[function(require,module,exports){ +},{"./_an-instance":515,"./_an-object":516,"./_array-methods":521,"./_for-of":548,"./_has":550,"./_is-object":560,"./_meta":574,"./_redefine-all":599,"./_validate-collection":632}],531:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var $export = require('./_export'); var redefine = require('./_redefine'); @@ -131195,19 +138982,18 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { var ADDER = IS_MAP ? 'set' : 'add'; var proto = C && C.prototype; var O = {}; - var fixMethod = function fixMethod(KEY) { + var fixMethod = function (KEY) { var fn = proto[KEY]; - redefine(proto, KEY, KEY == 'delete' ? function (a) { - return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'has' ? function has(a) { - return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'get' ? function get(a) { - return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'add' ? function add(a) { - fn.call(this, a === 0 ? 0 : a);return this; - } : function set(a, b) { - fn.call(this, a === 0 ? 0 : a, b);return this; - }); + redefine(proto, KEY, + KEY == 'delete' ? function (a) { + return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); + } : KEY == 'has' ? function has(a) { + return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); + } : KEY == 'get' ? function get(a) { + return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); + } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; } + : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; } + ); }; if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { new C().entries().next(); @@ -131221,21 +139007,16 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { // early implementations not supports chaining var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false - var THROWS_ON_PRIMITIVES = fails(function () { - instance.has(1); - }); + var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); // most early implementations doesn't supports iterables, most modern - not close it correctly - var ACCEPT_ITERABLES = $iterDetect(function (iter) { - new C(iter); - }); // eslint-disable-line no-new + var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new // for early implementations -0 and +0 not the same var BUGGY_ZERO = !IS_WEAK && fails(function () { // V8 ~ Chromium 42- fails only with 5+ elements var $instance = new C(); var index = 5; - while (index--) { - $instance[ADDER](index, index); - }return !$instance.has(-0); + while (index--) $instance[ADDER](index, index); + return !$instance.has(-0); }); if (!ACCEPT_ITERABLES) { C = wrapper(function (target, iterable) { @@ -131267,49 +139048,50 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { return C; }; -},{"./_an-instance":501,"./_export":528,"./_fails":530,"./_for-of":534,"./_global":535,"./_inherit-if-required":540,"./_is-object":546,"./_iter-detect":551,"./_meta":560,"./_redefine":586,"./_redefine-all":585,"./_set-to-string-tag":593}],518:[function(require,module,exports){ -arguments[4][418][0].apply(exports,arguments) -},{"dup":418}],519:[function(require,module,exports){ +},{"./_an-instance":515,"./_export":542,"./_fails":544,"./_for-of":548,"./_global":549,"./_inherit-if-required":554,"./_is-object":560,"./_iter-detect":565,"./_meta":574,"./_redefine":600,"./_redefine-all":599,"./_set-to-string-tag":607}],532:[function(require,module,exports){ +arguments[4][432][0].apply(exports,arguments) +},{"dup":432}],533:[function(require,module,exports){ 'use strict'; - var $defineProperty = require('./_object-dp'); var createDesc = require('./_property-desc'); module.exports = function (object, index, value) { - if (index in object) $defineProperty.f(object, index, createDesc(0, value));else object[index] = value; + if (index in object) $defineProperty.f(object, index, createDesc(0, value)); + else object[index] = value; }; -},{"./_object-dp":566,"./_property-desc":584}],520:[function(require,module,exports){ -arguments[4][419][0].apply(exports,arguments) -},{"./_a-function":498,"dup":419}],521:[function(require,module,exports){ +},{"./_object-dp":580,"./_property-desc":598}],534:[function(require,module,exports){ +arguments[4][433][0].apply(exports,arguments) +},{"./_a-function":512,"dup":433}],535:[function(require,module,exports){ 'use strict'; // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() - var fails = require('./_fails'); var getTime = Date.prototype.getTime; var $toISOString = Date.prototype.toISOString; -var lz = function lz(num) { +var lz = function (num) { return num > 9 ? num : '0' + num; }; // PhantomJS / old WebKit has a broken implementations -module.exports = fails(function () { +module.exports = (fails(function () { return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z'; }) || !fails(function () { $toISOString.call(new Date(NaN)); -}) ? function toISOString() { +})) ? function toISOString() { if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value'); var d = this; var y = d.getUTCFullYear(); var m = d.getUTCMilliseconds(); var s = y < 0 ? '-' : y > 9999 ? '+' : ''; - return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; + return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + + '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + + 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + + ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; } : $toISOString; -},{"./_fails":530}],522:[function(require,module,exports){ +},{"./_fails":544}],536:[function(require,module,exports){ 'use strict'; - var anObject = require('./_an-object'); var toPrimitive = require('./_to-primitive'); var NUMBER = 'number'; @@ -131319,19 +139101,17 @@ module.exports = function (hint) { return toPrimitive(anObject(this), hint != NUMBER); }; -},{"./_an-object":502,"./_to-primitive":612}],523:[function(require,module,exports){ -arguments[4][420][0].apply(exports,arguments) -},{"dup":420}],524:[function(require,module,exports){ -arguments[4][421][0].apply(exports,arguments) -},{"./_fails":530,"dup":421}],525:[function(require,module,exports){ -arguments[4][422][0].apply(exports,arguments) -},{"./_global":535,"./_is-object":546,"dup":422}],526:[function(require,module,exports){ -arguments[4][423][0].apply(exports,arguments) -},{"dup":423}],527:[function(require,module,exports){ -arguments[4][424][0].apply(exports,arguments) -},{"./_object-gops":572,"./_object-keys":575,"./_object-pie":576,"dup":424}],528:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_to-primitive":626}],537:[function(require,module,exports){ +arguments[4][434][0].apply(exports,arguments) +},{"dup":434}],538:[function(require,module,exports){ +arguments[4][435][0].apply(exports,arguments) +},{"./_fails":544,"dup":435}],539:[function(require,module,exports){ +arguments[4][436][0].apply(exports,arguments) +},{"./_global":549,"./_is-object":560,"dup":436}],540:[function(require,module,exports){ +arguments[4][437][0].apply(exports,arguments) +},{"dup":437}],541:[function(require,module,exports){ +arguments[4][438][0].apply(exports,arguments) +},{"./_object-gops":586,"./_object-keys":589,"./_object-pie":590,"dup":438}],542:[function(require,module,exports){ var global = require('./_global'); var core = require('./_core'); var hide = require('./_hide'); @@ -131339,7 +139119,7 @@ var redefine = require('./_redefine'); var ctx = require('./_ctx'); var PROTOTYPE = 'prototype'; -var $export = function $export(type, name, source) { +var $export = function (type, name, source) { var IS_FORCED = type & $export.F; var IS_GLOBAL = type & $export.G; var IS_STATIC = type & $export.S; @@ -131366,19 +139146,17 @@ var $export = function $export(type, name, source) { }; global.core = core; // type bitmap -$export.F = 1; // forced -$export.G = 2; // global -$export.S = 4; // static -$export.P = 8; // proto -$export.B = 16; // bind -$export.W = 32; // wrap -$export.U = 64; // safe +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe $export.R = 128; // real proto method for `library` module.exports = $export; -},{"./_core":518,"./_ctx":520,"./_global":535,"./_hide":537,"./_redefine":586}],529:[function(require,module,exports){ -'use strict'; - +},{"./_core":532,"./_ctx":534,"./_global":549,"./_hide":551,"./_redefine":600}],543:[function(require,module,exports){ var MATCH = require('./_wks')('match'); module.exports = function (KEY) { var re = /./; @@ -131388,15 +139166,14 @@ module.exports = function (KEY) { try { re[MATCH] = false; return !'/./'[KEY](re); - } catch (f) {/* empty */} - }return true; + } catch (f) { /* empty */ } + } return true; }; -},{"./_wks":621}],530:[function(require,module,exports){ -arguments[4][426][0].apply(exports,arguments) -},{"dup":426}],531:[function(require,module,exports){ +},{"./_wks":635}],544:[function(require,module,exports){ +arguments[4][440][0].apply(exports,arguments) +},{"dup":440}],545:[function(require,module,exports){ 'use strict'; - var hide = require('./_hide'); var redefine = require('./_redefine'); var fails = require('./_fails'); @@ -131410,30 +139187,24 @@ module.exports = function (KEY, length, exec) { var rxfn = fns[1]; if (fails(function () { var O = {}; - O[SYMBOL] = function () { - return 7; - }; + O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; })) { redefine(String.prototype, KEY, strfn); hide(RegExp.prototype, SYMBOL, length == 2 - // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) - // 21.2.5.11 RegExp.prototype[@@split](string, limit) - ? function (string, arg) { - return rxfn.call(string, this, arg); - } - // 21.2.5.6 RegExp.prototype[@@match](string) - // 21.2.5.9 RegExp.prototype[@@search](string) - : function (string) { - return rxfn.call(string, this); - }); + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) + // 21.2.5.11 RegExp.prototype[@@split](string, limit) + ? function (string, arg) { return rxfn.call(string, this, arg); } + // 21.2.5.6 RegExp.prototype[@@match](string) + // 21.2.5.9 RegExp.prototype[@@search](string) + : function (string) { return rxfn.call(string, this); } + ); } }; -},{"./_defined":523,"./_fails":530,"./_hide":537,"./_redefine":586,"./_wks":621}],532:[function(require,module,exports){ +},{"./_defined":537,"./_fails":544,"./_hide":551,"./_redefine":600,"./_wks":635}],546:[function(require,module,exports){ 'use strict'; // 21.2.5.3 get RegExp.prototype.flags - var anObject = require('./_an-object'); module.exports = function () { var that = anObject(this); @@ -131446,10 +139217,9 @@ module.exports = function () { return result; }; -},{"./_an-object":502}],533:[function(require,module,exports){ +},{"./_an-object":516}],547:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray - var isArray = require('./_is-array'); var isObject = require('./_is-object'); var toLength = require('./_to-length'); @@ -131488,21 +139258,19 @@ function flattenIntoArray(target, original, source, sourceLen, start, depth, map module.exports = flattenIntoArray; -},{"./_ctx":520,"./_is-array":544,"./_is-object":546,"./_to-length":610,"./_wks":621}],534:[function(require,module,exports){ -arguments[4][427][0].apply(exports,arguments) -},{"./_an-object":502,"./_ctx":520,"./_is-array-iter":543,"./_iter-call":548,"./_to-length":610,"./core.get-iterator-method":622,"dup":427}],535:[function(require,module,exports){ -arguments[4][428][0].apply(exports,arguments) -},{"dup":428}],536:[function(require,module,exports){ -arguments[4][429][0].apply(exports,arguments) -},{"dup":429}],537:[function(require,module,exports){ -arguments[4][430][0].apply(exports,arguments) -},{"./_descriptors":524,"./_object-dp":566,"./_property-desc":584,"dup":430}],538:[function(require,module,exports){ -arguments[4][431][0].apply(exports,arguments) -},{"./_global":535,"dup":431}],539:[function(require,module,exports){ -arguments[4][432][0].apply(exports,arguments) -},{"./_descriptors":524,"./_dom-create":525,"./_fails":530,"dup":432}],540:[function(require,module,exports){ -'use strict'; - +},{"./_ctx":534,"./_is-array":558,"./_is-object":560,"./_to-length":624,"./_wks":635}],548:[function(require,module,exports){ +arguments[4][441][0].apply(exports,arguments) +},{"./_an-object":516,"./_ctx":534,"./_is-array-iter":557,"./_iter-call":562,"./_to-length":624,"./core.get-iterator-method":636,"dup":441}],549:[function(require,module,exports){ +arguments[4][442][0].apply(exports,arguments) +},{"dup":442}],550:[function(require,module,exports){ +arguments[4][443][0].apply(exports,arguments) +},{"dup":443}],551:[function(require,module,exports){ +arguments[4][444][0].apply(exports,arguments) +},{"./_descriptors":538,"./_object-dp":580,"./_property-desc":598,"dup":444}],552:[function(require,module,exports){ +arguments[4][445][0].apply(exports,arguments) +},{"./_global":549,"dup":445}],553:[function(require,module,exports){ +arguments[4][446][0].apply(exports,arguments) +},{"./_descriptors":538,"./_dom-create":539,"./_fails":544,"dup":446}],554:[function(require,module,exports){ var isObject = require('./_is-object'); var setPrototypeOf = require('./_set-proto').set; module.exports = function (that, target, C) { @@ -131510,20 +139278,18 @@ module.exports = function (that, target, C) { var P; if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { setPrototypeOf(that, P); - }return that; + } return that; }; -},{"./_is-object":546,"./_set-proto":591}],541:[function(require,module,exports){ -arguments[4][433][0].apply(exports,arguments) -},{"dup":433}],542:[function(require,module,exports){ -arguments[4][434][0].apply(exports,arguments) -},{"./_cof":513,"dup":434}],543:[function(require,module,exports){ -arguments[4][435][0].apply(exports,arguments) -},{"./_iterators":553,"./_wks":621,"dup":435}],544:[function(require,module,exports){ -arguments[4][436][0].apply(exports,arguments) -},{"./_cof":513,"dup":436}],545:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_set-proto":605}],555:[function(require,module,exports){ +arguments[4][447][0].apply(exports,arguments) +},{"dup":447}],556:[function(require,module,exports){ +arguments[4][448][0].apply(exports,arguments) +},{"./_cof":527,"dup":448}],557:[function(require,module,exports){ +arguments[4][449][0].apply(exports,arguments) +},{"./_iterators":567,"./_wks":635,"dup":449}],558:[function(require,module,exports){ +arguments[4][450][0].apply(exports,arguments) +},{"./_cof":527,"dup":450}],559:[function(require,module,exports){ // 20.1.2.3 Number.isInteger(number) var isObject = require('./_is-object'); var floor = Math.floor; @@ -131531,11 +139297,9 @@ module.exports = function isInteger(it) { return !isObject(it) && isFinite(it) && floor(it) === it; }; -},{"./_is-object":546}],546:[function(require,module,exports){ -arguments[4][437][0].apply(exports,arguments) -},{"dup":437}],547:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560}],560:[function(require,module,exports){ +arguments[4][451][0].apply(exports,arguments) +},{"dup":451}],561:[function(require,module,exports){ // 7.2.8 IsRegExp(argument) var isObject = require('./_is-object'); var cof = require('./_cof'); @@ -131545,39 +139309,34 @@ module.exports = function (it) { return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); }; -},{"./_cof":513,"./_is-object":546,"./_wks":621}],548:[function(require,module,exports){ -arguments[4][438][0].apply(exports,arguments) -},{"./_an-object":502,"dup":438}],549:[function(require,module,exports){ -arguments[4][439][0].apply(exports,arguments) -},{"./_hide":537,"./_object-create":565,"./_property-desc":584,"./_set-to-string-tag":593,"./_wks":621,"dup":439}],550:[function(require,module,exports){ -arguments[4][440][0].apply(exports,arguments) -},{"./_export":528,"./_hide":537,"./_iter-create":549,"./_iterators":553,"./_library":554,"./_object-gpo":573,"./_redefine":586,"./_set-to-string-tag":593,"./_wks":621,"dup":440}],551:[function(require,module,exports){ -arguments[4][441][0].apply(exports,arguments) -},{"./_wks":621,"dup":441}],552:[function(require,module,exports){ -arguments[4][442][0].apply(exports,arguments) -},{"dup":442}],553:[function(require,module,exports){ -arguments[4][443][0].apply(exports,arguments) -},{"dup":443}],554:[function(require,module,exports){ -"use strict"; - +},{"./_cof":527,"./_is-object":560,"./_wks":635}],562:[function(require,module,exports){ +arguments[4][452][0].apply(exports,arguments) +},{"./_an-object":516,"dup":452}],563:[function(require,module,exports){ +arguments[4][453][0].apply(exports,arguments) +},{"./_hide":551,"./_object-create":579,"./_property-desc":598,"./_set-to-string-tag":607,"./_wks":635,"dup":453}],564:[function(require,module,exports){ +arguments[4][454][0].apply(exports,arguments) +},{"./_export":542,"./_hide":551,"./_iter-create":563,"./_iterators":567,"./_library":568,"./_object-gpo":587,"./_redefine":600,"./_set-to-string-tag":607,"./_wks":635,"dup":454}],565:[function(require,module,exports){ +arguments[4][455][0].apply(exports,arguments) +},{"./_wks":635,"dup":455}],566:[function(require,module,exports){ +arguments[4][456][0].apply(exports,arguments) +},{"dup":456}],567:[function(require,module,exports){ +arguments[4][457][0].apply(exports,arguments) +},{"dup":457}],568:[function(require,module,exports){ module.exports = false; -},{}],555:[function(require,module,exports){ -"use strict"; - +},{}],569:[function(require,module,exports){ // 20.2.2.14 Math.expm1(x) var $expm1 = Math.expm1; -module.exports = !$expm1 -// Old FF bug -|| $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 -// Tor Browser bug -|| $expm1(-2e-17) != -2e-17 ? function expm1(x) { +module.exports = (!$expm1 + // Old FF bug + || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 + // Tor Browser bug + || $expm1(-2e-17) != -2e-17 +) ? function expm1(x) { return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; } : $expm1; -},{}],556:[function(require,module,exports){ -'use strict'; - +},{}],570:[function(require,module,exports){ // 20.2.2.16 Math.fround(x) var sign = require('./_math-sign'); var pow = Math.pow; @@ -131586,7 +139345,7 @@ var EPSILON32 = pow(2, -23); var MAX32 = pow(2, 127) * (2 - EPSILON32); var MIN32 = pow(2, -126); -var roundTiesToEven = function roundTiesToEven(n) { +var roundTiesToEven = function (n) { return n + 1 / EPSILON - 1 / EPSILON; }; @@ -131602,56 +139361,48 @@ module.exports = Math.fround || function fround(x) { return $sign * result; }; -},{"./_math-sign":559}],557:[function(require,module,exports){ -"use strict"; - +},{"./_math-sign":573}],571:[function(require,module,exports){ // 20.2.2.20 Math.log1p(x) module.exports = Math.log1p || function log1p(x) { return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); }; -},{}],558:[function(require,module,exports){ -"use strict"; - +},{}],572:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) { - if (arguments.length === 0 - // eslint-disable-next-line no-self-compare - || x != x - // eslint-disable-next-line no-self-compare - || inLow != inLow - // eslint-disable-next-line no-self-compare - || inHigh != inHigh - // eslint-disable-next-line no-self-compare - || outLow != outLow - // eslint-disable-next-line no-self-compare - || outHigh != outHigh) return NaN; + if ( + arguments.length === 0 + // eslint-disable-next-line no-self-compare + || x != x + // eslint-disable-next-line no-self-compare + || inLow != inLow + // eslint-disable-next-line no-self-compare + || inHigh != inHigh + // eslint-disable-next-line no-self-compare + || outLow != outLow + // eslint-disable-next-line no-self-compare + || outHigh != outHigh + ) return NaN; if (x === Infinity || x === -Infinity) return x; return (x - inLow) * (outHigh - outLow) / (inHigh - inLow) + outLow; }; -},{}],559:[function(require,module,exports){ -"use strict"; - +},{}],573:[function(require,module,exports){ // 20.2.2.28 Math.sign(x) module.exports = Math.sign || function sign(x) { // eslint-disable-next-line no-self-compare return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; }; -},{}],560:[function(require,module,exports){ -arguments[4][445][0].apply(exports,arguments) -},{"./_fails":530,"./_has":536,"./_is-object":546,"./_object-dp":566,"./_uid":616,"dup":445}],561:[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; }; - +},{}],574:[function(require,module,exports){ +arguments[4][459][0].apply(exports,arguments) +},{"./_fails":544,"./_has":550,"./_is-object":560,"./_object-dp":580,"./_uid":630,"dup":459}],575:[function(require,module,exports){ var Map = require('./es6.map'); var $export = require('./_export'); var shared = require('./_shared')('metadata'); var store = shared.store || (shared.store = new (require('./es6.weak-map'))()); -var getOrCreateMetadataMap = function getOrCreateMetadataMap(target, targetKey, create) { +var getOrCreateMetadataMap = function (target, targetKey, create) { var targetMetadata = store.get(target); if (!targetMetadata) { if (!create) return undefined; @@ -131661,31 +139412,29 @@ var getOrCreateMetadataMap = function getOrCreateMetadataMap(target, targetKey, if (!keyMetadata) { if (!create) return undefined; targetMetadata.set(targetKey, keyMetadata = new Map()); - }return keyMetadata; + } return keyMetadata; }; -var ordinaryHasOwnMetadata = function ordinaryHasOwnMetadata(MetadataKey, O, P) { +var ordinaryHasOwnMetadata = function (MetadataKey, O, P) { var metadataMap = getOrCreateMetadataMap(O, P, false); return metadataMap === undefined ? false : metadataMap.has(MetadataKey); }; -var ordinaryGetOwnMetadata = function ordinaryGetOwnMetadata(MetadataKey, O, P) { +var ordinaryGetOwnMetadata = function (MetadataKey, O, P) { var metadataMap = getOrCreateMetadataMap(O, P, false); return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey); }; -var ordinaryDefineOwnMetadata = function ordinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) { +var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) { getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue); }; -var ordinaryOwnMetadataKeys = function ordinaryOwnMetadataKeys(target, targetKey) { +var ordinaryOwnMetadataKeys = function (target, targetKey) { var metadataMap = getOrCreateMetadataMap(target, targetKey, false); var keys = []; - if (metadataMap) metadataMap.forEach(function (_, key) { - keys.push(key); - }); + if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); }); return keys; }; -var toMetaKey = function toMetaKey(it) { - return it === undefined || (typeof it === 'undefined' ? 'undefined' : _typeof(it)) == 'symbol' ? it : String(it); +var toMetaKey = function (it) { + return it === undefined || typeof it == 'symbol' ? it : String(it); }; -var exp = function exp(O) { +var exp = function (O) { $export($export.S, 'Reflect', O); }; @@ -131700,49 +139449,46 @@ module.exports = { exp: exp }; -},{"./_export":528,"./_shared":595,"./es6.map":653,"./es6.weak-map":759}],562:[function(require,module,exports){ -arguments[4][446][0].apply(exports,arguments) -},{"./_cof":513,"./_global":535,"./_task":605,"dup":446}],563:[function(require,module,exports){ -arguments[4][447][0].apply(exports,arguments) -},{"./_a-function":498,"dup":447}],564:[function(require,module,exports){ -arguments[4][448][0].apply(exports,arguments) -},{"./_fails":530,"./_iobject":542,"./_object-gops":572,"./_object-keys":575,"./_object-pie":576,"./_to-object":611,"dup":448}],565:[function(require,module,exports){ -arguments[4][449][0].apply(exports,arguments) -},{"./_an-object":502,"./_dom-create":525,"./_enum-bug-keys":526,"./_html":538,"./_object-dps":567,"./_shared-key":594,"dup":449}],566:[function(require,module,exports){ -arguments[4][450][0].apply(exports,arguments) -},{"./_an-object":502,"./_descriptors":524,"./_ie8-dom-define":539,"./_to-primitive":612,"dup":450}],567:[function(require,module,exports){ -arguments[4][451][0].apply(exports,arguments) -},{"./_an-object":502,"./_descriptors":524,"./_object-dp":566,"./_object-keys":575,"dup":451}],568:[function(require,module,exports){ +},{"./_export":542,"./_shared":609,"./es6.map":667,"./es6.weak-map":773}],576:[function(require,module,exports){ +arguments[4][460][0].apply(exports,arguments) +},{"./_cof":527,"./_global":549,"./_task":619,"dup":460}],577:[function(require,module,exports){ +arguments[4][461][0].apply(exports,arguments) +},{"./_a-function":512,"dup":461}],578:[function(require,module,exports){ +arguments[4][462][0].apply(exports,arguments) +},{"./_fails":544,"./_iobject":556,"./_object-gops":586,"./_object-keys":589,"./_object-pie":590,"./_to-object":625,"dup":462}],579:[function(require,module,exports){ +arguments[4][463][0].apply(exports,arguments) +},{"./_an-object":516,"./_dom-create":539,"./_enum-bug-keys":540,"./_html":552,"./_object-dps":581,"./_shared-key":608,"dup":463}],580:[function(require,module,exports){ +arguments[4][464][0].apply(exports,arguments) +},{"./_an-object":516,"./_descriptors":538,"./_ie8-dom-define":553,"./_to-primitive":626,"dup":464}],581:[function(require,module,exports){ +arguments[4][465][0].apply(exports,arguments) +},{"./_an-object":516,"./_descriptors":538,"./_object-dp":580,"./_object-keys":589,"dup":465}],582:[function(require,module,exports){ 'use strict'; // Forced replacement prototype accessors methods - module.exports = require('./_library') || !require('./_fails')(function () { var K = Math.random(); // In FF throws only define methods // eslint-disable-next-line no-undef, no-useless-call - __defineSetter__.call(null, K, function () {/* empty */}); + __defineSetter__.call(null, K, function () { /* empty */ }); delete require('./_global')[K]; }); -},{"./_fails":530,"./_global":535,"./_library":554}],569:[function(require,module,exports){ -arguments[4][452][0].apply(exports,arguments) -},{"./_descriptors":524,"./_has":536,"./_ie8-dom-define":539,"./_object-pie":576,"./_property-desc":584,"./_to-iobject":609,"./_to-primitive":612,"dup":452}],570:[function(require,module,exports){ -arguments[4][453][0].apply(exports,arguments) -},{"./_object-gopn":571,"./_to-iobject":609,"dup":453}],571:[function(require,module,exports){ -arguments[4][454][0].apply(exports,arguments) -},{"./_enum-bug-keys":526,"./_object-keys-internal":574,"dup":454}],572:[function(require,module,exports){ -arguments[4][455][0].apply(exports,arguments) -},{"dup":455}],573:[function(require,module,exports){ -arguments[4][456][0].apply(exports,arguments) -},{"./_has":536,"./_shared-key":594,"./_to-object":611,"dup":456}],574:[function(require,module,exports){ -arguments[4][457][0].apply(exports,arguments) -},{"./_array-includes":506,"./_has":536,"./_shared-key":594,"./_to-iobject":609,"dup":457}],575:[function(require,module,exports){ -arguments[4][458][0].apply(exports,arguments) -},{"./_enum-bug-keys":526,"./_object-keys-internal":574,"dup":458}],576:[function(require,module,exports){ -arguments[4][459][0].apply(exports,arguments) -},{"dup":459}],577:[function(require,module,exports){ -'use strict'; - +},{"./_fails":544,"./_global":549,"./_library":568}],583:[function(require,module,exports){ +arguments[4][466][0].apply(exports,arguments) +},{"./_descriptors":538,"./_has":550,"./_ie8-dom-define":553,"./_object-pie":590,"./_property-desc":598,"./_to-iobject":623,"./_to-primitive":626,"dup":466}],584:[function(require,module,exports){ +arguments[4][467][0].apply(exports,arguments) +},{"./_object-gopn":585,"./_to-iobject":623,"dup":467}],585:[function(require,module,exports){ +arguments[4][468][0].apply(exports,arguments) +},{"./_enum-bug-keys":540,"./_object-keys-internal":588,"dup":468}],586:[function(require,module,exports){ +arguments[4][469][0].apply(exports,arguments) +},{"dup":469}],587:[function(require,module,exports){ +arguments[4][470][0].apply(exports,arguments) +},{"./_has":550,"./_shared-key":608,"./_to-object":625,"dup":470}],588:[function(require,module,exports){ +arguments[4][471][0].apply(exports,arguments) +},{"./_array-includes":520,"./_has":550,"./_shared-key":608,"./_to-iobject":623,"dup":471}],589:[function(require,module,exports){ +arguments[4][472][0].apply(exports,arguments) +},{"./_enum-bug-keys":540,"./_object-keys-internal":588,"dup":472}],590:[function(require,module,exports){ +arguments[4][473][0].apply(exports,arguments) +},{"dup":473}],591:[function(require,module,exports){ // most Object methods by ES6 should accept primitives var $export = require('./_export'); var core = require('./_core'); @@ -131751,14 +139497,10 @@ module.exports = function (KEY, exec) { var fn = (core.Object || {})[KEY] || Object[KEY]; var exp = {}; exp[KEY] = exec(fn); - $export($export.S + $export.F * fails(function () { - fn(1); - }), 'Object', exp); + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); }; -},{"./_core":518,"./_export":528,"./_fails":530}],578:[function(require,module,exports){ -'use strict'; - +},{"./_core":532,"./_export":542,"./_fails":544}],592:[function(require,module,exports){ var getKeys = require('./_object-keys'); var toIObject = require('./_to-iobject'); var isEnum = require('./_object-pie').f; @@ -131770,17 +139512,13 @@ module.exports = function (isEntries) { var i = 0; var result = []; var key; - while (length > i) { - if (isEnum.call(O, key = keys[i++])) { - result.push(isEntries ? [key, O[key]] : O[key]); - } - }return result; + while (length > i) if (isEnum.call(O, key = keys[i++])) { + result.push(isEntries ? [key, O[key]] : O[key]); + } return result; }; }; -},{"./_object-keys":575,"./_object-pie":576,"./_to-iobject":609}],579:[function(require,module,exports){ -'use strict'; - +},{"./_object-keys":589,"./_object-pie":590,"./_to-iobject":623}],593:[function(require,module,exports){ // all object keys, includes non-enumerable and symbols var gOPN = require('./_object-gopn'); var gOPS = require('./_object-gops'); @@ -131792,9 +139530,7 @@ module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) { return getSymbols ? keys.concat(getSymbols(it)) : keys; }; -},{"./_an-object":502,"./_global":535,"./_object-gopn":571,"./_object-gops":572}],580:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_global":549,"./_object-gopn":585,"./_object-gops":586}],594:[function(require,module,exports){ var $parseFloat = require('./_global').parseFloat; var $trim = require('./_string-trim').trim; @@ -131804,9 +139540,7 @@ module.exports = 1 / $parseFloat(require('./_string-ws') + '-0') !== -Infinity ? return result === 0 && string.charAt(0) == '-' ? -0 : result; } : $parseFloat; -},{"./_global":535,"./_string-trim":603,"./_string-ws":604}],581:[function(require,module,exports){ -'use strict'; - +},{"./_global":549,"./_string-trim":617,"./_string-ws":618}],595:[function(require,module,exports){ var $parseInt = require('./_global').parseInt; var $trim = require('./_string-trim').trim; var ws = require('./_string-ws'); @@ -131814,28 +139548,23 @@ var hex = /^[-+]?0[xX]/; module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { var string = $trim(String(str), 3); - return $parseInt(string, radix >>> 0 || (hex.test(string) ? 16 : 10)); + return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); } : $parseInt; -},{"./_global":535,"./_string-trim":603,"./_string-ws":604}],582:[function(require,module,exports){ -arguments[4][460][0].apply(exports,arguments) -},{"dup":460}],583:[function(require,module,exports){ -arguments[4][461][0].apply(exports,arguments) -},{"./_an-object":502,"./_is-object":546,"./_new-promise-capability":563,"dup":461}],584:[function(require,module,exports){ -arguments[4][462][0].apply(exports,arguments) -},{"dup":462}],585:[function(require,module,exports){ -'use strict'; - +},{"./_global":549,"./_string-trim":617,"./_string-ws":618}],596:[function(require,module,exports){ +arguments[4][474][0].apply(exports,arguments) +},{"dup":474}],597:[function(require,module,exports){ +arguments[4][475][0].apply(exports,arguments) +},{"./_an-object":516,"./_is-object":560,"./_new-promise-capability":577,"dup":475}],598:[function(require,module,exports){ +arguments[4][476][0].apply(exports,arguments) +},{"dup":476}],599:[function(require,module,exports){ var redefine = require('./_redefine'); module.exports = function (target, src, safe) { - for (var key in src) { - redefine(target, key, src[key], safe); - }return target; + for (var key in src) redefine(target, key, src[key], safe); + return target; }; -},{"./_redefine":586}],586:[function(require,module,exports){ -'use strict'; - +},{"./_redefine":600}],600:[function(require,module,exports){ var global = require('./_global'); var hide = require('./_hide'); var has = require('./_has'); @@ -131863,14 +139592,12 @@ require('./_core').inspectSource = function (it) { } else { hide(O, key, val); } - // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, TO_STRING, function toString() { return typeof this == 'function' && this[SRC] || $toString.call(this); }); -},{"./_core":518,"./_global":535,"./_has":536,"./_hide":537,"./_uid":616}],587:[function(require,module,exports){ -"use strict"; - +},{"./_core":532,"./_global":549,"./_has":550,"./_hide":551,"./_uid":630}],601:[function(require,module,exports){ module.exports = function (regExp, replace) { var replacer = replace === Object(replace) ? function (part) { return replace[part]; @@ -131880,19 +139607,16 @@ module.exports = function (regExp, replace) { }; }; -},{}],588:[function(require,module,exports){ -"use strict"; - +},{}],602:[function(require,module,exports){ // 7.2.9 SameValue(x, y) module.exports = Object.is || function is(x, y) { // eslint-disable-next-line no-self-compare return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; -},{}],589:[function(require,module,exports){ +},{}],603:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-setmap-offrom/ - var $export = require('./_export'); var aFunction = require('./_a-function'); var ctx = require('./_ctx'); @@ -131900,47 +139624,44 @@ var forOf = require('./_for-of'); module.exports = function (COLLECTION) { $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { - var mapFn = arguments[1]; - var mapping, A, n, cb; - aFunction(this); - mapping = mapFn !== undefined; - if (mapping) aFunction(mapFn); - if (source == undefined) return new this(); - A = []; - if (mapping) { - n = 0; - cb = ctx(mapFn, arguments[2], 2); - forOf(source, false, function (nextItem) { - A.push(cb(nextItem, n++)); - }); - } else { - forOf(source, false, A.push, A); - } - return new this(A); - } }); + var mapFn = arguments[1]; + var mapping, A, n, cb; + aFunction(this); + mapping = mapFn !== undefined; + if (mapping) aFunction(mapFn); + if (source == undefined) return new this(); + A = []; + if (mapping) { + n = 0; + cb = ctx(mapFn, arguments[2], 2); + forOf(source, false, function (nextItem) { + A.push(cb(nextItem, n++)); + }); + } else { + forOf(source, false, A.push, A); + } + return new this(A); + } }); }; -},{"./_a-function":498,"./_ctx":520,"./_export":528,"./_for-of":534}],590:[function(require,module,exports){ +},{"./_a-function":512,"./_ctx":534,"./_export":542,"./_for-of":548}],604:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-setmap-offrom/ - var $export = require('./_export'); module.exports = function (COLLECTION) { $export($export.S, COLLECTION, { of: function of() { - var length = arguments.length; - var A = new Array(length); - while (length--) { - A[length] = arguments[length]; - }return new this(A); - } }); + var length = arguments.length; + var A = new Array(length); + while (length--) A[length] = arguments[length]; + return new this(A); + } }); }; -},{"./_export":528}],591:[function(require,module,exports){ -arguments[4][465][0].apply(exports,arguments) -},{"./_an-object":502,"./_ctx":520,"./_is-object":546,"./_object-gopd":569,"dup":465}],592:[function(require,module,exports){ +},{"./_export":542}],605:[function(require,module,exports){ +arguments[4][479][0].apply(exports,arguments) +},{"./_an-object":516,"./_ctx":534,"./_is-object":560,"./_object-gopd":583,"dup":479}],606:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var dP = require('./_object-dp'); var DESCRIPTORS = require('./_descriptors'); @@ -131950,37 +139671,32 @@ module.exports = function (KEY) { var C = global[KEY]; if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { configurable: true, - get: function get() { - return this; - } + get: function () { return this; } }); }; -},{"./_descriptors":524,"./_global":535,"./_object-dp":566,"./_wks":621}],593:[function(require,module,exports){ -arguments[4][467][0].apply(exports,arguments) -},{"./_has":536,"./_object-dp":566,"./_wks":621,"dup":467}],594:[function(require,module,exports){ -arguments[4][468][0].apply(exports,arguments) -},{"./_shared":595,"./_uid":616,"dup":468}],595:[function(require,module,exports){ -arguments[4][469][0].apply(exports,arguments) -},{"./_core":518,"./_global":535,"./_library":554,"dup":469}],596:[function(require,module,exports){ -arguments[4][470][0].apply(exports,arguments) -},{"./_a-function":498,"./_an-object":502,"./_wks":621,"dup":470}],597:[function(require,module,exports){ +},{"./_descriptors":538,"./_global":549,"./_object-dp":580,"./_wks":635}],607:[function(require,module,exports){ +arguments[4][481][0].apply(exports,arguments) +},{"./_has":550,"./_object-dp":580,"./_wks":635,"dup":481}],608:[function(require,module,exports){ +arguments[4][482][0].apply(exports,arguments) +},{"./_shared":609,"./_uid":630,"dup":482}],609:[function(require,module,exports){ +arguments[4][483][0].apply(exports,arguments) +},{"./_core":532,"./_global":549,"./_library":568,"dup":483}],610:[function(require,module,exports){ +arguments[4][484][0].apply(exports,arguments) +},{"./_a-function":512,"./_an-object":516,"./_wks":635,"dup":484}],611:[function(require,module,exports){ 'use strict'; - var fails = require('./_fails'); module.exports = function (method, arg) { return !!method && fails(function () { // eslint-disable-next-line no-useless-call - arg ? method.call(null, function () {/* empty */}, 1) : method.call(null); + arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); }); }; -},{"./_fails":530}],598:[function(require,module,exports){ -arguments[4][471][0].apply(exports,arguments) -},{"./_defined":523,"./_to-integer":608,"dup":471}],599:[function(require,module,exports){ -'use strict'; - +},{"./_fails":544}],612:[function(require,module,exports){ +arguments[4][485][0].apply(exports,arguments) +},{"./_defined":537,"./_to-integer":622,"dup":485}],613:[function(require,module,exports){ // helper for String#{startsWith, endsWith, includes} var isRegExp = require('./_is-regexp'); var defined = require('./_defined'); @@ -131990,15 +139706,13 @@ module.exports = function (that, searchString, NAME) { return String(defined(that)); }; -},{"./_defined":523,"./_is-regexp":547}],600:[function(require,module,exports){ -'use strict'; - +},{"./_defined":537,"./_is-regexp":561}],614:[function(require,module,exports){ var $export = require('./_export'); var fails = require('./_fails'); var defined = require('./_defined'); var quot = /"/g; // B.2.3.2.1 CreateHTML(string, tag, attribute, value) -var createHTML = function createHTML(string, tag, attribute, value) { +var createHTML = function (string, tag, attribute, value) { var S = String(defined(string)); var p1 = '<' + tag; if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; @@ -132013,9 +139727,7 @@ module.exports = function (NAME, exec) { }), 'String', O); }; -},{"./_defined":523,"./_export":528,"./_fails":530}],601:[function(require,module,exports){ -'use strict'; - +},{"./_defined":537,"./_export":542,"./_fails":544}],615:[function(require,module,exports){ // https://github.com/tc39/proposal-string-pad-start-end var toLength = require('./_to-length'); var repeat = require('./_string-repeat'); @@ -132033,9 +139745,8 @@ module.exports = function (that, maxLength, fillString, left) { return left ? stringFiller + S : S + stringFiller; }; -},{"./_defined":523,"./_string-repeat":602,"./_to-length":610}],602:[function(require,module,exports){ +},{"./_defined":537,"./_string-repeat":616,"./_to-length":624}],616:[function(require,module,exports){ 'use strict'; - var toInteger = require('./_to-integer'); var defined = require('./_defined'); @@ -132044,24 +139755,21 @@ module.exports = function repeat(count) { var res = ''; var n = toInteger(count); if (n < 0 || n == Infinity) throw RangeError("Count can't be negative"); - for (; n > 0; (n >>>= 1) && (str += str)) { - if (n & 1) res += str; - }return res; + for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str; + return res; }; -},{"./_defined":523,"./_to-integer":608}],603:[function(require,module,exports){ -'use strict'; - +},{"./_defined":537,"./_to-integer":622}],617:[function(require,module,exports){ var $export = require('./_export'); var defined = require('./_defined'); var fails = require('./_fails'); var spaces = require('./_string-ws'); var space = '[' + spaces + ']'; -var non = '\u200B\x85'; +var non = '\u200b\u0085'; var ltrim = RegExp('^' + space + space + '*'); var rtrim = RegExp(space + space + '*$'); -var exporter = function exporter(KEY, exec, ALIAS) { +var exporter = function (KEY, exec, ALIAS) { var exp = {}; var FORCE = fails(function () { return !!spaces[KEY]() || non[KEY]() != non; @@ -132083,18 +139791,15 @@ var trim = exporter.trim = function (string, TYPE) { module.exports = exporter; -},{"./_defined":523,"./_export":528,"./_fails":530,"./_string-ws":604}],604:[function(require,module,exports){ -'use strict'; - -module.exports = '\t\n\x0B\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; - -},{}],605:[function(require,module,exports){ -arguments[4][472][0].apply(exports,arguments) -},{"./_cof":513,"./_ctx":520,"./_dom-create":525,"./_global":535,"./_html":538,"./_invoke":541,"dup":472}],606:[function(require,module,exports){ -arguments[4][473][0].apply(exports,arguments) -},{"./_to-integer":608,"dup":473}],607:[function(require,module,exports){ -'use strict'; +},{"./_defined":537,"./_export":542,"./_fails":544,"./_string-ws":618}],618:[function(require,module,exports){ +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; +},{}],619:[function(require,module,exports){ +arguments[4][486][0].apply(exports,arguments) +},{"./_cof":527,"./_ctx":534,"./_dom-create":539,"./_global":549,"./_html":552,"./_invoke":555,"dup":486}],620:[function(require,module,exports){ +arguments[4][487][0].apply(exports,arguments) +},{"./_to-integer":622,"dup":487}],621:[function(require,module,exports){ // https://tc39.github.io/ecma262/#sec-toindex var toInteger = require('./_to-integer'); var toLength = require('./_to-length'); @@ -132106,21 +139811,18 @@ module.exports = function (it) { return length; }; -},{"./_to-integer":608,"./_to-length":610}],608:[function(require,module,exports){ -arguments[4][474][0].apply(exports,arguments) -},{"dup":474}],609:[function(require,module,exports){ -arguments[4][475][0].apply(exports,arguments) -},{"./_defined":523,"./_iobject":542,"dup":475}],610:[function(require,module,exports){ -arguments[4][476][0].apply(exports,arguments) -},{"./_to-integer":608,"dup":476}],611:[function(require,module,exports){ -arguments[4][477][0].apply(exports,arguments) -},{"./_defined":523,"dup":477}],612:[function(require,module,exports){ -arguments[4][478][0].apply(exports,arguments) -},{"./_is-object":546,"dup":478}],613:[function(require,module,exports){ +},{"./_to-integer":622,"./_to-length":624}],622:[function(require,module,exports){ +arguments[4][488][0].apply(exports,arguments) +},{"dup":488}],623:[function(require,module,exports){ +arguments[4][489][0].apply(exports,arguments) +},{"./_defined":537,"./_iobject":556,"dup":489}],624:[function(require,module,exports){ +arguments[4][490][0].apply(exports,arguments) +},{"./_to-integer":622,"dup":490}],625:[function(require,module,exports){ +arguments[4][491][0].apply(exports,arguments) +},{"./_defined":537,"dup":491}],626:[function(require,module,exports){ +arguments[4][492][0].apply(exports,arguments) +},{"./_is-object":560,"dup":492}],627:[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; }; - if (require('./_descriptors')) { var LIBRARY = require('./_library'); var global = require('./_global'); @@ -132213,40 +139915,37 @@ if (require('./_descriptors')) { new Uint8Array(1).set({}); }); - var toOffset = function toOffset(it, BYTES) { + var toOffset = function (it, BYTES) { var offset = toInteger(it); if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!'); return offset; }; - var validate = function validate(it) { + var validate = function (it) { if (isObject(it) && TYPED_ARRAY in it) return it; throw TypeError(it + ' is not a typed array!'); }; - var allocate = function allocate(C, length) { + var allocate = function (C, length) { if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) { throw TypeError('It is not a typed array constructor!'); - }return new C(length); + } return new C(length); }; - var speciesFromList = function speciesFromList(O, list) { + var speciesFromList = function (O, list) { return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list); }; - var fromList = function fromList(C, list) { + var fromList = function (C, list) { var index = 0; var length = list.length; var result = allocate(C, length); - while (length > index) { - result[index] = list[index++]; - }return result; + while (length > index) result[index] = list[index++]; + return result; }; - var addGetter = function addGetter(it, key, internal) { - dP(it, key, { get: function get() { - return this._d[internal]; - } }); + var addGetter = function (it, key, internal) { + dP(it, key, { get: function () { return this._d[internal]; } }); }; var $from = function from(source /* , mapfn, thisArg */) { @@ -132259,7 +139958,7 @@ if (require('./_descriptors')) { if (iterFn != undefined && !isArrayIter(iterFn)) { for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) { values.push(step.value); - }O = values; + } O = values; } if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2); for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) { @@ -132268,19 +139967,16 @@ if (require('./_descriptors')) { return result; }; - var $of = function of() /* ...items */{ + var $of = function of(/* ...items */) { var index = 0; var length = arguments.length; var result = allocate(this, length); - while (length > index) { - result[index] = arguments[index++]; - }return result; + while (length > index) result[index] = arguments[index++]; + return result; }; // iOS Safari 6.x fails here - var TO_LOCALE_BUG = !!Uint8Array && fails(function () { - arrayToLocaleString.call(new Uint8Array(1)); - }); + var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); }); var $toLocaleString = function toLocaleString() { return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments); @@ -132293,12 +139989,12 @@ if (require('./_descriptors')) { every: function every(callbackfn /* , thisArg */) { return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, - fill: function fill(value /* , start, end */) { - // eslint-disable-line no-unused-vars + fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars return arrayFill.apply(validate(this), arguments); }, filter: function filter(callbackfn /* , thisArg */) { - return speciesFromList(this, arrayFilter(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined)); + return speciesFromList(this, arrayFilter(validate(this), callbackfn, + arguments.length > 1 ? arguments[1] : undefined)); }, find: function find(predicate /* , thisArg */) { return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); @@ -132315,23 +140011,19 @@ if (require('./_descriptors')) { includes: function includes(searchElement /* , fromIndex */) { return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }, - join: function join(separator) { - // eslint-disable-line no-unused-vars + join: function join(separator) { // eslint-disable-line no-unused-vars return arrayJoin.apply(validate(this), arguments); }, - lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { - // eslint-disable-line no-unused-vars + lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars return arrayLastIndexOf.apply(validate(this), arguments); }, map: function map(mapfn /* , thisArg */) { return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined); }, - reduce: function reduce(callbackfn /* , initialValue */) { - // eslint-disable-line no-unused-vars + reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars return arrayReduce.apply(validate(this), arguments); }, - reduceRight: function reduceRight(callbackfn /* , initialValue */) { - // eslint-disable-line no-unused-vars + reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars return arrayReduceRight.apply(validate(this), arguments); }, reverse: function reverse() { @@ -132344,7 +140036,7 @@ if (require('./_descriptors')) { value = that[index]; that[index++] = that[--length]; that[length] = value; - }return that; + } return that; }, some: function some(callbackfn /* , thisArg */) { return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); @@ -132356,7 +140048,11 @@ if (require('./_descriptors')) { var O = validate(this); var length = O.length; var $begin = toAbsoluteIndex(begin, length); - return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)); + return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))( + O.buffer, + O.byteOffset + $begin * O.BYTES_PER_ELEMENT, + toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin) + ); } }; @@ -132372,9 +140068,7 @@ if (require('./_descriptors')) { var len = toLength(src.length); var index = 0; if (len + offset > length) throw RangeError(WRONG_LENGTH); - while (index < len) { - this[offset + index] = src[index++]; - } + while (index < len) this[offset + index] = src[index++]; }; var $iterators = { @@ -132389,19 +140083,32 @@ if (require('./_descriptors')) { } }; - var isTAIndex = function isTAIndex(target, key) { - return isObject(target) && target[TYPED_ARRAY] && (typeof key === 'undefined' ? 'undefined' : _typeof(key)) != 'symbol' && key in target && String(+key) == String(key); + var isTAIndex = function (target, key) { + return isObject(target) + && target[TYPED_ARRAY] + && typeof key != 'symbol' + && key in target + && String(+key) == String(key); }; var $getDesc = function getOwnPropertyDescriptor(target, key) { - return isTAIndex(target, key = toPrimitive(key, true)) ? propertyDesc(2, target[key]) : gOPD(target, key); + return isTAIndex(target, key = toPrimitive(key, true)) + ? propertyDesc(2, target[key]) + : gOPD(target, key); }; var $setDesc = function defineProperty(target, key, desc) { - if (isTAIndex(target, key = toPrimitive(key, true)) && isObject(desc) && has(desc, 'value') && !has(desc, 'get') && !has(desc, 'set') - // TODO: add validation descriptor w/o calling accessors - && !desc.configurable && (!has(desc, 'writable') || desc.writable) && (!has(desc, 'enumerable') || desc.enumerable)) { + if (isTAIndex(target, key = toPrimitive(key, true)) + && isObject(desc) + && has(desc, 'value') + && !has(desc, 'get') + && !has(desc, 'set') + // TODO: add validation descriptor w/o calling accessors + && !desc.configurable + && (!has(desc, 'writable') || desc.writable) + && (!has(desc, 'enumerable') || desc.enumerable) + ) { target[key] = desc.value; return target; - }return dP(target, key, desc); + } return dP(target, key, desc); }; if (!ALL_CONSTRUCTORS) { @@ -132414,9 +140121,7 @@ if (require('./_descriptors')) { defineProperty: $setDesc }); - if (fails(function () { - arrayToString.call({}); - })) { + if (fails(function () { arrayToString.call({}); })) { arrayToString = arrayToLocaleString = function toString() { return arrayJoin.call(this); }; @@ -132428,7 +140133,7 @@ if (require('./_descriptors')) { redefineAll($TypedArrayPrototype$, { slice: $slice, set: $set, - constructor: function constructor() {/* noop */}, + constructor: function () { /* noop */ }, toString: arrayToString, toLocaleString: $toLocaleString }); @@ -132437,9 +140142,7 @@ if (require('./_descriptors')) { addGetter($TypedArrayPrototype$, 'byteLength', 'l'); addGetter($TypedArrayPrototype$, 'length', 'e'); dP($TypedArrayPrototype$, TAG, { - get: function get() { - return this[TYPED_ARRAY]; - } + get: function () { return this[TYPED_ARRAY]; } }); // eslint-disable-next-line max-statements @@ -132454,21 +140157,21 @@ if (require('./_descriptors')) { var FORCED = !TypedArray || !$typed.ABV; var O = {}; var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE]; - var getter = function getter(that, index) { + var getter = function (that, index) { var data = that._d; return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN); }; - var setter = function setter(that, index, value) { + var setter = function (that, index, value) { var data = that._d; if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff; data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN); }; - var addElement = function addElement(that, index) { + var addElement = function (that, index) { dP(that, index, { - get: function get() { + get: function () { return getter(this, index); }, - set: function set(value) { + set: function (value) { return setter(this, index, value); }, enumerable: true @@ -132509,9 +140212,7 @@ if (require('./_descriptors')) { e: length, v: new $DataView(buffer) }); - while (index < length) { - addElement(that, index++); - } + while (index < length) addElement(that, index++); }); TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$); hide(TypedArrayPrototype, 'constructor', TypedArray); @@ -132532,7 +140233,11 @@ if (require('./_descriptors')) { // https://github.com/websockets/ws/pull/645 if (!isObject(data)) return new Base(toIndex(data)); if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { - return $length !== undefined ? new Base(data, toOffset($offset, BYTES), $length) : $offset !== undefined ? new Base(data, toOffset($offset, BYTES)) : new Base(data); + return $length !== undefined + ? new Base(data, toOffset($offset, BYTES), $length) + : $offset !== undefined + ? new Base(data, toOffset($offset, BYTES)) + : new Base(data); } if (TYPED_ARRAY in data) return fromList(TypedArray, data); return $from.call(TypedArray, data); @@ -132544,7 +140249,8 @@ if (require('./_descriptors')) { if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray; } var $nativeIterator = TypedArrayPrototype[ITERATOR]; - var CORRECT_ITER_NAME = !!$nativeIterator && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined); + var CORRECT_ITER_NAME = !!$nativeIterator + && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined); var $iterator = $iterators.values; hide(TypedArray, TYPED_CONSTRUCTOR, true); hide(TypedArrayPrototype, TYPED_ARRAY, NAME); @@ -132553,9 +140259,7 @@ if (require('./_descriptors')) { if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) { dP(TypedArrayPrototype, TAG, { - get: function get() { - return NAME; - } + get: function () { return NAME; } }); } @@ -132567,9 +140271,7 @@ if (require('./_descriptors')) { BYTES_PER_ELEMENT: BYTES }); - $export($export.S + $export.F * fails(function () { - Base.of.call(TypedArray, 1); - }), NAME, { + $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, { from: $from, of: $of }); @@ -132599,11 +140301,10 @@ if (require('./_descriptors')) { Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator; if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator); }; -} else module.exports = function () {/* empty */}; +} else module.exports = function () { /* empty */ }; -},{"./_an-instance":501,"./_array-copy-within":503,"./_array-fill":504,"./_array-includes":506,"./_array-methods":507,"./_classof":512,"./_ctx":520,"./_descriptors":524,"./_export":528,"./_fails":530,"./_global":535,"./_has":536,"./_hide":537,"./_is-array-iter":543,"./_is-object":546,"./_iter-detect":551,"./_iterators":553,"./_library":554,"./_object-create":565,"./_object-dp":566,"./_object-gopd":569,"./_object-gopn":571,"./_object-gpo":573,"./_property-desc":584,"./_redefine-all":585,"./_set-species":592,"./_species-constructor":596,"./_to-absolute-index":606,"./_to-index":607,"./_to-integer":608,"./_to-length":610,"./_to-object":611,"./_to-primitive":612,"./_typed":615,"./_typed-buffer":614,"./_uid":616,"./_wks":621,"./core.get-iterator-method":622,"./es6.array.iterator":634}],614:[function(require,module,exports){ +},{"./_an-instance":515,"./_array-copy-within":517,"./_array-fill":518,"./_array-includes":520,"./_array-methods":521,"./_classof":526,"./_ctx":534,"./_descriptors":538,"./_export":542,"./_fails":544,"./_global":549,"./_has":550,"./_hide":551,"./_is-array-iter":557,"./_is-object":560,"./_iter-detect":565,"./_iterators":567,"./_library":568,"./_object-create":579,"./_object-dp":580,"./_object-gopd":583,"./_object-gopn":585,"./_object-gpo":587,"./_property-desc":598,"./_redefine-all":599,"./_set-species":606,"./_species-constructor":610,"./_to-absolute-index":620,"./_to-index":621,"./_to-integer":622,"./_to-length":624,"./_to-object":625,"./_to-primitive":626,"./_typed":629,"./_typed-buffer":628,"./_uid":630,"./_wks":635,"./core.get-iterator-method":636,"./es6.array.iterator":648}],628:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var DESCRIPTORS = require('./_descriptors'); var LIBRARY = require('./_library'); @@ -132685,10 +140386,10 @@ function packIEEE754(value, mLen, nBytes) { e = 0; } } - for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8) {} + for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8); e = e << mLen | m; eLen += mLen; - for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8) {} + for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8); buffer[--i] |= s * 128; return buffer; } @@ -132702,11 +140403,11 @@ function unpackIEEE754(buffer, mLen, nBytes) { var e = s & 127; var m; s >>= 7; - for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8) {} + for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8); m = e & (1 << -nBits) - 1; e >>= -nBits; nBits += mLen; - for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8) {} + for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8); if (e === 0) { e = 1 - eBias; } else if (e === eMax) { @@ -132714,7 +140415,7 @@ function unpackIEEE754(buffer, mLen, nBytes) { } else { m = m + pow(2, mLen); e = e - eBias; - }return (s ? -1 : 1) * m * pow(2, e - mLen); + } return (s ? -1 : 1) * m * pow(2, e - mLen); } function unpackI32(bytes) { @@ -132737,9 +140438,7 @@ function packF32(it) { } function addGetter(C, key, internal) { - dP(C[PROTOTYPE], key, { get: function get() { - return this[internal]; - } }); + dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } }); } function get(view, bytes, index, isLittleEndian) { @@ -132758,9 +140457,7 @@ function set(view, bytes, index, conversion, value, isLittleEndian) { var store = view[$BUFFER]._b; var start = intIndex + view[$OFFSET]; var pack = conversion(+value); - for (var i = 0; i < bytes; i++) { - store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; - } + for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; } if (!$typed.ABV) { @@ -132884,9 +140581,7 @@ hide($DataView[PROTOTYPE], $typed.VIEW, true); exports[ARRAY_BUFFER] = $ArrayBuffer; exports[DATA_VIEW] = $DataView; -},{"./_an-instance":501,"./_array-fill":504,"./_descriptors":524,"./_fails":530,"./_global":535,"./_hide":537,"./_library":554,"./_object-dp":566,"./_object-gopn":571,"./_redefine-all":585,"./_set-to-string-tag":593,"./_to-index":607,"./_to-integer":608,"./_to-length":610,"./_typed":615}],615:[function(require,module,exports){ -'use strict'; - +},{"./_an-instance":515,"./_array-fill":518,"./_descriptors":538,"./_fails":544,"./_global":549,"./_hide":551,"./_library":568,"./_object-dp":580,"./_object-gopn":585,"./_redefine-all":599,"./_set-to-string-tag":607,"./_to-index":621,"./_to-integer":622,"./_to-length":624,"./_typed":629}],629:[function(require,module,exports){ var global = require('./_global'); var hide = require('./_hide'); var uid = require('./_uid'); @@ -132898,7 +140593,9 @@ var i = 0; var l = 9; var Typed; -var TypedArrayConstructors = 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'.split(','); +var TypedArrayConstructors = ( + 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array' +).split(','); while (i < l) { if (Typed = global[TypedArrayConstructors[i++]]) { @@ -132914,41 +140611,33 @@ module.exports = { VIEW: VIEW }; -},{"./_global":535,"./_hide":537,"./_uid":616}],616:[function(require,module,exports){ -arguments[4][479][0].apply(exports,arguments) -},{"dup":479}],617:[function(require,module,exports){ -arguments[4][480][0].apply(exports,arguments) -},{"./_global":535,"dup":480}],618:[function(require,module,exports){ -'use strict'; - +},{"./_global":549,"./_hide":551,"./_uid":630}],630:[function(require,module,exports){ +arguments[4][493][0].apply(exports,arguments) +},{"dup":493}],631:[function(require,module,exports){ +arguments[4][494][0].apply(exports,arguments) +},{"./_global":549,"dup":494}],632:[function(require,module,exports){ var isObject = require('./_is-object'); module.exports = function (it, TYPE) { if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); return it; }; -},{"./_is-object":546}],619:[function(require,module,exports){ -arguments[4][481][0].apply(exports,arguments) -},{"./_core":518,"./_global":535,"./_library":554,"./_object-dp":566,"./_wks-ext":620,"dup":481}],620:[function(require,module,exports){ -arguments[4][482][0].apply(exports,arguments) -},{"./_wks":621,"dup":482}],621:[function(require,module,exports){ -arguments[4][483][0].apply(exports,arguments) -},{"./_global":535,"./_shared":595,"./_uid":616,"dup":483}],622:[function(require,module,exports){ -arguments[4][484][0].apply(exports,arguments) -},{"./_classof":512,"./_core":518,"./_iterators":553,"./_wks":621,"dup":484}],623:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560}],633:[function(require,module,exports){ +arguments[4][495][0].apply(exports,arguments) +},{"./_core":532,"./_global":549,"./_library":568,"./_object-dp":580,"./_wks-ext":634,"dup":495}],634:[function(require,module,exports){ +arguments[4][496][0].apply(exports,arguments) +},{"./_wks":635,"dup":496}],635:[function(require,module,exports){ +arguments[4][497][0].apply(exports,arguments) +},{"./_global":549,"./_shared":609,"./_uid":630,"dup":497}],636:[function(require,module,exports){ +arguments[4][498][0].apply(exports,arguments) +},{"./_classof":526,"./_core":532,"./_iterators":567,"./_wks":635,"dup":498}],637:[function(require,module,exports){ // https://github.com/benjamingr/RexExp.escape var $export = require('./_export'); var $re = require('./_replacer')(/[\\^$*+?.()|[\]{}]/g, '\\$&'); -$export($export.S, 'RegExp', { escape: function escape(it) { - return $re(it); - } }); - -},{"./_export":528,"./_replacer":587}],624:[function(require,module,exports){ -'use strict'; +$export($export.S, 'RegExp', { escape: function escape(it) { return $re(it); } }); +},{"./_export":542,"./_replacer":601}],638:[function(require,module,exports){ // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) var $export = require('./_export'); @@ -132956,9 +140645,8 @@ $export($export.P, 'Array', { copyWithin: require('./_array-copy-within') }); require('./_add-to-unscopables')('copyWithin'); -},{"./_add-to-unscopables":500,"./_array-copy-within":503,"./_export":528}],625:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-copy-within":517,"./_export":542}],639:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $every = require('./_array-methods')(4); @@ -132969,9 +140657,7 @@ $export($export.P + $export.F * !require('./_strict-method')([].every, true), 'A } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],626:[function(require,module,exports){ -'use strict'; - +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],640:[function(require,module,exports){ // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) var $export = require('./_export'); @@ -132979,9 +140665,8 @@ $export($export.P, 'Array', { fill: require('./_array-fill') }); require('./_add-to-unscopables')('fill'); -},{"./_add-to-unscopables":500,"./_array-fill":504,"./_export":528}],627:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-fill":518,"./_export":542}],641:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $filter = require('./_array-methods')(2); @@ -132992,18 +140677,15 @@ $export($export.P + $export.F * !require('./_strict-method')([].filter, true), ' } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],628:[function(require,module,exports){ +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],642:[function(require,module,exports){ 'use strict'; // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) - var $export = require('./_export'); var $find = require('./_array-methods')(6); var KEY = 'findIndex'; var forced = true; // Shouldn't skip holes -if (KEY in []) Array(1)[KEY](function () { - forced = false; -}); +if (KEY in []) Array(1)[KEY](function () { forced = false; }); $export($export.P + $export.F * forced, 'Array', { findIndex: function findIndex(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); @@ -133011,18 +140693,15 @@ $export($export.P + $export.F * forced, 'Array', { }); require('./_add-to-unscopables')(KEY); -},{"./_add-to-unscopables":500,"./_array-methods":507,"./_export":528}],629:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-methods":521,"./_export":542}],643:[function(require,module,exports){ 'use strict'; // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) - var $export = require('./_export'); var $find = require('./_array-methods')(5); var KEY = 'find'; var forced = true; // Shouldn't skip holes -if (KEY in []) Array(1)[KEY](function () { - forced = false; -}); +if (KEY in []) Array(1)[KEY](function () { forced = false; }); $export($export.P + $export.F * forced, 'Array', { find: function find(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); @@ -133030,9 +140709,8 @@ $export($export.P + $export.F * forced, 'Array', { }); require('./_add-to-unscopables')(KEY); -},{"./_add-to-unscopables":500,"./_array-methods":507,"./_export":528}],630:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-methods":521,"./_export":542}],644:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $forEach = require('./_array-methods')(0); var STRICT = require('./_strict-method')([].forEach, true); @@ -133044,9 +140722,8 @@ $export($export.P + $export.F * !STRICT, 'Array', { } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],631:[function(require,module,exports){ +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],645:[function(require,module,exports){ 'use strict'; - var ctx = require('./_ctx'); var $export = require('./_export'); var toObject = require('./_to-object'); @@ -133056,9 +140733,7 @@ var toLength = require('./_to-length'); var createProperty = require('./_create-property'); var getIterFn = require('./core.get-iterator-method'); -$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { - Array.from(iter); -}), 'Array', { +$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', { // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { var O = toObject(arrayLike); @@ -133086,9 +140761,8 @@ $export($export.S + $export.F * !require('./_iter-detect')(function (iter) { } }); -},{"./_create-property":519,"./_ctx":520,"./_export":528,"./_is-array-iter":543,"./_iter-call":548,"./_iter-detect":551,"./_to-length":610,"./_to-object":611,"./core.get-iterator-method":622}],632:[function(require,module,exports){ +},{"./_create-property":533,"./_ctx":534,"./_export":542,"./_is-array-iter":557,"./_iter-call":562,"./_iter-detect":565,"./_to-length":624,"./_to-object":625,"./core.get-iterator-method":636}],646:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $indexOf = require('./_array-includes')(false); var $native = [].indexOf; @@ -133098,25 +140772,23 @@ $export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($ // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex]) indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { return NEGATIVE_ZERO - // convert -0 to +0 - ? $native.apply(this, arguments) || 0 : $indexOf(this, searchElement, arguments[1]); + // convert -0 to +0 + ? $native.apply(this, arguments) || 0 + : $indexOf(this, searchElement, arguments[1]); } }); -},{"./_array-includes":506,"./_export":528,"./_strict-method":597}],633:[function(require,module,exports){ -'use strict'; - +},{"./_array-includes":520,"./_export":542,"./_strict-method":611}],647:[function(require,module,exports){ // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) var $export = require('./_export'); $export($export.S, 'Array', { isArray: require('./_is-array') }); -},{"./_export":528,"./_is-array":544}],634:[function(require,module,exports){ -arguments[4][485][0].apply(exports,arguments) -},{"./_add-to-unscopables":500,"./_iter-define":550,"./_iter-step":552,"./_iterators":553,"./_to-iobject":609,"dup":485}],635:[function(require,module,exports){ +},{"./_export":542,"./_is-array":558}],648:[function(require,module,exports){ +arguments[4][499][0].apply(exports,arguments) +},{"./_add-to-unscopables":514,"./_iter-define":564,"./_iter-step":566,"./_iterators":567,"./_to-iobject":623,"dup":499}],649:[function(require,module,exports){ 'use strict'; // 22.1.3.13 Array.prototype.join(separator) - var $export = require('./_export'); var toIObject = require('./_to-iobject'); var arrayJoin = [].join; @@ -133128,9 +140800,8 @@ $export($export.P + $export.F * (require('./_iobject') != Object || !require('./ } }); -},{"./_export":528,"./_iobject":542,"./_strict-method":597,"./_to-iobject":609}],636:[function(require,module,exports){ +},{"./_export":542,"./_iobject":556,"./_strict-method":611,"./_to-iobject":623}],650:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toIObject = require('./_to-iobject'); var toInteger = require('./_to-integer'); @@ -133148,15 +140819,13 @@ $export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($ var index = length - 1; if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1])); if (index < 0) index = length + index; - for (; index >= 0; index--) { - if (index in O) if (O[index] === searchElement) return index || 0; - }return -1; + for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0; + return -1; } }); -},{"./_export":528,"./_strict-method":597,"./_to-integer":608,"./_to-iobject":609,"./_to-length":610}],637:[function(require,module,exports){ +},{"./_export":542,"./_strict-method":611,"./_to-integer":622,"./_to-iobject":623,"./_to-length":624}],651:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $map = require('./_array-methods')(1); @@ -133167,32 +140836,29 @@ $export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Arr } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],638:[function(require,module,exports){ +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],652:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var createProperty = require('./_create-property'); // WebKit Array.of isn't generic $export($export.S + $export.F * require('./_fails')(function () { - function F() {/* empty */} + function F() { /* empty */ } return !(Array.of.call(F) instanceof F); }), 'Array', { // 22.1.2.3 Array.of( ...items) - of: function of() /* ...args */{ + of: function of(/* ...args */) { var index = 0; var aLen = arguments.length; var result = new (typeof this == 'function' ? this : Array)(aLen); - while (aLen > index) { - createProperty(result, index, arguments[index++]); - }result.length = aLen; + while (aLen > index) createProperty(result, index, arguments[index++]); + result.length = aLen; return result; } }); -},{"./_create-property":519,"./_export":528,"./_fails":530}],639:[function(require,module,exports){ +},{"./_create-property":533,"./_export":542,"./_fails":544}],653:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $reduce = require('./_array-reduce'); @@ -133203,9 +140869,8 @@ $export($export.P + $export.F * !require('./_strict-method')([].reduceRight, tru } }); -},{"./_array-reduce":508,"./_export":528,"./_strict-method":597}],640:[function(require,module,exports){ +},{"./_array-reduce":522,"./_export":542,"./_strict-method":611}],654:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $reduce = require('./_array-reduce'); @@ -133216,9 +140881,8 @@ $export($export.P + $export.F * !require('./_strict-method')([].reduce, true), ' } }); -},{"./_array-reduce":508,"./_export":528,"./_strict-method":597}],641:[function(require,module,exports){ +},{"./_array-reduce":522,"./_export":542,"./_strict-method":611}],655:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var html = require('./_html'); var cof = require('./_cof'); @@ -133240,15 +140904,15 @@ $export($export.P + $export.F * require('./_fails')(function () { var size = toLength(upTo - start); var cloned = new Array(size); var i = 0; - for (; i < size; i++) { - cloned[i] = klass == 'String' ? this.charAt(start + i) : this[start + i]; - }return cloned; + for (; i < size; i++) cloned[i] = klass == 'String' + ? this.charAt(start + i) + : this[start + i]; + return cloned; } }); -},{"./_cof":513,"./_export":528,"./_fails":530,"./_html":538,"./_to-absolute-index":606,"./_to-length":610}],642:[function(require,module,exports){ +},{"./_cof":527,"./_export":542,"./_fails":544,"./_html":552,"./_to-absolute-index":620,"./_to-length":624}],656:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $some = require('./_array-methods')(3); @@ -133259,9 +140923,8 @@ $export($export.P + $export.F * !require('./_strict-method')([].some, true), 'Ar } }); -},{"./_array-methods":507,"./_export":528,"./_strict-method":597}],643:[function(require,module,exports){ +},{"./_array-methods":521,"./_export":542,"./_strict-method":611}],657:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var aFunction = require('./_a-function'); var toObject = require('./_to-object'); @@ -133279,28 +140942,22 @@ $export($export.P + $export.F * (fails(function () { }) || !require('./_strict-method')($sort)), 'Array', { // 22.1.3.25 Array.prototype.sort(comparefn) sort: function sort(comparefn) { - return comparefn === undefined ? $sort.call(toObject(this)) : $sort.call(toObject(this), aFunction(comparefn)); + return comparefn === undefined + ? $sort.call(toObject(this)) + : $sort.call(toObject(this), aFunction(comparefn)); } }); -},{"./_a-function":498,"./_export":528,"./_fails":530,"./_strict-method":597,"./_to-object":611}],644:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_export":542,"./_fails":544,"./_strict-method":611,"./_to-object":625}],658:[function(require,module,exports){ require('./_set-species')('Array'); -},{"./_set-species":592}],645:[function(require,module,exports){ -'use strict'; - +},{"./_set-species":606}],659:[function(require,module,exports){ // 20.3.3.1 / 15.9.4.4 Date.now() var $export = require('./_export'); -$export($export.S, 'Date', { now: function now() { - return new Date().getTime(); - } }); - -},{"./_export":528}],646:[function(require,module,exports){ -'use strict'; +$export($export.S, 'Date', { now: function () { return new Date().getTime(); } }); +},{"./_export":542}],660:[function(require,module,exports){ // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() var $export = require('./_export'); var toISOString = require('./_date-to-iso-string'); @@ -133310,17 +140967,15 @@ $export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'D toISOString: toISOString }); -},{"./_date-to-iso-string":521,"./_export":528}],647:[function(require,module,exports){ +},{"./_date-to-iso-string":535,"./_export":542}],661:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var toPrimitive = require('./_to-primitive'); $export($export.P + $export.F * require('./_fails')(function () { - return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({ toISOString: function toISOString() { - return 1; - } }) !== 1; + return new Date(NaN).toJSON() !== null + || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1; }), 'Date', { // eslint-disable-next-line no-unused-vars toJSON: function toJSON(key) { @@ -133330,17 +140985,13 @@ $export($export.P + $export.F * require('./_fails')(function () { } }); -},{"./_export":528,"./_fails":530,"./_to-object":611,"./_to-primitive":612}],648:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_fails":544,"./_to-object":625,"./_to-primitive":626}],662:[function(require,module,exports){ var TO_PRIMITIVE = require('./_wks')('toPrimitive'); var proto = Date.prototype; if (!(TO_PRIMITIVE in proto)) require('./_hide')(proto, TO_PRIMITIVE, require('./_date-to-primitive')); -},{"./_date-to-primitive":522,"./_hide":537,"./_wks":621}],649:[function(require,module,exports){ -'use strict'; - +},{"./_date-to-primitive":536,"./_hide":551,"./_wks":635}],663:[function(require,module,exports){ var DateProto = Date.prototype; var INVALID_DATE = 'Invalid Date'; var TO_STRING = 'toString'; @@ -133354,34 +141005,28 @@ if (new Date(NaN) + '' != INVALID_DATE) { }); } -},{"./_redefine":586}],650:[function(require,module,exports){ -'use strict'; - +},{"./_redefine":600}],664:[function(require,module,exports){ // 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...) var $export = require('./_export'); $export($export.P, 'Function', { bind: require('./_bind') }); -},{"./_bind":511,"./_export":528}],651:[function(require,module,exports){ +},{"./_bind":525,"./_export":542}],665:[function(require,module,exports){ 'use strict'; - var isObject = require('./_is-object'); var getPrototypeOf = require('./_object-gpo'); var HAS_INSTANCE = require('./_wks')('hasInstance'); var FunctionProto = Function.prototype; // 19.2.3.6 Function.prototype[@@hasInstance](V) -if (!(HAS_INSTANCE in FunctionProto)) require('./_object-dp').f(FunctionProto, HAS_INSTANCE, { value: function value(O) { - if (typeof this != 'function' || !isObject(O)) return false; - if (!isObject(this.prototype)) return O instanceof this; - // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: - while (O = getPrototypeOf(O)) { - if (this.prototype === O) return true; - }return false; - } }); - -},{"./_is-object":546,"./_object-dp":566,"./_object-gpo":573,"./_wks":621}],652:[function(require,module,exports){ -'use strict'; +if (!(HAS_INSTANCE in FunctionProto)) require('./_object-dp').f(FunctionProto, HAS_INSTANCE, { value: function (O) { + if (typeof this != 'function' || !isObject(O)) return false; + if (!isObject(this.prototype)) return O instanceof this; + // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: + while (O = getPrototypeOf(O)) if (this.prototype === O) return true; + return false; +} }); +},{"./_is-object":560,"./_object-dp":580,"./_object-gpo":587,"./_wks":635}],666:[function(require,module,exports){ var dP = require('./_object-dp').f; var FProto = Function.prototype; var nameRE = /^\s*function ([^ (]*)/; @@ -133390,7 +141035,7 @@ var NAME = 'name'; // 19.2.4.2 name NAME in FProto || require('./_descriptors') && dP(FProto, NAME, { configurable: true, - get: function get() { + get: function () { try { return ('' + this).match(nameRE)[1]; } catch (e) { @@ -133399,18 +141044,15 @@ NAME in FProto || require('./_descriptors') && dP(FProto, NAME, { } }); -},{"./_descriptors":524,"./_object-dp":566}],653:[function(require,module,exports){ +},{"./_descriptors":538,"./_object-dp":580}],667:[function(require,module,exports){ 'use strict'; - var strong = require('./_collection-strong'); var validate = require('./_validate-collection'); var MAP = 'Map'; // 23.1 Map Objects module.exports = require('./_collection')(MAP, function (get) { - return function Map() { - return get(this, arguments.length > 0 ? arguments[0] : undefined); - }; + return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.1.3.6 Map.prototype.get(key) get: function get(key) { @@ -133423,9 +141065,7 @@ module.exports = require('./_collection')(MAP, function (get) { } }, strong, true); -},{"./_collection":517,"./_collection-strong":514,"./_validate-collection":618}],654:[function(require,module,exports){ -'use strict'; - +},{"./_collection":531,"./_collection-strong":528,"./_validate-collection":632}],668:[function(require,module,exports){ // 20.2.2.3 Math.acosh(x) var $export = require('./_export'); var log1p = require('./_math-log1p'); @@ -133433,18 +141073,19 @@ var sqrt = Math.sqrt; var $acosh = Math.acosh; $export($export.S + $export.F * !($acosh -// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 -&& Math.floor($acosh(Number.MAX_VALUE)) == 710 -// Tor Browser bug: Math.acosh(Infinity) -> NaN -&& $acosh(Infinity) == Infinity), 'Math', { + // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 + && Math.floor($acosh(Number.MAX_VALUE)) == 710 + // Tor Browser bug: Math.acosh(Infinity) -> NaN + && $acosh(Infinity) == Infinity +), 'Math', { acosh: function acosh(x) { - return (x = +x) < 1 ? NaN : x > 94906265.62425156 ? Math.log(x) + Math.LN2 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); + return (x = +x) < 1 ? NaN : x > 94906265.62425156 + ? Math.log(x) + Math.LN2 + : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); } }); -},{"./_export":528,"./_math-log1p":557}],655:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-log1p":571}],669:[function(require,module,exports){ // 20.2.2.5 Math.asinh(x) var $export = require('./_export'); var $asinh = Math.asinh; @@ -133456,9 +141097,7 @@ function asinh(x) { // Tor Browser bug: Math.asinh(0) -> -0 $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh }); -},{"./_export":528}],656:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],670:[function(require,module,exports){ // 20.2.2.7 Math.atanh(x) var $export = require('./_export'); var $atanh = Math.atanh; @@ -133470,9 +141109,7 @@ $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { } }); -},{"./_export":528}],657:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],671:[function(require,module,exports){ // 20.2.2.9 Math.cbrt(x) var $export = require('./_export'); var sign = require('./_math-sign'); @@ -133483,9 +141120,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528,"./_math-sign":559}],658:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-sign":573}],672:[function(require,module,exports){ // 20.2.2.11 Math.clz32(x) var $export = require('./_export'); @@ -133495,9 +141130,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],659:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],673:[function(require,module,exports){ // 20.2.2.12 Math.cosh(x) var $export = require('./_export'); var exp = Math.exp; @@ -133508,33 +141141,26 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],660:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],674:[function(require,module,exports){ // 20.2.2.14 Math.expm1(x) var $export = require('./_export'); var $expm1 = require('./_math-expm1'); $export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 }); -},{"./_export":528,"./_math-expm1":555}],661:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-expm1":569}],675:[function(require,module,exports){ // 20.2.2.16 Math.fround(x) var $export = require('./_export'); $export($export.S, 'Math', { fround: require('./_math-fround') }); -},{"./_export":528,"./_math-fround":556}],662:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-fround":570}],676:[function(require,module,exports){ // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) var $export = require('./_export'); var abs = Math.abs; $export($export.S, 'Math', { - hypot: function hypot(value1, value2) { - // eslint-disable-line no-unused-vars + hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars var sum = 0; var i = 0; var aLen = arguments.length; @@ -133555,9 +141181,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],663:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],677:[function(require,module,exports){ // 20.2.2.18 Math.imul(x, y) var $export = require('./_export'); var $imul = Math.imul; @@ -133576,9 +141200,7 @@ $export($export.S + $export.F * require('./_fails')(function () { } }); -},{"./_export":528,"./_fails":530}],664:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_fails":544}],678:[function(require,module,exports){ // 20.2.2.21 Math.log10(x) var $export = require('./_export'); @@ -133588,17 +141210,13 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],665:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],679:[function(require,module,exports){ // 20.2.2.20 Math.log1p(x) var $export = require('./_export'); $export($export.S, 'Math', { log1p: require('./_math-log1p') }); -},{"./_export":528,"./_math-log1p":557}],666:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-log1p":571}],680:[function(require,module,exports){ // 20.2.2.22 Math.log2(x) var $export = require('./_export'); @@ -133608,17 +141226,13 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],667:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],681:[function(require,module,exports){ // 20.2.2.28 Math.sign(x) var $export = require('./_export'); $export($export.S, 'Math', { sign: require('./_math-sign') }); -},{"./_export":528,"./_math-sign":559}],668:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-sign":573}],682:[function(require,module,exports){ // 20.2.2.30 Math.sinh(x) var $export = require('./_export'); var expm1 = require('./_math-expm1'); @@ -133629,13 +141243,13 @@ $export($export.S + $export.F * require('./_fails')(function () { return !Math.sinh(-2e-17) != -2e-17; }), 'Math', { sinh: function sinh(x) { - return Math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); + return Math.abs(x = +x) < 1 + ? (expm1(x) - expm1(-x)) / 2 + : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); } }); -},{"./_export":528,"./_fails":530,"./_math-expm1":555}],669:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_fails":544,"./_math-expm1":569}],683:[function(require,module,exports){ // 20.2.2.33 Math.tanh(x) var $export = require('./_export'); var expm1 = require('./_math-expm1'); @@ -133649,9 +141263,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528,"./_math-expm1":555}],670:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-expm1":569}],684:[function(require,module,exports){ // 20.2.2.34 Math.trunc(x) var $export = require('./_export'); @@ -133661,9 +141273,8 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],671:[function(require,module,exports){ +},{"./_export":542}],685:[function(require,module,exports){ 'use strict'; - var global = require('./_global'); var has = require('./_has'); var cof = require('./_cof'); @@ -133683,7 +141294,7 @@ var BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER; var TRIM = 'trim' in String.prototype; // 7.1.3 ToNumber(argument) -var toNumber = function toNumber(argument) { +var toNumber = function (argument) { var it = toPrimitive(argument, false); if (typeof it == 'string' && it.length > 2) { it = TRIM ? it.trim() : $trim(it, 3); @@ -133694,21 +141305,18 @@ var toNumber = function toNumber(argument) { if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix } else if (first === 48) { switch (it.charCodeAt(1)) { - case 66:case 98: - radix = 2;maxCode = 49;break; // fast equal /^0b[01]+$/i - case 79:case 111: - radix = 8;maxCode = 55;break; // fast equal /^0o[0-7]+$/i - default: - return +it; + case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i + case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i + default: return +it; } for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { code = digits.charCodeAt(i); // parseInt parses a string to a first unavailable symbol // but ToNumber should return NaN if a string contains unavailable symbols if (code < 48 || code > maxCode) return NaN; - }return parseInt(digits, radix); + } return parseInt(digits, radix); } - }return +it; + } return +it; }; if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { @@ -133716,16 +141324,17 @@ if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { var it = arguments.length < 1 ? 0 : value; var that = this; return that instanceof $Number - // check on 1..constructor(foo) case - && (BROKEN_COF ? fails(function () { - proto.valueOf.call(that); - }) : cof(that) != NUMBER) ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); + // check on 1..constructor(foo) case + && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) + ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); }; for (var keys = require('./_descriptors') ? gOPN(Base) : ( - // ES3: - 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + - // ES6 (in case, if modules with ES6 Number statics required before): - 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger').split(','), j = 0, key; keys.length > j; j++) { + // ES3: + 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + + // ES6 (in case, if modules with ES6 Number statics required before): + 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' + ).split(','), j = 0, key; keys.length > j; j++) { if (has(Base, key = keys[j]) && !has($Number, key)) { dP($Number, key, gOPD(Base, key)); } @@ -133735,17 +141344,13 @@ if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { require('./_redefine')(global, NUMBER, $Number); } -},{"./_cof":513,"./_descriptors":524,"./_fails":530,"./_global":535,"./_has":536,"./_inherit-if-required":540,"./_object-create":565,"./_object-dp":566,"./_object-gopd":569,"./_object-gopn":571,"./_redefine":586,"./_string-trim":603,"./_to-primitive":612}],672:[function(require,module,exports){ -'use strict'; - +},{"./_cof":527,"./_descriptors":538,"./_fails":544,"./_global":549,"./_has":550,"./_inherit-if-required":554,"./_object-create":579,"./_object-dp":580,"./_object-gopd":583,"./_object-gopn":585,"./_redefine":600,"./_string-trim":617,"./_to-primitive":626}],686:[function(require,module,exports){ // 20.1.2.1 Number.EPSILON var $export = require('./_export'); $export($export.S, 'Number', { EPSILON: Math.pow(2, -52) }); -},{"./_export":528}],673:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],687:[function(require,module,exports){ // 20.1.2.2 Number.isFinite(number) var $export = require('./_export'); var _isFinite = require('./_global').isFinite; @@ -133756,17 +141361,13 @@ $export($export.S, 'Number', { } }); -},{"./_export":528,"./_global":535}],674:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_global":549}],688:[function(require,module,exports){ // 20.1.2.3 Number.isInteger(number) var $export = require('./_export'); $export($export.S, 'Number', { isInteger: require('./_is-integer') }); -},{"./_export":528,"./_is-integer":545}],675:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_is-integer":559}],689:[function(require,module,exports){ // 20.1.2.4 Number.isNaN(number) var $export = require('./_export'); @@ -133777,9 +141378,7 @@ $export($export.S, 'Number', { } }); -},{"./_export":528}],676:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],690:[function(require,module,exports){ // 20.1.2.5 Number.isSafeInteger(number) var $export = require('./_export'); var isInteger = require('./_is-integer'); @@ -133791,41 +141390,32 @@ $export($export.S, 'Number', { } }); -},{"./_export":528,"./_is-integer":545}],677:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_is-integer":559}],691:[function(require,module,exports){ // 20.1.2.6 Number.MAX_SAFE_INTEGER var $export = require('./_export'); $export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); -},{"./_export":528}],678:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],692:[function(require,module,exports){ // 20.1.2.10 Number.MIN_SAFE_INTEGER var $export = require('./_export'); $export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); -},{"./_export":528}],679:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],693:[function(require,module,exports){ var $export = require('./_export'); var $parseFloat = require('./_parse-float'); // 20.1.2.12 Number.parseFloat(string) $export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat }); -},{"./_export":528,"./_parse-float":580}],680:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_parse-float":594}],694:[function(require,module,exports){ var $export = require('./_export'); var $parseInt = require('./_parse-int'); // 20.1.2.13 Number.parseInt(string, radix) $export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt }); -},{"./_export":528,"./_parse-int":581}],681:[function(require,module,exports){ +},{"./_export":542,"./_parse-int":595}],695:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toInteger = require('./_to-integer'); var aNumberValue = require('./_a-number-value'); @@ -133836,7 +141426,7 @@ var data = [0, 0, 0, 0, 0, 0]; var ERROR = 'Number.toFixed: incorrect invocation!'; var ZERO = '0'; -var multiply = function multiply(n, c) { +var multiply = function (n, c) { var i = -1; var c2 = c; while (++i < 6) { @@ -133845,16 +141435,16 @@ var multiply = function multiply(n, c) { c2 = floor(c2 / 1e7); } }; -var divide = function divide(n) { +var divide = function (n) { var i = 6; var c = 0; while (--i >= 0) { c += data[i]; data[i] = floor(c / n); - c = c % n * 1e7; + c = (c % n) * 1e7; } }; -var numToString = function numToString() { +var numToString = function () { var i = 6; var s = ''; while (--i >= 0) { @@ -133862,12 +141452,12 @@ var numToString = function numToString() { var t = String(data[i]); s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t; } - }return s; + } return s; }; -var pow = function pow(x, n, acc) { +var pow = function (x, n, acc) { return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); }; -var log = function log(x) { +var log = function (x) { var n = 0; var x2 = x; while (x2 >= 4096) { @@ -133877,10 +141467,15 @@ var log = function log(x) { while (x2 >= 2) { n += 1; x2 /= 2; - }return n; + } return n; }; -$export($export.P + $export.F * (!!$toFixed && (0.00008.toFixed(3) !== '0.000' || 0.9.toFixed(0) !== '1' || 1.255.toFixed(2) !== '1.25' || 1000000000000000128.0.toFixed(0) !== '1000000000000000128') || !require('./_fails')(function () { +$export($export.P + $export.F * (!!$toFixed && ( + 0.00008.toFixed(3) !== '0.000' || + 0.9.toFixed(0) !== '1' || + 1.255.toFixed(2) !== '1.25' || + 1000000000000000128.0.toFixed(0) !== '1000000000000000128' +) || !require('./_fails')(function () { // V8 ~ Android 4.3- $toFixed.call({}); })), 'Number', { @@ -133931,13 +141526,12 @@ $export($export.P + $export.F * (!!$toFixed && (0.00008.toFixed(3) !== '0.000' | m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f)); } else { m = s + m; - }return m; + } return m; } }); -},{"./_a-number-value":499,"./_export":528,"./_fails":530,"./_string-repeat":602,"./_to-integer":608}],682:[function(require,module,exports){ +},{"./_a-number-value":513,"./_export":542,"./_fails":544,"./_string-repeat":616,"./_to-integer":622}],696:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $fails = require('./_fails'); var aNumberValue = require('./_a-number-value'); @@ -133956,27 +141550,21 @@ $export($export.P + $export.F * ($fails(function () { } }); -},{"./_a-number-value":499,"./_export":528,"./_fails":530}],683:[function(require,module,exports){ -arguments[4][486][0].apply(exports,arguments) -},{"./_export":528,"./_object-assign":564,"dup":486}],684:[function(require,module,exports){ -arguments[4][487][0].apply(exports,arguments) -},{"./_export":528,"./_object-create":565,"dup":487}],685:[function(require,module,exports){ -'use strict'; - +},{"./_a-number-value":513,"./_export":542,"./_fails":544}],697:[function(require,module,exports){ +arguments[4][500][0].apply(exports,arguments) +},{"./_export":542,"./_object-assign":578,"dup":500}],698:[function(require,module,exports){ +arguments[4][501][0].apply(exports,arguments) +},{"./_export":542,"./_object-create":579,"dup":501}],699:[function(require,module,exports){ var $export = require('./_export'); // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) $export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperties: require('./_object-dps') }); -},{"./_descriptors":524,"./_export":528,"./_object-dps":567}],686:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_export":542,"./_object-dps":581}],700:[function(require,module,exports){ var $export = require('./_export'); // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) $export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f }); -},{"./_descriptors":524,"./_export":528,"./_object-dp":566}],687:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_export":542,"./_object-dp":580}],701:[function(require,module,exports){ // 19.1.2.5 Object.freeze(O) var isObject = require('./_is-object'); var meta = require('./_meta').onFreeze; @@ -133987,9 +141575,7 @@ require('./_object-sap')('freeze', function ($freeze) { }; }); -},{"./_is-object":546,"./_meta":560,"./_object-sap":577}],688:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_meta":574,"./_object-sap":591}],702:[function(require,module,exports){ // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) var toIObject = require('./_to-iobject'); var $getOwnPropertyDescriptor = require('./_object-gopd').f; @@ -134000,17 +141586,13 @@ require('./_object-sap')('getOwnPropertyDescriptor', function () { }; }); -},{"./_object-gopd":569,"./_object-sap":577,"./_to-iobject":609}],689:[function(require,module,exports){ -'use strict'; - +},{"./_object-gopd":583,"./_object-sap":591,"./_to-iobject":623}],703:[function(require,module,exports){ // 19.1.2.7 Object.getOwnPropertyNames(O) require('./_object-sap')('getOwnPropertyNames', function () { return require('./_object-gopn-ext').f; }); -},{"./_object-gopn-ext":570,"./_object-sap":577}],690:[function(require,module,exports){ -'use strict'; - +},{"./_object-gopn-ext":584,"./_object-sap":591}],704:[function(require,module,exports){ // 19.1.2.9 Object.getPrototypeOf(O) var toObject = require('./_to-object'); var $getPrototypeOf = require('./_object-gpo'); @@ -134021,9 +141603,7 @@ require('./_object-sap')('getPrototypeOf', function () { }; }); -},{"./_object-gpo":573,"./_object-sap":577,"./_to-object":611}],691:[function(require,module,exports){ -'use strict'; - +},{"./_object-gpo":587,"./_object-sap":591,"./_to-object":625}],705:[function(require,module,exports){ // 19.1.2.11 Object.isExtensible(O) var isObject = require('./_is-object'); @@ -134033,9 +141613,7 @@ require('./_object-sap')('isExtensible', function ($isExtensible) { }; }); -},{"./_is-object":546,"./_object-sap":577}],692:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_object-sap":591}],706:[function(require,module,exports){ // 19.1.2.12 Object.isFrozen(O) var isObject = require('./_is-object'); @@ -134045,9 +141623,7 @@ require('./_object-sap')('isFrozen', function ($isFrozen) { }; }); -},{"./_is-object":546,"./_object-sap":577}],693:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_object-sap":591}],707:[function(require,module,exports){ // 19.1.2.13 Object.isSealed(O) var isObject = require('./_is-object'); @@ -134057,16 +141633,12 @@ require('./_object-sap')('isSealed', function ($isSealed) { }; }); -},{"./_is-object":546,"./_object-sap":577}],694:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_object-sap":591}],708:[function(require,module,exports){ // 19.1.3.10 Object.is(value1, value2) var $export = require('./_export'); $export($export.S, 'Object', { is: require('./_same-value') }); -},{"./_export":528,"./_same-value":588}],695:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_same-value":602}],709:[function(require,module,exports){ // 19.1.2.14 Object.keys(O) var toObject = require('./_to-object'); var $keys = require('./_object-keys'); @@ -134077,9 +141649,7 @@ require('./_object-sap')('keys', function () { }; }); -},{"./_object-keys":575,"./_object-sap":577,"./_to-object":611}],696:[function(require,module,exports){ -'use strict'; - +},{"./_object-keys":589,"./_object-sap":591,"./_to-object":625}],710:[function(require,module,exports){ // 19.1.2.15 Object.preventExtensions(O) var isObject = require('./_is-object'); var meta = require('./_meta').onFreeze; @@ -134090,9 +141660,7 @@ require('./_object-sap')('preventExtensions', function ($preventExtensions) { }; }); -},{"./_is-object":546,"./_meta":560,"./_object-sap":577}],697:[function(require,module,exports){ -'use strict'; - +},{"./_is-object":560,"./_meta":574,"./_object-sap":591}],711:[function(require,module,exports){ // 19.1.2.17 Object.seal(O) var isObject = require('./_is-object'); var meta = require('./_meta').onFreeze; @@ -134103,12 +141671,11 @@ require('./_object-sap')('seal', function ($seal) { }; }); -},{"./_is-object":546,"./_meta":560,"./_object-sap":577}],698:[function(require,module,exports){ -arguments[4][488][0].apply(exports,arguments) -},{"./_export":528,"./_set-proto":591,"dup":488}],699:[function(require,module,exports){ +},{"./_is-object":560,"./_meta":574,"./_object-sap":591}],712:[function(require,module,exports){ +arguments[4][502][0].apply(exports,arguments) +},{"./_export":542,"./_set-proto":605,"dup":502}],713:[function(require,module,exports){ 'use strict'; // 19.1.3.6 Object.prototype.toString() - var classof = require('./_classof'); var test = {}; test[require('./_wks')('toStringTag')] = 'z'; @@ -134118,27 +141685,21 @@ if (test + '' != '[object z]') { }, true); } -},{"./_classof":512,"./_redefine":586,"./_wks":621}],700:[function(require,module,exports){ -'use strict'; - +},{"./_classof":526,"./_redefine":600,"./_wks":635}],714:[function(require,module,exports){ var $export = require('./_export'); var $parseFloat = require('./_parse-float'); // 18.2.4 parseFloat(string) $export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat }); -},{"./_export":528,"./_parse-float":580}],701:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_parse-float":594}],715:[function(require,module,exports){ var $export = require('./_export'); var $parseInt = require('./_parse-int'); // 18.2.5 parseInt(string, radix) $export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt }); -},{"./_export":528,"./_parse-int":581}],702:[function(require,module,exports){ -arguments[4][490][0].apply(exports,arguments) -},{"./_a-function":498,"./_an-instance":501,"./_classof":512,"./_core":518,"./_ctx":520,"./_export":528,"./_for-of":534,"./_global":535,"./_is-object":546,"./_iter-detect":551,"./_library":554,"./_microtask":562,"./_new-promise-capability":563,"./_perform":582,"./_promise-resolve":583,"./_redefine-all":585,"./_set-species":592,"./_set-to-string-tag":593,"./_species-constructor":596,"./_task":605,"./_user-agent":617,"./_wks":621,"dup":490}],703:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_parse-int":595}],716:[function(require,module,exports){ +arguments[4][504][0].apply(exports,arguments) +},{"./_a-function":512,"./_an-instance":515,"./_classof":526,"./_core":532,"./_ctx":534,"./_export":542,"./_for-of":548,"./_global":549,"./_is-object":560,"./_iter-detect":565,"./_library":568,"./_microtask":576,"./_new-promise-capability":577,"./_perform":596,"./_promise-resolve":597,"./_redefine-all":599,"./_set-species":606,"./_set-to-string-tag":607,"./_species-constructor":610,"./_task":619,"./_user-agent":631,"./_wks":635,"dup":504}],717:[function(require,module,exports){ // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) var $export = require('./_export'); var aFunction = require('./_a-function'); @@ -134147,7 +141708,7 @@ var rApply = (require('./_global').Reflect || {}).apply; var fApply = Function.apply; // MS Edge argumentsList argument is optional $export($export.S + $export.F * !require('./_fails')(function () { - rApply(function () {/* empty */}); + rApply(function () { /* empty */ }); }), 'Reflect', { apply: function apply(target, thisArgument, argumentsList) { var T = aFunction(target); @@ -134156,9 +141717,7 @@ $export($export.S + $export.F * !require('./_fails')(function () { } }); -},{"./_a-function":498,"./_an-object":502,"./_export":528,"./_fails":530,"./_global":535}],704:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_an-object":516,"./_export":542,"./_fails":544,"./_global":549}],718:[function(require,module,exports){ // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) var $export = require('./_export'); var create = require('./_object-create'); @@ -134172,11 +141731,11 @@ var rConstruct = (require('./_global').Reflect || {}).construct; // MS Edge supports only 2 arguments and argumentsList argument is optional // FF Nightly sets third argument as `new.target`, but does not create `this` from it var NEW_TARGET_BUG = fails(function () { - function F() {/* empty */} - return !(rConstruct(function () {/* empty */}, [], F) instanceof F); + function F() { /* empty */ } + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); }); var ARGS_BUG = !fails(function () { - rConstruct(function () {/* empty */}); + rConstruct(function () { /* empty */ }); }); $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { @@ -134188,16 +141747,11 @@ $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { if (Target == newTarget) { // w/o altered newTarget, optimization for 0-4 arguments switch (args.length) { - case 0: - return new Target(); - case 1: - return new Target(args[0]); - case 2: - return new Target(args[0], args[1]); - case 3: - return new Target(args[0], args[1], args[2]); - case 4: - return new Target(args[0], args[1], args[2], args[3]); + case 0: return new Target(); + case 1: return new Target(args[0]); + case 2: return new Target(args[0], args[1]); + case 3: return new Target(args[0], args[1], args[2]); + case 4: return new Target(args[0], args[1], args[2], args[3]); } // w/o altered newTarget, lot of arguments case var $args = [null]; @@ -134212,9 +141766,7 @@ $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { } }); -},{"./_a-function":498,"./_an-object":502,"./_bind":511,"./_export":528,"./_fails":530,"./_global":535,"./_is-object":546,"./_object-create":565}],705:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_an-object":516,"./_bind":525,"./_export":542,"./_fails":544,"./_global":549,"./_is-object":560,"./_object-create":579}],719:[function(require,module,exports){ // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) var dP = require('./_object-dp'); var $export = require('./_export'); @@ -134239,9 +141791,7 @@ $export($export.S + $export.F * require('./_fails')(function () { } }); -},{"./_an-object":502,"./_export":528,"./_fails":530,"./_object-dp":566,"./_to-primitive":612}],706:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_fails":544,"./_object-dp":580,"./_to-primitive":626}],720:[function(require,module,exports){ // 26.1.4 Reflect.deleteProperty(target, propertyKey) var $export = require('./_export'); var gOPD = require('./_object-gopd').f; @@ -134254,20 +141804,17 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528,"./_object-gopd":569}],707:[function(require,module,exports){ +},{"./_an-object":516,"./_export":542,"./_object-gopd":583}],721:[function(require,module,exports){ 'use strict'; // 26.1.5 Reflect.enumerate(target) - var $export = require('./_export'); var anObject = require('./_an-object'); -var Enumerate = function Enumerate(iterated) { +var Enumerate = function (iterated) { this._t = anObject(iterated); // target - this._i = 0; // next index - var keys = this._k = []; // keys + this._i = 0; // next index + var keys = this._k = []; // keys var key; - for (key in iterated) { - keys.push(key); - } + for (key in iterated) keys.push(key); }; require('./_iter-create')(Enumerate, 'Object', function () { var that = this; @@ -134285,9 +141832,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528,"./_iter-create":549}],708:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_iter-create":563}],722:[function(require,module,exports){ // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) var gOPD = require('./_object-gopd'); var $export = require('./_export'); @@ -134299,9 +141844,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528,"./_object-gopd":569}],709:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_object-gopd":583}],723:[function(require,module,exports){ // 26.1.8 Reflect.getPrototypeOf(target) var $export = require('./_export'); var getProto = require('./_object-gpo'); @@ -134313,9 +141856,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528,"./_object-gpo":573}],710:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_object-gpo":587}],724:[function(require,module,exports){ // 26.1.6 Reflect.get(target, propertyKey [, receiver]) var gOPD = require('./_object-gopd'); var getPrototypeOf = require('./_object-gpo'); @@ -134328,15 +141869,17 @@ function get(target, propertyKey /* , receiver */) { var receiver = arguments.length < 3 ? target : arguments[2]; var desc, proto; if (anObject(target) === receiver) return target[propertyKey]; - if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') ? desc.value : desc.get !== undefined ? desc.get.call(receiver) : undefined; + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') + ? desc.value + : desc.get !== undefined + ? desc.get.call(receiver) + : undefined; if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); } $export($export.S, 'Reflect', { get: get }); -},{"./_an-object":502,"./_export":528,"./_has":536,"./_is-object":546,"./_object-gopd":569,"./_object-gpo":573}],711:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_has":550,"./_is-object":560,"./_object-gopd":583,"./_object-gpo":587}],725:[function(require,module,exports){ // 26.1.9 Reflect.has(target, propertyKey) var $export = require('./_export'); @@ -134346,9 +141889,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_export":528}],712:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],726:[function(require,module,exports){ // 26.1.10 Reflect.isExtensible(target) var $export = require('./_export'); var anObject = require('./_an-object'); @@ -134361,17 +141902,13 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528}],713:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542}],727:[function(require,module,exports){ // 26.1.11 Reflect.ownKeys(target) var $export = require('./_export'); $export($export.S, 'Reflect', { ownKeys: require('./_own-keys') }); -},{"./_export":528,"./_own-keys":579}],714:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_own-keys":593}],728:[function(require,module,exports){ // 26.1.12 Reflect.preventExtensions(target) var $export = require('./_export'); var anObject = require('./_an-object'); @@ -134389,9 +141926,7 @@ $export($export.S, 'Reflect', { } }); -},{"./_an-object":502,"./_export":528}],715:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542}],729:[function(require,module,exports){ // 26.1.14 Reflect.setPrototypeOf(target, proto) var $export = require('./_export'); var setProto = require('./_set-proto'); @@ -134408,9 +141943,7 @@ if (setProto) $export($export.S, 'Reflect', { } }); -},{"./_export":528,"./_set-proto":591}],716:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_set-proto":605}],730:[function(require,module,exports){ // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) var dP = require('./_object-dp'); var gOPD = require('./_object-gopd'); @@ -134445,9 +141978,7 @@ function set(target, propertyKey, V /* , receiver */) { $export($export.S, 'Reflect', { set: set }); -},{"./_an-object":502,"./_export":528,"./_has":536,"./_is-object":546,"./_object-dp":566,"./_object-gopd":569,"./_object-gpo":573,"./_property-desc":584}],717:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_has":550,"./_is-object":560,"./_object-dp":580,"./_object-gopd":583,"./_object-gpo":587,"./_property-desc":598}],731:[function(require,module,exports){ var global = require('./_global'); var inheritIfRequired = require('./_inherit-if-required'); var dP = require('./_object-dp').f; @@ -134471,105 +142002,102 @@ if (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function ( var tiRE = this instanceof $RegExp; var piRE = isRegExp(p); var fiU = f === undefined; - return !tiRE && piRE && p.constructor === $RegExp && fiU ? p : inheritIfRequired(CORRECT_NEW ? new Base(piRE && !fiU ? p.source : p, f) : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f), tiRE ? this : proto, $RegExp); + return !tiRE && piRE && p.constructor === $RegExp && fiU ? p + : inheritIfRequired(CORRECT_NEW + ? new Base(piRE && !fiU ? p.source : p, f) + : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) + , tiRE ? this : proto, $RegExp); }; - var proxy = function proxy(key) { + var proxy = function (key) { key in $RegExp || dP($RegExp, key, { configurable: true, - get: function get() { - return Base[key]; - }, - set: function set(it) { - Base[key] = it; - } + get: function () { return Base[key]; }, + set: function (it) { Base[key] = it; } }); }; - for (var keys = gOPN(Base), i = 0; keys.length > i;) { - proxy(keys[i++]); - }proto.constructor = $RegExp; + for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); + proto.constructor = $RegExp; $RegExp.prototype = proto; require('./_redefine')(global, 'RegExp', $RegExp); } require('./_set-species')('RegExp'); -},{"./_descriptors":524,"./_fails":530,"./_flags":532,"./_global":535,"./_inherit-if-required":540,"./_is-regexp":547,"./_object-dp":566,"./_object-gopn":571,"./_redefine":586,"./_set-species":592,"./_wks":621}],718:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_fails":544,"./_flags":546,"./_global":549,"./_inherit-if-required":554,"./_is-regexp":561,"./_object-dp":580,"./_object-gopn":585,"./_redefine":600,"./_set-species":606,"./_wks":635}],732:[function(require,module,exports){ // 21.2.5.3 get RegExp.prototype.flags() if (require('./_descriptors') && /./g.flags != 'g') require('./_object-dp').f(RegExp.prototype, 'flags', { configurable: true, get: require('./_flags') }); -},{"./_descriptors":524,"./_flags":532,"./_object-dp":566}],719:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_flags":546,"./_object-dp":580}],733:[function(require,module,exports){ // @@match logic require('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) { // 21.1.3.11 String.prototype.match(regexp) return [function match(regexp) { 'use strict'; - var O = defined(this); var fn = regexp == undefined ? undefined : regexp[MATCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); }, $match]; }); -},{"./_fix-re-wks":531}],720:[function(require,module,exports){ -'use strict'; - +},{"./_fix-re-wks":545}],734:[function(require,module,exports){ // @@replace logic require('./_fix-re-wks')('replace', 2, function (defined, REPLACE, $replace) { // 21.1.3.14 String.prototype.replace(searchValue, replaceValue) return [function replace(searchValue, replaceValue) { 'use strict'; - var O = defined(this); var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; - return fn !== undefined ? fn.call(searchValue, O, replaceValue) : $replace.call(String(O), searchValue, replaceValue); + return fn !== undefined + ? fn.call(searchValue, O, replaceValue) + : $replace.call(String(O), searchValue, replaceValue); }, $replace]; }); -},{"./_fix-re-wks":531}],721:[function(require,module,exports){ -'use strict'; - +},{"./_fix-re-wks":545}],735:[function(require,module,exports){ // @@search logic require('./_fix-re-wks')('search', 1, function (defined, SEARCH, $search) { // 21.1.3.15 String.prototype.search(regexp) return [function search(regexp) { 'use strict'; - var O = defined(this); var fn = regexp == undefined ? undefined : regexp[SEARCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O)); }, $search]; }); -},{"./_fix-re-wks":531}],722:[function(require,module,exports){ -'use strict'; - +},{"./_fix-re-wks":545}],736:[function(require,module,exports){ // @@split logic require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split) { 'use strict'; - var isRegExp = require('./_is-regexp'); var _split = $split; var $push = [].push; var $SPLIT = 'split'; var LENGTH = 'length'; var LAST_INDEX = 'lastIndex'; - if ('abbc'[$SPLIT](/(b)*/)[1] == 'c' || 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || '.'[$SPLIT](/()()/)[LENGTH] > 1 || ''[$SPLIT](/.?/)[LENGTH]) { + if ( + 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || + 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || + 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || + '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || + '.'[$SPLIT](/()()/)[LENGTH] > 1 || + ''[$SPLIT](/.?/)[LENGTH] + ) { var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group // based on es5-shim implementation, need to rework it - $split = function $split(separator, limit) { + $split = function (separator, limit) { var string = String(this); if (separator === undefined && limit === 0) return []; // If `separator` is not a regex, use native split if (!isRegExp(separator)) return _split.call(string, separator, limit); var output = []; - var flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.unicode ? 'u' : '') + (separator.sticky ? 'y' : ''); + var flags = (separator.ignoreCase ? 'i' : '') + + (separator.multiline ? 'm' : '') + + (separator.unicode ? 'u' : '') + + (separator.sticky ? 'y' : ''); var lastLastIndex = 0; var splitLimit = limit === undefined ? 4294967295 : limit >>> 0; // Make `global` and avoid `lastIndex` issues by working with a copy @@ -134585,9 +142113,7 @@ require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split) { // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG // eslint-disable-next-line no-loop-func if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () { - for (i = 1; i < arguments[LENGTH] - 2; i++) { - if (arguments[i] === undefined) match[i] = undefined; - } + for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined; }); if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); lastLength = match[0][LENGTH]; @@ -134601,9 +142127,9 @@ require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split) { } else output.push(string.slice(lastLastIndex)); return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; }; - // Chakra, V8 + // Chakra, V8 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { - $split = function $split(separator, limit) { + $split = function (separator, limit) { return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit); }; } @@ -134615,9 +142141,8 @@ require('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split) { }, $split]; }); -},{"./_fix-re-wks":531,"./_is-regexp":547}],723:[function(require,module,exports){ +},{"./_fix-re-wks":545,"./_is-regexp":561}],737:[function(require,module,exports){ 'use strict'; - require('./es6.regexp.flags'); var anObject = require('./_an-object'); var $flags = require('./_flags'); @@ -134625,37 +142150,33 @@ var DESCRIPTORS = require('./_descriptors'); var TO_STRING = 'toString'; var $toString = /./[TO_STRING]; -var define = function define(fn) { +var define = function (fn) { require('./_redefine')(RegExp.prototype, TO_STRING, fn, true); }; // 21.2.5.14 RegExp.prototype.toString() -if (require('./_fails')(function () { - return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; -})) { +if (require('./_fails')(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { define(function toString() { var R = anObject(this); - return '/'.concat(R.source, '/', 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); + return '/'.concat(R.source, '/', + 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); }); - // FF44- RegExp#toString has a wrong name +// FF44- RegExp#toString has a wrong name } else if ($toString.name != TO_STRING) { define(function toString() { return $toString.call(this); }); } -},{"./_an-object":502,"./_descriptors":524,"./_fails":530,"./_flags":532,"./_redefine":586,"./es6.regexp.flags":718}],724:[function(require,module,exports){ +},{"./_an-object":516,"./_descriptors":538,"./_fails":544,"./_flags":546,"./_redefine":600,"./es6.regexp.flags":732}],738:[function(require,module,exports){ 'use strict'; - var strong = require('./_collection-strong'); var validate = require('./_validate-collection'); var SET = 'Set'; // 23.2 Set Objects module.exports = require('./_collection')(SET, function (get) { - return function Set() { - return get(this, arguments.length > 0 ? arguments[0] : undefined); - }; + return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.2.3.1 Set.prototype.add(value) add: function add(value) { @@ -134663,49 +142184,44 @@ module.exports = require('./_collection')(SET, function (get) { } }, strong); -},{"./_collection":517,"./_collection-strong":514,"./_validate-collection":618}],725:[function(require,module,exports){ +},{"./_collection":531,"./_collection-strong":528,"./_validate-collection":632}],739:[function(require,module,exports){ 'use strict'; // B.2.3.2 String.prototype.anchor(name) - require('./_string-html')('anchor', function (createHTML) { return function anchor(name) { return createHTML(this, 'a', 'name', name); }; }); -},{"./_string-html":600}],726:[function(require,module,exports){ +},{"./_string-html":614}],740:[function(require,module,exports){ 'use strict'; // B.2.3.3 String.prototype.big() - require('./_string-html')('big', function (createHTML) { return function big() { return createHTML(this, 'big', '', ''); }; }); -},{"./_string-html":600}],727:[function(require,module,exports){ +},{"./_string-html":614}],741:[function(require,module,exports){ 'use strict'; // B.2.3.4 String.prototype.blink() - require('./_string-html')('blink', function (createHTML) { return function blink() { return createHTML(this, 'blink', '', ''); }; }); -},{"./_string-html":600}],728:[function(require,module,exports){ +},{"./_string-html":614}],742:[function(require,module,exports){ 'use strict'; // B.2.3.5 String.prototype.bold() - require('./_string-html')('bold', function (createHTML) { return function bold() { return createHTML(this, 'b', '', ''); }; }); -},{"./_string-html":600}],729:[function(require,module,exports){ +},{"./_string-html":614}],743:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $at = require('./_string-at')(false); $export($export.P, 'String', { @@ -134715,10 +142231,9 @@ $export($export.P, 'String', { } }); -},{"./_export":528,"./_string-at":598}],730:[function(require,module,exports){ +},{"./_export":542,"./_string-at":612}],744:[function(require,module,exports){ // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) 'use strict'; - var $export = require('./_export'); var toLength = require('./_to-length'); var context = require('./_string-context'); @@ -134732,43 +142247,40 @@ $export($export.P + $export.F * require('./_fails-is-regexp')(ENDS_WITH), 'Strin var len = toLength(that.length); var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len); var search = String(searchString); - return $endsWith ? $endsWith.call(that, search, end) : that.slice(end - search.length, end) === search; + return $endsWith + ? $endsWith.call(that, search, end) + : that.slice(end - search.length, end) === search; } }); -},{"./_export":528,"./_fails-is-regexp":529,"./_string-context":599,"./_to-length":610}],731:[function(require,module,exports){ +},{"./_export":542,"./_fails-is-regexp":543,"./_string-context":613,"./_to-length":624}],745:[function(require,module,exports){ 'use strict'; // B.2.3.6 String.prototype.fixed() - require('./_string-html')('fixed', function (createHTML) { return function fixed() { return createHTML(this, 'tt', '', ''); }; }); -},{"./_string-html":600}],732:[function(require,module,exports){ +},{"./_string-html":614}],746:[function(require,module,exports){ 'use strict'; // B.2.3.7 String.prototype.fontcolor(color) - require('./_string-html')('fontcolor', function (createHTML) { return function fontcolor(color) { return createHTML(this, 'font', 'color', color); }; }); -},{"./_string-html":600}],733:[function(require,module,exports){ +},{"./_string-html":614}],747:[function(require,module,exports){ 'use strict'; // B.2.3.8 String.prototype.fontsize(size) - require('./_string-html')('fontsize', function (createHTML) { return function fontsize(size) { return createHTML(this, 'font', 'size', size); }; }); -},{"./_string-html":600}],734:[function(require,module,exports){ -'use strict'; - +},{"./_string-html":614}],748:[function(require,module,exports){ var $export = require('./_export'); var toAbsoluteIndex = require('./_to-absolute-index'); var fromCharCode = String.fromCharCode; @@ -134777,8 +142289,7 @@ var $fromCodePoint = String.fromCodePoint; // length should be 1, old FF problem $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { // 21.1.2.2 String.fromCodePoint(...codePoints) - fromCodePoint: function fromCodePoint(x) { - // eslint-disable-line no-unused-vars + fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars var res = []; var aLen = arguments.length; var i = 0; @@ -134786,50 +142297,49 @@ $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1) while (aLen > i) { code = +arguments[i++]; if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); - res.push(code < 0x10000 ? fromCharCode(code) : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)); - }return res.join(''); + res.push(code < 0x10000 + ? fromCharCode(code) + : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00) + ); + } return res.join(''); } }); -},{"./_export":528,"./_to-absolute-index":606}],735:[function(require,module,exports){ +},{"./_export":542,"./_to-absolute-index":620}],749:[function(require,module,exports){ // 21.1.3.7 String.prototype.includes(searchString, position = 0) 'use strict'; - var $export = require('./_export'); var context = require('./_string-context'); var INCLUDES = 'includes'; $export($export.P + $export.F * require('./_fails-is-regexp')(INCLUDES), 'String', { includes: function includes(searchString /* , position = 0 */) { - return !!~context(this, searchString, INCLUDES).indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); + return !!~context(this, searchString, INCLUDES) + .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); } }); -},{"./_export":528,"./_fails-is-regexp":529,"./_string-context":599}],736:[function(require,module,exports){ +},{"./_export":542,"./_fails-is-regexp":543,"./_string-context":613}],750:[function(require,module,exports){ 'use strict'; // B.2.3.9 String.prototype.italics() - require('./_string-html')('italics', function (createHTML) { return function italics() { return createHTML(this, 'i', '', ''); }; }); -},{"./_string-html":600}],737:[function(require,module,exports){ -arguments[4][491][0].apply(exports,arguments) -},{"./_iter-define":550,"./_string-at":598,"dup":491}],738:[function(require,module,exports){ +},{"./_string-html":614}],751:[function(require,module,exports){ +arguments[4][505][0].apply(exports,arguments) +},{"./_iter-define":564,"./_string-at":612,"dup":505}],752:[function(require,module,exports){ 'use strict'; // B.2.3.10 String.prototype.link(url) - require('./_string-html')('link', function (createHTML) { return function link(url) { return createHTML(this, 'a', 'href', url); }; }); -},{"./_string-html":600}],739:[function(require,module,exports){ -'use strict'; - +},{"./_string-html":614}],753:[function(require,module,exports){ var $export = require('./_export'); var toIObject = require('./_to-iobject'); var toLength = require('./_to-length'); @@ -134845,13 +142355,11 @@ $export($export.S, 'String', { while (len > i) { res.push(String(tpl[i++])); if (i < aLen) res.push(String(arguments[i])); - }return res.join(''); + } return res.join(''); } }); -},{"./_export":528,"./_to-iobject":609,"./_to-length":610}],740:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_to-iobject":623,"./_to-length":624}],754:[function(require,module,exports){ var $export = require('./_export'); $export($export.P, 'String', { @@ -134859,20 +142367,18 @@ $export($export.P, 'String', { repeat: require('./_string-repeat') }); -},{"./_export":528,"./_string-repeat":602}],741:[function(require,module,exports){ +},{"./_export":542,"./_string-repeat":616}],755:[function(require,module,exports){ 'use strict'; // B.2.3.11 String.prototype.small() - require('./_string-html')('small', function (createHTML) { return function small() { return createHTML(this, 'small', '', ''); }; }); -},{"./_string-html":600}],742:[function(require,module,exports){ +},{"./_string-html":614}],756:[function(require,module,exports){ // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) 'use strict'; - var $export = require('./_export'); var toLength = require('./_to-length'); var context = require('./_string-context'); @@ -134884,55 +142390,52 @@ $export($export.P + $export.F * require('./_fails-is-regexp')(STARTS_WITH), 'Str var that = context(this, searchString, STARTS_WITH); var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); var search = String(searchString); - return $startsWith ? $startsWith.call(that, search, index) : that.slice(index, index + search.length) === search; + return $startsWith + ? $startsWith.call(that, search, index) + : that.slice(index, index + search.length) === search; } }); -},{"./_export":528,"./_fails-is-regexp":529,"./_string-context":599,"./_to-length":610}],743:[function(require,module,exports){ +},{"./_export":542,"./_fails-is-regexp":543,"./_string-context":613,"./_to-length":624}],757:[function(require,module,exports){ 'use strict'; // B.2.3.12 String.prototype.strike() - require('./_string-html')('strike', function (createHTML) { return function strike() { return createHTML(this, 'strike', '', ''); }; }); -},{"./_string-html":600}],744:[function(require,module,exports){ +},{"./_string-html":614}],758:[function(require,module,exports){ 'use strict'; // B.2.3.13 String.prototype.sub() - require('./_string-html')('sub', function (createHTML) { return function sub() { return createHTML(this, 'sub', '', ''); }; }); -},{"./_string-html":600}],745:[function(require,module,exports){ +},{"./_string-html":614}],759:[function(require,module,exports){ 'use strict'; // B.2.3.14 String.prototype.sup() - require('./_string-html')('sup', function (createHTML) { return function sup() { return createHTML(this, 'sup', '', ''); }; }); -},{"./_string-html":600}],746:[function(require,module,exports){ +},{"./_string-html":614}],760:[function(require,module,exports){ 'use strict'; // 21.1.3.25 String.prototype.trim() - require('./_string-trim')('trim', function ($trim) { return function trim() { return $trim(this, 3); }; }); -},{"./_string-trim":603}],747:[function(require,module,exports){ -arguments[4][492][0].apply(exports,arguments) -},{"./_an-object":502,"./_descriptors":524,"./_enum-keys":527,"./_export":528,"./_fails":530,"./_global":535,"./_has":536,"./_hide":537,"./_is-array":544,"./_is-object":546,"./_library":554,"./_meta":560,"./_object-create":565,"./_object-dp":566,"./_object-gopd":569,"./_object-gopn":571,"./_object-gopn-ext":570,"./_object-gops":572,"./_object-keys":575,"./_object-pie":576,"./_property-desc":584,"./_redefine":586,"./_set-to-string-tag":593,"./_shared":595,"./_to-iobject":609,"./_to-primitive":612,"./_uid":616,"./_wks":621,"./_wks-define":619,"./_wks-ext":620,"dup":492}],748:[function(require,module,exports){ +},{"./_string-trim":617}],761:[function(require,module,exports){ +arguments[4][506][0].apply(exports,arguments) +},{"./_an-object":516,"./_descriptors":538,"./_enum-keys":541,"./_export":542,"./_fails":544,"./_global":549,"./_has":550,"./_hide":551,"./_is-array":558,"./_is-object":560,"./_library":568,"./_meta":574,"./_object-create":579,"./_object-dp":580,"./_object-gopd":583,"./_object-gopn":585,"./_object-gopn-ext":584,"./_object-gops":586,"./_object-keys":589,"./_object-pie":590,"./_property-desc":598,"./_redefine":600,"./_set-to-string-tag":607,"./_shared":609,"./_to-iobject":623,"./_to-primitive":626,"./_uid":630,"./_wks":635,"./_wks-define":633,"./_wks-ext":634,"dup":506}],762:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var $typed = require('./_typed'); var buffer = require('./_typed-buffer'); @@ -134973,104 +142476,83 @@ $export($export.P + $export.U + $export.F * require('./_fails')(function () { var index = 0; while (first < fin) { viewT.setUint8(index++, viewS.getUint8(first++)); - }return result; + } return result; } }); require('./_set-species')(ARRAY_BUFFER); -},{"./_an-object":502,"./_export":528,"./_fails":530,"./_global":535,"./_is-object":546,"./_set-species":592,"./_species-constructor":596,"./_to-absolute-index":606,"./_to-length":610,"./_typed":615,"./_typed-buffer":614}],749:[function(require,module,exports){ -'use strict'; - +},{"./_an-object":516,"./_export":542,"./_fails":544,"./_global":549,"./_is-object":560,"./_set-species":606,"./_species-constructor":610,"./_to-absolute-index":620,"./_to-length":624,"./_typed":629,"./_typed-buffer":628}],763:[function(require,module,exports){ var $export = require('./_export'); $export($export.G + $export.W + $export.F * !require('./_typed').ABV, { DataView: require('./_typed-buffer').DataView }); -},{"./_export":528,"./_typed":615,"./_typed-buffer":614}],750:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_typed":629,"./_typed-buffer":628}],764:[function(require,module,exports){ require('./_typed-array')('Float32', 4, function (init) { return function Float32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],751:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],765:[function(require,module,exports){ require('./_typed-array')('Float64', 8, function (init) { return function Float64Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],752:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],766:[function(require,module,exports){ require('./_typed-array')('Int16', 2, function (init) { return function Int16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],753:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],767:[function(require,module,exports){ require('./_typed-array')('Int32', 4, function (init) { return function Int32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],754:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],768:[function(require,module,exports){ require('./_typed-array')('Int8', 1, function (init) { return function Int8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],755:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],769:[function(require,module,exports){ require('./_typed-array')('Uint16', 2, function (init) { return function Uint16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],756:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],770:[function(require,module,exports){ require('./_typed-array')('Uint32', 4, function (init) { return function Uint32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],757:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],771:[function(require,module,exports){ require('./_typed-array')('Uint8', 1, function (init) { return function Uint8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"./_typed-array":613}],758:[function(require,module,exports){ -'use strict'; - +},{"./_typed-array":627}],772:[function(require,module,exports){ require('./_typed-array')('Uint8', 1, function (init) { return function Uint8ClampedArray(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }, true); -},{"./_typed-array":613}],759:[function(require,module,exports){ +},{"./_typed-array":627}],773:[function(require,module,exports){ 'use strict'; - var each = require('./_array-methods')(0); var redefine = require('./_redefine'); var meta = require('./_meta'); @@ -135086,7 +142568,7 @@ var uncaughtFrozenStore = weak.ufstore; var tmp = {}; var InternalMap; -var wrapper = function wrapper(get) { +var wrapper = function (get) { return function WeakMap() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; @@ -135111,9 +142593,7 @@ var methods = { var $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, methods, weak, true, true); // IE11 WeakMap frozen keys fix -if (fails(function () { - return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; -})) { +if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { InternalMap = weak.getConstructor(wrapper, WEAK_MAP); assign(InternalMap.prototype, methods); meta.NEED = true; @@ -135126,24 +142606,21 @@ if (fails(function () { if (!this._f) this._f = new InternalMap(); var result = this._f[key](a, b); return key == 'set' ? this : result; - // store all the rest on native weakmap - }return method.call(this, a, b); + // store all the rest on native weakmap + } return method.call(this, a, b); }); }); } -},{"./_array-methods":507,"./_collection":517,"./_collection-weak":516,"./_fails":530,"./_is-object":546,"./_meta":560,"./_object-assign":564,"./_redefine":586,"./_validate-collection":618}],760:[function(require,module,exports){ +},{"./_array-methods":521,"./_collection":531,"./_collection-weak":530,"./_fails":544,"./_is-object":560,"./_meta":574,"./_object-assign":578,"./_redefine":600,"./_validate-collection":632}],774:[function(require,module,exports){ 'use strict'; - var weak = require('./_collection-weak'); var validate = require('./_validate-collection'); var WEAK_SET = 'WeakSet'; // 23.4 WeakSet Objects require('./_collection')(WEAK_SET, function (get) { - return function WeakSet() { - return get(this, arguments.length > 0 ? arguments[0] : undefined); - }; + return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.4.3.1 WeakSet.prototype.add(value) add: function add(value) { @@ -135151,10 +142628,9 @@ require('./_collection')(WEAK_SET, function (get) { } }, weak, false, true); -},{"./_collection":517,"./_collection-weak":516,"./_validate-collection":618}],761:[function(require,module,exports){ +},{"./_collection":531,"./_collection-weak":530,"./_validate-collection":632}],775:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap - var $export = require('./_export'); var flattenIntoArray = require('./_flatten-into-array'); var toObject = require('./_to-object'); @@ -135176,10 +142652,9 @@ $export($export.P, 'Array', { require('./_add-to-unscopables')('flatMap'); -},{"./_a-function":498,"./_add-to-unscopables":500,"./_array-species-create":510,"./_export":528,"./_flatten-into-array":533,"./_to-length":610,"./_to-object":611}],762:[function(require,module,exports){ +},{"./_a-function":512,"./_add-to-unscopables":514,"./_array-species-create":524,"./_export":542,"./_flatten-into-array":547,"./_to-length":624,"./_to-object":625}],776:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten - var $export = require('./_export'); var flattenIntoArray = require('./_flatten-into-array'); var toObject = require('./_to-object'); @@ -135188,7 +142663,7 @@ var toInteger = require('./_to-integer'); var arraySpeciesCreate = require('./_array-species-create'); $export($export.P, 'Array', { - flatten: function flatten() /* depthArg = 1 */{ + flatten: function flatten(/* depthArg = 1 */) { var depthArg = arguments[0]; var O = toObject(this); var sourceLen = toLength(O.length); @@ -135200,10 +142675,9 @@ $export($export.P, 'Array', { require('./_add-to-unscopables')('flatten'); -},{"./_add-to-unscopables":500,"./_array-species-create":510,"./_export":528,"./_flatten-into-array":533,"./_to-integer":608,"./_to-length":610,"./_to-object":611}],763:[function(require,module,exports){ +},{"./_add-to-unscopables":514,"./_array-species-create":524,"./_export":542,"./_flatten-into-array":547,"./_to-integer":622,"./_to-length":624,"./_to-object":625}],777:[function(require,module,exports){ 'use strict'; // https://github.com/tc39/Array.prototype.includes - var $export = require('./_export'); var $includes = require('./_array-includes')(true); @@ -135215,9 +142689,7 @@ $export($export.P, 'Array', { require('./_add-to-unscopables')('includes'); -},{"./_add-to-unscopables":500,"./_array-includes":506,"./_export":528}],764:[function(require,module,exports){ -'use strict'; - +},{"./_add-to-unscopables":514,"./_array-includes":520,"./_export":542}],778:[function(require,module,exports){ // https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask var $export = require('./_export'); var microtask = require('./_microtask')(); @@ -135231,9 +142703,7 @@ $export($export.G, { } }); -},{"./_cof":513,"./_export":528,"./_global":535,"./_microtask":562}],765:[function(require,module,exports){ -'use strict'; - +},{"./_cof":527,"./_export":542,"./_global":549,"./_microtask":576}],779:[function(require,module,exports){ // https://github.com/ljharb/proposal-is-error var $export = require('./_export'); var cof = require('./_cof'); @@ -135244,37 +142714,27 @@ $export($export.S, 'Error', { } }); -},{"./_cof":513,"./_export":528}],766:[function(require,module,exports){ -'use strict'; - +},{"./_cof":527,"./_export":542}],780:[function(require,module,exports){ // https://github.com/tc39/proposal-global var $export = require('./_export'); $export($export.G, { global: require('./_global') }); -},{"./_export":528,"./_global":535}],767:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_global":549}],781:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from require('./_set-collection-from')('Map'); -},{"./_set-collection-from":589}],768:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-from":603}],782:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of require('./_set-collection-of')('Map'); -},{"./_set-collection-of":590}],769:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-of":604}],783:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = require('./_export'); $export($export.P + $export.R, 'Map', { toJSON: require('./_collection-to-json')('Map') }); -},{"./_collection-to-json":515,"./_export":528}],770:[function(require,module,exports){ -'use strict'; - +},{"./_collection-to-json":529,"./_export":542}],784:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); @@ -135284,17 +142744,13 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],771:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],785:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); $export($export.S, 'Math', { DEG_PER_RAD: Math.PI / 180 }); -},{"./_export":528}],772:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],786:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); var RAD_PER_DEG = 180 / Math.PI; @@ -135305,9 +142761,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],773:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],787:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); var scale = require('./_math-scale'); @@ -135319,9 +142773,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528,"./_math-fround":556,"./_math-scale":558}],774:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-fround":570,"./_math-scale":572}],788:[function(require,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = require('./_export'); @@ -135334,9 +142786,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],775:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],789:[function(require,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = require('./_export'); @@ -135354,9 +142804,7 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],776:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],790:[function(require,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = require('./_export'); @@ -135369,17 +142817,13 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],777:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],791:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); $export($export.S, 'Math', { RAD_PER_DEG: 180 / Math.PI }); -},{"./_export":528}],778:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],792:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); var DEG_PER_RAD = Math.PI / 180; @@ -135390,28 +142834,22 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],779:[function(require,module,exports){ -'use strict'; - +},{"./_export":542}],793:[function(require,module,exports){ // https://rwaldron.github.io/proposal-math-extensions/ var $export = require('./_export'); $export($export.S, 'Math', { scale: require('./_math-scale') }); -},{"./_export":528,"./_math-scale":558}],780:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_math-scale":572}],794:[function(require,module,exports){ // http://jfbastien.github.io/papers/Math.signbit.html var $export = require('./_export'); $export($export.S, 'Math', { signbit: function signbit(x) { - // eslint-disable-next-line no-self-compare - return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0; - } }); - -},{"./_export":528}],781:[function(require,module,exports){ -'use strict'; + // eslint-disable-next-line no-self-compare + return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0; +} }); +},{"./_export":542}],795:[function(require,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = require('./_export'); @@ -135429,9 +142867,8 @@ $export($export.S, 'Math', { } }); -},{"./_export":528}],782:[function(require,module,exports){ +},{"./_export":542}],796:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var aFunction = require('./_a-function'); @@ -135444,9 +142881,8 @@ require('./_descriptors') && $export($export.P + require('./_object-forced-pam') } }); -},{"./_a-function":498,"./_descriptors":524,"./_export":528,"./_object-dp":566,"./_object-forced-pam":568,"./_to-object":611}],783:[function(require,module,exports){ +},{"./_a-function":512,"./_descriptors":538,"./_export":542,"./_object-dp":580,"./_object-forced-pam":582,"./_to-object":625}],797:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var aFunction = require('./_a-function'); @@ -135459,9 +142895,7 @@ require('./_descriptors') && $export($export.P + require('./_object-forced-pam') } }); -},{"./_a-function":498,"./_descriptors":524,"./_export":528,"./_object-dp":566,"./_object-forced-pam":568,"./_to-object":611}],784:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_descriptors":538,"./_export":542,"./_object-dp":580,"./_object-forced-pam":582,"./_to-object":625}],798:[function(require,module,exports){ // https://github.com/tc39/proposal-object-values-entries var $export = require('./_export'); var $entries = require('./_object-to-array')(true); @@ -135472,9 +142906,7 @@ $export($export.S, 'Object', { } }); -},{"./_export":528,"./_object-to-array":578}],785:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_object-to-array":592}],799:[function(require,module,exports){ // https://github.com/tc39/proposal-object-getownpropertydescriptors var $export = require('./_export'); var ownKeys = require('./_own-keys'); @@ -135498,9 +142930,8 @@ $export($export.S, 'Object', { } }); -},{"./_create-property":519,"./_export":528,"./_object-gopd":569,"./_own-keys":579,"./_to-iobject":609}],786:[function(require,module,exports){ +},{"./_create-property":533,"./_export":542,"./_object-gopd":583,"./_own-keys":593,"./_to-iobject":623}],800:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var toPrimitive = require('./_to-primitive'); @@ -135519,9 +142950,8 @@ require('./_descriptors') && $export($export.P + require('./_object-forced-pam') } }); -},{"./_descriptors":524,"./_export":528,"./_object-forced-pam":568,"./_object-gopd":569,"./_object-gpo":573,"./_to-object":611,"./_to-primitive":612}],787:[function(require,module,exports){ +},{"./_descriptors":538,"./_export":542,"./_object-forced-pam":582,"./_object-gopd":583,"./_object-gpo":587,"./_to-object":625,"./_to-primitive":626}],801:[function(require,module,exports){ 'use strict'; - var $export = require('./_export'); var toObject = require('./_to-object'); var toPrimitive = require('./_to-primitive'); @@ -135540,9 +142970,7 @@ require('./_descriptors') && $export($export.P + require('./_object-forced-pam') } }); -},{"./_descriptors":524,"./_export":528,"./_object-forced-pam":568,"./_object-gopd":569,"./_object-gpo":573,"./_to-object":611,"./_to-primitive":612}],788:[function(require,module,exports){ -'use strict'; - +},{"./_descriptors":538,"./_export":542,"./_object-forced-pam":582,"./_object-gopd":583,"./_object-gpo":587,"./_to-object":625,"./_to-primitive":626}],802:[function(require,module,exports){ // https://github.com/tc39/proposal-object-values-entries var $export = require('./_export'); var $values = require('./_object-to-array')(false); @@ -135553,10 +142981,9 @@ $export($export.S, 'Object', { } }); -},{"./_export":528,"./_object-to-array":578}],789:[function(require,module,exports){ +},{"./_export":542,"./_object-to-array":592}],803:[function(require,module,exports){ 'use strict'; // https://github.com/zenparsing/es-observable - var $export = require('./_export'); var global = require('./_global'); var core = require('./_core'); @@ -135570,11 +142997,11 @@ var hide = require('./_hide'); var forOf = require('./_for-of'); var RETURN = forOf.RETURN; -var getMethod = function getMethod(fn) { +var getMethod = function (fn) { return fn == null ? undefined : aFunction(fn); }; -var cleanupSubscription = function cleanupSubscription(subscription) { +var cleanupSubscription = function (subscription) { var cleanup = subscription._c; if (cleanup) { subscription._c = undefined; @@ -135582,18 +143009,18 @@ var cleanupSubscription = function cleanupSubscription(subscription) { } }; -var subscriptionClosed = function subscriptionClosed(subscription) { +var subscriptionClosed = function (subscription) { return subscription._o === undefined; }; -var closeSubscription = function closeSubscription(subscription) { +var closeSubscription = function (subscription) { if (!subscriptionClosed(subscription)) { subscription._o = undefined; cleanupSubscription(subscription); } }; -var Subscription = function Subscription(observer, subscriber) { +var Subscription = function (observer, subscriber) { anObject(observer); this._c = undefined; this._o = observer; @@ -135602,24 +143029,21 @@ var Subscription = function Subscription(observer, subscriber) { var cleanup = subscriber(observer); var subscription = cleanup; if (cleanup != null) { - if (typeof cleanup.unsubscribe === 'function') cleanup = function cleanup() { - subscription.unsubscribe(); - };else aFunction(cleanup); + if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); }; + else aFunction(cleanup); this._c = cleanup; } } catch (e) { observer.error(e); return; - }if (subscriptionClosed(this)) cleanupSubscription(this); + } if (subscriptionClosed(this)) cleanupSubscription(this); }; Subscription.prototype = redefineAll({}, { - unsubscribe: function unsubscribe() { - closeSubscription(this); - } + unsubscribe: function unsubscribe() { closeSubscription(this); } }); -var SubscriptionObserver = function SubscriptionObserver(subscription) { +var SubscriptionObserver = function (subscription) { this._s = subscription; }; @@ -135655,7 +143079,7 @@ SubscriptionObserver.prototype = redefineAll({}, { } finally { throw e; } - }cleanupSubscription(subscription); + } cleanupSubscription(subscription); return value; }, complete: function complete(value) { @@ -135672,7 +143096,7 @@ SubscriptionObserver.prototype = redefineAll({}, { } finally { throw e; } - }cleanupSubscription(subscription); + } cleanupSubscription(subscription); return value; } } @@ -135691,7 +143115,7 @@ redefineAll($Observable.prototype, { return new (core.Promise || global.Promise)(function (resolve, reject) { aFunction(fn); var subscription = that.subscribe({ - next: function next(value) { + next: function (value) { try { return fn(value); } catch (e) { @@ -135729,61 +143153,50 @@ redefineAll($Observable, { if (done) throw e; observer.error(e); return; - }observer.complete(); + } observer.complete(); } }); - return function () { - done = true; - }; + return function () { done = true; }; }); }, of: function of() { - for (var i = 0, l = arguments.length, items = new Array(l); i < l;) { - items[i] = arguments[i++]; - }return new (typeof this === 'function' ? this : $Observable)(function (observer) { + for (var i = 0, l = arguments.length, items = new Array(l); i < l;) items[i] = arguments[i++]; + return new (typeof this === 'function' ? this : $Observable)(function (observer) { var done = false; microtask(function () { if (!done) { for (var j = 0; j < items.length; ++j) { observer.next(items[j]); if (done) return; - }observer.complete(); + } observer.complete(); } }); - return function () { - done = true; - }; + return function () { done = true; }; }); } }); -hide($Observable.prototype, OBSERVABLE, function () { - return this; -}); +hide($Observable.prototype, OBSERVABLE, function () { return this; }); $export($export.G, { Observable: $Observable }); require('./_set-species')('Observable'); -},{"./_a-function":498,"./_an-instance":501,"./_an-object":502,"./_core":518,"./_export":528,"./_for-of":534,"./_global":535,"./_hide":537,"./_microtask":562,"./_redefine-all":585,"./_set-species":592,"./_wks":621}],790:[function(require,module,exports){ -arguments[4][493][0].apply(exports,arguments) -},{"./_core":518,"./_export":528,"./_global":535,"./_promise-resolve":583,"./_species-constructor":596,"dup":493}],791:[function(require,module,exports){ -arguments[4][494][0].apply(exports,arguments) -},{"./_export":528,"./_new-promise-capability":563,"./_perform":582,"dup":494}],792:[function(require,module,exports){ -'use strict'; - +},{"./_a-function":512,"./_an-instance":515,"./_an-object":516,"./_core":532,"./_export":542,"./_for-of":548,"./_global":549,"./_hide":551,"./_microtask":576,"./_redefine-all":599,"./_set-species":606,"./_wks":635}],804:[function(require,module,exports){ +arguments[4][507][0].apply(exports,arguments) +},{"./_core":532,"./_export":542,"./_global":549,"./_promise-resolve":597,"./_species-constructor":610,"dup":507}],805:[function(require,module,exports){ +arguments[4][508][0].apply(exports,arguments) +},{"./_export":542,"./_new-promise-capability":577,"./_perform":596,"dup":508}],806:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var toMetaKey = metadata.key; var ordinaryDefineOwnMetadata = metadata.set; metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) { - ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey)); - } }); - -},{"./_an-object":502,"./_metadata":561}],793:[function(require,module,exports){ -'use strict'; + ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey)); +} }); +},{"./_an-object":516,"./_metadata":575}],807:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var toMetaKey = metadata.key; @@ -135791,18 +143204,16 @@ var getOrCreateMetadataMap = metadata.map; var store = metadata.store; metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) { - var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]); - var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); - if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false; - if (metadataMap.size) return true; - var targetMetadata = store.get(target); - targetMetadata['delete'](targetKey); - return !!targetMetadata.size || store['delete'](target); - } }); - -},{"./_an-object":502,"./_metadata":561}],794:[function(require,module,exports){ -'use strict'; + var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]); + var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); + if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false; + if (metadataMap.size) return true; + var targetMetadata = store.get(target); + targetMetadata['delete'](targetKey); + return !!targetMetadata.size || store['delete'](target); +} }); +},{"./_an-object":516,"./_metadata":575}],808:[function(require,module,exports){ var Set = require('./es6.set'); var from = require('./_array-from-iterable'); var metadata = require('./_metadata'); @@ -135811,7 +143222,7 @@ var getPrototypeOf = require('./_object-gpo'); var ordinaryOwnMetadataKeys = metadata.keys; var toMetaKey = metadata.key; -var ordinaryMetadataKeys = function ordinaryMetadataKeys(O, P) { +var ordinaryMetadataKeys = function (O, P) { var oKeys = ordinaryOwnMetadataKeys(O, P); var parent = getPrototypeOf(O); if (parent === null) return oKeys; @@ -135820,12 +143231,10 @@ var ordinaryMetadataKeys = function ordinaryMetadataKeys(O, P) { }; metadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) { - return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); - } }); - -},{"./_an-object":502,"./_array-from-iterable":505,"./_metadata":561,"./_object-gpo":573,"./es6.set":724}],795:[function(require,module,exports){ -'use strict'; + return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); +} }); +},{"./_an-object":516,"./_array-from-iterable":519,"./_metadata":575,"./_object-gpo":587,"./es6.set":738}],809:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var getPrototypeOf = require('./_object-gpo'); @@ -135833,7 +143242,7 @@ var ordinaryHasOwnMetadata = metadata.has; var ordinaryGetOwnMetadata = metadata.get; var toMetaKey = metadata.key; -var ordinaryGetMetadata = function ordinaryGetMetadata(MetadataKey, O, P) { +var ordinaryGetMetadata = function (MetadataKey, O, P) { var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P); var parent = getPrototypeOf(O); @@ -135841,43 +143250,38 @@ var ordinaryGetMetadata = function ordinaryGetMetadata(MetadataKey, O, P) { }; metadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) { - return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); - } }); - -},{"./_an-object":502,"./_metadata":561,"./_object-gpo":573}],796:[function(require,module,exports){ -'use strict'; + return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); +} }); +},{"./_an-object":516,"./_metadata":575,"./_object-gpo":587}],810:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var ordinaryOwnMetadataKeys = metadata.keys; var toMetaKey = metadata.key; metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) { - return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); - } }); - -},{"./_an-object":502,"./_metadata":561}],797:[function(require,module,exports){ -'use strict'; + return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); +} }); +},{"./_an-object":516,"./_metadata":575}],811:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var ordinaryGetOwnMetadata = metadata.get; var toMetaKey = metadata.key; metadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) { - return ordinaryGetOwnMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); - } }); - -},{"./_an-object":502,"./_metadata":561}],798:[function(require,module,exports){ -'use strict'; + return ordinaryGetOwnMetadata(metadataKey, anObject(target) + , arguments.length < 3 ? undefined : toMetaKey(arguments[2])); +} }); +},{"./_an-object":516,"./_metadata":575}],812:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var getPrototypeOf = require('./_object-gpo'); var ordinaryHasOwnMetadata = metadata.has; var toMetaKey = metadata.key; -var ordinaryHasMetadata = function ordinaryHasMetadata(MetadataKey, O, P) { +var ordinaryHasMetadata = function (MetadataKey, O, P) { var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); if (hasOwn) return true; var parent = getPrototypeOf(O); @@ -135885,24 +143289,21 @@ var ordinaryHasMetadata = function ordinaryHasMetadata(MetadataKey, O, P) { }; metadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) { - return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); - } }); - -},{"./_an-object":502,"./_metadata":561,"./_object-gpo":573}],799:[function(require,module,exports){ -'use strict'; + return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); +} }); +},{"./_an-object":516,"./_metadata":575,"./_object-gpo":587}],813:[function(require,module,exports){ var metadata = require('./_metadata'); var anObject = require('./_an-object'); var ordinaryHasOwnMetadata = metadata.has; var toMetaKey = metadata.key; metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) { - return ordinaryHasOwnMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); - } }); - -},{"./_an-object":502,"./_metadata":561}],800:[function(require,module,exports){ -'use strict'; + return ordinaryHasOwnMetadata(metadataKey, anObject(target) + , arguments.length < 3 ? undefined : toMetaKey(arguments[2])); +} }); +},{"./_an-object":516,"./_metadata":575}],814:[function(require,module,exports){ var $metadata = require('./_metadata'); var anObject = require('./_an-object'); var aFunction = require('./_a-function'); @@ -135910,35 +143311,32 @@ var toMetaKey = $metadata.key; var ordinaryDefineOwnMetadata = $metadata.set; $metadata.exp({ metadata: function metadata(metadataKey, metadataValue) { - return function decorator(target, targetKey) { - ordinaryDefineOwnMetadata(metadataKey, metadataValue, (targetKey !== undefined ? anObject : aFunction)(target), toMetaKey(targetKey)); - }; - } }); - -},{"./_a-function":498,"./_an-object":502,"./_metadata":561}],801:[function(require,module,exports){ -'use strict'; + return function decorator(target, targetKey) { + ordinaryDefineOwnMetadata( + metadataKey, metadataValue, + (targetKey !== undefined ? anObject : aFunction)(target), + toMetaKey(targetKey) + ); + }; +} }); +},{"./_a-function":512,"./_an-object":516,"./_metadata":575}],815:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-set.from require('./_set-collection-from')('Set'); -},{"./_set-collection-from":589}],802:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-from":603}],816:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-set.of require('./_set-collection-of')('Set'); -},{"./_set-collection-of":590}],803:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-of":604}],817:[function(require,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = require('./_export'); $export($export.P + $export.R, 'Set', { toJSON: require('./_collection-to-json')('Set') }); -},{"./_collection-to-json":515,"./_export":528}],804:[function(require,module,exports){ +},{"./_collection-to-json":529,"./_export":542}],818:[function(require,module,exports){ 'use strict'; // https://github.com/mathiasbynens/String.prototype.at - var $export = require('./_export'); var $at = require('./_string-at')(true); @@ -135948,10 +143346,9 @@ $export($export.P, 'String', { } }); -},{"./_export":528,"./_string-at":598}],805:[function(require,module,exports){ +},{"./_export":542,"./_string-at":612}],819:[function(require,module,exports){ 'use strict'; // https://tc39.github.io/String.prototype.matchAll/ - var $export = require('./_export'); var defined = require('./_defined'); var toLength = require('./_to-length'); @@ -135959,7 +143356,7 @@ var isRegExp = require('./_is-regexp'); var getFlags = require('./_flags'); var RegExpProto = RegExp.prototype; -var $RegExpStringIterator = function $RegExpStringIterator(regexp, string) { +var $RegExpStringIterator = function (regexp, string) { this._r = regexp; this._s = string; }; @@ -135981,10 +143378,9 @@ $export($export.P, 'String', { } }); -},{"./_defined":523,"./_export":528,"./_flags":532,"./_is-regexp":547,"./_iter-create":549,"./_to-length":610}],806:[function(require,module,exports){ +},{"./_defined":537,"./_export":542,"./_flags":546,"./_is-regexp":561,"./_iter-create":563,"./_to-length":624}],820:[function(require,module,exports){ 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end - var $export = require('./_export'); var $pad = require('./_string-pad'); var userAgent = require('./_user-agent'); @@ -135996,10 +143392,9 @@ $export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAge } }); -},{"./_export":528,"./_string-pad":601,"./_user-agent":617}],807:[function(require,module,exports){ +},{"./_export":542,"./_string-pad":615,"./_user-agent":631}],821:[function(require,module,exports){ 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end - var $export = require('./_export'); var $pad = require('./_string-pad'); var userAgent = require('./_user-agent'); @@ -136011,65 +143406,51 @@ $export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAge } }); -},{"./_export":528,"./_string-pad":601,"./_user-agent":617}],808:[function(require,module,exports){ +},{"./_export":542,"./_string-pad":615,"./_user-agent":631}],822:[function(require,module,exports){ 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim - require('./_string-trim')('trimLeft', function ($trim) { return function trimLeft() { return $trim(this, 1); }; }, 'trimStart'); -},{"./_string-trim":603}],809:[function(require,module,exports){ +},{"./_string-trim":617}],823:[function(require,module,exports){ 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim - require('./_string-trim')('trimRight', function ($trim) { return function trimRight() { return $trim(this, 2); }; }, 'trimEnd'); -},{"./_string-trim":603}],810:[function(require,module,exports){ -arguments[4][495][0].apply(exports,arguments) -},{"./_wks-define":619,"dup":495}],811:[function(require,module,exports){ -arguments[4][496][0].apply(exports,arguments) -},{"./_wks-define":619,"dup":496}],812:[function(require,module,exports){ -'use strict'; - +},{"./_string-trim":617}],824:[function(require,module,exports){ +arguments[4][509][0].apply(exports,arguments) +},{"./_wks-define":633,"dup":509}],825:[function(require,module,exports){ +arguments[4][510][0].apply(exports,arguments) +},{"./_wks-define":633,"dup":510}],826:[function(require,module,exports){ // https://github.com/tc39/proposal-global var $export = require('./_export'); $export($export.S, 'System', { global: require('./_global') }); -},{"./_export":528,"./_global":535}],813:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_global":549}],827:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from require('./_set-collection-from')('WeakMap'); -},{"./_set-collection-from":589}],814:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-from":603}],828:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of require('./_set-collection-of')('WeakMap'); -},{"./_set-collection-of":590}],815:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-of":604}],829:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from require('./_set-collection-from')('WeakSet'); -},{"./_set-collection-from":589}],816:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-from":603}],830:[function(require,module,exports){ // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of require('./_set-collection-of')('WeakSet'); -},{"./_set-collection-of":590}],817:[function(require,module,exports){ -'use strict'; - +},{"./_set-collection-of":604}],831:[function(require,module,exports){ var $iterators = require('./es6.array.iterator'); var getKeys = require('./_object-keys'); var redefine = require('./_redefine'); @@ -136125,15 +143506,11 @@ for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++ if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); Iterators[NAME] = ArrayValues; - if (explicit) for (key in $iterators) { - if (!proto[key]) redefine(proto, key, $iterators[key], true); - } + if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); } } -},{"./_global":535,"./_hide":537,"./_iterators":553,"./_object-keys":575,"./_redefine":586,"./_wks":621,"./es6.array.iterator":634}],818:[function(require,module,exports){ -'use strict'; - +},{"./_global":549,"./_hide":551,"./_iterators":567,"./_object-keys":589,"./_redefine":600,"./_wks":635,"./es6.array.iterator":648}],832:[function(require,module,exports){ var $export = require('./_export'); var $task = require('./_task'); $export($export.G + $export.B, { @@ -136141,16 +143518,14 @@ $export($export.G + $export.B, { clearImmediate: $task.clear }); -},{"./_export":528,"./_task":605}],819:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_task":619}],833:[function(require,module,exports){ // ie9- setTimeout & setInterval additional parameters fix var global = require('./_global'); var $export = require('./_export'); var userAgent = require('./_user-agent'); var slice = [].slice; var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check -var wrap = function wrap(set) { +var wrap = function (set) { return function (fn, time /* , ...args */) { var boundArgs = arguments.length > 2; var args = boundArgs ? slice.call(arguments, 2) : false; @@ -136165,9 +143540,7 @@ $export($export.G + $export.B + $export.F * MSIE, { setInterval: wrap(global.setInterval) }); -},{"./_export":528,"./_global":535,"./_user-agent":617}],820:[function(require,module,exports){ -'use strict'; - +},{"./_export":542,"./_global":549,"./_user-agent":631}],834:[function(require,module,exports){ require('./modules/es6.symbol'); require('./modules/es6.object.create'); require('./modules/es6.object.define-property'); @@ -136366,12 +143739,8 @@ require('./modules/web.immediate'); require('./modules/web.dom.iterable'); module.exports = require('./modules/_core'); -},{"./modules/_core":518,"./modules/es6.array.copy-within":624,"./modules/es6.array.every":625,"./modules/es6.array.fill":626,"./modules/es6.array.filter":627,"./modules/es6.array.find":629,"./modules/es6.array.find-index":628,"./modules/es6.array.for-each":630,"./modules/es6.array.from":631,"./modules/es6.array.index-of":632,"./modules/es6.array.is-array":633,"./modules/es6.array.iterator":634,"./modules/es6.array.join":635,"./modules/es6.array.last-index-of":636,"./modules/es6.array.map":637,"./modules/es6.array.of":638,"./modules/es6.array.reduce":640,"./modules/es6.array.reduce-right":639,"./modules/es6.array.slice":641,"./modules/es6.array.some":642,"./modules/es6.array.sort":643,"./modules/es6.array.species":644,"./modules/es6.date.now":645,"./modules/es6.date.to-iso-string":646,"./modules/es6.date.to-json":647,"./modules/es6.date.to-primitive":648,"./modules/es6.date.to-string":649,"./modules/es6.function.bind":650,"./modules/es6.function.has-instance":651,"./modules/es6.function.name":652,"./modules/es6.map":653,"./modules/es6.math.acosh":654,"./modules/es6.math.asinh":655,"./modules/es6.math.atanh":656,"./modules/es6.math.cbrt":657,"./modules/es6.math.clz32":658,"./modules/es6.math.cosh":659,"./modules/es6.math.expm1":660,"./modules/es6.math.fround":661,"./modules/es6.math.hypot":662,"./modules/es6.math.imul":663,"./modules/es6.math.log10":664,"./modules/es6.math.log1p":665,"./modules/es6.math.log2":666,"./modules/es6.math.sign":667,"./modules/es6.math.sinh":668,"./modules/es6.math.tanh":669,"./modules/es6.math.trunc":670,"./modules/es6.number.constructor":671,"./modules/es6.number.epsilon":672,"./modules/es6.number.is-finite":673,"./modules/es6.number.is-integer":674,"./modules/es6.number.is-nan":675,"./modules/es6.number.is-safe-integer":676,"./modules/es6.number.max-safe-integer":677,"./modules/es6.number.min-safe-integer":678,"./modules/es6.number.parse-float":679,"./modules/es6.number.parse-int":680,"./modules/es6.number.to-fixed":681,"./modules/es6.number.to-precision":682,"./modules/es6.object.assign":683,"./modules/es6.object.create":684,"./modules/es6.object.define-properties":685,"./modules/es6.object.define-property":686,"./modules/es6.object.freeze":687,"./modules/es6.object.get-own-property-descriptor":688,"./modules/es6.object.get-own-property-names":689,"./modules/es6.object.get-prototype-of":690,"./modules/es6.object.is":694,"./modules/es6.object.is-extensible":691,"./modules/es6.object.is-frozen":692,"./modules/es6.object.is-sealed":693,"./modules/es6.object.keys":695,"./modules/es6.object.prevent-extensions":696,"./modules/es6.object.seal":697,"./modules/es6.object.set-prototype-of":698,"./modules/es6.object.to-string":699,"./modules/es6.parse-float":700,"./modules/es6.parse-int":701,"./modules/es6.promise":702,"./modules/es6.reflect.apply":703,"./modules/es6.reflect.construct":704,"./modules/es6.reflect.define-property":705,"./modules/es6.reflect.delete-property":706,"./modules/es6.reflect.enumerate":707,"./modules/es6.reflect.get":710,"./modules/es6.reflect.get-own-property-descriptor":708,"./modules/es6.reflect.get-prototype-of":709,"./modules/es6.reflect.has":711,"./modules/es6.reflect.is-extensible":712,"./modules/es6.reflect.own-keys":713,"./modules/es6.reflect.prevent-extensions":714,"./modules/es6.reflect.set":716,"./modules/es6.reflect.set-prototype-of":715,"./modules/es6.regexp.constructor":717,"./modules/es6.regexp.flags":718,"./modules/es6.regexp.match":719,"./modules/es6.regexp.replace":720,"./modules/es6.regexp.search":721,"./modules/es6.regexp.split":722,"./modules/es6.regexp.to-string":723,"./modules/es6.set":724,"./modules/es6.string.anchor":725,"./modules/es6.string.big":726,"./modules/es6.string.blink":727,"./modules/es6.string.bold":728,"./modules/es6.string.code-point-at":729,"./modules/es6.string.ends-with":730,"./modules/es6.string.fixed":731,"./modules/es6.string.fontcolor":732,"./modules/es6.string.fontsize":733,"./modules/es6.string.from-code-point":734,"./modules/es6.string.includes":735,"./modules/es6.string.italics":736,"./modules/es6.string.iterator":737,"./modules/es6.string.link":738,"./modules/es6.string.raw":739,"./modules/es6.string.repeat":740,"./modules/es6.string.small":741,"./modules/es6.string.starts-with":742,"./modules/es6.string.strike":743,"./modules/es6.string.sub":744,"./modules/es6.string.sup":745,"./modules/es6.string.trim":746,"./modules/es6.symbol":747,"./modules/es6.typed.array-buffer":748,"./modules/es6.typed.data-view":749,"./modules/es6.typed.float32-array":750,"./modules/es6.typed.float64-array":751,"./modules/es6.typed.int16-array":752,"./modules/es6.typed.int32-array":753,"./modules/es6.typed.int8-array":754,"./modules/es6.typed.uint16-array":755,"./modules/es6.typed.uint32-array":756,"./modules/es6.typed.uint8-array":757,"./modules/es6.typed.uint8-clamped-array":758,"./modules/es6.weak-map":759,"./modules/es6.weak-set":760,"./modules/es7.array.flat-map":761,"./modules/es7.array.flatten":762,"./modules/es7.array.includes":763,"./modules/es7.asap":764,"./modules/es7.error.is-error":765,"./modules/es7.global":766,"./modules/es7.map.from":767,"./modules/es7.map.of":768,"./modules/es7.map.to-json":769,"./modules/es7.math.clamp":770,"./modules/es7.math.deg-per-rad":771,"./modules/es7.math.degrees":772,"./modules/es7.math.fscale":773,"./modules/es7.math.iaddh":774,"./modules/es7.math.imulh":775,"./modules/es7.math.isubh":776,"./modules/es7.math.rad-per-deg":777,"./modules/es7.math.radians":778,"./modules/es7.math.scale":779,"./modules/es7.math.signbit":780,"./modules/es7.math.umulh":781,"./modules/es7.object.define-getter":782,"./modules/es7.object.define-setter":783,"./modules/es7.object.entries":784,"./modules/es7.object.get-own-property-descriptors":785,"./modules/es7.object.lookup-getter":786,"./modules/es7.object.lookup-setter":787,"./modules/es7.object.values":788,"./modules/es7.observable":789,"./modules/es7.promise.finally":790,"./modules/es7.promise.try":791,"./modules/es7.reflect.define-metadata":792,"./modules/es7.reflect.delete-metadata":793,"./modules/es7.reflect.get-metadata":795,"./modules/es7.reflect.get-metadata-keys":794,"./modules/es7.reflect.get-own-metadata":797,"./modules/es7.reflect.get-own-metadata-keys":796,"./modules/es7.reflect.has-metadata":798,"./modules/es7.reflect.has-own-metadata":799,"./modules/es7.reflect.metadata":800,"./modules/es7.set.from":801,"./modules/es7.set.of":802,"./modules/es7.set.to-json":803,"./modules/es7.string.at":804,"./modules/es7.string.match-all":805,"./modules/es7.string.pad-end":806,"./modules/es7.string.pad-start":807,"./modules/es7.string.trim-left":808,"./modules/es7.string.trim-right":809,"./modules/es7.symbol.async-iterator":810,"./modules/es7.symbol.observable":811,"./modules/es7.system.global":812,"./modules/es7.weak-map.from":813,"./modules/es7.weak-map.of":814,"./modules/es7.weak-set.from":815,"./modules/es7.weak-set.of":816,"./modules/web.dom.iterable":817,"./modules/web.immediate":818,"./modules/web.timers":819}],821:[function(require,module,exports){ +},{"./modules/_core":532,"./modules/es6.array.copy-within":638,"./modules/es6.array.every":639,"./modules/es6.array.fill":640,"./modules/es6.array.filter":641,"./modules/es6.array.find":643,"./modules/es6.array.find-index":642,"./modules/es6.array.for-each":644,"./modules/es6.array.from":645,"./modules/es6.array.index-of":646,"./modules/es6.array.is-array":647,"./modules/es6.array.iterator":648,"./modules/es6.array.join":649,"./modules/es6.array.last-index-of":650,"./modules/es6.array.map":651,"./modules/es6.array.of":652,"./modules/es6.array.reduce":654,"./modules/es6.array.reduce-right":653,"./modules/es6.array.slice":655,"./modules/es6.array.some":656,"./modules/es6.array.sort":657,"./modules/es6.array.species":658,"./modules/es6.date.now":659,"./modules/es6.date.to-iso-string":660,"./modules/es6.date.to-json":661,"./modules/es6.date.to-primitive":662,"./modules/es6.date.to-string":663,"./modules/es6.function.bind":664,"./modules/es6.function.has-instance":665,"./modules/es6.function.name":666,"./modules/es6.map":667,"./modules/es6.math.acosh":668,"./modules/es6.math.asinh":669,"./modules/es6.math.atanh":670,"./modules/es6.math.cbrt":671,"./modules/es6.math.clz32":672,"./modules/es6.math.cosh":673,"./modules/es6.math.expm1":674,"./modules/es6.math.fround":675,"./modules/es6.math.hypot":676,"./modules/es6.math.imul":677,"./modules/es6.math.log10":678,"./modules/es6.math.log1p":679,"./modules/es6.math.log2":680,"./modules/es6.math.sign":681,"./modules/es6.math.sinh":682,"./modules/es6.math.tanh":683,"./modules/es6.math.trunc":684,"./modules/es6.number.constructor":685,"./modules/es6.number.epsilon":686,"./modules/es6.number.is-finite":687,"./modules/es6.number.is-integer":688,"./modules/es6.number.is-nan":689,"./modules/es6.number.is-safe-integer":690,"./modules/es6.number.max-safe-integer":691,"./modules/es6.number.min-safe-integer":692,"./modules/es6.number.parse-float":693,"./modules/es6.number.parse-int":694,"./modules/es6.number.to-fixed":695,"./modules/es6.number.to-precision":696,"./modules/es6.object.assign":697,"./modules/es6.object.create":698,"./modules/es6.object.define-properties":699,"./modules/es6.object.define-property":700,"./modules/es6.object.freeze":701,"./modules/es6.object.get-own-property-descriptor":702,"./modules/es6.object.get-own-property-names":703,"./modules/es6.object.get-prototype-of":704,"./modules/es6.object.is":708,"./modules/es6.object.is-extensible":705,"./modules/es6.object.is-frozen":706,"./modules/es6.object.is-sealed":707,"./modules/es6.object.keys":709,"./modules/es6.object.prevent-extensions":710,"./modules/es6.object.seal":711,"./modules/es6.object.set-prototype-of":712,"./modules/es6.object.to-string":713,"./modules/es6.parse-float":714,"./modules/es6.parse-int":715,"./modules/es6.promise":716,"./modules/es6.reflect.apply":717,"./modules/es6.reflect.construct":718,"./modules/es6.reflect.define-property":719,"./modules/es6.reflect.delete-property":720,"./modules/es6.reflect.enumerate":721,"./modules/es6.reflect.get":724,"./modules/es6.reflect.get-own-property-descriptor":722,"./modules/es6.reflect.get-prototype-of":723,"./modules/es6.reflect.has":725,"./modules/es6.reflect.is-extensible":726,"./modules/es6.reflect.own-keys":727,"./modules/es6.reflect.prevent-extensions":728,"./modules/es6.reflect.set":730,"./modules/es6.reflect.set-prototype-of":729,"./modules/es6.regexp.constructor":731,"./modules/es6.regexp.flags":732,"./modules/es6.regexp.match":733,"./modules/es6.regexp.replace":734,"./modules/es6.regexp.search":735,"./modules/es6.regexp.split":736,"./modules/es6.regexp.to-string":737,"./modules/es6.set":738,"./modules/es6.string.anchor":739,"./modules/es6.string.big":740,"./modules/es6.string.blink":741,"./modules/es6.string.bold":742,"./modules/es6.string.code-point-at":743,"./modules/es6.string.ends-with":744,"./modules/es6.string.fixed":745,"./modules/es6.string.fontcolor":746,"./modules/es6.string.fontsize":747,"./modules/es6.string.from-code-point":748,"./modules/es6.string.includes":749,"./modules/es6.string.italics":750,"./modules/es6.string.iterator":751,"./modules/es6.string.link":752,"./modules/es6.string.raw":753,"./modules/es6.string.repeat":754,"./modules/es6.string.small":755,"./modules/es6.string.starts-with":756,"./modules/es6.string.strike":757,"./modules/es6.string.sub":758,"./modules/es6.string.sup":759,"./modules/es6.string.trim":760,"./modules/es6.symbol":761,"./modules/es6.typed.array-buffer":762,"./modules/es6.typed.data-view":763,"./modules/es6.typed.float32-array":764,"./modules/es6.typed.float64-array":765,"./modules/es6.typed.int16-array":766,"./modules/es6.typed.int32-array":767,"./modules/es6.typed.int8-array":768,"./modules/es6.typed.uint16-array":769,"./modules/es6.typed.uint32-array":770,"./modules/es6.typed.uint8-array":771,"./modules/es6.typed.uint8-clamped-array":772,"./modules/es6.weak-map":773,"./modules/es6.weak-set":774,"./modules/es7.array.flat-map":775,"./modules/es7.array.flatten":776,"./modules/es7.array.includes":777,"./modules/es7.asap":778,"./modules/es7.error.is-error":779,"./modules/es7.global":780,"./modules/es7.map.from":781,"./modules/es7.map.of":782,"./modules/es7.map.to-json":783,"./modules/es7.math.clamp":784,"./modules/es7.math.deg-per-rad":785,"./modules/es7.math.degrees":786,"./modules/es7.math.fscale":787,"./modules/es7.math.iaddh":788,"./modules/es7.math.imulh":789,"./modules/es7.math.isubh":790,"./modules/es7.math.rad-per-deg":791,"./modules/es7.math.radians":792,"./modules/es7.math.scale":793,"./modules/es7.math.signbit":794,"./modules/es7.math.umulh":795,"./modules/es7.object.define-getter":796,"./modules/es7.object.define-setter":797,"./modules/es7.object.entries":798,"./modules/es7.object.get-own-property-descriptors":799,"./modules/es7.object.lookup-getter":800,"./modules/es7.object.lookup-setter":801,"./modules/es7.object.values":802,"./modules/es7.observable":803,"./modules/es7.promise.finally":804,"./modules/es7.promise.try":805,"./modules/es7.reflect.define-metadata":806,"./modules/es7.reflect.delete-metadata":807,"./modules/es7.reflect.get-metadata":809,"./modules/es7.reflect.get-metadata-keys":808,"./modules/es7.reflect.get-own-metadata":811,"./modules/es7.reflect.get-own-metadata-keys":810,"./modules/es7.reflect.has-metadata":812,"./modules/es7.reflect.has-own-metadata":813,"./modules/es7.reflect.metadata":814,"./modules/es7.set.from":815,"./modules/es7.set.of":816,"./modules/es7.set.to-json":817,"./modules/es7.string.at":818,"./modules/es7.string.match-all":819,"./modules/es7.string.pad-end":820,"./modules/es7.string.pad-start":821,"./modules/es7.string.trim-left":822,"./modules/es7.string.trim-right":823,"./modules/es7.symbol.async-iterator":824,"./modules/es7.symbol.observable":825,"./modules/es7.system.global":826,"./modules/es7.weak-map.from":827,"./modules/es7.weak-map.of":828,"./modules/es7.weak-set.from":829,"./modules/es7.weak-set.of":830,"./modules/web.dom.iterable":831,"./modules/web.immediate":832,"./modules/web.timers":833}],835:[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 @@ -136430,7 +143799,7 @@ function isString(arg) { exports.isString = isString; function isSymbol(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol'; + return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; @@ -136445,7 +143814,7 @@ function isRegExp(re) { exports.isRegExp = isRegExp; function isObject(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null; + return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; @@ -136455,7 +143824,7 @@ function isDate(d) { exports.isDate = isDate; function isError(e) { - return objectToString(e) === '[object Error]' || e instanceof Error; + return (objectToString(e) === '[object Error]' || e instanceof Error); } exports.isError = isError; @@ -136465,8 +143834,12 @@ function isFunction(arg) { 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'; + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; @@ -136477,16 +143850,14 @@ function objectToString(o) { } }).call(this,{"isBuffer":require("../../is-buffer/index.js")}) -},{"../../is-buffer/index.js":883}],822:[function(require,module,exports){ +},{"../../is-buffer/index.js":897}],836:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var elliptic = require('elliptic'); -var BN = require('bn.js'); +var elliptic = require('elliptic') +var BN = require('bn.js') -module.exports = function createECDH(curve) { - return new ECDH(curve); -}; +module.exports = function createECDH (curve) { + return new ECDH(curve) +} var aliases = { secp256k1: { @@ -136517,275 +143888,271 @@ var aliases = { 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; +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]; +function ECDH (curve) { + this.curveType = aliases[curve] if (!this.curveType) { this.curveType = { name: curve - }; + } } - this.curve = new elliptic.ec(this.curveType.name); // eslint-disable-line new-cap - this.keys = void 0; + this.curve = new elliptic.ec(this.curveType.name) // eslint-disable-line new-cap + this.keys = void 0 } ECDH.prototype.generateKeys = function (enc, format) { - this.keys = this.curve.genKeyPair(); - return this.getPublicKey(enc, format); -}; + this.keys = this.curve.genKeyPair() + return this.getPublicKey(enc, format) +} ECDH.prototype.computeSecret = function (other, inenc, enc) { - inenc = inenc || 'utf8'; + inenc = inenc || 'utf8' if (!Buffer.isBuffer(other)) { - other = new Buffer(other, inenc); + 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); -}; + 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); + var key = this.keys.getPublic(format === 'compressed', true) if (format === 'hybrid') { if (key[key.length - 1] % 2) { - key[0] = 7; + key[0] = 7 } else { - key[0] = 6; + key[0] = 6 } } - return formatReturnValue(key, enc); -}; + return formatReturnValue(key, enc) +} ECDH.prototype.getPrivateKey = function (enc) { - return formatReturnValue(this.keys.getPrivate(), enc); -}; + return formatReturnValue(this.keys.getPrivate(), enc) +} ECDH.prototype.setPublicKey = function (pub, enc) { - enc = enc || 'utf8'; + enc = enc || 'utf8' if (!Buffer.isBuffer(pub)) { - pub = new Buffer(pub, enc); + pub = new Buffer(pub, enc) } - this.keys._importPublic(pub); - return this; -}; + this.keys._importPublic(pub) + return this +} ECDH.prototype.setPrivateKey = function (priv, enc) { - enc = enc || 'utf8'; + enc = enc || 'utf8' if (!Buffer.isBuffer(priv)) { - priv = new Buffer(priv, enc); + priv = new Buffer(priv, enc) } - var _priv = new BN(priv); - _priv = _priv.toString(16); - this.keys = this.curve.genKeyPair(); - this.keys._importPrivate(_priv); - return this; -}; + var _priv = new BN(priv) + _priv = _priv.toString(16) + this.keys = this.curve.genKeyPair() + this.keys._importPrivate(_priv) + return this +} -function formatReturnValue(bn, enc, len) { +function formatReturnValue (bn, enc, len) { if (!Array.isArray(bn)) { - bn = bn.toArray(); + bn = bn.toArray() } - var buf = new Buffer(bn); + 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]); + var zeros = new Buffer(len - buf.length) + zeros.fill(0) + buf = Buffer.concat([zeros, buf]) } if (!enc) { - return buf; + return buf } else { - return buf.toString(enc); + return buf.toString(enc) } } }).call(this,require("buffer").Buffer) -},{"bn.js":367,"buffer":401,"elliptic":841}],823:[function(require,module,exports){ +},{"bn.js":381,"buffer":415,"elliptic":855}],837:[function(require,module,exports){ arguments[4][190][0].apply(exports,arguments) -},{"cipher-base":402,"dup":190,"inherits":882,"md5.js":896,"ripemd160":935,"sha.js":946}],824:[function(require,module,exports){ -'use strict'; - -var MD5 = require('md5.js'); +},{"cipher-base":416,"dup":190,"inherits":896,"md5.js":910,"ripemd160":949,"sha.js":960}],838:[function(require,module,exports){ +var MD5 = require('md5.js') module.exports = function (buffer) { - return new MD5().update(buffer).digest(); -}; - -},{"md5.js":896}],825:[function(require,module,exports){ -'use strict'; + return new MD5().update(buffer).digest() +} -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'); +},{"md5.js":910}],839:[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 sha = require('sha.js') -var ZEROS = Buffer.alloc(128); +var ZEROS = Buffer.alloc(128) -function Hmac(alg, key) { - Base.call(this, 'digest'); +function Hmac (alg, key) { + Base.call(this, 'digest') if (typeof key === 'string') { - key = Buffer.from(key); + key = Buffer.from(key) } - var blocksize = alg === 'sha512' || alg === 'sha384' ? 128 : 64; + var blocksize = (alg === 'sha512' || alg === 'sha384') ? 128 : 64 - this._alg = alg; - this._key = key; + this._alg = alg + this._key = key if (key.length > blocksize) { - var hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg); - key = hash.update(key).digest(); + var hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg) + key = hash.update(key).digest() } else if (key.length < blocksize) { - key = Buffer.concat([key, ZEROS], blocksize); + key = Buffer.concat([key, ZEROS], blocksize) } - var ipad = this._ipad = Buffer.allocUnsafe(blocksize); - var opad = this._opad = Buffer.allocUnsafe(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; + ipad[i] = key[i] ^ 0x36 + opad[i] = key[i] ^ 0x5C } - this._hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg); - this._hash.update(ipad); + this._hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg) + this._hash.update(ipad) } -inherits(Hmac, Base); +inherits(Hmac, Base) Hmac.prototype._update = function (data) { - this._hash.update(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(); -}; + 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(); +module.exports = function createHmac (alg, key) { + alg = alg.toLowerCase() if (alg === 'rmd160' || alg === 'ripemd160') { - return new Hmac('rmd160', key); + return new Hmac('rmd160', key) } if (alg === 'md5') { - return new Legacy(md5, key); + return new Legacy(md5, key) } - return new Hmac(alg, key); -}; - -},{"./legacy":826,"cipher-base":402,"create-hash/md5":824,"inherits":882,"ripemd160":935,"safe-buffer":937,"sha.js":946}],826:[function(require,module,exports){ -'use strict'; + return new Hmac(alg, key) +} -var inherits = require('inherits'); -var Buffer = require('safe-buffer').Buffer; +},{"./legacy":840,"cipher-base":416,"create-hash/md5":838,"inherits":896,"ripemd160":949,"safe-buffer":951,"sha.js":960}],840:[function(require,module,exports){ +'use strict' +var inherits = require('inherits') +var Buffer = require('safe-buffer').Buffer -var Base = require('cipher-base'); +var Base = require('cipher-base') -var ZEROS = Buffer.alloc(128); -var blocksize = 64; +var ZEROS = Buffer.alloc(128) +var blocksize = 64 -function Hmac(alg, key) { - Base.call(this, 'digest'); +function Hmac (alg, key) { + Base.call(this, 'digest') if (typeof key === 'string') { - key = Buffer.from(key); + key = Buffer.from(key) } - this._alg = alg; - this._key = key; + this._alg = alg + this._key = key if (key.length > blocksize) { - key = alg(key); + key = alg(key) } else if (key.length < blocksize) { - key = Buffer.concat([key, ZEROS], blocksize); + key = Buffer.concat([key, ZEROS], blocksize) } - var ipad = this._ipad = Buffer.allocUnsafe(blocksize); - var opad = this._opad = Buffer.allocUnsafe(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; + ipad[i] = key[i] ^ 0x36 + opad[i] = key[i] ^ 0x5C } - this._hash = [ipad]; + this._hash = [ipad] } -inherits(Hmac, Base); +inherits(Hmac, Base) Hmac.prototype._update = function (data) { - this._hash.push(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; + var h = this._alg(Buffer.concat(this._hash)) + return this._alg(Buffer.concat([this._opad, h])) +} +module.exports = Hmac -},{"cipher-base":402,"inherits":882,"safe-buffer":937}],827:[function(require,module,exports){ -'use strict'; +},{"cipher-base":416,"inherits":896,"safe-buffer":951}],841:[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'); +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); +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; -}; + return hashes +} -var p = require('pbkdf2'); -exports.pbkdf2 = p.pbkdf2; -exports.pbkdf2Sync = p.pbkdf2Sync; +var p = require('pbkdf2') +exports.pbkdf2 = p.pbkdf2 +exports.pbkdf2Sync = p.pbkdf2Sync -var aes = require('browserify-cipher'); +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; +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'); +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; +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'); +var sign = require('browserify-sign') -exports.createSign = sign.createSign; -exports.Sign = sign.Sign; -exports.createVerify = sign.createVerify; -exports.Verify = sign.Verify; +exports.createSign = sign.createSign +exports.Sign = sign.Sign +exports.createVerify = sign.createVerify +exports.Verify = sign.Verify -exports.createECDH = require('create-ecdh'); +exports.createECDH = require('create-ecdh') -var publicEncrypt = require('public-encrypt'); +var publicEncrypt = require('public-encrypt') -exports.publicEncrypt = publicEncrypt.publicEncrypt; -exports.privateEncrypt = publicEncrypt.privateEncrypt; -exports.publicDecrypt = publicEncrypt.publicDecrypt; -exports.privateDecrypt = publicEncrypt.privateDecrypt; +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. // ;[ @@ -136800,14 +144167,18 @@ exports.privateDecrypt = publicEncrypt.privateDecrypt; // } // }) -var rf = require('randomfill'); +var rf = require('randomfill') -exports.randomFill = rf.randomFill; -exports.randomFillSync = rf.randomFillSync; +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')); -}; + 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, @@ -136825,9 +144196,9 @@ exports.constants = { 'POINT_CONVERSION_COMPRESSED': 2, 'POINT_CONVERSION_UNCOMPRESSED': 4, 'POINT_CONVERSION_HYBRID': 6 -}; +} -},{"browserify-cipher":387,"browserify-sign":394,"browserify-sign/algos":391,"create-ecdh":822,"create-hash":823,"create-hmac":825,"diffie-hellman":837,"pbkdf2":905,"public-encrypt":912,"randombytes":918,"randomfill":919}],828:[function(require,module,exports){ +},{"browserify-cipher":401,"browserify-sign":408,"browserify-sign/algos":405,"create-ecdh":836,"create-hash":837,"create-hmac":839,"diffie-hellman":851,"pbkdf2":919,"public-encrypt":926,"randombytes":932,"randomfill":933}],842:[function(require,module,exports){ 'use strict'; exports.utils = require('./des/utils'); @@ -136836,7 +144207,7 @@ exports.DES = require('./des/des'); exports.CBC = require('./des/cbc'); exports.EDE = require('./des/ede'); -},{"./des/cbc":829,"./des/cipher":830,"./des/des":831,"./des/ede":832,"./des/utils":833}],829:[function(require,module,exports){ +},{"./des/cbc":843,"./des/cipher":844,"./des/des":845,"./des/ede":846,"./des/utils":847}],843:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -136848,9 +144219,8 @@ 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++) { + for (var i = 0; i < this.iv.length; i++) this.iv[i] = iv[i]; - } } function instantiate(Base) { @@ -136886,25 +144256,25 @@ proto._update = function _update(inp, inOff, out, outOff) { var iv = state.iv; if (this.type === 'encrypt') { - for (var i = 0; i < this.blockSize; i++) { + 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++) { + 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++) { + for (var i = 0; i < this.blockSize; i++) out[outOff + i] ^= iv[i]; - }for (var i = 0; i < this.blockSize; i++) { + + for (var i = 0; i < this.blockSize; i++) iv[i] = inp[inOff + i]; - } } }; -},{"inherits":882,"minimalistic-assert":898}],830:[function(require,module,exports){ +},{"inherits":896,"minimalistic-assert":912}],844:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -136926,17 +144296,21 @@ Cipher.prototype._init = function _init() { }; Cipher.prototype.update = function update(data) { - if (data.length === 0) return []; + if (data.length === 0) + return []; - if (this.type === 'decrypt') return this._updateDecrypt(data);else return this._updateEncrypt(data); + 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++) { + for (var i = 0; i < min; i++) this.buffer[this.bufferOff + i] = data[off + i]; - }this.bufferOff += min; + this.bufferOff += min; // Shift next return min; @@ -136952,26 +144326,28 @@ Cipher.prototype._updateEncrypt = function _updateEncrypt(data) { var inputOff = 0; var outputOff = 0; - var count = (this.bufferOff + data.length) / this.blockSize | 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); + if (this.bufferOff === this.buffer.length) + outputOff += this._flushBuffer(out, outputOff); } // Write blocks - var max = data.length - (data.length - inputOff) % this.blockSize; + 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++) { + for (; inputOff < data.length; inputOff++, this.bufferOff++) this.buffer[this.bufferOff] = data[inputOff]; - }return out; + + return out; }; Cipher.prototype._updateDecrypt = function _updateDecrypt(data) { @@ -136995,24 +144371,34 @@ Cipher.prototype._updateDecrypt = function _updateDecrypt(data) { Cipher.prototype.final = function final(buffer) { var first; - if (buffer) first = this.update(buffer); + if (buffer) + first = this.update(buffer); var last; - if (this.type === 'encrypt') last = this._finalEncrypt();else last = this._finalDecrypt(); + if (this.type === 'encrypt') + last = this._finalEncrypt(); + else + last = this._finalDecrypt(); - if (first) return first.concat(last);else return last; + if (first) + return first.concat(last); + else + return last; }; Cipher.prototype._pad = function _pad(buffer, off) { - if (off === 0) return false; + if (off === 0) + return false; - while (off < buffer.length) { + while (off < buffer.length) buffer[off++] = 0; - }return true; + + return true; }; Cipher.prototype._finalEncrypt = function _finalEncrypt() { - if (!this._pad(this.buffer, this.bufferOff)) return []; + if (!this._pad(this.buffer, this.bufferOff)) + return []; var out = new Array(this.blockSize); this._update(this.buffer, 0, out, 0); @@ -137031,7 +144417,7 @@ Cipher.prototype._finalDecrypt = function _finalDecrypt() { return this._unpad(out); }; -},{"minimalistic-assert":898}],831:[function(require,module,exports){ +},{"minimalistic-assert":912}],845:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -137061,7 +144447,10 @@ 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]; +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); @@ -137093,7 +144482,10 @@ DES.prototype._update = function _update(inp, inOff, out, outOff) { 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); + 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]; @@ -137104,16 +144496,18 @@ DES.prototype._update = function _update(inp, inOff, out, outOff) { DES.prototype._pad = function _pad(buffer, off) { var value = buffer.length - off; - for (var i = off; i < buffer.length; i++) { + for (var i = off; i < buffer.length; i++) buffer[i] = value; - }return true; + + return true; }; DES.prototype._unpad = function _unpad(buffer) { var pad = buffer[buffer.length - 1]; - for (var i = buffer.length - pad; i < buffer.length; i++) { + for (var i = buffer.length - pad; i < buffer.length; i++) assert.equal(buffer[i], pad); - }return buffer.slice(0, buffer.length - pad); + + return buffer.slice(0, buffer.length - pad); }; DES.prototype._encrypt = function _encrypt(state, lStart, rStart, out, off) { @@ -137168,7 +144562,7 @@ DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) { utils.rip(l, r, out, off); }; -},{"../des":828,"inherits":882,"minimalistic-assert":898}],832:[function(require,module,exports){ +},{"../des":842,"inherits":896,"minimalistic-assert":912}],846:[function(require,module,exports){ 'use strict'; var assert = require('minimalistic-assert'); @@ -137186,9 +144580,17 @@ function EDEState(type, key) { 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 })]; + 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 })]; + this.ciphers = [ + DES.create({ type: 'decrypt', key: k3 }), + DES.create({ type: 'encrypt', key: k2 }), + DES.create({ type: 'decrypt', key: k1 }) + ]; } } @@ -137217,18 +144619,21 @@ EDE.prototype._update = function _update(inp, inOff, out, outOff) { EDE.prototype._pad = DES.prototype._pad; EDE.prototype._unpad = DES.prototype._unpad; -},{"../des":828,"inherits":882,"minimalistic-assert":898}],833:[function(require,module,exports){ +},{"../des":842,"inherits":896,"minimalistic-assert":912}],847:[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]; + 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[1 + off] = (value >>> 16) & 0xff; + bytes[2 + off] = (value >>> 8) & 0xff; bytes[3 + off] = value & 0xff; }; @@ -137239,22 +144644,22 @@ exports.ip = function ip(inL, inR, out, off) { for (var i = 6; i >= 0; i -= 2) { for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inR >>> j + i & 1; + outL |= (inR >>> (j + i)) & 1; } for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inL >>> j + i & 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; + outR |= (inR >>> (j + i)) & 1; } for (var j = 1; j <= 25; j += 8) { outR <<= 1; - outR |= inL >>> j + i & 1; + outR |= (inL >>> (j + i)) & 1; } } @@ -137269,17 +144674,17 @@ exports.rip = function rip(inL, inR, out, off) { for (var i = 0; i < 4; i++) { for (var j = 24; j >= 0; j -= 8) { outL <<= 1; - outL |= inR >>> j + i & 1; + outL |= (inR >>> (j + i)) & 1; outL <<= 1; - outL |= inL >>> j + i & 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 |= (inR >>> (j + i)) & 1; outR <<= 1; - outR |= inL >>> j + i & 1; + outR |= (inL >>> (j + i)) & 1; } } @@ -137298,16 +144703,16 @@ exports.pc1 = function pc1(inL, inR, out, off) { for (var i = 7; i >= 5; i--) { for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inR >> j + i & 1; + outL |= (inR >> (j + i)) & 1; } for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inL >> j + i & 1; + outL |= (inL >> (j + i)) & 1; } } for (var j = 0; j <= 24; j += 8) { outL <<= 1; - outL |= inR >> j + i & 1; + outL |= (inR >> (j + i)) & 1; } // 1, 9, 17, 25, 33, 41, 49, 57 @@ -137317,16 +144722,16 @@ exports.pc1 = function pc1(inL, inR, out, off) { for (var i = 1; i <= 3; i++) { for (var j = 0; j <= 24; j += 8) { outR <<= 1; - outR |= inR >> j + i & 1; + outR |= (inR >> (j + i)) & 1; } for (var j = 0; j <= 24; j += 8) { outR <<= 1; - outR |= inL >> j + i & 1; + outR |= (inL >> (j + i)) & 1; } } for (var j = 0; j <= 24; j += 8) { outR <<= 1; - outR |= inL >> j + i & 1; + outR |= (inL >> (j + i)) & 1; } out[off + 0] = outL >>> 0; @@ -137334,15 +144739,20 @@ exports.pc1 = function pc1(inL, inR, out, off) { }; exports.r28shl = function r28shl(num, shift) { - return num << shift & 0xfffffff | num >>> 28 - 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]; + // 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; @@ -137351,11 +144761,11 @@ exports.pc2 = function pc2(inL, inR, out, off) { var len = pc2table.length >>> 1; for (var i = 0; i < len; i++) { outL <<= 1; - outL |= inL >>> pc2table[i] & 0x1; + outL |= (inL >>> pc2table[i]) & 0x1; } for (var i = len; i < pc2table.length; i++) { outR <<= 1; - outR |= inR >>> pc2table[i] & 0x1; + outR |= (inR >>> pc2table[i]) & 0x1; } out[off + 0] = outL >>> 0; @@ -137366,34 +144776,74 @@ exports.expand = function expand(r, out, off) { var outL = 0; var outR = 0; - outL = (r & 1) << 5 | r >>> 27; + outL = ((r & 1) << 5) | (r >>> 27); for (var i = 23; i >= 15; i -= 4) { outL <<= 6; - outL |= r >>> i & 0x3f; + outL |= (r >>> i) & 0x3f; } for (var i = 11; i >= 3; i -= 4) { - outR |= r >>> i & 0x3f; + outR |= (r >>> i) & 0x3f; outR <<= 6; } - outR |= (r & 0x1f) << 1 | r >>> 31; + 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]; +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 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 b = (inR >>> (18 - i * 6)) & 0x3f; var sb = sTable[4 * 0x40 + i * 0x40 + b]; out <<= 4; @@ -137402,30 +144852,32 @@ exports.substitute = function substitute(inL, inR) { 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]; +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; + out |= (num >>> permuteTable[i]) & 0x1; } return out >>> 0; }; exports.padSplit = function padSplit(num, size, group) { var str = num.toString(2); - while (str.length < size) { + while (str.length < size) str = '0' + str; - }var out = []; - for (var i = 0; i < size; i += group) { + + var out = []; + for (var i = 0; i < size; i += group) out.push(str.slice(i, i + group)); - }return out.join(' '); + return out.join(' '); }; -},{}],834:[function(require,module,exports){ -'use strict'; - +},{}],848:[function(require,module,exports){ var detectBrowser = require('./lib/detectBrowser'); var agent; @@ -137436,114 +144888,155 @@ if (typeof navigator !== 'undefined' && navigator) { module.exports = detectBrowser(agent); -},{"./lib/detectBrowser":835}],835:[function(require,module,exports){ -'use strict'; - +},{"./lib/detectBrowser":849}],849:[function(require,module,exports){ 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]); - } + 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(); + return { + name: rule[0], + version: version.join('.'), + os: detectOS(userAgentString) + }; + } + }).filter(Boolean).shift(); }; -},{"./detectOS.js":836}],836:[function(require,module,exports){ -'use strict'; - +},{"./detectOS.js":850}],850:[function(require,module,exports){ 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 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)) { @@ -137554,58 +145047,54 @@ module.exports = function detectOS(userAgentString) { return detected && detected[0] ? detected[0].name : null; }; -},{}],837:[function(require,module,exports){ +},{}],851:[function(require,module,exports){ (function (Buffer){ -'use strict'; +var generatePrime = require('./lib/generatePrime') +var primes = require('./lib/primes.json') -var generatePrime = require('./lib/generatePrime'); -var primes = require('./lib/primes.json'); +var DH = require('./lib/dh') -var DH = require('./lib/dh'); +function getDiffieHellman (mod) { + var prime = new Buffer(primes[mod].prime, 'hex') + var gen = new Buffer(primes[mod].gen, 'hex') -function getDiffieHellman(mod) { - var prime = new Buffer(primes[mod].prime, 'hex'); - var gen = new Buffer(primes[mod].gen, 'hex'); - - return new DH(prime, gen); + return new DH(prime, gen) } var ENCODINGS = { 'binary': true, 'hex': true, 'base64': true -}; +} -function createDiffieHellman(prime, enc, generator, genc) { +function createDiffieHellman (prime, enc, generator, genc) { if (Buffer.isBuffer(enc) || ENCODINGS[enc] === undefined) { - return createDiffieHellman(prime, 'binary', enc, generator); + return createDiffieHellman(prime, 'binary', enc, generator) } - enc = enc || 'binary'; - genc = genc || 'binary'; - generator = generator || new Buffer([2]); + enc = enc || 'binary' + genc = genc || 'binary' + generator = generator || new Buffer([2]) if (!Buffer.isBuffer(generator)) { - generator = new Buffer(generator, genc); + generator = new Buffer(generator, genc) } if (typeof prime === 'number') { - return new DH(generatePrime(prime, generator), generator, true); + return new DH(generatePrime(prime, generator), generator, true) } if (!Buffer.isBuffer(prime)) { - prime = new Buffer(prime, enc); + prime = new Buffer(prime, enc) } - return new DH(prime, generator, true); + return new DH(prime, generator, true) } -exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman; -exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman; +exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman +exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman }).call(this,require("buffer").Buffer) -},{"./lib/dh":838,"./lib/generatePrime":839,"./lib/primes.json":840,"buffer":401}],838:[function(require,module,exports){ +},{"./lib/dh":852,"./lib/generatePrime":853,"./lib/primes.json":854,"buffer":415}],852:[function(require,module,exports){ (function (Buffer){ -'use strict'; - var BN = require('bn.js'); var MillerRabin = require('miller-rabin'); var millerRabin = new MillerRabin(); @@ -137645,7 +145134,10 @@ function checkPrime(prime, generator) { } var error = 0; - if (prime.isEven() || !primes.simpleSieve || !primes.fermatTest(prime) || !millerRabin.test(prime)) { + if (prime.isEven() || + !primes.simpleSieve || + !primes.fermatTest(prime) || + !millerRabin.test(prime)) { //not a prime so +1 error += 1; @@ -137704,7 +145196,7 @@ function DH(prime, generator, malleable) { } Object.defineProperty(DH.prototype, 'verifyError', { enumerable: true, - get: function get() { + get: function () { if (typeof this._primeCode !== 'number') { this._primeCode = checkPrime(this.__prime, this.__gen); } @@ -137769,9 +145261,7 @@ function formatReturnValue(bn, enc) { } }).call(this,require("buffer").Buffer) -},{"./generatePrime":839,"bn.js":367,"buffer":401,"miller-rabin":897,"randombytes":918}],839:[function(require,module,exports){ -'use strict'; - +},{"./generatePrime":853,"bn.js":381,"buffer":415,"miller-rabin":911,"randombytes":932}],853:[function(require,module,exports){ var randomBytes = require('randombytes'); module.exports = findPrime; findPrime.simpleSieve = simpleSieve; @@ -137794,16 +145284,20 @@ var TWELVE = new BN(12); var primes = null; function _getPrimes() { - if (primes !== null) return primes; + 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; + 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; } @@ -137814,7 +145308,7 @@ function _getPrimes() { function simpleSieve(p) { var primes = _getPrimes(); - for (var i = 0; i < primes.length; i++) { + for (var i = 0; i < primes.length; i++) if (p.modn(primes[i]) === 0) { if (p.cmpn(primes[i]) === 0) { return true; @@ -137822,7 +145316,8 @@ function simpleSieve(p) { return false; } } - }return true; + + return true; } function fermatTest(p) { @@ -137864,13 +145359,16 @@ function findPrime(bits, gen) { } } n2 = num.shrn(1); - if (simpleSieve(n2) && simpleSieve(num) && fermatTest(n2) && fermatTest(num) && millerRabin.test(n2) && millerRabin.test(num)) { + if (simpleSieve(n2) && simpleSieve(num) && + fermatTest(n2) && fermatTest(num) && + millerRabin.test(n2) && millerRabin.test(num)) { return num; } } + } -},{"bn.js":367,"miller-rabin":897,"randombytes":918}],840:[function(require,module,exports){ +},{"bn.js":381,"miller-rabin":911,"randombytes":932}],854:[function(require,module,exports){ module.exports={ "modp1": { "gen": "02", @@ -137905,37 +145403,37 @@ module.exports={ "prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff" } } -},{}],841:[function(require,module,exports){ +},{}],855:[function(require,module,exports){ arguments[4][196][0].apply(exports,arguments) -},{"../package.json":856,"./elliptic/curve":844,"./elliptic/curves":847,"./elliptic/ec":848,"./elliptic/eddsa":851,"./elliptic/utils":855,"brorand":368,"dup":196}],842:[function(require,module,exports){ +},{"../package.json":870,"./elliptic/curve":858,"./elliptic/curves":861,"./elliptic/ec":862,"./elliptic/eddsa":865,"./elliptic/utils":869,"brorand":382,"dup":196}],856:[function(require,module,exports){ arguments[4][197][0].apply(exports,arguments) -},{"../../elliptic":841,"bn.js":367,"dup":197}],843:[function(require,module,exports){ +},{"../../elliptic":855,"bn.js":381,"dup":197}],857:[function(require,module,exports){ arguments[4][198][0].apply(exports,arguments) -},{"../../elliptic":841,"../curve":844,"bn.js":367,"dup":198,"inherits":882}],844:[function(require,module,exports){ +},{"../../elliptic":855,"../curve":858,"bn.js":381,"dup":198,"inherits":896}],858:[function(require,module,exports){ arguments[4][199][0].apply(exports,arguments) -},{"./base":842,"./edwards":843,"./mont":845,"./short":846,"dup":199}],845:[function(require,module,exports){ +},{"./base":856,"./edwards":857,"./mont":859,"./short":860,"dup":199}],859:[function(require,module,exports){ arguments[4][200][0].apply(exports,arguments) -},{"../../elliptic":841,"../curve":844,"bn.js":367,"dup":200,"inherits":882}],846:[function(require,module,exports){ +},{"../../elliptic":855,"../curve":858,"bn.js":381,"dup":200,"inherits":896}],860:[function(require,module,exports){ arguments[4][201][0].apply(exports,arguments) -},{"../../elliptic":841,"../curve":844,"bn.js":367,"dup":201,"inherits":882}],847:[function(require,module,exports){ +},{"../../elliptic":855,"../curve":858,"bn.js":381,"dup":201,"inherits":896}],861:[function(require,module,exports){ arguments[4][202][0].apply(exports,arguments) -},{"../elliptic":841,"./precomputed/secp256k1":854,"dup":202,"hash.js":864}],848:[function(require,module,exports){ +},{"../elliptic":855,"./precomputed/secp256k1":868,"dup":202,"hash.js":878}],862:[function(require,module,exports){ arguments[4][203][0].apply(exports,arguments) -},{"../../elliptic":841,"./key":849,"./signature":850,"bn.js":367,"dup":203,"hmac-drbg":877}],849:[function(require,module,exports){ +},{"../../elliptic":855,"./key":863,"./signature":864,"bn.js":381,"dup":203,"hmac-drbg":891}],863:[function(require,module,exports){ arguments[4][204][0].apply(exports,arguments) -},{"../../elliptic":841,"bn.js":367,"dup":204}],850:[function(require,module,exports){ +},{"../../elliptic":855,"bn.js":381,"dup":204}],864:[function(require,module,exports){ arguments[4][205][0].apply(exports,arguments) -},{"../../elliptic":841,"bn.js":367,"dup":205}],851:[function(require,module,exports){ +},{"../../elliptic":855,"bn.js":381,"dup":205}],865:[function(require,module,exports){ arguments[4][206][0].apply(exports,arguments) -},{"../../elliptic":841,"./key":852,"./signature":853,"dup":206,"hash.js":864}],852:[function(require,module,exports){ +},{"../../elliptic":855,"./key":866,"./signature":867,"dup":206,"hash.js":878}],866:[function(require,module,exports){ arguments[4][207][0].apply(exports,arguments) -},{"../../elliptic":841,"dup":207}],853:[function(require,module,exports){ +},{"../../elliptic":855,"dup":207}],867:[function(require,module,exports){ arguments[4][208][0].apply(exports,arguments) -},{"../../elliptic":841,"bn.js":367,"dup":208}],854:[function(require,module,exports){ +},{"../../elliptic":855,"bn.js":381,"dup":208}],868:[function(require,module,exports){ arguments[4][209][0].apply(exports,arguments) -},{"dup":209}],855:[function(require,module,exports){ +},{"dup":209}],869:[function(require,module,exports){ arguments[4][210][0].apply(exports,arguments) -},{"bn.js":367,"dup":210,"minimalistic-assert":898,"minimalistic-crypto-utils":899}],856:[function(require,module,exports){ +},{"bn.js":381,"dup":210,"minimalistic-assert":912,"minimalistic-crypto-utils":913}],870:[function(require,module,exports){ module.exports={ "_from": "elliptic@^6.0.0", "_id": "elliptic@6.4.1", @@ -138025,7 +145523,7 @@ module.exports={ "version": "6.4.1" } -},{}],857:[function(require,module,exports){ +},{}],871:[function(require,module,exports){ module.exports={ "genesisGasLimit": { "v": 5000, @@ -138262,15 +145760,11 @@ module.exports={ } } -},{}],858:[function(require,module,exports){ +},{}],872:[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"); - } -} +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'); @@ -138407,6 +145901,7 @@ var Transaction = function () { * @return {Boolean} */ + Transaction.prototype.toCreationAddress = function toCreationAddress() { return this.to.toString('hex') === ''; }; @@ -138417,6 +145912,7 @@ var Transaction = function () { * @return {Buffer} */ + Transaction.prototype.hash = function hash(includeSignature) { if (includeSignature === undefined) includeSignature = true; @@ -138450,6 +145946,7 @@ var Transaction = function () { * @return {Buffer} */ + Transaction.prototype.getChainId = function getChainId() { return this._chainId; }; @@ -138459,6 +145956,7 @@ var Transaction = function () { * @return {Buffer} */ + Transaction.prototype.getSenderAddress = function getSenderAddress() { if (this._from) { return this._from; @@ -138473,6 +145971,7 @@ var Transaction = function () { * @return {Buffer} */ + Transaction.prototype.getSenderPublicKey = function getSenderPublicKey() { if (!this._senderPubKey || !this._senderPubKey.length) { if (!this.verifySignature()) throw new Error('Invalid Signature'); @@ -138485,6 +145984,7 @@ var Transaction = function () { * @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. @@ -138510,6 +146010,7 @@ var Transaction = function () { * @param {Buffer} privateKey */ + Transaction.prototype.sign = function sign(privateKey) { var msgHash = this.hash(false); var sig = ethUtil.ecsign(msgHash, privateKey); @@ -138524,6 +146025,7 @@ var Transaction = function () { * @return {BN} */ + Transaction.prototype.getDataFee = function getDataFee() { var data = this.raw[5]; var cost = new BN(0); @@ -138538,6 +146040,7 @@ var Transaction = function () { * @return {BN} */ + Transaction.prototype.getBaseFee = function getBaseFee() { var fee = this.getDataFee().iaddn(fees.txGas.v); if (this._homestead && this.toCreationAddress()) { @@ -138551,6 +146054,7 @@ var Transaction = function () { * @return {BN} */ + Transaction.prototype.getUpfrontCost = function getUpfrontCost() { return new BN(this.gasLimit).imul(new BN(this.gasPrice)).iadd(new BN(this.value)); }; @@ -138561,6 +146065,7 @@ var Transaction = function () { * @return {Boolean|String} */ + Transaction.prototype.validate = function validate(stringError) { var errors = []; if (!this.verifySignature()) { @@ -138582,17 +146087,12 @@ var Transaction = function () { }(); module.exports = Transaction; - }).call(this,require("buffer").Buffer) -},{"buffer":401,"ethereum-common/params.json":857,"ethereumjs-util":859}],859:[function(require,module,exports){ +},{"buffer":415,"ethereum-common/params.json":871,"ethereumjs-util":873}],873:[function(require,module,exports){ arguments[4][226][0].apply(exports,arguments) -},{"assert":335,"bn.js":367,"create-hash":823,"dup":226,"ethjs-util":860,"keccak":887,"rlp":936,"safe-buffer":937,"secp256k1":939}],860:[function(require,module,exports){ +},{"assert":349,"bn.js":381,"create-hash":837,"dup":226,"ethjs-util":874,"keccak":901,"rlp":950,"safe-buffer":951,"secp256k1":953}],874:[function(require,module,exports){ arguments[4][227][0].apply(exports,arguments) -},{"buffer":401,"dup":227,"is-hex-prefixed":884,"strip-hex-prefix":957}],861:[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; }; - +},{"buffer":415,"dup":227,"is-hex-prefixed":898,"strip-hex-prefix":971}],875:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -138632,20 +146132,23 @@ 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'); +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) { +EventEmitter.prototype.emit = function(type) { var er, handler, len, args, i, listeners; - if (!this._events) this._events = {}; + 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) { + if (!this._events.error || + (isObject(this._events.error) && !this._events.error.length)) { er = arguments[1]; if (er instanceof Error) { throw er; // Unhandled 'error' event @@ -138660,7 +146163,8 @@ EventEmitter.prototype.emit = function (type) { handler = this._events[type]; - if (isUndefined(handler)) return false; + if (isUndefined(handler)) + return false; if (isFunction(handler)) { switch (arguments.length) { @@ -138683,30 +146187,36 @@ EventEmitter.prototype.emit = function (type) { args = Array.prototype.slice.call(arguments, 1); listeners = handler.slice(); len = listeners.length; - for (i = 0; i < len; i++) { + for (i = 0; i < len; i++) listeners[i].apply(this, args); - } } return true; }; -EventEmitter.prototype.addListener = function (type, listener) { +EventEmitter.prototype.addListener = function(type, listener) { var m; - if (!isFunction(listener)) throw TypeError('listener must be a function'); + if (!isFunction(listener)) + throw TypeError('listener must be a function'); - if (!this._events) this._events = {}; + 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.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])) + 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 + this._events[type].push(listener); + else // Adding the second element, need to change to array. this._events[type] = [this._events[type], listener]; @@ -138720,7 +146230,10 @@ EventEmitter.prototype.addListener = function (type, listener) { 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); + 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(); @@ -138733,8 +146246,9 @@ EventEmitter.prototype.addListener = function (type, listener) { EventEmitter.prototype.on = EventEmitter.prototype.addListener; -EventEmitter.prototype.once = function (type, listener) { - if (!isFunction(listener)) throw TypeError('listener must be a function'); +EventEmitter.prototype.once = function(type, listener) { + if (!isFunction(listener)) + throw TypeError('listener must be a function'); var fired = false; @@ -138754,29 +146268,36 @@ EventEmitter.prototype.once = function (type, listener) { }; // emits a 'removeListener' event iff the listener was removed -EventEmitter.prototype.removeListener = function (type, listener) { +EventEmitter.prototype.removeListener = function(type, listener) { var list, position, length, i; - if (!isFunction(listener)) throw TypeError('listener must be a function'); + if (!isFunction(listener)) + throw TypeError('listener must be a function'); - if (!this._events || !this._events[type]) return this; + 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) { + if (list === listener || + (isFunction(list.listener) && list.listener === listener)) { delete this._events[type]; - if (this._events.removeListener) this.emit('removeListener', type, listener); + 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) { + if (list[i] === listener || + (list[i].listener && list[i].listener === listener)) { position = i; break; } } - if (position < 0) return this; + if (position < 0) + return this; if (list.length === 1) { list.length = 0; @@ -138785,20 +146306,25 @@ EventEmitter.prototype.removeListener = function (type, listener) { list.splice(position, 1); } - if (this._events.removeListener) this.emit('removeListener', type, listener); + if (this._events.removeListener) + this.emit('removeListener', type, listener); } return this; }; -EventEmitter.prototype.removeAllListeners = function (type) { +EventEmitter.prototype.removeAllListeners = function(type) { var key, listeners; - if (!this._events) return this; + 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]; + if (arguments.length === 0) + this._events = {}; + else if (this._events[type]) + delete this._events[type]; return this; } @@ -138819,31 +146345,38 @@ EventEmitter.prototype.removeAllListeners = function (type) { this.removeListener(type, listeners); } else if (listeners) { // LIFO order - while (listeners.length) { + while (listeners.length) this.removeListener(type, listeners[listeners.length - 1]); - } } delete this._events[type]; return this; }; -EventEmitter.prototype.listeners = function (type) { +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(); + 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) { +EventEmitter.prototype.listenerCount = function(type) { if (this._events) { var evlistener = this._events[type]; - if (isFunction(evlistener)) return 1;else if (evlistener) return evlistener.length; + if (isFunction(evlistener)) + return 1; + else if (evlistener) + return evlistener.length; } return 0; }; -EventEmitter.listenerCount = function (emitter, type) { +EventEmitter.listenerCount = function(emitter, type) { return emitter.listenerCount(type); }; @@ -138856,336 +146389,320 @@ function isNumber(arg) { } function isObject(arg) { - return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null; + return typeof arg === 'object' && arg !== null; } function isUndefined(arg) { return arg === void 0; } -},{}],862:[function(require,module,exports){ -'use strict'; - -var Buffer = require('safe-buffer').Buffer; -var MD5 = require('md5.js'); +},{}],876:[function(require,module,exports){ +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'); +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'); + 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); + 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 hash = new MD5() + hash.update(tmp) + hash.update(password) + if (salt) hash.update(salt) + tmp = hash.digest() - var used = 0; + 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; + 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; + 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 }; + tmp.fill(0) + return { key: key, iv: iv } } -module.exports = EVP_BytesToKey; +module.exports = EVP_BytesToKey -},{"md5.js":896,"safe-buffer":937}],863:[function(require,module,exports){ +},{"md5.js":910,"safe-buffer":951}],877:[function(require,module,exports){ arguments[4][232][0].apply(exports,arguments) -},{"dup":232,"inherits":882,"safe-buffer":937,"stream":954}],864:[function(require,module,exports){ +},{"dup":232,"inherits":896,"safe-buffer":951,"stream":968}],878:[function(require,module,exports){ arguments[4][233][0].apply(exports,arguments) -},{"./hash/common":865,"./hash/hmac":866,"./hash/ripemd":867,"./hash/sha":868,"./hash/utils":875,"dup":233}],865:[function(require,module,exports){ +},{"./hash/common":879,"./hash/hmac":880,"./hash/ripemd":881,"./hash/sha":882,"./hash/utils":889,"dup":233}],879:[function(require,module,exports){ arguments[4][234][0].apply(exports,arguments) -},{"./utils":875,"dup":234,"minimalistic-assert":898}],866:[function(require,module,exports){ +},{"./utils":889,"dup":234,"minimalistic-assert":912}],880:[function(require,module,exports){ arguments[4][235][0].apply(exports,arguments) -},{"./utils":875,"dup":235,"minimalistic-assert":898}],867:[function(require,module,exports){ +},{"./utils":889,"dup":235,"minimalistic-assert":912}],881:[function(require,module,exports){ arguments[4][236][0].apply(exports,arguments) -},{"./common":865,"./utils":875,"dup":236}],868:[function(require,module,exports){ +},{"./common":879,"./utils":889,"dup":236}],882:[function(require,module,exports){ arguments[4][237][0].apply(exports,arguments) -},{"./sha/1":869,"./sha/224":870,"./sha/256":871,"./sha/384":872,"./sha/512":873,"dup":237}],869:[function(require,module,exports){ +},{"./sha/1":883,"./sha/224":884,"./sha/256":885,"./sha/384":886,"./sha/512":887,"dup":237}],883:[function(require,module,exports){ arguments[4][238][0].apply(exports,arguments) -},{"../common":865,"../utils":875,"./common":874,"dup":238}],870:[function(require,module,exports){ +},{"../common":879,"../utils":889,"./common":888,"dup":238}],884:[function(require,module,exports){ arguments[4][239][0].apply(exports,arguments) -},{"../utils":875,"./256":871,"dup":239}],871:[function(require,module,exports){ +},{"../utils":889,"./256":885,"dup":239}],885:[function(require,module,exports){ arguments[4][240][0].apply(exports,arguments) -},{"../common":865,"../utils":875,"./common":874,"dup":240,"minimalistic-assert":898}],872:[function(require,module,exports){ +},{"../common":879,"../utils":889,"./common":888,"dup":240,"minimalistic-assert":912}],886:[function(require,module,exports){ arguments[4][241][0].apply(exports,arguments) -},{"../utils":875,"./512":873,"dup":241}],873:[function(require,module,exports){ +},{"../utils":889,"./512":887,"dup":241}],887:[function(require,module,exports){ arguments[4][242][0].apply(exports,arguments) -},{"../common":865,"../utils":875,"dup":242,"minimalistic-assert":898}],874:[function(require,module,exports){ +},{"../common":879,"../utils":889,"dup":242,"minimalistic-assert":912}],888:[function(require,module,exports){ arguments[4][243][0].apply(exports,arguments) -},{"../utils":875,"dup":243}],875:[function(require,module,exports){ +},{"../utils":889,"dup":243}],889:[function(require,module,exports){ arguments[4][244][0].apply(exports,arguments) -},{"dup":244,"inherits":882,"minimalistic-assert":898}],876:[function(require,module,exports){ +},{"dup":244,"inherits":896,"minimalistic-assert":912}],890:[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 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; +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 }; +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; +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, 'fingerprint', { get: function () { return this._fingerprint } }) +Object.defineProperty(HDKey.prototype, 'identifier', { get: function () { return this._identifier } }) +Object.defineProperty(HDKey.prototype, 'pubKeyHash', { get: function () { return this.identifier } }) Object.defineProperty(HDKey.prototype, 'privateKey', { - get: function get() { - return this._privateKey; + get: function () { + 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'); + set: function (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); + 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; + get: function () { + 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'); + set: function (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; + 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; + get: function () { + 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)); + get: function () { + 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; + return this } - var entries = path.split('/'); - var hdkey = this; + var entries = path.split('/') + var hdkey = this entries.forEach(function (c, i) { if (i === 0) { - assert(c, 'm', 'Invalid path'); - return; + 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; + 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); - }); + hdkey = hdkey.deriveChild(childIndex) + }) - return hdkey; -}; + return hdkey +} HDKey.prototype.deriveChild = function (index) { - var isHardened = index >= HARDENED_OFFSET; - var indexBuffer = new Buffer(4); - indexBuffer.writeUInt32BE(index, 0); + var isHardened = index >= HARDENED_OFFSET + var indexBuffer = new Buffer(4) + indexBuffer.writeUInt32BE(index, 0) - var data; + var data - if (isHardened) { - // Hardened child - assert(this.privateKey, 'Could not derive hardened child key'); + 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]); + 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 = Buffer.concat([pk, indexBuffer]) + } else { // Normal child // data = serP(point(kpar)) || ser32(index) // = serP(Kpar) || ser32(index) - data = Buffer.concat([this.publicKey, indexBuffer]); + 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 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); + 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); + 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); + return this.derive(index + 1) } - // Public parent key -> public child key + // Public parent key -> public child key } else { // Ki = point(parse256(IL)) + Kpar // = G*IL + Kpar try { - hd.publicKey = secp256k1.publicKeyTweakAdd(this.publicKey, IL, true); + 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); + return this.derive(index + 1, isHardened) } } - hd.chainCode = IR; - hd.depth = this.depth + 1; - hd.parentFingerprint = this.fingerprint; // .readUInt32BE(0) - hd.index = index; + hd.chainCode = IR + hd.depth = this.depth + 1 + hd.parentFingerprint = this.fingerprint// .readUInt32BE(0) + hd.index = index - return hd; -}; + 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 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; + var hdkey = new HDKey(versions) + hdkey.chainCode = IR + hdkey.privateKey = IL - return hdkey; -}; + 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); + versions = versions || BITCOIN_VERSIONS + var hdkey = new HDKey(versions) - var keyBuffer = cs.decode(base58key); + 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'); + 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); + 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 + 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; + assert(version === versions.public, 'Version mismatch: version does not match public') + hdkey.publicKey = key } - return hdkey; -}; + return hdkey +} HDKey.fromJSON = function (obj) { - return HDKey.fromExtendedKey(obj.xpriv); -}; + return HDKey.fromExtendedKey(obj.xpriv) +} -function serialize(hdkey, version, key) { +function serialize (hdkey, version, key) { // => version(4) || depth(1) || fingerprint(4) || index(4) || chain(32) || key(33) - var buffer = new Buffer(LEN); + var buffer = new Buffer(LEN) - buffer.writeUInt32BE(version, 0); - buffer.writeUInt8(hdkey.depth, 4); + 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); + 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); + hdkey.chainCode.copy(buffer, 13) + key.copy(buffer, 45) - return buffer; + return buffer } -function hash160(buf) { - var sha = crypto.createHash('sha256').update(buf).digest(); - return crypto.createHash('rmd160').update(sha).digest(); +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; +HDKey.HARDENED_OFFSET = HARDENED_OFFSET +module.exports = HDKey }).call(this,require("buffer").Buffer) -},{"assert":335,"buffer":401,"coinstring":403,"crypto":827,"secp256k1":939}],877:[function(require,module,exports){ +},{"assert":349,"buffer":415,"coinstring":417,"crypto":841,"secp256k1":953}],891:[function(require,module,exports){ arguments[4][245][0].apply(exports,arguments) -},{"dup":245,"hash.js":864,"minimalistic-assert":898,"minimalistic-crypto-utils":899}],878:[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; }; - +},{"dup":245,"hash.js":878,"minimalistic-assert":912,"minimalistic-crypto-utils":913}],892:[function(require,module,exports){ /* This file is generated from the Unicode IDNA table, using the build-unicode-tables.py script. Please edit that script instead of this file. */ @@ -139193,286 +146710,968 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /* 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') { + define([], function () { return factory(); }); + } else if (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 = "صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(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点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧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]; +}(this, 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 = "صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(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点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧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 - }; -}); - -},{}],879:[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; }; +return { + mapStr: mappingStr, + mapChar: mapChar +}; +})); +},{}],893:[function(require,module,exports){ /* 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') { + } else if (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; - } - } +}(this, function (punycode, idna_map) { + +function mapLabel(label, useStd3ASCII, transitional) { + var mapped = []; + for (var ch of label) { + 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); + } + } + + 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; + }); - 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); + return labels.join("."); +} - // 4. The label must not contain a U+002E ( . ) FULL STOP. - if (label.includes('.')) throw new Error("Failed to validate " + label); +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); - if (mapLabel(label, useStd3ASCII, transitional) != label) 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); - // 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); - } + // 4. The label must not contain a U+002E ( . ) FULL STOP. + if (label.includes('.')) + throw new Error("Failed to validate " + label); - 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; + if (mapLabel(label, useStd3ASCII, transitional) != label) + throw new Error("Failed to validate " + label); - try { - for (var _iterator2 = asciiLabels[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var label = _step2.value; + // 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); +} - 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; - } - } - } +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); + } + for (var label of asciiLabels) { + if (label.length < 1 || label.length > 63) + throw new Error("DNS label has wrong length: " + label); } - return asciiString; - } - - function toUnicode(domain, options) { - if (options === undefined) options = {}; - var useStd3ASCII = 'useStd3ASCII' in options ? options.useStd3ASCII : false; - return process(domain, false, useStd3ASCII); } + return asciiString; +} - return { - toUnicode: toUnicode, - toAscii: toAscii - }; -}); +function toUnicode(domain, options) { + if (options === undefined) + options = { }; + var useStd3ASCII = 'useStd3ASCII' in options ? options.useStd3ASCII : false; + return process(domain, false, useStd3ASCII); +} -},{"./idna-map":878,"punycode":397}],880:[function(require,module,exports){ -"use strict"; +return { + toUnicode: toUnicode, + toAscii: toAscii, +}; +})); +},{"./idna-map":892,"punycode":411}],894:[function(require,module,exports){ 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) {} + 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; + e = 1 - eBias } else if (e === eMax) { - return m ? NaN : (s ? -1 : 1) * Infinity; + return m ? NaN : ((s ? -1 : 1) * Infinity) } else { - m = m + Math.pow(2, mLen); - e = e - eBias; + m = m + Math.pow(2, mLen) + e = e - eBias } - return (s ? -1 : 1) * m * Math.pow(2, e - mLen); -}; + 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; + 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); + value = Math.abs(value) if (isNaN(value) || value === Infinity) { - m = isNaN(value) ? 1 : 0; - e = eMax; + m = isNaN(value) ? 1 : 0 + e = eMax } else { - e = Math.floor(Math.log(value) / Math.LN2); + e = Math.floor(Math.log(value) / Math.LN2) if (value * (c = Math.pow(2, -e)) < 1) { - e--; - c *= 2; + e-- + c *= 2 } if (e + eBias >= 1) { - value += rt / c; + value += rt / c } else { - value += rt * Math.pow(2, 1 - eBias); + value += rt * Math.pow(2, 1 - eBias) } if (value * c >= 2) { - e++; - c /= 2; + e++ + c /= 2 } if (e + eBias >= eMax) { - m = 0; - e = eMax; + m = 0 + e = eMax } else if (e + eBias >= 1) { - m = (value * c - 1) * Math.pow(2, mLen); - e = e + eBias; + 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; + 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; + 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; -}; + buffer[offset + i - d] |= s * 128 +} -},{}],881:[function(require,module,exports){ +},{}],895:[function(require,module,exports){ arguments[4][246][0].apply(exports,arguments) -},{"dup":246}],882:[function(require,module,exports){ +},{"dup":246}],896:[function(require,module,exports){ arguments[4][247][0].apply(exports,arguments) -},{"dup":247}],883:[function(require,module,exports){ -'use strict'; - +},{"dup":247}],897:[function(require,module,exports){ /*! * Determine if an object is a Buffer * @@ -139483,23 +147682,23 @@ arguments[4][247][0].apply(exports,arguments) // 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); -}; + return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) +} -function isBuffer(obj) { - return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj); +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)); +function isSlowBuffer (obj) { + return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) } -},{}],884:[function(require,module,exports){ +},{}],898:[function(require,module,exports){ arguments[4][248][0].apply(exports,arguments) -},{"dup":248}],885:[function(require,module,exports){ +},{"dup":248}],899:[function(require,module,exports){ arguments[4][230][0].apply(exports,arguments) -},{"dup":230}],886:[function(require,module,exports){ +},{"dup":230}],900:[function(require,module,exports){ /* A JavaScript implementation of the SHA family of hashes, as defined in FIPS PUB 180-4 and FIPS PUB 202, as well as the corresponding @@ -139511,280 +147710,40 @@ arguments[4][230][0].apply(exports,arguments) Several functions taken from Paul Johnston */ -'use strict'; -(function (I) { - function w(c, a, d) { - var l = 0, - b = [], - g = 0, - f, - n, - k, - e, - h, - q, - y, - p, - m = !1, - t = [], - r = [], - u, - z = !1;d = d || {};f = d.encoding || "UTF8";u = d.numRounds || 1;if (u !== parseInt(u, 10) || 1 > u) throw Error("numRounds must a integer >= 1");if (0 === c.lastIndexOf("SHA-", 0)) { - if (q = function q(b, a) { - return A(b, a, c); - }, y = function y(b, a, l, f) { - var g, e;if ("SHA-224" === c || "SHA-256" === c) g = (a + 65 >>> 9 << 4) + 15, e = 16;else throw Error("Unexpected error in SHA-2 implementation");for (; b.length <= g;) { - b.push(0); - }b[a >>> 5] |= 128 << 24 - a % 32;a = a + l;b[g] = a & 4294967295; - b[g - 1] = a / 4294967296 | 0;l = b.length;for (a = 0; a < l; a += e) { - f = A(b.slice(a, a + e), f, c); - }if ("SHA-224" === c) b = [f[0], f[1], f[2], f[3], f[4], f[5], f[6]];else if ("SHA-256" === c) b = f;else throw Error("Unexpected error in SHA-2 implementation");return b; - }, p = function p(b) { - return b.slice(); - }, "SHA-224" === c) h = 512, e = 224;else if ("SHA-256" === c) h = 512, e = 256;else throw Error("Chosen SHA variant is not supported"); - } else throw Error("Chosen SHA variant is not supported");k = B(a, f);n = x(c);this.setHMACKey = function (b, a, g) { - var e;if (!0 === m) throw Error("HMAC key already set"); - if (!0 === z) throw Error("Cannot set HMAC key after calling update");f = (g || {}).encoding || "UTF8";a = B(a, f)(b);b = a.binLen;a = a.value;e = h >>> 3;g = e / 4 - 1;if (e < b / 8) { - for (a = y(a, b, 0, x(c)); a.length <= g;) { - a.push(0); - }a[g] &= 4294967040; - } else if (e > b / 8) { - for (; a.length <= g;) { - a.push(0); - }a[g] &= 4294967040; - }for (b = 0; b <= g; b += 1) { - t[b] = a[b] ^ 909522486, r[b] = a[b] ^ 1549556828; - }n = q(t, n);l = h;m = !0; - };this.update = function (a) { - var c, - f, - e, - d = 0, - p = h >>> 5;c = k(a, b, g);a = c.binLen;f = c.value;c = a >>> 5;for (e = 0; e < c; e += p) { - d + h <= a && (n = q(f.slice(e, e + p), n), d += h); - }l += d;b = f.slice(d >>> 5);g = a % h;z = !0; - };this.getHash = function (a, f) { - var d, h, k, q;if (!0 === m) throw Error("Cannot call getHash after setting HMAC key");k = C(f);switch (a) {case "HEX": - d = function d(a) { - return D(a, e, k); - };break;case "B64": - d = function d(a) { - return E(a, e, k); - };break;case "BYTES": - d = function d(a) { - return F(a, e); - };break;case "ARRAYBUFFER": - try { - h = new ArrayBuffer(0); - } catch (v) { - throw Error("ARRAYBUFFER not supported by this environment"); - }d = function d(a) { - return G(a, e); - };break;default: - throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER"); - }q = y(b.slice(), g, l, p(n));for (h = 1; h < u; h += 1) { - q = y(q, e, 0, x(c)); - }return d(q); - };this.getHMAC = function (a, f) { - var d, k, t, u;if (!1 === m) throw Error("Cannot call getHMAC without first setting HMAC key");t = C(f);switch (a) {case "HEX": - d = function d(a) { - return D(a, e, t); - };break;case "B64": - d = function d(a) { - return E(a, e, t); - };break;case "BYTES": - d = function d(a) { - return F(a, e); - };break;case "ARRAYBUFFER": - try { - d = new ArrayBuffer(0); - } catch (v) { - throw Error("ARRAYBUFFER not supported by this environment"); - }d = function d(a) { - return G(a, e); - };break;default: - throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER"); - }k = y(b.slice(), g, l, p(n));u = q(r, x(c));u = y(k, e, h, u);return d(u); - }; - }function m() {}function D(c, a, d) { - var l = "";a /= 8;var b, g;for (b = 0; b < a; b += 1) { - g = c[b >>> 2] >>> 8 * (3 + b % 4 * -1), l += "0123456789abcdef".charAt(g >>> 4 & 15) + "0123456789abcdef".charAt(g & 15); - }return d.outputUpper ? l.toUpperCase() : l; - }function E(c, a, d) { - var l = "", - b = a / 8, - g, - f, - n;for (g = 0; g < b; g += 3) { - for (f = g + 1 < b ? c[g + 1 >>> 2] : 0, n = g + 2 < b ? c[g + 2 >>> 2] : 0, n = (c[g >>> 2] >>> 8 * (3 + g % 4 * -1) & 255) << 16 | (f >>> 8 * (3 + (g + 1) % 4 * -1) & 255) << 8 | n >>> 8 * (3 + (g + 2) % 4 * -1) & 255, f = 0; 4 > f; f += 1) { - 8 * g + 6 * f <= a ? l += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n >>> 6 * (3 - f) & 63) : l += d.b64Pad; - } - }return l; - }function F(c, a) { - var d = "", - l = a / 8, - b, - g;for (b = 0; b < l; b += 1) { - g = c[b >>> 2] >>> 8 * (3 + b % 4 * -1) & 255, d += String.fromCharCode(g); - }return d; - }function G(c, a) { - var d = a / 8, - l, - b = new ArrayBuffer(d), - g;g = new Uint8Array(b);for (l = 0; l < d; l += 1) { - g[l] = c[l >>> 2] >>> 8 * (3 + l % 4 * -1) & 255; - }return b; - }function C(c) { - var a = { outputUpper: !1, b64Pad: "=", shakeLen: -1 };c = c || {};a.outputUpper = c.outputUpper || !1;!0 === c.hasOwnProperty("b64Pad") && (a.b64Pad = c.b64Pad);if ("boolean" !== typeof a.outputUpper) throw Error("Invalid outputUpper formatting option"); - if ("string" !== typeof a.b64Pad) throw Error("Invalid b64Pad formatting option");return a; - }function B(c, a) { - var d;switch (a) {case "UTF8":case "UTF16BE":case "UTF16LE": - break;default: - throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch (c) {case "HEX": - d = function d(a, b, c) { - var f = a.length, - d, - k, - e, - h, - q;if (0 !== f % 2) throw Error("String of HEX type must be in byte increments");b = b || [0];c = c || 0;q = c >>> 3;for (d = 0; d < f; d += 2) { - k = parseInt(a.substr(d, 2), 16);if (isNaN(k)) throw Error("String of HEX type contains invalid characters"); - h = (d >>> 1) + q;for (e = h >>> 2; b.length <= e;) { - b.push(0); - }b[e] |= k << 8 * (3 + h % 4 * -1); - }return { value: b, binLen: 4 * f + c }; - };break;case "TEXT": - d = function d(c, b, _d) { - var f, - n, - k = 0, - e, - h, - q, - m, - p, - r;b = b || [0];_d = _d || 0;q = _d >>> 3;if ("UTF8" === a) for (r = 3, e = 0; e < c.length; e += 1) { - for (f = c.charCodeAt(e), n = [], 128 > f ? n.push(f) : 2048 > f ? (n.push(192 | f >>> 6), n.push(128 | f & 63)) : 55296 > f || 57344 <= f ? n.push(224 | f >>> 12, 128 | f >>> 6 & 63, 128 | f & 63) : (e += 1, f = 65536 + ((f & 1023) << 10 | c.charCodeAt(e) & 1023), n.push(240 | f >>> 18, 128 | f >>> 12 & 63, 128 | f >>> 6 & 63, 128 | f & 63)), h = 0; h < n.length; h += 1) { - p = k + q;for (m = p >>> 2; b.length <= m;) { - b.push(0); - }b[m] |= n[h] << 8 * (r + p % 4 * -1);k += 1; - } - } else if ("UTF16BE" === a || "UTF16LE" === a) for (r = 2, n = "UTF16LE" === a && !0 || "UTF16LE" !== a && !1, e = 0; e < c.length; e += 1) { - f = c.charCodeAt(e);!0 === n && (h = f & 255, f = h << 8 | f >>> 8);p = k + q;for (m = p >>> 2; b.length <= m;) { - b.push(0); - }b[m] |= f << 8 * (r + p % 4 * -1);k += 2; - }return { value: b, binLen: 8 * k + _d }; - };break;case "B64": - d = function d(a, b, c) { - var f = 0, - d, - k, - e, - h, - q, - m, - p;if (-1 === a.search(/^[a-zA-Z0-9=+\/]+$/)) throw Error("Invalid character in base-64 string");k = a.indexOf("=");a = a.replace(/\=/g, "");if (-1 !== k && k < a.length) throw Error("Invalid '=' found in base-64 string");b = b || [0];c = c || 0;m = c >>> 3;for (k = 0; k < a.length; k += 4) { - q = a.substr(k, 4);for (e = h = 0; e < q.length; e += 1) { - d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(q[e]), h |= d << 18 - 6 * e; - }for (e = 0; e < q.length - 1; e += 1) { - p = f + m;for (d = p >>> 2; b.length <= d;) { - b.push(0); - }b[d] |= (h >>> 16 - 8 * e & 255) << 8 * (3 + p % 4 * -1);f += 1; - } - }return { value: b, binLen: 8 * f + c }; - };break;case "BYTES": - d = function d(a, b, c) { - var d, n, k, e, h;b = b || [0];c = c || 0;k = c >>> 3;for (n = 0; n < a.length; n += 1) { - d = a.charCodeAt(n), h = n + k, e = h >>> 2, b.length <= e && b.push(0), b[e] |= d << 8 * (3 + h % 4 * -1); - }return { value: b, binLen: 8 * a.length + c }; - };break;case "ARRAYBUFFER": - try { - d = new ArrayBuffer(0); - } catch (l) { - throw Error("ARRAYBUFFER not supported by this environment"); - }d = function d(a, b, c) { - var d, n, k, e, h;b = b || [0];c = c || 0;n = c >>> 3;h = new Uint8Array(a);for (d = 0; d < a.byteLength; d += 1) { - e = d + n, k = e >>> 2, b.length <= k && b.push(0), b[k] |= h[d] << 8 * (3 + e % 4 * -1); - }return { value: b, binLen: 8 * a.byteLength + c }; - };break;default: - throw Error("format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER"); - }return d; - }function r(c, a) { - return c >>> a | c << 32 - a; - }function J(c, a, d) { - return c & a ^ ~c & d; - }function K(c, a, d) { - return c & a ^ c & d ^ a & d; - }function L(c) { - return r(c, 2) ^ r(c, 13) ^ r(c, 22); - }function M(c) { - return r(c, 6) ^ r(c, 11) ^ r(c, 25); - }function N(c) { - return r(c, 7) ^ r(c, 18) ^ c >>> 3; - }function O(c) { - return r(c, 17) ^ r(c, 19) ^ c >>> 10; - }function P(c, a) { - var d = (c & 65535) + (a & 65535);return ((c >>> 16) + (a >>> 16) + (d >>> 16) & 65535) << 16 | d & 65535; - }function Q(c, a, d, l) { - var b = (c & 65535) + (a & 65535) + (d & 65535) + (l & 65535);return ((c >>> 16) + (a >>> 16) + (d >>> 16) + (l >>> 16) + (b >>> 16) & 65535) << 16 | b & 65535; - }function R(c, a, d, l, b) { - var g = (c & 65535) + (a & 65535) + (d & 65535) + (l & 65535) + (b & 65535);return ((c >>> 16) + (a >>> 16) + (d >>> 16) + (l >>> 16) + (b >>> 16) + (g >>> 16) & 65535) << 16 | g & 65535; - }function x(c) { - var a = [], - d;if (0 === c.lastIndexOf("SHA-", 0)) switch (a = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428], d = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], c) {case "SHA-224": - break;case "SHA-256": - a = d;break;case "SHA-384": - a = [new m(), new m(), new m(), new m(), new m(), new m(), new m(), new m()];break;case "SHA-512": - a = [new m(), new m(), new m(), new m(), new m(), new m(), new m(), new m()];break;default: - throw Error("Unknown SHA variant");} else throw Error("No SHA variants supported");return a; - }function A(c, a, d) { - var l, - b, - g, - f, - n, - k, - e, - h, - m, - r, - p, - w, - t, - x, - u, - z, - A, - B, - C, - D, - E, - F, - v = [], - G;if ("SHA-224" === d || "SHA-256" === d) r = 64, w = 1, F = Number, t = P, x = Q, u = R, z = N, A = O, B = L, C = M, E = K, D = J, G = H;else throw Error("Unexpected error in SHA-2 implementation");d = a[0];l = a[1];b = a[2];g = a[3];f = a[4];n = a[5];k = a[6];e = a[7];for (p = 0; p < r; p += 1) { - 16 > p ? (m = p * w, h = c.length <= m ? 0 : c[m], m = c.length <= m + 1 ? 0 : c[m + 1], v[p] = new F(h, m)) : v[p] = x(A(v[p - 2]), v[p - 7], z(v[p - 15]), v[p - 16]), h = u(e, C(f), D(f, n, k), G[p], v[p]), m = t(B(d), E(d, l, b)), e = k, k = n, n = f, f = t(g, h), g = b, b = l, l = d, d = t(h, m); - }a[0] = t(d, a[0]);a[1] = t(l, a[1]);a[2] = t(b, a[2]);a[3] = t(g, a[3]);a[4] = t(f, a[4]);a[5] = t(n, a[5]);a[6] = t(k, a[6]);a[7] = t(e, a[7]);return a; - }var H;H = [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];"function" === typeof define && define.amd ? define(function () { - return w; - }) : "undefined" !== typeof exports ? ("undefined" !== typeof module && module.exports && (module.exports = w), exports = w) : I.jsSHA = w; -})(undefined); +'use strict';(function(I){function w(c,a,d){var l=0,b=[],g=0,f,n,k,e,h,q,y,p,m=!1,t=[],r=[],u,z=!1;d=d||{};f=d.encoding||"UTF8";u=d.numRounds||1;if(u!==parseInt(u,10)||1>u)throw Error("numRounds must a integer >= 1");if(0===c.lastIndexOf("SHA-",0))if(q=function(b,a){return A(b,a,c)},y=function(b,a,l,f){var g,e;if("SHA-224"===c||"SHA-256"===c)g=(a+65>>>9<<4)+15,e=16;else throw Error("Unexpected error in SHA-2 implementation");for(;b.length<=g;)b.push(0);b[a>>>5]|=128<<24-a%32;a=a+l;b[g]=a&4294967295; +b[g-1]=a/4294967296|0;l=b.length;for(a=0;a>>3;g=e/4-1;if(eb/8){for(;a.length<=g;)a.push(0);a[g]&=4294967040}for(b=0;b<=g;b+=1)t[b]=a[b]^909522486,r[b]=a[b]^1549556828;n=q(t,n);l=h;m=!0};this.update=function(a){var c,f,e,d=0,p=h>>>5;c=k(a,b,g);a=c.binLen;f=c.value;c=a>>>5;for(e=0;e>> +5);g=a%h;z=!0};this.getHash=function(a,f){var d,h,k,q;if(!0===m)throw Error("Cannot call getHash after setting HMAC key");k=C(f);switch(a){case "HEX":d=function(a){return D(a,e,k)};break;case "B64":d=function(a){return E(a,e,k)};break;case "BYTES":d=function(a){return F(a,e)};break;case "ARRAYBUFFER":try{h=new ArrayBuffer(0)}catch(v){throw Error("ARRAYBUFFER not supported by this environment");}d=function(a){return G(a,e)};break;default:throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER"); +}q=y(b.slice(),g,l,p(n));for(h=1;h>>2]>>>8*(3+b%4*-1),l+="0123456789abcdef".charAt(g>>>4&15)+"0123456789abcdef".charAt(g&15);return d.outputUpper?l.toUpperCase():l}function E(c,a,d){var l="",b=a/8,g,f,n;for(g=0;g>>2]:0,n=g+2>>2]:0,n=(c[g>>>2]>>>8*(3+g%4*-1)&255)<<16|(f>>>8*(3+(g+1)%4*-1)&255)<<8|n>>>8*(3+(g+2)%4*-1)&255,f=0;4>f;f+=1)8*g+6*f<=a?l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>> +6*(3-f)&63):l+=d.b64Pad;return l}function F(c,a){var d="",l=a/8,b,g;for(b=0;b>>2]>>>8*(3+b%4*-1)&255,d+=String.fromCharCode(g);return d}function G(c,a){var d=a/8,l,b=new ArrayBuffer(d),g;g=new Uint8Array(b);for(l=0;l>>2]>>>8*(3+l%4*-1)&255;return b}function C(c){var a={outputUpper:!1,b64Pad:"=",shakeLen:-1};c=c||{};a.outputUpper=c.outputUpper||!1;!0===c.hasOwnProperty("b64Pad")&&(a.b64Pad=c.b64Pad);if("boolean"!==typeof a.outputUpper)throw Error("Invalid outputUpper formatting option"); +if("string"!==typeof a.b64Pad)throw Error("Invalid b64Pad formatting option");return a}function B(c,a){var d;switch(a){case "UTF8":case "UTF16BE":case "UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch(c){case "HEX":d=function(a,b,c){var f=a.length,d,k,e,h,q;if(0!==f%2)throw Error("String of HEX type must be in byte increments");b=b||[0];c=c||0;q=c>>>3;for(d=0;d>>1)+q;for(e=h>>>2;b.length<=e;)b.push(0);b[e]|=k<<8*(3+h%4*-1)}return{value:b,binLen:4*f+c}};break;case "TEXT":d=function(c,b,d){var f,n,k=0,e,h,q,m,p,r;b=b||[0];d=d||0;q=d>>>3;if("UTF8"===a)for(r=3,e=0;ef?n.push(f):2048>f?(n.push(192|f>>>6),n.push(128|f&63)):55296>f||57344<=f?n.push(224|f>>>12,128|f>>>6&63,128|f&63):(e+=1,f=65536+((f&1023)<<10|c.charCodeAt(e)&1023),n.push(240|f>>>18,128|f>>>12&63,128|f>>>6&63,128|f&63)),h=0;h>>2;b.length<=m;)b.push(0);b[m]|=n[h]<<8*(r+p%4*-1);k+=1}else if("UTF16BE"===a||"UTF16LE"===a)for(r=2,n="UTF16LE"===a&&!0||"UTF16LE"!==a&&!1,e=0;e>>8);p=k+q;for(m=p>>>2;b.length<=m;)b.push(0);b[m]|=f<<8*(r+p%4*-1);k+=2}return{value:b,binLen:8*k+d}};break;case "B64":d=function(a,b,c){var f=0,d,k,e,h,q,m,p;if(-1===a.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");k=a.indexOf("=");a=a.replace(/\=/g, +"");if(-1!==k&&k 0 && a.charCodeAt(~-aLen) === b.charCodeAt(~-bLen)) { + while (aLen > 0 && (a.charCodeAt(~-aLen) === b.charCodeAt(~-bLen))) { aLen--; bLen--; } @@ -139831,7 +147790,7 @@ module.exports = function (a, b) { // don't increase distance at all var start = 0; - while (start < aLen && a.charCodeAt(start) === b.charCodeAt(start)) { + while (start < aLen && (a.charCodeAt(start) === b.charCodeAt(start))) { start++; } @@ -139869,793 +147828,863 @@ module.exports = function (a, b) { return ret; }; -},{}],894:[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, factory) { - if (typeof define == 'function' && _typeof(define.amd) == 'object' && define.amd) { - define(function () { +},{}],908:[function(require,module,exports){ +(function(root, factory){ + if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { + define(function(){ return factory(root); }); - } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) == 'object' && module && module.exports) { + } else if (typeof module == 'object' && module && module.exports) { module.exports = factory(root); } else { root.Levenshtein = factory(root); } -})(undefined, function (root) { +}(this, function(root){ - function forEach(array, fn) { - var i, length; - i = -1; - length = array.length; - while (++i < length) { - fn(array[i], i, array); - } + function forEach( array, fn ) { var i, length + i = -1 + length = array.length + while ( ++i < length ) + fn( array[ i ], i, array ) } - function map(array, fn) { - var result; - result = Array(array.length); - forEach(array, function (val, i, array) { - result[i] = fn(val, i, array); - }); - return result; + function map( array, fn ) { var result + result = Array( array.length ) + forEach( array, function ( val, i, array ) { + result[i] = fn( val, i, array ) + }) + return result } - function reduce(array, fn, accumulator) { - forEach(array, function (val, i, array) { - accumulator = fn(val, i, array); - }); - return accumulator; + function reduce( array, fn, accumulator ) { + forEach( array, function( val, i, array ) { + accumulator = fn( val, i, array ) + }) + return accumulator } // Levenshtein distance - function Levenshtein(str_m, str_n) { - var previous, current, matrix; + function Levenshtein( str_m, str_n ) { var previous, current, matrix // Constructor - matrix = this._matrix = []; + matrix = this._matrix = [] // Sanity checks - if (str_m == str_n) return this.distance = 0;else if (str_m == '') return this.distance = str_n.length;else if (str_n == '') return this.distance = str_m.length;else { + if ( str_m == str_n ) + return this.distance = 0 + else if ( str_m == '' ) + return this.distance = str_n.length + else if ( str_n == '' ) + return this.distance = str_m.length + else { // Danger Will Robinson - previous = [0]; - forEach(str_m, function (v, i) { - i++, previous[i] = i; - }); - - matrix[0] = previous; - forEach(str_n, function (n_val, n_idx) { - current = [++n_idx]; - forEach(str_m, function (m_val, m_idx) { - m_idx++; - if (str_m.charAt(m_idx - 1) == str_n.charAt(n_idx - 1)) current[m_idx] = previous[m_idx - 1];else current[m_idx] = Math.min(previous[m_idx] + 1 // Deletion - , current[m_idx - 1] + 1 // Insertion - , previous[m_idx - 1] + 1 // Subtraction - ); - }); - previous = current; - matrix[matrix.length] = previous; - }); + previous = [ 0 ] + forEach( str_m, function( v, i ) { i++, previous[ i ] = i } ) + + matrix[0] = previous + forEach( str_n, function( n_val, n_idx ) { + current = [ ++n_idx ] + forEach( str_m, function( m_val, m_idx ) { + m_idx++ + if ( str_m.charAt( m_idx - 1 ) == str_n.charAt( n_idx - 1 ) ) + current[ m_idx ] = previous[ m_idx - 1 ] + else + current[ m_idx ] = Math.min + ( previous[ m_idx ] + 1 // Deletion + , current[ m_idx - 1 ] + 1 // Insertion + , previous[ m_idx - 1 ] + 1 // Subtraction + ) + }) + previous = current + matrix[ matrix.length ] = previous + }) - return this.distance = current[current.length - 1]; + return this.distance = current[ current.length - 1 ] } } - Levenshtein.prototype.toString = Levenshtein.prototype.inspect = function inspect(no_print) { - var matrix, max, buff, sep, rows; - matrix = this.getMatrix(); - max = reduce(matrix, function (m, o) { - return Math.max(m, reduce(o, Math.max, 0)); - }, 0); - buff = Array((max + '').length).join(' '); + Levenshtein.prototype.toString = Levenshtein.prototype.inspect = function inspect ( no_print ) { var matrix, max, buff, sep, rows + matrix = this.getMatrix() + max = reduce( matrix,function( m, o ) { + return Math.max( m, reduce( o, Math.max, 0 ) ) + }, 0 ) + buff = Array( ( max + '' ).length ).join( ' ' ) - sep = []; - while (sep.length < (matrix[0] && matrix[0].length || 0)) { - sep[sep.length] = Array(buff.length + 1).join('-'); - }sep = sep.join('-+') + '-'; + sep = [] + while ( sep.length < (matrix[0] && matrix[0].length || 0) ) + sep[ sep.length ] = Array( buff.length + 1 ).join( '-' ) + sep = sep.join( '-+' ) + '-' - rows = map(matrix, function (row) { - var cells; - cells = map(row, function (cell) { - return (buff + cell).slice(-buff.length); - }); - return cells.join(' |') + ' '; - }); + rows = map( matrix, function( row ) { var cells + cells = map( row, function( cell ) { + return ( buff + cell ).slice( - buff.length ) + }) + return cells.join( ' |' ) + ' ' + }) - return rows.join("\n" + sep + "\n"); - }; + return rows.join( "\n" + sep + "\n" ) + } Levenshtein.prototype.getMatrix = function () { - return this._matrix.slice(); - }; + return this._matrix.slice() + } - Levenshtein.prototype.valueOf = function () { - return this.distance; - }; + Levenshtein.prototype.valueOf = function() { + return this.distance + } - return Levenshtein; -}); + return Levenshtein -},{}],895:[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; }; +})); +},{}],909:[function(require,module,exports){ +(function (global){ /** * marked - a markdown parser * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) * https://github.com/markedjs/marked */ -;(function (root) { - 'use strict'; +;(function(root) { +'use strict'; - /** - * Block-Level Grammar - */ +/** + * Block-Level Grammar + */ - var block = { - newline: /^\n+/, - code: /^( {4}[^\n]+\n*)+/, - fences: noop, - hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/, - heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, - nptable: noop, - blockquote: /^( {0,3}> ?(paragraph|[^\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: /^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/, - table: noop, - lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, - paragraph: /^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/, - text: /^[^\n]+/ - }; +var block = { + newline: /^\n+/, + code: /^( {4}[^\n]+\n*)+/, + fences: noop, + hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/, + heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, + nptable: noop, + blockquote: /^( {0,3}> ?(paragraph|[^\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: /^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/, + table: noop, + lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, + paragraph: /^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/, + text: /^[^\n]+/ +}; - block._label = /(?:\\[\[\]]|[^\[\]])+/; - block._title = /(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/; - block.def = edit(block.def).replace('label', block._label).replace('title', block._title).getRegex(); +block._label = /(?:\\[\[\]]|[^\[\]])+/; +block._title = /(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/; +block.def = edit(block.def) + .replace('label', block._label) + .replace('title', block._title) + .getRegex(); - block.bullet = /(?:[*+-]|\d+\.)/; - block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/; - block.item = edit(block.item, 'gm').replace(/bull/g, block.bullet).getRegex(); +block.bullet = /(?:[*+-]|\d+\.)/; +block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/; +block.item = edit(block.item, 'gm') + .replace(/bull/g, block.bullet) + .getRegex(); - block.list = edit(block.list).replace(/bull/g, block.bullet).replace('hr', '\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))').replace('def', '\\n+(?=' + block.def.source + ')').getRegex(); +block.list = edit(block.list) + .replace(/bull/g, block.bullet) + .replace('hr', '\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))') + .replace('def', '\\n+(?=' + block.def.source + ')') + .getRegex(); - 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._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 = edit(block.html).replace('comment', //).replace('closed', /<(tag)[\s\S]+?<\/\1>/).replace('closing', /\s]*)*?\/?>/).replace(/tag/g, block._tag).getRegex(); +block.html = edit(block.html) + .replace('comment', //) + .replace('closed', /<(tag)[\s\S]+?<\/\1>/) + .replace('closing', /\s]*)*?\/?>/) + .replace(/tag/g, block._tag) + .getRegex(); - block.paragraph = edit(block.paragraph).replace('hr', block.hr).replace('heading', block.heading).replace('lheading', block.lheading).replace('tag', '<' + block._tag).getRegex(); +block.paragraph = edit(block.paragraph) + .replace('hr', block.hr) + .replace('heading', block.heading) + .replace('lheading', block.lheading) + .replace('tag', '<' + block._tag) + .getRegex(); - block.blockquote = edit(block.blockquote).replace('paragraph', block.paragraph).getRegex(); +block.blockquote = edit(block.blockquote) + .replace('paragraph', block.paragraph) + .getRegex(); - /** - * Normal Block Grammar - */ +/** + * Normal Block Grammar + */ - block.normal = merge({}, block); +block.normal = merge({}, block); - /** - * GFM Block Grammar - */ +/** + * GFM Block Grammar + */ - block.gfm = merge({}, block.normal, { - fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/, - paragraph: /^/, - heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/ - }); +block.gfm = merge({}, block.normal, { + fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/, + paragraph: /^/, + heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/ +}); - block.gfm.paragraph = edit(block.paragraph).replace('(?!', '(?!' + block.gfm.fences.source.replace('\\1', '\\2') + '|' + block.list.source.replace('\\1', '\\3') + '|').getRegex(); +block.gfm.paragraph = edit(block.paragraph) + .replace('(?!', '(?!' + + block.gfm.fences.source.replace('\\1', '\\2') + '|' + + block.list.source.replace('\\1', '\\3') + '|') + .getRegex(); - /** - * GFM + Tables Block Grammar - */ +/** + * GFM + Tables Block Grammar + */ - block.tables = merge({}, block.gfm, { - nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/, - table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/ - }); +block.tables = merge({}, block.gfm, { + nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/, + table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/ +}); - /** - * Block Lexer - */ +/** + * Block Lexer + */ - function Lexer(options) { - this.tokens = []; - this.tokens.links = {}; - this.options = options || marked.defaults; - this.rules = block.normal; +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; - } + if (this.options.gfm) { + if (this.options.tables) { + this.rules = block.tables; + } else { + this.rules = block.gfm; } } +} - /** - * Expose Block Rules - */ +/** + * Expose Block Rules + */ - Lexer.rules = block; +Lexer.rules = block; - /** - * Static Lex Method - */ +/** + * Static Lex Method + */ - Lexer.lex = function (src, options) { - var lexer = new Lexer(options); - return lexer.lex(src); - }; +Lexer.lex = function(src, options) { + var lexer = new Lexer(options); + return lexer.lex(src); +}; - /** - * Preprocessing - */ +/** + * Preprocessing + */ - Lexer.prototype.lex = function (src) { - src = src.replace(/\r\n|\r/g, '\n').replace(/\t/g, ' ').replace(/\u00a0/g, ' ').replace(/\u2424/g, '\n'); +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); - }; + return this.token(src, true); +}; - /** - * Lexing - */ +/** + * Lexing + */ - Lexer.prototype.token = function (src, top) { - src = src.replace(/^ +$/gm, ''); - var next, loose, cap, bull, b, item, space, i, tag, l, isordered; - - 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' - }); - } - } +Lexer.prototype.token = function(src, top) { + src = src.replace(/^ +$/gm, ''); + var next, + loose, + cap, + bull, + b, + item, + space, + i, + tag, + l, + isordered; - // code - if (cap = this.rules.code.exec(src)) { - src = src.substring(cap[0].length); - cap = cap[0].replace(/^ {4}/gm, ''); + 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: 'code', - text: !this.options.pedantic ? cap.replace(/\n+$/, '') : cap + type: 'space' }); - 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; - } + // 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; + } - // 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; - } + // 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; + } - // table no leading pipe (gfm) - if (top && (cap = this.rules.nptable.exec(src))) { - src = src.substring(cap[0].length); + // 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; + } - item = { - type: 'table', - header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), - align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), - cells: cap[3].replace(/\n$/, '').split('\n') - }; + // table no leading pipe (gfm) + if (top && (cap = this.rules.nptable.exec(src))) { + src = src.substring(cap[0].length); - 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; - } - } + 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.cells.length; i++) { - item.cells[i] = item.cells[i].split(/ *\| */); + 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; } - - this.tokens.push(item); - - continue; } - // hr - if (cap = this.rules.hr.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'hr' - }); - continue; + for (i = 0; i < item.cells.length; i++) { + item.cells[i] = item.cells[i].split(/ *\| */); } - // blockquote - if (cap = this.rules.blockquote.exec(src)) { - src = src.substring(cap[0].length); + this.tokens.push(item); - this.tokens.push({ - type: 'blockquote_start' - }); - - cap = cap[0].replace(/^ *> ?/gm, ''); + continue; + } - // Pass `top` to keep the current - // "toplevel" state. This is exactly - // how markdown.pl works. - this.token(cap, top); + // hr + if (cap = this.rules.hr.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({ + type: 'hr' + }); + continue; + } - this.tokens.push({ - type: 'blockquote_end' - }); + // blockquote + if (cap = this.rules.blockquote.exec(src)) { + src = src.substring(cap[0].length); - continue; - } + this.tokens.push({ + type: 'blockquote_start' + }); - // list - if (cap = this.rules.list.exec(src)) { - src = src.substring(cap[0].length); - bull = cap[2]; - isordered = bull.length > 1; + cap = cap[0].replace(/^ *> ?/gm, ''); - this.tokens.push({ - type: 'list_start', - ordered: isordered, - start: isordered ? +bull : '' - }); + // Pass `top` to keep the current + // "toplevel" state. This is exactly + // how markdown.pl works. + this.token(cap, top); - // Get each top-level item. - cap = cap[0].match(this.rules.item); + this.tokens.push({ + type: 'blockquote_end' + }); - next = false; - l = cap.length; - i = 0; + continue; + } - for (; i < l; i++) { - item = cap[i]; + // list + if (cap = this.rules.list.exec(src)) { + src = src.substring(cap[0].length); + bull = cap[2]; + isordered = bull.length > 1; - // Remove the list item's bullet - // so it is seen as the next token. - space = item.length; - item = item.replace(/^ *([*+-]|\d+\.) +/, ''); + this.tokens.push({ + type: 'list_start', + ordered: isordered, + start: isordered ? +bull : '' + }); - // 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, ''); - } + // Get each top-level item. + cap = cap[0].match(this.rules.item); - // 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; - } - } + next = false; + l = cap.length; + i = 0; - // 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; + 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; } + } - this.tokens.push({ - type: loose ? 'loose_item_start' : 'list_item_start' - }); - - // Recurse. - this.token(item, false); - - this.tokens.push({ - type: 'list_item_end' - }); + // 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: 'list_end' + type: loose + ? 'loose_item_start' + : 'list_item_start' }); - continue; - } + // Recurse. + this.token(item, false); - // 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] + type: 'list_item_end' }); - continue; } - // def - if (top && (cap = this.rules.def.exec(src))) { - src = src.substring(cap[0].length); - if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1); - tag = cap[1].toLowerCase(); - if (!this.tokens.links[tag]) { - this.tokens.links[tag] = { - href: cap[2], - title: cap[3] - }; - } - continue; - } + this.tokens.push({ + type: 'list_end' + }); - // table (gfm) - if (top && (cap = this.rules.table.exec(src))) { - src = src.substring(cap[0].length); + continue; + } - item = { - type: 'table', - header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), - align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), - cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') - }; + // 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; + } - 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; - } - } + // def + if (top && (cap = this.rules.def.exec(src))) { + src = src.substring(cap[0].length); + if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1); + tag = cap[1].toLowerCase(); + if (!this.tokens.links[tag]) { + this.tokens.links[tag] = { + href: cap[2], + title: cap[3] + }; + } + continue; + } - for (i = 0; i < item.cells.length; i++) { - item.cells[i] = item.cells[i].replace(/^ *\| *| *\| *$/g, '').split(/ *\| */); - } + // table (gfm) + if (top && (cap = this.rules.table.exec(src))) { + src = src.substring(cap[0].length); - this.tokens.push(item); + item = { + type: 'table', + header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), + align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), + cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') + }; - continue; + 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; + } } - // 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; + for (i = 0; i < item.cells.length; i++) { + item.cells[i] = item.cells[i] + .replace(/^ *\| *| *\| *$/g, '') + .split(/ *\| */); } - // 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; - } + this.tokens.push(item); - // 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; - } + continue; + } - if (src) { - throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); - } + // 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; } - return this.tokens; - }; + // 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; + } - /** - * Inline-Level Grammar - */ + // 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; + } - var inline = { - escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, - autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/, - url: noop, - tag: /^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/, - link: /^!?\[(inside)\]\(href\)/, - reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, - nolink: /^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/, - strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, - em: /^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/, - code: /^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/, - br: /^ {2,}\n(?!\s*$)/, - del: noop, - text: /^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/; +var inline = { + escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, + autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/, + url: noop, + tag: /^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/, + link: /^!?\[(inside)\]\(href\)/, + reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, + nolink: /^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/, + strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, + em: /^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/, + code: /^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/, + br: /^ {2,}\n(?!\s*$)/, + del: noop, + text: /^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/; - inline.normal = merge({}, inline); +inline.link = edit(inline.link) + .replace('inside', inline._inside) + .replace('href', inline._href) + .getRegex(); - /** - * Pedantic Inline Grammar - */ +inline.reflink = edit(inline.reflink) + .replace('inside', inline._inside) + .getRegex(); - inline.pedantic = merge({}, inline.normal, { - strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/, - em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/ - }); +/** + * Normal Inline Grammar + */ - /** - * GFM Inline Grammar - */ +inline.normal = merge({}, inline); - inline.gfm = merge({}, inline.normal, { - escape: edit(inline.escape).replace('])', '~|])').getRegex(), - url: edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace('email', inline._email).getRegex(), - _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/, - del: /^~~(?=\S)([\s\S]*?\S)~~/, - text: edit(inline.text).replace(']|', '~]|').replace('|', '|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&\'*+/=?^_`{\\|}~-]+@|').getRegex() - }); +/** + * Pedantic Inline Grammar + */ - /** - * GFM + Line Breaks 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)\*(?!\*)/ +}); - inline.breaks = merge({}, inline.gfm, { - br: edit(inline.br).replace('{2,}', '*').getRegex(), - text: edit(inline.gfm.text).replace('{2,}', '*').getRegex() - }); +/** + * GFM Inline Grammar + */ - /** - * Inline Lexer & Compiler - */ +inline.gfm = merge({}, inline.normal, { + escape: edit(inline.escape).replace('])', '~|])').getRegex(), + url: edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/) + .replace('email', inline._email) + .getRegex(), + _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/, + del: /^~~(?=\S)([\s\S]*?\S)~~/, + text: edit(inline.text) + .replace(']|', '~]|') + .replace('|', '|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&\'*+/=?^_`{\\|}~-]+@|') + .getRegex() +}); - 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; +/** + * GFM + Line Breaks Inline Grammar + */ - if (!this.links) { - throw new Error('Tokens array requires a `links` property.'); - } +inline.breaks = merge({}, inline.gfm, { + br: edit(inline.br).replace('{2,}', '*').getRegex(), + text: edit(inline.gfm.text).replace('{2,}', '*').getRegex() +}); - 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; +/** + * 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 - */ +/** + * Expose Inline Rules + */ - InlineLexer.rules = inline; +InlineLexer.rules = inline; - /** - * Static Lexing/Compiling Method - */ +/** + * Static Lexing/Compiling Method + */ - InlineLexer.output = function (src, links, options) { - var inline = new InlineLexer(links, options); - return inline.output(src); - }; +InlineLexer.output = function(src, links, options) { + var inline = new InlineLexer(links, options); + return inline.output(src); +}; - /** - * Lexing/Compiling - */ +/** + * 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; - } +InlineLexer.prototype.output = function(src) { + var out = '', + link, + text, + href, + cap; - // autolink - if (cap = this.rules.autolink.exec(src)) { - src = src.substring(cap[0].length); - if (cap[2] === '@') { - text = escape(this.mangle(cap[1])); - href = 'mailto:' + text; - } else { - text = escape(cap[1]); - href = text; - } - out += this.renderer.link(href, null, text); - continue; - } + while (src) { + // escape + if (cap = this.rules.escape.exec(src)) { + src = src.substring(cap[0].length); + out += cap[1]; + continue; + } - // url (gfm) - if (!this.inLink && (cap = this.rules.url.exec(src))) { - cap[0] = this.rules._backpedal.exec(cap[0])[0]; - src = src.substring(cap[0].length); - if (cap[2] === '@') { - text = escape(cap[0]); - href = 'mailto:' + text; - } else { - text = escape(cap[0]); - if (cap[1] === 'www.') { - href = 'http://' + text; - } else { - href = text; - } - } - out += this.renderer.link(href, null, text); - continue; + // autolink + if (cap = this.rules.autolink.exec(src)) { + src = src.substring(cap[0].length); + if (cap[2] === '@') { + text = escape(this.mangle(cap[1])); + href = 'mailto:' + text; + } else { + 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 && /^/i.test(cap[0])) { - this.inLink = false; + // url (gfm) + if (!this.inLink && (cap = this.rules.url.exec(src))) { + cap[0] = this.rules._backpedal.exec(cap[0])[0]; + src = src.substring(cap[0].length); + if (cap[2] === '@') { + text = escape(cap[0]); + href = 'mailto:' + text; + } else { + text = escape(cap[0]); + if (cap[1] === 'www.') { + href = 'http://' + text; + } else { + href = text; } - src = src.substring(cap[0].length); - out += this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape(cap[0]) : cap[0]; - continue; } + out += this.renderer.link(href, null, text); + continue; + } - // link - if (cap = this.rules.link.exec(src)) { - src = src.substring(cap[0].length); + // tag + if (cap = this.rules.tag.exec(src)) { + if (!this.inLink && /^/i.test(cap[0])) { this.inLink = false; - continue; } + src = src.substring(cap[0].length); + out += this.options.sanitize + ? this.options.sanitizer + ? this.options.sanitizer(cap[0]) + : escape(cap[0]) + : cap[0] + 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; - } + // 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; + } - // strong - if (cap = this.rules.strong.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.strong(this.output(cap[2] || cap[1])); + // 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; + } - // 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; - } + // 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; + } - // code - if (cap = this.rules.code.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.codespan(escape(cap[2].trim(), true)); - 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; + } - // br - if (cap = this.rules.br.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.br(); - 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; + } - // del (gfm) - if (cap = this.rules.del.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.del(this.output(cap[1])); - continue; - } + // br + if (cap = this.rules.br.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.br(); + 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; - } + // del (gfm) + if (cap = this.rules.del.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.del(this.output(cap[1])); + continue; + } - if (src) { - throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); - } + // text + if (cap = this.rules.text.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.text(escape(this.smartypants(cap[0]))); + continue; } - return out; - }; + if (src) { + throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); + } + } - /** - * Compile Link - */ + return out; +}; + +/** + * Compile Link + */ - InlineLexer.prototype.outputLink = function (cap, link) { - var href = escape(link.href), - title = link.title ? escape(link.title) : null; +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])); - }; + return cap[0].charAt(0) !== '!' + ? this.renderer.link(href, title, this.output(cap[1])) + : this.renderer.image(href, title, escape(cap[1])); +}; - /** - * Smartypants Transformations - */ +/** + * Smartypants Transformations + */ - InlineLexer.prototype.smartypants = function (text) { - if (!this.options.smartypants) return text; - return text +InlineLexer.prototype.smartypants = function(text) { + if (!this.options.smartypants) return text; + return text // em-dashes .replace(/---/g, '\u2014') // en-dashes @@ -140665,743 +148694,789 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // closing singles & apostrophes .replace(/'/g, '\u2019') // opening doubles - .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201C') + .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c') // closing doubles - .replace(/"/g, '\u201D') + .replace(/"/g, '\u201d') // ellipses .replace(/\.{3}/g, '\u2026'); - }; +}; - /** - * Mangle Links - */ +/** + * Mangle Links + */ - InlineLexer.prototype.mangle = function (text) { - if (!this.options.mangle) return text; - var out = '', - l = text.length, - i = 0, - ch; +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 + ';'; + for (; i < l; i++) { + ch = text.charCodeAt(i); + if (Math.random() > 0.5) { + ch = 'x' + ch.toString(16); } + out += '&#' + ch + ';'; + } - return out; - }; - - /** - * Renderer - */ + return out; +}; - function Renderer(options) { - this.options = options || {}; - } +/** + * Renderer + */ - 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; - } - } +function Renderer(options) { + this.options = options || {}; +} - if (!lang) { - return '
    ' + (escaped ? code : escape(code, true)) + '\n
    '; +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; } + } - return '
    ' + (escaped ? code : escape(code, true)) + '\n
    \n'; - }; + if (!lang) { + return '
    '
    +      + (escaped ? code : escape(code, true))
    +      + '\n
    '; + } - Renderer.prototype.blockquote = function (quote) { - return '
    \n' + quote + '
    \n'; - }; + return '
    '
    +    + (escaped ? code : escape(code, true))
    +    + '\n
    \n'; +}; - Renderer.prototype.html = function (html) { - return html; - }; +Renderer.prototype.blockquote = function(quote) { + return '
    \n' + quote + '
    \n'; +}; - Renderer.prototype.heading = function (text, level, raw) { - return '' + text + '\n'; - }; +Renderer.prototype.html = function(html) { + return html; +}; - Renderer.prototype.hr = function () { - return this.options.xhtml ? '
    \n' : '
    \n'; - }; +Renderer.prototype.heading = function(text, level, raw) { + return '' + + text + + '\n'; +}; - Renderer.prototype.list = function (body, ordered, start) { - var type = ordered ? 'ol' : 'ul', - startatt = ordered && start !== 1 ? ' start="' + start + '"' : ''; - return '<' + type + startatt + '>\n' + body + '\n'; - }; +Renderer.prototype.hr = function() { + return this.options.xhtml ? '
    \n' : '
    \n'; +}; - Renderer.prototype.listitem = function (text) { - return '
  • ' + text + '
  • \n'; - }; +Renderer.prototype.list = function(body, ordered, start) { + var type = ordered ? 'ol' : 'ul', + startatt = (ordered && start !== 1) ? (' start="' + start + '"') : ''; + return '<' + type + startatt + '>\n' + body + '\n'; +}; - Renderer.prototype.paragraph = function (text) { - return '

    ' + text + '

    \n'; - }; +Renderer.prototype.listitem = function(text) { + return '
  • ' + text + '
  • \n'; +}; - Renderer.prototype.table = function (header, body) { - return '\n' + '\n' + header + '\n' + '\n' + body + '\n' + '
    \n'; - }; +Renderer.prototype.paragraph = function(text) { + return '

    ' + text + '

    \n'; +}; - Renderer.prototype.tablerow = function (content) { - return '\n' + content + '\n'; - }; +Renderer.prototype.table = function(header, body) { + return '\n' + + '\n' + + header + + '\n' + + '\n' + + body + + '\n' + + '
    \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 + '\n'; - }; +Renderer.prototype.tablerow = function(content) { + return '\n' + content + '\n'; +}; - // span level renderer - Renderer.prototype.strong = function (text) { - return '' + text + ''; - }; +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 + '\n'; +}; - Renderer.prototype.em = function (text) { - return '' + text + ''; - }; +// span level renderer +Renderer.prototype.strong = function(text) { + return '' + text + ''; +}; - Renderer.prototype.codespan = function (text) { - return '' + text + ''; - }; +Renderer.prototype.em = function(text) { + return '' + text + ''; +}; - Renderer.prototype.br = function () { - return this.options.xhtml ? '
    ' : '
    '; - }; +Renderer.prototype.codespan = function(text) { + return '' + text + ''; +}; - Renderer.prototype.del = function (text) { - return '' + text + ''; - }; +Renderer.prototype.br = function() { + return this.options.xhtml ? '
    ' : '
    '; +}; - 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 = '
    '; - return out; - }; +Renderer.prototype.del = function(text) { + return '' + text + ''; +}; - Renderer.prototype.image = function (href, title, text) { - if (this.options.baseUrl && !originIndependentUrl.test(href)) { - href = resolveUrl(this.options.baseUrl, href); +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; } - var out = '' + text + '' : '>'; - return out; - }; + } + if (this.options.baseUrl && !originIndependentUrl.test(href)) { + href = resolveUrl(this.options.baseUrl, href); + } + var out = ''; + return out; +}; - Renderer.prototype.text = function (text) { - return text; - }; +Renderer.prototype.image = function(href, title, text) { + if (this.options.baseUrl && !originIndependentUrl.test(href)) { + href = resolveUrl(this.options.baseUrl, href); + } + var out = '' + text + '' : '>'; + return out; +}; - /** - * TextRenderer - * returns only the textual part of the token - */ +Renderer.prototype.text = function(text) { + return text; +}; - function TextRenderer() {} +/** + * TextRenderer + * returns only the textual part of the token + */ - // no need for block level renderers +function TextRenderer() {} - TextRenderer.prototype.strong = TextRenderer.prototype.em = TextRenderer.prototype.codespan = TextRenderer.prototype.del = TextRenderer.prototype.text = function (text) { - return text; - }; +// no need for block level renderers - TextRenderer.prototype.link = TextRenderer.prototype.image = function (href, title, text) { - return '' + text; - }; +TextRenderer.prototype.strong = +TextRenderer.prototype.em = +TextRenderer.prototype.codespan = +TextRenderer.prototype.del = +TextRenderer.prototype.text = function (text) { + return text; +} - TextRenderer.prototype.br = function () { - return ''; - }; +TextRenderer.prototype.link = +TextRenderer.prototype.image = function(href, title, text) { + return '' + text; +} - /** - * Parsing & Compiling - */ +TextRenderer.prototype.br = function() { + return ''; +} - 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; - } +/** + * Parsing & Compiling + */ - /** - * Static Parse Method - */ +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; +} - Parser.parse = function (src, options) { - var parser = new Parser(options); - return parser.parse(src); - }; +/** + * Static Parse Method + */ - /** - * Parse Loop - */ +Parser.parse = function(src, options) { + var parser = new Parser(options); + return parser.parse(src); +}; - Parser.prototype.parse = function (src) { - this.inline = new InlineLexer(src.links, this.options); - // use an InlineLexer with a TextRenderer to extract pure text - this.inlineText = new InlineLexer(src.links, merge({}, this.options, { renderer: new TextRenderer() })); - this.tokens = src.reverse(); +/** + * Parse Loop + */ - var out = ''; - while (this.next()) { - out += this.tok(); - } +Parser.prototype.parse = function(src) { + this.inline = new InlineLexer(src.links, this.options); + // use an InlineLexer with a TextRenderer to extract pure text + this.inlineText = new InlineLexer( + src.links, + merge({}, this.options, {renderer: new TextRenderer()}) + ); + this.tokens = src.reverse(); - return out; - }; + var out = ''; + while (this.next()) { + out += this.tok(); + } - /** - * Next Token - */ + return out; +}; - Parser.prototype.next = function () { - return this.token = this.tokens.pop(); - }; +/** + * Next Token + */ - /** - * Preview Next Token - */ +Parser.prototype.next = function() { + return this.token = this.tokens.pop(); +}; - Parser.prototype.peek = function () { - return this.tokens[this.tokens.length - 1] || 0; - }; +/** + * Preview Next Token + */ - /** - * Parse Text Tokens - */ +Parser.prototype.peek = function() { + return this.tokens[this.tokens.length - 1] || 0; +}; - Parser.prototype.parseText = function () { - var body = this.token.text; +/** + * Parse Text Tokens + */ - while (this.peek().type === 'text') { - body += '\n' + this.next().text; - } +Parser.prototype.parseText = function() { + var body = this.token.text; - return this.inline.output(body); - }; + while (this.peek().type === 'text') { + body += '\n' + this.next().text; + } - /** - * Parse Current Token - */ + return this.inline.output(body); +}; - 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, unescape(this.inlineText.output(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, - j; - - // header - cell = ''; - for (i = 0; i < this.token.header.length; i++) { - cell += this.renderer.tablecell(this.inline.output(this.token.header[i]), { header: true, align: this.token.align[i] }); - } - header += this.renderer.tablerow(cell); +/** + * Parse Current Token + */ - for (i = 0; i < this.token.cells.length; i++) { - row = this.token.cells[i]; +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, + unescape(this.inlineText.output(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, + j; + + // header + cell = ''; + for (i = 0; i < this.token.header.length; i++) { + cell += this.renderer.tablecell( + this.inline.output(this.token.header[i]), + { header: true, align: this.token.align[i] } + ); + } + header += this.renderer.tablerow(cell); - cell = ''; - for (j = 0; j < row.length; j++) { - cell += this.renderer.tablecell(this.inline.output(row[j]), { header: false, align: this.token.align[j] }); - } + for (i = 0; i < this.token.cells.length; i++) { + row = this.token.cells[i]; - body += this.renderer.tablerow(cell); - } - return this.renderer.table(header, body); + cell = ''; + for (j = 0; j < row.length; j++) { + cell += this.renderer.tablecell( + this.inline.output(row[j]), + { header: false, align: this.token.align[j] } + ); } - case 'blockquote_start': - { - body = ''; - - while (this.next().type !== 'blockquote_end') { - body += this.tok(); - } - return this.renderer.blockquote(body); - } - case 'list_start': - { - body = ''; - var ordered = this.token.ordered, - start = this.token.start; + body += this.renderer.tablerow(cell); + } + return this.renderer.table(header, body); + } + case 'blockquote_start': { + body = ''; - while (this.next().type !== 'list_end') { - body += this.tok(); - } + while (this.next().type !== 'blockquote_end') { + body += this.tok(); + } - return this.renderer.list(body, ordered, start); - } - case 'list_item_start': - { - body = ''; + return this.renderer.blockquote(body); + } + case 'list_start': { + body = ''; + var ordered = this.token.ordered, + start = this.token.start; - while (this.next().type !== 'list_item_end') { - body += this.token.type === 'text' ? this.parseText() : this.tok(); - } + while (this.next().type !== 'list_end') { + body += this.tok(); + } - return this.renderer.listitem(body); - } - case 'loose_item_start': - { - body = ''; + return this.renderer.list(body, ordered, start); + } + case 'list_item_start': { + body = ''; - while (this.next().type !== 'list_item_end') { - body += this.tok(); - } + while (this.next().type !== 'list_item_end') { + body += this.token.type === 'text' + ? this.parseText() + : 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()); - } + return this.renderer.listitem(body); } - }; + case 'loose_item_start': { + body = ''; - /** - * Helpers - */ + while (this.next().type !== 'list_item_end') { + body += this.tok(); + } - function escape(html, encode) { - return html.replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, '''); + 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()); + } } +}; - 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 ''; - }); - } +/** + * Helpers + */ - function edit(regex, opt) { - regex = regex.source; - opt = opt || ''; - return { - replace: function replace(name, val) { - val = val.source || val; - val = val.replace(/(^|[^\[])\^/g, '$1'); - regex = regex.replace(name, val); - return this; - }, - getRegex: function getRegex() { - return new RegExp(regex, opt); - } - }; - } +function escape(html, encode) { + return html + .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); +} - 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(/[^/]*$/, ''); - } +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 edit(regex, opt) { + regex = regex.source; + opt = opt || ''; + return { + replace: function(name, val) { + val = val.source || val; + val = val.replace(/(^|[^\[])\^/g, '$1'); + regex = regex.replace(name, val); + return this; + }, + getRegex: function() { + return new RegExp(regex, opt); } - 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; +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 { - return base + href; + baseUrls[' ' + base] = base.replace(/[^/]*$/, ''); } } - var baseUrls = {}; - var originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i; + base = baseUrls[' ' + base]; - function noop() {} - noop.exec = noop; + 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; +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]; - } + 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 - */ + return obj; +} + +/** + * Marked + */ + +function marked(src, opt, callback) { + // throw error in case of non string input + if (typeof src === 'undefined' || src === null) { + throw new Error('marked(): input parameter is undefined or null'); + } + if (typeof src !== 'string') { + throw new Error('marked(): input parameter is of type ' + + Object.prototype.toString.call(src) + ', string expected'); + } - function marked(src, opt, callback) { - // throw error in case of non string input - if (typeof src === 'undefined' || src === null) { - throw new Error('marked(): input parameter is undefined or null'); + if (callback || typeof opt === 'function') { + if (!callback) { + callback = opt; + opt = null; } - if (typeof src !== 'string') { - throw new Error('marked(): input parameter is of type ' + Object.prototype.toString.call(src) + ', string expected'); + + opt = merge({}, marked.defaults, opt || {}); + + var highlight = opt.highlight, + tokens, + pending, + i = 0; + + try { + tokens = Lexer.lex(src, opt) + } catch (e) { + return callback(e); } - if (callback || typeof opt === 'function') { - if (!callback) { - callback = opt; - opt = null; - } + pending = tokens.length; - opt = merge({}, marked.defaults, opt || {}); + var done = function(err) { + if (err) { + opt.highlight = highlight; + return callback(err); + } - var highlight = opt.highlight, - tokens, - pending, - i = 0; + var out; try { - tokens = Lexer.lex(src, opt); + out = Parser.parse(tokens, opt); } catch (e) { - return callback(e); + err = 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; + opt.highlight = highlight; - return err ? callback(err) : callback(null, out); - }; + return err + ? callback(err) + : callback(null, out); + }; - if (!highlight || highlight.length < 3) { - return done(); - } + if (!highlight || highlight.length < 3) { + return done(); + } - delete opt.highlight; + delete opt.highlight; - if (!pending) return done(); + if (!pending) return done(); - for (; i < tokens.length; i++) { - (function (token) { - if (token.type !== 'code') { + 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(); } - 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; + token.text = code; + token.escaped = true; + --pending || done(); + }); + })(tokens[i]); } - 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/markedjs/marked.'; - if ((opt || marked.defaults).silent) { - return '

    An error occurred:

    ' + escape(e.message + '', true) + '
    '; - } - throw e; + + 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/markedjs/marked.'; + if ((opt || marked.defaults).silent) { + return '

    An error occurred:

    '
    +        + escape(e.message + '', true)
    +        + '
    '; } + throw e; } +} - /** - * Options - */ +/** + * 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 - }; +marked.options = +marked.setOptions = function(opt) { + merge(marked.defaults, opt); + return marked; +}; - /** - * Expose - */ +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 +}; - marked.Parser = Parser; - marked.parser = Parser.parse; +/** + * Expose + */ - marked.Renderer = Renderer; - marked.TextRenderer = TextRenderer; +marked.Parser = Parser; +marked.parser = Parser.parse; - marked.Lexer = Lexer; - marked.lexer = Lexer.lex; +marked.Renderer = Renderer; +marked.TextRenderer = TextRenderer; - marked.InlineLexer = InlineLexer; - marked.inlineLexer = InlineLexer.output; +marked.Lexer = Lexer; +marked.lexer = Lexer.lex; - marked.parse = marked; +marked.InlineLexer = InlineLexer; +marked.inlineLexer = InlineLexer.output; - 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 { - root.marked = marked; - } -})(undefined || (typeof window !== 'undefined' ? window : global)); +marked.parse = marked; -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],896:[function(require,module,exports){ -'use strict'; +if (typeof module !== 'undefined' && typeof exports === 'object') { + module.exports = marked; +} else if (typeof define === 'function' && define.amd) { + define(function() { return marked; }); +} else { + root.marked = marked; +} +})(this || (typeof window !== 'undefined' ? window : global)); -var inherits = require('inherits'); -var HashBase = require('hash-base'); -var Buffer = require('safe-buffer').Buffer; +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}],910:[function(require,module,exports){ +'use strict' +var inherits = require('inherits') +var HashBase = require('hash-base') +var Buffer = require('safe-buffer').Buffer -var ARRAY16 = new Array(16); +var ARRAY16 = new Array(16) -function MD5() { - HashBase.call(this, 64); +function MD5 () { + HashBase.call(this, 64) // state - this._a = 0x67452301; - this._b = 0xefcdab89; - this._c = 0x98badcfe; - this._d = 0x10325476; + this._a = 0x67452301 + this._b = 0xefcdab89 + this._c = 0x98badcfe + this._d = 0x10325476 } -inherits(MD5, HashBase); +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; -}; + 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; + 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, 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(); + 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 = Buffer.allocUnsafe(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; + var buffer = Buffer.allocUnsafe(16) + buffer.writeInt32LE(this._a, 0) + buffer.writeInt32LE(this._b, 4) + buffer.writeInt32LE(this._c, 8) + buffer.writeInt32LE(this._d, 12) + return buffer } -function fnF(a, b, c, d, m, k, s) { - return rotl(a + (b & c | ~b & d) + m + k | 0, s) + b | 0; +function rotl (x, n) { + return (x << n) | (x >>> (32 - n)) } -function fnG(a, b, c, d, m, k, s) { - return rotl(a + (b & d | c & ~d) + m + k | 0, s) + b | 0; +function fnF (a, b, c, d, m, k, s) { + return (rotl((a + ((b & c) | ((~b) & 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 fnG (a, b, c, d, m, k, s) { + return (rotl((a + ((b & d) | (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; +function fnH (a, b, c, d, m, k, s) { + return (rotl((a + (b ^ c ^ d) + m + k) | 0, s) + b) | 0 } -module.exports = MD5; +function fnI (a, b, c, d, m, k, s) { + return (rotl((a + ((c ^ (b | (~d)))) + m + k) | 0, s) + b) | 0 +} -},{"hash-base":863,"inherits":882,"safe-buffer":937}],897:[function(require,module,exports){ -'use strict'; +module.exports = MD5 +},{"hash-base":877,"inherits":896,"safe-buffer":951}],911:[function(require,module,exports){ var bn = require('bn.js'); var brorand = require('brorand'); @@ -141420,9 +149495,9 @@ MillerRabin.prototype._randbelow = function _randbelow(n) { // 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 { + do var a = new bn(this.rand.generate(min_bytes)); - } while (a.cmp(n) >= 0); + while (a.cmp(n) >= 0); return a; }; @@ -141438,7 +149513,8 @@ MillerRabin.prototype.test = function test(n, k, cb) { var red = bn.mont(n); var rone = new bn(1).toRed(red); - if (!k) k = Math.max(1, len / 48 | 0); + if (!k) + k = Math.max(1, (len / 48) | 0); // Find d and s, (n - 1) = (2 ^ s) * d; var n1 = n.subn(1); @@ -141450,19 +149526,24 @@ MillerRabin.prototype.test = function test(n, k, cb) { var prime = true; for (; k > 0; k--) { var a = this._randrange(new bn(2), n1); - if (cb) cb(a); + if (cb) + cb(a); var x = a.toRed(red).redPow(d); - if (x.cmp(rone) === 0 || x.cmp(rn1) === 0) continue; + 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 (x.cmp(rone) === 0) + return false; + if (x.cmp(rn1) === 0) + break; } - if (i === s) return false; + if (i === s) + return false; } return prime; @@ -141473,7 +149554,8 @@ MillerRabin.prototype.getDivisor = function getDivisor(n, k) { var red = bn.mont(n); var rone = new bn(1).toRed(red); - if (!k) k = Math.max(1, len / 48 | 0); + if (!k) + k = Math.max(1, (len / 48) | 0); // Find d and s, (n - 1) = (2 ^ s) * d; var n1 = n.subn(1); @@ -141486,16 +149568,20 @@ MillerRabin.prototype.getDivisor = function getDivisor(n, k) { var a = this._randrange(new bn(2), n1); var g = n.gcd(a); - if (g.cmpn(1) !== 0) return g; + if (g.cmpn(1) !== 0) + return g; var x = a.toRed(red).redPow(d); - if (x.cmp(rone) === 0 || x.cmp(rn1) === 0) continue; + 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 (x.cmp(rone) === 0) + return x.fromRed().subn(1).gcd(n); + if (x.cmp(rn1) === 0) + break; } if (i === s) { @@ -141507,11 +149593,11 @@ MillerRabin.prototype.getDivisor = function getDivisor(n, k) { return false; }; -},{"bn.js":367,"brorand":368}],898:[function(require,module,exports){ +},{"bn.js":381,"brorand":382}],912:[function(require,module,exports){ arguments[4][258][0].apply(exports,arguments) -},{"dup":258}],899:[function(require,module,exports){ +},{"dup":258}],913:[function(require,module,exports){ arguments[4][259][0].apply(exports,arguments) -},{"dup":259}],900:[function(require,module,exports){ +},{"dup":259}],914:[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", @@ -141525,297 +149611,377 @@ module.exports={"2.16.840.1.101.3.4.1.1": "aes-128-ecb", "2.16.840.1.101.3.4.1.43": "aes-256-ofb", "2.16.840.1.101.3.4.1.44": "aes-256-cfb" } -},{}],901:[function(require,module,exports){ +},{}],915:[function(require,module,exports){ // from https://github.com/indutny/self-signed/blob/gh-pages/lib/asn1.js // Fedor, you are amazing. -'use strict'; +'use strict' -var asn1 = require('asn1.js'); +var asn1 = require('asn1.js') -exports.certificate = require('./certificate'); +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; + 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; + 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; + 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()); -}); + 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; + 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; + 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; + 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(); -}); + 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; + 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()); -}); + this.seq().obj( + this.key('r').int(), + this.key('s').int() + ) +}) -},{"./certificate":902,"asn1.js":321}],902:[function(require,module,exports){ +},{"./certificate":916,"asn1.js":335}],916:[function(require,module,exports){ // from https://github.com/Rantanen/node-dtls/blob/25a7dc861bda38cfeac93a723500eea4f0ac2e86/Certificate.js // thanks to @Rantanen -'use strict'; +'use strict' -var asn = require('asn1.js'); +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()); -}); + 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()); -}); + 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()); -}); + this.seq().obj( + this.key('algorithm').use(AlgorithmIdentifier), + this.key('subjectPublicKey').bitstr() + ) +}) var RelativeDistinguishedName = asn.define('RelativeDistinguishedName', function () { - this.setof(AttributeTypeValue); -}); + this.setof(AttributeTypeValue) +}) var RDNSequence = asn.define('RDNSequence', function () { - this.seqof(RelativeDistinguishedName); -}); + 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)); -}); + 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()); -}); + 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()); -}); + 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()); -}); + this.seq().obj( + this.key('tbsCertificate').use(TBSCertificate), + this.key('signatureAlgorithm').use(AlgorithmIdentifier), + this.key('signatureValue').bitstr() + ) +}) -module.exports = X509Certificate; +module.exports = X509Certificate -},{"asn1.js":321}],903:[function(require,module,exports){ +},{"asn1.js":335}],917:[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]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m; -var startRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m; -var fullRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m; -var evp = require('evp_bytestokey'); -var ciphers = require('browserify-aes'); +var findProc = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m +var startRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m +var fullRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\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; + 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'); + 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]; + 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":372,"buffer":401,"evp_bytestokey":862}],904:[function(require,module,exports){ +},{"browserify-aes":386,"buffer":415,"evp_bytestokey":876}],918:[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; +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 === 'object' && !Buffer.isBuffer(buffer)) { + password = buffer.passphrase + buffer = buffer.key } if (typeof buffer === 'string') { - buffer = new Buffer(buffer); + buffer = new Buffer(buffer) } - var stripped = fixProc(buffer, password); + var stripped = fixProc(buffer, password) - var type = stripped.tag; - var data = stripped.data; - var subtype, ndata; + 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 + ndata = asn1.certificate.decode(data, 'der').tbsCertificate.subjectPublicKeyInfo + // falls through case 'PUBLIC KEY': if (!ndata) { - ndata = asn1.PublicKey.decode(data, 'der'); + ndata = asn1.PublicKey.decode(data, 'der') } - subtype = ndata.algorithm.algorithm.join('.'); + subtype = ndata.algorithm.algorithm.join('.') switch (subtype) { case '1.2.840.113549.1.1.1': - return asn1.RSAPublicKey.decode(ndata.subjectPublicKey.data, 'der'); + return asn1.RSAPublicKey.decode(ndata.subjectPublicKey.data, 'der') case '1.2.840.10045.2.1': - ndata.subjectPrivateKey = ndata.subjectPublicKey; + 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'); + 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); + } + default: throw new Error('unknown key id ' + subtype) } - throw new Error('unknown key type ' + type); + throw new Error('unknown key type ' + type) case 'ENCRYPTED PRIVATE KEY': - data = asn1.EncryptedPrivateKey.decode(data, 'der'); - data = decrypt(data, password); - // falls through + 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('.'); + 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'); + 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'); + 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); + } + default: throw new Error('unknown key id ' + subtype) } - throw new Error('unknown key type ' + type); + throw new Error('unknown key type ' + type) case 'RSA PUBLIC KEY': - return asn1.RSAPublicKey.decode(data, 'der'); + return asn1.RSAPublicKey.decode(data, 'der') case 'RSA PRIVATE KEY': - return asn1.RSAPrivateKey.decode(data, 'der'); + 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'); + 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); + } + 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":900,"./asn1":901,"./fixProc":903,"browserify-aes":372,"buffer":401,"pbkdf2":905}],905:[function(require,module,exports){ -'use strict'; - -exports.pbkdf2 = require('./lib/async'); -exports.pbkdf2Sync = require('./lib/sync'); +},{"./aesid.json":914,"./asn1":915,"./fixProc":917,"browserify-aes":386,"buffer":415,"pbkdf2":919}],919:[function(require,module,exports){ +exports.pbkdf2 = require('./lib/async') +exports.pbkdf2Sync = require('./lib/sync') -},{"./lib/async":906,"./lib/sync":909}],906:[function(require,module,exports){ +},{"./lib/async":920,"./lib/sync":923}],920:[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 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 ZERO_BUF +var subtle = global.crypto && global.crypto.subtle var toBrowser = { 'sha': 'SHA-1', 'sha-1': 'SHA-1', @@ -141826,30 +149992,33 @@ var toBrowser = { 'sha-384': 'SHA-384', 'sha-512': 'SHA-512', 'sha512': 'SHA-512' -}; -var checks = []; -function checkNative(algo) { +} +var checks = [] +function checkNative (algo) { if (global.process && !global.process.browser) { - return Promise.resolve(false); + return Promise.resolve(false) } if (!subtle || !subtle.importKey || !subtle.deriveBits) { - return Promise.resolve(false); + 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; + 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) { +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, @@ -141857,119 +150026,112 @@ function browserPbkdf2(password, salt, iterations, length, algo) { hash: { name: algo } - }, key, length << 3); + }, key, length << 3) }).then(function (res) { - return Buffer.from(res); - }); + return Buffer.from(res) + }) } -function resolvePromise(promise, callback) { +function resolvePromise (promise, callback) { promise.then(function (out) { process.nextTick(function () { - callback(null, out); - }); + callback(null, out) + }) }, function (e) { process.nextTick(function () { - callback(e); - }); - }); + callback(e) + }) + }) } module.exports = function (password, salt, iterations, keylen, digest, callback) { if (typeof digest === 'function') { - callback = digest; - digest = undefined; + callback = digest + digest = undefined } - digest = digest || 'sha1'; - var algo = toBrowser[digest.toLowerCase()]; + digest = digest || 'sha1' + var algo = toBrowser[digest.toLowerCase()] if (!algo || typeof global.Promise !== 'function') { return process.nextTick(function () { - var out; + var out try { - out = sync(password, salt, iterations, keylen, digest); + out = sync(password, salt, iterations, keylen, digest) } catch (e) { - return callback(e); + return callback(e) } - callback(null, out); - }); + callback(null, out) + }) } - checkParameters(password, salt, iterations, keylen); - if (typeof callback !== 'function') throw new Error('No callback provided to pbkdf2'); - if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding); - if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding); + checkParameters(password, salt, iterations, keylen) + if (typeof callback !== 'function') throw new Error('No callback provided to pbkdf2') + if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding) + if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding) resolvePromise(checkNative(algo).then(function (resp) { - if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo); + if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo) - return sync(password, salt, iterations, keylen, digest); - }), callback); -}; + 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":907,"./precondition":908,"./sync":909,"_process":911,"safe-buffer":937}],907:[function(require,module,exports){ +},{"./default-encoding":921,"./precondition":922,"./sync":923,"_process":925,"safe-buffer":951}],921:[function(require,module,exports){ (function (process){ -'use strict'; - -var defaultEncoding; +var defaultEncoding /* istanbul ignore next */ if (process.browser) { - defaultEncoding = 'utf-8'; + defaultEncoding = 'utf-8' } else { - var pVersionMajor = parseInt(process.version.split('.')[0].slice(1), 10); + var pVersionMajor = parseInt(process.version.split('.')[0].slice(1), 10) - defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary'; + defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary' } -module.exports = defaultEncoding; +module.exports = defaultEncoding }).call(this,require('_process')) -},{"_process":911}],908:[function(require,module,exports){ +},{"_process":925}],922:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var MAX_ALLOC = Math.pow(2, 30) - 1; // default in iojs +var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs -function checkBuffer(buf, name) { +function checkBuffer (buf, name) { if (typeof buf !== 'string' && !Buffer.isBuffer(buf)) { - throw new TypeError(name + ' must be a buffer or string'); + throw new TypeError(name + ' must be a buffer or string') } } module.exports = function (password, salt, iterations, keylen) { - checkBuffer(password, 'Password'); - checkBuffer(salt, 'Salt'); + checkBuffer(password, 'Password') + checkBuffer(salt, 'Salt') if (typeof iterations !== 'number') { - throw new TypeError('Iterations not a number'); + throw new TypeError('Iterations not a number') } if (iterations < 0) { - throw new TypeError('Bad iterations'); + throw new TypeError('Bad iterations') } if (typeof keylen !== 'number') { - throw new TypeError('Key length not a 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'); + if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) { /* eslint no-self-compare: 0 */ + throw new TypeError('Bad key length') } -}; +} }).call(this,{"isBuffer":require("../../is-buffer/index.js")}) -},{"../../is-buffer/index.js":883}],909:[function(require,module,exports){ -'use strict'; - -var md5 = require('create-hash/md5'); -var RIPEMD160 = 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); +},{"../../is-buffer/index.js":897}],923:[function(require,module,exports){ +var md5 = require('create-hash/md5') +var RIPEMD160 = 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, @@ -141979,101 +150141,97 @@ var sizes = { sha512: 64, rmd160: 20, ripemd160: 20 -}; +} -function Hmac(alg, key, saltLen) { - var hash = getDigest(alg); - var blocksize = alg === 'sha512' || alg === 'sha384' ? 128 : 64; +function Hmac (alg, key, saltLen) { + var hash = getDigest(alg) + var blocksize = (alg === 'sha512' || alg === 'sha384') ? 128 : 64 if (key.length > blocksize) { - key = hash(key); + key = hash(key) } else if (key.length < blocksize) { - key = Buffer.concat([key, ZEROS], blocksize); + key = Buffer.concat([key, ZEROS], blocksize) } - var ipad = Buffer.allocUnsafe(blocksize + sizes[alg]); - var opad = Buffer.allocUnsafe(blocksize + sizes[alg]); + 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; + 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]; + 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); -}; + 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(); +function getDigest (alg) { + function shaFunc (data) { + return sha(alg).update(data).digest() } - function rmd160Func(data) { - return new RIPEMD160().update(data).digest(); + function rmd160Func (data) { + return new RIPEMD160().update(data).digest() } - if (alg === 'rmd160' || alg === 'ripemd160') return rmd160Func; - if (alg === 'md5') return md5; - return shaFunc; + if (alg === 'rmd160' || alg === 'ripemd160') return rmd160Func + if (alg === 'md5') return md5 + return shaFunc } -function pbkdf2(password, salt, iterations, keylen, digest) { - checkParameters(password, salt, iterations, keylen); +function pbkdf2 (password, salt, iterations, keylen, digest) { + checkParameters(password, salt, iterations, keylen) - if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding); - if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding); + if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding) + if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding) - digest = digest || 'sha1'; + digest = digest || 'sha1' - var hmac = new Hmac(digest, password, salt.length); + 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 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); + 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); + block1.writeUInt32BE(i, salt.length) - var T = hmac.run(block1, hmac.ipad1); - var U = T; + 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]; - } + U = hmac.run(U, hmac.ipad2) + for (var k = 0; k < hLen; k++) T[k] ^= U[k] } - T.copy(DK, destPos); - destPos += hLen; + T.copy(DK, destPos) + destPos += hLen } - return DK; + return DK } -module.exports = pbkdf2; +module.exports = pbkdf2 -},{"./default-encoding":907,"./precondition":908,"create-hash/md5":824,"ripemd160":935,"safe-buffer":937,"sha.js":946}],910:[function(require,module,exports){ +},{"./default-encoding":921,"./precondition":922,"create-hash/md5":838,"ripemd160":949,"safe-buffer":951,"sha.js":960}],924:[function(require,module,exports){ arguments[4][263][0].apply(exports,arguments) -},{"_process":911,"dup":263}],911:[function(require,module,exports){ -'use strict'; - +},{"_process":925,"dup":263}],925:[function(require,module,exports){ // shim for using process in browser var process = module.exports = {}; @@ -142088,7 +150246,7 @@ var cachedClearTimeout; function defaultSetTimout() { throw new Error('setTimeout has not been defined'); } -function defaultClearTimeout() { +function defaultClearTimeout () { throw new Error('clearTimeout has not been defined'); } (function () { @@ -142110,7 +150268,7 @@ function defaultClearTimeout() { } catch (e) { cachedClearTimeout = defaultClearTimeout; } -})(); +} ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { //normal enviroments in sane situations @@ -142124,15 +150282,17 @@ function runTimeout(fun) { try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); - } catch (e) { + } 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) { + } 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) { @@ -142147,16 +150307,19 @@ function runClearTimeout(marker) { try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); - } catch (e) { + } 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) { + } 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; @@ -142186,7 +150349,7 @@ function drainQueue() { draining = true; var len = queue.length; - while (len) { + while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { @@ -142242,443 +150405,417 @@ process.emit = noop; process.prependListener = noop; process.prependOnceListener = noop; -process.listeners = function (name) { - return []; -}; +process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); }; -process.cwd = function () { - return '/'; -}; +process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; -process.umask = function () { - return 0; -}; +process.umask = function() { return 0; }; -},{}],912:[function(require,module,exports){ -'use strict'; - -exports.publicEncrypt = require('./publicEncrypt'); -exports.privateDecrypt = require('./privateDecrypt'); +},{}],926:[function(require,module,exports){ +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); -}; +exports.privateEncrypt = function privateEncrypt (key, buf) { + return exports.publicEncrypt(key, buf, true) +} -},{"./privateDecrypt":914,"./publicEncrypt":915}],913:[function(require,module,exports){ -'use strict'; +exports.publicDecrypt = function publicDecrypt (key, buf) { + return exports.privateDecrypt(key, buf, true) +} -var createHash = require('create-hash'); -var Buffer = require('safe-buffer').Buffer; +},{"./privateDecrypt":928,"./publicEncrypt":929}],927:[function(require,module,exports){ +var createHash = require('create-hash') +var Buffer = require('safe-buffer').Buffer module.exports = function (seed, len) { - var t = Buffer.alloc(0); - var i = 0; - var c; + var t = Buffer.alloc(0) + var i = 0 + var c while (t.length < len) { - c = i2ops(i++); - t = Buffer.concat([t, createHash('sha1').update(seed).update(c).digest()]); + c = i2ops(i++) + t = Buffer.concat([t, createHash('sha1').update(seed).update(c).digest()]) } - return t.slice(0, len); -}; - -function i2ops(c) { - var out = Buffer.allocUnsafe(4); - out.writeUInt32BE(c, 0); - return out; + return t.slice(0, len) } -},{"create-hash":823,"safe-buffer":937}],914:[function(require,module,exports){ -'use strict'; +function i2ops (c) { + var out = Buffer.allocUnsafe(4) + out.writeUInt32BE(c, 0) + return out +} -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'); -var Buffer = require('safe-buffer').Buffer; +},{"create-hash":837,"safe-buffer":951}],928:[function(require,module,exports){ +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') +var Buffer = require('safe-buffer').Buffer -module.exports = function privateDecrypt(privateKey, enc, reverse) { - var padding; +module.exports = function privateDecrypt (privateKey, enc, reverse) { + var padding if (privateKey.padding) { - padding = privateKey.padding; + padding = privateKey.padding } else if (reverse) { - padding = 1; + padding = 1 } else { - padding = 4; + padding = 4 } - var key = parseKeys(privateKey); - var k = key.modulus.byteLength(); + var key = parseKeys(privateKey) + var k = key.modulus.byteLength() if (enc.length > k || new BN(enc).cmp(key.modulus) >= 0) { - throw new Error('decryption error'); + throw new Error('decryption error') } - var msg; + var msg if (reverse) { - msg = withPublic(new BN(enc), key); + msg = withPublic(new BN(enc), key) } else { - msg = crt(enc, key); + msg = crt(enc, key) } - var zBuffer = Buffer.alloc(k - msg.length); - msg = Buffer.concat([zBuffer, msg], k); + var zBuffer = Buffer.alloc(k - msg.length) + msg = Buffer.concat([zBuffer, msg], k) if (padding === 4) { - return oaep(key, msg); + return oaep(key, msg) } else if (padding === 1) { - return pkcs1(key, msg, reverse); + return pkcs1(key, msg, reverse) } else if (padding === 3) { - return msg; + return msg } else { - throw new Error('unknown padding'); + throw new Error('unknown padding') } -}; +} -function oaep(key, msg) { - var k = key.modulus.byteLength(); - var iHash = createHash('sha1').update(Buffer.alloc(0)).digest(); - var hLen = iHash.length; +function oaep (key, msg) { + var k = key.modulus.byteLength() + var iHash = createHash('sha1').update(Buffer.alloc(0)).digest() + var hLen = iHash.length if (msg[0] !== 0) { - throw new Error('decryption error'); + 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)); + 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'); + throw new Error('decryption error') } - var i = hLen; + var i = hLen while (db[i] === 0) { - i++; + i++ } if (db[i++] !== 1) { - throw new Error('decryption error'); + throw new Error('decryption error') } - return db.slice(i); + return db.slice(i) } -function pkcs1(key, msg, reverse) { - var p1 = msg.slice(0, 2); - var i = 2; - var status = 0; +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; + status++ + break } } - var ps = msg.slice(2, i - 1); + var ps = msg.slice(2, i - 1) - if (p1.toString('hex') !== '0002' && !reverse || p1.toString('hex') !== '0001' && reverse) { - status++; + if ((p1.toString('hex') !== '0002' && !reverse) || (p1.toString('hex') !== '0001' && reverse)) { + status++ } if (ps.length < 8) { - status++; + status++ } if (status) { - throw new Error('decryption error'); + throw new Error('decryption error') } - return msg.slice(i); + return msg.slice(i) } -function compare(a, b) { - a = Buffer.from(a); - b = Buffer.from(b); - var dif = 0; - var len = a.length; +function compare (a, b) { + a = Buffer.from(a) + b = Buffer.from(b) + var dif = 0 + var len = a.length if (a.length !== b.length) { - dif++; - len = Math.min(a.length, b.length); + dif++ + len = Math.min(a.length, b.length) } - var i = -1; + var i = -1 while (++i < len) { - dif += a[i] ^ b[i]; + dif += (a[i] ^ b[i]) } - return dif; + return dif } -},{"./mgf":913,"./withPublic":916,"./xor":917,"bn.js":367,"browserify-rsa":390,"create-hash":823,"parse-asn1":904,"safe-buffer":937}],915:[function(require,module,exports){ -'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 Buffer = require('safe-buffer').Buffer; +},{"./mgf":927,"./withPublic":930,"./xor":931,"bn.js":381,"browserify-rsa":404,"create-hash":837,"parse-asn1":918,"safe-buffer":951}],929:[function(require,module,exports){ +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 Buffer = require('safe-buffer').Buffer -module.exports = function publicEncrypt(publicKey, msg, reverse) { - var padding; +module.exports = function publicEncrypt (publicKey, msg, reverse) { + var padding if (publicKey.padding) { - padding = publicKey.padding; + padding = publicKey.padding } else if (reverse) { - padding = 1; + padding = 1 } else { - padding = 4; + padding = 4 } - var key = parseKeys(publicKey); - var paddedMsg; + var key = parseKeys(publicKey) + var paddedMsg if (padding === 4) { - paddedMsg = oaep(key, msg); + paddedMsg = oaep(key, msg) } else if (padding === 1) { - paddedMsg = pkcs1(key, msg, reverse); + paddedMsg = pkcs1(key, msg, reverse) } else if (padding === 3) { - paddedMsg = new BN(msg); + paddedMsg = new BN(msg) if (paddedMsg.cmp(key.modulus) >= 0) { - throw new Error('data too long for modulus'); + throw new Error('data too long for modulus') } } else { - throw new Error('unknown padding'); + throw new Error('unknown padding') } if (reverse) { - return crt(paddedMsg, key); + return crt(paddedMsg, key) } else { - return withPublic(paddedMsg, key); + return withPublic(paddedMsg, key) } -}; +} -function oaep(key, msg) { - var k = key.modulus.byteLength(); - var mLen = msg.length; - var iHash = createHash('sha1').update(Buffer.alloc(0)).digest(); - var hLen = iHash.length; - var hLen2 = 2 * hLen; +function oaep (key, msg) { + var k = key.modulus.byteLength() + var mLen = msg.length + var iHash = createHash('sha1').update(Buffer.alloc(0)).digest() + var hLen = iHash.length + var hLen2 = 2 * hLen if (mLen > k - hLen2 - 2) { - throw new Error('message too long'); - } - var ps = Buffer.alloc(k - mLen - hLen2 - 2); - var dblen = k - hLen - 1; - var seed = randomBytes(hLen); - var maskedDb = xor(Buffer.concat([iHash, ps, Buffer.alloc(1, 1), msg], dblen), mgf(seed, dblen)); - var maskedSeed = xor(seed, mgf(maskedDb, hLen)); - return new BN(Buffer.concat([Buffer.alloc(1), maskedSeed, maskedDb], k)); -} -function pkcs1(key, msg, reverse) { - var mLen = msg.length; - var k = key.modulus.byteLength(); + throw new Error('message too long') + } + var ps = Buffer.alloc(k - mLen - hLen2 - 2) + var dblen = k - hLen - 1 + var seed = randomBytes(hLen) + var maskedDb = xor(Buffer.concat([iHash, ps, Buffer.alloc(1, 1), msg], dblen), mgf(seed, dblen)) + var maskedSeed = xor(seed, mgf(maskedDb, hLen)) + return new BN(Buffer.concat([Buffer.alloc(1), 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'); + throw new Error('message too long') } - var ps; + var ps if (reverse) { - ps = Buffer.alloc(k - mLen - 3, 0xff); + ps = Buffer.alloc(k - mLen - 3, 0xff) } else { - ps = nonZero(k - mLen - 3); + ps = nonZero(k - mLen - 3) } - return new BN(Buffer.concat([Buffer.from([0, reverse ? 1 : 2]), ps, Buffer.alloc(1), msg], k)); + return new BN(Buffer.concat([Buffer.from([0, reverse ? 1 : 2]), ps, Buffer.alloc(1), msg], k)) } -function nonZero(len) { - var out = Buffer.allocUnsafe(len); - var i = 0; - var cache = randomBytes(len * 2); - var cur = 0; - var num; +function nonZero (len) { + var out = Buffer.allocUnsafe(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; + cache = randomBytes(len * 2) + cur = 0 } - num = cache[cur++]; + num = cache[cur++] if (num) { - out[i++] = num; + out[i++] = num } } - return out; + return out } -},{"./mgf":913,"./withPublic":916,"./xor":917,"bn.js":367,"browserify-rsa":390,"create-hash":823,"parse-asn1":904,"randombytes":918,"safe-buffer":937}],916:[function(require,module,exports){ -'use strict'; - -var BN = require('bn.js'); -var Buffer = require('safe-buffer').Buffer; +},{"./mgf":927,"./withPublic":930,"./xor":931,"bn.js":381,"browserify-rsa":404,"create-hash":837,"parse-asn1":918,"randombytes":932,"safe-buffer":951}],930:[function(require,module,exports){ +var BN = require('bn.js') +var Buffer = require('safe-buffer').Buffer -function withPublic(paddedMsg, key) { - return Buffer.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray()); +function withPublic (paddedMsg, key) { + return Buffer.from(paddedMsg + .toRed(BN.mont(key.modulus)) + .redPow(new BN(key.publicExponent)) + .fromRed() + .toArray()) } -module.exports = withPublic; +module.exports = withPublic -},{"bn.js":367,"safe-buffer":937}],917:[function(require,module,exports){ -"use strict"; - -module.exports = function xor(a, b) { - var len = a.length; - var i = -1; +},{"bn.js":381,"safe-buffer":951}],931:[function(require,module,exports){ +module.exports = function xor (a, b) { + var len = a.length + var i = -1 while (++i < len) { - a[i] ^= b[i]; + a[i] ^= b[i] } - return a; -}; + return a +} -},{}],918:[function(require,module,exports){ +},{}],932:[function(require,module,exports){ arguments[4][264][0].apply(exports,arguments) -},{"_process":911,"dup":264,"safe-buffer":937}],919:[function(require,module,exports){ +},{"_process":925,"dup":264,"safe-buffer":951}],933:[function(require,module,exports){ (function (process,global){ -'use strict'; +'use strict' -function oldBrowser() { - throw new Error('secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11'); +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'); +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'); + throw new TypeError('offset must be a uint32') } if (offset > kBufferMaxLength || offset > length) { - throw new RangeError('offset out of range'); + 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'); +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'); + throw new TypeError('size must be a uint32') } if (size + offset > length || size > kBufferMaxLength) { - throw new RangeError('buffer too small'); + throw new RangeError('buffer too small') } } -if (crypto && crypto.getRandomValues || !process.browser) { - exports.randomFill = randomFill; - exports.randomFillSync = randomFillSync; +if ((crypto && crypto.getRandomValues) || !process.browser) { + exports.randomFill = randomFill + exports.randomFillSync = randomFillSync } else { - exports.randomFill = oldBrowser; - exports.randomFillSync = oldBrowser; + exports.randomFill = oldBrowser + exports.randomFillSync = oldBrowser } -function randomFill(buf, offset, size, cb) { +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'); + throw new TypeError('"buf" argument must be a Buffer or Uint8Array') } if (typeof offset === 'function') { - cb = offset; - offset = 0; - size = buf.length; + cb = offset + offset = 0 + size = buf.length } else if (typeof size === 'function') { - cb = size; - size = buf.length - offset; + cb = size + size = buf.length - offset } else if (typeof cb !== 'function') { - throw new TypeError('"cb" argument must be a 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); + assertOffset(offset, buf.length) + assertSize(size, offset, buf.length) + return actualFill(buf, offset, size, cb) } -function 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); + var ourBuf = buf.buffer + var uint = new Uint8Array(ourBuf, offset, size) + crypto.getRandomValues(uint) if (cb) { process.nextTick(function () { - cb(null, buf); - }); - return; + cb(null, buf) + }) + return } - return buf; + return buf } if (cb) { randombytes(size, function (err, bytes) { if (err) { - return cb(err); + return cb(err) } - bytes.copy(buf, offset); - cb(null, buf); - }); - return; + bytes.copy(buf, offset) + cb(null, buf) + }) + return } - var bytes = randombytes(size); - bytes.copy(buf, offset); - return buf; + var bytes = randombytes(size) + bytes.copy(buf, offset) + return buf } -function randomFillSync(buf, offset, size) { +function randomFillSync (buf, offset, size) { if (typeof offset === 'undefined') { - offset = 0; + offset = 0 } if (!Buffer.isBuffer(buf) && !(buf instanceof global.Uint8Array)) { - throw new TypeError('"buf" argument must be a Buffer or Uint8Array'); + throw new TypeError('"buf" argument must be a Buffer or Uint8Array') } - assertOffset(offset, buf.length); + assertOffset(offset, buf.length) - if (size === undefined) size = buf.length - offset; + if (size === undefined) size = buf.length - offset - assertSize(size, offset, buf.length); + assertSize(size, offset, buf.length) - return actualFill(buf, offset, size); + return actualFill(buf, offset, size) } }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"_process":911,"randombytes":918,"safe-buffer":937}],920:[function(require,module,exports){ -'use strict'; - +},{"_process":925,"randombytes":932,"safe-buffer":951}],934:[function(require,module,exports){ module.exports = require('./lib/_stream_duplex.js'); -},{"./lib/_stream_duplex.js":921}],921:[function(require,module,exports){ +},{"./lib/_stream_duplex.js":935}],935:[function(require,module,exports){ arguments[4][265][0].apply(exports,arguments) -},{"./_stream_readable":923,"./_stream_writable":925,"core-util-is":821,"dup":265,"inherits":882,"process-nextick-args":910}],922:[function(require,module,exports){ +},{"./_stream_readable":937,"./_stream_writable":939,"core-util-is":835,"dup":265,"inherits":896,"process-nextick-args":924}],936:[function(require,module,exports){ arguments[4][266][0].apply(exports,arguments) -},{"./_stream_transform":924,"core-util-is":821,"dup":266,"inherits":882}],923:[function(require,module,exports){ +},{"./_stream_transform":938,"core-util-is":835,"dup":266,"inherits":896}],937:[function(require,module,exports){ arguments[4][267][0].apply(exports,arguments) -},{"./_stream_duplex":921,"./internal/streams/BufferList":926,"./internal/streams/destroy":927,"./internal/streams/stream":928,"_process":911,"core-util-is":821,"dup":267,"events":861,"inherits":882,"isarray":885,"process-nextick-args":910,"safe-buffer":937,"string_decoder/":956,"util":369}],924:[function(require,module,exports){ +},{"./_stream_duplex":935,"./internal/streams/BufferList":940,"./internal/streams/destroy":941,"./internal/streams/stream":942,"_process":925,"core-util-is":835,"dup":267,"events":875,"inherits":896,"isarray":899,"process-nextick-args":924,"safe-buffer":951,"string_decoder/":970,"util":383}],938:[function(require,module,exports){ arguments[4][268][0].apply(exports,arguments) -},{"./_stream_duplex":921,"core-util-is":821,"dup":268,"inherits":882}],925:[function(require,module,exports){ +},{"./_stream_duplex":935,"core-util-is":835,"dup":268,"inherits":896}],939:[function(require,module,exports){ arguments[4][269][0].apply(exports,arguments) -},{"./_stream_duplex":921,"./internal/streams/destroy":927,"./internal/streams/stream":928,"_process":911,"core-util-is":821,"dup":269,"inherits":882,"process-nextick-args":910,"safe-buffer":937,"timers":958,"util-deprecate":989}],926:[function(require,module,exports){ +},{"./_stream_duplex":935,"./internal/streams/destroy":941,"./internal/streams/stream":942,"_process":925,"core-util-is":835,"dup":269,"inherits":896,"process-nextick-args":924,"safe-buffer":951,"timers":972,"util-deprecate":1003}],940:[function(require,module,exports){ arguments[4][270][0].apply(exports,arguments) -},{"dup":270,"safe-buffer":937,"util":369}],927:[function(require,module,exports){ +},{"dup":270,"safe-buffer":951,"util":383}],941:[function(require,module,exports){ arguments[4][271][0].apply(exports,arguments) -},{"dup":271,"process-nextick-args":910}],928:[function(require,module,exports){ +},{"dup":271,"process-nextick-args":924}],942:[function(require,module,exports){ arguments[4][272][0].apply(exports,arguments) -},{"dup":272,"events":861}],929:[function(require,module,exports){ -'use strict'; - -module.exports = require('./readable').PassThrough; +},{"dup":272,"events":875}],943:[function(require,module,exports){ +module.exports = require('./readable').PassThrough -},{"./readable":930}],930:[function(require,module,exports){ +},{"./readable":944}],944:[function(require,module,exports){ arguments[4][273][0].apply(exports,arguments) -},{"./lib/_stream_duplex.js":921,"./lib/_stream_passthrough.js":922,"./lib/_stream_readable.js":923,"./lib/_stream_transform.js":924,"./lib/_stream_writable.js":925,"dup":273}],931:[function(require,module,exports){ -'use strict'; - -module.exports = require('./readable').Transform; - -},{"./readable":930}],932:[function(require,module,exports){ -'use strict'; +},{"./lib/_stream_duplex.js":935,"./lib/_stream_passthrough.js":936,"./lib/_stream_readable.js":937,"./lib/_stream_transform.js":938,"./lib/_stream_writable.js":939,"dup":273}],945:[function(require,module,exports){ +module.exports = require('./readable').Transform +},{"./readable":944}],946:[function(require,module,exports){ module.exports = require('./lib/_stream_writable.js'); -},{"./lib/_stream_writable.js":925}],933:[function(require,module,exports){ -"use strict"; - +},{"./lib/_stream_writable.js":939}],947:[function(require,module,exports){ /** * Copyright (c) 2014-present, Facebook, Inc. * @@ -142688,13 +150825,12 @@ module.exports = require('./lib/_stream_writable.js'); // This method of obtaining a reference to the global object needs to be // kept identical to the way it is obtained in runtime.js -var g = function () { - return this; -}() || Function("return this")(); +var g = (function() { return this })() || Function("return this")(); // Use `getOwnPropertyNames` because not all browsers support calling // `hasOwnProperty` on the global `self` object in a worker. See #183. -var hadRuntime = g.regeneratorRuntime && Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; +var hadRuntime = g.regeneratorRuntime && + Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; // Save the old regeneratorRuntime in case it needs to be restored later. var oldRuntime = hadRuntime && g.regeneratorRuntime; @@ -142711,16 +150847,12 @@ if (hadRuntime) { // Remove the global property added by runtime.js. try { delete g.regeneratorRuntime; - } catch (e) { + } catch(e) { g.regeneratorRuntime = undefined; } } -},{"./runtime":934}],934:[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; }; - +},{"./runtime":948}],948:[function(require,module,exports){ /** * Copyright (c) 2014-present, Facebook, Inc. * @@ -142728,7 +150860,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol * LICENSE file in the root directory of this source tree. */ -!function (global) { +!(function(global) { "use strict"; var Op = Object.prototype; @@ -142739,7 +150871,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - var inModule = (typeof module === "undefined" ? "undefined" : _typeof(module)) === "object"; + var inModule = typeof module === "object"; var runtime = global.regeneratorRuntime; if (runtime) { if (inModule) { @@ -142814,36 +150946,42 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var getProto = Object.getPrototypeOf; var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { // This environment has a native %IteratorPrototype%; use it instead // of the polyfill. IteratorPrototype = NativeIteratorPrototype; } - var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; GeneratorFunctionPrototype.constructor = GeneratorFunction; - GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function (method) { - prototype[method] = function (arg) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { return this._invoke(method, arg); }; }); } - runtime.isGeneratorFunction = function (genFun) { + runtime.isGeneratorFunction = function(genFun) { var ctor = typeof genFun === "function" && genFun.constructor; - return ctor ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" : false; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; }; - runtime.mark = function (genFun) { + runtime.mark = function(genFun) { if (Object.setPrototypeOf) { Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); } else { @@ -142860,7 +150998,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test // `hasOwn.call(value, "__await")` to determine if the yielded value is // meant to be awaited. - runtime.awrap = function (arg) { + runtime.awrap = function(arg) { return { __await: arg }; }; @@ -142872,15 +151010,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } else { var result = record.arg; var value = result.value; - if (value && (typeof value === "undefined" ? "undefined" : _typeof(value)) === "object" && hasOwn.call(value, "__await")) { - return Promise.resolve(value.__await).then(function (value) { + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { invoke("next", value, resolve, reject); - }, function (err) { + }, function(err) { invoke("throw", err, resolve, reject); }); } - return Promise.resolve(value).then(function (unwrapped) { + return Promise.resolve(value).then(function(unwrapped) { // When a yielded Promise is resolved, its final value becomes // the .value of the Promise<{value,done}> result for the // current iteration. If the Promise is rejected, however, the @@ -142906,28 +151046,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol function enqueue(method, arg) { function callInvokeWithMethodAndArg() { - return new Promise(function (resolve, reject) { + return new Promise(function(resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); } // Define the unified helper method that is used to implement .next, @@ -142944,13 +151086,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Note that simple async functions are implemented on top of // AsyncIterator objects; they just return a Promise for the value of // the final result produced by the iterator. - runtime.async = function (innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList)); + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); - return runtime.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function (result) { - return result.done ? result.value : iter.next(); - }); + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); }; function makeInvokeMethod(innerFn, self, context) { @@ -142988,6 +151133,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Setting context._sent for legacy support of Babel's // function.sent implementation. context.sent = context._sent = context.arg; + } else if (context.method === "throw") { if (state === GenStateSuspendedStart) { state = GenStateCompleted; @@ -142995,6 +151141,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } context.dispatchException(context.arg); + } else if (context.method === "return") { context.abrupt("return", context.arg); } @@ -143005,7 +151152,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (record.type === "normal") { // If an exception is thrown from innerFn, we leave state === // GenStateExecuting and loop back for another invocation. - state = context.done ? GenStateCompleted : GenStateSuspendedYield; + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; if (record.arg === ContinueSentinel) { continue; @@ -143015,6 +151164,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol value: record.arg, done: context.done }; + } else if (record.type === "throw") { state = GenStateCompleted; // Dispatch the exception by looping back around to the @@ -143053,7 +151203,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } context.method = "throw"; - context.arg = new TypeError("The iterator does not provide a 'throw' method"); + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); } return ContinueSentinel; @@ -143070,7 +151221,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var info = record.arg; - if (!info) { + if (! info) { context.method = "throw"; context.arg = new TypeError("iterator result is not an object"); context.delegate = null; @@ -143095,6 +151246,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol context.method = "next"; context.arg = undefined; } + } else { // Re-yield the result returned by the delegate method. return info; @@ -143117,11 +151269,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // iterator prototype chain incorrectly implement this, causing the Generator // object to not be returned from this call. This ensures that doesn't happen. // See https://github.com/facebook/regenerator/issues/274 for more details. - Gp[iteratorSymbol] = function () { + Gp[iteratorSymbol] = function() { return this; }; - Gp.toString = function () { + Gp.toString = function() { return "[object Generator]"; }; @@ -143156,7 +151308,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol this.reset(true); } - runtime.keys = function (object) { + runtime.keys = function(object) { var keys = []; for (var key in object) { keys.push(key); @@ -143195,8 +151347,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { + var i = -1, next = function next() { while (++i < iterable.length) { if (hasOwn.call(iterable, i)) { next.value = iterable[i]; @@ -143227,7 +151378,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol Context.prototype = { constructor: Context, - reset: function reset(skipTempReset) { + reset: function(skipTempReset) { this.prev = 0; this.next = 0; // Resetting context._sent for legacy support of Babel's @@ -143244,14 +151395,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if (!skipTempReset) { for (var name in this) { // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { this[name] = undefined; } } } }, - stop: function stop() { + stop: function() { this.done = true; var rootEntry = this.tryEntries[0]; @@ -143263,7 +151416,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.rval; }, - dispatchException: function dispatchException(exception) { + dispatchException: function(exception) { if (this.done) { throw exception; } @@ -143281,7 +151434,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol context.arg = undefined; } - return !!caught; + return !! caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { @@ -143305,14 +151458,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } else if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } + } else if (hasCatch) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } + } else if (hasFinally) { if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } + } else { throw new Error("try statement without catch or finally"); } @@ -143320,16 +151476,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }, - abrupt: function abrupt(type, arg) { + abrupt: function(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } - if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { // Ignore the finally entry if control is not jumping to a // location outside the try/catch block. finallyEntry = null; @@ -143348,12 +151510,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.complete(record); }, - complete: function complete(record, afterLoc) { + complete: function(record, afterLoc) { if (record.type === "throw") { throw record.arg; } - if (record.type === "break" || record.type === "continue") { + if (record.type === "break" || + record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { this.rval = this.arg = record.arg; @@ -143366,7 +151529,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return ContinueSentinel; }, - finish: function finish(finallyLoc) { + finish: function(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) { @@ -143377,7 +151540,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }, - "catch": function _catch(tryLoc) { + "catch": function(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { @@ -143395,7 +151558,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol throw new Error("illegal catch attempt"); }, - delegateYield: function delegateYield(iterable, resultName, nextLoc) { + delegateYield: function(iterable, resultName, nextLoc) { this.delegate = { iterator: values(iterable), resultName: resultName, @@ -143411,297 +151574,289 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return ContinueSentinel; } }; -}( -// In sloppy mode, unbound `this` refers to the global object, fallback to -// Function constructor if we're in global strict mode. That is sadly a form -// of indirect eval which violates Content Security Policy. -function () { - return this; -}() || Function("return this")()); +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { return this })() || Function("return this")() +); -},{}],935:[function(require,module,exports){ +},{}],949:[function(require,module,exports){ arguments[4][274][0].apply(exports,arguments) -},{"buffer":401,"dup":274,"hash-base":863,"inherits":882}],936:[function(require,module,exports){ +},{"buffer":415,"dup":274,"hash-base":877,"inherits":896}],950:[function(require,module,exports){ arguments[4][275][0].apply(exports,arguments) -},{"assert":335,"dup":275,"safe-buffer":937}],937:[function(require,module,exports){ -arguments[4][276][0].apply(exports,arguments) -},{"buffer":401,"dup":276}],938:[function(require,module,exports){ +},{"assert":349,"dup":275,"safe-buffer":951}],951:[function(require,module,exports){ +arguments[4][277][0].apply(exports,arguments) +},{"buffer":415,"dup":277}],952:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var crypto = require('crypto'); +var crypto = require('crypto') /* eslint-disable camelcase */ -var MAX_VALUE = 0x7fffffff; +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'); +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'); + 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); + 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 + 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 B = crypto.pbkdf2Sync(key, salt, 1, p * 128 * r, 'sha256') - var tickCallback; + var tickCallback if (progressCallback) { - var totalOps = p * N * 2; - var currentOp = 0; + var totalOps = p * N * 2 + var currentOp = 0 - tickCallback = function tickCallback() { - ++currentOp; + tickCallback = function () { + ++currentOp // send progress notifications once every 1,000 ops if (currentOp % 1000 === 0) { progressCallback({ current: currentOp, total: totalOps, - percent: currentOp / totalOps * 100.0 - }); + percent: (currentOp / totalOps) * 100.0 + }) } - }; + } } for (var i = 0; i < p; i++) { - smix(B, i * 128 * r, r, N, V, XY); + smix(B, i * 128 * r, r, N, V, XY) } - return crypto.pbkdf2Sync(key, B, 1, dkLen, 'sha256'); + 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; + function smix (B, Bi, r, N, V, XY) { + var Xi = 0 + var Yi = 128 * r + var i - B.copy(XY, Xi, Bi, Bi + Yi); + 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); + XY.copy(V, i * Yi, Xi, Xi + Yi) + blockmix_salsa8(XY, Xi, Yi, r) - if (tickCallback) tickCallback(); + 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); + 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(); + if (tickCallback) tickCallback() } - XY.copy(B, Bi, Xi, Xi + Yi); + XY.copy(B, Bi, Xi, Xi + Yi) } - function blockmix_salsa8(BY, Bi, Yi, r) { - var i; + function blockmix_salsa8 (BY, Bi, Yi, r) { + var i - arraycopy(BY, Bi + (2 * r - 1) * 64, _X, 0, 64); + 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); + 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); + 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); + arraycopy(BY, Yi + (i * 2 + 1) * 64, BY, Bi + (i + r) * 64, 64) } } - function R(a, b) { - return a << b | a >>> 32 - b; + function R (a, b) { + return (a << b) | (a >>> (32 - b)) } - function salsa20_8(B) { - var i; + 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[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); + 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; + 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) { + function blockxor (S, Si, D, Di, len) { for (var i = 0; i < len; i++) { - D[Di + i] ^= S[Si + i]; + D[Di + i] ^= S[Si + i] } } } -function arraycopy(src, srcPos, dest, destPos, length) { +function arraycopy (src, srcPos, dest, destPos, length) { if (Buffer.isBuffer(src) && Buffer.isBuffer(dest)) { - src.copy(dest, destPos, srcPos, srcPos + length); + src.copy(dest, destPos, srcPos, srcPos + length) } else { while (length--) { - dest[destPos++] = src[srcPos++]; + dest[destPos++] = src[srcPos++] } } } -module.exports = scrypt; +module.exports = scrypt }).call(this,require("buffer").Buffer) -},{"buffer":401,"crypto":827}],939:[function(require,module,exports){ -arguments[4][277][0].apply(exports,arguments) -},{"./lib":943,"./lib/elliptic":942,"dup":277}],940:[function(require,module,exports){ +},{"buffer":415,"crypto":841}],953:[function(require,module,exports){ +arguments[4][279][0].apply(exports,arguments) +},{"./lib":957,"./lib/elliptic":956,"dup":279}],954:[function(require,module,exports){ (function (Buffer){ -'use strict'; - -var toString = Object.prototype.toString; +'use strict' +var toString = Object.prototype.toString // TypeError exports.isArray = function (value, message) { - if (!Array.isArray(value)) throw TypeError(message); -}; + if (!Array.isArray(value)) throw TypeError(message) +} exports.isBoolean = function (value, message) { - if (toString.call(value) !== '[object Boolean]') throw TypeError(message); -}; + if (toString.call(value) !== '[object Boolean]') throw TypeError(message) +} exports.isBuffer = function (value, message) { - if (!Buffer.isBuffer(value)) throw TypeError(message); -}; + if (!Buffer.isBuffer(value)) throw TypeError(message) +} exports.isFunction = function (value, message) { - if (toString.call(value) !== '[object Function]') throw TypeError(message); -}; + if (toString.call(value) !== '[object Function]') throw TypeError(message) +} exports.isNumber = function (value, message) { - if (toString.call(value) !== '[object Number]') throw TypeError(message); -}; + if (toString.call(value) !== '[object Number]') throw TypeError(message) +} exports.isObject = function (value, message) { - if (toString.call(value) !== '[object Object]') throw TypeError(message); -}; + if (toString.call(value) !== '[object Object]') throw TypeError(message) +} // RangeError exports.isBufferLength = function (buffer, length, message) { - if (buffer.length !== length) throw RangeError(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); -}; + if (buffer.length !== length1 && buffer.length !== length2) throw RangeError(message) +} exports.isLengthGTZero = function (value, message) { - if (value.length === 0) throw RangeError(message); -}; + if (value.length === 0) throw RangeError(message) +} exports.isNumberInInterval = function (number, x, y, message) { - if (number <= x || number >= y) throw RangeError(message); -}; + if (number <= x || number >= y) throw RangeError(message) +} }).call(this,{"isBuffer":require("../../is-buffer/index.js")}) -},{"../../is-buffer/index.js":883}],941:[function(require,module,exports){ -arguments[4][279][0].apply(exports,arguments) -},{"bip66":366,"dup":279,"safe-buffer":937}],942:[function(require,module,exports){ -arguments[4][280][0].apply(exports,arguments) -},{"../messages.json":944,"bn.js":367,"create-hash":823,"dup":280,"elliptic":841,"safe-buffer":937}],943:[function(require,module,exports){ +},{"../../is-buffer/index.js":897}],955:[function(require,module,exports){ arguments[4][281][0].apply(exports,arguments) -},{"./assert":940,"./der":941,"./messages.json":944,"dup":281}],944:[function(require,module,exports){ +},{"bip66":380,"dup":281,"safe-buffer":951}],956:[function(require,module,exports){ arguments[4][282][0].apply(exports,arguments) -},{"dup":282}],945:[function(require,module,exports){ +},{"../messages.json":958,"bn.js":381,"create-hash":837,"dup":282,"elliptic":855,"safe-buffer":951}],957:[function(require,module,exports){ arguments[4][283][0].apply(exports,arguments) -},{"dup":283,"safe-buffer":937}],946:[function(require,module,exports){ +},{"./assert":954,"./der":955,"./messages.json":958,"dup":283}],958:[function(require,module,exports){ arguments[4][284][0].apply(exports,arguments) -},{"./sha":947,"./sha1":948,"./sha224":949,"./sha256":950,"./sha384":951,"./sha512":952,"dup":284}],947:[function(require,module,exports){ +},{"dup":284}],959:[function(require,module,exports){ arguments[4][285][0].apply(exports,arguments) -},{"./hash":945,"dup":285,"inherits":882,"safe-buffer":937}],948:[function(require,module,exports){ +},{"dup":285,"safe-buffer":951}],960:[function(require,module,exports){ arguments[4][286][0].apply(exports,arguments) -},{"./hash":945,"dup":286,"inherits":882,"safe-buffer":937}],949:[function(require,module,exports){ +},{"./sha":961,"./sha1":962,"./sha224":963,"./sha256":964,"./sha384":965,"./sha512":966,"dup":286}],961:[function(require,module,exports){ arguments[4][287][0].apply(exports,arguments) -},{"./hash":945,"./sha256":950,"dup":287,"inherits":882,"safe-buffer":937}],950:[function(require,module,exports){ +},{"./hash":959,"dup":287,"inherits":896,"safe-buffer":951}],962:[function(require,module,exports){ arguments[4][288][0].apply(exports,arguments) -},{"./hash":945,"dup":288,"inherits":882,"safe-buffer":937}],951:[function(require,module,exports){ +},{"./hash":959,"dup":288,"inherits":896,"safe-buffer":951}],963:[function(require,module,exports){ arguments[4][289][0].apply(exports,arguments) -},{"./hash":945,"./sha512":952,"dup":289,"inherits":882,"safe-buffer":937}],952:[function(require,module,exports){ +},{"./hash":959,"./sha256":964,"dup":289,"inherits":896,"safe-buffer":951}],964:[function(require,module,exports){ arguments[4][290][0].apply(exports,arguments) -},{"./hash":945,"dup":290,"inherits":882,"safe-buffer":937}],953:[function(require,module,exports){ -"use strict"; - -var distance = require("leven"); - -module.exports = function (a, b) { - if (!a || !b || !a.length || !b.length) return 0; - if (a === b) return 1; - var d = distance(a.toLowerCase(), b.toLowerCase()); - var longest = Math.max(a.length, b.length); - return (longest - d) / longest; -}; - -},{"leven":893}],954:[function(require,module,exports){ -'use strict'; - +},{"./hash":959,"dup":290,"inherits":896,"safe-buffer":951}],965:[function(require,module,exports){ +arguments[4][291][0].apply(exports,arguments) +},{"./hash":959,"./sha512":966,"dup":291,"inherits":896,"safe-buffer":951}],966:[function(require,module,exports){ +arguments[4][292][0].apply(exports,arguments) +},{"./hash":959,"dup":292,"inherits":896,"safe-buffer":951}],967:[function(require,module,exports){ +var distance = require("leven") + +module.exports = function(a,b) { + if (!a || !b || !a.length || !b.length) return 0 + if (a === b) return 1 + var d = distance(a.toLowerCase(),b.toLowerCase()) + var longest = Math.max(a.length, b.length) + return (longest-d)/longest +} + +},{"leven":907}],968:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -143738,6 +151893,8 @@ 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. @@ -143745,7 +151902,7 @@ function Stream() { EE.call(this); } -Stream.prototype.pipe = function (dest, options) { +Stream.prototype.pipe = function(dest, options) { var source = this; function ondata(chunk) { @@ -143781,6 +151938,7 @@ Stream.prototype.pipe = function (dest, options) { dest.end(); } + function onclose() { if (didOnEnd) return; didOnEnd = true; @@ -143827,29 +151985,15 @@ Stream.prototype.pipe = function (dest, options) { return dest; }; -},{"events":861,"inherits":882,"readable-stream/duplex.js":920,"readable-stream/passthrough.js":929,"readable-stream/readable.js":930,"readable-stream/transform.js":931,"readable-stream/writable.js":932}],955:[function(require,module,exports){ -'use strict'; - +},{"events":875,"inherits":896,"readable-stream/duplex.js":934,"readable-stream/passthrough.js":943,"readable-stream/readable.js":944,"readable-stream/transform.js":945,"readable-stream/writable.js":946}],969:[function(require,module,exports){ // 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) { +(function() { + var ValueError, create, explicitToImplicit, format, implicitToExplicit, lookup, resolve, + __hasProp = {}.hasOwnProperty, + __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + __slice = [].slice; + + ValueError = (function(_super) { __extends(ValueError, _super); function ValueError(message) { @@ -143859,23 +152003,24 @@ Stream.prototype.pipe = function (dest, options) { ValueError.prototype.name = 'ValueError'; return ValueError; - }(Error); + + })(Error); implicitToExplicit = 'cannot switch from implicit to explicit numbering'; explicitToImplicit = 'cannot switch from explicit to implicit numbering'; - create = function create(transformers) { + create = function(transformers) { if (transformers == null) { transformers = {}; } - return function () { + 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) { + return template.replace(/([{}])\1|[{](.*?)(?:!(.+?))?[}]/g, function(match, literal, key, transformer) { var value, _ref, _ref1; if (literal) { return literal; @@ -143902,7 +152047,7 @@ Stream.prototype.pipe = function (dest, options) { }; }; - lookup = function lookup(object, key) { + lookup = function(object, key) { var match; if (!/^(\d+)([.]|$)/.test(key)) { key = '0.' + key; @@ -143914,7 +152059,7 @@ Stream.prototype.pipe = function (dest, options) { return resolve(object, key); }; - resolve = function resolve(object, key) { + resolve = function(object, key) { var value; value = object[key]; if (typeof value === 'function') { @@ -143928,10 +152073,10 @@ Stream.prototype.pipe = function (dest, options) { format.create = create; - format.extend = function (prototype, transformers) { + format.extend = function(prototype, transformers) { var $format; $format = create(transformers); - prototype.format = function () { + prototype.format = function() { return $format.apply(null, [this].concat(__slice.call(arguments))); }; }; @@ -143943,16 +152088,15 @@ Stream.prototype.pipe = function (dest, options) { } else { window.format = format; } -}).call(undefined); -},{}],956:[function(require,module,exports){ -arguments[4][308][0].apply(exports,arguments) -},{"dup":308,"safe-buffer":937}],957:[function(require,module,exports){ -arguments[4][309][0].apply(exports,arguments) -},{"dup":309,"is-hex-prefixed":884}],958:[function(require,module,exports){ -(function (setImmediate,clearImmediate){ -"use strict"; +}).call(this); +},{}],970:[function(require,module,exports){ +arguments[4][310][0].apply(exports,arguments) +},{"dup":310,"safe-buffer":951}],971:[function(require,module,exports){ +arguments[4][311][0].apply(exports,arguments) +},{"dup":311,"is-hex-prefixed":898}],972:[function(require,module,exports){ +(function (setImmediate,clearImmediate){ var nextTick = require('process/browser.js').nextTick; var apply = Function.prototype.apply; var slice = Array.prototype.slice; @@ -143961,49 +152105,49 @@ var nextImmediateId = 0; // DOM APIs, for completeness -exports.setTimeout = function () { +exports.setTimeout = function() { return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout); }; -exports.setInterval = function () { +exports.setInterval = function() { return new Timeout(apply.call(setInterval, window, arguments), clearInterval); }; -exports.clearTimeout = exports.clearInterval = function (timeout) { - timeout.close(); -}; +exports.clearTimeout = +exports.clearInterval = function(timeout) { timeout.close(); }; function Timeout(id, clearFn) { this._id = id; this._clearFn = clearFn; } -Timeout.prototype.unref = Timeout.prototype.ref = function () {}; -Timeout.prototype.close = function () { +Timeout.prototype.unref = Timeout.prototype.ref = function() {}; +Timeout.prototype.close = function() { this._clearFn.call(window, this._id); }; // Does not start the time, just sets up the members needed. -exports.enroll = function (item, msecs) { +exports.enroll = function(item, msecs) { clearTimeout(item._idleTimeoutId); item._idleTimeout = msecs; }; -exports.unenroll = function (item) { +exports.unenroll = function(item) { clearTimeout(item._idleTimeoutId); item._idleTimeout = -1; }; -exports._unrefActive = exports.active = function (item) { +exports._unrefActive = exports.active = function(item) { clearTimeout(item._idleTimeoutId); var msecs = item._idleTimeout; if (msecs >= 0) { item._idleTimeoutId = setTimeout(function onTimeout() { - if (item._onTimeout) item._onTimeout(); + if (item._onTimeout) + item._onTimeout(); }, msecs); } }; // That's not how node.js implements it but the exposed api is the same. -exports.setImmediate = typeof setImmediate === "function" ? setImmediate : function (fn) { +exports.setImmediate = typeof setImmediate === "function" ? setImmediate : function(fn) { var id = nextImmediateId++; var args = arguments.length < 2 ? false : slice.call(arguments, 1); @@ -144026,12 +152170,11 @@ exports.setImmediate = typeof setImmediate === "function" ? setImmediate : funct return id; }; -exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : function (id) { +exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : function(id) { delete immediateIds[id]; }; - }).call(this,require("timers").setImmediate,require("timers").clearImmediate) -},{"process/browser.js":911,"timers":958}],959:[function(require,module,exports){ +},{"process/browser.js":925,"timers":972}],973:[function(require,module,exports){ 'use strict'; // device list events @@ -144061,8 +152204,7 @@ var WAIT_FOR_SELECTION = exports.WAIT_FOR_SELECTION = 'device-wait_for_selection // this string has different prefix than other constants and it's used as device path var UNREADABLE = exports.UNREADABLE = 'unreadable-device'; - -},{}],960:[function(require,module,exports){ +},{}],974:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144080,9 +152222,7 @@ var _inherits2 = require('babel-runtime/helpers/inherits'); var _inherits3 = _interopRequireDefault(_inherits2); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var TrezorError = exports.TrezorError = function (_Error) { (0, _inherits3.default)(TrezorError, _Error); @@ -144139,8 +152279,7 @@ var WEBUSB_ERROR_MESSAGE = exports.WEBUSB_ERROR_MESSAGE = 'NetworkError: Unable var BACKEND_NO_URL = exports.BACKEND_NO_URL = new TrezorError('Backend_init', 'Url not found'); var NO_COIN_INFO = exports.NO_COIN_INFO = invalidParameter('Coin not found.'); - -},{"babel-runtime/helpers/classCallCheck":348,"babel-runtime/helpers/inherits":350,"babel-runtime/helpers/possibleConstructorReturn":351}],961:[function(require,module,exports){ +},{"babel-runtime/helpers/classCallCheck":362,"babel-runtime/helpers/inherits":364,"babel-runtime/helpers/possibleConstructorReturn":365}],975:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144148,8 +152287,7 @@ var BOOTSTRAP = exports.BOOTSTRAP = 'iframe-bootstrap'; var ERROR = exports.ERROR = 'iframe-error'; var CALL = exports.CALL = 'iframe-call'; var RESPONSE = exports.RESPONSE = 'iframe-response'; - -},{}],962:[function(require,module,exports){ +},{}],976:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144158,8 +152296,7 @@ var UI_EVENT = exports.UI_EVENT = 'UI_EVENT'; var DEVICE_EVENT = exports.DEVICE_EVENT = 'DEVICE_EVENT'; var TRANSPORT_EVENT = exports.TRANSPORT_EVENT = 'TRANSPORT_EVENT'; var RESPONSE_EVENT = exports.RESPONSE_EVENT = 'RESPONSE_EVENT'; - -},{}],963:[function(require,module,exports){ +},{}],977:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144174,8 +152311,7 @@ var HANDSHAKE = exports.HANDSHAKE = 'popup-handshake'; var CLOSE = exports.CLOSE = 'popup-close'; var CLOSED = exports.CLOSED = 'popup-closed'; var CANCEL_POPUP_REQUEST = exports.CANCEL_POPUP_REQUEST = 'ui-cancel-popup-request'; - -},{}],964:[function(require,module,exports){ +},{}],978:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144186,8 +152322,7 @@ var STREAM = exports.STREAM = 'transport-stream'; var REQUEST = exports.REQUEST = 'transport-request_device'; var RECONNECT = exports.RECONNECT = 'transport-reconnect'; var START_PENDING = exports.START_PENDING = 'transport-start_pending'; - -},{}],965:[function(require,module,exports){ +},{}],979:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144242,8 +152377,7 @@ var LOGIN_CHALLENGE_REQUEST = exports.LOGIN_CHALLENGE_REQUEST = 'ui-login_challe var LOGIN_CHALLENGE_RESPONSE = exports.LOGIN_CHALLENGE_RESPONSE = 'ui-login_challenge_response'; var BUNDLE_PROGRESS = exports.BUNDLE_PROGRESS = 'ui-bundle_progress'; - -},{}],966:[function(require,module,exports){ +},{}],980:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144253,9 +152387,7 @@ var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* * Initial settings for connect. @@ -144346,8 +152478,7 @@ var parse = exports.parse = function parse(input) { currentSettings = settings; return currentSettings; }; - -},{"babel-runtime/helpers/extends":349}],967:[function(require,module,exports){ +},{"babel-runtime/helpers/extends":363}],981:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -144371,9 +152502,7 @@ var _inlineStyles = require('./inline-styles'); var _inlineStyles2 = _interopRequireDefault(_inlineStyles); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var instance = exports.instance = void 0; var origin = exports.origin = void 0; @@ -144574,14 +152703,12 @@ var dispose = exports.dispose = function dispose() { var clearTimeout = exports.clearTimeout = function clearTimeout() { window.clearTimeout(timeout); }; - -},{"../constants/errors":960,"../constants/ui":965,"../utils/deferred":983,"./inline-styles":968,"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/regenerator":353}],968:[function(require,module,exports){ +},{"../constants/errors":974,"../constants/ui":979,"../utils/deferred":997,"./inline-styles":982,"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/regenerator":367}],982:[function(require,module,exports){ 'use strict'; exports.__esModule = true; var css = '.trezorconnect-container{position:fixed!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;-ms-flex-direction:column!important;flex-direction:column!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important;z-index:10000!important;width:100%!important;height:100%!important;top:0!important;left:0!important;background:rgba(0,0,0,.35)!important;overflow:auto!important;padding:20px!important;margin:0!important}.trezorconnect-container .trezorconnect-window{position:relative!important;display:block!important;width:370px!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;margin:auto!important;border-radius:3px!important;background-color:#fff!important;text-align:center!important;overflow:hidden!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head{text-align:left;padding:12px 24px!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-logo{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close{cursor:pointer!important;height:24px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close svg{fill:#757575;-webkit-transition:fill .3s ease-in-out!important;transition:fill .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close:hover svg{fill:#494949}.trezorconnect-container .trezorconnect-window .trezorconnect-body{padding:24px 24px 32px!important;background:#FBFBFB!important;border-top:1px solid #EBEBEB}.trezorconnect-container .trezorconnect-window .trezorconnect-body h3{color:#505050!important;font-size:16px!important;font-weight:500!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body p{margin:8px 0 24px!important;font-weight:400!important;color:#A9A9A9!important;font-size:12px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button{width:100%!important;padding:12px 24px!important;margin:0!important;border-radius:3px!important;font-size:14px!important;font-weight:300!important;cursor:pointer!important;background:#01B757!important;color:#fff!important;border:0!important;-webkit-transition:background-color .3s ease-in-out!important;transition:background-color .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:hover{background-color:#00AB51!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:active{background-color:#009546!important}/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0IiwiJHN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNBLHlCQUNJLFNBQUEsZ0JBQ0EsUUFBQSxzQkFDQSxRQUFBLHVCQUNBLFFBQUEsc0JBRUEsUUFBQSxlQUNBLG1CQUFBLG1CQUNBLHNCQUFBLGlCQUNBLHVCQUFBLGlCQUNBLG1CQUFBLGlCQUNBLGVBQUEsaUJBRUEsa0JBQUEsaUJBQ0Esb0JBQUEsaUJBQ0EsZUFBQSxpQkNmTSxZQUFhLGlCREFyQixRQUFTLGdCQWtCSCxNQUFBLGVBQ0EsT0FBQSxlQUNBLElBQUEsWUFDQSxLQUFBLFlBQ0EsV0FBQSwwQkFDQSxTQUFBLGVBQ0EsUUFBQSxlQUNBLE9BQUEsWUNkUiwrQ0RYRSxTQUFVLG1CQTZCQSxRQUFBLGdCQUNBLE1BQUEsZ0JBQ0EsWUFBQSxjQUFBLG1CQUFBLFdBQUEsT0FBQSxpQkFBQSxNQUFBLHFCQUNBLE9BQUEsZUNmVixjQUFlLGNEakJmLGlCQWlCRSxlQWtCWSxXQUFBLGlCQ2ZkLFNBQVUsaUJEbUJJLG1FQUNBLFdBQUEsS0NoQmQsUUFBUyxLQUFLLGVEeEJkLFFBQVMsc0JBMENTLFFBQUEsdUJBQ0EsUUFBQSxzQkNmbEIsUUFBUyxlRGlCSyxrQkE1QlosaUJBOEJvQixvQkFBQSxpQkNoQmxCLGVBQWdCLGlCRC9CWixZQWlCTixpQkFzQ1EsdUZBQ0EsaUJBQUEsRUNwQlYsYUFBYyxFRHBDVixTQUFVLEVBMkRBLEtBQUEsRUFFQSx3RkNwQmQsT0FBUSxrQkR6Q1IsT0FBUSxlQWlFTSw0RkFDQSxLQUFBLFFBQ0EsbUJBQUEsS0FBQSxJQUFBLHNCQ3BCZCxXQUFZLEtBQUssSUFBSyxzQkR3QlIsa0dBQ0EsS0FBQSxRQUVBLG1FQUNBLFFBQUEsS0FBQSxLQUFBLGVBQ0EsV0FBQSxrQkFDQSxXQUFBLElBQUEsTUFBQSxRQUVBLHNFQUNBLE1BQUEsa0JBQ0EsVUFBQSxlQ3JCZCxZQUFhLGNEd0JLLHFFQ3JCbEIsT0FBUSxJQUFJLEVBQUksZUR3QkYsWUFBQSxjQUNJLE1BQUEsa0JDdEJsQixVQUFXLGVBRWIsMEVBQ0UsTUFBTyxlQUNQLFFBQVMsS0FBSyxlQUNkLE9BQVEsWUFDUixjQUFlLGNBQ2YsVUFBVyxlQUNYLFlBQWEsY0FDYixPQUFRLGtCQUNSLFdBQVksa0JBQ1osTUFBTyxlQUNQLE9BQVEsWUFDUixtQkFBb0IsaUJBQWlCLElBQUssc0JBQzFDLFdBQVksaUJBQWlCLElBQUssc0JBRXBDLGdGQUNFLGlCQUFrQixrQkFFcEIsaUZBQ0UsaUJBQWtCIn0= */';exports.default = css; - -},{}],969:[function(require,module,exports){ +},{}],983:[function(require,module,exports){ 'use strict'; /** @@ -144660,21 +152787,9 @@ var _types = require('./types'); var $T = _interopRequireWildcard(_types); -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {};if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; - } - }newObj.default = obj;return newObj; - } -} +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var eventEmitter = new _events2.default(); var _log = (0, _debug.init)('[trezor-connect.js]'); @@ -145915,12 +154030,12 @@ exports.DEVICE = DEVICE; exports.UI_EVENT = _constants.UI_EVENT; exports.DEVICE_EVENT = _constants.DEVICE_EVENT; exports.TRANSPORT_EVENT = _constants.TRANSPORT_EVENT; - -},{"./constants":962,"./constants/device":959,"./constants/errors":960,"./constants/iframe":961,"./constants/popup":963,"./constants/transport":964,"./constants/ui":965,"./data/ConnectSettings":966,"./iframe/builder":967,"./message":970,"./popup/PopupManager":971,"./types":975,"./utils/debug":982,"./webusb/button":985,"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/helpers/classCallCheck":348,"babel-runtime/helpers/extends":349,"babel-runtime/regenerator":353,"events":861}],970:[function(require,module,exports){ +},{"./constants":976,"./constants/device":973,"./constants/errors":974,"./constants/iframe":975,"./constants/popup":977,"./constants/transport":978,"./constants/ui":979,"./data/ConnectSettings":980,"./iframe/builder":981,"./message":984,"./popup/PopupManager":985,"./types":989,"./utils/debug":996,"./webusb/button":999,"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/helpers/classCallCheck":362,"babel-runtime/helpers/extends":363,"babel-runtime/regenerator":367,"events":875}],984:[function(require,module,exports){ 'use strict'; exports.__esModule = true; + // parse MessageEvent .data into CoreMessage var parseMessage = exports.parseMessage = function parseMessage(messageData) { var message = { @@ -145939,8 +154054,7 @@ var parseMessage = exports.parseMessage = function parseMessage(messageData) { return message; }; - -},{}],971:[function(require,module,exports){ +},{}],985:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -145983,21 +154097,9 @@ var _networkUtils = require('../utils/networkUtils'); var _deferred = require('../utils/deferred'); -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {};if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; - } - }newObj.default = obj;return newObj; - } -} +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // const POPUP_REQUEST_TIMEOUT: number = 602; var POPUP_REQUEST_TIMEOUT = 999; @@ -146340,8 +154442,7 @@ var PopupManager = function (_EventEmitter) { }(_events2.default); exports.default = PopupManager; - -},{"../constants/errors":960,"../constants/popup":963,"../utils/deferred":983,"../utils/networkUtils":984,"./showPopupRequest":972,"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/helpers/classCallCheck":348,"babel-runtime/helpers/inherits":350,"babel-runtime/helpers/possibleConstructorReturn":351,"babel-runtime/regenerator":353,"events":861}],972:[function(require,module,exports){ +},{"../constants/errors":974,"../constants/popup":977,"../utils/deferred":997,"../utils/networkUtils":998,"./showPopupRequest":986,"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/helpers/classCallCheck":362,"babel-runtime/helpers/inherits":364,"babel-runtime/helpers/possibleConstructorReturn":365,"babel-runtime/regenerator":367,"events":875}],986:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -146379,14 +154480,11 @@ var showPopupRequest = exports.showPopupRequest = function showPopupRequest(open } }; }; - -},{}],973:[function(require,module,exports){ -'use strict'; - -},{}],974:[function(require,module,exports){ +},{}],987:[function(require,module,exports){ 'use strict'; - -},{}],975:[function(require,module,exports){ +},{}],988:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],989:[function(require,module,exports){ 'use strict'; /* @@ -146455,37 +154553,20 @@ var _lisk = require('./lisk'); var LISK = _interopRequireWildcard(_lisk); -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {};if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; - } - }newObj.default = obj;return newObj; - } -} - -},{"../constants":962,"../constants/device":959,"../constants/popup":963,"../constants/transport":964,"../constants/ui":965,"./cardano":973,"./ethereum":974,"./lisk":976,"./nem":977,"./params":978,"./response":979,"./ripple":980,"./stellar":981}],976:[function(require,module,exports){ -'use strict'; - -},{}],977:[function(require,module,exports){ -'use strict'; - -},{}],978:[function(require,module,exports){ -'use strict'; - -},{}],979:[function(require,module,exports){ -'use strict'; - -},{}],980:[function(require,module,exports){ -'use strict'; - -},{}],981:[function(require,module,exports){ -'use strict'; - -},{}],982:[function(require,module,exports){ +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } +},{"../constants":976,"../constants/device":973,"../constants/popup":977,"../constants/transport":978,"../constants/ui":979,"./cardano":987,"./ethereum":988,"./lisk":990,"./nem":991,"./params":992,"./response":993,"./ripple":994,"./stellar":995}],990:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],991:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],992:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],993:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],994:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],995:[function(require,module,exports){ +arguments[4][987][0].apply(exports,arguments) +},{"dup":987}],996:[function(require,module,exports){ (function (global){ 'use strict'; @@ -146501,9 +154582,7 @@ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var colors = { // green @@ -146596,6 +154675,7 @@ var Log = function () { exports.default = Log; + var _logs = {}; var init = exports.init = function init(prefix, enabled) { @@ -146687,9 +154767,8 @@ var popupConsole = exports.popupConsole = function popupConsole(tag, postMessage c[_level] = inject(orig[_level], _level); } }; - }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"babel-runtime/helpers/classCallCheck":348}],983:[function(require,module,exports){ +},{"babel-runtime/helpers/classCallCheck":362}],997:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -146707,9 +154786,7 @@ exports.createAsync = createAsync; exports.resolveTimeoutPromise = resolveTimeoutPromise; exports.rejectTimeoutPromise = rejectTimeoutPromise; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function create(arg, device) { var _this = this; @@ -146830,8 +154907,7 @@ function rejectTimeoutPromise(delay, error) { }, delay); }); } - -},{"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/regenerator":353}],984:[function(require,module,exports){ +},{"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/regenerator":367}],998:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -146847,9 +154923,7 @@ var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); require('whatwg-fetch'); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var httpRequest = exports.httpRequest = function () { var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(url) { @@ -146926,8 +155000,7 @@ var getOrigin = exports.getOrigin = function getOrigin(url) { var parts = url.match(/^.+\:\/\/[^\/]+/); return Array.isArray(parts) && parts.length > 0 ? parts[0] : 'unknown'; }; - -},{"babel-runtime/helpers/asyncToGenerator":347,"babel-runtime/regenerator":353,"whatwg-fetch":1004}],985:[function(require,module,exports){ +},{"babel-runtime/helpers/asyncToGenerator":361,"babel-runtime/regenerator":367,"whatwg-fetch":1018}],999:[function(require,module,exports){ 'use strict'; exports.__esModule = true; @@ -146966,43 +155039,29 @@ var render = function render(className, url, origin) { }; exports.default = render; - -},{}],986:[function(require,module,exports){ -"use strict"; - -module.exports = { 97: { "value": "0061", "name": "LATIN SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0041", "lowercase_mapping": "", "titlecase_mapping": "0041", "symbol": "\x61" }, 98: { "value": "0062", "name": "LATIN SMALL LETTER B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0042", "lowercase_mapping": "", "titlecase_mapping": "0042", "symbol": "\x62" }, 99: { "value": "0063", "name": "LATIN SMALL LETTER C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0043", "lowercase_mapping": "", "titlecase_mapping": "0043", "symbol": "\x63" }, 100: { "value": "0064", "name": "LATIN SMALL LETTER D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0044", "lowercase_mapping": "", "titlecase_mapping": "0044", "symbol": "\x64" }, 101: { "value": "0065", "name": "LATIN SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0045", "lowercase_mapping": "", "titlecase_mapping": "0045", "symbol": "\x65" }, 102: { "value": "0066", "name": "LATIN SMALL LETTER F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0046", "lowercase_mapping": "", "titlecase_mapping": "0046", "symbol": "\x66" }, 103: { "value": "0067", "name": "LATIN SMALL LETTER G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0047", "lowercase_mapping": "", "titlecase_mapping": "0047", "symbol": "\x67" }, 104: { "value": "0068", "name": "LATIN SMALL LETTER H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0048", "lowercase_mapping": "", "titlecase_mapping": "0048", "symbol": "\x68" }, 105: { "value": "0069", "name": "LATIN SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0049", "lowercase_mapping": "", "titlecase_mapping": "0049", "symbol": "\x69" }, 106: { "value": "006A", "name": "LATIN SMALL LETTER J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004A", "lowercase_mapping": "", "titlecase_mapping": "004A", "symbol": "\x6A" }, 107: { "value": "006B", "name": "LATIN SMALL LETTER K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004B", "lowercase_mapping": "", "titlecase_mapping": "004B", "symbol": "\x6B" }, 108: { "value": "006C", "name": "LATIN SMALL LETTER L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004C", "lowercase_mapping": "", "titlecase_mapping": "004C", "symbol": "\x6C" }, 109: { "value": "006D", "name": "LATIN SMALL LETTER M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004D", "lowercase_mapping": "", "titlecase_mapping": "004D", "symbol": "\x6D" }, 110: { "value": "006E", "name": "LATIN SMALL LETTER N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004E", "lowercase_mapping": "", "titlecase_mapping": "004E", "symbol": "\x6E" }, 111: { "value": "006F", "name": "LATIN SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "004F", "lowercase_mapping": "", "titlecase_mapping": "004F", "symbol": "\x6F" }, 112: { "value": "0070", "name": "LATIN SMALL LETTER P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0050", "lowercase_mapping": "", "titlecase_mapping": "0050", "symbol": "\x70" }, 113: { "value": "0071", "name": "LATIN SMALL LETTER Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0051", "lowercase_mapping": "", "titlecase_mapping": "0051", "symbol": "\x71" }, 114: { "value": "0072", "name": "LATIN SMALL LETTER R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0052", "lowercase_mapping": "", "titlecase_mapping": "0052", "symbol": "\x72" }, 115: { "value": "0073", "name": "LATIN SMALL LETTER S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0053", "lowercase_mapping": "", "titlecase_mapping": "0053", "symbol": "\x73" }, 116: { "value": "0074", "name": "LATIN SMALL LETTER T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0054", "lowercase_mapping": "", "titlecase_mapping": "0054", "symbol": "\x74" }, 117: { "value": "0075", "name": "LATIN SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0055", "lowercase_mapping": "", "titlecase_mapping": "0055", "symbol": "\x75" }, 118: { "value": "0076", "name": "LATIN SMALL LETTER V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0056", "lowercase_mapping": "", "titlecase_mapping": "0056", "symbol": "\x76" }, 119: { "value": "0077", "name": "LATIN SMALL LETTER W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0057", "lowercase_mapping": "", "titlecase_mapping": "0057", "symbol": "\x77" }, 120: { "value": "0078", "name": "LATIN SMALL LETTER X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0058", "lowercase_mapping": "", "titlecase_mapping": "0058", "symbol": "\x78" }, 121: { "value": "0079", "name": "LATIN SMALL LETTER Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0059", "lowercase_mapping": "", "titlecase_mapping": "0059", "symbol": "\x79" }, 122: { "value": "007A", "name": "LATIN SMALL LETTER Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "005A", "lowercase_mapping": "", "titlecase_mapping": "005A", "symbol": "\x7A" }, 181: { "value": "00B5", "name": "MICRO SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039C", "lowercase_mapping": "", "titlecase_mapping": "039C", "symbol": "\xB5" }, 223: { "value": "00DF", "name": "LATIN SMALL LETTER SHARP S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\xDF" }, 224: { "value": "00E0", "name": "LATIN SMALL LETTER A WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A GRAVE", "comment": "", "uppercase_mapping": "00C0", "lowercase_mapping": "", "titlecase_mapping": "00C0", "symbol": "\xE0" }, 225: { "value": "00E1", "name": "LATIN SMALL LETTER A WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A ACUTE", "comment": "", "uppercase_mapping": "00C1", "lowercase_mapping": "", "titlecase_mapping": "00C1", "symbol": "\xE1" }, 226: { "value": "00E2", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A CIRCUMFLEX", "comment": "", "uppercase_mapping": "00C2", "lowercase_mapping": "", "titlecase_mapping": "00C2", "symbol": "\xE2" }, 227: { "value": "00E3", "name": "LATIN SMALL LETTER A WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A TILDE", "comment": "", "uppercase_mapping": "00C3", "lowercase_mapping": "", "titlecase_mapping": "00C3", "symbol": "\xE3" }, 228: { "value": "00E4", "name": "LATIN SMALL LETTER A WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A DIAERESIS", "comment": "", "uppercase_mapping": "00C4", "lowercase_mapping": "", "titlecase_mapping": "00C4", "symbol": "\xE4" }, 229: { "value": "00E5", "name": "LATIN SMALL LETTER A WITH RING ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 030A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A RING", "comment": "", "uppercase_mapping": "00C5", "lowercase_mapping": "", "titlecase_mapping": "00C5", "symbol": "\xE5" }, 230: { "value": "00E6", "name": "LATIN SMALL LETTER AE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A E", "comment": "", "uppercase_mapping": "00C6", "lowercase_mapping": "", "titlecase_mapping": "00C6", "symbol": "\xE6" }, 231: { "value": "00E7", "name": "LATIN SMALL LETTER C WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C CEDILLA", "comment": "", "uppercase_mapping": "00C7", "lowercase_mapping": "", "titlecase_mapping": "00C7", "symbol": "\xE7" }, 232: { "value": "00E8", "name": "LATIN SMALL LETTER E WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E GRAVE", "comment": "", "uppercase_mapping": "00C8", "lowercase_mapping": "", "titlecase_mapping": "00C8", "symbol": "\xE8" }, 233: { "value": "00E9", "name": "LATIN SMALL LETTER E WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E ACUTE", "comment": "", "uppercase_mapping": "00C9", "lowercase_mapping": "", "titlecase_mapping": "00C9", "symbol": "\xE9" }, 234: { "value": "00EA", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E CIRCUMFLEX", "comment": "", "uppercase_mapping": "00CA", "lowercase_mapping": "", "titlecase_mapping": "00CA", "symbol": "\xEA" }, 235: { "value": "00EB", "name": "LATIN SMALL LETTER E WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E DIAERESIS", "comment": "", "uppercase_mapping": "00CB", "lowercase_mapping": "", "titlecase_mapping": "00CB", "symbol": "\xEB" }, 236: { "value": "00EC", "name": "LATIN SMALL LETTER I WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I GRAVE", "comment": "", "uppercase_mapping": "00CC", "lowercase_mapping": "", "titlecase_mapping": "00CC", "symbol": "\xEC" }, 237: { "value": "00ED", "name": "LATIN SMALL LETTER I WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I ACUTE", "comment": "", "uppercase_mapping": "00CD", "lowercase_mapping": "", "titlecase_mapping": "00CD", "symbol": "\xED" }, 238: { "value": "00EE", "name": "LATIN SMALL LETTER I WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I CIRCUMFLEX", "comment": "", "uppercase_mapping": "00CE", "lowercase_mapping": "", "titlecase_mapping": "00CE", "symbol": "\xEE" }, 239: { "value": "00EF", "name": "LATIN SMALL LETTER I WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I DIAERESIS", "comment": "", "uppercase_mapping": "00CF", "lowercase_mapping": "", "titlecase_mapping": "00CF", "symbol": "\xEF" }, 240: { "value": "00F0", "name": "LATIN SMALL LETTER ETH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "00D0", "lowercase_mapping": "", "titlecase_mapping": "00D0", "symbol": "\xF0" }, 241: { "value": "00F1", "name": "LATIN SMALL LETTER N WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N TILDE", "comment": "", "uppercase_mapping": "00D1", "lowercase_mapping": "", "titlecase_mapping": "00D1", "symbol": "\xF1" }, 242: { "value": "00F2", "name": "LATIN SMALL LETTER O WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O GRAVE", "comment": "", "uppercase_mapping": "00D2", "lowercase_mapping": "", "titlecase_mapping": "00D2", "symbol": "\xF2" }, 243: { "value": "00F3", "name": "LATIN SMALL LETTER O WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O ACUTE", "comment": "", "uppercase_mapping": "00D3", "lowercase_mapping": "", "titlecase_mapping": "00D3", "symbol": "\xF3" }, 244: { "value": "00F4", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O CIRCUMFLEX", "comment": "", "uppercase_mapping": "00D4", "lowercase_mapping": "", "titlecase_mapping": "00D4", "symbol": "\xF4" }, 245: { "value": "00F5", "name": "LATIN SMALL LETTER O WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O TILDE", "comment": "", "uppercase_mapping": "00D5", "lowercase_mapping": "", "titlecase_mapping": "00D5", "symbol": "\xF5" }, 246: { "value": "00F6", "name": "LATIN SMALL LETTER O WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O DIAERESIS", "comment": "", "uppercase_mapping": "00D6", "lowercase_mapping": "", "titlecase_mapping": "00D6", "symbol": "\xF6" }, 248: { "value": "00F8", "name": "LATIN SMALL LETTER O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O SLASH", "comment": "", "uppercase_mapping": "00D8", "lowercase_mapping": "", "titlecase_mapping": "00D8", "symbol": "\xF8" }, 249: { "value": "00F9", "name": "LATIN SMALL LETTER U WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U GRAVE", "comment": "", "uppercase_mapping": "00D9", "lowercase_mapping": "", "titlecase_mapping": "00D9", "symbol": "\xF9" }, 250: { "value": "00FA", "name": "LATIN SMALL LETTER U WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U ACUTE", "comment": "", "uppercase_mapping": "00DA", "lowercase_mapping": "", "titlecase_mapping": "00DA", "symbol": "\xFA" }, 251: { "value": "00FB", "name": "LATIN SMALL LETTER U WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U CIRCUMFLEX", "comment": "", "uppercase_mapping": "00DB", "lowercase_mapping": "", "titlecase_mapping": "00DB", "symbol": "\xFB" }, 252: { "value": "00FC", "name": "LATIN SMALL LETTER U WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS", "comment": "", "uppercase_mapping": "00DC", "lowercase_mapping": "", "titlecase_mapping": "00DC", "symbol": "\xFC" }, 253: { "value": "00FD", "name": "LATIN SMALL LETTER Y WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Y ACUTE", "comment": "", "uppercase_mapping": "00DD", "lowercase_mapping": "", "titlecase_mapping": "00DD", "symbol": "\xFD" }, 254: { "value": "00FE", "name": "LATIN SMALL LETTER THORN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "00DE", "lowercase_mapping": "", "titlecase_mapping": "00DE", "symbol": "\xFE" }, 255: { "value": "00FF", "name": "LATIN SMALL LETTER Y WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Y DIAERESIS", "comment": "", "uppercase_mapping": "0178", "lowercase_mapping": "", "titlecase_mapping": "0178", "symbol": "\xFF" }, 257: { "value": "0101", "name": "LATIN SMALL LETTER A WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A MACRON", "comment": "", "uppercase_mapping": "0100", "lowercase_mapping": "", "titlecase_mapping": "0100", "symbol": "\u0101" }, 259: { "value": "0103", "name": "LATIN SMALL LETTER A WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A BREVE", "comment": "", "uppercase_mapping": "0102", "lowercase_mapping": "", "titlecase_mapping": "0102", "symbol": "\u0103" }, 261: { "value": "0105", "name": "LATIN SMALL LETTER A WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A OGONEK", "comment": "", "uppercase_mapping": "0104", "lowercase_mapping": "", "titlecase_mapping": "0104", "symbol": "\u0105" }, 263: { "value": "0107", "name": "LATIN SMALL LETTER C WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C ACUTE", "comment": "", "uppercase_mapping": "0106", "lowercase_mapping": "", "titlecase_mapping": "0106", "symbol": "\u0107" }, 265: { "value": "0109", "name": "LATIN SMALL LETTER C WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C CIRCUMFLEX", "comment": "", "uppercase_mapping": "0108", "lowercase_mapping": "", "titlecase_mapping": "0108", "symbol": "\u0109" }, 267: { "value": "010B", "name": "LATIN SMALL LETTER C WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C DOT", "comment": "", "uppercase_mapping": "010A", "lowercase_mapping": "", "titlecase_mapping": "010A", "symbol": "\u010B" }, 269: { "value": "010D", "name": "LATIN SMALL LETTER C WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0063 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C HACEK", "comment": "", "uppercase_mapping": "010C", "lowercase_mapping": "", "titlecase_mapping": "010C", "symbol": "\u010D" }, 271: { "value": "010F", "name": "LATIN SMALL LETTER D WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D HACEK", "comment": "", "uppercase_mapping": "010E", "lowercase_mapping": "", "titlecase_mapping": "010E", "symbol": "\u010F" }, 273: { "value": "0111", "name": "LATIN SMALL LETTER D WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D BAR", "comment": "", "uppercase_mapping": "0110", "lowercase_mapping": "", "titlecase_mapping": "0110", "symbol": "\u0111" }, 275: { "value": "0113", "name": "LATIN SMALL LETTER E WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E MACRON", "comment": "", "uppercase_mapping": "0112", "lowercase_mapping": "", "titlecase_mapping": "0112", "symbol": "\u0113" }, 277: { "value": "0115", "name": "LATIN SMALL LETTER E WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E BREVE", "comment": "", "uppercase_mapping": "0114", "lowercase_mapping": "", "titlecase_mapping": "0114", "symbol": "\u0115" }, 279: { "value": "0117", "name": "LATIN SMALL LETTER E WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E DOT", "comment": "", "uppercase_mapping": "0116", "lowercase_mapping": "", "titlecase_mapping": "0116", "symbol": "\u0117" }, 281: { "value": "0119", "name": "LATIN SMALL LETTER E WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E OGONEK", "comment": "", "uppercase_mapping": "0118", "lowercase_mapping": "", "titlecase_mapping": "0118", "symbol": "\u0119" }, 283: { "value": "011B", "name": "LATIN SMALL LETTER E WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER E HACEK", "comment": "", "uppercase_mapping": "011A", "lowercase_mapping": "", "titlecase_mapping": "011A", "symbol": "\u011B" }, 285: { "value": "011D", "name": "LATIN SMALL LETTER G WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G CIRCUMFLEX", "comment": "", "uppercase_mapping": "011C", "lowercase_mapping": "", "titlecase_mapping": "011C", "symbol": "\u011D" }, 287: { "value": "011F", "name": "LATIN SMALL LETTER G WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G BREVE", "comment": "", "uppercase_mapping": "011E", "lowercase_mapping": "", "titlecase_mapping": "011E", "symbol": "\u011F" }, 289: { "value": "0121", "name": "LATIN SMALL LETTER G WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G DOT", "comment": "", "uppercase_mapping": "0120", "lowercase_mapping": "", "titlecase_mapping": "0120", "symbol": "\u0121" }, 291: { "value": "0123", "name": "LATIN SMALL LETTER G WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G CEDILLA", "comment": "", "uppercase_mapping": "0122", "lowercase_mapping": "", "titlecase_mapping": "0122", "symbol": "\u0123" }, 293: { "value": "0125", "name": "LATIN SMALL LETTER H WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER H CIRCUMFLEX", "comment": "", "uppercase_mapping": "0124", "lowercase_mapping": "", "titlecase_mapping": "0124", "symbol": "\u0125" }, 295: { "value": "0127", "name": "LATIN SMALL LETTER H WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER H BAR", "comment": "", "uppercase_mapping": "0126", "lowercase_mapping": "", "titlecase_mapping": "0126", "symbol": "\u0127" }, 297: { "value": "0129", "name": "LATIN SMALL LETTER I WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I TILDE", "comment": "", "uppercase_mapping": "0128", "lowercase_mapping": "", "titlecase_mapping": "0128", "symbol": "\u0129" }, 299: { "value": "012B", "name": "LATIN SMALL LETTER I WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I MACRON", "comment": "", "uppercase_mapping": "012A", "lowercase_mapping": "", "titlecase_mapping": "012A", "symbol": "\u012B" }, 301: { "value": "012D", "name": "LATIN SMALL LETTER I WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I BREVE", "comment": "", "uppercase_mapping": "012C", "lowercase_mapping": "", "titlecase_mapping": "012C", "symbol": "\u012D" }, 303: { "value": "012F", "name": "LATIN SMALL LETTER I WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I OGONEK", "comment": "", "uppercase_mapping": "012E", "lowercase_mapping": "", "titlecase_mapping": "012E", "symbol": "\u012F" }, 305: { "value": "0131", "name": "LATIN SMALL LETTER DOTLESS I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0049", "lowercase_mapping": "", "titlecase_mapping": "0049", "symbol": "\u0131" }, 307: { "value": "0133", "name": "LATIN SMALL LIGATURE IJ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I J", "comment": "", "uppercase_mapping": "0132", "lowercase_mapping": "", "titlecase_mapping": "0132", "symbol": "\u0133" }, 309: { "value": "0135", "name": "LATIN SMALL LETTER J WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006A 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER J CIRCUMFLEX", "comment": "", "uppercase_mapping": "0134", "lowercase_mapping": "", "titlecase_mapping": "0134", "symbol": "\u0135" }, 311: { "value": "0137", "name": "LATIN SMALL LETTER K WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER K CEDILLA", "comment": "", "uppercase_mapping": "0136", "lowercase_mapping": "", "titlecase_mapping": "0136", "symbol": "\u0137" }, 312: { "value": "0138", "name": "LATIN SMALL LETTER KRA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0138" }, 314: { "value": "013A", "name": "LATIN SMALL LETTER L WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L ACUTE", "comment": "", "uppercase_mapping": "0139", "lowercase_mapping": "", "titlecase_mapping": "0139", "symbol": "\u013A" }, 316: { "value": "013C", "name": "LATIN SMALL LETTER L WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L CEDILLA", "comment": "", "uppercase_mapping": "013B", "lowercase_mapping": "", "titlecase_mapping": "013B", "symbol": "\u013C" }, 318: { "value": "013E", "name": "LATIN SMALL LETTER L WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L HACEK", "comment": "", "uppercase_mapping": "013D", "lowercase_mapping": "", "titlecase_mapping": "013D", "symbol": "\u013E" }, 320: { "value": "0140", "name": "LATIN SMALL LETTER L WITH MIDDLE DOT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C 00B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "013F", "lowercase_mapping": "", "titlecase_mapping": "013F", "symbol": "\u0140" }, 322: { "value": "0142", "name": "LATIN SMALL LETTER L WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L SLASH", "comment": "", "uppercase_mapping": "0141", "lowercase_mapping": "", "titlecase_mapping": "0141", "symbol": "\u0142" }, 324: { "value": "0144", "name": "LATIN SMALL LETTER N WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N ACUTE", "comment": "", "uppercase_mapping": "0143", "lowercase_mapping": "", "titlecase_mapping": "0143", "symbol": "\u0144" }, 326: { "value": "0146", "name": "LATIN SMALL LETTER N WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N CEDILLA", "comment": "", "uppercase_mapping": "0145", "lowercase_mapping": "", "titlecase_mapping": "0145", "symbol": "\u0146" }, 328: { "value": "0148", "name": "LATIN SMALL LETTER N WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N HACEK", "comment": "", "uppercase_mapping": "0147", "lowercase_mapping": "", "titlecase_mapping": "0147", "symbol": "\u0148" }, 329: { "value": "0149", "name": "LATIN SMALL LETTER N PRECEDED BY APOSTROPHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 02BC 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER APOSTROPHE N", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0149" }, 331: { "value": "014B", "name": "LATIN SMALL LETTER ENG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "014A", "lowercase_mapping": "", "titlecase_mapping": "014A", "symbol": "\u014B" }, 333: { "value": "014D", "name": "LATIN SMALL LETTER O WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O MACRON", "comment": "", "uppercase_mapping": "014C", "lowercase_mapping": "", "titlecase_mapping": "014C", "symbol": "\u014D" }, 335: { "value": "014F", "name": "LATIN SMALL LETTER O WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O BREVE", "comment": "", "uppercase_mapping": "014E", "lowercase_mapping": "", "titlecase_mapping": "014E", "symbol": "\u014F" }, 337: { "value": "0151", "name": "LATIN SMALL LETTER O WITH DOUBLE ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 030B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O DOUBLE ACUTE", "comment": "", "uppercase_mapping": "0150", "lowercase_mapping": "", "titlecase_mapping": "0150", "symbol": "\u0151" }, 339: { "value": "0153", "name": "LATIN SMALL LIGATURE OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O E", "comment": "", "uppercase_mapping": "0152", "lowercase_mapping": "", "titlecase_mapping": "0152", "symbol": "\u0153" }, 341: { "value": "0155", "name": "LATIN SMALL LETTER R WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER R ACUTE", "comment": "", "uppercase_mapping": "0154", "lowercase_mapping": "", "titlecase_mapping": "0154", "symbol": "\u0155" }, 343: { "value": "0157", "name": "LATIN SMALL LETTER R WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER R CEDILLA", "comment": "", "uppercase_mapping": "0156", "lowercase_mapping": "", "titlecase_mapping": "0156", "symbol": "\u0157" }, 345: { "value": "0159", "name": "LATIN SMALL LETTER R WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER R HACEK", "comment": "", "uppercase_mapping": "0158", "lowercase_mapping": "", "titlecase_mapping": "0158", "symbol": "\u0159" }, 347: { "value": "015B", "name": "LATIN SMALL LETTER S WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S ACUTE", "comment": "", "uppercase_mapping": "015A", "lowercase_mapping": "", "titlecase_mapping": "015A", "symbol": "\u015B" }, 349: { "value": "015D", "name": "LATIN SMALL LETTER S WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S CIRCUMFLEX", "comment": "", "uppercase_mapping": "015C", "lowercase_mapping": "", "titlecase_mapping": "015C", "symbol": "\u015D" }, 351: { "value": "015F", "name": "LATIN SMALL LETTER S WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S CEDILLA", "comment": "", "uppercase_mapping": "015E", "lowercase_mapping": "", "titlecase_mapping": "015E", "symbol": "\u015F" }, 353: { "value": "0161", "name": "LATIN SMALL LETTER S WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S HACEK", "comment": "", "uppercase_mapping": "0160", "lowercase_mapping": "", "titlecase_mapping": "0160", "symbol": "\u0161" }, 355: { "value": "0163", "name": "LATIN SMALL LETTER T WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T CEDILLA", "comment": "", "uppercase_mapping": "0162", "lowercase_mapping": "", "titlecase_mapping": "0162", "symbol": "\u0163" }, 357: { "value": "0165", "name": "LATIN SMALL LETTER T WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T HACEK", "comment": "", "uppercase_mapping": "0164", "lowercase_mapping": "", "titlecase_mapping": "0164", "symbol": "\u0165" }, 359: { "value": "0167", "name": "LATIN SMALL LETTER T WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T BAR", "comment": "", "uppercase_mapping": "0166", "lowercase_mapping": "", "titlecase_mapping": "0166", "symbol": "\u0167" }, 361: { "value": "0169", "name": "LATIN SMALL LETTER U WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U TILDE", "comment": "", "uppercase_mapping": "0168", "lowercase_mapping": "", "titlecase_mapping": "0168", "symbol": "\u0169" }, 363: { "value": "016B", "name": "LATIN SMALL LETTER U WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U MACRON", "comment": "", "uppercase_mapping": "016A", "lowercase_mapping": "", "titlecase_mapping": "016A", "symbol": "\u016B" }, 365: { "value": "016D", "name": "LATIN SMALL LETTER U WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U BREVE", "comment": "", "uppercase_mapping": "016C", "lowercase_mapping": "", "titlecase_mapping": "016C", "symbol": "\u016D" }, 367: { "value": "016F", "name": "LATIN SMALL LETTER U WITH RING ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 030A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U RING", "comment": "", "uppercase_mapping": "016E", "lowercase_mapping": "", "titlecase_mapping": "016E", "symbol": "\u016F" }, 369: { "value": "0171", "name": "LATIN SMALL LETTER U WITH DOUBLE ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 030B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DOUBLE ACUTE", "comment": "", "uppercase_mapping": "0170", "lowercase_mapping": "", "titlecase_mapping": "0170", "symbol": "\u0171" }, 371: { "value": "0173", "name": "LATIN SMALL LETTER U WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U OGONEK", "comment": "", "uppercase_mapping": "0172", "lowercase_mapping": "", "titlecase_mapping": "0172", "symbol": "\u0173" }, 373: { "value": "0175", "name": "LATIN SMALL LETTER W WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER W CIRCUMFLEX", "comment": "", "uppercase_mapping": "0174", "lowercase_mapping": "", "titlecase_mapping": "0174", "symbol": "\u0175" }, 375: { "value": "0177", "name": "LATIN SMALL LETTER Y WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Y CIRCUMFLEX", "comment": "", "uppercase_mapping": "0176", "lowercase_mapping": "", "titlecase_mapping": "0176", "symbol": "\u0177" }, 378: { "value": "017A", "name": "LATIN SMALL LETTER Z WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z ACUTE", "comment": "", "uppercase_mapping": "0179", "lowercase_mapping": "", "titlecase_mapping": "0179", "symbol": "\u017A" }, 380: { "value": "017C", "name": "LATIN SMALL LETTER Z WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z DOT", "comment": "", "uppercase_mapping": "017B", "lowercase_mapping": "", "titlecase_mapping": "017B", "symbol": "\u017C" }, 382: { "value": "017E", "name": "LATIN SMALL LETTER Z WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z HACEK", "comment": "", "uppercase_mapping": "017D", "lowercase_mapping": "", "titlecase_mapping": "017D", "symbol": "\u017E" }, 383: { "value": "017F", "name": "LATIN SMALL LETTER LONG S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0053", "lowercase_mapping": "", "titlecase_mapping": "0053", "symbol": "\u017F" }, 384: { "value": "0180", "name": "LATIN SMALL LETTER B WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER B BAR", "comment": "", "uppercase_mapping": "0243", "lowercase_mapping": "", "titlecase_mapping": "0243", "symbol": "\u0180" }, 387: { "value": "0183", "name": "LATIN SMALL LETTER B WITH TOPBAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER B TOPBAR", "comment": "", "uppercase_mapping": "0182", "lowercase_mapping": "", "titlecase_mapping": "0182", "symbol": "\u0183" }, 389: { "value": "0185", "name": "LATIN SMALL LETTER TONE SIX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0184", "lowercase_mapping": "", "titlecase_mapping": "0184", "symbol": "\u0185" }, 392: { "value": "0188", "name": "LATIN SMALL LETTER C WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C HOOK", "comment": "", "uppercase_mapping": "0187", "lowercase_mapping": "", "titlecase_mapping": "0187", "symbol": "\u0188" }, 396: { "value": "018C", "name": "LATIN SMALL LETTER D WITH TOPBAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D TOPBAR", "comment": "", "uppercase_mapping": "018B", "lowercase_mapping": "", "titlecase_mapping": "018B", "symbol": "\u018C" }, 397: { "value": "018D", "name": "LATIN SMALL LETTER TURNED DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u018D" }, 402: { "value": "0192", "name": "LATIN SMALL LETTER F WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER SCRIPT F", "comment": "", "uppercase_mapping": "0191", "lowercase_mapping": "", "titlecase_mapping": "0191", "symbol": "\u0192" }, 405: { "value": "0195", "name": "LATIN SMALL LETTER HV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER H V", "comment": "", "uppercase_mapping": "01F6", "lowercase_mapping": "", "titlecase_mapping": "01F6", "symbol": "\u0195" }, 409: { "value": "0199", "name": "LATIN SMALL LETTER K WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER K HOOK", "comment": "", "uppercase_mapping": "0198", "lowercase_mapping": "", "titlecase_mapping": "0198", "symbol": "\u0199" }, 410: { "value": "019A", "name": "LATIN SMALL LETTER L WITH BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER BARRED L", "comment": "", "uppercase_mapping": "023D", "lowercase_mapping": "", "titlecase_mapping": "023D", "symbol": "\u019A" }, 411: { "value": "019B", "name": "LATIN SMALL LETTER LAMBDA WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER BARRED LAMBDA", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u019B" }, 414: { "value": "019E", "name": "LATIN SMALL LETTER N WITH LONG RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0220", "lowercase_mapping": "", "titlecase_mapping": "0220", "symbol": "\u019E" }, 417: { "value": "01A1", "name": "LATIN SMALL LETTER O WITH HORN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 031B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O HORN", "comment": "", "uppercase_mapping": "01A0", "lowercase_mapping": "", "titlecase_mapping": "01A0", "symbol": "\u01A1" }, 419: { "value": "01A3", "name": "LATIN SMALL LETTER OI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O I", "comment": "", "uppercase_mapping": "01A2", "lowercase_mapping": "", "titlecase_mapping": "01A2", "symbol": "\u01A3" }, 421: { "value": "01A5", "name": "LATIN SMALL LETTER P WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER P HOOK", "comment": "", "uppercase_mapping": "01A4", "lowercase_mapping": "", "titlecase_mapping": "01A4", "symbol": "\u01A5" }, 424: { "value": "01A8", "name": "LATIN SMALL LETTER TONE TWO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01A7", "lowercase_mapping": "", "titlecase_mapping": "01A7", "symbol": "\u01A8" }, 426: { "value": "01AA", "name": "LATIN LETTER REVERSED ESH LOOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01AA" }, 427: { "value": "01AB", "name": "LATIN SMALL LETTER T WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T PALATAL HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01AB" }, 429: { "value": "01AD", "name": "LATIN SMALL LETTER T WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T HOOK", "comment": "", "uppercase_mapping": "01AC", "lowercase_mapping": "", "titlecase_mapping": "01AC", "symbol": "\u01AD" }, 432: { "value": "01B0", "name": "LATIN SMALL LETTER U WITH HORN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 031B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U HORN", "comment": "", "uppercase_mapping": "01AF", "lowercase_mapping": "", "titlecase_mapping": "01AF", "symbol": "\u01B0" }, 436: { "value": "01B4", "name": "LATIN SMALL LETTER Y WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Y HOOK", "comment": "", "uppercase_mapping": "01B3", "lowercase_mapping": "", "titlecase_mapping": "01B3", "symbol": "\u01B4" }, 438: { "value": "01B6", "name": "LATIN SMALL LETTER Z WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z BAR", "comment": "", "uppercase_mapping": "01B5", "lowercase_mapping": "", "titlecase_mapping": "01B5", "symbol": "\u01B6" }, 441: { "value": "01B9", "name": "LATIN SMALL LETTER EZH REVERSED", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER REVERSED YOGH", "comment": "", "uppercase_mapping": "01B8", "lowercase_mapping": "", "titlecase_mapping": "01B8", "symbol": "\u01B9" }, 442: { "value": "01BA", "name": "LATIN SMALL LETTER EZH WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER YOGH WITH TAIL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01BA" }, 445: { "value": "01BD", "name": "LATIN SMALL LETTER TONE FIVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01BC", "lowercase_mapping": "", "titlecase_mapping": "01BC", "symbol": "\u01BD" }, 446: { "value": "01BE", "name": "LATIN LETTER INVERTED GLOTTAL STOP WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER INVERTED GLOTTAL STOP BAR", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01BE" }, 447: { "value": "01BF", "name": "LATIN LETTER WYNN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01F7", "lowercase_mapping": "", "titlecase_mapping": "01F7", "symbol": "\u01BF" }, 454: { "value": "01C6", "name": "LATIN SMALL LETTER DZ WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064 017E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D Z HACEK", "comment": "", "uppercase_mapping": "01C4", "lowercase_mapping": "", "titlecase_mapping": "01C5", "symbol": "\u01C6" }, 457: { "value": "01C9", "name": "LATIN SMALL LETTER LJ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L J", "comment": "", "uppercase_mapping": "01C7", "lowercase_mapping": "", "titlecase_mapping": "01C8", "symbol": "\u01C9" }, 460: { "value": "01CC", "name": "LATIN SMALL LETTER NJ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N J", "comment": "", "uppercase_mapping": "01CA", "lowercase_mapping": "", "titlecase_mapping": "01CB", "symbol": "\u01CC" }, 462: { "value": "01CE", "name": "LATIN SMALL LETTER A WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A HACEK", "comment": "", "uppercase_mapping": "01CD", "lowercase_mapping": "", "titlecase_mapping": "01CD", "symbol": "\u01CE" }, 464: { "value": "01D0", "name": "LATIN SMALL LETTER I WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER I HACEK", "comment": "", "uppercase_mapping": "01CF", "lowercase_mapping": "", "titlecase_mapping": "01CF", "symbol": "\u01D0" }, 466: { "value": "01D2", "name": "LATIN SMALL LETTER O WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O HACEK", "comment": "", "uppercase_mapping": "01D1", "lowercase_mapping": "", "titlecase_mapping": "01D1", "symbol": "\u01D2" }, 468: { "value": "01D4", "name": "LATIN SMALL LETTER U WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U HACEK", "comment": "", "uppercase_mapping": "01D3", "lowercase_mapping": "", "titlecase_mapping": "01D3", "symbol": "\u01D4" }, 470: { "value": "01D6", "name": "LATIN SMALL LETTER U WITH DIAERESIS AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00FC 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS MACRON", "comment": "", "uppercase_mapping": "01D5", "lowercase_mapping": "", "titlecase_mapping": "01D5", "symbol": "\u01D6" }, 472: { "value": "01D8", "name": "LATIN SMALL LETTER U WITH DIAERESIS AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00FC 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS ACUTE", "comment": "", "uppercase_mapping": "01D7", "lowercase_mapping": "", "titlecase_mapping": "01D7", "symbol": "\u01D8" }, 474: { "value": "01DA", "name": "LATIN SMALL LETTER U WITH DIAERESIS AND CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00FC 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS HACEK", "comment": "", "uppercase_mapping": "01D9", "lowercase_mapping": "", "titlecase_mapping": "01D9", "symbol": "\u01DA" }, 476: { "value": "01DC", "name": "LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00FC 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER U DIAERESIS GRAVE", "comment": "", "uppercase_mapping": "01DB", "lowercase_mapping": "", "titlecase_mapping": "01DB", "symbol": "\u01DC" }, 477: { "value": "01DD", "name": "LATIN SMALL LETTER TURNED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "018E", "lowercase_mapping": "", "titlecase_mapping": "018E", "symbol": "\u01DD" }, 479: { "value": "01DF", "name": "LATIN SMALL LETTER A WITH DIAERESIS AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E4 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A DIAERESIS MACRON", "comment": "", "uppercase_mapping": "01DE", "lowercase_mapping": "", "titlecase_mapping": "01DE", "symbol": "\u01DF" }, 481: { "value": "01E1", "name": "LATIN SMALL LETTER A WITH DOT ABOVE AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0227 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A DOT MACRON", "comment": "", "uppercase_mapping": "01E0", "lowercase_mapping": "", "titlecase_mapping": "01E0", "symbol": "\u01E1" }, 483: { "value": "01E3", "name": "LATIN SMALL LETTER AE WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E6 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER A E MACRON", "comment": "", "uppercase_mapping": "01E2", "lowercase_mapping": "", "titlecase_mapping": "01E2", "symbol": "\u01E3" }, 485: { "value": "01E5", "name": "LATIN SMALL LETTER G WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G BAR", "comment": "", "uppercase_mapping": "01E4", "lowercase_mapping": "", "titlecase_mapping": "01E4", "symbol": "\u01E5" }, 487: { "value": "01E7", "name": "LATIN SMALL LETTER G WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G HACEK", "comment": "", "uppercase_mapping": "01E6", "lowercase_mapping": "", "titlecase_mapping": "01E6", "symbol": "\u01E7" }, 489: { "value": "01E9", "name": "LATIN SMALL LETTER K WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER K HACEK", "comment": "", "uppercase_mapping": "01E8", "lowercase_mapping": "", "titlecase_mapping": "01E8", "symbol": "\u01E9" }, 491: { "value": "01EB", "name": "LATIN SMALL LETTER O WITH OGONEK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0328", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O OGONEK", "comment": "", "uppercase_mapping": "01EA", "lowercase_mapping": "", "titlecase_mapping": "01EA", "symbol": "\u01EB" }, 493: { "value": "01ED", "name": "LATIN SMALL LETTER O WITH OGONEK AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01EB 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER O OGONEK MACRON", "comment": "", "uppercase_mapping": "01EC", "lowercase_mapping": "", "titlecase_mapping": "01EC", "symbol": "\u01ED" }, 495: { "value": "01EF", "name": "LATIN SMALL LETTER EZH WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0292 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER YOGH HACEK", "comment": "", "uppercase_mapping": "01EE", "lowercase_mapping": "", "titlecase_mapping": "01EE", "symbol": "\u01EF" }, 496: { "value": "01F0", "name": "LATIN SMALL LETTER J WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006A 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER J HACEK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u01F0" }, 499: { "value": "01F3", "name": "LATIN SMALL LETTER DZ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01F1", "lowercase_mapping": "", "titlecase_mapping": "01F2", "symbol": "\u01F3" }, 501: { "value": "01F5", "name": "LATIN SMALL LETTER G WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01F4", "lowercase_mapping": "", "titlecase_mapping": "01F4", "symbol": "\u01F5" }, 505: { "value": "01F9", "name": "LATIN SMALL LETTER N WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01F8", "lowercase_mapping": "", "titlecase_mapping": "01F8", "symbol": "\u01F9" }, 507: { "value": "01FB", "name": "LATIN SMALL LETTER A WITH RING ABOVE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E5 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01FA", "lowercase_mapping": "", "titlecase_mapping": "01FA", "symbol": "\u01FB" }, 509: { "value": "01FD", "name": "LATIN SMALL LETTER AE WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E6 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01FC", "lowercase_mapping": "", "titlecase_mapping": "01FC", "symbol": "\u01FD" }, 511: { "value": "01FF", "name": "LATIN SMALL LETTER O WITH STROKE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F8 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01FE", "lowercase_mapping": "", "titlecase_mapping": "01FE", "symbol": "\u01FF" }, 513: { "value": "0201", "name": "LATIN SMALL LETTER A WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0200", "lowercase_mapping": "", "titlecase_mapping": "0200", "symbol": "\u0201" }, 515: { "value": "0203", "name": "LATIN SMALL LETTER A WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0202", "lowercase_mapping": "", "titlecase_mapping": "0202", "symbol": "\u0203" }, 517: { "value": "0205", "name": "LATIN SMALL LETTER E WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0204", "lowercase_mapping": "", "titlecase_mapping": "0204", "symbol": "\u0205" }, 519: { "value": "0207", "name": "LATIN SMALL LETTER E WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0206", "lowercase_mapping": "", "titlecase_mapping": "0206", "symbol": "\u0207" }, 521: { "value": "0209", "name": "LATIN SMALL LETTER I WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0208", "lowercase_mapping": "", "titlecase_mapping": "0208", "symbol": "\u0209" }, 523: { "value": "020B", "name": "LATIN SMALL LETTER I WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "020A", "lowercase_mapping": "", "titlecase_mapping": "020A", "symbol": "\u020B" }, 525: { "value": "020D", "name": "LATIN SMALL LETTER O WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "020C", "lowercase_mapping": "", "titlecase_mapping": "020C", "symbol": "\u020D" }, 527: { "value": "020F", "name": "LATIN SMALL LETTER O WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "020E", "lowercase_mapping": "", "titlecase_mapping": "020E", "symbol": "\u020F" }, 529: { "value": "0211", "name": "LATIN SMALL LETTER R WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0210", "lowercase_mapping": "", "titlecase_mapping": "0210", "symbol": "\u0211" }, 531: { "value": "0213", "name": "LATIN SMALL LETTER R WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0212", "lowercase_mapping": "", "titlecase_mapping": "0212", "symbol": "\u0213" }, 533: { "value": "0215", "name": "LATIN SMALL LETTER U WITH DOUBLE GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0214", "lowercase_mapping": "", "titlecase_mapping": "0214", "symbol": "\u0215" }, 535: { "value": "0217", "name": "LATIN SMALL LETTER U WITH INVERTED BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0311", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0216", "lowercase_mapping": "", "titlecase_mapping": "0216", "symbol": "\u0217" }, 537: { "value": "0219", "name": "LATIN SMALL LETTER S WITH COMMA BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0326", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0218", "lowercase_mapping": "", "titlecase_mapping": "0218", "symbol": "\u0219" }, 539: { "value": "021B", "name": "LATIN SMALL LETTER T WITH COMMA BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0326", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "021A", "lowercase_mapping": "", "titlecase_mapping": "021A", "symbol": "\u021B" }, 541: { "value": "021D", "name": "LATIN SMALL LETTER YOGH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "021C", "lowercase_mapping": "", "titlecase_mapping": "021C", "symbol": "\u021D" }, 543: { "value": "021F", "name": "LATIN SMALL LETTER H WITH CARON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 030C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "021E", "lowercase_mapping": "", "titlecase_mapping": "021E", "symbol": "\u021F" }, 545: { "value": "0221", "name": "LATIN SMALL LETTER D WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0221" }, 547: { "value": "0223", "name": "LATIN SMALL LETTER OU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0222", "lowercase_mapping": "", "titlecase_mapping": "0222", "symbol": "\u0223" }, 549: { "value": "0225", "name": "LATIN SMALL LETTER Z WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0224", "lowercase_mapping": "", "titlecase_mapping": "0224", "symbol": "\u0225" }, 551: { "value": "0227", "name": "LATIN SMALL LETTER A WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0226", "lowercase_mapping": "", "titlecase_mapping": "0226", "symbol": "\u0227" }, 553: { "value": "0229", "name": "LATIN SMALL LETTER E WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0228", "lowercase_mapping": "", "titlecase_mapping": "0228", "symbol": "\u0229" }, 555: { "value": "022B", "name": "LATIN SMALL LETTER O WITH DIAERESIS AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F6 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "022A", "lowercase_mapping": "", "titlecase_mapping": "022A", "symbol": "\u022B" }, 557: { "value": "022D", "name": "LATIN SMALL LETTER O WITH TILDE AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F5 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "022C", "lowercase_mapping": "", "titlecase_mapping": "022C", "symbol": "\u022D" }, 559: { "value": "022F", "name": "LATIN SMALL LETTER O WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "022E", "lowercase_mapping": "", "titlecase_mapping": "022E", "symbol": "\u022F" }, 561: { "value": "0231", "name": "LATIN SMALL LETTER O WITH DOT ABOVE AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "022F 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0230", "lowercase_mapping": "", "titlecase_mapping": "0230", "symbol": "\u0231" }, 563: { "value": "0233", "name": "LATIN SMALL LETTER Y WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0232", "lowercase_mapping": "", "titlecase_mapping": "0232", "symbol": "\u0233" }, 564: { "value": "0234", "name": "LATIN SMALL LETTER L WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0234" }, 565: { "value": "0235", "name": "LATIN SMALL LETTER N WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0235" }, 566: { "value": "0236", "name": "LATIN SMALL LETTER T WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0236" }, 567: { "value": "0237", "name": "LATIN SMALL LETTER DOTLESS J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0237" }, 568: { "value": "0238", "name": "LATIN SMALL LETTER DB DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0238" }, 569: { "value": "0239", "name": "LATIN SMALL LETTER QP DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0239" }, 572: { "value": "023C", "name": "LATIN SMALL LETTER C WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "023B", "lowercase_mapping": "", "titlecase_mapping": "023B", "symbol": "\u023C" }, 575: { "value": "023F", "name": "LATIN SMALL LETTER S WITH SWASH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C7E", "lowercase_mapping": "", "titlecase_mapping": "2C7E", "symbol": "\u023F" }, 576: { "value": "0240", "name": "LATIN SMALL LETTER Z WITH SWASH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C7F", "lowercase_mapping": "", "titlecase_mapping": "2C7F", "symbol": "\u0240" }, 578: { "value": "0242", "name": "LATIN SMALL LETTER GLOTTAL STOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0241", "lowercase_mapping": "", "titlecase_mapping": "0241", "symbol": "\u0242" }, 583: { "value": "0247", "name": "LATIN SMALL LETTER E WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0246", "lowercase_mapping": "", "titlecase_mapping": "0246", "symbol": "\u0247" }, 585: { "value": "0249", "name": "LATIN SMALL LETTER J WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0248", "lowercase_mapping": "", "titlecase_mapping": "0248", "symbol": "\u0249" }, 587: { "value": "024B", "name": "LATIN SMALL LETTER Q WITH HOOK TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "024A", "lowercase_mapping": "", "titlecase_mapping": "024A", "symbol": "\u024B" }, 589: { "value": "024D", "name": "LATIN SMALL LETTER R WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "024C", "lowercase_mapping": "", "titlecase_mapping": "024C", "symbol": "\u024D" }, 591: { "value": "024F", "name": "LATIN SMALL LETTER Y WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "024E", "lowercase_mapping": "", "titlecase_mapping": "024E", "symbol": "\u024F" }, 592: { "value": "0250", "name": "LATIN SMALL LETTER TURNED A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C6F", "lowercase_mapping": "", "titlecase_mapping": "2C6F", "symbol": "\u0250" }, 593: { "value": "0251", "name": "LATIN SMALL LETTER ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER SCRIPT A", "comment": "", "uppercase_mapping": "2C6D", "lowercase_mapping": "", "titlecase_mapping": "2C6D", "symbol": "\u0251" }, 594: { "value": "0252", "name": "LATIN SMALL LETTER TURNED ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER TURNED SCRIPT A", "comment": "", "uppercase_mapping": "2C70", "lowercase_mapping": "", "titlecase_mapping": "2C70", "symbol": "\u0252" }, 595: { "value": "0253", "name": "LATIN SMALL LETTER B WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER B HOOK", "comment": "", "uppercase_mapping": "0181", "lowercase_mapping": "", "titlecase_mapping": "0181", "symbol": "\u0253" }, 596: { "value": "0254", "name": "LATIN SMALL LETTER OPEN O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0186", "lowercase_mapping": "", "titlecase_mapping": "0186", "symbol": "\u0254" }, 597: { "value": "0255", "name": "LATIN SMALL LETTER C WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER C CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0255" }, 598: { "value": "0256", "name": "LATIN SMALL LETTER D WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D RETROFLEX HOOK", "comment": "", "uppercase_mapping": "0189", "lowercase_mapping": "", "titlecase_mapping": "0189", "symbol": "\u0256" }, 599: { "value": "0257", "name": "LATIN SMALL LETTER D WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D HOOK", "comment": "", "uppercase_mapping": "018A", "lowercase_mapping": "", "titlecase_mapping": "018A", "symbol": "\u0257" }, 600: { "value": "0258", "name": "LATIN SMALL LETTER REVERSED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0258" }, 601: { "value": "0259", "name": "LATIN SMALL LETTER SCHWA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "018F", "lowercase_mapping": "", "titlecase_mapping": "018F", "symbol": "\u0259" }, 602: { "value": "025A", "name": "LATIN SMALL LETTER SCHWA WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER SCHWA HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u025A" }, 603: { "value": "025B", "name": "LATIN SMALL LETTER OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER EPSILON", "comment": "", "uppercase_mapping": "0190", "lowercase_mapping": "", "titlecase_mapping": "0190", "symbol": "\u025B" }, 604: { "value": "025C", "name": "LATIN SMALL LETTER REVERSED OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER REVERSED EPSILON", "comment": "", "uppercase_mapping": "A7AB", "lowercase_mapping": "", "titlecase_mapping": "A7AB", "symbol": "\u025C" }, 605: { "value": "025D", "name": "LATIN SMALL LETTER REVERSED OPEN E WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER REVERSED EPSILON HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u025D" }, 606: { "value": "025E", "name": "LATIN SMALL LETTER CLOSED REVERSED OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER CLOSED REVERSED EPSILON", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u025E" }, 607: { "value": "025F", "name": "LATIN SMALL LETTER DOTLESS J WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER DOTLESS J BAR", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u025F" }, 608: { "value": "0260", "name": "LATIN SMALL LETTER G WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER G HOOK", "comment": "", "uppercase_mapping": "0193", "lowercase_mapping": "", "titlecase_mapping": "0193", "symbol": "\u0260" }, 609: { "value": "0261", "name": "LATIN SMALL LETTER SCRIPT G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7AC", "lowercase_mapping": "", "titlecase_mapping": "A7AC", "symbol": "\u0261" }, 610: { "value": "0262", "name": "LATIN LETTER SMALL CAPITAL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0262" }, 611: { "value": "0263", "name": "LATIN SMALL LETTER GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0194", "lowercase_mapping": "", "titlecase_mapping": "0194", "symbol": "\u0263" }, 612: { "value": "0264", "name": "LATIN SMALL LETTER RAMS HORN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER BABY GAMMA", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0264" }, 613: { "value": "0265", "name": "LATIN SMALL LETTER TURNED H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A78D", "lowercase_mapping": "", "titlecase_mapping": "A78D", "symbol": "\u0265" }, 614: { "value": "0266", "name": "LATIN SMALL LETTER H WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER H HOOK", "comment": "", "uppercase_mapping": "A7AA", "lowercase_mapping": "", "titlecase_mapping": "A7AA", "symbol": "\u0266" }, 615: { "value": "0267", "name": "LATIN SMALL LETTER HENG WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER HENG HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0267" }, 616: { "value": "0268", "name": "LATIN SMALL LETTER I WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER BARRED I", "comment": "", "uppercase_mapping": "0197", "lowercase_mapping": "", "titlecase_mapping": "0197", "symbol": "\u0268" }, 617: { "value": "0269", "name": "LATIN SMALL LETTER IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0196", "lowercase_mapping": "", "titlecase_mapping": "0196", "symbol": "\u0269" }, 618: { "value": "026A", "name": "LATIN LETTER SMALL CAPITAL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7AE", "lowercase_mapping": "", "titlecase_mapping": "A7AE", "symbol": "\u026A" }, 619: { "value": "026B", "name": "LATIN SMALL LETTER L WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C62", "lowercase_mapping": "", "titlecase_mapping": "2C62", "symbol": "\u026B" }, 620: { "value": "026C", "name": "LATIN SMALL LETTER L WITH BELT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L BELT", "comment": "", "uppercase_mapping": "A7AD", "lowercase_mapping": "", "titlecase_mapping": "A7AD", "symbol": "\u026C" }, 621: { "value": "026D", "name": "LATIN SMALL LETTER L WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L RETROFLEX HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u026D" }, 622: { "value": "026E", "name": "LATIN SMALL LETTER LEZH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER L YOGH", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u026E" }, 623: { "value": "026F", "name": "LATIN SMALL LETTER TURNED M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "019C", "lowercase_mapping": "", "titlecase_mapping": "019C", "symbol": "\u026F" }, 624: { "value": "0270", "name": "LATIN SMALL LETTER TURNED M WITH LONG LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0270" }, 625: { "value": "0271", "name": "LATIN SMALL LETTER M WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER M HOOK", "comment": "", "uppercase_mapping": "2C6E", "lowercase_mapping": "", "titlecase_mapping": "2C6E", "symbol": "\u0271" }, 626: { "value": "0272", "name": "LATIN SMALL LETTER N WITH LEFT HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N HOOK", "comment": "", "uppercase_mapping": "019D", "lowercase_mapping": "", "titlecase_mapping": "019D", "symbol": "\u0272" }, 627: { "value": "0273", "name": "LATIN SMALL LETTER N WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER N RETROFLEX HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0273" }, 628: { "value": "0274", "name": "LATIN LETTER SMALL CAPITAL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0274" }, 629: { "value": "0275", "name": "LATIN SMALL LETTER BARRED O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "019F", "lowercase_mapping": "", "titlecase_mapping": "019F", "symbol": "\u0275" }, 630: { "value": "0276", "name": "LATIN LETTER SMALL CAPITAL OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER SMALL CAPITAL O E", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0276" }, 631: { "value": "0277", "name": "LATIN SMALL LETTER CLOSED OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0277" }, 632: { "value": "0278", "name": "LATIN SMALL LETTER PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0278" }, 633: { "value": "0279", "name": "LATIN SMALL LETTER TURNED R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0279" }, 634: { "value": "027A", "name": "LATIN SMALL LETTER TURNED R WITH LONG LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027A" }, 635: { "value": "027B", "name": "LATIN SMALL LETTER TURNED R WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER TURNED R HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027B" }, 636: { "value": "027C", "name": "LATIN SMALL LETTER R WITH LONG LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027C" }, 637: { "value": "027D", "name": "LATIN SMALL LETTER R WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER R HOOK", "comment": "", "uppercase_mapping": "2C64", "lowercase_mapping": "", "titlecase_mapping": "2C64", "symbol": "\u027D" }, 638: { "value": "027E", "name": "LATIN SMALL LETTER R WITH FISHHOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER FISHHOOK R", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027E" }, 639: { "value": "027F", "name": "LATIN SMALL LETTER REVERSED R WITH FISHHOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER REVERSED FISHHOOK R", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u027F" }, 640: { "value": "0280", "name": "LATIN LETTER SMALL CAPITAL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01A6", "lowercase_mapping": "", "titlecase_mapping": "01A6", "symbol": "\u0280" }, 641: { "value": "0281", "name": "LATIN LETTER SMALL CAPITAL INVERTED R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0281" }, 642: { "value": "0282", "name": "LATIN SMALL LETTER S WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER S HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0282" }, 643: { "value": "0283", "name": "LATIN SMALL LETTER ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01A9", "lowercase_mapping": "", "titlecase_mapping": "01A9", "symbol": "\u0283" }, 644: { "value": "0284", "name": "LATIN SMALL LETTER DOTLESS J WITH STROKE AND HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER DOTLESS J BAR HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0284" }, 645: { "value": "0285", "name": "LATIN SMALL LETTER SQUAT REVERSED ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0285" }, 646: { "value": "0286", "name": "LATIN SMALL LETTER ESH WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER ESH CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0286" }, 647: { "value": "0287", "name": "LATIN SMALL LETTER TURNED T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B1", "lowercase_mapping": "", "titlecase_mapping": "A7B1", "symbol": "\u0287" }, 648: { "value": "0288", "name": "LATIN SMALL LETTER T WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T RETROFLEX HOOK", "comment": "", "uppercase_mapping": "01AE", "lowercase_mapping": "", "titlecase_mapping": "01AE", "symbol": "\u0288" }, 649: { "value": "0289", "name": "LATIN SMALL LETTER U BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0244", "lowercase_mapping": "", "titlecase_mapping": "0244", "symbol": "\u0289" }, 650: { "value": "028A", "name": "LATIN SMALL LETTER UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "01B1", "lowercase_mapping": "", "titlecase_mapping": "01B1", "symbol": "\u028A" }, 651: { "value": "028B", "name": "LATIN SMALL LETTER V WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER SCRIPT V", "comment": "", "uppercase_mapping": "01B2", "lowercase_mapping": "", "titlecase_mapping": "01B2", "symbol": "\u028B" }, 652: { "value": "028C", "name": "LATIN SMALL LETTER TURNED V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0245", "lowercase_mapping": "", "titlecase_mapping": "0245", "symbol": "\u028C" }, 653: { "value": "028D", "name": "LATIN SMALL LETTER TURNED W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u028D" }, 654: { "value": "028E", "name": "LATIN SMALL LETTER TURNED Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u028E" }, 655: { "value": "028F", "name": "LATIN LETTER SMALL CAPITAL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u028F" }, 656: { "value": "0290", "name": "LATIN SMALL LETTER Z WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z RETROFLEX HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0290" }, 657: { "value": "0291", "name": "LATIN SMALL LETTER Z WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Z CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0291" }, 658: { "value": "0292", "name": "LATIN SMALL LETTER EZH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER YOGH", "comment": "", "uppercase_mapping": "01B7", "lowercase_mapping": "", "titlecase_mapping": "01B7", "symbol": "\u0292" }, 659: { "value": "0293", "name": "LATIN SMALL LETTER EZH WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER YOGH CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0293" }, 661: { "value": "0295", "name": "LATIN LETTER PHARYNGEAL VOICED FRICATIVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER REVERSED GLOTTAL STOP", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0295" }, 662: { "value": "0296", "name": "LATIN LETTER INVERTED GLOTTAL STOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0296" }, 663: { "value": "0297", "name": "LATIN LETTER STRETCHED C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0297" }, 664: { "value": "0298", "name": "LATIN LETTER BILABIAL CLICK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER BULLSEYE", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0298" }, 665: { "value": "0299", "name": "LATIN LETTER SMALL CAPITAL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0299" }, 666: { "value": "029A", "name": "LATIN SMALL LETTER CLOSED OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER CLOSED EPSILON", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u029A" }, 667: { "value": "029B", "name": "LATIN LETTER SMALL CAPITAL G WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER SMALL CAPITAL G HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u029B" }, 668: { "value": "029C", "name": "LATIN LETTER SMALL CAPITAL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u029C" }, 669: { "value": "029D", "name": "LATIN SMALL LETTER J WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER CROSSED-TAIL J", "comment": "", "uppercase_mapping": "A7B2", "lowercase_mapping": "", "titlecase_mapping": "A7B2", "symbol": "\u029D" }, 670: { "value": "029E", "name": "LATIN SMALL LETTER TURNED K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B0", "lowercase_mapping": "", "titlecase_mapping": "A7B0", "symbol": "\u029E" }, 671: { "value": "029F", "name": "LATIN LETTER SMALL CAPITAL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u029F" }, 672: { "value": "02A0", "name": "LATIN SMALL LETTER Q WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER Q HOOK", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A0" }, 673: { "value": "02A1", "name": "LATIN LETTER GLOTTAL STOP WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER GLOTTAL STOP BAR", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A1" }, 674: { "value": "02A2", "name": "LATIN LETTER REVERSED GLOTTAL STOP WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN LETTER REVERSED GLOTTAL STOP BAR", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A2" }, 675: { "value": "02A3", "name": "LATIN SMALL LETTER DZ DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D Z", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A3" }, 676: { "value": "02A4", "name": "LATIN SMALL LETTER DEZH DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D YOGH", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A4" }, 677: { "value": "02A5", "name": "LATIN SMALL LETTER DZ DIGRAPH WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER D Z CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A5" }, 678: { "value": "02A6", "name": "LATIN SMALL LETTER TS DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T S", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A6" }, 679: { "value": "02A7", "name": "LATIN SMALL LETTER TESH DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T ESH", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A7" }, 680: { "value": "02A8", "name": "LATIN SMALL LETTER TC DIGRAPH WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "LATIN SMALL LETTER T C CURL", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A8" }, 681: { "value": "02A9", "name": "LATIN SMALL LETTER FENG DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02A9" }, 682: { "value": "02AA", "name": "LATIN SMALL LETTER LS DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AA" }, 683: { "value": "02AB", "name": "LATIN SMALL LETTER LZ DIGRAPH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AB" }, 684: { "value": "02AC", "name": "LATIN LETTER BILABIAL PERCUSSIVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AC" }, 685: { "value": "02AD", "name": "LATIN LETTER BIDENTAL PERCUSSIVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AD" }, 686: { "value": "02AE", "name": "LATIN SMALL LETTER TURNED H WITH FISHHOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AE" }, 687: { "value": "02AF", "name": "LATIN SMALL LETTER TURNED H WITH FISHHOOK AND TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u02AF" }, 881: { "value": "0371", "name": "GREEK SMALL LETTER HETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0370", "lowercase_mapping": "", "titlecase_mapping": "0370", "symbol": "\u0371" }, 883: { "value": "0373", "name": "GREEK SMALL LETTER ARCHAIC SAMPI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0372", "lowercase_mapping": "", "titlecase_mapping": "0372", "symbol": "\u0373" }, 887: { "value": "0377", "name": "GREEK SMALL LETTER PAMPHYLIAN DIGAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0376", "lowercase_mapping": "", "titlecase_mapping": "0376", "symbol": "\u0377" }, 891: { "value": "037B", "name": "GREEK SMALL REVERSED LUNATE SIGMA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03FD", "lowercase_mapping": "", "titlecase_mapping": "03FD", "symbol": "\u037B" }, 892: { "value": "037C", "name": "GREEK SMALL DOTTED LUNATE SIGMA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03FE", "lowercase_mapping": "", "titlecase_mapping": "03FE", "symbol": "\u037C" }, 893: { "value": "037D", "name": "GREEK SMALL REVERSED DOTTED LUNATE SIGMA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03FF", "lowercase_mapping": "", "titlecase_mapping": "03FF", "symbol": "\u037D" }, 912: { "value": "0390", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CA 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER IOTA DIAERESIS TONOS", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0390" }, 940: { "value": "03AC", "name": "GREEK SMALL LETTER ALPHA WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER ALPHA TONOS", "comment": "", "uppercase_mapping": "0386", "lowercase_mapping": "", "titlecase_mapping": "0386", "symbol": "\u03AC" }, 941: { "value": "03AD", "name": "GREEK SMALL LETTER EPSILON WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B5 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER EPSILON TONOS", "comment": "", "uppercase_mapping": "0388", "lowercase_mapping": "", "titlecase_mapping": "0388", "symbol": "\u03AD" }, 942: { "value": "03AE", "name": "GREEK SMALL LETTER ETA WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER ETA TONOS", "comment": "", "uppercase_mapping": "0389", "lowercase_mapping": "", "titlecase_mapping": "0389", "symbol": "\u03AE" }, 943: { "value": "03AF", "name": "GREEK SMALL LETTER IOTA WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER IOTA TONOS", "comment": "", "uppercase_mapping": "038A", "lowercase_mapping": "", "titlecase_mapping": "038A", "symbol": "\u03AF" }, 944: { "value": "03B0", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CB 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER UPSILON DIAERESIS TONOS", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u03B0" }, 945: { "value": "03B1", "name": "GREEK SMALL LETTER ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0391", "lowercase_mapping": "", "titlecase_mapping": "0391", "symbol": "\u03B1" }, 946: { "value": "03B2", "name": "GREEK SMALL LETTER BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0392", "lowercase_mapping": "", "titlecase_mapping": "0392", "symbol": "\u03B2" }, 947: { "value": "03B3", "name": "GREEK SMALL LETTER GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0393", "lowercase_mapping": "", "titlecase_mapping": "0393", "symbol": "\u03B3" }, 948: { "value": "03B4", "name": "GREEK SMALL LETTER DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0394", "lowercase_mapping": "", "titlecase_mapping": "0394", "symbol": "\u03B4" }, 949: { "value": "03B5", "name": "GREEK SMALL LETTER EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0395", "lowercase_mapping": "", "titlecase_mapping": "0395", "symbol": "\u03B5" }, 950: { "value": "03B6", "name": "GREEK SMALL LETTER ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0396", "lowercase_mapping": "", "titlecase_mapping": "0396", "symbol": "\u03B6" }, 951: { "value": "03B7", "name": "GREEK SMALL LETTER ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0397", "lowercase_mapping": "", "titlecase_mapping": "0397", "symbol": "\u03B7" }, 952: { "value": "03B8", "name": "GREEK SMALL LETTER THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0398", "lowercase_mapping": "", "titlecase_mapping": "0398", "symbol": "\u03B8" }, 953: { "value": "03B9", "name": "GREEK SMALL LETTER IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0399", "lowercase_mapping": "", "titlecase_mapping": "0399", "symbol": "\u03B9" }, 954: { "value": "03BA", "name": "GREEK SMALL LETTER KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039A", "lowercase_mapping": "", "titlecase_mapping": "039A", "symbol": "\u03BA" }, 955: { "value": "03BB", "name": "GREEK SMALL LETTER LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER LAMBDA", "comment": "", "uppercase_mapping": "039B", "lowercase_mapping": "", "titlecase_mapping": "039B", "symbol": "\u03BB" }, 956: { "value": "03BC", "name": "GREEK SMALL LETTER MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039C", "lowercase_mapping": "", "titlecase_mapping": "039C", "symbol": "\u03BC" }, 957: { "value": "03BD", "name": "GREEK SMALL LETTER NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039D", "lowercase_mapping": "", "titlecase_mapping": "039D", "symbol": "\u03BD" }, 958: { "value": "03BE", "name": "GREEK SMALL LETTER XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039E", "lowercase_mapping": "", "titlecase_mapping": "039E", "symbol": "\u03BE" }, 959: { "value": "03BF", "name": "GREEK SMALL LETTER OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "039F", "lowercase_mapping": "", "titlecase_mapping": "039F", "symbol": "\u03BF" }, 960: { "value": "03C0", "name": "GREEK SMALL LETTER PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A0", "lowercase_mapping": "", "titlecase_mapping": "03A0", "symbol": "\u03C0" }, 961: { "value": "03C1", "name": "GREEK SMALL LETTER RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A1", "lowercase_mapping": "", "titlecase_mapping": "03A1", "symbol": "\u03C1" }, 962: { "value": "03C2", "name": "GREEK SMALL LETTER FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A3", "lowercase_mapping": "", "titlecase_mapping": "03A3", "symbol": "\u03C2" }, 963: { "value": "03C3", "name": "GREEK SMALL LETTER SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A3", "lowercase_mapping": "", "titlecase_mapping": "03A3", "symbol": "\u03C3" }, 964: { "value": "03C4", "name": "GREEK SMALL LETTER TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A4", "lowercase_mapping": "", "titlecase_mapping": "03A4", "symbol": "\u03C4" }, 965: { "value": "03C5", "name": "GREEK SMALL LETTER UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A5", "lowercase_mapping": "", "titlecase_mapping": "03A5", "symbol": "\u03C5" }, 966: { "value": "03C6", "name": "GREEK SMALL LETTER PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A6", "lowercase_mapping": "", "titlecase_mapping": "03A6", "symbol": "\u03C6" }, 967: { "value": "03C7", "name": "GREEK SMALL LETTER CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A7", "lowercase_mapping": "", "titlecase_mapping": "03A7", "symbol": "\u03C7" }, 968: { "value": "03C8", "name": "GREEK SMALL LETTER PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A8", "lowercase_mapping": "", "titlecase_mapping": "03A8", "symbol": "\u03C8" }, 969: { "value": "03C9", "name": "GREEK SMALL LETTER OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03A9", "lowercase_mapping": "", "titlecase_mapping": "03A9", "symbol": "\u03C9" }, 970: { "value": "03CA", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER IOTA DIAERESIS", "comment": "", "uppercase_mapping": "03AA", "lowercase_mapping": "", "titlecase_mapping": "03AA", "symbol": "\u03CA" }, 971: { "value": "03CB", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER UPSILON DIAERESIS", "comment": "", "uppercase_mapping": "03AB", "lowercase_mapping": "", "titlecase_mapping": "03AB", "symbol": "\u03CB" }, 972: { "value": "03CC", "name": "GREEK SMALL LETTER OMICRON WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03BF 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER OMICRON TONOS", "comment": "", "uppercase_mapping": "038C", "lowercase_mapping": "", "titlecase_mapping": "038C", "symbol": "\u03CC" }, 973: { "value": "03CD", "name": "GREEK SMALL LETTER UPSILON WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER UPSILON TONOS", "comment": "", "uppercase_mapping": "038E", "lowercase_mapping": "", "titlecase_mapping": "038E", "symbol": "\u03CD" }, 974: { "value": "03CE", "name": "GREEK SMALL LETTER OMEGA WITH TONOS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER OMEGA TONOS", "comment": "", "uppercase_mapping": "038F", "lowercase_mapping": "", "titlecase_mapping": "038F", "symbol": "\u03CE" }, 976: { "value": "03D0", "name": "GREEK BETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER CURLED BETA", "comment": "", "uppercase_mapping": "0392", "lowercase_mapping": "", "titlecase_mapping": "0392", "symbol": "\u03D0" }, 977: { "value": "03D1", "name": "GREEK THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SCRIPT THETA", "comment": "", "uppercase_mapping": "0398", "lowercase_mapping": "", "titlecase_mapping": "0398", "symbol": "\u03D1" }, 981: { "value": "03D5", "name": "GREEK PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SCRIPT PHI", "comment": "", "uppercase_mapping": "03A6", "lowercase_mapping": "", "titlecase_mapping": "03A6", "symbol": "\u03D5" }, 982: { "value": "03D6", "name": "GREEK PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER OMEGA PI", "comment": "", "uppercase_mapping": "03A0", "lowercase_mapping": "", "titlecase_mapping": "03A0", "symbol": "\u03D6" }, 983: { "value": "03D7", "name": "GREEK KAI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03CF", "lowercase_mapping": "", "titlecase_mapping": "03CF", "symbol": "\u03D7" }, 985: { "value": "03D9", "name": "GREEK SMALL LETTER ARCHAIC KOPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03D8", "lowercase_mapping": "", "titlecase_mapping": "03D8", "symbol": "\u03D9" }, 987: { "value": "03DB", "name": "GREEK SMALL LETTER STIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03DA", "lowercase_mapping": "", "titlecase_mapping": "03DA", "symbol": "\u03DB" }, 989: { "value": "03DD", "name": "GREEK SMALL LETTER DIGAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03DC", "lowercase_mapping": "", "titlecase_mapping": "03DC", "symbol": "\u03DD" }, 991: { "value": "03DF", "name": "GREEK SMALL LETTER KOPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03DE", "lowercase_mapping": "", "titlecase_mapping": "03DE", "symbol": "\u03DF" }, 993: { "value": "03E1", "name": "GREEK SMALL LETTER SAMPI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03E0", "lowercase_mapping": "", "titlecase_mapping": "03E0", "symbol": "\u03E1" }, 995: { "value": "03E3", "name": "COPTIC SMALL LETTER SHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SHEI", "comment": "", "uppercase_mapping": "03E2", "lowercase_mapping": "", "titlecase_mapping": "03E2", "symbol": "\u03E3" }, 997: { "value": "03E5", "name": "COPTIC SMALL LETTER FEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER FEI", "comment": "", "uppercase_mapping": "03E4", "lowercase_mapping": "", "titlecase_mapping": "03E4", "symbol": "\u03E5" }, 999: { "value": "03E7", "name": "COPTIC SMALL LETTER KHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER KHEI", "comment": "", "uppercase_mapping": "03E6", "lowercase_mapping": "", "titlecase_mapping": "03E6", "symbol": "\u03E7" }, 1001: { "value": "03E9", "name": "COPTIC SMALL LETTER HORI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER HORI", "comment": "", "uppercase_mapping": "03E8", "lowercase_mapping": "", "titlecase_mapping": "03E8", "symbol": "\u03E9" }, 1003: { "value": "03EB", "name": "COPTIC SMALL LETTER GANGIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER GANGIA", "comment": "", "uppercase_mapping": "03EA", "lowercase_mapping": "", "titlecase_mapping": "03EA", "symbol": "\u03EB" }, 1005: { "value": "03ED", "name": "COPTIC SMALL LETTER SHIMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SHIMA", "comment": "", "uppercase_mapping": "03EC", "lowercase_mapping": "", "titlecase_mapping": "03EC", "symbol": "\u03ED" }, 1007: { "value": "03EF", "name": "COPTIC SMALL LETTER DEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER DEI", "comment": "", "uppercase_mapping": "03EE", "lowercase_mapping": "", "titlecase_mapping": "03EE", "symbol": "\u03EF" }, 1008: { "value": "03F0", "name": "GREEK KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER SCRIPT KAPPA", "comment": "", "uppercase_mapping": "039A", "lowercase_mapping": "", "titlecase_mapping": "039A", "symbol": "\u03F0" }, 1009: { "value": "03F1", "name": "GREEK RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER TAILED RHO", "comment": "", "uppercase_mapping": "03A1", "lowercase_mapping": "", "titlecase_mapping": "03A1", "symbol": "\u03F1" }, 1010: { "value": "03F2", "name": "GREEK LUNATE SIGMA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "GREEK SMALL LETTER LUNATE SIGMA", "comment": "", "uppercase_mapping": "03F9", "lowercase_mapping": "", "titlecase_mapping": "03F9", "symbol": "\u03F2" }, 1011: { "value": "03F3", "name": "GREEK LETTER YOT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "037F", "lowercase_mapping": "", "titlecase_mapping": "037F", "symbol": "\u03F3" }, 1013: { "value": "03F5", "name": "GREEK LUNATE EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0395", "lowercase_mapping": "", "titlecase_mapping": "0395", "symbol": "\u03F5" }, 1016: { "value": "03F8", "name": "GREEK SMALL LETTER SHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03F7", "lowercase_mapping": "", "titlecase_mapping": "03F7", "symbol": "\u03F8" }, 1019: { "value": "03FB", "name": "GREEK SMALL LETTER SAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "03FA", "lowercase_mapping": "", "titlecase_mapping": "03FA", "symbol": "\u03FB" }, 1020: { "value": "03FC", "name": "GREEK RHO WITH STROKE SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u03FC" }, 1072: { "value": "0430", "name": "CYRILLIC SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0410", "lowercase_mapping": "", "titlecase_mapping": "0410", "symbol": "\u0430" }, 1073: { "value": "0431", "name": "CYRILLIC SMALL LETTER BE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0411", "lowercase_mapping": "", "titlecase_mapping": "0411", "symbol": "\u0431" }, 1074: { "value": "0432", "name": "CYRILLIC SMALL LETTER VE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0412", "lowercase_mapping": "", "titlecase_mapping": "0412", "symbol": "\u0432" }, 1075: { "value": "0433", "name": "CYRILLIC SMALL LETTER GHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER GE", "comment": "", "uppercase_mapping": "0413", "lowercase_mapping": "", "titlecase_mapping": "0413", "symbol": "\u0433" }, 1076: { "value": "0434", "name": "CYRILLIC SMALL LETTER DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0414", "lowercase_mapping": "", "titlecase_mapping": "0414", "symbol": "\u0434" }, 1077: { "value": "0435", "name": "CYRILLIC SMALL LETTER IE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0415", "lowercase_mapping": "", "titlecase_mapping": "0415", "symbol": "\u0435" }, 1078: { "value": "0436", "name": "CYRILLIC SMALL LETTER ZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0416", "lowercase_mapping": "", "titlecase_mapping": "0416", "symbol": "\u0436" }, 1079: { "value": "0437", "name": "CYRILLIC SMALL LETTER ZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0417", "lowercase_mapping": "", "titlecase_mapping": "0417", "symbol": "\u0437" }, 1080: { "value": "0438", "name": "CYRILLIC SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER II", "comment": "", "uppercase_mapping": "0418", "lowercase_mapping": "", "titlecase_mapping": "0418", "symbol": "\u0438" }, 1081: { "value": "0439", "name": "CYRILLIC SMALL LETTER SHORT I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0438 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER SHORT II", "comment": "", "uppercase_mapping": "0419", "lowercase_mapping": "", "titlecase_mapping": "0419", "symbol": "\u0439" }, 1082: { "value": "043A", "name": "CYRILLIC SMALL LETTER KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041A", "lowercase_mapping": "", "titlecase_mapping": "041A", "symbol": "\u043A" }, 1083: { "value": "043B", "name": "CYRILLIC SMALL LETTER EL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041B", "lowercase_mapping": "", "titlecase_mapping": "041B", "symbol": "\u043B" }, 1084: { "value": "043C", "name": "CYRILLIC SMALL LETTER EM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041C", "lowercase_mapping": "", "titlecase_mapping": "041C", "symbol": "\u043C" }, 1085: { "value": "043D", "name": "CYRILLIC SMALL LETTER EN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041D", "lowercase_mapping": "", "titlecase_mapping": "041D", "symbol": "\u043D" }, 1086: { "value": "043E", "name": "CYRILLIC SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041E", "lowercase_mapping": "", "titlecase_mapping": "041E", "symbol": "\u043E" }, 1087: { "value": "043F", "name": "CYRILLIC SMALL LETTER PE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041F", "lowercase_mapping": "", "titlecase_mapping": "041F", "symbol": "\u043F" }, 1088: { "value": "0440", "name": "CYRILLIC SMALL LETTER ER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0420", "lowercase_mapping": "", "titlecase_mapping": "0420", "symbol": "\u0440" }, 1089: { "value": "0441", "name": "CYRILLIC SMALL LETTER ES", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0421", "lowercase_mapping": "", "titlecase_mapping": "0421", "symbol": "\u0441" }, 1090: { "value": "0442", "name": "CYRILLIC SMALL LETTER TE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0422", "lowercase_mapping": "", "titlecase_mapping": "0422", "symbol": "\u0442" }, 1091: { "value": "0443", "name": "CYRILLIC SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0423", "lowercase_mapping": "", "titlecase_mapping": "0423", "symbol": "\u0443" }, 1092: { "value": "0444", "name": "CYRILLIC SMALL LETTER EF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0424", "lowercase_mapping": "", "titlecase_mapping": "0424", "symbol": "\u0444" }, 1093: { "value": "0445", "name": "CYRILLIC SMALL LETTER HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KHA", "comment": "", "uppercase_mapping": "0425", "lowercase_mapping": "", "titlecase_mapping": "0425", "symbol": "\u0445" }, 1094: { "value": "0446", "name": "CYRILLIC SMALL LETTER TSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0426", "lowercase_mapping": "", "titlecase_mapping": "0426", "symbol": "\u0446" }, 1095: { "value": "0447", "name": "CYRILLIC SMALL LETTER CHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0427", "lowercase_mapping": "", "titlecase_mapping": "0427", "symbol": "\u0447" }, 1096: { "value": "0448", "name": "CYRILLIC SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0428", "lowercase_mapping": "", "titlecase_mapping": "0428", "symbol": "\u0448" }, 1097: { "value": "0449", "name": "CYRILLIC SMALL LETTER SHCHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0429", "lowercase_mapping": "", "titlecase_mapping": "0429", "symbol": "\u0449" }, 1098: { "value": "044A", "name": "CYRILLIC SMALL LETTER HARD SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "042A", "lowercase_mapping": "", "titlecase_mapping": "042A", "symbol": "\u044A" }, 1099: { "value": "044B", "name": "CYRILLIC SMALL LETTER YERU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER YERI", "comment": "", "uppercase_mapping": "042B", "lowercase_mapping": "", "titlecase_mapping": "042B", "symbol": "\u044B" }, 1100: { "value": "044C", "name": "CYRILLIC SMALL LETTER SOFT SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "042C", "lowercase_mapping": "", "titlecase_mapping": "042C", "symbol": "\u044C" }, 1101: { "value": "044D", "name": "CYRILLIC SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER REVERSED E", "comment": "", "uppercase_mapping": "042D", "lowercase_mapping": "", "titlecase_mapping": "042D", "symbol": "\u044D" }, 1102: { "value": "044E", "name": "CYRILLIC SMALL LETTER YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IU", "comment": "", "uppercase_mapping": "042E", "lowercase_mapping": "", "titlecase_mapping": "042E", "symbol": "\u044E" }, 1103: { "value": "044F", "name": "CYRILLIC SMALL LETTER YA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IA", "comment": "", "uppercase_mapping": "042F", "lowercase_mapping": "", "titlecase_mapping": "042F", "symbol": "\u044F" }, 1104: { "value": "0450", "name": "CYRILLIC SMALL LETTER IE WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0435 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0400", "lowercase_mapping": "", "titlecase_mapping": "0400", "symbol": "\u0450" }, 1105: { "value": "0451", "name": "CYRILLIC SMALL LETTER IO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0435 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0401", "lowercase_mapping": "", "titlecase_mapping": "0401", "symbol": "\u0451" }, 1106: { "value": "0452", "name": "CYRILLIC SMALL LETTER DJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0402", "lowercase_mapping": "", "titlecase_mapping": "0402", "symbol": "\u0452" }, 1107: { "value": "0453", "name": "CYRILLIC SMALL LETTER GJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0433 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0403", "lowercase_mapping": "", "titlecase_mapping": "0403", "symbol": "\u0453" }, 1108: { "value": "0454", "name": "CYRILLIC SMALL LETTER UKRAINIAN IE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER E", "comment": "", "uppercase_mapping": "0404", "lowercase_mapping": "", "titlecase_mapping": "0404", "symbol": "\u0454" }, 1109: { "value": "0455", "name": "CYRILLIC SMALL LETTER DZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0405", "lowercase_mapping": "", "titlecase_mapping": "0405", "symbol": "\u0455" }, 1110: { "value": "0456", "name": "CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER I", "comment": "", "uppercase_mapping": "0406", "lowercase_mapping": "", "titlecase_mapping": "0406", "symbol": "\u0456" }, 1111: { "value": "0457", "name": "CYRILLIC SMALL LETTER YI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0456 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0407", "lowercase_mapping": "", "titlecase_mapping": "0407", "symbol": "\u0457" }, 1112: { "value": "0458", "name": "CYRILLIC SMALL LETTER JE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0408", "lowercase_mapping": "", "titlecase_mapping": "0408", "symbol": "\u0458" }, 1113: { "value": "0459", "name": "CYRILLIC SMALL LETTER LJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0409", "lowercase_mapping": "", "titlecase_mapping": "0409", "symbol": "\u0459" }, 1114: { "value": "045A", "name": "CYRILLIC SMALL LETTER NJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040A", "lowercase_mapping": "", "titlecase_mapping": "040A", "symbol": "\u045A" }, 1115: { "value": "045B", "name": "CYRILLIC SMALL LETTER TSHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040B", "lowercase_mapping": "", "titlecase_mapping": "040B", "symbol": "\u045B" }, 1116: { "value": "045C", "name": "CYRILLIC SMALL LETTER KJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "043A 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040C", "lowercase_mapping": "", "titlecase_mapping": "040C", "symbol": "\u045C" }, 1117: { "value": "045D", "name": "CYRILLIC SMALL LETTER I WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0438 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040D", "lowercase_mapping": "", "titlecase_mapping": "040D", "symbol": "\u045D" }, 1118: { "value": "045E", "name": "CYRILLIC SMALL LETTER SHORT U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0443 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040E", "lowercase_mapping": "", "titlecase_mapping": "040E", "symbol": "\u045E" }, 1119: { "value": "045F", "name": "CYRILLIC SMALL LETTER DZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "040F", "lowercase_mapping": "", "titlecase_mapping": "040F", "symbol": "\u045F" }, 1121: { "value": "0461", "name": "CYRILLIC SMALL LETTER OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0460", "lowercase_mapping": "", "titlecase_mapping": "0460", "symbol": "\u0461" }, 1123: { "value": "0463", "name": "CYRILLIC SMALL LETTER YAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0462", "lowercase_mapping": "", "titlecase_mapping": "0462", "symbol": "\u0463" }, 1125: { "value": "0465", "name": "CYRILLIC SMALL LETTER IOTIFIED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0464", "lowercase_mapping": "", "titlecase_mapping": "0464", "symbol": "\u0465" }, 1127: { "value": "0467", "name": "CYRILLIC SMALL LETTER LITTLE YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0466", "lowercase_mapping": "", "titlecase_mapping": "0466", "symbol": "\u0467" }, 1129: { "value": "0469", "name": "CYRILLIC SMALL LETTER IOTIFIED LITTLE YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0468", "lowercase_mapping": "", "titlecase_mapping": "0468", "symbol": "\u0469" }, 1131: { "value": "046B", "name": "CYRILLIC SMALL LETTER BIG YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "046A", "lowercase_mapping": "", "titlecase_mapping": "046A", "symbol": "\u046B" }, 1133: { "value": "046D", "name": "CYRILLIC SMALL LETTER IOTIFIED BIG YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "046C", "lowercase_mapping": "", "titlecase_mapping": "046C", "symbol": "\u046D" }, 1135: { "value": "046F", "name": "CYRILLIC SMALL LETTER KSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "046E", "lowercase_mapping": "", "titlecase_mapping": "046E", "symbol": "\u046F" }, 1137: { "value": "0471", "name": "CYRILLIC SMALL LETTER PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0470", "lowercase_mapping": "", "titlecase_mapping": "0470", "symbol": "\u0471" }, 1139: { "value": "0473", "name": "CYRILLIC SMALL LETTER FITA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0472", "lowercase_mapping": "", "titlecase_mapping": "0472", "symbol": "\u0473" }, 1141: { "value": "0475", "name": "CYRILLIC SMALL LETTER IZHITSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0474", "lowercase_mapping": "", "titlecase_mapping": "0474", "symbol": "\u0475" }, 1143: { "value": "0477", "name": "CYRILLIC SMALL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0475 030F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IZHITSA DOUBLE GRAVE", "comment": "", "uppercase_mapping": "0476", "lowercase_mapping": "", "titlecase_mapping": "0476", "symbol": "\u0477" }, 1145: { "value": "0479", "name": "CYRILLIC SMALL LETTER UK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER UK DIGRAPH", "comment": "", "uppercase_mapping": "0478", "lowercase_mapping": "", "titlecase_mapping": "0478", "symbol": "\u0479" }, 1147: { "value": "047B", "name": "CYRILLIC SMALL LETTER ROUND OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "047A", "lowercase_mapping": "", "titlecase_mapping": "047A", "symbol": "\u047B" }, 1149: { "value": "047D", "name": "CYRILLIC SMALL LETTER OMEGA WITH TITLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER OMEGA TITLO", "comment": "", "uppercase_mapping": "047C", "lowercase_mapping": "", "titlecase_mapping": "047C", "symbol": "\u047D" }, 1151: { "value": "047F", "name": "CYRILLIC SMALL LETTER OT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "047E", "lowercase_mapping": "", "titlecase_mapping": "047E", "symbol": "\u047F" }, 1153: { "value": "0481", "name": "CYRILLIC SMALL LETTER KOPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0480", "lowercase_mapping": "", "titlecase_mapping": "0480", "symbol": "\u0481" }, 1163: { "value": "048B", "name": "CYRILLIC SMALL LETTER SHORT I WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "048A", "lowercase_mapping": "", "titlecase_mapping": "048A", "symbol": "\u048B" }, 1165: { "value": "048D", "name": "CYRILLIC SMALL LETTER SEMISOFT SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "048C", "lowercase_mapping": "", "titlecase_mapping": "048C", "symbol": "\u048D" }, 1167: { "value": "048F", "name": "CYRILLIC SMALL LETTER ER WITH TICK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "048E", "lowercase_mapping": "", "titlecase_mapping": "048E", "symbol": "\u048F" }, 1169: { "value": "0491", "name": "CYRILLIC SMALL LETTER GHE WITH UPTURN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER GE WITH UPTURN", "comment": "", "uppercase_mapping": "0490", "lowercase_mapping": "", "titlecase_mapping": "0490", "symbol": "\u0491" }, 1171: { "value": "0493", "name": "CYRILLIC SMALL LETTER GHE WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER GE BAR", "comment": "", "uppercase_mapping": "0492", "lowercase_mapping": "", "titlecase_mapping": "0492", "symbol": "\u0493" }, 1173: { "value": "0495", "name": "CYRILLIC SMALL LETTER GHE WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER GE HOOK", "comment": "", "uppercase_mapping": "0494", "lowercase_mapping": "", "titlecase_mapping": "0494", "symbol": "\u0495" }, 1175: { "value": "0497", "name": "CYRILLIC SMALL LETTER ZHE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER ZHE WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "0496", "lowercase_mapping": "", "titlecase_mapping": "0496", "symbol": "\u0497" }, 1177: { "value": "0499", "name": "CYRILLIC SMALL LETTER ZE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER ZE CEDILLA", "comment": "", "uppercase_mapping": "0498", "lowercase_mapping": "", "titlecase_mapping": "0498", "symbol": "\u0499" }, 1179: { "value": "049B", "name": "CYRILLIC SMALL LETTER KA WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KA WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "049A", "lowercase_mapping": "", "titlecase_mapping": "049A", "symbol": "\u049B" }, 1181: { "value": "049D", "name": "CYRILLIC SMALL LETTER KA WITH VERTICAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KA VERTICAL BAR", "comment": "", "uppercase_mapping": "049C", "lowercase_mapping": "", "titlecase_mapping": "049C", "symbol": "\u049D" }, 1183: { "value": "049F", "name": "CYRILLIC SMALL LETTER KA WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KA BAR", "comment": "", "uppercase_mapping": "049E", "lowercase_mapping": "", "titlecase_mapping": "049E", "symbol": "\u049F" }, 1185: { "value": "04A1", "name": "CYRILLIC SMALL LETTER BASHKIR KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER REVERSED GE KA", "comment": "", "uppercase_mapping": "04A0", "lowercase_mapping": "", "titlecase_mapping": "04A0", "symbol": "\u04A1" }, 1187: { "value": "04A3", "name": "CYRILLIC SMALL LETTER EN WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER EN WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "04A2", "lowercase_mapping": "", "titlecase_mapping": "04A2", "symbol": "\u04A3" }, 1189: { "value": "04A5", "name": "CYRILLIC SMALL LIGATURE EN GHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER EN GE", "comment": "", "uppercase_mapping": "04A4", "lowercase_mapping": "", "titlecase_mapping": "04A4", "symbol": "\u04A5" }, 1191: { "value": "04A7", "name": "CYRILLIC SMALL LETTER PE WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER PE HOOK", "comment": "", "uppercase_mapping": "04A6", "lowercase_mapping": "", "titlecase_mapping": "04A6", "symbol": "\u04A7" }, 1193: { "value": "04A9", "name": "CYRILLIC SMALL LETTER ABKHASIAN HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER O HOOK", "comment": "", "uppercase_mapping": "04A8", "lowercase_mapping": "", "titlecase_mapping": "04A8", "symbol": "\u04A9" }, 1195: { "value": "04AB", "name": "CYRILLIC SMALL LETTER ES WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER ES CEDILLA", "comment": "", "uppercase_mapping": "04AA", "lowercase_mapping": "", "titlecase_mapping": "04AA", "symbol": "\u04AB" }, 1197: { "value": "04AD", "name": "CYRILLIC SMALL LETTER TE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER TE WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "04AC", "lowercase_mapping": "", "titlecase_mapping": "04AC", "symbol": "\u04AD" }, 1199: { "value": "04AF", "name": "CYRILLIC SMALL LETTER STRAIGHT U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04AE", "lowercase_mapping": "", "titlecase_mapping": "04AE", "symbol": "\u04AF" }, 1201: { "value": "04B1", "name": "CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER STRAIGHT U BAR", "comment": "", "uppercase_mapping": "04B0", "lowercase_mapping": "", "titlecase_mapping": "04B0", "symbol": "\u04B1" }, 1203: { "value": "04B3", "name": "CYRILLIC SMALL LETTER HA WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KHA WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "04B2", "lowercase_mapping": "", "titlecase_mapping": "04B2", "symbol": "\u04B3" }, 1205: { "value": "04B5", "name": "CYRILLIC SMALL LIGATURE TE TSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER TE TSE", "comment": "", "uppercase_mapping": "04B4", "lowercase_mapping": "", "titlecase_mapping": "04B4", "symbol": "\u04B5" }, 1207: { "value": "04B7", "name": "CYRILLIC SMALL LETTER CHE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER CHE WITH RIGHT DESCENDER", "comment": "", "uppercase_mapping": "04B6", "lowercase_mapping": "", "titlecase_mapping": "04B6", "symbol": "\u04B7" }, 1209: { "value": "04B9", "name": "CYRILLIC SMALL LETTER CHE WITH VERTICAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER CHE VERTICAL BAR", "comment": "", "uppercase_mapping": "04B8", "lowercase_mapping": "", "titlecase_mapping": "04B8", "symbol": "\u04B9" }, 1211: { "value": "04BB", "name": "CYRILLIC SMALL LETTER SHHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER H", "comment": "", "uppercase_mapping": "04BA", "lowercase_mapping": "", "titlecase_mapping": "04BA", "symbol": "\u04BB" }, 1213: { "value": "04BD", "name": "CYRILLIC SMALL LETTER ABKHASIAN CHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IE HOOK", "comment": "", "uppercase_mapping": "04BC", "lowercase_mapping": "", "titlecase_mapping": "04BC", "symbol": "\u04BD" }, 1215: { "value": "04BF", "name": "CYRILLIC SMALL LETTER ABKHASIAN CHE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER IE HOOK OGONEK", "comment": "", "uppercase_mapping": "04BE", "lowercase_mapping": "", "titlecase_mapping": "04BE", "symbol": "\u04BF" }, 1218: { "value": "04C2", "name": "CYRILLIC SMALL LETTER ZHE WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0436 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER SHORT ZHE", "comment": "", "uppercase_mapping": "04C1", "lowercase_mapping": "", "titlecase_mapping": "04C1", "symbol": "\u04C2" }, 1220: { "value": "04C4", "name": "CYRILLIC SMALL LETTER KA WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER KA HOOK", "comment": "", "uppercase_mapping": "04C3", "lowercase_mapping": "", "titlecase_mapping": "04C3", "symbol": "\u04C4" }, 1222: { "value": "04C6", "name": "CYRILLIC SMALL LETTER EL WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04C5", "lowercase_mapping": "", "titlecase_mapping": "04C5", "symbol": "\u04C6" }, 1224: { "value": "04C8", "name": "CYRILLIC SMALL LETTER EN WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER EN HOOK", "comment": "", "uppercase_mapping": "04C7", "lowercase_mapping": "", "titlecase_mapping": "04C7", "symbol": "\u04C8" }, 1226: { "value": "04CA", "name": "CYRILLIC SMALL LETTER EN WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04C9", "lowercase_mapping": "", "titlecase_mapping": "04C9", "symbol": "\u04CA" }, 1228: { "value": "04CC", "name": "CYRILLIC SMALL LETTER KHAKASSIAN CHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "CYRILLIC SMALL LETTER CHE WITH LEFT DESCENDER", "comment": "", "uppercase_mapping": "04CB", "lowercase_mapping": "", "titlecase_mapping": "04CB", "symbol": "\u04CC" }, 1230: { "value": "04CE", "name": "CYRILLIC SMALL LETTER EM WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04CD", "lowercase_mapping": "", "titlecase_mapping": "04CD", "symbol": "\u04CE" }, 1231: { "value": "04CF", "name": "CYRILLIC SMALL LETTER PALOCHKA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04C0", "lowercase_mapping": "", "titlecase_mapping": "04C0", "symbol": "\u04CF" }, 1233: { "value": "04D1", "name": "CYRILLIC SMALL LETTER A WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0430 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D0", "lowercase_mapping": "", "titlecase_mapping": "04D0", "symbol": "\u04D1" }, 1235: { "value": "04D3", "name": "CYRILLIC SMALL LETTER A WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0430 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D2", "lowercase_mapping": "", "titlecase_mapping": "04D2", "symbol": "\u04D3" }, 1237: { "value": "04D5", "name": "CYRILLIC SMALL LIGATURE A IE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D4", "lowercase_mapping": "", "titlecase_mapping": "04D4", "symbol": "\u04D5" }, 1239: { "value": "04D7", "name": "CYRILLIC SMALL LETTER IE WITH BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0435 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D6", "lowercase_mapping": "", "titlecase_mapping": "04D6", "symbol": "\u04D7" }, 1241: { "value": "04D9", "name": "CYRILLIC SMALL LETTER SCHWA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04D8", "lowercase_mapping": "", "titlecase_mapping": "04D8", "symbol": "\u04D9" }, 1243: { "value": "04DB", "name": "CYRILLIC SMALL LETTER SCHWA WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "04D9 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04DA", "lowercase_mapping": "", "titlecase_mapping": "04DA", "symbol": "\u04DB" }, 1245: { "value": "04DD", "name": "CYRILLIC SMALL LETTER ZHE WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0436 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04DC", "lowercase_mapping": "", "titlecase_mapping": "04DC", "symbol": "\u04DD" }, 1247: { "value": "04DF", "name": "CYRILLIC SMALL LETTER ZE WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0437 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04DE", "lowercase_mapping": "", "titlecase_mapping": "04DE", "symbol": "\u04DF" }, 1249: { "value": "04E1", "name": "CYRILLIC SMALL LETTER ABKHASIAN DZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E0", "lowercase_mapping": "", "titlecase_mapping": "04E0", "symbol": "\u04E1" }, 1251: { "value": "04E3", "name": "CYRILLIC SMALL LETTER I WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0438 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E2", "lowercase_mapping": "", "titlecase_mapping": "04E2", "symbol": "\u04E3" }, 1253: { "value": "04E5", "name": "CYRILLIC SMALL LETTER I WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0438 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E4", "lowercase_mapping": "", "titlecase_mapping": "04E4", "symbol": "\u04E5" }, 1255: { "value": "04E7", "name": "CYRILLIC SMALL LETTER O WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "043E 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E6", "lowercase_mapping": "", "titlecase_mapping": "04E6", "symbol": "\u04E7" }, 1257: { "value": "04E9", "name": "CYRILLIC SMALL LETTER BARRED O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04E8", "lowercase_mapping": "", "titlecase_mapping": "04E8", "symbol": "\u04E9" }, 1259: { "value": "04EB", "name": "CYRILLIC SMALL LETTER BARRED O WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "04E9 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04EA", "lowercase_mapping": "", "titlecase_mapping": "04EA", "symbol": "\u04EB" }, 1261: { "value": "04ED", "name": "CYRILLIC SMALL LETTER E WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "044D 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04EC", "lowercase_mapping": "", "titlecase_mapping": "04EC", "symbol": "\u04ED" }, 1263: { "value": "04EF", "name": "CYRILLIC SMALL LETTER U WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0443 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04EE", "lowercase_mapping": "", "titlecase_mapping": "04EE", "symbol": "\u04EF" }, 1265: { "value": "04F1", "name": "CYRILLIC SMALL LETTER U WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0443 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F0", "lowercase_mapping": "", "titlecase_mapping": "04F0", "symbol": "\u04F1" }, 1267: { "value": "04F3", "name": "CYRILLIC SMALL LETTER U WITH DOUBLE ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0443 030B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F2", "lowercase_mapping": "", "titlecase_mapping": "04F2", "symbol": "\u04F3" }, 1269: { "value": "04F5", "name": "CYRILLIC SMALL LETTER CHE WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0447 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F4", "lowercase_mapping": "", "titlecase_mapping": "04F4", "symbol": "\u04F5" }, 1271: { "value": "04F7", "name": "CYRILLIC SMALL LETTER GHE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F6", "lowercase_mapping": "", "titlecase_mapping": "04F6", "symbol": "\u04F7" }, 1273: { "value": "04F9", "name": "CYRILLIC SMALL LETTER YERU WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "044B 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04F8", "lowercase_mapping": "", "titlecase_mapping": "04F8", "symbol": "\u04F9" }, 1275: { "value": "04FB", "name": "CYRILLIC SMALL LETTER GHE WITH STROKE AND HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04FA", "lowercase_mapping": "", "titlecase_mapping": "04FA", "symbol": "\u04FB" }, 1277: { "value": "04FD", "name": "CYRILLIC SMALL LETTER HA WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04FC", "lowercase_mapping": "", "titlecase_mapping": "04FC", "symbol": "\u04FD" }, 1279: { "value": "04FF", "name": "CYRILLIC SMALL LETTER HA WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "04FE", "lowercase_mapping": "", "titlecase_mapping": "04FE", "symbol": "\u04FF" }, 1281: { "value": "0501", "name": "CYRILLIC SMALL LETTER KOMI DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0500", "lowercase_mapping": "", "titlecase_mapping": "0500", "symbol": "\u0501" }, 1283: { "value": "0503", "name": "CYRILLIC SMALL LETTER KOMI DJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0502", "lowercase_mapping": "", "titlecase_mapping": "0502", "symbol": "\u0503" }, 1285: { "value": "0505", "name": "CYRILLIC SMALL LETTER KOMI ZJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0504", "lowercase_mapping": "", "titlecase_mapping": "0504", "symbol": "\u0505" }, 1287: { "value": "0507", "name": "CYRILLIC SMALL LETTER KOMI DZJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0506", "lowercase_mapping": "", "titlecase_mapping": "0506", "symbol": "\u0507" }, 1289: { "value": "0509", "name": "CYRILLIC SMALL LETTER KOMI LJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0508", "lowercase_mapping": "", "titlecase_mapping": "0508", "symbol": "\u0509" }, 1291: { "value": "050B", "name": "CYRILLIC SMALL LETTER KOMI NJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "050A", "lowercase_mapping": "", "titlecase_mapping": "050A", "symbol": "\u050B" }, 1293: { "value": "050D", "name": "CYRILLIC SMALL LETTER KOMI SJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "050C", "lowercase_mapping": "", "titlecase_mapping": "050C", "symbol": "\u050D" }, 1295: { "value": "050F", "name": "CYRILLIC SMALL LETTER KOMI TJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "050E", "lowercase_mapping": "", "titlecase_mapping": "050E", "symbol": "\u050F" }, 1297: { "value": "0511", "name": "CYRILLIC SMALL LETTER REVERSED ZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0510", "lowercase_mapping": "", "titlecase_mapping": "0510", "symbol": "\u0511" }, 1299: { "value": "0513", "name": "CYRILLIC SMALL LETTER EL WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0512", "lowercase_mapping": "", "titlecase_mapping": "0512", "symbol": "\u0513" }, 1301: { "value": "0515", "name": "CYRILLIC SMALL LETTER LHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0514", "lowercase_mapping": "", "titlecase_mapping": "0514", "symbol": "\u0515" }, 1303: { "value": "0517", "name": "CYRILLIC SMALL LETTER RHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0516", "lowercase_mapping": "", "titlecase_mapping": "0516", "symbol": "\u0517" }, 1305: { "value": "0519", "name": "CYRILLIC SMALL LETTER YAE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0518", "lowercase_mapping": "", "titlecase_mapping": "0518", "symbol": "\u0519" }, 1307: { "value": "051B", "name": "CYRILLIC SMALL LETTER QA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "051A", "lowercase_mapping": "", "titlecase_mapping": "051A", "symbol": "\u051B" }, 1309: { "value": "051D", "name": "CYRILLIC SMALL LETTER WE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "051C", "lowercase_mapping": "", "titlecase_mapping": "051C", "symbol": "\u051D" }, 1311: { "value": "051F", "name": "CYRILLIC SMALL LETTER ALEUT KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "051E", "lowercase_mapping": "", "titlecase_mapping": "051E", "symbol": "\u051F" }, 1313: { "value": "0521", "name": "CYRILLIC SMALL LETTER EL WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0520", "lowercase_mapping": "", "titlecase_mapping": "0520", "symbol": "\u0521" }, 1315: { "value": "0523", "name": "CYRILLIC SMALL LETTER EN WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0522", "lowercase_mapping": "", "titlecase_mapping": "0522", "symbol": "\u0523" }, 1317: { "value": "0525", "name": "CYRILLIC SMALL LETTER PE WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0524", "lowercase_mapping": "", "titlecase_mapping": "0524", "symbol": "\u0525" }, 1319: { "value": "0527", "name": "CYRILLIC SMALL LETTER SHHA WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0526", "lowercase_mapping": "", "titlecase_mapping": "0526", "symbol": "\u0527" }, 1321: { "value": "0529", "name": "CYRILLIC SMALL LETTER EN WITH LEFT HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0528", "lowercase_mapping": "", "titlecase_mapping": "0528", "symbol": "\u0529" }, 1323: { "value": "052B", "name": "CYRILLIC SMALL LETTER DZZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "052A", "lowercase_mapping": "", "titlecase_mapping": "052A", "symbol": "\u052B" }, 1325: { "value": "052D", "name": "CYRILLIC SMALL LETTER DCHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "052C", "lowercase_mapping": "", "titlecase_mapping": "052C", "symbol": "\u052D" }, 1327: { "value": "052F", "name": "CYRILLIC SMALL LETTER EL WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "052E", "lowercase_mapping": "", "titlecase_mapping": "052E", "symbol": "\u052F" }, 1377: { "value": "0561", "name": "ARMENIAN SMALL LETTER AYB", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0531", "lowercase_mapping": "", "titlecase_mapping": "0531", "symbol": "\u0561" }, 1378: { "value": "0562", "name": "ARMENIAN SMALL LETTER BEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0532", "lowercase_mapping": "", "titlecase_mapping": "0532", "symbol": "\u0562" }, 1379: { "value": "0563", "name": "ARMENIAN SMALL LETTER GIM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0533", "lowercase_mapping": "", "titlecase_mapping": "0533", "symbol": "\u0563" }, 1380: { "value": "0564", "name": "ARMENIAN SMALL LETTER DA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0534", "lowercase_mapping": "", "titlecase_mapping": "0534", "symbol": "\u0564" }, 1381: { "value": "0565", "name": "ARMENIAN SMALL LETTER ECH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0535", "lowercase_mapping": "", "titlecase_mapping": "0535", "symbol": "\u0565" }, 1382: { "value": "0566", "name": "ARMENIAN SMALL LETTER ZA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0536", "lowercase_mapping": "", "titlecase_mapping": "0536", "symbol": "\u0566" }, 1383: { "value": "0567", "name": "ARMENIAN SMALL LETTER EH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0537", "lowercase_mapping": "", "titlecase_mapping": "0537", "symbol": "\u0567" }, 1384: { "value": "0568", "name": "ARMENIAN SMALL LETTER ET", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0538", "lowercase_mapping": "", "titlecase_mapping": "0538", "symbol": "\u0568" }, 1385: { "value": "0569", "name": "ARMENIAN SMALL LETTER TO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0539", "lowercase_mapping": "", "titlecase_mapping": "0539", "symbol": "\u0569" }, 1386: { "value": "056A", "name": "ARMENIAN SMALL LETTER ZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053A", "lowercase_mapping": "", "titlecase_mapping": "053A", "symbol": "\u056A" }, 1387: { "value": "056B", "name": "ARMENIAN SMALL LETTER INI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053B", "lowercase_mapping": "", "titlecase_mapping": "053B", "symbol": "\u056B" }, 1388: { "value": "056C", "name": "ARMENIAN SMALL LETTER LIWN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053C", "lowercase_mapping": "", "titlecase_mapping": "053C", "symbol": "\u056C" }, 1389: { "value": "056D", "name": "ARMENIAN SMALL LETTER XEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053D", "lowercase_mapping": "", "titlecase_mapping": "053D", "symbol": "\u056D" }, 1390: { "value": "056E", "name": "ARMENIAN SMALL LETTER CA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053E", "lowercase_mapping": "", "titlecase_mapping": "053E", "symbol": "\u056E" }, 1391: { "value": "056F", "name": "ARMENIAN SMALL LETTER KEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "053F", "lowercase_mapping": "", "titlecase_mapping": "053F", "symbol": "\u056F" }, 1392: { "value": "0570", "name": "ARMENIAN SMALL LETTER HO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0540", "lowercase_mapping": "", "titlecase_mapping": "0540", "symbol": "\u0570" }, 1393: { "value": "0571", "name": "ARMENIAN SMALL LETTER JA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0541", "lowercase_mapping": "", "titlecase_mapping": "0541", "symbol": "\u0571" }, 1394: { "value": "0572", "name": "ARMENIAN SMALL LETTER GHAD", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "ARMENIAN SMALL LETTER LAD", "comment": "", "uppercase_mapping": "0542", "lowercase_mapping": "", "titlecase_mapping": "0542", "symbol": "\u0572" }, 1395: { "value": "0573", "name": "ARMENIAN SMALL LETTER CHEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0543", "lowercase_mapping": "", "titlecase_mapping": "0543", "symbol": "\u0573" }, 1396: { "value": "0574", "name": "ARMENIAN SMALL LETTER MEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0544", "lowercase_mapping": "", "titlecase_mapping": "0544", "symbol": "\u0574" }, 1397: { "value": "0575", "name": "ARMENIAN SMALL LETTER YI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0545", "lowercase_mapping": "", "titlecase_mapping": "0545", "symbol": "\u0575" }, 1398: { "value": "0576", "name": "ARMENIAN SMALL LETTER NOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0546", "lowercase_mapping": "", "titlecase_mapping": "0546", "symbol": "\u0576" }, 1399: { "value": "0577", "name": "ARMENIAN SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0547", "lowercase_mapping": "", "titlecase_mapping": "0547", "symbol": "\u0577" }, 1400: { "value": "0578", "name": "ARMENIAN SMALL LETTER VO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0548", "lowercase_mapping": "", "titlecase_mapping": "0548", "symbol": "\u0578" }, 1401: { "value": "0579", "name": "ARMENIAN SMALL LETTER CHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0549", "lowercase_mapping": "", "titlecase_mapping": "0549", "symbol": "\u0579" }, 1402: { "value": "057A", "name": "ARMENIAN SMALL LETTER PEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054A", "lowercase_mapping": "", "titlecase_mapping": "054A", "symbol": "\u057A" }, 1403: { "value": "057B", "name": "ARMENIAN SMALL LETTER JHEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054B", "lowercase_mapping": "", "titlecase_mapping": "054B", "symbol": "\u057B" }, 1404: { "value": "057C", "name": "ARMENIAN SMALL LETTER RA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054C", "lowercase_mapping": "", "titlecase_mapping": "054C", "symbol": "\u057C" }, 1405: { "value": "057D", "name": "ARMENIAN SMALL LETTER SEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054D", "lowercase_mapping": "", "titlecase_mapping": "054D", "symbol": "\u057D" }, 1406: { "value": "057E", "name": "ARMENIAN SMALL LETTER VEW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054E", "lowercase_mapping": "", "titlecase_mapping": "054E", "symbol": "\u057E" }, 1407: { "value": "057F", "name": "ARMENIAN SMALL LETTER TIWN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "054F", "lowercase_mapping": "", "titlecase_mapping": "054F", "symbol": "\u057F" }, 1408: { "value": "0580", "name": "ARMENIAN SMALL LETTER REH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0550", "lowercase_mapping": "", "titlecase_mapping": "0550", "symbol": "\u0580" }, 1409: { "value": "0581", "name": "ARMENIAN SMALL LETTER CO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0551", "lowercase_mapping": "", "titlecase_mapping": "0551", "symbol": "\u0581" }, 1410: { "value": "0582", "name": "ARMENIAN SMALL LETTER YIWN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0552", "lowercase_mapping": "", "titlecase_mapping": "0552", "symbol": "\u0582" }, 1411: { "value": "0583", "name": "ARMENIAN SMALL LETTER PIWR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0553", "lowercase_mapping": "", "titlecase_mapping": "0553", "symbol": "\u0583" }, 1412: { "value": "0584", "name": "ARMENIAN SMALL LETTER KEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0554", "lowercase_mapping": "", "titlecase_mapping": "0554", "symbol": "\u0584" }, 1413: { "value": "0585", "name": "ARMENIAN SMALL LETTER OH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0555", "lowercase_mapping": "", "titlecase_mapping": "0555", "symbol": "\u0585" }, 1414: { "value": "0586", "name": "ARMENIAN SMALL LETTER FEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0556", "lowercase_mapping": "", "titlecase_mapping": "0556", "symbol": "\u0586" }, 1415: { "value": "0587", "name": "ARMENIAN SMALL LIGATURE ECH YIWN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0565 0582", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u0587" }, 5112: { "value": "13F8", "name": "CHEROKEE SMALL LETTER YE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F0", "lowercase_mapping": "", "titlecase_mapping": "13F0", "symbol": "\u13F8" }, 5113: { "value": "13F9", "name": "CHEROKEE SMALL LETTER YI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F1", "lowercase_mapping": "", "titlecase_mapping": "13F1", "symbol": "\u13F9" }, 5114: { "value": "13FA", "name": "CHEROKEE SMALL LETTER YO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F2", "lowercase_mapping": "", "titlecase_mapping": "13F2", "symbol": "\u13FA" }, 5115: { "value": "13FB", "name": "CHEROKEE SMALL LETTER YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F3", "lowercase_mapping": "", "titlecase_mapping": "13F3", "symbol": "\u13FB" }, 5116: { "value": "13FC", "name": "CHEROKEE SMALL LETTER YV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F4", "lowercase_mapping": "", "titlecase_mapping": "13F4", "symbol": "\u13FC" }, 5117: { "value": "13FD", "name": "CHEROKEE SMALL LETTER MV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13F5", "lowercase_mapping": "", "titlecase_mapping": "13F5", "symbol": "\u13FD" }, 7296: { "value": "1C80", "name": "CYRILLIC SMALL LETTER ROUNDED VE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0412", "lowercase_mapping": "", "titlecase_mapping": "0412", "symbol": "\u1C80" }, 7297: { "value": "1C81", "name": "CYRILLIC SMALL LETTER LONG-LEGGED DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0414", "lowercase_mapping": "", "titlecase_mapping": "0414", "symbol": "\u1C81" }, 7298: { "value": "1C82", "name": "CYRILLIC SMALL LETTER NARROW O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "041E", "lowercase_mapping": "", "titlecase_mapping": "041E", "symbol": "\u1C82" }, 7299: { "value": "1C83", "name": "CYRILLIC SMALL LETTER WIDE ES", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0421", "lowercase_mapping": "", "titlecase_mapping": "0421", "symbol": "\u1C83" }, 7300: { "value": "1C84", "name": "CYRILLIC SMALL LETTER TALL TE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0422", "lowercase_mapping": "", "titlecase_mapping": "0422", "symbol": "\u1C84" }, 7301: { "value": "1C85", "name": "CYRILLIC SMALL LETTER THREE-LEGGED TE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0422", "lowercase_mapping": "", "titlecase_mapping": "0422", "symbol": "\u1C85" }, 7302: { "value": "1C86", "name": "CYRILLIC SMALL LETTER TALL HARD SIGN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "042A", "lowercase_mapping": "", "titlecase_mapping": "042A", "symbol": "\u1C86" }, 7303: { "value": "1C87", "name": "CYRILLIC SMALL LETTER TALL YAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0462", "lowercase_mapping": "", "titlecase_mapping": "0462", "symbol": "\u1C87" }, 7304: { "value": "1C88", "name": "CYRILLIC SMALL LETTER UNBLENDED UK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A64A", "lowercase_mapping": "", "titlecase_mapping": "A64A", "symbol": "\u1C88" }, 7424: { "value": "1D00", "name": "LATIN LETTER SMALL CAPITAL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D00" }, 7425: { "value": "1D01", "name": "LATIN LETTER SMALL CAPITAL AE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D01" }, 7426: { "value": "1D02", "name": "LATIN SMALL LETTER TURNED AE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D02" }, 7427: { "value": "1D03", "name": "LATIN LETTER SMALL CAPITAL BARRED B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D03" }, 7428: { "value": "1D04", "name": "LATIN LETTER SMALL CAPITAL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D04" }, 7429: { "value": "1D05", "name": "LATIN LETTER SMALL CAPITAL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D05" }, 7430: { "value": "1D06", "name": "LATIN LETTER SMALL CAPITAL ETH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D06" }, 7431: { "value": "1D07", "name": "LATIN LETTER SMALL CAPITAL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D07" }, 7432: { "value": "1D08", "name": "LATIN SMALL LETTER TURNED OPEN E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D08" }, 7433: { "value": "1D09", "name": "LATIN SMALL LETTER TURNED I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D09" }, 7434: { "value": "1D0A", "name": "LATIN LETTER SMALL CAPITAL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0A" }, 7435: { "value": "1D0B", "name": "LATIN LETTER SMALL CAPITAL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0B" }, 7436: { "value": "1D0C", "name": "LATIN LETTER SMALL CAPITAL L WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0C" }, 7437: { "value": "1D0D", "name": "LATIN LETTER SMALL CAPITAL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0D" }, 7438: { "value": "1D0E", "name": "LATIN LETTER SMALL CAPITAL REVERSED N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0E" }, 7439: { "value": "1D0F", "name": "LATIN LETTER SMALL CAPITAL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D0F" }, 7440: { "value": "1D10", "name": "LATIN LETTER SMALL CAPITAL OPEN O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D10" }, 7441: { "value": "1D11", "name": "LATIN SMALL LETTER SIDEWAYS O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D11" }, 7442: { "value": "1D12", "name": "LATIN SMALL LETTER SIDEWAYS OPEN O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D12" }, 7443: { "value": "1D13", "name": "LATIN SMALL LETTER SIDEWAYS O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D13" }, 7444: { "value": "1D14", "name": "LATIN SMALL LETTER TURNED OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D14" }, 7445: { "value": "1D15", "name": "LATIN LETTER SMALL CAPITAL OU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D15" }, 7446: { "value": "1D16", "name": "LATIN SMALL LETTER TOP HALF O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D16" }, 7447: { "value": "1D17", "name": "LATIN SMALL LETTER BOTTOM HALF O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D17" }, 7448: { "value": "1D18", "name": "LATIN LETTER SMALL CAPITAL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D18" }, 7449: { "value": "1D19", "name": "LATIN LETTER SMALL CAPITAL REVERSED R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D19" }, 7450: { "value": "1D1A", "name": "LATIN LETTER SMALL CAPITAL TURNED R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1A" }, 7451: { "value": "1D1B", "name": "LATIN LETTER SMALL CAPITAL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1B" }, 7452: { "value": "1D1C", "name": "LATIN LETTER SMALL CAPITAL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1C" }, 7453: { "value": "1D1D", "name": "LATIN SMALL LETTER SIDEWAYS U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1D" }, 7454: { "value": "1D1E", "name": "LATIN SMALL LETTER SIDEWAYS DIAERESIZED U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1E" }, 7455: { "value": "1D1F", "name": "LATIN SMALL LETTER SIDEWAYS TURNED M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D1F" }, 7456: { "value": "1D20", "name": "LATIN LETTER SMALL CAPITAL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D20" }, 7457: { "value": "1D21", "name": "LATIN LETTER SMALL CAPITAL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D21" }, 7458: { "value": "1D22", "name": "LATIN LETTER SMALL CAPITAL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D22" }, 7459: { "value": "1D23", "name": "LATIN LETTER SMALL CAPITAL EZH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D23" }, 7460: { "value": "1D24", "name": "LATIN LETTER VOICED LARYNGEAL SPIRANT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D24" }, 7461: { "value": "1D25", "name": "LATIN LETTER AIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D25" }, 7462: { "value": "1D26", "name": "GREEK LETTER SMALL CAPITAL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D26" }, 7463: { "value": "1D27", "name": "GREEK LETTER SMALL CAPITAL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D27" }, 7464: { "value": "1D28", "name": "GREEK LETTER SMALL CAPITAL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D28" }, 7465: { "value": "1D29", "name": "GREEK LETTER SMALL CAPITAL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D29" }, 7466: { "value": "1D2A", "name": "GREEK LETTER SMALL CAPITAL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D2A" }, 7467: { "value": "1D2B", "name": "CYRILLIC LETTER SMALL CAPITAL EL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D2B" }, 7531: { "value": "1D6B", "name": "LATIN SMALL LETTER UE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6B" }, 7532: { "value": "1D6C", "name": "LATIN SMALL LETTER B WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6C" }, 7533: { "value": "1D6D", "name": "LATIN SMALL LETTER D WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6D" }, 7534: { "value": "1D6E", "name": "LATIN SMALL LETTER F WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6E" }, 7535: { "value": "1D6F", "name": "LATIN SMALL LETTER M WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D6F" }, 7536: { "value": "1D70", "name": "LATIN SMALL LETTER N WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D70" }, 7537: { "value": "1D71", "name": "LATIN SMALL LETTER P WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D71" }, 7538: { "value": "1D72", "name": "LATIN SMALL LETTER R WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D72" }, 7539: { "value": "1D73", "name": "LATIN SMALL LETTER R WITH FISHHOOK AND MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D73" }, 7540: { "value": "1D74", "name": "LATIN SMALL LETTER S WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D74" }, 7541: { "value": "1D75", "name": "LATIN SMALL LETTER T WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D75" }, 7542: { "value": "1D76", "name": "LATIN SMALL LETTER Z WITH MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D76" }, 7543: { "value": "1D77", "name": "LATIN SMALL LETTER TURNED G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D77" }, 7545: { "value": "1D79", "name": "LATIN SMALL LETTER INSULAR G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A77D", "lowercase_mapping": "", "titlecase_mapping": "A77D", "symbol": "\u1D79" }, 7546: { "value": "1D7A", "name": "LATIN SMALL LETTER TH WITH STRIKETHROUGH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7A" }, 7547: { "value": "1D7B", "name": "LATIN SMALL CAPITAL LETTER I WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7B" }, 7548: { "value": "1D7C", "name": "LATIN SMALL LETTER IOTA WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7C" }, 7549: { "value": "1D7D", "name": "LATIN SMALL LETTER P WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C63", "lowercase_mapping": "", "titlecase_mapping": "2C63", "symbol": "\u1D7D" }, 7550: { "value": "1D7E", "name": "LATIN SMALL CAPITAL LETTER U WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7E" }, 7551: { "value": "1D7F", "name": "LATIN SMALL LETTER UPSILON WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D7F" }, 7552: { "value": "1D80", "name": "LATIN SMALL LETTER B WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D80" }, 7553: { "value": "1D81", "name": "LATIN SMALL LETTER D WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D81" }, 7554: { "value": "1D82", "name": "LATIN SMALL LETTER F WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D82" }, 7555: { "value": "1D83", "name": "LATIN SMALL LETTER G WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D83" }, 7556: { "value": "1D84", "name": "LATIN SMALL LETTER K WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D84" }, 7557: { "value": "1D85", "name": "LATIN SMALL LETTER L WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D85" }, 7558: { "value": "1D86", "name": "LATIN SMALL LETTER M WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D86" }, 7559: { "value": "1D87", "name": "LATIN SMALL LETTER N WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D87" }, 7560: { "value": "1D88", "name": "LATIN SMALL LETTER P WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D88" }, 7561: { "value": "1D89", "name": "LATIN SMALL LETTER R WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D89" }, 7562: { "value": "1D8A", "name": "LATIN SMALL LETTER S WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8A" }, 7563: { "value": "1D8B", "name": "LATIN SMALL LETTER ESH WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8B" }, 7564: { "value": "1D8C", "name": "LATIN SMALL LETTER V WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8C" }, 7565: { "value": "1D8D", "name": "LATIN SMALL LETTER X WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8D" }, 7566: { "value": "1D8E", "name": "LATIN SMALL LETTER Z WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8E" }, 7567: { "value": "1D8F", "name": "LATIN SMALL LETTER A WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D8F" }, 7568: { "value": "1D90", "name": "LATIN SMALL LETTER ALPHA WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D90" }, 7569: { "value": "1D91", "name": "LATIN SMALL LETTER D WITH HOOK AND TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D91" }, 7570: { "value": "1D92", "name": "LATIN SMALL LETTER E WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D92" }, 7571: { "value": "1D93", "name": "LATIN SMALL LETTER OPEN E WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D93" }, 7572: { "value": "1D94", "name": "LATIN SMALL LETTER REVERSED OPEN E WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D94" }, 7573: { "value": "1D95", "name": "LATIN SMALL LETTER SCHWA WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D95" }, 7574: { "value": "1D96", "name": "LATIN SMALL LETTER I WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D96" }, 7575: { "value": "1D97", "name": "LATIN SMALL LETTER OPEN O WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D97" }, 7576: { "value": "1D98", "name": "LATIN SMALL LETTER ESH WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D98" }, 7577: { "value": "1D99", "name": "LATIN SMALL LETTER U WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D99" }, 7578: { "value": "1D9A", "name": "LATIN SMALL LETTER EZH WITH RETROFLEX HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1D9A" }, 7681: { "value": "1E01", "name": "LATIN SMALL LETTER A WITH RING BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0325", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E00", "lowercase_mapping": "", "titlecase_mapping": "1E00", "symbol": "\u1E01" }, 7683: { "value": "1E03", "name": "LATIN SMALL LETTER B WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0062 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E02", "lowercase_mapping": "", "titlecase_mapping": "1E02", "symbol": "\u1E03" }, 7685: { "value": "1E05", "name": "LATIN SMALL LETTER B WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0062 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E04", "lowercase_mapping": "", "titlecase_mapping": "1E04", "symbol": "\u1E05" }, 7687: { "value": "1E07", "name": "LATIN SMALL LETTER B WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0062 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E06", "lowercase_mapping": "", "titlecase_mapping": "1E06", "symbol": "\u1E07" }, 7689: { "value": "1E09", "name": "LATIN SMALL LETTER C WITH CEDILLA AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E7 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E08", "lowercase_mapping": "", "titlecase_mapping": "1E08", "symbol": "\u1E09" }, 7691: { "value": "1E0B", "name": "LATIN SMALL LETTER D WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E0A", "lowercase_mapping": "", "titlecase_mapping": "1E0A", "symbol": "\u1E0B" }, 7693: { "value": "1E0D", "name": "LATIN SMALL LETTER D WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E0C", "lowercase_mapping": "", "titlecase_mapping": "1E0C", "symbol": "\u1E0D" }, 7695: { "value": "1E0F", "name": "LATIN SMALL LETTER D WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E0E", "lowercase_mapping": "", "titlecase_mapping": "1E0E", "symbol": "\u1E0F" }, 7697: { "value": "1E11", "name": "LATIN SMALL LETTER D WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E10", "lowercase_mapping": "", "titlecase_mapping": "1E10", "symbol": "\u1E11" }, 7699: { "value": "1E13", "name": "LATIN SMALL LETTER D WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0064 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E12", "lowercase_mapping": "", "titlecase_mapping": "1E12", "symbol": "\u1E13" }, 7701: { "value": "1E15", "name": "LATIN SMALL LETTER E WITH MACRON AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0113 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E14", "lowercase_mapping": "", "titlecase_mapping": "1E14", "symbol": "\u1E15" }, 7703: { "value": "1E17", "name": "LATIN SMALL LETTER E WITH MACRON AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0113 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E16", "lowercase_mapping": "", "titlecase_mapping": "1E16", "symbol": "\u1E17" }, 7705: { "value": "1E19", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E18", "lowercase_mapping": "", "titlecase_mapping": "1E18", "symbol": "\u1E19" }, 7707: { "value": "1E1B", "name": "LATIN SMALL LETTER E WITH TILDE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0330", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E1A", "lowercase_mapping": "", "titlecase_mapping": "1E1A", "symbol": "\u1E1B" }, 7709: { "value": "1E1D", "name": "LATIN SMALL LETTER E WITH CEDILLA AND BREVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0229 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E1C", "lowercase_mapping": "", "titlecase_mapping": "1E1C", "symbol": "\u1E1D" }, 7711: { "value": "1E1F", "name": "LATIN SMALL LETTER F WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0066 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E1E", "lowercase_mapping": "", "titlecase_mapping": "1E1E", "symbol": "\u1E1F" }, 7713: { "value": "1E21", "name": "LATIN SMALL LETTER G WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0067 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E20", "lowercase_mapping": "", "titlecase_mapping": "1E20", "symbol": "\u1E21" }, 7715: { "value": "1E23", "name": "LATIN SMALL LETTER H WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E22", "lowercase_mapping": "", "titlecase_mapping": "1E22", "symbol": "\u1E23" }, 7717: { "value": "1E25", "name": "LATIN SMALL LETTER H WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E24", "lowercase_mapping": "", "titlecase_mapping": "1E24", "symbol": "\u1E25" }, 7719: { "value": "1E27", "name": "LATIN SMALL LETTER H WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E26", "lowercase_mapping": "", "titlecase_mapping": "1E26", "symbol": "\u1E27" }, 7721: { "value": "1E29", "name": "LATIN SMALL LETTER H WITH CEDILLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0327", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E28", "lowercase_mapping": "", "titlecase_mapping": "1E28", "symbol": "\u1E29" }, 7723: { "value": "1E2B", "name": "LATIN SMALL LETTER H WITH BREVE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 032E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E2A", "lowercase_mapping": "", "titlecase_mapping": "1E2A", "symbol": "\u1E2B" }, 7725: { "value": "1E2D", "name": "LATIN SMALL LETTER I WITH TILDE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0330", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E2C", "lowercase_mapping": "", "titlecase_mapping": "1E2C", "symbol": "\u1E2D" }, 7727: { "value": "1E2F", "name": "LATIN SMALL LETTER I WITH DIAERESIS AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EF 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E2E", "lowercase_mapping": "", "titlecase_mapping": "1E2E", "symbol": "\u1E2F" }, 7729: { "value": "1E31", "name": "LATIN SMALL LETTER K WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E30", "lowercase_mapping": "", "titlecase_mapping": "1E30", "symbol": "\u1E31" }, 7731: { "value": "1E33", "name": "LATIN SMALL LETTER K WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E32", "lowercase_mapping": "", "titlecase_mapping": "1E32", "symbol": "\u1E33" }, 7733: { "value": "1E35", "name": "LATIN SMALL LETTER K WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006B 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E34", "lowercase_mapping": "", "titlecase_mapping": "1E34", "symbol": "\u1E35" }, 7735: { "value": "1E37", "name": "LATIN SMALL LETTER L WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E36", "lowercase_mapping": "", "titlecase_mapping": "1E36", "symbol": "\u1E37" }, 7737: { "value": "1E39", "name": "LATIN SMALL LETTER L WITH DOT BELOW AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1E37 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E38", "lowercase_mapping": "", "titlecase_mapping": "1E38", "symbol": "\u1E39" }, 7739: { "value": "1E3B", "name": "LATIN SMALL LETTER L WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E3A", "lowercase_mapping": "", "titlecase_mapping": "1E3A", "symbol": "\u1E3B" }, 7741: { "value": "1E3D", "name": "LATIN SMALL LETTER L WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006C 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E3C", "lowercase_mapping": "", "titlecase_mapping": "1E3C", "symbol": "\u1E3D" }, 7743: { "value": "1E3F", "name": "LATIN SMALL LETTER M WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006D 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E3E", "lowercase_mapping": "", "titlecase_mapping": "1E3E", "symbol": "\u1E3F" }, 7745: { "value": "1E41", "name": "LATIN SMALL LETTER M WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006D 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E40", "lowercase_mapping": "", "titlecase_mapping": "1E40", "symbol": "\u1E41" }, 7747: { "value": "1E43", "name": "LATIN SMALL LETTER M WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006D 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E42", "lowercase_mapping": "", "titlecase_mapping": "1E42", "symbol": "\u1E43" }, 7749: { "value": "1E45", "name": "LATIN SMALL LETTER N WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E44", "lowercase_mapping": "", "titlecase_mapping": "1E44", "symbol": "\u1E45" }, 7751: { "value": "1E47", "name": "LATIN SMALL LETTER N WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E46", "lowercase_mapping": "", "titlecase_mapping": "1E46", "symbol": "\u1E47" }, 7753: { "value": "1E49", "name": "LATIN SMALL LETTER N WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E48", "lowercase_mapping": "", "titlecase_mapping": "1E48", "symbol": "\u1E49" }, 7755: { "value": "1E4B", "name": "LATIN SMALL LETTER N WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006E 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E4A", "lowercase_mapping": "", "titlecase_mapping": "1E4A", "symbol": "\u1E4B" }, 7757: { "value": "1E4D", "name": "LATIN SMALL LETTER O WITH TILDE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F5 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E4C", "lowercase_mapping": "", "titlecase_mapping": "1E4C", "symbol": "\u1E4D" }, 7759: { "value": "1E4F", "name": "LATIN SMALL LETTER O WITH TILDE AND DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F5 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E4E", "lowercase_mapping": "", "titlecase_mapping": "1E4E", "symbol": "\u1E4F" }, 7761: { "value": "1E51", "name": "LATIN SMALL LETTER O WITH MACRON AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "014D 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E50", "lowercase_mapping": "", "titlecase_mapping": "1E50", "symbol": "\u1E51" }, 7763: { "value": "1E53", "name": "LATIN SMALL LETTER O WITH MACRON AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "014D 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E52", "lowercase_mapping": "", "titlecase_mapping": "1E52", "symbol": "\u1E53" }, 7765: { "value": "1E55", "name": "LATIN SMALL LETTER P WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0070 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E54", "lowercase_mapping": "", "titlecase_mapping": "1E54", "symbol": "\u1E55" }, 7767: { "value": "1E57", "name": "LATIN SMALL LETTER P WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0070 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E56", "lowercase_mapping": "", "titlecase_mapping": "1E56", "symbol": "\u1E57" }, 7769: { "value": "1E59", "name": "LATIN SMALL LETTER R WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E58", "lowercase_mapping": "", "titlecase_mapping": "1E58", "symbol": "\u1E59" }, 7771: { "value": "1E5B", "name": "LATIN SMALL LETTER R WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E5A", "lowercase_mapping": "", "titlecase_mapping": "1E5A", "symbol": "\u1E5B" }, 7773: { "value": "1E5D", "name": "LATIN SMALL LETTER R WITH DOT BELOW AND MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1E5B 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E5C", "lowercase_mapping": "", "titlecase_mapping": "1E5C", "symbol": "\u1E5D" }, 7775: { "value": "1E5F", "name": "LATIN SMALL LETTER R WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0072 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E5E", "lowercase_mapping": "", "titlecase_mapping": "1E5E", "symbol": "\u1E5F" }, 7777: { "value": "1E61", "name": "LATIN SMALL LETTER S WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E60", "lowercase_mapping": "", "titlecase_mapping": "1E60", "symbol": "\u1E61" }, 7779: { "value": "1E63", "name": "LATIN SMALL LETTER S WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0073 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E62", "lowercase_mapping": "", "titlecase_mapping": "1E62", "symbol": "\u1E63" }, 7781: { "value": "1E65", "name": "LATIN SMALL LETTER S WITH ACUTE AND DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "015B 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E64", "lowercase_mapping": "", "titlecase_mapping": "1E64", "symbol": "\u1E65" }, 7783: { "value": "1E67", "name": "LATIN SMALL LETTER S WITH CARON AND DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0161 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E66", "lowercase_mapping": "", "titlecase_mapping": "1E66", "symbol": "\u1E67" }, 7785: { "value": "1E69", "name": "LATIN SMALL LETTER S WITH DOT BELOW AND DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1E63 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E68", "lowercase_mapping": "", "titlecase_mapping": "1E68", "symbol": "\u1E69" }, 7787: { "value": "1E6B", "name": "LATIN SMALL LETTER T WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E6A", "lowercase_mapping": "", "titlecase_mapping": "1E6A", "symbol": "\u1E6B" }, 7789: { "value": "1E6D", "name": "LATIN SMALL LETTER T WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E6C", "lowercase_mapping": "", "titlecase_mapping": "1E6C", "symbol": "\u1E6D" }, 7791: { "value": "1E6F", "name": "LATIN SMALL LETTER T WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E6E", "lowercase_mapping": "", "titlecase_mapping": "1E6E", "symbol": "\u1E6F" }, 7793: { "value": "1E71", "name": "LATIN SMALL LETTER T WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E70", "lowercase_mapping": "", "titlecase_mapping": "1E70", "symbol": "\u1E71" }, 7795: { "value": "1E73", "name": "LATIN SMALL LETTER U WITH DIAERESIS BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0324", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E72", "lowercase_mapping": "", "titlecase_mapping": "1E72", "symbol": "\u1E73" }, 7797: { "value": "1E75", "name": "LATIN SMALL LETTER U WITH TILDE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0330", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E74", "lowercase_mapping": "", "titlecase_mapping": "1E74", "symbol": "\u1E75" }, 7799: { "value": "1E77", "name": "LATIN SMALL LETTER U WITH CIRCUMFLEX BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 032D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E76", "lowercase_mapping": "", "titlecase_mapping": "1E76", "symbol": "\u1E77" }, 7801: { "value": "1E79", "name": "LATIN SMALL LETTER U WITH TILDE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0169 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E78", "lowercase_mapping": "", "titlecase_mapping": "1E78", "symbol": "\u1E79" }, 7803: { "value": "1E7B", "name": "LATIN SMALL LETTER U WITH MACRON AND DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "016B 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E7A", "lowercase_mapping": "", "titlecase_mapping": "1E7A", "symbol": "\u1E7B" }, 7805: { "value": "1E7D", "name": "LATIN SMALL LETTER V WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0076 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E7C", "lowercase_mapping": "", "titlecase_mapping": "1E7C", "symbol": "\u1E7D" }, 7807: { "value": "1E7F", "name": "LATIN SMALL LETTER V WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0076 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E7E", "lowercase_mapping": "", "titlecase_mapping": "1E7E", "symbol": "\u1E7F" }, 7809: { "value": "1E81", "name": "LATIN SMALL LETTER W WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E80", "lowercase_mapping": "", "titlecase_mapping": "1E80", "symbol": "\u1E81" }, 7811: { "value": "1E83", "name": "LATIN SMALL LETTER W WITH ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E82", "lowercase_mapping": "", "titlecase_mapping": "1E82", "symbol": "\u1E83" }, 7813: { "value": "1E85", "name": "LATIN SMALL LETTER W WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E84", "lowercase_mapping": "", "titlecase_mapping": "1E84", "symbol": "\u1E85" }, 7815: { "value": "1E87", "name": "LATIN SMALL LETTER W WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E86", "lowercase_mapping": "", "titlecase_mapping": "1E86", "symbol": "\u1E87" }, 7817: { "value": "1E89", "name": "LATIN SMALL LETTER W WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E88", "lowercase_mapping": "", "titlecase_mapping": "1E88", "symbol": "\u1E89" }, 7819: { "value": "1E8B", "name": "LATIN SMALL LETTER X WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0078 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E8A", "lowercase_mapping": "", "titlecase_mapping": "1E8A", "symbol": "\u1E8B" }, 7821: { "value": "1E8D", "name": "LATIN SMALL LETTER X WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0078 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E8C", "lowercase_mapping": "", "titlecase_mapping": "1E8C", "symbol": "\u1E8D" }, 7823: { "value": "1E8F", "name": "LATIN SMALL LETTER Y WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E8E", "lowercase_mapping": "", "titlecase_mapping": "1E8E", "symbol": "\u1E8F" }, 7825: { "value": "1E91", "name": "LATIN SMALL LETTER Z WITH CIRCUMFLEX", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90", "lowercase_mapping": "", "titlecase_mapping": "1E90", "symbol": "\u1E91" }, 7827: { "value": "1E93", "name": "LATIN SMALL LETTER Z WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E92", "lowercase_mapping": "", "titlecase_mapping": "1E92", "symbol": "\u1E93" }, 7829: { "value": "1E95", "name": "LATIN SMALL LETTER Z WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "007A 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E94", "lowercase_mapping": "", "titlecase_mapping": "1E94", "symbol": "\u1E95" }, 7830: { "value": "1E96", "name": "LATIN SMALL LETTER H WITH LINE BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0068 0331", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E96" }, 7831: { "value": "1E97", "name": "LATIN SMALL LETTER T WITH DIAERESIS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0074 0308", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E97" }, 7832: { "value": "1E98", "name": "LATIN SMALL LETTER W WITH RING ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0077 030A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E98" }, 7833: { "value": "1E99", "name": "LATIN SMALL LETTER Y WITH RING ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 030A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E99" }, 7834: { "value": "1E9A", "name": "LATIN SMALL LETTER A WITH RIGHT HALF RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061 02BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E9A" }, 7835: { "value": "1E9B", "name": "LATIN SMALL LETTER LONG S WITH DOT ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "017F 0307", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E60", "lowercase_mapping": "", "titlecase_mapping": "1E60", "symbol": "\u1E9B" }, 7836: { "value": "1E9C", "name": "LATIN SMALL LETTER LONG S WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E9C" }, 7837: { "value": "1E9D", "name": "LATIN SMALL LETTER LONG S WITH HIGH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E9D" }, 7839: { "value": "1E9F", "name": "LATIN SMALL LETTER DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1E9F" }, 7841: { "value": "1EA1", "name": "LATIN SMALL LETTER A WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA0", "lowercase_mapping": "", "titlecase_mapping": "1EA0", "symbol": "\u1EA1" }, 7843: { "value": "1EA3", "name": "LATIN SMALL LETTER A WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0061 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA2", "lowercase_mapping": "", "titlecase_mapping": "1EA2", "symbol": "\u1EA3" }, 7845: { "value": "1EA5", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E2 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA4", "lowercase_mapping": "", "titlecase_mapping": "1EA4", "symbol": "\u1EA5" }, 7847: { "value": "1EA7", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E2 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA6", "lowercase_mapping": "", "titlecase_mapping": "1EA6", "symbol": "\u1EA7" }, 7849: { "value": "1EA9", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E2 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EA8", "lowercase_mapping": "", "titlecase_mapping": "1EA8", "symbol": "\u1EA9" }, 7851: { "value": "1EAB", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00E2 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EAA", "lowercase_mapping": "", "titlecase_mapping": "1EAA", "symbol": "\u1EAB" }, 7853: { "value": "1EAD", "name": "LATIN SMALL LETTER A WITH CIRCUMFLEX AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1EA1 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EAC", "lowercase_mapping": "", "titlecase_mapping": "1EAC", "symbol": "\u1EAD" }, 7855: { "value": "1EAF", "name": "LATIN SMALL LETTER A WITH BREVE AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0103 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EAE", "lowercase_mapping": "", "titlecase_mapping": "1EAE", "symbol": "\u1EAF" }, 7857: { "value": "1EB1", "name": "LATIN SMALL LETTER A WITH BREVE AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0103 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB0", "lowercase_mapping": "", "titlecase_mapping": "1EB0", "symbol": "\u1EB1" }, 7859: { "value": "1EB3", "name": "LATIN SMALL LETTER A WITH BREVE AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0103 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB2", "lowercase_mapping": "", "titlecase_mapping": "1EB2", "symbol": "\u1EB3" }, 7861: { "value": "1EB5", "name": "LATIN SMALL LETTER A WITH BREVE AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0103 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB4", "lowercase_mapping": "", "titlecase_mapping": "1EB4", "symbol": "\u1EB5" }, 7863: { "value": "1EB7", "name": "LATIN SMALL LETTER A WITH BREVE AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1EA1 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB6", "lowercase_mapping": "", "titlecase_mapping": "1EB6", "symbol": "\u1EB7" }, 7865: { "value": "1EB9", "name": "LATIN SMALL LETTER E WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EB8", "lowercase_mapping": "", "titlecase_mapping": "1EB8", "symbol": "\u1EB9" }, 7867: { "value": "1EBB", "name": "LATIN SMALL LETTER E WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EBA", "lowercase_mapping": "", "titlecase_mapping": "1EBA", "symbol": "\u1EBB" }, 7869: { "value": "1EBD", "name": "LATIN SMALL LETTER E WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0065 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EBC", "lowercase_mapping": "", "titlecase_mapping": "1EBC", "symbol": "\u1EBD" }, 7871: { "value": "1EBF", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EA 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EBE", "lowercase_mapping": "", "titlecase_mapping": "1EBE", "symbol": "\u1EBF" }, 7873: { "value": "1EC1", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EA 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC0", "lowercase_mapping": "", "titlecase_mapping": "1EC0", "symbol": "\u1EC1" }, 7875: { "value": "1EC3", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EA 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC2", "lowercase_mapping": "", "titlecase_mapping": "1EC2", "symbol": "\u1EC3" }, 7877: { "value": "1EC5", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00EA 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC4", "lowercase_mapping": "", "titlecase_mapping": "1EC4", "symbol": "\u1EC5" }, 7879: { "value": "1EC7", "name": "LATIN SMALL LETTER E WITH CIRCUMFLEX AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1EB9 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC6", "lowercase_mapping": "", "titlecase_mapping": "1EC6", "symbol": "\u1EC7" }, 7881: { "value": "1EC9", "name": "LATIN SMALL LETTER I WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EC8", "lowercase_mapping": "", "titlecase_mapping": "1EC8", "symbol": "\u1EC9" }, 7883: { "value": "1ECB", "name": "LATIN SMALL LETTER I WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0069 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ECA", "lowercase_mapping": "", "titlecase_mapping": "1ECA", "symbol": "\u1ECB" }, 7885: { "value": "1ECD", "name": "LATIN SMALL LETTER O WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ECC", "lowercase_mapping": "", "titlecase_mapping": "1ECC", "symbol": "\u1ECD" }, 7887: { "value": "1ECF", "name": "LATIN SMALL LETTER O WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "006F 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ECE", "lowercase_mapping": "", "titlecase_mapping": "1ECE", "symbol": "\u1ECF" }, 7889: { "value": "1ED1", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F4 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED0", "lowercase_mapping": "", "titlecase_mapping": "1ED0", "symbol": "\u1ED1" }, 7891: { "value": "1ED3", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F4 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED2", "lowercase_mapping": "", "titlecase_mapping": "1ED2", "symbol": "\u1ED3" }, 7893: { "value": "1ED5", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F4 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED4", "lowercase_mapping": "", "titlecase_mapping": "1ED4", "symbol": "\u1ED5" }, 7895: { "value": "1ED7", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "00F4 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED6", "lowercase_mapping": "", "titlecase_mapping": "1ED6", "symbol": "\u1ED7" }, 7897: { "value": "1ED9", "name": "LATIN SMALL LETTER O WITH CIRCUMFLEX AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1ECD 0302", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1ED8", "lowercase_mapping": "", "titlecase_mapping": "1ED8", "symbol": "\u1ED9" }, 7899: { "value": "1EDB", "name": "LATIN SMALL LETTER O WITH HORN AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EDA", "lowercase_mapping": "", "titlecase_mapping": "1EDA", "symbol": "\u1EDB" }, 7901: { "value": "1EDD", "name": "LATIN SMALL LETTER O WITH HORN AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EDC", "lowercase_mapping": "", "titlecase_mapping": "1EDC", "symbol": "\u1EDD" }, 7903: { "value": "1EDF", "name": "LATIN SMALL LETTER O WITH HORN AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EDE", "lowercase_mapping": "", "titlecase_mapping": "1EDE", "symbol": "\u1EDF" }, 7905: { "value": "1EE1", "name": "LATIN SMALL LETTER O WITH HORN AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE0", "lowercase_mapping": "", "titlecase_mapping": "1EE0", "symbol": "\u1EE1" }, 7907: { "value": "1EE3", "name": "LATIN SMALL LETTER O WITH HORN AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01A1 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE2", "lowercase_mapping": "", "titlecase_mapping": "1EE2", "symbol": "\u1EE3" }, 7909: { "value": "1EE5", "name": "LATIN SMALL LETTER U WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE4", "lowercase_mapping": "", "titlecase_mapping": "1EE4", "symbol": "\u1EE5" }, 7911: { "value": "1EE7", "name": "LATIN SMALL LETTER U WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0075 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE6", "lowercase_mapping": "", "titlecase_mapping": "1EE6", "symbol": "\u1EE7" }, 7913: { "value": "1EE9", "name": "LATIN SMALL LETTER U WITH HORN AND ACUTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EE8", "lowercase_mapping": "", "titlecase_mapping": "1EE8", "symbol": "\u1EE9" }, 7915: { "value": "1EEB", "name": "LATIN SMALL LETTER U WITH HORN AND GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EEA", "lowercase_mapping": "", "titlecase_mapping": "1EEA", "symbol": "\u1EEB" }, 7917: { "value": "1EED", "name": "LATIN SMALL LETTER U WITH HORN AND HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EEC", "lowercase_mapping": "", "titlecase_mapping": "1EEC", "symbol": "\u1EED" }, 7919: { "value": "1EEF", "name": "LATIN SMALL LETTER U WITH HORN AND TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EEE", "lowercase_mapping": "", "titlecase_mapping": "1EEE", "symbol": "\u1EEF" }, 7921: { "value": "1EF1", "name": "LATIN SMALL LETTER U WITH HORN AND DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "01B0 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF0", "lowercase_mapping": "", "titlecase_mapping": "1EF0", "symbol": "\u1EF1" }, 7923: { "value": "1EF3", "name": "LATIN SMALL LETTER Y WITH GRAVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF2", "lowercase_mapping": "", "titlecase_mapping": "1EF2", "symbol": "\u1EF3" }, 7925: { "value": "1EF5", "name": "LATIN SMALL LETTER Y WITH DOT BELOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0323", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF4", "lowercase_mapping": "", "titlecase_mapping": "1EF4", "symbol": "\u1EF5" }, 7927: { "value": "1EF7", "name": "LATIN SMALL LETTER Y WITH HOOK ABOVE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0309", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF6", "lowercase_mapping": "", "titlecase_mapping": "1EF6", "symbol": "\u1EF7" }, 7929: { "value": "1EF9", "name": "LATIN SMALL LETTER Y WITH TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0079 0303", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EF8", "lowercase_mapping": "", "titlecase_mapping": "1EF8", "symbol": "\u1EF9" }, 7931: { "value": "1EFB", "name": "LATIN SMALL LETTER MIDDLE-WELSH LL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EFA", "lowercase_mapping": "", "titlecase_mapping": "1EFA", "symbol": "\u1EFB" }, 7933: { "value": "1EFD", "name": "LATIN SMALL LETTER MIDDLE-WELSH V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EFC", "lowercase_mapping": "", "titlecase_mapping": "1EFC", "symbol": "\u1EFD" }, 7935: { "value": "1EFF", "name": "LATIN SMALL LETTER Y WITH LOOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1EFE", "lowercase_mapping": "", "titlecase_mapping": "1EFE", "symbol": "\u1EFF" }, 7936: { "value": "1F00", "name": "GREEK SMALL LETTER ALPHA WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F08", "lowercase_mapping": "", "titlecase_mapping": "1F08", "symbol": "\u1F00" }, 7937: { "value": "1F01", "name": "GREEK SMALL LETTER ALPHA WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F09", "lowercase_mapping": "", "titlecase_mapping": "1F09", "symbol": "\u1F01" }, 7938: { "value": "1F02", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F00 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0A", "lowercase_mapping": "", "titlecase_mapping": "1F0A", "symbol": "\u1F02" }, 7939: { "value": "1F03", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F01 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0B", "lowercase_mapping": "", "titlecase_mapping": "1F0B", "symbol": "\u1F03" }, 7940: { "value": "1F04", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F00 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0C", "lowercase_mapping": "", "titlecase_mapping": "1F0C", "symbol": "\u1F04" }, 7941: { "value": "1F05", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F01 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0D", "lowercase_mapping": "", "titlecase_mapping": "1F0D", "symbol": "\u1F05" }, 7942: { "value": "1F06", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F00 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0E", "lowercase_mapping": "", "titlecase_mapping": "1F0E", "symbol": "\u1F06" }, 7943: { "value": "1F07", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F01 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F0F", "lowercase_mapping": "", "titlecase_mapping": "1F0F", "symbol": "\u1F07" }, 7952: { "value": "1F10", "name": "GREEK SMALL LETTER EPSILON WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B5 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F18", "lowercase_mapping": "", "titlecase_mapping": "1F18", "symbol": "\u1F10" }, 7953: { "value": "1F11", "name": "GREEK SMALL LETTER EPSILON WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B5 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F19", "lowercase_mapping": "", "titlecase_mapping": "1F19", "symbol": "\u1F11" }, 7954: { "value": "1F12", "name": "GREEK SMALL LETTER EPSILON WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F10 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F1A", "lowercase_mapping": "", "titlecase_mapping": "1F1A", "symbol": "\u1F12" }, 7955: { "value": "1F13", "name": "GREEK SMALL LETTER EPSILON WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F11 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F1B", "lowercase_mapping": "", "titlecase_mapping": "1F1B", "symbol": "\u1F13" }, 7956: { "value": "1F14", "name": "GREEK SMALL LETTER EPSILON WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F10 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F1C", "lowercase_mapping": "", "titlecase_mapping": "1F1C", "symbol": "\u1F14" }, 7957: { "value": "1F15", "name": "GREEK SMALL LETTER EPSILON WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F11 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F1D", "lowercase_mapping": "", "titlecase_mapping": "1F1D", "symbol": "\u1F15" }, 7968: { "value": "1F20", "name": "GREEK SMALL LETTER ETA WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F28", "lowercase_mapping": "", "titlecase_mapping": "1F28", "symbol": "\u1F20" }, 7969: { "value": "1F21", "name": "GREEK SMALL LETTER ETA WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F29", "lowercase_mapping": "", "titlecase_mapping": "1F29", "symbol": "\u1F21" }, 7970: { "value": "1F22", "name": "GREEK SMALL LETTER ETA WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F20 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2A", "lowercase_mapping": "", "titlecase_mapping": "1F2A", "symbol": "\u1F22" }, 7971: { "value": "1F23", "name": "GREEK SMALL LETTER ETA WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F21 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2B", "lowercase_mapping": "", "titlecase_mapping": "1F2B", "symbol": "\u1F23" }, 7972: { "value": "1F24", "name": "GREEK SMALL LETTER ETA WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F20 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2C", "lowercase_mapping": "", "titlecase_mapping": "1F2C", "symbol": "\u1F24" }, 7973: { "value": "1F25", "name": "GREEK SMALL LETTER ETA WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F21 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2D", "lowercase_mapping": "", "titlecase_mapping": "1F2D", "symbol": "\u1F25" }, 7974: { "value": "1F26", "name": "GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F20 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2E", "lowercase_mapping": "", "titlecase_mapping": "1F2E", "symbol": "\u1F26" }, 7975: { "value": "1F27", "name": "GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F21 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F2F", "lowercase_mapping": "", "titlecase_mapping": "1F2F", "symbol": "\u1F27" }, 7984: { "value": "1F30", "name": "GREEK SMALL LETTER IOTA WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F38", "lowercase_mapping": "", "titlecase_mapping": "1F38", "symbol": "\u1F30" }, 7985: { "value": "1F31", "name": "GREEK SMALL LETTER IOTA WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F39", "lowercase_mapping": "", "titlecase_mapping": "1F39", "symbol": "\u1F31" }, 7986: { "value": "1F32", "name": "GREEK SMALL LETTER IOTA WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F30 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3A", "lowercase_mapping": "", "titlecase_mapping": "1F3A", "symbol": "\u1F32" }, 7987: { "value": "1F33", "name": "GREEK SMALL LETTER IOTA WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F31 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3B", "lowercase_mapping": "", "titlecase_mapping": "1F3B", "symbol": "\u1F33" }, 7988: { "value": "1F34", "name": "GREEK SMALL LETTER IOTA WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F30 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3C", "lowercase_mapping": "", "titlecase_mapping": "1F3C", "symbol": "\u1F34" }, 7989: { "value": "1F35", "name": "GREEK SMALL LETTER IOTA WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F31 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3D", "lowercase_mapping": "", "titlecase_mapping": "1F3D", "symbol": "\u1F35" }, 7990: { "value": "1F36", "name": "GREEK SMALL LETTER IOTA WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F30 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3E", "lowercase_mapping": "", "titlecase_mapping": "1F3E", "symbol": "\u1F36" }, 7991: { "value": "1F37", "name": "GREEK SMALL LETTER IOTA WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F31 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F3F", "lowercase_mapping": "", "titlecase_mapping": "1F3F", "symbol": "\u1F37" }, 8000: { "value": "1F40", "name": "GREEK SMALL LETTER OMICRON WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03BF 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F48", "lowercase_mapping": "", "titlecase_mapping": "1F48", "symbol": "\u1F40" }, 8001: { "value": "1F41", "name": "GREEK SMALL LETTER OMICRON WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03BF 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F49", "lowercase_mapping": "", "titlecase_mapping": "1F49", "symbol": "\u1F41" }, 8002: { "value": "1F42", "name": "GREEK SMALL LETTER OMICRON WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F40 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F4A", "lowercase_mapping": "", "titlecase_mapping": "1F4A", "symbol": "\u1F42" }, 8003: { "value": "1F43", "name": "GREEK SMALL LETTER OMICRON WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F41 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F4B", "lowercase_mapping": "", "titlecase_mapping": "1F4B", "symbol": "\u1F43" }, 8004: { "value": "1F44", "name": "GREEK SMALL LETTER OMICRON WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F40 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F4C", "lowercase_mapping": "", "titlecase_mapping": "1F4C", "symbol": "\u1F44" }, 8005: { "value": "1F45", "name": "GREEK SMALL LETTER OMICRON WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F41 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F4D", "lowercase_mapping": "", "titlecase_mapping": "1F4D", "symbol": "\u1F45" }, 8016: { "value": "1F50", "name": "GREEK SMALL LETTER UPSILON WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1F50" }, 8017: { "value": "1F51", "name": "GREEK SMALL LETTER UPSILON WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F59", "lowercase_mapping": "", "titlecase_mapping": "1F59", "symbol": "\u1F51" }, 8018: { "value": "1F52", "name": "GREEK SMALL LETTER UPSILON WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F50 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1F52" }, 8019: { "value": "1F53", "name": "GREEK SMALL LETTER UPSILON WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F51 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F5B", "lowercase_mapping": "", "titlecase_mapping": "1F5B", "symbol": "\u1F53" }, 8020: { "value": "1F54", "name": "GREEK SMALL LETTER UPSILON WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F50 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1F54" }, 8021: { "value": "1F55", "name": "GREEK SMALL LETTER UPSILON WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F51 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F5D", "lowercase_mapping": "", "titlecase_mapping": "1F5D", "symbol": "\u1F55" }, 8022: { "value": "1F56", "name": "GREEK SMALL LETTER UPSILON WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F50 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1F56" }, 8023: { "value": "1F57", "name": "GREEK SMALL LETTER UPSILON WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F51 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F5F", "lowercase_mapping": "", "titlecase_mapping": "1F5F", "symbol": "\u1F57" }, 8032: { "value": "1F60", "name": "GREEK SMALL LETTER OMEGA WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F68", "lowercase_mapping": "", "titlecase_mapping": "1F68", "symbol": "\u1F60" }, 8033: { "value": "1F61", "name": "GREEK SMALL LETTER OMEGA WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F69", "lowercase_mapping": "", "titlecase_mapping": "1F69", "symbol": "\u1F61" }, 8034: { "value": "1F62", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F60 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6A", "lowercase_mapping": "", "titlecase_mapping": "1F6A", "symbol": "\u1F62" }, 8035: { "value": "1F63", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F61 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6B", "lowercase_mapping": "", "titlecase_mapping": "1F6B", "symbol": "\u1F63" }, 8036: { "value": "1F64", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F60 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6C", "lowercase_mapping": "", "titlecase_mapping": "1F6C", "symbol": "\u1F64" }, 8037: { "value": "1F65", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F61 0301", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6D", "lowercase_mapping": "", "titlecase_mapping": "1F6D", "symbol": "\u1F65" }, 8038: { "value": "1F66", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F60 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6E", "lowercase_mapping": "", "titlecase_mapping": "1F6E", "symbol": "\u1F66" }, 8039: { "value": "1F67", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F61 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F6F", "lowercase_mapping": "", "titlecase_mapping": "1F6F", "symbol": "\u1F67" }, 8048: { "value": "1F70", "name": "GREEK SMALL LETTER ALPHA WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FBA", "lowercase_mapping": "", "titlecase_mapping": "1FBA", "symbol": "\u1F70" }, 8049: { "value": "1F71", "name": "GREEK SMALL LETTER ALPHA WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FBB", "lowercase_mapping": "", "titlecase_mapping": "1FBB", "symbol": "\u1F71" }, 8050: { "value": "1F72", "name": "GREEK SMALL LETTER EPSILON WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B5 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FC8", "lowercase_mapping": "", "titlecase_mapping": "1FC8", "symbol": "\u1F72" }, 8051: { "value": "1F73", "name": "GREEK SMALL LETTER EPSILON WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FC9", "lowercase_mapping": "", "titlecase_mapping": "1FC9", "symbol": "\u1F73" }, 8052: { "value": "1F74", "name": "GREEK SMALL LETTER ETA WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FCA", "lowercase_mapping": "", "titlecase_mapping": "1FCA", "symbol": "\u1F74" }, 8053: { "value": "1F75", "name": "GREEK SMALL LETTER ETA WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FCB", "lowercase_mapping": "", "titlecase_mapping": "1FCB", "symbol": "\u1F75" }, 8054: { "value": "1F76", "name": "GREEK SMALL LETTER IOTA WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FDA", "lowercase_mapping": "", "titlecase_mapping": "1FDA", "symbol": "\u1F76" }, 8055: { "value": "1F77", "name": "GREEK SMALL LETTER IOTA WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FDB", "lowercase_mapping": "", "titlecase_mapping": "1FDB", "symbol": "\u1F77" }, 8056: { "value": "1F78", "name": "GREEK SMALL LETTER OMICRON WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03BF 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FF8", "lowercase_mapping": "", "titlecase_mapping": "1FF8", "symbol": "\u1F78" }, 8057: { "value": "1F79", "name": "GREEK SMALL LETTER OMICRON WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FF9", "lowercase_mapping": "", "titlecase_mapping": "1FF9", "symbol": "\u1F79" }, 8058: { "value": "1F7A", "name": "GREEK SMALL LETTER UPSILON WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FEA", "lowercase_mapping": "", "titlecase_mapping": "1FEA", "symbol": "\u1F7A" }, 8059: { "value": "1F7B", "name": "GREEK SMALL LETTER UPSILON WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FEB", "lowercase_mapping": "", "titlecase_mapping": "1FEB", "symbol": "\u1F7B" }, 8060: { "value": "1F7C", "name": "GREEK SMALL LETTER OMEGA WITH VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FFA", "lowercase_mapping": "", "titlecase_mapping": "1FFA", "symbol": "\u1F7C" }, 8061: { "value": "1F7D", "name": "GREEK SMALL LETTER OMEGA WITH OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FFB", "lowercase_mapping": "", "titlecase_mapping": "1FFB", "symbol": "\u1F7D" }, 8064: { "value": "1F80", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F00 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F88", "lowercase_mapping": "", "titlecase_mapping": "1F88", "symbol": "\u1F80" }, 8065: { "value": "1F81", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F01 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F89", "lowercase_mapping": "", "titlecase_mapping": "1F89", "symbol": "\u1F81" }, 8066: { "value": "1F82", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F02 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8A", "lowercase_mapping": "", "titlecase_mapping": "1F8A", "symbol": "\u1F82" }, 8067: { "value": "1F83", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F03 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8B", "lowercase_mapping": "", "titlecase_mapping": "1F8B", "symbol": "\u1F83" }, 8068: { "value": "1F84", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F04 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8C", "lowercase_mapping": "", "titlecase_mapping": "1F8C", "symbol": "\u1F84" }, 8069: { "value": "1F85", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F05 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8D", "lowercase_mapping": "", "titlecase_mapping": "1F8D", "symbol": "\u1F85" }, 8070: { "value": "1F86", "name": "GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F06 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8E", "lowercase_mapping": "", "titlecase_mapping": "1F8E", "symbol": "\u1F86" }, 8071: { "value": "1F87", "name": "GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F07 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F8F", "lowercase_mapping": "", "titlecase_mapping": "1F8F", "symbol": "\u1F87" }, 8080: { "value": "1F90", "name": "GREEK SMALL LETTER ETA WITH PSILI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F20 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F98", "lowercase_mapping": "", "titlecase_mapping": "1F98", "symbol": "\u1F90" }, 8081: { "value": "1F91", "name": "GREEK SMALL LETTER ETA WITH DASIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F21 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F99", "lowercase_mapping": "", "titlecase_mapping": "1F99", "symbol": "\u1F91" }, 8082: { "value": "1F92", "name": "GREEK SMALL LETTER ETA WITH PSILI AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F22 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9A", "lowercase_mapping": "", "titlecase_mapping": "1F9A", "symbol": "\u1F92" }, 8083: { "value": "1F93", "name": "GREEK SMALL LETTER ETA WITH DASIA AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F23 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9B", "lowercase_mapping": "", "titlecase_mapping": "1F9B", "symbol": "\u1F93" }, 8084: { "value": "1F94", "name": "GREEK SMALL LETTER ETA WITH PSILI AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F24 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9C", "lowercase_mapping": "", "titlecase_mapping": "1F9C", "symbol": "\u1F94" }, 8085: { "value": "1F95", "name": "GREEK SMALL LETTER ETA WITH DASIA AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F25 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9D", "lowercase_mapping": "", "titlecase_mapping": "1F9D", "symbol": "\u1F95" }, 8086: { "value": "1F96", "name": "GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F26 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9E", "lowercase_mapping": "", "titlecase_mapping": "1F9E", "symbol": "\u1F96" }, 8087: { "value": "1F97", "name": "GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F27 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1F9F", "lowercase_mapping": "", "titlecase_mapping": "1F9F", "symbol": "\u1F97" }, 8096: { "value": "1FA0", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F60 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FA8", "lowercase_mapping": "", "titlecase_mapping": "1FA8", "symbol": "\u1FA0" }, 8097: { "value": "1FA1", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F61 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FA9", "lowercase_mapping": "", "titlecase_mapping": "1FA9", "symbol": "\u1FA1" }, 8098: { "value": "1FA2", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F62 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAA", "lowercase_mapping": "", "titlecase_mapping": "1FAA", "symbol": "\u1FA2" }, 8099: { "value": "1FA3", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F63 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAB", "lowercase_mapping": "", "titlecase_mapping": "1FAB", "symbol": "\u1FA3" }, 8100: { "value": "1FA4", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F64 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAC", "lowercase_mapping": "", "titlecase_mapping": "1FAC", "symbol": "\u1FA4" }, 8101: { "value": "1FA5", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F65 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAD", "lowercase_mapping": "", "titlecase_mapping": "1FAD", "symbol": "\u1FA5" }, 8102: { "value": "1FA6", "name": "GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F66 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAE", "lowercase_mapping": "", "titlecase_mapping": "1FAE", "symbol": "\u1FA6" }, 8103: { "value": "1FA7", "name": "GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F67 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FAF", "lowercase_mapping": "", "titlecase_mapping": "1FAF", "symbol": "\u1FA7" }, 8112: { "value": "1FB0", "name": "GREEK SMALL LETTER ALPHA WITH VRACHY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FB8", "lowercase_mapping": "", "titlecase_mapping": "1FB8", "symbol": "\u1FB0" }, 8113: { "value": "1FB1", "name": "GREEK SMALL LETTER ALPHA WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FB9", "lowercase_mapping": "", "titlecase_mapping": "1FB9", "symbol": "\u1FB1" }, 8114: { "value": "1FB2", "name": "GREEK SMALL LETTER ALPHA WITH VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F70 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FB2" }, 8115: { "value": "1FB3", "name": "GREEK SMALL LETTER ALPHA WITH YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FBC", "lowercase_mapping": "", "titlecase_mapping": "1FBC", "symbol": "\u1FB3" }, 8116: { "value": "1FB4", "name": "GREEK SMALL LETTER ALPHA WITH OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AC 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FB4" }, 8118: { "value": "1FB6", "name": "GREEK SMALL LETTER ALPHA WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B1 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FB6" }, 8119: { "value": "1FB7", "name": "GREEK SMALL LETTER ALPHA WITH PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1FB6 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FB7" }, 8126: { "value": "1FBE", "name": "GREEK PROSGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "0399", "lowercase_mapping": "", "titlecase_mapping": "0399", "symbol": "\u1FBE" }, 8130: { "value": "1FC2", "name": "GREEK SMALL LETTER ETA WITH VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F74 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FC2" }, 8131: { "value": "1FC3", "name": "GREEK SMALL LETTER ETA WITH YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FCC", "lowercase_mapping": "", "titlecase_mapping": "1FCC", "symbol": "\u1FC3" }, 8132: { "value": "1FC4", "name": "GREEK SMALL LETTER ETA WITH OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03AE 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FC4" }, 8134: { "value": "1FC6", "name": "GREEK SMALL LETTER ETA WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B7 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FC6" }, 8135: { "value": "1FC7", "name": "GREEK SMALL LETTER ETA WITH PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1FC6 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FC7" }, 8144: { "value": "1FD0", "name": "GREEK SMALL LETTER IOTA WITH VRACHY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FD8", "lowercase_mapping": "", "titlecase_mapping": "1FD8", "symbol": "\u1FD0" }, 8145: { "value": "1FD1", "name": "GREEK SMALL LETTER IOTA WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FD9", "lowercase_mapping": "", "titlecase_mapping": "1FD9", "symbol": "\u1FD1" }, 8146: { "value": "1FD2", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CA 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FD2" }, 8147: { "value": "1FD3", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "0390", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FD3" }, 8150: { "value": "1FD6", "name": "GREEK SMALL LETTER IOTA WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B9 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FD6" }, 8151: { "value": "1FD7", "name": "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CA 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FD7" }, 8160: { "value": "1FE0", "name": "GREEK SMALL LETTER UPSILON WITH VRACHY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0306", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FE8", "lowercase_mapping": "", "titlecase_mapping": "1FE8", "symbol": "\u1FE0" }, 8161: { "value": "1FE1", "name": "GREEK SMALL LETTER UPSILON WITH MACRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0304", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FE9", "lowercase_mapping": "", "titlecase_mapping": "1FE9", "symbol": "\u1FE1" }, 8162: { "value": "1FE2", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND VARIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CB 0300", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE2" }, 8163: { "value": "1FE3", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03B0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE3" }, 8164: { "value": "1FE4", "name": "GREEK SMALL LETTER RHO WITH PSILI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C1 0313", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE4" }, 8165: { "value": "1FE5", "name": "GREEK SMALL LETTER RHO WITH DASIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C1 0314", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FEC", "lowercase_mapping": "", "titlecase_mapping": "1FEC", "symbol": "\u1FE5" }, 8166: { "value": "1FE6", "name": "GREEK SMALL LETTER UPSILON WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C5 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE6" }, 8167: { "value": "1FE7", "name": "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CB 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FE7" }, 8178: { "value": "1FF2", "name": "GREEK SMALL LETTER OMEGA WITH VARIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1F7C 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FF2" }, 8179: { "value": "1FF3", "name": "GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1FFC", "lowercase_mapping": "", "titlecase_mapping": "1FFC", "symbol": "\u1FF3" }, 8180: { "value": "1FF4", "name": "GREEK SMALL LETTER OMEGA WITH OXIA AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03CE 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FF4" }, 8182: { "value": "1FF6", "name": "GREEK SMALL LETTER OMEGA WITH PERISPOMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "03C9 0342", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FF6" }, 8183: { "value": "1FF7", "name": "GREEK SMALL LETTER OMEGA WITH PERISPOMENI AND YPOGEGRAMMENI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "1FF6 0345", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u1FF7" }, 8458: { "value": "210A", "name": "SCRIPT SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u210A" }, 8462: { "value": "210E", "name": "PLANCK CONSTANT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u210E" }, 8463: { "value": "210F", "name": "PLANCK CONSTANT OVER TWO PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0127", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "PLANCK CONSTANT OVER 2 PI", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u210F" }, 8467: { "value": "2113", "name": "SCRIPT SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2113" }, 8495: { "value": "212F", "name": "SCRIPT SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u212F" }, 8500: { "value": "2134", "name": "SCRIPT SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2134" }, 8505: { "value": "2139", "name": "INFORMATION SOURCE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2139" }, 8508: { "value": "213C", "name": "DOUBLE-STRUCK SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u213C" }, 8509: { "value": "213D", "name": "DOUBLE-STRUCK SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u213D" }, 8518: { "value": "2146", "name": "DOUBLE-STRUCK ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2146" }, 8519: { "value": "2147", "name": "DOUBLE-STRUCK ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2147" }, 8520: { "value": "2148", "name": "DOUBLE-STRUCK ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2148" }, 8521: { "value": "2149", "name": "DOUBLE-STRUCK ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2149" }, 8526: { "value": "214E", "name": "TURNED SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2132", "lowercase_mapping": "", "titlecase_mapping": "2132", "symbol": "\u214E" }, 8580: { "value": "2184", "name": "LATIN SMALL LETTER REVERSED C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2183", "lowercase_mapping": "", "titlecase_mapping": "2183", "symbol": "\u2184" }, 11312: { "value": "2C30", "name": "GLAGOLITIC SMALL LETTER AZU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C00", "lowercase_mapping": "", "titlecase_mapping": "2C00", "symbol": "\u2C30" }, 11313: { "value": "2C31", "name": "GLAGOLITIC SMALL LETTER BUKY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C01", "lowercase_mapping": "", "titlecase_mapping": "2C01", "symbol": "\u2C31" }, 11314: { "value": "2C32", "name": "GLAGOLITIC SMALL LETTER VEDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C02", "lowercase_mapping": "", "titlecase_mapping": "2C02", "symbol": "\u2C32" }, 11315: { "value": "2C33", "name": "GLAGOLITIC SMALL LETTER GLAGOLI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C03", "lowercase_mapping": "", "titlecase_mapping": "2C03", "symbol": "\u2C33" }, 11316: { "value": "2C34", "name": "GLAGOLITIC SMALL LETTER DOBRO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C04", "lowercase_mapping": "", "titlecase_mapping": "2C04", "symbol": "\u2C34" }, 11317: { "value": "2C35", "name": "GLAGOLITIC SMALL LETTER YESTU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C05", "lowercase_mapping": "", "titlecase_mapping": "2C05", "symbol": "\u2C35" }, 11318: { "value": "2C36", "name": "GLAGOLITIC SMALL LETTER ZHIVETE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C06", "lowercase_mapping": "", "titlecase_mapping": "2C06", "symbol": "\u2C36" }, 11319: { "value": "2C37", "name": "GLAGOLITIC SMALL LETTER DZELO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C07", "lowercase_mapping": "", "titlecase_mapping": "2C07", "symbol": "\u2C37" }, 11320: { "value": "2C38", "name": "GLAGOLITIC SMALL LETTER ZEMLJA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C08", "lowercase_mapping": "", "titlecase_mapping": "2C08", "symbol": "\u2C38" }, 11321: { "value": "2C39", "name": "GLAGOLITIC SMALL LETTER IZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C09", "lowercase_mapping": "", "titlecase_mapping": "2C09", "symbol": "\u2C39" }, 11322: { "value": "2C3A", "name": "GLAGOLITIC SMALL LETTER INITIAL IZHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0A", "lowercase_mapping": "", "titlecase_mapping": "2C0A", "symbol": "\u2C3A" }, 11323: { "value": "2C3B", "name": "GLAGOLITIC SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0B", "lowercase_mapping": "", "titlecase_mapping": "2C0B", "symbol": "\u2C3B" }, 11324: { "value": "2C3C", "name": "GLAGOLITIC SMALL LETTER DJERVI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0C", "lowercase_mapping": "", "titlecase_mapping": "2C0C", "symbol": "\u2C3C" }, 11325: { "value": "2C3D", "name": "GLAGOLITIC SMALL LETTER KAKO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0D", "lowercase_mapping": "", "titlecase_mapping": "2C0D", "symbol": "\u2C3D" }, 11326: { "value": "2C3E", "name": "GLAGOLITIC SMALL LETTER LJUDIJE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0E", "lowercase_mapping": "", "titlecase_mapping": "2C0E", "symbol": "\u2C3E" }, 11327: { "value": "2C3F", "name": "GLAGOLITIC SMALL LETTER MYSLITE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C0F", "lowercase_mapping": "", "titlecase_mapping": "2C0F", "symbol": "\u2C3F" }, 11328: { "value": "2C40", "name": "GLAGOLITIC SMALL LETTER NASHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C10", "lowercase_mapping": "", "titlecase_mapping": "2C10", "symbol": "\u2C40" }, 11329: { "value": "2C41", "name": "GLAGOLITIC SMALL LETTER ONU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C11", "lowercase_mapping": "", "titlecase_mapping": "2C11", "symbol": "\u2C41" }, 11330: { "value": "2C42", "name": "GLAGOLITIC SMALL LETTER POKOJI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C12", "lowercase_mapping": "", "titlecase_mapping": "2C12", "symbol": "\u2C42" }, 11331: { "value": "2C43", "name": "GLAGOLITIC SMALL LETTER RITSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C13", "lowercase_mapping": "", "titlecase_mapping": "2C13", "symbol": "\u2C43" }, 11332: { "value": "2C44", "name": "GLAGOLITIC SMALL LETTER SLOVO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C14", "lowercase_mapping": "", "titlecase_mapping": "2C14", "symbol": "\u2C44" }, 11333: { "value": "2C45", "name": "GLAGOLITIC SMALL LETTER TVRIDO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C15", "lowercase_mapping": "", "titlecase_mapping": "2C15", "symbol": "\u2C45" }, 11334: { "value": "2C46", "name": "GLAGOLITIC SMALL LETTER UKU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C16", "lowercase_mapping": "", "titlecase_mapping": "2C16", "symbol": "\u2C46" }, 11335: { "value": "2C47", "name": "GLAGOLITIC SMALL LETTER FRITU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C17", "lowercase_mapping": "", "titlecase_mapping": "2C17", "symbol": "\u2C47" }, 11336: { "value": "2C48", "name": "GLAGOLITIC SMALL LETTER HERU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C18", "lowercase_mapping": "", "titlecase_mapping": "2C18", "symbol": "\u2C48" }, 11337: { "value": "2C49", "name": "GLAGOLITIC SMALL LETTER OTU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C19", "lowercase_mapping": "", "titlecase_mapping": "2C19", "symbol": "\u2C49" }, 11338: { "value": "2C4A", "name": "GLAGOLITIC SMALL LETTER PE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1A", "lowercase_mapping": "", "titlecase_mapping": "2C1A", "symbol": "\u2C4A" }, 11339: { "value": "2C4B", "name": "GLAGOLITIC SMALL LETTER SHTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1B", "lowercase_mapping": "", "titlecase_mapping": "2C1B", "symbol": "\u2C4B" }, 11340: { "value": "2C4C", "name": "GLAGOLITIC SMALL LETTER TSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1C", "lowercase_mapping": "", "titlecase_mapping": "2C1C", "symbol": "\u2C4C" }, 11341: { "value": "2C4D", "name": "GLAGOLITIC SMALL LETTER CHRIVI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1D", "lowercase_mapping": "", "titlecase_mapping": "2C1D", "symbol": "\u2C4D" }, 11342: { "value": "2C4E", "name": "GLAGOLITIC SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1E", "lowercase_mapping": "", "titlecase_mapping": "2C1E", "symbol": "\u2C4E" }, 11343: { "value": "2C4F", "name": "GLAGOLITIC SMALL LETTER YERU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C1F", "lowercase_mapping": "", "titlecase_mapping": "2C1F", "symbol": "\u2C4F" }, 11344: { "value": "2C50", "name": "GLAGOLITIC SMALL LETTER YERI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C20", "lowercase_mapping": "", "titlecase_mapping": "2C20", "symbol": "\u2C50" }, 11345: { "value": "2C51", "name": "GLAGOLITIC SMALL LETTER YATI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C21", "lowercase_mapping": "", "titlecase_mapping": "2C21", "symbol": "\u2C51" }, 11346: { "value": "2C52", "name": "GLAGOLITIC SMALL LETTER SPIDERY HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C22", "lowercase_mapping": "", "titlecase_mapping": "2C22", "symbol": "\u2C52" }, 11347: { "value": "2C53", "name": "GLAGOLITIC SMALL LETTER YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C23", "lowercase_mapping": "", "titlecase_mapping": "2C23", "symbol": "\u2C53" }, 11348: { "value": "2C54", "name": "GLAGOLITIC SMALL LETTER SMALL YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C24", "lowercase_mapping": "", "titlecase_mapping": "2C24", "symbol": "\u2C54" }, 11349: { "value": "2C55", "name": "GLAGOLITIC SMALL LETTER SMALL YUS WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C25", "lowercase_mapping": "", "titlecase_mapping": "2C25", "symbol": "\u2C55" }, 11350: { "value": "2C56", "name": "GLAGOLITIC SMALL LETTER YO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C26", "lowercase_mapping": "", "titlecase_mapping": "2C26", "symbol": "\u2C56" }, 11351: { "value": "2C57", "name": "GLAGOLITIC SMALL LETTER IOTATED SMALL YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C27", "lowercase_mapping": "", "titlecase_mapping": "2C27", "symbol": "\u2C57" }, 11352: { "value": "2C58", "name": "GLAGOLITIC SMALL LETTER BIG YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C28", "lowercase_mapping": "", "titlecase_mapping": "2C28", "symbol": "\u2C58" }, 11353: { "value": "2C59", "name": "GLAGOLITIC SMALL LETTER IOTATED BIG YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C29", "lowercase_mapping": "", "titlecase_mapping": "2C29", "symbol": "\u2C59" }, 11354: { "value": "2C5A", "name": "GLAGOLITIC SMALL LETTER FITA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2A", "lowercase_mapping": "", "titlecase_mapping": "2C2A", "symbol": "\u2C5A" }, 11355: { "value": "2C5B", "name": "GLAGOLITIC SMALL LETTER IZHITSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2B", "lowercase_mapping": "", "titlecase_mapping": "2C2B", "symbol": "\u2C5B" }, 11356: { "value": "2C5C", "name": "GLAGOLITIC SMALL LETTER SHTAPIC", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2C", "lowercase_mapping": "", "titlecase_mapping": "2C2C", "symbol": "\u2C5C" }, 11357: { "value": "2C5D", "name": "GLAGOLITIC SMALL LETTER TROKUTASTI A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2D", "lowercase_mapping": "", "titlecase_mapping": "2C2D", "symbol": "\u2C5D" }, 11358: { "value": "2C5E", "name": "GLAGOLITIC SMALL LETTER LATINATE MYSLITE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C2E", "lowercase_mapping": "", "titlecase_mapping": "2C2E", "symbol": "\u2C5E" }, 11361: { "value": "2C61", "name": "LATIN SMALL LETTER L WITH DOUBLE BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C60", "lowercase_mapping": "", "titlecase_mapping": "2C60", "symbol": "\u2C61" }, 11365: { "value": "2C65", "name": "LATIN SMALL LETTER A WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "023A", "lowercase_mapping": "", "titlecase_mapping": "023A", "symbol": "\u2C65" }, 11366: { "value": "2C66", "name": "LATIN SMALL LETTER T WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "023E", "lowercase_mapping": "", "titlecase_mapping": "023E", "symbol": "\u2C66" }, 11368: { "value": "2C68", "name": "LATIN SMALL LETTER H WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C67", "lowercase_mapping": "", "titlecase_mapping": "2C67", "symbol": "\u2C68" }, 11370: { "value": "2C6A", "name": "LATIN SMALL LETTER K WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C69", "lowercase_mapping": "", "titlecase_mapping": "2C69", "symbol": "\u2C6A" }, 11372: { "value": "2C6C", "name": "LATIN SMALL LETTER Z WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C6B", "lowercase_mapping": "", "titlecase_mapping": "2C6B", "symbol": "\u2C6C" }, 11377: { "value": "2C71", "name": "LATIN SMALL LETTER V WITH RIGHT HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C71" }, 11379: { "value": "2C73", "name": "LATIN SMALL LETTER W WITH HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C72", "lowercase_mapping": "", "titlecase_mapping": "2C72", "symbol": "\u2C73" }, 11380: { "value": "2C74", "name": "LATIN SMALL LETTER V WITH CURL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C74" }, 11382: { "value": "2C76", "name": "LATIN SMALL LETTER HALF H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C75", "lowercase_mapping": "", "titlecase_mapping": "2C75", "symbol": "\u2C76" }, 11383: { "value": "2C77", "name": "LATIN SMALL LETTER TAILLESS PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C77" }, 11384: { "value": "2C78", "name": "LATIN SMALL LETTER E WITH NOTCH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C78" }, 11385: { "value": "2C79", "name": "LATIN SMALL LETTER TURNED R WITH TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C79" }, 11386: { "value": "2C7A", "name": "LATIN SMALL LETTER O WITH LOW RING INSIDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C7A" }, 11387: { "value": "2C7B", "name": "LATIN LETTER SMALL CAPITAL TURNED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2C7B" }, 11393: { "value": "2C81", "name": "COPTIC SMALL LETTER ALFA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C80", "lowercase_mapping": "", "titlecase_mapping": "2C80", "symbol": "\u2C81" }, 11395: { "value": "2C83", "name": "COPTIC SMALL LETTER VIDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C82", "lowercase_mapping": "", "titlecase_mapping": "2C82", "symbol": "\u2C83" }, 11397: { "value": "2C85", "name": "COPTIC SMALL LETTER GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C84", "lowercase_mapping": "", "titlecase_mapping": "2C84", "symbol": "\u2C85" }, 11399: { "value": "2C87", "name": "COPTIC SMALL LETTER DALDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C86", "lowercase_mapping": "", "titlecase_mapping": "2C86", "symbol": "\u2C87" }, 11401: { "value": "2C89", "name": "COPTIC SMALL LETTER EIE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C88", "lowercase_mapping": "", "titlecase_mapping": "2C88", "symbol": "\u2C89" }, 11403: { "value": "2C8B", "name": "COPTIC SMALL LETTER SOU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C8A", "lowercase_mapping": "", "titlecase_mapping": "2C8A", "symbol": "\u2C8B" }, 11405: { "value": "2C8D", "name": "COPTIC SMALL LETTER ZATA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C8C", "lowercase_mapping": "", "titlecase_mapping": "2C8C", "symbol": "\u2C8D" }, 11407: { "value": "2C8F", "name": "COPTIC SMALL LETTER HATE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C8E", "lowercase_mapping": "", "titlecase_mapping": "2C8E", "symbol": "\u2C8F" }, 11409: { "value": "2C91", "name": "COPTIC SMALL LETTER THETHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C90", "lowercase_mapping": "", "titlecase_mapping": "2C90", "symbol": "\u2C91" }, 11411: { "value": "2C93", "name": "COPTIC SMALL LETTER IAUDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C92", "lowercase_mapping": "", "titlecase_mapping": "2C92", "symbol": "\u2C93" }, 11413: { "value": "2C95", "name": "COPTIC SMALL LETTER KAPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C94", "lowercase_mapping": "", "titlecase_mapping": "2C94", "symbol": "\u2C95" }, 11415: { "value": "2C97", "name": "COPTIC SMALL LETTER LAULA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C96", "lowercase_mapping": "", "titlecase_mapping": "2C96", "symbol": "\u2C97" }, 11417: { "value": "2C99", "name": "COPTIC SMALL LETTER MI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C98", "lowercase_mapping": "", "titlecase_mapping": "2C98", "symbol": "\u2C99" }, 11419: { "value": "2C9B", "name": "COPTIC SMALL LETTER NI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C9A", "lowercase_mapping": "", "titlecase_mapping": "2C9A", "symbol": "\u2C9B" }, 11421: { "value": "2C9D", "name": "COPTIC SMALL LETTER KSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C9C", "lowercase_mapping": "", "titlecase_mapping": "2C9C", "symbol": "\u2C9D" }, 11423: { "value": "2C9F", "name": "COPTIC SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2C9E", "lowercase_mapping": "", "titlecase_mapping": "2C9E", "symbol": "\u2C9F" }, 11425: { "value": "2CA1", "name": "COPTIC SMALL LETTER PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA0", "lowercase_mapping": "", "titlecase_mapping": "2CA0", "symbol": "\u2CA1" }, 11427: { "value": "2CA3", "name": "COPTIC SMALL LETTER RO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA2", "lowercase_mapping": "", "titlecase_mapping": "2CA2", "symbol": "\u2CA3" }, 11429: { "value": "2CA5", "name": "COPTIC SMALL LETTER SIMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA4", "lowercase_mapping": "", "titlecase_mapping": "2CA4", "symbol": "\u2CA5" }, 11431: { "value": "2CA7", "name": "COPTIC SMALL LETTER TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA6", "lowercase_mapping": "", "titlecase_mapping": "2CA6", "symbol": "\u2CA7" }, 11433: { "value": "2CA9", "name": "COPTIC SMALL LETTER UA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CA8", "lowercase_mapping": "", "titlecase_mapping": "2CA8", "symbol": "\u2CA9" }, 11435: { "value": "2CAB", "name": "COPTIC SMALL LETTER FI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CAA", "lowercase_mapping": "", "titlecase_mapping": "2CAA", "symbol": "\u2CAB" }, 11437: { "value": "2CAD", "name": "COPTIC SMALL LETTER KHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CAC", "lowercase_mapping": "", "titlecase_mapping": "2CAC", "symbol": "\u2CAD" }, 11439: { "value": "2CAF", "name": "COPTIC SMALL LETTER PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CAE", "lowercase_mapping": "", "titlecase_mapping": "2CAE", "symbol": "\u2CAF" }, 11441: { "value": "2CB1", "name": "COPTIC SMALL LETTER OOU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB0", "lowercase_mapping": "", "titlecase_mapping": "2CB0", "symbol": "\u2CB1" }, 11443: { "value": "2CB3", "name": "COPTIC SMALL LETTER DIALECT-P ALEF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB2", "lowercase_mapping": "", "titlecase_mapping": "2CB2", "symbol": "\u2CB3" }, 11445: { "value": "2CB5", "name": "COPTIC SMALL LETTER OLD COPTIC AIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB4", "lowercase_mapping": "", "titlecase_mapping": "2CB4", "symbol": "\u2CB5" }, 11447: { "value": "2CB7", "name": "COPTIC SMALL LETTER CRYPTOGRAMMIC EIE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB6", "lowercase_mapping": "", "titlecase_mapping": "2CB6", "symbol": "\u2CB7" }, 11449: { "value": "2CB9", "name": "COPTIC SMALL LETTER DIALECT-P KAPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CB8", "lowercase_mapping": "", "titlecase_mapping": "2CB8", "symbol": "\u2CB9" }, 11451: { "value": "2CBB", "name": "COPTIC SMALL LETTER DIALECT-P NI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CBA", "lowercase_mapping": "", "titlecase_mapping": "2CBA", "symbol": "\u2CBB" }, 11453: { "value": "2CBD", "name": "COPTIC SMALL LETTER CRYPTOGRAMMIC NI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CBC", "lowercase_mapping": "", "titlecase_mapping": "2CBC", "symbol": "\u2CBD" }, 11455: { "value": "2CBF", "name": "COPTIC SMALL LETTER OLD COPTIC OOU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CBE", "lowercase_mapping": "", "titlecase_mapping": "2CBE", "symbol": "\u2CBF" }, 11457: { "value": "2CC1", "name": "COPTIC SMALL LETTER SAMPI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC0", "lowercase_mapping": "", "titlecase_mapping": "2CC0", "symbol": "\u2CC1" }, 11459: { "value": "2CC3", "name": "COPTIC SMALL LETTER CROSSED SHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC2", "lowercase_mapping": "", "titlecase_mapping": "2CC2", "symbol": "\u2CC3" }, 11461: { "value": "2CC5", "name": "COPTIC SMALL LETTER OLD COPTIC SHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC4", "lowercase_mapping": "", "titlecase_mapping": "2CC4", "symbol": "\u2CC5" }, 11463: { "value": "2CC7", "name": "COPTIC SMALL LETTER OLD COPTIC ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC6", "lowercase_mapping": "", "titlecase_mapping": "2CC6", "symbol": "\u2CC7" }, 11465: { "value": "2CC9", "name": "COPTIC SMALL LETTER AKHMIMIC KHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CC8", "lowercase_mapping": "", "titlecase_mapping": "2CC8", "symbol": "\u2CC9" }, 11467: { "value": "2CCB", "name": "COPTIC SMALL LETTER DIALECT-P HORI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CCA", "lowercase_mapping": "", "titlecase_mapping": "2CCA", "symbol": "\u2CCB" }, 11469: { "value": "2CCD", "name": "COPTIC SMALL LETTER OLD COPTIC HORI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CCC", "lowercase_mapping": "", "titlecase_mapping": "2CCC", "symbol": "\u2CCD" }, 11471: { "value": "2CCF", "name": "COPTIC SMALL LETTER OLD COPTIC HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CCE", "lowercase_mapping": "", "titlecase_mapping": "2CCE", "symbol": "\u2CCF" }, 11473: { "value": "2CD1", "name": "COPTIC SMALL LETTER L-SHAPED HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD0", "lowercase_mapping": "", "titlecase_mapping": "2CD0", "symbol": "\u2CD1" }, 11475: { "value": "2CD3", "name": "COPTIC SMALL LETTER OLD COPTIC HEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD2", "lowercase_mapping": "", "titlecase_mapping": "2CD2", "symbol": "\u2CD3" }, 11477: { "value": "2CD5", "name": "COPTIC SMALL LETTER OLD COPTIC HAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD4", "lowercase_mapping": "", "titlecase_mapping": "2CD4", "symbol": "\u2CD5" }, 11479: { "value": "2CD7", "name": "COPTIC SMALL LETTER OLD COPTIC GANGIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD6", "lowercase_mapping": "", "titlecase_mapping": "2CD6", "symbol": "\u2CD7" }, 11481: { "value": "2CD9", "name": "COPTIC SMALL LETTER OLD COPTIC DJA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CD8", "lowercase_mapping": "", "titlecase_mapping": "2CD8", "symbol": "\u2CD9" }, 11483: { "value": "2CDB", "name": "COPTIC SMALL LETTER OLD COPTIC SHIMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CDA", "lowercase_mapping": "", "titlecase_mapping": "2CDA", "symbol": "\u2CDB" }, 11485: { "value": "2CDD", "name": "COPTIC SMALL LETTER OLD NUBIAN SHIMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CDC", "lowercase_mapping": "", "titlecase_mapping": "2CDC", "symbol": "\u2CDD" }, 11487: { "value": "2CDF", "name": "COPTIC SMALL LETTER OLD NUBIAN NGI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CDE", "lowercase_mapping": "", "titlecase_mapping": "2CDE", "symbol": "\u2CDF" }, 11489: { "value": "2CE1", "name": "COPTIC SMALL LETTER OLD NUBIAN NYI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CE0", "lowercase_mapping": "", "titlecase_mapping": "2CE0", "symbol": "\u2CE1" }, 11491: { "value": "2CE3", "name": "COPTIC SMALL LETTER OLD NUBIAN WAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CE2", "lowercase_mapping": "", "titlecase_mapping": "2CE2", "symbol": "\u2CE3" }, 11492: { "value": "2CE4", "name": "COPTIC SYMBOL KAI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\u2CE4" }, 11500: { "value": "2CEC", "name": "COPTIC SMALL LETTER CRYPTOGRAMMIC SHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CEB", "lowercase_mapping": "", "titlecase_mapping": "2CEB", "symbol": "\u2CEC" }, 11502: { "value": "2CEE", "name": "COPTIC SMALL LETTER CRYPTOGRAMMIC GANGIA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CED", "lowercase_mapping": "", "titlecase_mapping": "2CED", "symbol": "\u2CEE" }, 11507: { "value": "2CF3", "name": "COPTIC SMALL LETTER BOHAIRIC KHEI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "2CF2", "lowercase_mapping": "", "titlecase_mapping": "2CF2", "symbol": "\u2CF3" }, 11520: { "value": "2D00", "name": "GEORGIAN SMALL LETTER AN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A0", "lowercase_mapping": "", "titlecase_mapping": "10A0", "symbol": "\u2D00" }, 11521: { "value": "2D01", "name": "GEORGIAN SMALL LETTER BAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A1", "lowercase_mapping": "", "titlecase_mapping": "10A1", "symbol": "\u2D01" }, 11522: { "value": "2D02", "name": "GEORGIAN SMALL LETTER GAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A2", "lowercase_mapping": "", "titlecase_mapping": "10A2", "symbol": "\u2D02" }, 11523: { "value": "2D03", "name": "GEORGIAN SMALL LETTER DON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A3", "lowercase_mapping": "", "titlecase_mapping": "10A3", "symbol": "\u2D03" }, 11524: { "value": "2D04", "name": "GEORGIAN SMALL LETTER EN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A4", "lowercase_mapping": "", "titlecase_mapping": "10A4", "symbol": "\u2D04" }, 11525: { "value": "2D05", "name": "GEORGIAN SMALL LETTER VIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A5", "lowercase_mapping": "", "titlecase_mapping": "10A5", "symbol": "\u2D05" }, 11526: { "value": "2D06", "name": "GEORGIAN SMALL LETTER ZEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A6", "lowercase_mapping": "", "titlecase_mapping": "10A6", "symbol": "\u2D06" }, 11527: { "value": "2D07", "name": "GEORGIAN SMALL LETTER TAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A7", "lowercase_mapping": "", "titlecase_mapping": "10A7", "symbol": "\u2D07" }, 11528: { "value": "2D08", "name": "GEORGIAN SMALL LETTER IN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A8", "lowercase_mapping": "", "titlecase_mapping": "10A8", "symbol": "\u2D08" }, 11529: { "value": "2D09", "name": "GEORGIAN SMALL LETTER KAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10A9", "lowercase_mapping": "", "titlecase_mapping": "10A9", "symbol": "\u2D09" }, 11530: { "value": "2D0A", "name": "GEORGIAN SMALL LETTER LAS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AA", "lowercase_mapping": "", "titlecase_mapping": "10AA", "symbol": "\u2D0A" }, 11531: { "value": "2D0B", "name": "GEORGIAN SMALL LETTER MAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AB", "lowercase_mapping": "", "titlecase_mapping": "10AB", "symbol": "\u2D0B" }, 11532: { "value": "2D0C", "name": "GEORGIAN SMALL LETTER NAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AC", "lowercase_mapping": "", "titlecase_mapping": "10AC", "symbol": "\u2D0C" }, 11533: { "value": "2D0D", "name": "GEORGIAN SMALL LETTER ON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AD", "lowercase_mapping": "", "titlecase_mapping": "10AD", "symbol": "\u2D0D" }, 11534: { "value": "2D0E", "name": "GEORGIAN SMALL LETTER PAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AE", "lowercase_mapping": "", "titlecase_mapping": "10AE", "symbol": "\u2D0E" }, 11535: { "value": "2D0F", "name": "GEORGIAN SMALL LETTER ZHAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10AF", "lowercase_mapping": "", "titlecase_mapping": "10AF", "symbol": "\u2D0F" }, 11536: { "value": "2D10", "name": "GEORGIAN SMALL LETTER RAE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B0", "lowercase_mapping": "", "titlecase_mapping": "10B0", "symbol": "\u2D10" }, 11537: { "value": "2D11", "name": "GEORGIAN SMALL LETTER SAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B1", "lowercase_mapping": "", "titlecase_mapping": "10B1", "symbol": "\u2D11" }, 11538: { "value": "2D12", "name": "GEORGIAN SMALL LETTER TAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B2", "lowercase_mapping": "", "titlecase_mapping": "10B2", "symbol": "\u2D12" }, 11539: { "value": "2D13", "name": "GEORGIAN SMALL LETTER UN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B3", "lowercase_mapping": "", "titlecase_mapping": "10B3", "symbol": "\u2D13" }, 11540: { "value": "2D14", "name": "GEORGIAN SMALL LETTER PHAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B4", "lowercase_mapping": "", "titlecase_mapping": "10B4", "symbol": "\u2D14" }, 11541: { "value": "2D15", "name": "GEORGIAN SMALL LETTER KHAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B5", "lowercase_mapping": "", "titlecase_mapping": "10B5", "symbol": "\u2D15" }, 11542: { "value": "2D16", "name": "GEORGIAN SMALL LETTER GHAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B6", "lowercase_mapping": "", "titlecase_mapping": "10B6", "symbol": "\u2D16" }, 11543: { "value": "2D17", "name": "GEORGIAN SMALL LETTER QAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B7", "lowercase_mapping": "", "titlecase_mapping": "10B7", "symbol": "\u2D17" }, 11544: { "value": "2D18", "name": "GEORGIAN SMALL LETTER SHIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B8", "lowercase_mapping": "", "titlecase_mapping": "10B8", "symbol": "\u2D18" }, 11545: { "value": "2D19", "name": "GEORGIAN SMALL LETTER CHIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10B9", "lowercase_mapping": "", "titlecase_mapping": "10B9", "symbol": "\u2D19" }, 11546: { "value": "2D1A", "name": "GEORGIAN SMALL LETTER CAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BA", "lowercase_mapping": "", "titlecase_mapping": "10BA", "symbol": "\u2D1A" }, 11547: { "value": "2D1B", "name": "GEORGIAN SMALL LETTER JIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BB", "lowercase_mapping": "", "titlecase_mapping": "10BB", "symbol": "\u2D1B" }, 11548: { "value": "2D1C", "name": "GEORGIAN SMALL LETTER CIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BC", "lowercase_mapping": "", "titlecase_mapping": "10BC", "symbol": "\u2D1C" }, 11549: { "value": "2D1D", "name": "GEORGIAN SMALL LETTER CHAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BD", "lowercase_mapping": "", "titlecase_mapping": "10BD", "symbol": "\u2D1D" }, 11550: { "value": "2D1E", "name": "GEORGIAN SMALL LETTER XAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BE", "lowercase_mapping": "", "titlecase_mapping": "10BE", "symbol": "\u2D1E" }, 11551: { "value": "2D1F", "name": "GEORGIAN SMALL LETTER JHAN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10BF", "lowercase_mapping": "", "titlecase_mapping": "10BF", "symbol": "\u2D1F" }, 11552: { "value": "2D20", "name": "GEORGIAN SMALL LETTER HAE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C0", "lowercase_mapping": "", "titlecase_mapping": "10C0", "symbol": "\u2D20" }, 11553: { "value": "2D21", "name": "GEORGIAN SMALL LETTER HE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C1", "lowercase_mapping": "", "titlecase_mapping": "10C1", "symbol": "\u2D21" }, 11554: { "value": "2D22", "name": "GEORGIAN SMALL LETTER HIE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C2", "lowercase_mapping": "", "titlecase_mapping": "10C2", "symbol": "\u2D22" }, 11555: { "value": "2D23", "name": "GEORGIAN SMALL LETTER WE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C3", "lowercase_mapping": "", "titlecase_mapping": "10C3", "symbol": "\u2D23" }, 11556: { "value": "2D24", "name": "GEORGIAN SMALL LETTER HAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C4", "lowercase_mapping": "", "titlecase_mapping": "10C4", "symbol": "\u2D24" }, 11557: { "value": "2D25", "name": "GEORGIAN SMALL LETTER HOE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C5", "lowercase_mapping": "", "titlecase_mapping": "10C5", "symbol": "\u2D25" }, 11559: { "value": "2D27", "name": "GEORGIAN SMALL LETTER YN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C7", "lowercase_mapping": "", "titlecase_mapping": "10C7", "symbol": "\u2D27" }, 11565: { "value": "2D2D", "name": "GEORGIAN SMALL LETTER AEN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CD", "lowercase_mapping": "", "titlecase_mapping": "10CD", "symbol": "\u2D2D" }, 42561: { "value": "A641", "name": "CYRILLIC SMALL LETTER ZEMLYA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A640", "lowercase_mapping": "", "titlecase_mapping": "A640", "symbol": "\uA641" }, 42563: { "value": "A643", "name": "CYRILLIC SMALL LETTER DZELO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A642", "lowercase_mapping": "", "titlecase_mapping": "A642", "symbol": "\uA643" }, 42565: { "value": "A645", "name": "CYRILLIC SMALL LETTER REVERSED DZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A644", "lowercase_mapping": "", "titlecase_mapping": "A644", "symbol": "\uA645" }, 42567: { "value": "A647", "name": "CYRILLIC SMALL LETTER IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A646", "lowercase_mapping": "", "titlecase_mapping": "A646", "symbol": "\uA647" }, 42569: { "value": "A649", "name": "CYRILLIC SMALL LETTER DJERV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A648", "lowercase_mapping": "", "titlecase_mapping": "A648", "symbol": "\uA649" }, 42571: { "value": "A64B", "name": "CYRILLIC SMALL LETTER MONOGRAPH UK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A64A", "lowercase_mapping": "", "titlecase_mapping": "A64A", "symbol": "\uA64B" }, 42573: { "value": "A64D", "name": "CYRILLIC SMALL LETTER BROAD OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A64C", "lowercase_mapping": "", "titlecase_mapping": "A64C", "symbol": "\uA64D" }, 42575: { "value": "A64F", "name": "CYRILLIC SMALL LETTER NEUTRAL YER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A64E", "lowercase_mapping": "", "titlecase_mapping": "A64E", "symbol": "\uA64F" }, 42577: { "value": "A651", "name": "CYRILLIC SMALL LETTER YERU WITH BACK YER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A650", "lowercase_mapping": "", "titlecase_mapping": "A650", "symbol": "\uA651" }, 42579: { "value": "A653", "name": "CYRILLIC SMALL LETTER IOTIFIED YAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A652", "lowercase_mapping": "", "titlecase_mapping": "A652", "symbol": "\uA653" }, 42581: { "value": "A655", "name": "CYRILLIC SMALL LETTER REVERSED YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A654", "lowercase_mapping": "", "titlecase_mapping": "A654", "symbol": "\uA655" }, 42583: { "value": "A657", "name": "CYRILLIC SMALL LETTER IOTIFIED A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A656", "lowercase_mapping": "", "titlecase_mapping": "A656", "symbol": "\uA657" }, 42585: { "value": "A659", "name": "CYRILLIC SMALL LETTER CLOSED LITTLE YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A658", "lowercase_mapping": "", "titlecase_mapping": "A658", "symbol": "\uA659" }, 42587: { "value": "A65B", "name": "CYRILLIC SMALL LETTER BLENDED YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A65A", "lowercase_mapping": "", "titlecase_mapping": "A65A", "symbol": "\uA65B" }, 42589: { "value": "A65D", "name": "CYRILLIC SMALL LETTER IOTIFIED CLOSED LITTLE YUS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A65C", "lowercase_mapping": "", "titlecase_mapping": "A65C", "symbol": "\uA65D" }, 42591: { "value": "A65F", "name": "CYRILLIC SMALL LETTER YN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A65E", "lowercase_mapping": "", "titlecase_mapping": "A65E", "symbol": "\uA65F" }, 42593: { "value": "A661", "name": "CYRILLIC SMALL LETTER REVERSED TSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A660", "lowercase_mapping": "", "titlecase_mapping": "A660", "symbol": "\uA661" }, 42595: { "value": "A663", "name": "CYRILLIC SMALL LETTER SOFT DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A662", "lowercase_mapping": "", "titlecase_mapping": "A662", "symbol": "\uA663" }, 42597: { "value": "A665", "name": "CYRILLIC SMALL LETTER SOFT EL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A664", "lowercase_mapping": "", "titlecase_mapping": "A664", "symbol": "\uA665" }, 42599: { "value": "A667", "name": "CYRILLIC SMALL LETTER SOFT EM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A666", "lowercase_mapping": "", "titlecase_mapping": "A666", "symbol": "\uA667" }, 42601: { "value": "A669", "name": "CYRILLIC SMALL LETTER MONOCULAR O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A668", "lowercase_mapping": "", "titlecase_mapping": "A668", "symbol": "\uA669" }, 42603: { "value": "A66B", "name": "CYRILLIC SMALL LETTER BINOCULAR O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A66A", "lowercase_mapping": "", "titlecase_mapping": "A66A", "symbol": "\uA66B" }, 42605: { "value": "A66D", "name": "CYRILLIC SMALL LETTER DOUBLE MONOCULAR O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A66C", "lowercase_mapping": "", "titlecase_mapping": "A66C", "symbol": "\uA66D" }, 42625: { "value": "A681", "name": "CYRILLIC SMALL LETTER DWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A680", "lowercase_mapping": "", "titlecase_mapping": "A680", "symbol": "\uA681" }, 42627: { "value": "A683", "name": "CYRILLIC SMALL LETTER DZWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A682", "lowercase_mapping": "", "titlecase_mapping": "A682", "symbol": "\uA683" }, 42629: { "value": "A685", "name": "CYRILLIC SMALL LETTER ZHWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A684", "lowercase_mapping": "", "titlecase_mapping": "A684", "symbol": "\uA685" }, 42631: { "value": "A687", "name": "CYRILLIC SMALL LETTER CCHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A686", "lowercase_mapping": "", "titlecase_mapping": "A686", "symbol": "\uA687" }, 42633: { "value": "A689", "name": "CYRILLIC SMALL LETTER DZZE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A688", "lowercase_mapping": "", "titlecase_mapping": "A688", "symbol": "\uA689" }, 42635: { "value": "A68B", "name": "CYRILLIC SMALL LETTER TE WITH MIDDLE HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A68A", "lowercase_mapping": "", "titlecase_mapping": "A68A", "symbol": "\uA68B" }, 42637: { "value": "A68D", "name": "CYRILLIC SMALL LETTER TWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A68C", "lowercase_mapping": "", "titlecase_mapping": "A68C", "symbol": "\uA68D" }, 42639: { "value": "A68F", "name": "CYRILLIC SMALL LETTER TSWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A68E", "lowercase_mapping": "", "titlecase_mapping": "A68E", "symbol": "\uA68F" }, 42641: { "value": "A691", "name": "CYRILLIC SMALL LETTER TSSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A690", "lowercase_mapping": "", "titlecase_mapping": "A690", "symbol": "\uA691" }, 42643: { "value": "A693", "name": "CYRILLIC SMALL LETTER TCHE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A692", "lowercase_mapping": "", "titlecase_mapping": "A692", "symbol": "\uA693" }, 42645: { "value": "A695", "name": "CYRILLIC SMALL LETTER HWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A694", "lowercase_mapping": "", "titlecase_mapping": "A694", "symbol": "\uA695" }, 42647: { "value": "A697", "name": "CYRILLIC SMALL LETTER SHWE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A696", "lowercase_mapping": "", "titlecase_mapping": "A696", "symbol": "\uA697" }, 42649: { "value": "A699", "name": "CYRILLIC SMALL LETTER DOUBLE O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A698", "lowercase_mapping": "", "titlecase_mapping": "A698", "symbol": "\uA699" }, 42651: { "value": "A69B", "name": "CYRILLIC SMALL LETTER CROSSED O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A69A", "lowercase_mapping": "", "titlecase_mapping": "A69A", "symbol": "\uA69B" }, 42787: { "value": "A723", "name": "LATIN SMALL LETTER EGYPTOLOGICAL ALEF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A722", "lowercase_mapping": "", "titlecase_mapping": "A722", "symbol": "\uA723" }, 42789: { "value": "A725", "name": "LATIN SMALL LETTER EGYPTOLOGICAL AIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A724", "lowercase_mapping": "", "titlecase_mapping": "A724", "symbol": "\uA725" }, 42791: { "value": "A727", "name": "LATIN SMALL LETTER HENG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A726", "lowercase_mapping": "", "titlecase_mapping": "A726", "symbol": "\uA727" }, 42793: { "value": "A729", "name": "LATIN SMALL LETTER TZ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A728", "lowercase_mapping": "", "titlecase_mapping": "A728", "symbol": "\uA729" }, 42795: { "value": "A72B", "name": "LATIN SMALL LETTER TRESILLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A72A", "lowercase_mapping": "", "titlecase_mapping": "A72A", "symbol": "\uA72B" }, 42797: { "value": "A72D", "name": "LATIN SMALL LETTER CUATRILLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A72C", "lowercase_mapping": "", "titlecase_mapping": "A72C", "symbol": "\uA72D" }, 42799: { "value": "A72F", "name": "LATIN SMALL LETTER CUATRILLO WITH COMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A72E", "lowercase_mapping": "", "titlecase_mapping": "A72E", "symbol": "\uA72F" }, 42800: { "value": "A730", "name": "LATIN LETTER SMALL CAPITAL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA730" }, 42801: { "value": "A731", "name": "LATIN LETTER SMALL CAPITAL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA731" }, 42803: { "value": "A733", "name": "LATIN SMALL LETTER AA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A732", "lowercase_mapping": "", "titlecase_mapping": "A732", "symbol": "\uA733" }, 42805: { "value": "A735", "name": "LATIN SMALL LETTER AO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A734", "lowercase_mapping": "", "titlecase_mapping": "A734", "symbol": "\uA735" }, 42807: { "value": "A737", "name": "LATIN SMALL LETTER AU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A736", "lowercase_mapping": "", "titlecase_mapping": "A736", "symbol": "\uA737" }, 42809: { "value": "A739", "name": "LATIN SMALL LETTER AV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A738", "lowercase_mapping": "", "titlecase_mapping": "A738", "symbol": "\uA739" }, 42811: { "value": "A73B", "name": "LATIN SMALL LETTER AV WITH HORIZONTAL BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A73A", "lowercase_mapping": "", "titlecase_mapping": "A73A", "symbol": "\uA73B" }, 42813: { "value": "A73D", "name": "LATIN SMALL LETTER AY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A73C", "lowercase_mapping": "", "titlecase_mapping": "A73C", "symbol": "\uA73D" }, 42815: { "value": "A73F", "name": "LATIN SMALL LETTER REVERSED C WITH DOT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A73E", "lowercase_mapping": "", "titlecase_mapping": "A73E", "symbol": "\uA73F" }, 42817: { "value": "A741", "name": "LATIN SMALL LETTER K WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A740", "lowercase_mapping": "", "titlecase_mapping": "A740", "symbol": "\uA741" }, 42819: { "value": "A743", "name": "LATIN SMALL LETTER K WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A742", "lowercase_mapping": "", "titlecase_mapping": "A742", "symbol": "\uA743" }, 42821: { "value": "A745", "name": "LATIN SMALL LETTER K WITH STROKE AND DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A744", "lowercase_mapping": "", "titlecase_mapping": "A744", "symbol": "\uA745" }, 42823: { "value": "A747", "name": "LATIN SMALL LETTER BROKEN L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A746", "lowercase_mapping": "", "titlecase_mapping": "A746", "symbol": "\uA747" }, 42825: { "value": "A749", "name": "LATIN SMALL LETTER L WITH HIGH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A748", "lowercase_mapping": "", "titlecase_mapping": "A748", "symbol": "\uA749" }, 42827: { "value": "A74B", "name": "LATIN SMALL LETTER O WITH LONG STROKE OVERLAY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A74A", "lowercase_mapping": "", "titlecase_mapping": "A74A", "symbol": "\uA74B" }, 42829: { "value": "A74D", "name": "LATIN SMALL LETTER O WITH LOOP", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A74C", "lowercase_mapping": "", "titlecase_mapping": "A74C", "symbol": "\uA74D" }, 42831: { "value": "A74F", "name": "LATIN SMALL LETTER OO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A74E", "lowercase_mapping": "", "titlecase_mapping": "A74E", "symbol": "\uA74F" }, 42833: { "value": "A751", "name": "LATIN SMALL LETTER P WITH STROKE THROUGH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A750", "lowercase_mapping": "", "titlecase_mapping": "A750", "symbol": "\uA751" }, 42835: { "value": "A753", "name": "LATIN SMALL LETTER P WITH FLOURISH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A752", "lowercase_mapping": "", "titlecase_mapping": "A752", "symbol": "\uA753" }, 42837: { "value": "A755", "name": "LATIN SMALL LETTER P WITH SQUIRREL TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A754", "lowercase_mapping": "", "titlecase_mapping": "A754", "symbol": "\uA755" }, 42839: { "value": "A757", "name": "LATIN SMALL LETTER Q WITH STROKE THROUGH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A756", "lowercase_mapping": "", "titlecase_mapping": "A756", "symbol": "\uA757" }, 42841: { "value": "A759", "name": "LATIN SMALL LETTER Q WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A758", "lowercase_mapping": "", "titlecase_mapping": "A758", "symbol": "\uA759" }, 42843: { "value": "A75B", "name": "LATIN SMALL LETTER R ROTUNDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A75A", "lowercase_mapping": "", "titlecase_mapping": "A75A", "symbol": "\uA75B" }, 42845: { "value": "A75D", "name": "LATIN SMALL LETTER RUM ROTUNDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A75C", "lowercase_mapping": "", "titlecase_mapping": "A75C", "symbol": "\uA75D" }, 42847: { "value": "A75F", "name": "LATIN SMALL LETTER V WITH DIAGONAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A75E", "lowercase_mapping": "", "titlecase_mapping": "A75E", "symbol": "\uA75F" }, 42849: { "value": "A761", "name": "LATIN SMALL LETTER VY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A760", "lowercase_mapping": "", "titlecase_mapping": "A760", "symbol": "\uA761" }, 42851: { "value": "A763", "name": "LATIN SMALL LETTER VISIGOTHIC Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A762", "lowercase_mapping": "", "titlecase_mapping": "A762", "symbol": "\uA763" }, 42853: { "value": "A765", "name": "LATIN SMALL LETTER THORN WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A764", "lowercase_mapping": "", "titlecase_mapping": "A764", "symbol": "\uA765" }, 42855: { "value": "A767", "name": "LATIN SMALL LETTER THORN WITH STROKE THROUGH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A766", "lowercase_mapping": "", "titlecase_mapping": "A766", "symbol": "\uA767" }, 42857: { "value": "A769", "name": "LATIN SMALL LETTER VEND", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A768", "lowercase_mapping": "", "titlecase_mapping": "A768", "symbol": "\uA769" }, 42859: { "value": "A76B", "name": "LATIN SMALL LETTER ET", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A76A", "lowercase_mapping": "", "titlecase_mapping": "A76A", "symbol": "\uA76B" }, 42861: { "value": "A76D", "name": "LATIN SMALL LETTER IS", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A76C", "lowercase_mapping": "", "titlecase_mapping": "A76C", "symbol": "\uA76D" }, 42863: { "value": "A76F", "name": "LATIN SMALL LETTER CON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A76E", "lowercase_mapping": "", "titlecase_mapping": "A76E", "symbol": "\uA76F" }, 42865: { "value": "A771", "name": "LATIN SMALL LETTER DUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA771" }, 42866: { "value": "A772", "name": "LATIN SMALL LETTER LUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA772" }, 42867: { "value": "A773", "name": "LATIN SMALL LETTER MUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA773" }, 42868: { "value": "A774", "name": "LATIN SMALL LETTER NUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA774" }, 42869: { "value": "A775", "name": "LATIN SMALL LETTER RUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA775" }, 42870: { "value": "A776", "name": "LATIN LETTER SMALL CAPITAL RUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA776" }, 42871: { "value": "A777", "name": "LATIN SMALL LETTER TUM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA777" }, 42872: { "value": "A778", "name": "LATIN SMALL LETTER UM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA778" }, 42874: { "value": "A77A", "name": "LATIN SMALL LETTER INSULAR D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A779", "lowercase_mapping": "", "titlecase_mapping": "A779", "symbol": "\uA77A" }, 42876: { "value": "A77C", "name": "LATIN SMALL LETTER INSULAR F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A77B", "lowercase_mapping": "", "titlecase_mapping": "A77B", "symbol": "\uA77C" }, 42879: { "value": "A77F", "name": "LATIN SMALL LETTER TURNED INSULAR G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A77E", "lowercase_mapping": "", "titlecase_mapping": "A77E", "symbol": "\uA77F" }, 42881: { "value": "A781", "name": "LATIN SMALL LETTER TURNED L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A780", "lowercase_mapping": "", "titlecase_mapping": "A780", "symbol": "\uA781" }, 42883: { "value": "A783", "name": "LATIN SMALL LETTER INSULAR R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A782", "lowercase_mapping": "", "titlecase_mapping": "A782", "symbol": "\uA783" }, 42885: { "value": "A785", "name": "LATIN SMALL LETTER INSULAR S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A784", "lowercase_mapping": "", "titlecase_mapping": "A784", "symbol": "\uA785" }, 42887: { "value": "A787", "name": "LATIN SMALL LETTER INSULAR T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A786", "lowercase_mapping": "", "titlecase_mapping": "A786", "symbol": "\uA787" }, 42892: { "value": "A78C", "name": "LATIN SMALL LETTER SALTILLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A78B", "lowercase_mapping": "", "titlecase_mapping": "A78B", "symbol": "\uA78C" }, 42894: { "value": "A78E", "name": "LATIN SMALL LETTER L WITH RETROFLEX HOOK AND BELT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA78E" }, 42897: { "value": "A791", "name": "LATIN SMALL LETTER N WITH DESCENDER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A790", "lowercase_mapping": "", "titlecase_mapping": "A790", "symbol": "\uA791" }, 42899: { "value": "A793", "name": "LATIN SMALL LETTER C WITH BAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A792", "lowercase_mapping": "", "titlecase_mapping": "A792", "symbol": "\uA793" }, 42900: { "value": "A794", "name": "LATIN SMALL LETTER C WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA794" }, 42901: { "value": "A795", "name": "LATIN SMALL LETTER H WITH PALATAL HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA795" }, 42903: { "value": "A797", "name": "LATIN SMALL LETTER B WITH FLOURISH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A796", "lowercase_mapping": "", "titlecase_mapping": "A796", "symbol": "\uA797" }, 42905: { "value": "A799", "name": "LATIN SMALL LETTER F WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A798", "lowercase_mapping": "", "titlecase_mapping": "A798", "symbol": "\uA799" }, 42907: { "value": "A79B", "name": "LATIN SMALL LETTER VOLAPUK AE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A79A", "lowercase_mapping": "", "titlecase_mapping": "A79A", "symbol": "\uA79B" }, 42909: { "value": "A79D", "name": "LATIN SMALL LETTER VOLAPUK OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A79C", "lowercase_mapping": "", "titlecase_mapping": "A79C", "symbol": "\uA79D" }, 42911: { "value": "A79F", "name": "LATIN SMALL LETTER VOLAPUK UE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A79E", "lowercase_mapping": "", "titlecase_mapping": "A79E", "symbol": "\uA79F" }, 42913: { "value": "A7A1", "name": "LATIN SMALL LETTER G WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A0", "lowercase_mapping": "", "titlecase_mapping": "A7A0", "symbol": "\uA7A1" }, 42915: { "value": "A7A3", "name": "LATIN SMALL LETTER K WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A2", "lowercase_mapping": "", "titlecase_mapping": "A7A2", "symbol": "\uA7A3" }, 42917: { "value": "A7A5", "name": "LATIN SMALL LETTER N WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A4", "lowercase_mapping": "", "titlecase_mapping": "A7A4", "symbol": "\uA7A5" }, 42919: { "value": "A7A7", "name": "LATIN SMALL LETTER R WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A6", "lowercase_mapping": "", "titlecase_mapping": "A7A6", "symbol": "\uA7A7" }, 42921: { "value": "A7A9", "name": "LATIN SMALL LETTER S WITH OBLIQUE STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7A8", "lowercase_mapping": "", "titlecase_mapping": "A7A8", "symbol": "\uA7A9" }, 42933: { "value": "A7B5", "name": "LATIN SMALL LETTER BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B4", "lowercase_mapping": "", "titlecase_mapping": "A7B4", "symbol": "\uA7B5" }, 42935: { "value": "A7B7", "name": "LATIN SMALL LETTER OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B6", "lowercase_mapping": "", "titlecase_mapping": "A7B6", "symbol": "\uA7B7" }, 43002: { "value": "A7FA", "name": "LATIN LETTER SMALL CAPITAL TURNED M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uA7FA" }, 43824: { "value": "AB30", "name": "LATIN SMALL LETTER BARRED ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB30" }, 43825: { "value": "AB31", "name": "LATIN SMALL LETTER A REVERSED-SCHWA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB31" }, 43826: { "value": "AB32", "name": "LATIN SMALL LETTER BLACKLETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB32" }, 43827: { "value": "AB33", "name": "LATIN SMALL LETTER BARRED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB33" }, 43828: { "value": "AB34", "name": "LATIN SMALL LETTER E WITH FLOURISH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB34" }, 43829: { "value": "AB35", "name": "LATIN SMALL LETTER LENIS F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB35" }, 43830: { "value": "AB36", "name": "LATIN SMALL LETTER SCRIPT G WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB36" }, 43831: { "value": "AB37", "name": "LATIN SMALL LETTER L WITH INVERTED LAZY S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB37" }, 43832: { "value": "AB38", "name": "LATIN SMALL LETTER L WITH DOUBLE MIDDLE TILDE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB38" }, 43833: { "value": "AB39", "name": "LATIN SMALL LETTER L WITH MIDDLE RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB39" }, 43834: { "value": "AB3A", "name": "LATIN SMALL LETTER M WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3A" }, 43835: { "value": "AB3B", "name": "LATIN SMALL LETTER N WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3B" }, 43836: { "value": "AB3C", "name": "LATIN SMALL LETTER ENG WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3C" }, 43837: { "value": "AB3D", "name": "LATIN SMALL LETTER BLACKLETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3D" }, 43838: { "value": "AB3E", "name": "LATIN SMALL LETTER BLACKLETTER O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3E" }, 43839: { "value": "AB3F", "name": "LATIN SMALL LETTER OPEN O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB3F" }, 43840: { "value": "AB40", "name": "LATIN SMALL LETTER INVERTED OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB40" }, 43841: { "value": "AB41", "name": "LATIN SMALL LETTER TURNED OE WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB41" }, 43842: { "value": "AB42", "name": "LATIN SMALL LETTER TURNED OE WITH HORIZONTAL STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB42" }, 43843: { "value": "AB43", "name": "LATIN SMALL LETTER TURNED O OPEN-O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB43" }, 43844: { "value": "AB44", "name": "LATIN SMALL LETTER TURNED O OPEN-O WITH STROKE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB44" }, 43845: { "value": "AB45", "name": "LATIN SMALL LETTER STIRRUP R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB45" }, 43846: { "value": "AB46", "name": "LATIN LETTER SMALL CAPITAL R WITH RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB46" }, 43847: { "value": "AB47", "name": "LATIN SMALL LETTER R WITHOUT HANDLE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB47" }, 43848: { "value": "AB48", "name": "LATIN SMALL LETTER DOUBLE R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB48" }, 43849: { "value": "AB49", "name": "LATIN SMALL LETTER R WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB49" }, 43850: { "value": "AB4A", "name": "LATIN SMALL LETTER DOUBLE R WITH CROSSED-TAIL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4A" }, 43851: { "value": "AB4B", "name": "LATIN SMALL LETTER SCRIPT R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4B" }, 43852: { "value": "AB4C", "name": "LATIN SMALL LETTER SCRIPT R WITH RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4C" }, 43853: { "value": "AB4D", "name": "LATIN SMALL LETTER BASELINE ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4D" }, 43854: { "value": "AB4E", "name": "LATIN SMALL LETTER U WITH SHORT RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4E" }, 43855: { "value": "AB4F", "name": "LATIN SMALL LETTER U BAR WITH SHORT RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB4F" }, 43856: { "value": "AB50", "name": "LATIN SMALL LETTER UI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB50" }, 43857: { "value": "AB51", "name": "LATIN SMALL LETTER TURNED UI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB51" }, 43858: { "value": "AB52", "name": "LATIN SMALL LETTER U WITH LEFT HOOK", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB52" }, 43859: { "value": "AB53", "name": "LATIN SMALL LETTER CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "A7B3", "lowercase_mapping": "", "titlecase_mapping": "A7B3", "symbol": "\uAB53" }, 43860: { "value": "AB54", "name": "LATIN SMALL LETTER CHI WITH LOW RIGHT RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB54" }, 43861: { "value": "AB55", "name": "LATIN SMALL LETTER CHI WITH LOW LEFT SERIF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB55" }, 43862: { "value": "AB56", "name": "LATIN SMALL LETTER X WITH LOW RIGHT RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB56" }, 43863: { "value": "AB57", "name": "LATIN SMALL LETTER X WITH LONG LEFT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB57" }, 43864: { "value": "AB58", "name": "LATIN SMALL LETTER X WITH LONG LEFT LEG AND LOW RIGHT RING", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB58" }, 43865: { "value": "AB59", "name": "LATIN SMALL LETTER X WITH LONG LEFT LEG WITH SERIF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB59" }, 43866: { "value": "AB5A", "name": "LATIN SMALL LETTER Y WITH SHORT RIGHT LEG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB5A" }, 43872: { "value": "AB60", "name": "LATIN SMALL LETTER SAKHA YAT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB60" }, 43873: { "value": "AB61", "name": "LATIN SMALL LETTER IOTIFIED E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB61" }, 43874: { "value": "AB62", "name": "LATIN SMALL LETTER OPEN OE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB62" }, 43875: { "value": "AB63", "name": "LATIN SMALL LETTER UO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB63" }, 43876: { "value": "AB64", "name": "LATIN SMALL LETTER INVERTED ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB64" }, 43877: { "value": "AB65", "name": "GREEK LETTER SMALL CAPITAL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uAB65" }, 43888: { "value": "AB70", "name": "CHEROKEE SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A0", "lowercase_mapping": "", "titlecase_mapping": "13A0", "symbol": "\uAB70" }, 43889: { "value": "AB71", "name": "CHEROKEE SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A1", "lowercase_mapping": "", "titlecase_mapping": "13A1", "symbol": "\uAB71" }, 43890: { "value": "AB72", "name": "CHEROKEE SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A2", "lowercase_mapping": "", "titlecase_mapping": "13A2", "symbol": "\uAB72" }, 43891: { "value": "AB73", "name": "CHEROKEE SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A3", "lowercase_mapping": "", "titlecase_mapping": "13A3", "symbol": "\uAB73" }, 43892: { "value": "AB74", "name": "CHEROKEE SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A4", "lowercase_mapping": "", "titlecase_mapping": "13A4", "symbol": "\uAB74" }, 43893: { "value": "AB75", "name": "CHEROKEE SMALL LETTER V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A5", "lowercase_mapping": "", "titlecase_mapping": "13A5", "symbol": "\uAB75" }, 43894: { "value": "AB76", "name": "CHEROKEE SMALL LETTER GA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A6", "lowercase_mapping": "", "titlecase_mapping": "13A6", "symbol": "\uAB76" }, 43895: { "value": "AB77", "name": "CHEROKEE SMALL LETTER KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A7", "lowercase_mapping": "", "titlecase_mapping": "13A7", "symbol": "\uAB77" }, 43896: { "value": "AB78", "name": "CHEROKEE SMALL LETTER GE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A8", "lowercase_mapping": "", "titlecase_mapping": "13A8", "symbol": "\uAB78" }, 43897: { "value": "AB79", "name": "CHEROKEE SMALL LETTER GI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13A9", "lowercase_mapping": "", "titlecase_mapping": "13A9", "symbol": "\uAB79" }, 43898: { "value": "AB7A", "name": "CHEROKEE SMALL LETTER GO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AA", "lowercase_mapping": "", "titlecase_mapping": "13AA", "symbol": "\uAB7A" }, 43899: { "value": "AB7B", "name": "CHEROKEE SMALL LETTER GU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AB", "lowercase_mapping": "", "titlecase_mapping": "13AB", "symbol": "\uAB7B" }, 43900: { "value": "AB7C", "name": "CHEROKEE SMALL LETTER GV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AC", "lowercase_mapping": "", "titlecase_mapping": "13AC", "symbol": "\uAB7C" }, 43901: { "value": "AB7D", "name": "CHEROKEE SMALL LETTER HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AD", "lowercase_mapping": "", "titlecase_mapping": "13AD", "symbol": "\uAB7D" }, 43902: { "value": "AB7E", "name": "CHEROKEE SMALL LETTER HE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AE", "lowercase_mapping": "", "titlecase_mapping": "13AE", "symbol": "\uAB7E" }, 43903: { "value": "AB7F", "name": "CHEROKEE SMALL LETTER HI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13AF", "lowercase_mapping": "", "titlecase_mapping": "13AF", "symbol": "\uAB7F" }, 43904: { "value": "AB80", "name": "CHEROKEE SMALL LETTER HO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B0", "lowercase_mapping": "", "titlecase_mapping": "13B0", "symbol": "\uAB80" }, 43905: { "value": "AB81", "name": "CHEROKEE SMALL LETTER HU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B1", "lowercase_mapping": "", "titlecase_mapping": "13B1", "symbol": "\uAB81" }, 43906: { "value": "AB82", "name": "CHEROKEE SMALL LETTER HV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B2", "lowercase_mapping": "", "titlecase_mapping": "13B2", "symbol": "\uAB82" }, 43907: { "value": "AB83", "name": "CHEROKEE SMALL LETTER LA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B3", "lowercase_mapping": "", "titlecase_mapping": "13B3", "symbol": "\uAB83" }, 43908: { "value": "AB84", "name": "CHEROKEE SMALL LETTER LE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B4", "lowercase_mapping": "", "titlecase_mapping": "13B4", "symbol": "\uAB84" }, 43909: { "value": "AB85", "name": "CHEROKEE SMALL LETTER LI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B5", "lowercase_mapping": "", "titlecase_mapping": "13B5", "symbol": "\uAB85" }, 43910: { "value": "AB86", "name": "CHEROKEE SMALL LETTER LO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B6", "lowercase_mapping": "", "titlecase_mapping": "13B6", "symbol": "\uAB86" }, 43911: { "value": "AB87", "name": "CHEROKEE SMALL LETTER LU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B7", "lowercase_mapping": "", "titlecase_mapping": "13B7", "symbol": "\uAB87" }, 43912: { "value": "AB88", "name": "CHEROKEE SMALL LETTER LV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B8", "lowercase_mapping": "", "titlecase_mapping": "13B8", "symbol": "\uAB88" }, 43913: { "value": "AB89", "name": "CHEROKEE SMALL LETTER MA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13B9", "lowercase_mapping": "", "titlecase_mapping": "13B9", "symbol": "\uAB89" }, 43914: { "value": "AB8A", "name": "CHEROKEE SMALL LETTER ME", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BA", "lowercase_mapping": "", "titlecase_mapping": "13BA", "symbol": "\uAB8A" }, 43915: { "value": "AB8B", "name": "CHEROKEE SMALL LETTER MI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BB", "lowercase_mapping": "", "titlecase_mapping": "13BB", "symbol": "\uAB8B" }, 43916: { "value": "AB8C", "name": "CHEROKEE SMALL LETTER MO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BC", "lowercase_mapping": "", "titlecase_mapping": "13BC", "symbol": "\uAB8C" }, 43917: { "value": "AB8D", "name": "CHEROKEE SMALL LETTER MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BD", "lowercase_mapping": "", "titlecase_mapping": "13BD", "symbol": "\uAB8D" }, 43918: { "value": "AB8E", "name": "CHEROKEE SMALL LETTER NA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BE", "lowercase_mapping": "", "titlecase_mapping": "13BE", "symbol": "\uAB8E" }, 43919: { "value": "AB8F", "name": "CHEROKEE SMALL LETTER HNA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13BF", "lowercase_mapping": "", "titlecase_mapping": "13BF", "symbol": "\uAB8F" }, 43920: { "value": "AB90", "name": "CHEROKEE SMALL LETTER NAH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C0", "lowercase_mapping": "", "titlecase_mapping": "13C0", "symbol": "\uAB90" }, 43921: { "value": "AB91", "name": "CHEROKEE SMALL LETTER NE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C1", "lowercase_mapping": "", "titlecase_mapping": "13C1", "symbol": "\uAB91" }, 43922: { "value": "AB92", "name": "CHEROKEE SMALL LETTER NI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C2", "lowercase_mapping": "", "titlecase_mapping": "13C2", "symbol": "\uAB92" }, 43923: { "value": "AB93", "name": "CHEROKEE SMALL LETTER NO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C3", "lowercase_mapping": "", "titlecase_mapping": "13C3", "symbol": "\uAB93" }, 43924: { "value": "AB94", "name": "CHEROKEE SMALL LETTER NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C4", "lowercase_mapping": "", "titlecase_mapping": "13C4", "symbol": "\uAB94" }, 43925: { "value": "AB95", "name": "CHEROKEE SMALL LETTER NV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C5", "lowercase_mapping": "", "titlecase_mapping": "13C5", "symbol": "\uAB95" }, 43926: { "value": "AB96", "name": "CHEROKEE SMALL LETTER QUA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C6", "lowercase_mapping": "", "titlecase_mapping": "13C6", "symbol": "\uAB96" }, 43927: { "value": "AB97", "name": "CHEROKEE SMALL LETTER QUE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C7", "lowercase_mapping": "", "titlecase_mapping": "13C7", "symbol": "\uAB97" }, 43928: { "value": "AB98", "name": "CHEROKEE SMALL LETTER QUI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C8", "lowercase_mapping": "", "titlecase_mapping": "13C8", "symbol": "\uAB98" }, 43929: { "value": "AB99", "name": "CHEROKEE SMALL LETTER QUO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13C9", "lowercase_mapping": "", "titlecase_mapping": "13C9", "symbol": "\uAB99" }, 43930: { "value": "AB9A", "name": "CHEROKEE SMALL LETTER QUU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CA", "lowercase_mapping": "", "titlecase_mapping": "13CA", "symbol": "\uAB9A" }, 43931: { "value": "AB9B", "name": "CHEROKEE SMALL LETTER QUV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CB", "lowercase_mapping": "", "titlecase_mapping": "13CB", "symbol": "\uAB9B" }, 43932: { "value": "AB9C", "name": "CHEROKEE SMALL LETTER SA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CC", "lowercase_mapping": "", "titlecase_mapping": "13CC", "symbol": "\uAB9C" }, 43933: { "value": "AB9D", "name": "CHEROKEE SMALL LETTER S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CD", "lowercase_mapping": "", "titlecase_mapping": "13CD", "symbol": "\uAB9D" }, 43934: { "value": "AB9E", "name": "CHEROKEE SMALL LETTER SE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CE", "lowercase_mapping": "", "titlecase_mapping": "13CE", "symbol": "\uAB9E" }, 43935: { "value": "AB9F", "name": "CHEROKEE SMALL LETTER SI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13CF", "lowercase_mapping": "", "titlecase_mapping": "13CF", "symbol": "\uAB9F" }, 43936: { "value": "ABA0", "name": "CHEROKEE SMALL LETTER SO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D0", "lowercase_mapping": "", "titlecase_mapping": "13D0", "symbol": "\uABA0" }, 43937: { "value": "ABA1", "name": "CHEROKEE SMALL LETTER SU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D1", "lowercase_mapping": "", "titlecase_mapping": "13D1", "symbol": "\uABA1" }, 43938: { "value": "ABA2", "name": "CHEROKEE SMALL LETTER SV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D2", "lowercase_mapping": "", "titlecase_mapping": "13D2", "symbol": "\uABA2" }, 43939: { "value": "ABA3", "name": "CHEROKEE SMALL LETTER DA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D3", "lowercase_mapping": "", "titlecase_mapping": "13D3", "symbol": "\uABA3" }, 43940: { "value": "ABA4", "name": "CHEROKEE SMALL LETTER TA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D4", "lowercase_mapping": "", "titlecase_mapping": "13D4", "symbol": "\uABA4" }, 43941: { "value": "ABA5", "name": "CHEROKEE SMALL LETTER DE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D5", "lowercase_mapping": "", "titlecase_mapping": "13D5", "symbol": "\uABA5" }, 43942: { "value": "ABA6", "name": "CHEROKEE SMALL LETTER TE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D6", "lowercase_mapping": "", "titlecase_mapping": "13D6", "symbol": "\uABA6" }, 43943: { "value": "ABA7", "name": "CHEROKEE SMALL LETTER DI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D7", "lowercase_mapping": "", "titlecase_mapping": "13D7", "symbol": "\uABA7" }, 43944: { "value": "ABA8", "name": "CHEROKEE SMALL LETTER TI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D8", "lowercase_mapping": "", "titlecase_mapping": "13D8", "symbol": "\uABA8" }, 43945: { "value": "ABA9", "name": "CHEROKEE SMALL LETTER DO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13D9", "lowercase_mapping": "", "titlecase_mapping": "13D9", "symbol": "\uABA9" }, 43946: { "value": "ABAA", "name": "CHEROKEE SMALL LETTER DU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DA", "lowercase_mapping": "", "titlecase_mapping": "13DA", "symbol": "\uABAA" }, 43947: { "value": "ABAB", "name": "CHEROKEE SMALL LETTER DV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DB", "lowercase_mapping": "", "titlecase_mapping": "13DB", "symbol": "\uABAB" }, 43948: { "value": "ABAC", "name": "CHEROKEE SMALL LETTER DLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DC", "lowercase_mapping": "", "titlecase_mapping": "13DC", "symbol": "\uABAC" }, 43949: { "value": "ABAD", "name": "CHEROKEE SMALL LETTER TLA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DD", "lowercase_mapping": "", "titlecase_mapping": "13DD", "symbol": "\uABAD" }, 43950: { "value": "ABAE", "name": "CHEROKEE SMALL LETTER TLE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DE", "lowercase_mapping": "", "titlecase_mapping": "13DE", "symbol": "\uABAE" }, 43951: { "value": "ABAF", "name": "CHEROKEE SMALL LETTER TLI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13DF", "lowercase_mapping": "", "titlecase_mapping": "13DF", "symbol": "\uABAF" }, 43952: { "value": "ABB0", "name": "CHEROKEE SMALL LETTER TLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E0", "lowercase_mapping": "", "titlecase_mapping": "13E0", "symbol": "\uABB0" }, 43953: { "value": "ABB1", "name": "CHEROKEE SMALL LETTER TLU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E1", "lowercase_mapping": "", "titlecase_mapping": "13E1", "symbol": "\uABB1" }, 43954: { "value": "ABB2", "name": "CHEROKEE SMALL LETTER TLV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E2", "lowercase_mapping": "", "titlecase_mapping": "13E2", "symbol": "\uABB2" }, 43955: { "value": "ABB3", "name": "CHEROKEE SMALL LETTER TSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E3", "lowercase_mapping": "", "titlecase_mapping": "13E3", "symbol": "\uABB3" }, 43956: { "value": "ABB4", "name": "CHEROKEE SMALL LETTER TSE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E4", "lowercase_mapping": "", "titlecase_mapping": "13E4", "symbol": "\uABB4" }, 43957: { "value": "ABB5", "name": "CHEROKEE SMALL LETTER TSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E5", "lowercase_mapping": "", "titlecase_mapping": "13E5", "symbol": "\uABB5" }, 43958: { "value": "ABB6", "name": "CHEROKEE SMALL LETTER TSO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E6", "lowercase_mapping": "", "titlecase_mapping": "13E6", "symbol": "\uABB6" }, 43959: { "value": "ABB7", "name": "CHEROKEE SMALL LETTER TSU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E7", "lowercase_mapping": "", "titlecase_mapping": "13E7", "symbol": "\uABB7" }, 43960: { "value": "ABB8", "name": "CHEROKEE SMALL LETTER TSV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E8", "lowercase_mapping": "", "titlecase_mapping": "13E8", "symbol": "\uABB8" }, 43961: { "value": "ABB9", "name": "CHEROKEE SMALL LETTER WA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13E9", "lowercase_mapping": "", "titlecase_mapping": "13E9", "symbol": "\uABB9" }, 43962: { "value": "ABBA", "name": "CHEROKEE SMALL LETTER WE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EA", "lowercase_mapping": "", "titlecase_mapping": "13EA", "symbol": "\uABBA" }, 43963: { "value": "ABBB", "name": "CHEROKEE SMALL LETTER WI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EB", "lowercase_mapping": "", "titlecase_mapping": "13EB", "symbol": "\uABBB" }, 43964: { "value": "ABBC", "name": "CHEROKEE SMALL LETTER WO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EC", "lowercase_mapping": "", "titlecase_mapping": "13EC", "symbol": "\uABBC" }, 43965: { "value": "ABBD", "name": "CHEROKEE SMALL LETTER WU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13ED", "lowercase_mapping": "", "titlecase_mapping": "13ED", "symbol": "\uABBD" }, 43966: { "value": "ABBE", "name": "CHEROKEE SMALL LETTER WV", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EE", "lowercase_mapping": "", "titlecase_mapping": "13EE", "symbol": "\uABBE" }, 43967: { "value": "ABBF", "name": "CHEROKEE SMALL LETTER YA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "13EF", "lowercase_mapping": "", "titlecase_mapping": "13EF", "symbol": "\uABBF" }, 64256: { "value": "FB00", "name": "LATIN SMALL LIGATURE FF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB00" }, 64257: { "value": "FB01", "name": "LATIN SMALL LIGATURE FI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB01" }, 64258: { "value": "FB02", "name": "LATIN SMALL LIGATURE FL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB02" }, 64259: { "value": "FB03", "name": "LATIN SMALL LIGATURE FFI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 0066 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB03" }, 64260: { "value": "FB04", "name": "LATIN SMALL LIGATURE FFL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066 0066 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB04" }, 64261: { "value": "FB05", "name": "LATIN SMALL LIGATURE LONG S T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 017F 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB05" }, 64262: { "value": "FB06", "name": "LATIN SMALL LIGATURE ST", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB06" }, 64275: { "value": "FB13", "name": "ARMENIAN SMALL LIGATURE MEN NOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0574 0576", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB13" }, 64276: { "value": "FB14", "name": "ARMENIAN SMALL LIGATURE MEN ECH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0574 0565", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB14" }, 64277: { "value": "FB15", "name": "ARMENIAN SMALL LIGATURE MEN INI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0574 056B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB15" }, 64278: { "value": "FB16", "name": "ARMENIAN SMALL LIGATURE VEW NOW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 057E 0576", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB16" }, 64279: { "value": "FB17", "name": "ARMENIAN SMALL LIGATURE MEN XEH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0574 056D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uFB17" }, 65345: { "value": "FF41", "name": "FULLWIDTH LATIN SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF21", "lowercase_mapping": "", "titlecase_mapping": "FF21", "symbol": "\uFF41" }, 65346: { "value": "FF42", "name": "FULLWIDTH LATIN SMALL LETTER B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF22", "lowercase_mapping": "", "titlecase_mapping": "FF22", "symbol": "\uFF42" }, 65347: { "value": "FF43", "name": "FULLWIDTH LATIN SMALL LETTER C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF23", "lowercase_mapping": "", "titlecase_mapping": "FF23", "symbol": "\uFF43" }, 65348: { "value": "FF44", "name": "FULLWIDTH LATIN SMALL LETTER D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF24", "lowercase_mapping": "", "titlecase_mapping": "FF24", "symbol": "\uFF44" }, 65349: { "value": "FF45", "name": "FULLWIDTH LATIN SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF25", "lowercase_mapping": "", "titlecase_mapping": "FF25", "symbol": "\uFF45" }, 65350: { "value": "FF46", "name": "FULLWIDTH LATIN SMALL LETTER F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF26", "lowercase_mapping": "", "titlecase_mapping": "FF26", "symbol": "\uFF46" }, 65351: { "value": "FF47", "name": "FULLWIDTH LATIN SMALL LETTER G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF27", "lowercase_mapping": "", "titlecase_mapping": "FF27", "symbol": "\uFF47" }, 65352: { "value": "FF48", "name": "FULLWIDTH LATIN SMALL LETTER H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF28", "lowercase_mapping": "", "titlecase_mapping": "FF28", "symbol": "\uFF48" }, 65353: { "value": "FF49", "name": "FULLWIDTH LATIN SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF29", "lowercase_mapping": "", "titlecase_mapping": "FF29", "symbol": "\uFF49" }, 65354: { "value": "FF4A", "name": "FULLWIDTH LATIN SMALL LETTER J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2A", "lowercase_mapping": "", "titlecase_mapping": "FF2A", "symbol": "\uFF4A" }, 65355: { "value": "FF4B", "name": "FULLWIDTH LATIN SMALL LETTER K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2B", "lowercase_mapping": "", "titlecase_mapping": "FF2B", "symbol": "\uFF4B" }, 65356: { "value": "FF4C", "name": "FULLWIDTH LATIN SMALL LETTER L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2C", "lowercase_mapping": "", "titlecase_mapping": "FF2C", "symbol": "\uFF4C" }, 65357: { "value": "FF4D", "name": "FULLWIDTH LATIN SMALL LETTER M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2D", "lowercase_mapping": "", "titlecase_mapping": "FF2D", "symbol": "\uFF4D" }, 65358: { "value": "FF4E", "name": "FULLWIDTH LATIN SMALL LETTER N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2E", "lowercase_mapping": "", "titlecase_mapping": "FF2E", "symbol": "\uFF4E" }, 65359: { "value": "FF4F", "name": "FULLWIDTH LATIN SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF2F", "lowercase_mapping": "", "titlecase_mapping": "FF2F", "symbol": "\uFF4F" }, 65360: { "value": "FF50", "name": "FULLWIDTH LATIN SMALL LETTER P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF30", "lowercase_mapping": "", "titlecase_mapping": "FF30", "symbol": "\uFF50" }, 65361: { "value": "FF51", "name": "FULLWIDTH LATIN SMALL LETTER Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF31", "lowercase_mapping": "", "titlecase_mapping": "FF31", "symbol": "\uFF51" }, 65362: { "value": "FF52", "name": "FULLWIDTH LATIN SMALL LETTER R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF32", "lowercase_mapping": "", "titlecase_mapping": "FF32", "symbol": "\uFF52" }, 65363: { "value": "FF53", "name": "FULLWIDTH LATIN SMALL LETTER S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF33", "lowercase_mapping": "", "titlecase_mapping": "FF33", "symbol": "\uFF53" }, 65364: { "value": "FF54", "name": "FULLWIDTH LATIN SMALL LETTER T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF34", "lowercase_mapping": "", "titlecase_mapping": "FF34", "symbol": "\uFF54" }, 65365: { "value": "FF55", "name": "FULLWIDTH LATIN SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF35", "lowercase_mapping": "", "titlecase_mapping": "FF35", "symbol": "\uFF55" }, 65366: { "value": "FF56", "name": "FULLWIDTH LATIN SMALL LETTER V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF36", "lowercase_mapping": "", "titlecase_mapping": "FF36", "symbol": "\uFF56" }, 65367: { "value": "FF57", "name": "FULLWIDTH LATIN SMALL LETTER W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF37", "lowercase_mapping": "", "titlecase_mapping": "FF37", "symbol": "\uFF57" }, 65368: { "value": "FF58", "name": "FULLWIDTH LATIN SMALL LETTER X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF38", "lowercase_mapping": "", "titlecase_mapping": "FF38", "symbol": "\uFF58" }, 65369: { "value": "FF59", "name": "FULLWIDTH LATIN SMALL LETTER Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF39", "lowercase_mapping": "", "titlecase_mapping": "FF39", "symbol": "\uFF59" }, 65370: { "value": "FF5A", "name": "FULLWIDTH LATIN SMALL LETTER Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "FF3A", "lowercase_mapping": "", "titlecase_mapping": "FF3A", "symbol": "\uFF5A" }, 66600: { "value": "10428", "name": "DESERET SMALL LETTER LONG I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10400", "lowercase_mapping": "", "titlecase_mapping": "10400", "symbol": "\u0428" }, 66601: { "value": "10429", "name": "DESERET SMALL LETTER LONG E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10401", "lowercase_mapping": "", "titlecase_mapping": "10401", "symbol": "\u0429" }, 66602: { "value": "1042A", "name": "DESERET SMALL LETTER LONG A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10402", "lowercase_mapping": "", "titlecase_mapping": "10402", "symbol": "\u042A" }, 66603: { "value": "1042B", "name": "DESERET SMALL LETTER LONG AH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10403", "lowercase_mapping": "", "titlecase_mapping": "10403", "symbol": "\u042B" }, 66604: { "value": "1042C", "name": "DESERET SMALL LETTER LONG O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10404", "lowercase_mapping": "", "titlecase_mapping": "10404", "symbol": "\u042C" }, 66605: { "value": "1042D", "name": "DESERET SMALL LETTER LONG OO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10405", "lowercase_mapping": "", "titlecase_mapping": "10405", "symbol": "\u042D" }, 66606: { "value": "1042E", "name": "DESERET SMALL LETTER SHORT I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10406", "lowercase_mapping": "", "titlecase_mapping": "10406", "symbol": "\u042E" }, 66607: { "value": "1042F", "name": "DESERET SMALL LETTER SHORT E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10407", "lowercase_mapping": "", "titlecase_mapping": "10407", "symbol": "\u042F" }, 66608: { "value": "10430", "name": "DESERET SMALL LETTER SHORT A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10408", "lowercase_mapping": "", "titlecase_mapping": "10408", "symbol": "\u0430" }, 66609: { "value": "10431", "name": "DESERET SMALL LETTER SHORT AH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10409", "lowercase_mapping": "", "titlecase_mapping": "10409", "symbol": "\u0431" }, 66610: { "value": "10432", "name": "DESERET SMALL LETTER SHORT O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040A", "lowercase_mapping": "", "titlecase_mapping": "1040A", "symbol": "\u0432" }, 66611: { "value": "10433", "name": "DESERET SMALL LETTER SHORT OO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040B", "lowercase_mapping": "", "titlecase_mapping": "1040B", "symbol": "\u0433" }, 66612: { "value": "10434", "name": "DESERET SMALL LETTER AY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040C", "lowercase_mapping": "", "titlecase_mapping": "1040C", "symbol": "\u0434" }, 66613: { "value": "10435", "name": "DESERET SMALL LETTER OW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040D", "lowercase_mapping": "", "titlecase_mapping": "1040D", "symbol": "\u0435" }, 66614: { "value": "10436", "name": "DESERET SMALL LETTER WU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040E", "lowercase_mapping": "", "titlecase_mapping": "1040E", "symbol": "\u0436" }, 66615: { "value": "10437", "name": "DESERET SMALL LETTER YEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1040F", "lowercase_mapping": "", "titlecase_mapping": "1040F", "symbol": "\u0437" }, 66616: { "value": "10438", "name": "DESERET SMALL LETTER H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10410", "lowercase_mapping": "", "titlecase_mapping": "10410", "symbol": "\u0438" }, 66617: { "value": "10439", "name": "DESERET SMALL LETTER PEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10411", "lowercase_mapping": "", "titlecase_mapping": "10411", "symbol": "\u0439" }, 66618: { "value": "1043A", "name": "DESERET SMALL LETTER BEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10412", "lowercase_mapping": "", "titlecase_mapping": "10412", "symbol": "\u043A" }, 66619: { "value": "1043B", "name": "DESERET SMALL LETTER TEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10413", "lowercase_mapping": "", "titlecase_mapping": "10413", "symbol": "\u043B" }, 66620: { "value": "1043C", "name": "DESERET SMALL LETTER DEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10414", "lowercase_mapping": "", "titlecase_mapping": "10414", "symbol": "\u043C" }, 66621: { "value": "1043D", "name": "DESERET SMALL LETTER CHEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10415", "lowercase_mapping": "", "titlecase_mapping": "10415", "symbol": "\u043D" }, 66622: { "value": "1043E", "name": "DESERET SMALL LETTER JEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10416", "lowercase_mapping": "", "titlecase_mapping": "10416", "symbol": "\u043E" }, 66623: { "value": "1043F", "name": "DESERET SMALL LETTER KAY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10417", "lowercase_mapping": "", "titlecase_mapping": "10417", "symbol": "\u043F" }, 66624: { "value": "10440", "name": "DESERET SMALL LETTER GAY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10418", "lowercase_mapping": "", "titlecase_mapping": "10418", "symbol": "\u0440" }, 66625: { "value": "10441", "name": "DESERET SMALL LETTER EF", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10419", "lowercase_mapping": "", "titlecase_mapping": "10419", "symbol": "\u0441" }, 66626: { "value": "10442", "name": "DESERET SMALL LETTER VEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041A", "lowercase_mapping": "", "titlecase_mapping": "1041A", "symbol": "\u0442" }, 66627: { "value": "10443", "name": "DESERET SMALL LETTER ETH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041B", "lowercase_mapping": "", "titlecase_mapping": "1041B", "symbol": "\u0443" }, 66628: { "value": "10444", "name": "DESERET SMALL LETTER THEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041C", "lowercase_mapping": "", "titlecase_mapping": "1041C", "symbol": "\u0444" }, 66629: { "value": "10445", "name": "DESERET SMALL LETTER ES", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041D", "lowercase_mapping": "", "titlecase_mapping": "1041D", "symbol": "\u0445" }, 66630: { "value": "10446", "name": "DESERET SMALL LETTER ZEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041E", "lowercase_mapping": "", "titlecase_mapping": "1041E", "symbol": "\u0446" }, 66631: { "value": "10447", "name": "DESERET SMALL LETTER ESH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1041F", "lowercase_mapping": "", "titlecase_mapping": "1041F", "symbol": "\u0447" }, 66632: { "value": "10448", "name": "DESERET SMALL LETTER ZHEE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10420", "lowercase_mapping": "", "titlecase_mapping": "10420", "symbol": "\u0448" }, 66633: { "value": "10449", "name": "DESERET SMALL LETTER ER", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10421", "lowercase_mapping": "", "titlecase_mapping": "10421", "symbol": "\u0449" }, 66634: { "value": "1044A", "name": "DESERET SMALL LETTER EL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10422", "lowercase_mapping": "", "titlecase_mapping": "10422", "symbol": "\u044A" }, 66635: { "value": "1044B", "name": "DESERET SMALL LETTER EM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10423", "lowercase_mapping": "", "titlecase_mapping": "10423", "symbol": "\u044B" }, 66636: { "value": "1044C", "name": "DESERET SMALL LETTER EN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10424", "lowercase_mapping": "", "titlecase_mapping": "10424", "symbol": "\u044C" }, 66637: { "value": "1044D", "name": "DESERET SMALL LETTER ENG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10425", "lowercase_mapping": "", "titlecase_mapping": "10425", "symbol": "\u044D" }, 66638: { "value": "1044E", "name": "DESERET SMALL LETTER OI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10426", "lowercase_mapping": "", "titlecase_mapping": "10426", "symbol": "\u044E" }, 66639: { "value": "1044F", "name": "DESERET SMALL LETTER EW", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10427", "lowercase_mapping": "", "titlecase_mapping": "10427", "symbol": "\u044F" }, 66776: { "value": "104D8", "name": "OSAGE SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B0", "lowercase_mapping": "", "titlecase_mapping": "104B0", "symbol": "\u04D8" }, 66777: { "value": "104D9", "name": "OSAGE SMALL LETTER AI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B1", "lowercase_mapping": "", "titlecase_mapping": "104B1", "symbol": "\u04D9" }, 66778: { "value": "104DA", "name": "OSAGE SMALL LETTER AIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B2", "lowercase_mapping": "", "titlecase_mapping": "104B2", "symbol": "\u04DA" }, 66779: { "value": "104DB", "name": "OSAGE SMALL LETTER AH", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B3", "lowercase_mapping": "", "titlecase_mapping": "104B3", "symbol": "\u04DB" }, 66780: { "value": "104DC", "name": "OSAGE SMALL LETTER BRA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B4", "lowercase_mapping": "", "titlecase_mapping": "104B4", "symbol": "\u04DC" }, 66781: { "value": "104DD", "name": "OSAGE SMALL LETTER CHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B5", "lowercase_mapping": "", "titlecase_mapping": "104B5", "symbol": "\u04DD" }, 66782: { "value": "104DE", "name": "OSAGE SMALL LETTER EHCHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B6", "lowercase_mapping": "", "titlecase_mapping": "104B6", "symbol": "\u04DE" }, 66783: { "value": "104DF", "name": "OSAGE SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B7", "lowercase_mapping": "", "titlecase_mapping": "104B7", "symbol": "\u04DF" }, 66784: { "value": "104E0", "name": "OSAGE SMALL LETTER EIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B8", "lowercase_mapping": "", "titlecase_mapping": "104B8", "symbol": "\u04E0" }, 66785: { "value": "104E1", "name": "OSAGE SMALL LETTER HA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104B9", "lowercase_mapping": "", "titlecase_mapping": "104B9", "symbol": "\u04E1" }, 66786: { "value": "104E2", "name": "OSAGE SMALL LETTER HYA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BA", "lowercase_mapping": "", "titlecase_mapping": "104BA", "symbol": "\u04E2" }, 66787: { "value": "104E3", "name": "OSAGE SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BB", "lowercase_mapping": "", "titlecase_mapping": "104BB", "symbol": "\u04E3" }, 66788: { "value": "104E4", "name": "OSAGE SMALL LETTER KA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BC", "lowercase_mapping": "", "titlecase_mapping": "104BC", "symbol": "\u04E4" }, 66789: { "value": "104E5", "name": "OSAGE SMALL LETTER EHKA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BD", "lowercase_mapping": "", "titlecase_mapping": "104BD", "symbol": "\u04E5" }, 66790: { "value": "104E6", "name": "OSAGE SMALL LETTER KYA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BE", "lowercase_mapping": "", "titlecase_mapping": "104BE", "symbol": "\u04E6" }, 66791: { "value": "104E7", "name": "OSAGE SMALL LETTER LA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104BF", "lowercase_mapping": "", "titlecase_mapping": "104BF", "symbol": "\u04E7" }, 66792: { "value": "104E8", "name": "OSAGE SMALL LETTER MA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C0", "lowercase_mapping": "", "titlecase_mapping": "104C0", "symbol": "\u04E8" }, 66793: { "value": "104E9", "name": "OSAGE SMALL LETTER NA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C1", "lowercase_mapping": "", "titlecase_mapping": "104C1", "symbol": "\u04E9" }, 66794: { "value": "104EA", "name": "OSAGE SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C2", "lowercase_mapping": "", "titlecase_mapping": "104C2", "symbol": "\u04EA" }, 66795: { "value": "104EB", "name": "OSAGE SMALL LETTER OIN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C3", "lowercase_mapping": "", "titlecase_mapping": "104C3", "symbol": "\u04EB" }, 66796: { "value": "104EC", "name": "OSAGE SMALL LETTER PA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C4", "lowercase_mapping": "", "titlecase_mapping": "104C4", "symbol": "\u04EC" }, 66797: { "value": "104ED", "name": "OSAGE SMALL LETTER EHPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C5", "lowercase_mapping": "", "titlecase_mapping": "104C5", "symbol": "\u04ED" }, 66798: { "value": "104EE", "name": "OSAGE SMALL LETTER SA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C6", "lowercase_mapping": "", "titlecase_mapping": "104C6", "symbol": "\u04EE" }, 66799: { "value": "104EF", "name": "OSAGE SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C7", "lowercase_mapping": "", "titlecase_mapping": "104C7", "symbol": "\u04EF" }, 66800: { "value": "104F0", "name": "OSAGE SMALL LETTER TA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C8", "lowercase_mapping": "", "titlecase_mapping": "104C8", "symbol": "\u04F0" }, 66801: { "value": "104F1", "name": "OSAGE SMALL LETTER EHTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104C9", "lowercase_mapping": "", "titlecase_mapping": "104C9", "symbol": "\u04F1" }, 66802: { "value": "104F2", "name": "OSAGE SMALL LETTER TSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CA", "lowercase_mapping": "", "titlecase_mapping": "104CA", "symbol": "\u04F2" }, 66803: { "value": "104F3", "name": "OSAGE SMALL LETTER EHTSA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CB", "lowercase_mapping": "", "titlecase_mapping": "104CB", "symbol": "\u04F3" }, 66804: { "value": "104F4", "name": "OSAGE SMALL LETTER TSHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CC", "lowercase_mapping": "", "titlecase_mapping": "104CC", "symbol": "\u04F4" }, 66805: { "value": "104F5", "name": "OSAGE SMALL LETTER DHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CD", "lowercase_mapping": "", "titlecase_mapping": "104CD", "symbol": "\u04F5" }, 66806: { "value": "104F6", "name": "OSAGE SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CE", "lowercase_mapping": "", "titlecase_mapping": "104CE", "symbol": "\u04F6" }, 66807: { "value": "104F7", "name": "OSAGE SMALL LETTER WA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104CF", "lowercase_mapping": "", "titlecase_mapping": "104CF", "symbol": "\u04F7" }, 66808: { "value": "104F8", "name": "OSAGE SMALL LETTER KHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104D0", "lowercase_mapping": "", "titlecase_mapping": "104D0", "symbol": "\u04F8" }, 66809: { "value": "104F9", "name": "OSAGE SMALL LETTER GHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104D1", "lowercase_mapping": "", "titlecase_mapping": "104D1", "symbol": "\u04F9" }, 66810: { "value": "104FA", "name": "OSAGE SMALL LETTER ZA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104D2", "lowercase_mapping": "", "titlecase_mapping": "104D2", "symbol": "\u04FA" }, 66811: { "value": "104FB", "name": "OSAGE SMALL LETTER ZHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "104D3", "lowercase_mapping": "", "titlecase_mapping": "104D3", "symbol": "\u04FB" }, 68800: { "value": "10CC0", "name": "OLD HUNGARIAN SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C80", "lowercase_mapping": "", "titlecase_mapping": "10C80", "symbol": "\u0CC0" }, 68801: { "value": "10CC1", "name": "OLD HUNGARIAN SMALL LETTER AA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C81", "lowercase_mapping": "", "titlecase_mapping": "10C81", "symbol": "\u0CC1" }, 68802: { "value": "10CC2", "name": "OLD HUNGARIAN SMALL LETTER EB", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C82", "lowercase_mapping": "", "titlecase_mapping": "10C82", "symbol": "\u0CC2" }, 68803: { "value": "10CC3", "name": "OLD HUNGARIAN SMALL LETTER AMB", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C83", "lowercase_mapping": "", "titlecase_mapping": "10C83", "symbol": "\u0CC3" }, 68804: { "value": "10CC4", "name": "OLD HUNGARIAN SMALL LETTER EC", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C84", "lowercase_mapping": "", "titlecase_mapping": "10C84", "symbol": "\u0CC4" }, 68805: { "value": "10CC5", "name": "OLD HUNGARIAN SMALL LETTER ENC", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C85", "lowercase_mapping": "", "titlecase_mapping": "10C85", "symbol": "\u0CC5" }, 68806: { "value": "10CC6", "name": "OLD HUNGARIAN SMALL LETTER ECS", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C86", "lowercase_mapping": "", "titlecase_mapping": "10C86", "symbol": "\u0CC6" }, 68807: { "value": "10CC7", "name": "OLD HUNGARIAN SMALL LETTER ED", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C87", "lowercase_mapping": "", "titlecase_mapping": "10C87", "symbol": "\u0CC7" }, 68808: { "value": "10CC8", "name": "OLD HUNGARIAN SMALL LETTER AND", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C88", "lowercase_mapping": "", "titlecase_mapping": "10C88", "symbol": "\u0CC8" }, 68809: { "value": "10CC9", "name": "OLD HUNGARIAN SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C89", "lowercase_mapping": "", "titlecase_mapping": "10C89", "symbol": "\u0CC9" }, 68810: { "value": "10CCA", "name": "OLD HUNGARIAN SMALL LETTER CLOSE E", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8A", "lowercase_mapping": "", "titlecase_mapping": "10C8A", "symbol": "\u0CCA" }, 68811: { "value": "10CCB", "name": "OLD HUNGARIAN SMALL LETTER EE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8B", "lowercase_mapping": "", "titlecase_mapping": "10C8B", "symbol": "\u0CCB" }, 68812: { "value": "10CCC", "name": "OLD HUNGARIAN SMALL LETTER EF", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8C", "lowercase_mapping": "", "titlecase_mapping": "10C8C", "symbol": "\u0CCC" }, 68813: { "value": "10CCD", "name": "OLD HUNGARIAN SMALL LETTER EG", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8D", "lowercase_mapping": "", "titlecase_mapping": "10C8D", "symbol": "\u0CCD" }, 68814: { "value": "10CCE", "name": "OLD HUNGARIAN SMALL LETTER EGY", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8E", "lowercase_mapping": "", "titlecase_mapping": "10C8E", "symbol": "\u0CCE" }, 68815: { "value": "10CCF", "name": "OLD HUNGARIAN SMALL LETTER EH", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C8F", "lowercase_mapping": "", "titlecase_mapping": "10C8F", "symbol": "\u0CCF" }, 68816: { "value": "10CD0", "name": "OLD HUNGARIAN SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C90", "lowercase_mapping": "", "titlecase_mapping": "10C90", "symbol": "\u0CD0" }, 68817: { "value": "10CD1", "name": "OLD HUNGARIAN SMALL LETTER II", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C91", "lowercase_mapping": "", "titlecase_mapping": "10C91", "symbol": "\u0CD1" }, 68818: { "value": "10CD2", "name": "OLD HUNGARIAN SMALL LETTER EJ", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C92", "lowercase_mapping": "", "titlecase_mapping": "10C92", "symbol": "\u0CD2" }, 68819: { "value": "10CD3", "name": "OLD HUNGARIAN SMALL LETTER EK", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C93", "lowercase_mapping": "", "titlecase_mapping": "10C93", "symbol": "\u0CD3" }, 68820: { "value": "10CD4", "name": "OLD HUNGARIAN SMALL LETTER AK", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C94", "lowercase_mapping": "", "titlecase_mapping": "10C94", "symbol": "\u0CD4" }, 68821: { "value": "10CD5", "name": "OLD HUNGARIAN SMALL LETTER UNK", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C95", "lowercase_mapping": "", "titlecase_mapping": "10C95", "symbol": "\u0CD5" }, 68822: { "value": "10CD6", "name": "OLD HUNGARIAN SMALL LETTER EL", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C96", "lowercase_mapping": "", "titlecase_mapping": "10C96", "symbol": "\u0CD6" }, 68823: { "value": "10CD7", "name": "OLD HUNGARIAN SMALL LETTER ELY", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C97", "lowercase_mapping": "", "titlecase_mapping": "10C97", "symbol": "\u0CD7" }, 68824: { "value": "10CD8", "name": "OLD HUNGARIAN SMALL LETTER EM", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C98", "lowercase_mapping": "", "titlecase_mapping": "10C98", "symbol": "\u0CD8" }, 68825: { "value": "10CD9", "name": "OLD HUNGARIAN SMALL LETTER EN", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C99", "lowercase_mapping": "", "titlecase_mapping": "10C99", "symbol": "\u0CD9" }, 68826: { "value": "10CDA", "name": "OLD HUNGARIAN SMALL LETTER ENY", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9A", "lowercase_mapping": "", "titlecase_mapping": "10C9A", "symbol": "\u0CDA" }, 68827: { "value": "10CDB", "name": "OLD HUNGARIAN SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9B", "lowercase_mapping": "", "titlecase_mapping": "10C9B", "symbol": "\u0CDB" }, 68828: { "value": "10CDC", "name": "OLD HUNGARIAN SMALL LETTER OO", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9C", "lowercase_mapping": "", "titlecase_mapping": "10C9C", "symbol": "\u0CDC" }, 68829: { "value": "10CDD", "name": "OLD HUNGARIAN SMALL LETTER NIKOLSBURG OE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9D", "lowercase_mapping": "", "titlecase_mapping": "10C9D", "symbol": "\u0CDD" }, 68830: { "value": "10CDE", "name": "OLD HUNGARIAN SMALL LETTER RUDIMENTA OE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9E", "lowercase_mapping": "", "titlecase_mapping": "10C9E", "symbol": "\u0CDE" }, 68831: { "value": "10CDF", "name": "OLD HUNGARIAN SMALL LETTER OEE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10C9F", "lowercase_mapping": "", "titlecase_mapping": "10C9F", "symbol": "\u0CDF" }, 68832: { "value": "10CE0", "name": "OLD HUNGARIAN SMALL LETTER EP", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA0", "lowercase_mapping": "", "titlecase_mapping": "10CA0", "symbol": "\u0CE0" }, 68833: { "value": "10CE1", "name": "OLD HUNGARIAN SMALL LETTER EMP", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA1", "lowercase_mapping": "", "titlecase_mapping": "10CA1", "symbol": "\u0CE1" }, 68834: { "value": "10CE2", "name": "OLD HUNGARIAN SMALL LETTER ER", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA2", "lowercase_mapping": "", "titlecase_mapping": "10CA2", "symbol": "\u0CE2" }, 68835: { "value": "10CE3", "name": "OLD HUNGARIAN SMALL LETTER SHORT ER", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA3", "lowercase_mapping": "", "titlecase_mapping": "10CA3", "symbol": "\u0CE3" }, 68836: { "value": "10CE4", "name": "OLD HUNGARIAN SMALL LETTER ES", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA4", "lowercase_mapping": "", "titlecase_mapping": "10CA4", "symbol": "\u0CE4" }, 68837: { "value": "10CE5", "name": "OLD HUNGARIAN SMALL LETTER ESZ", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA5", "lowercase_mapping": "", "titlecase_mapping": "10CA5", "symbol": "\u0CE5" }, 68838: { "value": "10CE6", "name": "OLD HUNGARIAN SMALL LETTER ET", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA6", "lowercase_mapping": "", "titlecase_mapping": "10CA6", "symbol": "\u0CE6" }, 68839: { "value": "10CE7", "name": "OLD HUNGARIAN SMALL LETTER ENT", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA7", "lowercase_mapping": "", "titlecase_mapping": "10CA7", "symbol": "\u0CE7" }, 68840: { "value": "10CE8", "name": "OLD HUNGARIAN SMALL LETTER ETY", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA8", "lowercase_mapping": "", "titlecase_mapping": "10CA8", "symbol": "\u0CE8" }, 68841: { "value": "10CE9", "name": "OLD HUNGARIAN SMALL LETTER ECH", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CA9", "lowercase_mapping": "", "titlecase_mapping": "10CA9", "symbol": "\u0CE9" }, 68842: { "value": "10CEA", "name": "OLD HUNGARIAN SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAA", "lowercase_mapping": "", "titlecase_mapping": "10CAA", "symbol": "\u0CEA" }, 68843: { "value": "10CEB", "name": "OLD HUNGARIAN SMALL LETTER UU", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAB", "lowercase_mapping": "", "titlecase_mapping": "10CAB", "symbol": "\u0CEB" }, 68844: { "value": "10CEC", "name": "OLD HUNGARIAN SMALL LETTER NIKOLSBURG UE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAC", "lowercase_mapping": "", "titlecase_mapping": "10CAC", "symbol": "\u0CEC" }, 68845: { "value": "10CED", "name": "OLD HUNGARIAN SMALL LETTER RUDIMENTA UE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAD", "lowercase_mapping": "", "titlecase_mapping": "10CAD", "symbol": "\u0CED" }, 68846: { "value": "10CEE", "name": "OLD HUNGARIAN SMALL LETTER EV", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAE", "lowercase_mapping": "", "titlecase_mapping": "10CAE", "symbol": "\u0CEE" }, 68847: { "value": "10CEF", "name": "OLD HUNGARIAN SMALL LETTER EZ", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CAF", "lowercase_mapping": "", "titlecase_mapping": "10CAF", "symbol": "\u0CEF" }, 68848: { "value": "10CF0", "name": "OLD HUNGARIAN SMALL LETTER EZS", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CB0", "lowercase_mapping": "", "titlecase_mapping": "10CB0", "symbol": "\u0CF0" }, 68849: { "value": "10CF1", "name": "OLD HUNGARIAN SMALL LETTER ENT-SHAPED SIGN", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CB1", "lowercase_mapping": "", "titlecase_mapping": "10CB1", "symbol": "\u0CF1" }, 68850: { "value": "10CF2", "name": "OLD HUNGARIAN SMALL LETTER US", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "10CB2", "lowercase_mapping": "", "titlecase_mapping": "10CB2", "symbol": "\u0CF2" }, 71872: { "value": "118C0", "name": "WARANG CITI SMALL LETTER NGAA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A0", "lowercase_mapping": "", "titlecase_mapping": "118A0", "symbol": "\u18C0" }, 71873: { "value": "118C1", "name": "WARANG CITI SMALL LETTER A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A1", "lowercase_mapping": "", "titlecase_mapping": "118A1", "symbol": "\u18C1" }, 71874: { "value": "118C2", "name": "WARANG CITI SMALL LETTER WI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A2", "lowercase_mapping": "", "titlecase_mapping": "118A2", "symbol": "\u18C2" }, 71875: { "value": "118C3", "name": "WARANG CITI SMALL LETTER YU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A3", "lowercase_mapping": "", "titlecase_mapping": "118A3", "symbol": "\u18C3" }, 71876: { "value": "118C4", "name": "WARANG CITI SMALL LETTER YA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A4", "lowercase_mapping": "", "titlecase_mapping": "118A4", "symbol": "\u18C4" }, 71877: { "value": "118C5", "name": "WARANG CITI SMALL LETTER YO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A5", "lowercase_mapping": "", "titlecase_mapping": "118A5", "symbol": "\u18C5" }, 71878: { "value": "118C6", "name": "WARANG CITI SMALL LETTER II", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A6", "lowercase_mapping": "", "titlecase_mapping": "118A6", "symbol": "\u18C6" }, 71879: { "value": "118C7", "name": "WARANG CITI SMALL LETTER UU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A7", "lowercase_mapping": "", "titlecase_mapping": "118A7", "symbol": "\u18C7" }, 71880: { "value": "118C8", "name": "WARANG CITI SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A8", "lowercase_mapping": "", "titlecase_mapping": "118A8", "symbol": "\u18C8" }, 71881: { "value": "118C9", "name": "WARANG CITI SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118A9", "lowercase_mapping": "", "titlecase_mapping": "118A9", "symbol": "\u18C9" }, 71882: { "value": "118CA", "name": "WARANG CITI SMALL LETTER ANG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AA", "lowercase_mapping": "", "titlecase_mapping": "118AA", "symbol": "\u18CA" }, 71883: { "value": "118CB", "name": "WARANG CITI SMALL LETTER GA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AB", "lowercase_mapping": "", "titlecase_mapping": "118AB", "symbol": "\u18CB" }, 71884: { "value": "118CC", "name": "WARANG CITI SMALL LETTER KO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AC", "lowercase_mapping": "", "titlecase_mapping": "118AC", "symbol": "\u18CC" }, 71885: { "value": "118CD", "name": "WARANG CITI SMALL LETTER ENY", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AD", "lowercase_mapping": "", "titlecase_mapping": "118AD", "symbol": "\u18CD" }, 71886: { "value": "118CE", "name": "WARANG CITI SMALL LETTER YUJ", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AE", "lowercase_mapping": "", "titlecase_mapping": "118AE", "symbol": "\u18CE" }, 71887: { "value": "118CF", "name": "WARANG CITI SMALL LETTER UC", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118AF", "lowercase_mapping": "", "titlecase_mapping": "118AF", "symbol": "\u18CF" }, 71888: { "value": "118D0", "name": "WARANG CITI SMALL LETTER ENN", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B0", "lowercase_mapping": "", "titlecase_mapping": "118B0", "symbol": "\u18D0" }, 71889: { "value": "118D1", "name": "WARANG CITI SMALL LETTER ODD", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B1", "lowercase_mapping": "", "titlecase_mapping": "118B1", "symbol": "\u18D1" }, 71890: { "value": "118D2", "name": "WARANG CITI SMALL LETTER TTE", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B2", "lowercase_mapping": "", "titlecase_mapping": "118B2", "symbol": "\u18D2" }, 71891: { "value": "118D3", "name": "WARANG CITI SMALL LETTER NUNG", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B3", "lowercase_mapping": "", "titlecase_mapping": "118B3", "symbol": "\u18D3" }, 71892: { "value": "118D4", "name": "WARANG CITI SMALL LETTER DA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B4", "lowercase_mapping": "", "titlecase_mapping": "118B4", "symbol": "\u18D4" }, 71893: { "value": "118D5", "name": "WARANG CITI SMALL LETTER AT", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B5", "lowercase_mapping": "", "titlecase_mapping": "118B5", "symbol": "\u18D5" }, 71894: { "value": "118D6", "name": "WARANG CITI SMALL LETTER AM", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B6", "lowercase_mapping": "", "titlecase_mapping": "118B6", "symbol": "\u18D6" }, 71895: { "value": "118D7", "name": "WARANG CITI SMALL LETTER BU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B7", "lowercase_mapping": "", "titlecase_mapping": "118B7", "symbol": "\u18D7" }, 71896: { "value": "118D8", "name": "WARANG CITI SMALL LETTER PU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B8", "lowercase_mapping": "", "titlecase_mapping": "118B8", "symbol": "\u18D8" }, 71897: { "value": "118D9", "name": "WARANG CITI SMALL LETTER HIYO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118B9", "lowercase_mapping": "", "titlecase_mapping": "118B9", "symbol": "\u18D9" }, 71898: { "value": "118DA", "name": "WARANG CITI SMALL LETTER HOLO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BA", "lowercase_mapping": "", "titlecase_mapping": "118BA", "symbol": "\u18DA" }, 71899: { "value": "118DB", "name": "WARANG CITI SMALL LETTER HORR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BB", "lowercase_mapping": "", "titlecase_mapping": "118BB", "symbol": "\u18DB" }, 71900: { "value": "118DC", "name": "WARANG CITI SMALL LETTER HAR", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BC", "lowercase_mapping": "", "titlecase_mapping": "118BC", "symbol": "\u18DC" }, 71901: { "value": "118DD", "name": "WARANG CITI SMALL LETTER SSUU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BD", "lowercase_mapping": "", "titlecase_mapping": "118BD", "symbol": "\u18DD" }, 71902: { "value": "118DE", "name": "WARANG CITI SMALL LETTER SII", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BE", "lowercase_mapping": "", "titlecase_mapping": "118BE", "symbol": "\u18DE" }, 71903: { "value": "118DF", "name": "WARANG CITI SMALL LETTER VIYO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "118BF", "lowercase_mapping": "", "titlecase_mapping": "118BF", "symbol": "\u18DF" }, 119834: { "value": "1D41A", "name": "MATHEMATICAL BOLD SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41A" }, 119835: { "value": "1D41B", "name": "MATHEMATICAL BOLD SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41B" }, 119836: { "value": "1D41C", "name": "MATHEMATICAL BOLD SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41C" }, 119837: { "value": "1D41D", "name": "MATHEMATICAL BOLD SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41D" }, 119838: { "value": "1D41E", "name": "MATHEMATICAL BOLD SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41E" }, 119839: { "value": "1D41F", "name": "MATHEMATICAL BOLD SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD41F" }, 119840: { "value": "1D420", "name": "MATHEMATICAL BOLD SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD420" }, 119841: { "value": "1D421", "name": "MATHEMATICAL BOLD SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD421" }, 119842: { "value": "1D422", "name": "MATHEMATICAL BOLD SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD422" }, 119843: { "value": "1D423", "name": "MATHEMATICAL BOLD SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD423" }, 119844: { "value": "1D424", "name": "MATHEMATICAL BOLD SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD424" }, 119845: { "value": "1D425", "name": "MATHEMATICAL BOLD SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD425" }, 119846: { "value": "1D426", "name": "MATHEMATICAL BOLD SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD426" }, 119847: { "value": "1D427", "name": "MATHEMATICAL BOLD SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD427" }, 119848: { "value": "1D428", "name": "MATHEMATICAL BOLD SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD428" }, 119849: { "value": "1D429", "name": "MATHEMATICAL BOLD SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD429" }, 119850: { "value": "1D42A", "name": "MATHEMATICAL BOLD SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42A" }, 119851: { "value": "1D42B", "name": "MATHEMATICAL BOLD SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42B" }, 119852: { "value": "1D42C", "name": "MATHEMATICAL BOLD SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42C" }, 119853: { "value": "1D42D", "name": "MATHEMATICAL BOLD SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42D" }, 119854: { "value": "1D42E", "name": "MATHEMATICAL BOLD SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42E" }, 119855: { "value": "1D42F", "name": "MATHEMATICAL BOLD SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD42F" }, 119856: { "value": "1D430", "name": "MATHEMATICAL BOLD SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD430" }, 119857: { "value": "1D431", "name": "MATHEMATICAL BOLD SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD431" }, 119858: { "value": "1D432", "name": "MATHEMATICAL BOLD SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD432" }, 119859: { "value": "1D433", "name": "MATHEMATICAL BOLD SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD433" }, 119886: { "value": "1D44E", "name": "MATHEMATICAL ITALIC SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD44E" }, 119887: { "value": "1D44F", "name": "MATHEMATICAL ITALIC SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD44F" }, 119888: { "value": "1D450", "name": "MATHEMATICAL ITALIC SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD450" }, 119889: { "value": "1D451", "name": "MATHEMATICAL ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD451" }, 119890: { "value": "1D452", "name": "MATHEMATICAL ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD452" }, 119891: { "value": "1D453", "name": "MATHEMATICAL ITALIC SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD453" }, 119892: { "value": "1D454", "name": "MATHEMATICAL ITALIC SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD454" }, 119894: { "value": "1D456", "name": "MATHEMATICAL ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD456" }, 119895: { "value": "1D457", "name": "MATHEMATICAL ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD457" }, 119896: { "value": "1D458", "name": "MATHEMATICAL ITALIC SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD458" }, 119897: { "value": "1D459", "name": "MATHEMATICAL ITALIC SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD459" }, 119898: { "value": "1D45A", "name": "MATHEMATICAL ITALIC SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45A" }, 119899: { "value": "1D45B", "name": "MATHEMATICAL ITALIC SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45B" }, 119900: { "value": "1D45C", "name": "MATHEMATICAL ITALIC SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45C" }, 119901: { "value": "1D45D", "name": "MATHEMATICAL ITALIC SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45D" }, 119902: { "value": "1D45E", "name": "MATHEMATICAL ITALIC SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45E" }, 119903: { "value": "1D45F", "name": "MATHEMATICAL ITALIC SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD45F" }, 119904: { "value": "1D460", "name": "MATHEMATICAL ITALIC SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD460" }, 119905: { "value": "1D461", "name": "MATHEMATICAL ITALIC SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD461" }, 119906: { "value": "1D462", "name": "MATHEMATICAL ITALIC SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD462" }, 119907: { "value": "1D463", "name": "MATHEMATICAL ITALIC SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD463" }, 119908: { "value": "1D464", "name": "MATHEMATICAL ITALIC SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD464" }, 119909: { "value": "1D465", "name": "MATHEMATICAL ITALIC SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD465" }, 119910: { "value": "1D466", "name": "MATHEMATICAL ITALIC SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD466" }, 119911: { "value": "1D467", "name": "MATHEMATICAL ITALIC SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD467" }, 119938: { "value": "1D482", "name": "MATHEMATICAL BOLD ITALIC SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD482" }, 119939: { "value": "1D483", "name": "MATHEMATICAL BOLD ITALIC SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD483" }, 119940: { "value": "1D484", "name": "MATHEMATICAL BOLD ITALIC SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD484" }, 119941: { "value": "1D485", "name": "MATHEMATICAL BOLD ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD485" }, 119942: { "value": "1D486", "name": "MATHEMATICAL BOLD ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD486" }, 119943: { "value": "1D487", "name": "MATHEMATICAL BOLD ITALIC SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD487" }, 119944: { "value": "1D488", "name": "MATHEMATICAL BOLD ITALIC SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD488" }, 119945: { "value": "1D489", "name": "MATHEMATICAL BOLD ITALIC SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD489" }, 119946: { "value": "1D48A", "name": "MATHEMATICAL BOLD ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48A" }, 119947: { "value": "1D48B", "name": "MATHEMATICAL BOLD ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48B" }, 119948: { "value": "1D48C", "name": "MATHEMATICAL BOLD ITALIC SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48C" }, 119949: { "value": "1D48D", "name": "MATHEMATICAL BOLD ITALIC SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48D" }, 119950: { "value": "1D48E", "name": "MATHEMATICAL BOLD ITALIC SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48E" }, 119951: { "value": "1D48F", "name": "MATHEMATICAL BOLD ITALIC SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD48F" }, 119952: { "value": "1D490", "name": "MATHEMATICAL BOLD ITALIC SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD490" }, 119953: { "value": "1D491", "name": "MATHEMATICAL BOLD ITALIC SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD491" }, 119954: { "value": "1D492", "name": "MATHEMATICAL BOLD ITALIC SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD492" }, 119955: { "value": "1D493", "name": "MATHEMATICAL BOLD ITALIC SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD493" }, 119956: { "value": "1D494", "name": "MATHEMATICAL BOLD ITALIC SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD494" }, 119957: { "value": "1D495", "name": "MATHEMATICAL BOLD ITALIC SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD495" }, 119958: { "value": "1D496", "name": "MATHEMATICAL BOLD ITALIC SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD496" }, 119959: { "value": "1D497", "name": "MATHEMATICAL BOLD ITALIC SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD497" }, 119960: { "value": "1D498", "name": "MATHEMATICAL BOLD ITALIC SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD498" }, 119961: { "value": "1D499", "name": "MATHEMATICAL BOLD ITALIC SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD499" }, 119962: { "value": "1D49A", "name": "MATHEMATICAL BOLD ITALIC SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD49A" }, 119963: { "value": "1D49B", "name": "MATHEMATICAL BOLD ITALIC SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD49B" }, 119990: { "value": "1D4B6", "name": "MATHEMATICAL SCRIPT SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4B6" }, 119991: { "value": "1D4B7", "name": "MATHEMATICAL SCRIPT SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4B7" }, 119992: { "value": "1D4B8", "name": "MATHEMATICAL SCRIPT SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4B8" }, 119993: { "value": "1D4B9", "name": "MATHEMATICAL SCRIPT SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4B9" }, 119995: { "value": "1D4BB", "name": "MATHEMATICAL SCRIPT SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4BB" }, 119997: { "value": "1D4BD", "name": "MATHEMATICAL SCRIPT SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4BD" }, 119998: { "value": "1D4BE", "name": "MATHEMATICAL SCRIPT SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4BE" }, 119999: { "value": "1D4BF", "name": "MATHEMATICAL SCRIPT SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4BF" }, 120000: { "value": "1D4C0", "name": "MATHEMATICAL SCRIPT SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C0" }, 120001: { "value": "1D4C1", "name": "MATHEMATICAL SCRIPT SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C1" }, 120002: { "value": "1D4C2", "name": "MATHEMATICAL SCRIPT SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C2" }, 120003: { "value": "1D4C3", "name": "MATHEMATICAL SCRIPT SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C3" }, 120005: { "value": "1D4C5", "name": "MATHEMATICAL SCRIPT SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C5" }, 120006: { "value": "1D4C6", "name": "MATHEMATICAL SCRIPT SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C6" }, 120007: { "value": "1D4C7", "name": "MATHEMATICAL SCRIPT SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C7" }, 120008: { "value": "1D4C8", "name": "MATHEMATICAL SCRIPT SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C8" }, 120009: { "value": "1D4C9", "name": "MATHEMATICAL SCRIPT SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4C9" }, 120010: { "value": "1D4CA", "name": "MATHEMATICAL SCRIPT SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CA" }, 120011: { "value": "1D4CB", "name": "MATHEMATICAL SCRIPT SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CB" }, 120012: { "value": "1D4CC", "name": "MATHEMATICAL SCRIPT SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CC" }, 120013: { "value": "1D4CD", "name": "MATHEMATICAL SCRIPT SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CD" }, 120014: { "value": "1D4CE", "name": "MATHEMATICAL SCRIPT SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CE" }, 120015: { "value": "1D4CF", "name": "MATHEMATICAL SCRIPT SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4CF" }, 120042: { "value": "1D4EA", "name": "MATHEMATICAL BOLD SCRIPT SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EA" }, 120043: { "value": "1D4EB", "name": "MATHEMATICAL BOLD SCRIPT SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EB" }, 120044: { "value": "1D4EC", "name": "MATHEMATICAL BOLD SCRIPT SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EC" }, 120045: { "value": "1D4ED", "name": "MATHEMATICAL BOLD SCRIPT SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4ED" }, 120046: { "value": "1D4EE", "name": "MATHEMATICAL BOLD SCRIPT SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EE" }, 120047: { "value": "1D4EF", "name": "MATHEMATICAL BOLD SCRIPT SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4EF" }, 120048: { "value": "1D4F0", "name": "MATHEMATICAL BOLD SCRIPT SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F0" }, 120049: { "value": "1D4F1", "name": "MATHEMATICAL BOLD SCRIPT SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F1" }, 120050: { "value": "1D4F2", "name": "MATHEMATICAL BOLD SCRIPT SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F2" }, 120051: { "value": "1D4F3", "name": "MATHEMATICAL BOLD SCRIPT SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F3" }, 120052: { "value": "1D4F4", "name": "MATHEMATICAL BOLD SCRIPT SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F4" }, 120053: { "value": "1D4F5", "name": "MATHEMATICAL BOLD SCRIPT SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F5" }, 120054: { "value": "1D4F6", "name": "MATHEMATICAL BOLD SCRIPT SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F6" }, 120055: { "value": "1D4F7", "name": "MATHEMATICAL BOLD SCRIPT SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F7" }, 120056: { "value": "1D4F8", "name": "MATHEMATICAL BOLD SCRIPT SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F8" }, 120057: { "value": "1D4F9", "name": "MATHEMATICAL BOLD SCRIPT SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4F9" }, 120058: { "value": "1D4FA", "name": "MATHEMATICAL BOLD SCRIPT SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FA" }, 120059: { "value": "1D4FB", "name": "MATHEMATICAL BOLD SCRIPT SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FB" }, 120060: { "value": "1D4FC", "name": "MATHEMATICAL BOLD SCRIPT SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FC" }, 120061: { "value": "1D4FD", "name": "MATHEMATICAL BOLD SCRIPT SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FD" }, 120062: { "value": "1D4FE", "name": "MATHEMATICAL BOLD SCRIPT SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FE" }, 120063: { "value": "1D4FF", "name": "MATHEMATICAL BOLD SCRIPT SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD4FF" }, 120064: { "value": "1D500", "name": "MATHEMATICAL BOLD SCRIPT SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD500" }, 120065: { "value": "1D501", "name": "MATHEMATICAL BOLD SCRIPT SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD501" }, 120066: { "value": "1D502", "name": "MATHEMATICAL BOLD SCRIPT SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD502" }, 120067: { "value": "1D503", "name": "MATHEMATICAL BOLD SCRIPT SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD503" }, 120094: { "value": "1D51E", "name": "MATHEMATICAL FRAKTUR SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD51E" }, 120095: { "value": "1D51F", "name": "MATHEMATICAL FRAKTUR SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD51F" }, 120096: { "value": "1D520", "name": "MATHEMATICAL FRAKTUR SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD520" }, 120097: { "value": "1D521", "name": "MATHEMATICAL FRAKTUR SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD521" }, 120098: { "value": "1D522", "name": "MATHEMATICAL FRAKTUR SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD522" }, 120099: { "value": "1D523", "name": "MATHEMATICAL FRAKTUR SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD523" }, 120100: { "value": "1D524", "name": "MATHEMATICAL FRAKTUR SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD524" }, 120101: { "value": "1D525", "name": "MATHEMATICAL FRAKTUR SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD525" }, 120102: { "value": "1D526", "name": "MATHEMATICAL FRAKTUR SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD526" }, 120103: { "value": "1D527", "name": "MATHEMATICAL FRAKTUR SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD527" }, 120104: { "value": "1D528", "name": "MATHEMATICAL FRAKTUR SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD528" }, 120105: { "value": "1D529", "name": "MATHEMATICAL FRAKTUR SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD529" }, 120106: { "value": "1D52A", "name": "MATHEMATICAL FRAKTUR SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52A" }, 120107: { "value": "1D52B", "name": "MATHEMATICAL FRAKTUR SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52B" }, 120108: { "value": "1D52C", "name": "MATHEMATICAL FRAKTUR SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52C" }, 120109: { "value": "1D52D", "name": "MATHEMATICAL FRAKTUR SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52D" }, 120110: { "value": "1D52E", "name": "MATHEMATICAL FRAKTUR SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52E" }, 120111: { "value": "1D52F", "name": "MATHEMATICAL FRAKTUR SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD52F" }, 120112: { "value": "1D530", "name": "MATHEMATICAL FRAKTUR SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD530" }, 120113: { "value": "1D531", "name": "MATHEMATICAL FRAKTUR SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD531" }, 120114: { "value": "1D532", "name": "MATHEMATICAL FRAKTUR SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD532" }, 120115: { "value": "1D533", "name": "MATHEMATICAL FRAKTUR SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD533" }, 120116: { "value": "1D534", "name": "MATHEMATICAL FRAKTUR SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD534" }, 120117: { "value": "1D535", "name": "MATHEMATICAL FRAKTUR SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD535" }, 120118: { "value": "1D536", "name": "MATHEMATICAL FRAKTUR SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD536" }, 120119: { "value": "1D537", "name": "MATHEMATICAL FRAKTUR SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD537" }, 120146: { "value": "1D552", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD552" }, 120147: { "value": "1D553", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD553" }, 120148: { "value": "1D554", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD554" }, 120149: { "value": "1D555", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD555" }, 120150: { "value": "1D556", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD556" }, 120151: { "value": "1D557", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD557" }, 120152: { "value": "1D558", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD558" }, 120153: { "value": "1D559", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD559" }, 120154: { "value": "1D55A", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55A" }, 120155: { "value": "1D55B", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55B" }, 120156: { "value": "1D55C", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55C" }, 120157: { "value": "1D55D", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55D" }, 120158: { "value": "1D55E", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55E" }, 120159: { "value": "1D55F", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD55F" }, 120160: { "value": "1D560", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD560" }, 120161: { "value": "1D561", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD561" }, 120162: { "value": "1D562", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD562" }, 120163: { "value": "1D563", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD563" }, 120164: { "value": "1D564", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD564" }, 120165: { "value": "1D565", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD565" }, 120166: { "value": "1D566", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD566" }, 120167: { "value": "1D567", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD567" }, 120168: { "value": "1D568", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD568" }, 120169: { "value": "1D569", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD569" }, 120170: { "value": "1D56A", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD56A" }, 120171: { "value": "1D56B", "name": "MATHEMATICAL DOUBLE-STRUCK SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD56B" }, 120198: { "value": "1D586", "name": "MATHEMATICAL BOLD FRAKTUR SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD586" }, 120199: { "value": "1D587", "name": "MATHEMATICAL BOLD FRAKTUR SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD587" }, 120200: { "value": "1D588", "name": "MATHEMATICAL BOLD FRAKTUR SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD588" }, 120201: { "value": "1D589", "name": "MATHEMATICAL BOLD FRAKTUR SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD589" }, 120202: { "value": "1D58A", "name": "MATHEMATICAL BOLD FRAKTUR SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58A" }, 120203: { "value": "1D58B", "name": "MATHEMATICAL BOLD FRAKTUR SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58B" }, 120204: { "value": "1D58C", "name": "MATHEMATICAL BOLD FRAKTUR SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58C" }, 120205: { "value": "1D58D", "name": "MATHEMATICAL BOLD FRAKTUR SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58D" }, 120206: { "value": "1D58E", "name": "MATHEMATICAL BOLD FRAKTUR SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58E" }, 120207: { "value": "1D58F", "name": "MATHEMATICAL BOLD FRAKTUR SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD58F" }, 120208: { "value": "1D590", "name": "MATHEMATICAL BOLD FRAKTUR SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD590" }, 120209: { "value": "1D591", "name": "MATHEMATICAL BOLD FRAKTUR SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD591" }, 120210: { "value": "1D592", "name": "MATHEMATICAL BOLD FRAKTUR SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD592" }, 120211: { "value": "1D593", "name": "MATHEMATICAL BOLD FRAKTUR SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD593" }, 120212: { "value": "1D594", "name": "MATHEMATICAL BOLD FRAKTUR SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD594" }, 120213: { "value": "1D595", "name": "MATHEMATICAL BOLD FRAKTUR SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD595" }, 120214: { "value": "1D596", "name": "MATHEMATICAL BOLD FRAKTUR SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD596" }, 120215: { "value": "1D597", "name": "MATHEMATICAL BOLD FRAKTUR SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD597" }, 120216: { "value": "1D598", "name": "MATHEMATICAL BOLD FRAKTUR SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD598" }, 120217: { "value": "1D599", "name": "MATHEMATICAL BOLD FRAKTUR SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD599" }, 120218: { "value": "1D59A", "name": "MATHEMATICAL BOLD FRAKTUR SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59A" }, 120219: { "value": "1D59B", "name": "MATHEMATICAL BOLD FRAKTUR SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59B" }, 120220: { "value": "1D59C", "name": "MATHEMATICAL BOLD FRAKTUR SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59C" }, 120221: { "value": "1D59D", "name": "MATHEMATICAL BOLD FRAKTUR SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59D" }, 120222: { "value": "1D59E", "name": "MATHEMATICAL BOLD FRAKTUR SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59E" }, 120223: { "value": "1D59F", "name": "MATHEMATICAL BOLD FRAKTUR SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD59F" }, 120250: { "value": "1D5BA", "name": "MATHEMATICAL SANS-SERIF SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BA" }, 120251: { "value": "1D5BB", "name": "MATHEMATICAL SANS-SERIF SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BB" }, 120252: { "value": "1D5BC", "name": "MATHEMATICAL SANS-SERIF SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BC" }, 120253: { "value": "1D5BD", "name": "MATHEMATICAL SANS-SERIF SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BD" }, 120254: { "value": "1D5BE", "name": "MATHEMATICAL SANS-SERIF SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BE" }, 120255: { "value": "1D5BF", "name": "MATHEMATICAL SANS-SERIF SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5BF" }, 120256: { "value": "1D5C0", "name": "MATHEMATICAL SANS-SERIF SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C0" }, 120257: { "value": "1D5C1", "name": "MATHEMATICAL SANS-SERIF SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C1" }, 120258: { "value": "1D5C2", "name": "MATHEMATICAL SANS-SERIF SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C2" }, 120259: { "value": "1D5C3", "name": "MATHEMATICAL SANS-SERIF SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C3" }, 120260: { "value": "1D5C4", "name": "MATHEMATICAL SANS-SERIF SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C4" }, 120261: { "value": "1D5C5", "name": "MATHEMATICAL SANS-SERIF SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C5" }, 120262: { "value": "1D5C6", "name": "MATHEMATICAL SANS-SERIF SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C6" }, 120263: { "value": "1D5C7", "name": "MATHEMATICAL SANS-SERIF SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C7" }, 120264: { "value": "1D5C8", "name": "MATHEMATICAL SANS-SERIF SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C8" }, 120265: { "value": "1D5C9", "name": "MATHEMATICAL SANS-SERIF SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5C9" }, 120266: { "value": "1D5CA", "name": "MATHEMATICAL SANS-SERIF SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CA" }, 120267: { "value": "1D5CB", "name": "MATHEMATICAL SANS-SERIF SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CB" }, 120268: { "value": "1D5CC", "name": "MATHEMATICAL SANS-SERIF SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CC" }, 120269: { "value": "1D5CD", "name": "MATHEMATICAL SANS-SERIF SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CD" }, 120270: { "value": "1D5CE", "name": "MATHEMATICAL SANS-SERIF SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CE" }, 120271: { "value": "1D5CF", "name": "MATHEMATICAL SANS-SERIF SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5CF" }, 120272: { "value": "1D5D0", "name": "MATHEMATICAL SANS-SERIF SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5D0" }, 120273: { "value": "1D5D1", "name": "MATHEMATICAL SANS-SERIF SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5D1" }, 120274: { "value": "1D5D2", "name": "MATHEMATICAL SANS-SERIF SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5D2" }, 120275: { "value": "1D5D3", "name": "MATHEMATICAL SANS-SERIF SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5D3" }, 120302: { "value": "1D5EE", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5EE" }, 120303: { "value": "1D5EF", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5EF" }, 120304: { "value": "1D5F0", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F0" }, 120305: { "value": "1D5F1", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F1" }, 120306: { "value": "1D5F2", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F2" }, 120307: { "value": "1D5F3", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F3" }, 120308: { "value": "1D5F4", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F4" }, 120309: { "value": "1D5F5", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F5" }, 120310: { "value": "1D5F6", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F6" }, 120311: { "value": "1D5F7", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F7" }, 120312: { "value": "1D5F8", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F8" }, 120313: { "value": "1D5F9", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5F9" }, 120314: { "value": "1D5FA", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FA" }, 120315: { "value": "1D5FB", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FB" }, 120316: { "value": "1D5FC", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FC" }, 120317: { "value": "1D5FD", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FD" }, 120318: { "value": "1D5FE", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FE" }, 120319: { "value": "1D5FF", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD5FF" }, 120320: { "value": "1D600", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD600" }, 120321: { "value": "1D601", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD601" }, 120322: { "value": "1D602", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD602" }, 120323: { "value": "1D603", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD603" }, 120324: { "value": "1D604", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD604" }, 120325: { "value": "1D605", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD605" }, 120326: { "value": "1D606", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD606" }, 120327: { "value": "1D607", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD607" }, 120354: { "value": "1D622", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD622" }, 120355: { "value": "1D623", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD623" }, 120356: { "value": "1D624", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD624" }, 120357: { "value": "1D625", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD625" }, 120358: { "value": "1D626", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD626" }, 120359: { "value": "1D627", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD627" }, 120360: { "value": "1D628", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD628" }, 120361: { "value": "1D629", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD629" }, 120362: { "value": "1D62A", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62A" }, 120363: { "value": "1D62B", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62B" }, 120364: { "value": "1D62C", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62C" }, 120365: { "value": "1D62D", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62D" }, 120366: { "value": "1D62E", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62E" }, 120367: { "value": "1D62F", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD62F" }, 120368: { "value": "1D630", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD630" }, 120369: { "value": "1D631", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD631" }, 120370: { "value": "1D632", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD632" }, 120371: { "value": "1D633", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD633" }, 120372: { "value": "1D634", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD634" }, 120373: { "value": "1D635", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD635" }, 120374: { "value": "1D636", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD636" }, 120375: { "value": "1D637", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD637" }, 120376: { "value": "1D638", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD638" }, 120377: { "value": "1D639", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD639" }, 120378: { "value": "1D63A", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD63A" }, 120379: { "value": "1D63B", "name": "MATHEMATICAL SANS-SERIF ITALIC SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD63B" }, 120406: { "value": "1D656", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD656" }, 120407: { "value": "1D657", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD657" }, 120408: { "value": "1D658", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD658" }, 120409: { "value": "1D659", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD659" }, 120410: { "value": "1D65A", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65A" }, 120411: { "value": "1D65B", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65B" }, 120412: { "value": "1D65C", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65C" }, 120413: { "value": "1D65D", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65D" }, 120414: { "value": "1D65E", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65E" }, 120415: { "value": "1D65F", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD65F" }, 120416: { "value": "1D660", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD660" }, 120417: { "value": "1D661", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD661" }, 120418: { "value": "1D662", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD662" }, 120419: { "value": "1D663", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD663" }, 120420: { "value": "1D664", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD664" }, 120421: { "value": "1D665", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD665" }, 120422: { "value": "1D666", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD666" }, 120423: { "value": "1D667", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD667" }, 120424: { "value": "1D668", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD668" }, 120425: { "value": "1D669", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD669" }, 120426: { "value": "1D66A", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66A" }, 120427: { "value": "1D66B", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66B" }, 120428: { "value": "1D66C", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66C" }, 120429: { "value": "1D66D", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66D" }, 120430: { "value": "1D66E", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66E" }, 120431: { "value": "1D66F", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD66F" }, 120458: { "value": "1D68A", "name": "MATHEMATICAL MONOSPACE SMALL A", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0061", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68A" }, 120459: { "value": "1D68B", "name": "MATHEMATICAL MONOSPACE SMALL B", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0062", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68B" }, 120460: { "value": "1D68C", "name": "MATHEMATICAL MONOSPACE SMALL C", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0063", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68C" }, 120461: { "value": "1D68D", "name": "MATHEMATICAL MONOSPACE SMALL D", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0064", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68D" }, 120462: { "value": "1D68E", "name": "MATHEMATICAL MONOSPACE SMALL E", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0065", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68E" }, 120463: { "value": "1D68F", "name": "MATHEMATICAL MONOSPACE SMALL F", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0066", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD68F" }, 120464: { "value": "1D690", "name": "MATHEMATICAL MONOSPACE SMALL G", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0067", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD690" }, 120465: { "value": "1D691", "name": "MATHEMATICAL MONOSPACE SMALL H", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0068", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD691" }, 120466: { "value": "1D692", "name": "MATHEMATICAL MONOSPACE SMALL I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0069", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD692" }, 120467: { "value": "1D693", "name": "MATHEMATICAL MONOSPACE SMALL J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD693" }, 120468: { "value": "1D694", "name": "MATHEMATICAL MONOSPACE SMALL K", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006B", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD694" }, 120469: { "value": "1D695", "name": "MATHEMATICAL MONOSPACE SMALL L", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006C", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD695" }, 120470: { "value": "1D696", "name": "MATHEMATICAL MONOSPACE SMALL M", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006D", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD696" }, 120471: { "value": "1D697", "name": "MATHEMATICAL MONOSPACE SMALL N", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006E", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD697" }, 120472: { "value": "1D698", "name": "MATHEMATICAL MONOSPACE SMALL O", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 006F", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD698" }, 120473: { "value": "1D699", "name": "MATHEMATICAL MONOSPACE SMALL P", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0070", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD699" }, 120474: { "value": "1D69A", "name": "MATHEMATICAL MONOSPACE SMALL Q", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0071", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69A" }, 120475: { "value": "1D69B", "name": "MATHEMATICAL MONOSPACE SMALL R", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0072", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69B" }, 120476: { "value": "1D69C", "name": "MATHEMATICAL MONOSPACE SMALL S", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0073", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69C" }, 120477: { "value": "1D69D", "name": "MATHEMATICAL MONOSPACE SMALL T", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0074", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69D" }, 120478: { "value": "1D69E", "name": "MATHEMATICAL MONOSPACE SMALL U", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0075", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69E" }, 120479: { "value": "1D69F", "name": "MATHEMATICAL MONOSPACE SMALL V", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0076", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD69F" }, 120480: { "value": "1D6A0", "name": "MATHEMATICAL MONOSPACE SMALL W", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0077", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A0" }, 120481: { "value": "1D6A1", "name": "MATHEMATICAL MONOSPACE SMALL X", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0078", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A1" }, 120482: { "value": "1D6A2", "name": "MATHEMATICAL MONOSPACE SMALL Y", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0079", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A2" }, 120483: { "value": "1D6A3", "name": "MATHEMATICAL MONOSPACE SMALL Z", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 007A", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A3" }, 120484: { "value": "1D6A4", "name": "MATHEMATICAL ITALIC SMALL DOTLESS I", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0131", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A4" }, 120485: { "value": "1D6A5", "name": "MATHEMATICAL ITALIC SMALL DOTLESS J", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 0237", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6A5" }, 120514: { "value": "1D6C2", "name": "MATHEMATICAL BOLD SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C2" }, 120515: { "value": "1D6C3", "name": "MATHEMATICAL BOLD SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C3" }, 120516: { "value": "1D6C4", "name": "MATHEMATICAL BOLD SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C4" }, 120517: { "value": "1D6C5", "name": "MATHEMATICAL BOLD SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C5" }, 120518: { "value": "1D6C6", "name": "MATHEMATICAL BOLD SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C6" }, 120519: { "value": "1D6C7", "name": "MATHEMATICAL BOLD SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C7" }, 120520: { "value": "1D6C8", "name": "MATHEMATICAL BOLD SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C8" }, 120521: { "value": "1D6C9", "name": "MATHEMATICAL BOLD SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6C9" }, 120522: { "value": "1D6CA", "name": "MATHEMATICAL BOLD SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CA" }, 120523: { "value": "1D6CB", "name": "MATHEMATICAL BOLD SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CB" }, 120524: { "value": "1D6CC", "name": "MATHEMATICAL BOLD SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CC" }, 120525: { "value": "1D6CD", "name": "MATHEMATICAL BOLD SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CD" }, 120526: { "value": "1D6CE", "name": "MATHEMATICAL BOLD SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CE" }, 120527: { "value": "1D6CF", "name": "MATHEMATICAL BOLD SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6CF" }, 120528: { "value": "1D6D0", "name": "MATHEMATICAL BOLD SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D0" }, 120529: { "value": "1D6D1", "name": "MATHEMATICAL BOLD SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D1" }, 120530: { "value": "1D6D2", "name": "MATHEMATICAL BOLD SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D2" }, 120531: { "value": "1D6D3", "name": "MATHEMATICAL BOLD SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D3" }, 120532: { "value": "1D6D4", "name": "MATHEMATICAL BOLD SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D4" }, 120533: { "value": "1D6D5", "name": "MATHEMATICAL BOLD SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D5" }, 120534: { "value": "1D6D6", "name": "MATHEMATICAL BOLD SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D6" }, 120535: { "value": "1D6D7", "name": "MATHEMATICAL BOLD SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D7" }, 120536: { "value": "1D6D8", "name": "MATHEMATICAL BOLD SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D8" }, 120537: { "value": "1D6D9", "name": "MATHEMATICAL BOLD SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6D9" }, 120538: { "value": "1D6DA", "name": "MATHEMATICAL BOLD SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DA" }, 120540: { "value": "1D6DC", "name": "MATHEMATICAL BOLD EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DC" }, 120541: { "value": "1D6DD", "name": "MATHEMATICAL BOLD THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DD" }, 120542: { "value": "1D6DE", "name": "MATHEMATICAL BOLD KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DE" }, 120543: { "value": "1D6DF", "name": "MATHEMATICAL BOLD PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6DF" }, 120544: { "value": "1D6E0", "name": "MATHEMATICAL BOLD RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6E0" }, 120545: { "value": "1D6E1", "name": "MATHEMATICAL BOLD PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6E1" }, 120572: { "value": "1D6FC", "name": "MATHEMATICAL ITALIC SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6FC" }, 120573: { "value": "1D6FD", "name": "MATHEMATICAL ITALIC SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6FD" }, 120574: { "value": "1D6FE", "name": "MATHEMATICAL ITALIC SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6FE" }, 120575: { "value": "1D6FF", "name": "MATHEMATICAL ITALIC SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD6FF" }, 120576: { "value": "1D700", "name": "MATHEMATICAL ITALIC SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD700" }, 120577: { "value": "1D701", "name": "MATHEMATICAL ITALIC SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD701" }, 120578: { "value": "1D702", "name": "MATHEMATICAL ITALIC SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD702" }, 120579: { "value": "1D703", "name": "MATHEMATICAL ITALIC SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD703" }, 120580: { "value": "1D704", "name": "MATHEMATICAL ITALIC SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD704" }, 120581: { "value": "1D705", "name": "MATHEMATICAL ITALIC SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD705" }, 120582: { "value": "1D706", "name": "MATHEMATICAL ITALIC SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD706" }, 120583: { "value": "1D707", "name": "MATHEMATICAL ITALIC SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD707" }, 120584: { "value": "1D708", "name": "MATHEMATICAL ITALIC SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD708" }, 120585: { "value": "1D709", "name": "MATHEMATICAL ITALIC SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD709" }, 120586: { "value": "1D70A", "name": "MATHEMATICAL ITALIC SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70A" }, 120587: { "value": "1D70B", "name": "MATHEMATICAL ITALIC SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70B" }, 120588: { "value": "1D70C", "name": "MATHEMATICAL ITALIC SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70C" }, 120589: { "value": "1D70D", "name": "MATHEMATICAL ITALIC SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70D" }, 120590: { "value": "1D70E", "name": "MATHEMATICAL ITALIC SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70E" }, 120591: { "value": "1D70F", "name": "MATHEMATICAL ITALIC SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD70F" }, 120592: { "value": "1D710", "name": "MATHEMATICAL ITALIC SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD710" }, 120593: { "value": "1D711", "name": "MATHEMATICAL ITALIC SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD711" }, 120594: { "value": "1D712", "name": "MATHEMATICAL ITALIC SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD712" }, 120595: { "value": "1D713", "name": "MATHEMATICAL ITALIC SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD713" }, 120596: { "value": "1D714", "name": "MATHEMATICAL ITALIC SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD714" }, 120598: { "value": "1D716", "name": "MATHEMATICAL ITALIC EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD716" }, 120599: { "value": "1D717", "name": "MATHEMATICAL ITALIC THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD717" }, 120600: { "value": "1D718", "name": "MATHEMATICAL ITALIC KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD718" }, 120601: { "value": "1D719", "name": "MATHEMATICAL ITALIC PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD719" }, 120602: { "value": "1D71A", "name": "MATHEMATICAL ITALIC RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD71A" }, 120603: { "value": "1D71B", "name": "MATHEMATICAL ITALIC PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD71B" }, 120630: { "value": "1D736", "name": "MATHEMATICAL BOLD ITALIC SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD736" }, 120631: { "value": "1D737", "name": "MATHEMATICAL BOLD ITALIC SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD737" }, 120632: { "value": "1D738", "name": "MATHEMATICAL BOLD ITALIC SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD738" }, 120633: { "value": "1D739", "name": "MATHEMATICAL BOLD ITALIC SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD739" }, 120634: { "value": "1D73A", "name": "MATHEMATICAL BOLD ITALIC SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73A" }, 120635: { "value": "1D73B", "name": "MATHEMATICAL BOLD ITALIC SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73B" }, 120636: { "value": "1D73C", "name": "MATHEMATICAL BOLD ITALIC SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73C" }, 120637: { "value": "1D73D", "name": "MATHEMATICAL BOLD ITALIC SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73D" }, 120638: { "value": "1D73E", "name": "MATHEMATICAL BOLD ITALIC SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73E" }, 120639: { "value": "1D73F", "name": "MATHEMATICAL BOLD ITALIC SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD73F" }, 120640: { "value": "1D740", "name": "MATHEMATICAL BOLD ITALIC SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD740" }, 120641: { "value": "1D741", "name": "MATHEMATICAL BOLD ITALIC SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD741" }, 120642: { "value": "1D742", "name": "MATHEMATICAL BOLD ITALIC SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD742" }, 120643: { "value": "1D743", "name": "MATHEMATICAL BOLD ITALIC SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD743" }, 120644: { "value": "1D744", "name": "MATHEMATICAL BOLD ITALIC SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD744" }, 120645: { "value": "1D745", "name": "MATHEMATICAL BOLD ITALIC SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD745" }, 120646: { "value": "1D746", "name": "MATHEMATICAL BOLD ITALIC SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD746" }, 120647: { "value": "1D747", "name": "MATHEMATICAL BOLD ITALIC SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD747" }, 120648: { "value": "1D748", "name": "MATHEMATICAL BOLD ITALIC SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD748" }, 120649: { "value": "1D749", "name": "MATHEMATICAL BOLD ITALIC SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD749" }, 120650: { "value": "1D74A", "name": "MATHEMATICAL BOLD ITALIC SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74A" }, 120651: { "value": "1D74B", "name": "MATHEMATICAL BOLD ITALIC SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74B" }, 120652: { "value": "1D74C", "name": "MATHEMATICAL BOLD ITALIC SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74C" }, 120653: { "value": "1D74D", "name": "MATHEMATICAL BOLD ITALIC SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74D" }, 120654: { "value": "1D74E", "name": "MATHEMATICAL BOLD ITALIC SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD74E" }, 120656: { "value": "1D750", "name": "MATHEMATICAL BOLD ITALIC EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD750" }, 120657: { "value": "1D751", "name": "MATHEMATICAL BOLD ITALIC THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD751" }, 120658: { "value": "1D752", "name": "MATHEMATICAL BOLD ITALIC KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD752" }, 120659: { "value": "1D753", "name": "MATHEMATICAL BOLD ITALIC PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD753" }, 120660: { "value": "1D754", "name": "MATHEMATICAL BOLD ITALIC RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD754" }, 120661: { "value": "1D755", "name": "MATHEMATICAL BOLD ITALIC PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD755" }, 120688: { "value": "1D770", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD770" }, 120689: { "value": "1D771", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD771" }, 120690: { "value": "1D772", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD772" }, 120691: { "value": "1D773", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD773" }, 120692: { "value": "1D774", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD774" }, 120693: { "value": "1D775", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD775" }, 120694: { "value": "1D776", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD776" }, 120695: { "value": "1D777", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD777" }, 120696: { "value": "1D778", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD778" }, 120697: { "value": "1D779", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD779" }, 120698: { "value": "1D77A", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77A" }, 120699: { "value": "1D77B", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77B" }, 120700: { "value": "1D77C", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77C" }, 120701: { "value": "1D77D", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77D" }, 120702: { "value": "1D77E", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77E" }, 120703: { "value": "1D77F", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD77F" }, 120704: { "value": "1D780", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD780" }, 120705: { "value": "1D781", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD781" }, 120706: { "value": "1D782", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD782" }, 120707: { "value": "1D783", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD783" }, 120708: { "value": "1D784", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD784" }, 120709: { "value": "1D785", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD785" }, 120710: { "value": "1D786", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD786" }, 120711: { "value": "1D787", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD787" }, 120712: { "value": "1D788", "name": "MATHEMATICAL SANS-SERIF BOLD SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD788" }, 120714: { "value": "1D78A", "name": "MATHEMATICAL SANS-SERIF BOLD EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78A" }, 120715: { "value": "1D78B", "name": "MATHEMATICAL SANS-SERIF BOLD THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78B" }, 120716: { "value": "1D78C", "name": "MATHEMATICAL SANS-SERIF BOLD KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78C" }, 120717: { "value": "1D78D", "name": "MATHEMATICAL SANS-SERIF BOLD PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78D" }, 120718: { "value": "1D78E", "name": "MATHEMATICAL SANS-SERIF BOLD RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78E" }, 120719: { "value": "1D78F", "name": "MATHEMATICAL SANS-SERIF BOLD PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD78F" }, 120746: { "value": "1D7AA", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ALPHA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AA" }, 120747: { "value": "1D7AB", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL BETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AB" }, 120748: { "value": "1D7AC", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL GAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AC" }, 120749: { "value": "1D7AD", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL DELTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AD" }, 120750: { "value": "1D7AE", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL EPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AE" }, 120751: { "value": "1D7AF", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ZETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7AF" }, 120752: { "value": "1D7B0", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B0" }, 120753: { "value": "1D7B1", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL THETA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B1" }, 120754: { "value": "1D7B2", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL IOTA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03B9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B2" }, 120755: { "value": "1D7B3", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL KAPPA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BA", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B3" }, 120756: { "value": "1D7B4", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL LAMDA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BB", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B4" }, 120757: { "value": "1D7B5", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL MU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BC", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B5" }, 120758: { "value": "1D7B6", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL NU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B6" }, 120759: { "value": "1D7B7", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL XI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BE", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B7" }, 120760: { "value": "1D7B8", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMICRON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03BF", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B8" }, 120761: { "value": "1D7B9", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7B9" }, 120762: { "value": "1D7BA", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL RHO", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BA" }, 120763: { "value": "1D7BB", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL FINAL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C2", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BB" }, 120764: { "value": "1D7BC", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL SIGMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C3", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BC" }, 120765: { "value": "1D7BD", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL TAU", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C4", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BD" }, 120766: { "value": "1D7BE", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL UPSILON", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BE" }, 120767: { "value": "1D7BF", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7BF" }, 120768: { "value": "1D7C0", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL CHI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C7", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C0" }, 120769: { "value": "1D7C1", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PSI", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C8", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C1" }, 120770: { "value": "1D7C2", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMEGA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03C9", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C2" }, 120772: { "value": "1D7C4", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC EPSILON SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C4" }, 120773: { "value": "1D7C5", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC THETA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C5" }, 120774: { "value": "1D7C6", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC KAPPA SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F0", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C6" }, 120775: { "value": "1D7C7", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC PHI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D5", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C7" }, 120776: { "value": "1D7C8", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC RHO SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03F1", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C8" }, 120777: { "value": "1D7C9", "name": "MATHEMATICAL SANS-SERIF BOLD ITALIC PI SYMBOL", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03D6", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7C9" }, 120779: { "value": "1D7CB", "name": "MATHEMATICAL BOLD SMALL DIGAMMA", "category": "Ll", "class": "0", "bidirectional_category": "L", "mapping": " 03DD", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "", "lowercase_mapping": "", "titlecase_mapping": "", "symbol": "\uD7CB" }, 125218: { "value": "1E922", "name": "ADLAM SMALL LETTER ALIF", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E900", "lowercase_mapping": "", "titlecase_mapping": "1E900", "symbol": "\uE922" }, 125219: { "value": "1E923", "name": "ADLAM SMALL LETTER DAALI", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E901", "lowercase_mapping": "", "titlecase_mapping": "1E901", "symbol": "\uE923" }, 125220: { "value": "1E924", "name": "ADLAM SMALL LETTER LAAM", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E902", "lowercase_mapping": "", "titlecase_mapping": "1E902", "symbol": "\uE924" }, 125221: { "value": "1E925", "name": "ADLAM SMALL LETTER MIIM", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E903", "lowercase_mapping": "", "titlecase_mapping": "1E903", "symbol": "\uE925" }, 125222: { "value": "1E926", "name": "ADLAM SMALL LETTER BA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E904", "lowercase_mapping": "", "titlecase_mapping": "1E904", "symbol": "\uE926" }, 125223: { "value": "1E927", "name": "ADLAM SMALL LETTER SINNYIIYHE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E905", "lowercase_mapping": "", "titlecase_mapping": "1E905", "symbol": "\uE927" }, 125224: { "value": "1E928", "name": "ADLAM SMALL LETTER PE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E906", "lowercase_mapping": "", "titlecase_mapping": "1E906", "symbol": "\uE928" }, 125225: { "value": "1E929", "name": "ADLAM SMALL LETTER BHE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E907", "lowercase_mapping": "", "titlecase_mapping": "1E907", "symbol": "\uE929" }, 125226: { "value": "1E92A", "name": "ADLAM SMALL LETTER RA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E908", "lowercase_mapping": "", "titlecase_mapping": "1E908", "symbol": "\uE92A" }, 125227: { "value": "1E92B", "name": "ADLAM SMALL LETTER E", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E909", "lowercase_mapping": "", "titlecase_mapping": "1E909", "symbol": "\uE92B" }, 125228: { "value": "1E92C", "name": "ADLAM SMALL LETTER FA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90A", "lowercase_mapping": "", "titlecase_mapping": "1E90A", "symbol": "\uE92C" }, 125229: { "value": "1E92D", "name": "ADLAM SMALL LETTER I", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90B", "lowercase_mapping": "", "titlecase_mapping": "1E90B", "symbol": "\uE92D" }, 125230: { "value": "1E92E", "name": "ADLAM SMALL LETTER O", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90C", "lowercase_mapping": "", "titlecase_mapping": "1E90C", "symbol": "\uE92E" }, 125231: { "value": "1E92F", "name": "ADLAM SMALL LETTER DHA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90D", "lowercase_mapping": "", "titlecase_mapping": "1E90D", "symbol": "\uE92F" }, 125232: { "value": "1E930", "name": "ADLAM SMALL LETTER YHE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90E", "lowercase_mapping": "", "titlecase_mapping": "1E90E", "symbol": "\uE930" }, 125233: { "value": "1E931", "name": "ADLAM SMALL LETTER WAW", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E90F", "lowercase_mapping": "", "titlecase_mapping": "1E90F", "symbol": "\uE931" }, 125234: { "value": "1E932", "name": "ADLAM SMALL LETTER NUN", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E910", "lowercase_mapping": "", "titlecase_mapping": "1E910", "symbol": "\uE932" }, 125235: { "value": "1E933", "name": "ADLAM SMALL LETTER KAF", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E911", "lowercase_mapping": "", "titlecase_mapping": "1E911", "symbol": "\uE933" }, 125236: { "value": "1E934", "name": "ADLAM SMALL LETTER YA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E912", "lowercase_mapping": "", "titlecase_mapping": "1E912", "symbol": "\uE934" }, 125237: { "value": "1E935", "name": "ADLAM SMALL LETTER U", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E913", "lowercase_mapping": "", "titlecase_mapping": "1E913", "symbol": "\uE935" }, 125238: { "value": "1E936", "name": "ADLAM SMALL LETTER JIIM", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E914", "lowercase_mapping": "", "titlecase_mapping": "1E914", "symbol": "\uE936" }, 125239: { "value": "1E937", "name": "ADLAM SMALL LETTER CHI", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E915", "lowercase_mapping": "", "titlecase_mapping": "1E915", "symbol": "\uE937" }, 125240: { "value": "1E938", "name": "ADLAM SMALL LETTER HA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E916", "lowercase_mapping": "", "titlecase_mapping": "1E916", "symbol": "\uE938" }, 125241: { "value": "1E939", "name": "ADLAM SMALL LETTER QAAF", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E917", "lowercase_mapping": "", "titlecase_mapping": "1E917", "symbol": "\uE939" }, 125242: { "value": "1E93A", "name": "ADLAM SMALL LETTER GA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E918", "lowercase_mapping": "", "titlecase_mapping": "1E918", "symbol": "\uE93A" }, 125243: { "value": "1E93B", "name": "ADLAM SMALL LETTER NYA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E919", "lowercase_mapping": "", "titlecase_mapping": "1E919", "symbol": "\uE93B" }, 125244: { "value": "1E93C", "name": "ADLAM SMALL LETTER TU", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91A", "lowercase_mapping": "", "titlecase_mapping": "1E91A", "symbol": "\uE93C" }, 125245: { "value": "1E93D", "name": "ADLAM SMALL LETTER NHA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91B", "lowercase_mapping": "", "titlecase_mapping": "1E91B", "symbol": "\uE93D" }, 125246: { "value": "1E93E", "name": "ADLAM SMALL LETTER VA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91C", "lowercase_mapping": "", "titlecase_mapping": "1E91C", "symbol": "\uE93E" }, 125247: { "value": "1E93F", "name": "ADLAM SMALL LETTER KHA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91D", "lowercase_mapping": "", "titlecase_mapping": "1E91D", "symbol": "\uE93F" }, 125248: { "value": "1E940", "name": "ADLAM SMALL LETTER GBE", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91E", "lowercase_mapping": "", "titlecase_mapping": "1E91E", "symbol": "\uE940" }, 125249: { "value": "1E941", "name": "ADLAM SMALL LETTER ZAL", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E91F", "lowercase_mapping": "", "titlecase_mapping": "1E91F", "symbol": "\uE941" }, 125250: { "value": "1E942", "name": "ADLAM SMALL LETTER KPO", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E920", "lowercase_mapping": "", "titlecase_mapping": "1E920", "symbol": "\uE942" }, 125251: { "value": "1E943", "name": "ADLAM SMALL LETTER SHA", "category": "Ll", "class": "0", "bidirectional_category": "R", "mapping": "", "decimal_digit_value": "", "digit_value": "", "numeric_value": "", "mirrored": "N", "unicode_name": "", "comment": "", "uppercase_mapping": "1E921", "lowercase_mapping": "", "titlecase_mapping": "1E921", "symbol": "\uE943" } }; - -},{}],987:[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; }; - +},{}],1000:[function(require,module,exports){ +module.exports={97:{"value":"0061","name":"LATIN SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0041","lowercase_mapping":"","titlecase_mapping":"0041","symbol":"\x61"},98:{"value":"0062","name":"LATIN SMALL LETTER B","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0042","lowercase_mapping":"","titlecase_mapping":"0042","symbol":"\x62"},99:{"value":"0063","name":"LATIN SMALL LETTER C","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0043","lowercase_mapping":"","titlecase_mapping":"0043","symbol":"\x63"},100:{"value":"0064","name":"LATIN SMALL LETTER D","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0044","lowercase_mapping":"","titlecase_mapping":"0044","symbol":"\x64"},101:{"value":"0065","name":"LATIN SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0045","lowercase_mapping":"","titlecase_mapping":"0045","symbol":"\x65"},102:{"value":"0066","name":"LATIN SMALL LETTER F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0046","lowercase_mapping":"","titlecase_mapping":"0046","symbol":"\x66"},103:{"value":"0067","name":"LATIN SMALL LETTER G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0047","lowercase_mapping":"","titlecase_mapping":"0047","symbol":"\x67"},104:{"value":"0068","name":"LATIN SMALL LETTER H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0048","lowercase_mapping":"","titlecase_mapping":"0048","symbol":"\x68"},105:{"value":"0069","name":"LATIN SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0049","lowercase_mapping":"","titlecase_mapping":"0049","symbol":"\x69"},106:{"value":"006A","name":"LATIN SMALL LETTER J","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004A","lowercase_mapping":"","titlecase_mapping":"004A","symbol":"\x6A"},107:{"value":"006B","name":"LATIN SMALL LETTER K","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004B","lowercase_mapping":"","titlecase_mapping":"004B","symbol":"\x6B"},108:{"value":"006C","name":"LATIN SMALL LETTER L","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004C","lowercase_mapping":"","titlecase_mapping":"004C","symbol":"\x6C"},109:{"value":"006D","name":"LATIN SMALL LETTER M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004D","lowercase_mapping":"","titlecase_mapping":"004D","symbol":"\x6D"},110:{"value":"006E","name":"LATIN SMALL LETTER N","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004E","lowercase_mapping":"","titlecase_mapping":"004E","symbol":"\x6E"},111:{"value":"006F","name":"LATIN SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"004F","lowercase_mapping":"","titlecase_mapping":"004F","symbol":"\x6F"},112:{"value":"0070","name":"LATIN SMALL LETTER P","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0050","lowercase_mapping":"","titlecase_mapping":"0050","symbol":"\x70"},113:{"value":"0071","name":"LATIN SMALL LETTER Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0051","lowercase_mapping":"","titlecase_mapping":"0051","symbol":"\x71"},114:{"value":"0072","name":"LATIN SMALL LETTER R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0052","lowercase_mapping":"","titlecase_mapping":"0052","symbol":"\x72"},115:{"value":"0073","name":"LATIN SMALL LETTER S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0053","lowercase_mapping":"","titlecase_mapping":"0053","symbol":"\x73"},116:{"value":"0074","name":"LATIN SMALL LETTER T","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0054","lowercase_mapping":"","titlecase_mapping":"0054","symbol":"\x74"},117:{"value":"0075","name":"LATIN SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0055","lowercase_mapping":"","titlecase_mapping":"0055","symbol":"\x75"},118:{"value":"0076","name":"LATIN SMALL LETTER V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0056","lowercase_mapping":"","titlecase_mapping":"0056","symbol":"\x76"},119:{"value":"0077","name":"LATIN SMALL LETTER W","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0057","lowercase_mapping":"","titlecase_mapping":"0057","symbol":"\x77"},120:{"value":"0078","name":"LATIN SMALL LETTER X","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0058","lowercase_mapping":"","titlecase_mapping":"0058","symbol":"\x78"},121:{"value":"0079","name":"LATIN SMALL LETTER Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0059","lowercase_mapping":"","titlecase_mapping":"0059","symbol":"\x79"},122:{"value":"007A","name":"LATIN SMALL LETTER Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"005A","lowercase_mapping":"","titlecase_mapping":"005A","symbol":"\x7A"},181:{"value":"00B5","name":"MICRO SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039C","lowercase_mapping":"","titlecase_mapping":"039C","symbol":"\xB5"},223:{"value":"00DF","name":"LATIN SMALL LETTER SHARP S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\xDF"},224:{"value":"00E0","name":"LATIN SMALL LETTER A WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A GRAVE","comment":"","uppercase_mapping":"00C0","lowercase_mapping":"","titlecase_mapping":"00C0","symbol":"\xE0"},225:{"value":"00E1","name":"LATIN SMALL LETTER A WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A ACUTE","comment":"","uppercase_mapping":"00C1","lowercase_mapping":"","titlecase_mapping":"00C1","symbol":"\xE1"},226:{"value":"00E2","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A CIRCUMFLEX","comment":"","uppercase_mapping":"00C2","lowercase_mapping":"","titlecase_mapping":"00C2","symbol":"\xE2"},227:{"value":"00E3","name":"LATIN SMALL LETTER A WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A TILDE","comment":"","uppercase_mapping":"00C3","lowercase_mapping":"","titlecase_mapping":"00C3","symbol":"\xE3"},228:{"value":"00E4","name":"LATIN SMALL LETTER A WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A DIAERESIS","comment":"","uppercase_mapping":"00C4","lowercase_mapping":"","titlecase_mapping":"00C4","symbol":"\xE4"},229:{"value":"00E5","name":"LATIN SMALL LETTER A WITH RING ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 030A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A RING","comment":"","uppercase_mapping":"00C5","lowercase_mapping":"","titlecase_mapping":"00C5","symbol":"\xE5"},230:{"value":"00E6","name":"LATIN SMALL LETTER AE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A E","comment":"","uppercase_mapping":"00C6","lowercase_mapping":"","titlecase_mapping":"00C6","symbol":"\xE6"},231:{"value":"00E7","name":"LATIN SMALL LETTER C WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C CEDILLA","comment":"","uppercase_mapping":"00C7","lowercase_mapping":"","titlecase_mapping":"00C7","symbol":"\xE7"},232:{"value":"00E8","name":"LATIN SMALL LETTER E WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E GRAVE","comment":"","uppercase_mapping":"00C8","lowercase_mapping":"","titlecase_mapping":"00C8","symbol":"\xE8"},233:{"value":"00E9","name":"LATIN SMALL LETTER E WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E ACUTE","comment":"","uppercase_mapping":"00C9","lowercase_mapping":"","titlecase_mapping":"00C9","symbol":"\xE9"},234:{"value":"00EA","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E CIRCUMFLEX","comment":"","uppercase_mapping":"00CA","lowercase_mapping":"","titlecase_mapping":"00CA","symbol":"\xEA"},235:{"value":"00EB","name":"LATIN SMALL LETTER E WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E DIAERESIS","comment":"","uppercase_mapping":"00CB","lowercase_mapping":"","titlecase_mapping":"00CB","symbol":"\xEB"},236:{"value":"00EC","name":"LATIN SMALL LETTER I WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I GRAVE","comment":"","uppercase_mapping":"00CC","lowercase_mapping":"","titlecase_mapping":"00CC","symbol":"\xEC"},237:{"value":"00ED","name":"LATIN SMALL LETTER I WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I ACUTE","comment":"","uppercase_mapping":"00CD","lowercase_mapping":"","titlecase_mapping":"00CD","symbol":"\xED"},238:{"value":"00EE","name":"LATIN SMALL LETTER I WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I CIRCUMFLEX","comment":"","uppercase_mapping":"00CE","lowercase_mapping":"","titlecase_mapping":"00CE","symbol":"\xEE"},239:{"value":"00EF","name":"LATIN SMALL LETTER I WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I DIAERESIS","comment":"","uppercase_mapping":"00CF","lowercase_mapping":"","titlecase_mapping":"00CF","symbol":"\xEF"},240:{"value":"00F0","name":"LATIN SMALL LETTER ETH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"00D0","lowercase_mapping":"","titlecase_mapping":"00D0","symbol":"\xF0"},241:{"value":"00F1","name":"LATIN SMALL LETTER N WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N TILDE","comment":"","uppercase_mapping":"00D1","lowercase_mapping":"","titlecase_mapping":"00D1","symbol":"\xF1"},242:{"value":"00F2","name":"LATIN SMALL LETTER O WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O GRAVE","comment":"","uppercase_mapping":"00D2","lowercase_mapping":"","titlecase_mapping":"00D2","symbol":"\xF2"},243:{"value":"00F3","name":"LATIN SMALL LETTER O WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O ACUTE","comment":"","uppercase_mapping":"00D3","lowercase_mapping":"","titlecase_mapping":"00D3","symbol":"\xF3"},244:{"value":"00F4","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O CIRCUMFLEX","comment":"","uppercase_mapping":"00D4","lowercase_mapping":"","titlecase_mapping":"00D4","symbol":"\xF4"},245:{"value":"00F5","name":"LATIN SMALL LETTER O WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O TILDE","comment":"","uppercase_mapping":"00D5","lowercase_mapping":"","titlecase_mapping":"00D5","symbol":"\xF5"},246:{"value":"00F6","name":"LATIN SMALL LETTER O WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O DIAERESIS","comment":"","uppercase_mapping":"00D6","lowercase_mapping":"","titlecase_mapping":"00D6","symbol":"\xF6"},248:{"value":"00F8","name":"LATIN SMALL LETTER O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O SLASH","comment":"","uppercase_mapping":"00D8","lowercase_mapping":"","titlecase_mapping":"00D8","symbol":"\xF8"},249:{"value":"00F9","name":"LATIN SMALL LETTER U WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U GRAVE","comment":"","uppercase_mapping":"00D9","lowercase_mapping":"","titlecase_mapping":"00D9","symbol":"\xF9"},250:{"value":"00FA","name":"LATIN SMALL LETTER U WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U ACUTE","comment":"","uppercase_mapping":"00DA","lowercase_mapping":"","titlecase_mapping":"00DA","symbol":"\xFA"},251:{"value":"00FB","name":"LATIN SMALL LETTER U WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U CIRCUMFLEX","comment":"","uppercase_mapping":"00DB","lowercase_mapping":"","titlecase_mapping":"00DB","symbol":"\xFB"},252:{"value":"00FC","name":"LATIN SMALL LETTER U WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS","comment":"","uppercase_mapping":"00DC","lowercase_mapping":"","titlecase_mapping":"00DC","symbol":"\xFC"},253:{"value":"00FD","name":"LATIN SMALL LETTER Y WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Y ACUTE","comment":"","uppercase_mapping":"00DD","lowercase_mapping":"","titlecase_mapping":"00DD","symbol":"\xFD"},254:{"value":"00FE","name":"LATIN SMALL LETTER THORN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"00DE","lowercase_mapping":"","titlecase_mapping":"00DE","symbol":"\xFE"},255:{"value":"00FF","name":"LATIN SMALL LETTER Y WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Y DIAERESIS","comment":"","uppercase_mapping":"0178","lowercase_mapping":"","titlecase_mapping":"0178","symbol":"\xFF"},257:{"value":"0101","name":"LATIN SMALL LETTER A WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A MACRON","comment":"","uppercase_mapping":"0100","lowercase_mapping":"","titlecase_mapping":"0100","symbol":"\u0101"},259:{"value":"0103","name":"LATIN SMALL LETTER A WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A BREVE","comment":"","uppercase_mapping":"0102","lowercase_mapping":"","titlecase_mapping":"0102","symbol":"\u0103"},261:{"value":"0105","name":"LATIN SMALL LETTER A WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A OGONEK","comment":"","uppercase_mapping":"0104","lowercase_mapping":"","titlecase_mapping":"0104","symbol":"\u0105"},263:{"value":"0107","name":"LATIN SMALL LETTER C WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C ACUTE","comment":"","uppercase_mapping":"0106","lowercase_mapping":"","titlecase_mapping":"0106","symbol":"\u0107"},265:{"value":"0109","name":"LATIN SMALL LETTER C WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C CIRCUMFLEX","comment":"","uppercase_mapping":"0108","lowercase_mapping":"","titlecase_mapping":"0108","symbol":"\u0109"},267:{"value":"010B","name":"LATIN SMALL LETTER C WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C DOT","comment":"","uppercase_mapping":"010A","lowercase_mapping":"","titlecase_mapping":"010A","symbol":"\u010B"},269:{"value":"010D","name":"LATIN SMALL LETTER C WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0063 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C HACEK","comment":"","uppercase_mapping":"010C","lowercase_mapping":"","titlecase_mapping":"010C","symbol":"\u010D"},271:{"value":"010F","name":"LATIN SMALL LETTER D WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D HACEK","comment":"","uppercase_mapping":"010E","lowercase_mapping":"","titlecase_mapping":"010E","symbol":"\u010F"},273:{"value":"0111","name":"LATIN SMALL LETTER D WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D BAR","comment":"","uppercase_mapping":"0110","lowercase_mapping":"","titlecase_mapping":"0110","symbol":"\u0111"},275:{"value":"0113","name":"LATIN SMALL LETTER E WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E MACRON","comment":"","uppercase_mapping":"0112","lowercase_mapping":"","titlecase_mapping":"0112","symbol":"\u0113"},277:{"value":"0115","name":"LATIN SMALL LETTER E WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E BREVE","comment":"","uppercase_mapping":"0114","lowercase_mapping":"","titlecase_mapping":"0114","symbol":"\u0115"},279:{"value":"0117","name":"LATIN SMALL LETTER E WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E DOT","comment":"","uppercase_mapping":"0116","lowercase_mapping":"","titlecase_mapping":"0116","symbol":"\u0117"},281:{"value":"0119","name":"LATIN SMALL LETTER E WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E OGONEK","comment":"","uppercase_mapping":"0118","lowercase_mapping":"","titlecase_mapping":"0118","symbol":"\u0119"},283:{"value":"011B","name":"LATIN SMALL LETTER E WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER E HACEK","comment":"","uppercase_mapping":"011A","lowercase_mapping":"","titlecase_mapping":"011A","symbol":"\u011B"},285:{"value":"011D","name":"LATIN SMALL LETTER G WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G CIRCUMFLEX","comment":"","uppercase_mapping":"011C","lowercase_mapping":"","titlecase_mapping":"011C","symbol":"\u011D"},287:{"value":"011F","name":"LATIN SMALL LETTER G WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G BREVE","comment":"","uppercase_mapping":"011E","lowercase_mapping":"","titlecase_mapping":"011E","symbol":"\u011F"},289:{"value":"0121","name":"LATIN SMALL LETTER G WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G DOT","comment":"","uppercase_mapping":"0120","lowercase_mapping":"","titlecase_mapping":"0120","symbol":"\u0121"},291:{"value":"0123","name":"LATIN SMALL LETTER G WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G CEDILLA","comment":"","uppercase_mapping":"0122","lowercase_mapping":"","titlecase_mapping":"0122","symbol":"\u0123"},293:{"value":"0125","name":"LATIN SMALL LETTER H WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER H CIRCUMFLEX","comment":"","uppercase_mapping":"0124","lowercase_mapping":"","titlecase_mapping":"0124","symbol":"\u0125"},295:{"value":"0127","name":"LATIN SMALL LETTER H WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER H BAR","comment":"","uppercase_mapping":"0126","lowercase_mapping":"","titlecase_mapping":"0126","symbol":"\u0127"},297:{"value":"0129","name":"LATIN SMALL LETTER I WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I TILDE","comment":"","uppercase_mapping":"0128","lowercase_mapping":"","titlecase_mapping":"0128","symbol":"\u0129"},299:{"value":"012B","name":"LATIN SMALL LETTER I WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I MACRON","comment":"","uppercase_mapping":"012A","lowercase_mapping":"","titlecase_mapping":"012A","symbol":"\u012B"},301:{"value":"012D","name":"LATIN SMALL LETTER I WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I BREVE","comment":"","uppercase_mapping":"012C","lowercase_mapping":"","titlecase_mapping":"012C","symbol":"\u012D"},303:{"value":"012F","name":"LATIN SMALL LETTER I WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I OGONEK","comment":"","uppercase_mapping":"012E","lowercase_mapping":"","titlecase_mapping":"012E","symbol":"\u012F"},305:{"value":"0131","name":"LATIN SMALL LETTER DOTLESS I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0049","lowercase_mapping":"","titlecase_mapping":"0049","symbol":"\u0131"},307:{"value":"0133","name":"LATIN SMALL LIGATURE IJ","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I J","comment":"","uppercase_mapping":"0132","lowercase_mapping":"","titlecase_mapping":"0132","symbol":"\u0133"},309:{"value":"0135","name":"LATIN SMALL LETTER J WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006A 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER J CIRCUMFLEX","comment":"","uppercase_mapping":"0134","lowercase_mapping":"","titlecase_mapping":"0134","symbol":"\u0135"},311:{"value":"0137","name":"LATIN SMALL LETTER K WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER K CEDILLA","comment":"","uppercase_mapping":"0136","lowercase_mapping":"","titlecase_mapping":"0136","symbol":"\u0137"},312:{"value":"0138","name":"LATIN SMALL LETTER KRA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0138"},314:{"value":"013A","name":"LATIN SMALL LETTER L WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L ACUTE","comment":"","uppercase_mapping":"0139","lowercase_mapping":"","titlecase_mapping":"0139","symbol":"\u013A"},316:{"value":"013C","name":"LATIN SMALL LETTER L WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L CEDILLA","comment":"","uppercase_mapping":"013B","lowercase_mapping":"","titlecase_mapping":"013B","symbol":"\u013C"},318:{"value":"013E","name":"LATIN SMALL LETTER L WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L HACEK","comment":"","uppercase_mapping":"013D","lowercase_mapping":"","titlecase_mapping":"013D","symbol":"\u013E"},320:{"value":"0140","name":"LATIN SMALL LETTER L WITH MIDDLE DOT","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C 00B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"013F","lowercase_mapping":"","titlecase_mapping":"013F","symbol":"\u0140"},322:{"value":"0142","name":"LATIN SMALL LETTER L WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L SLASH","comment":"","uppercase_mapping":"0141","lowercase_mapping":"","titlecase_mapping":"0141","symbol":"\u0142"},324:{"value":"0144","name":"LATIN SMALL LETTER N WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N ACUTE","comment":"","uppercase_mapping":"0143","lowercase_mapping":"","titlecase_mapping":"0143","symbol":"\u0144"},326:{"value":"0146","name":"LATIN SMALL LETTER N WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N CEDILLA","comment":"","uppercase_mapping":"0145","lowercase_mapping":"","titlecase_mapping":"0145","symbol":"\u0146"},328:{"value":"0148","name":"LATIN SMALL LETTER N WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N HACEK","comment":"","uppercase_mapping":"0147","lowercase_mapping":"","titlecase_mapping":"0147","symbol":"\u0148"},329:{"value":"0149","name":"LATIN SMALL LETTER N PRECEDED BY APOSTROPHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 02BC 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER APOSTROPHE N","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0149"},331:{"value":"014B","name":"LATIN SMALL LETTER ENG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"014A","lowercase_mapping":"","titlecase_mapping":"014A","symbol":"\u014B"},333:{"value":"014D","name":"LATIN SMALL LETTER O WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O MACRON","comment":"","uppercase_mapping":"014C","lowercase_mapping":"","titlecase_mapping":"014C","symbol":"\u014D"},335:{"value":"014F","name":"LATIN SMALL LETTER O WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O BREVE","comment":"","uppercase_mapping":"014E","lowercase_mapping":"","titlecase_mapping":"014E","symbol":"\u014F"},337:{"value":"0151","name":"LATIN SMALL LETTER O WITH DOUBLE ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 030B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O DOUBLE ACUTE","comment":"","uppercase_mapping":"0150","lowercase_mapping":"","titlecase_mapping":"0150","symbol":"\u0151"},339:{"value":"0153","name":"LATIN SMALL LIGATURE OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O E","comment":"","uppercase_mapping":"0152","lowercase_mapping":"","titlecase_mapping":"0152","symbol":"\u0153"},341:{"value":"0155","name":"LATIN SMALL LETTER R WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER R ACUTE","comment":"","uppercase_mapping":"0154","lowercase_mapping":"","titlecase_mapping":"0154","symbol":"\u0155"},343:{"value":"0157","name":"LATIN SMALL LETTER R WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER R CEDILLA","comment":"","uppercase_mapping":"0156","lowercase_mapping":"","titlecase_mapping":"0156","symbol":"\u0157"},345:{"value":"0159","name":"LATIN SMALL LETTER R WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER R HACEK","comment":"","uppercase_mapping":"0158","lowercase_mapping":"","titlecase_mapping":"0158","symbol":"\u0159"},347:{"value":"015B","name":"LATIN SMALL LETTER S WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S ACUTE","comment":"","uppercase_mapping":"015A","lowercase_mapping":"","titlecase_mapping":"015A","symbol":"\u015B"},349:{"value":"015D","name":"LATIN SMALL LETTER S WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S CIRCUMFLEX","comment":"","uppercase_mapping":"015C","lowercase_mapping":"","titlecase_mapping":"015C","symbol":"\u015D"},351:{"value":"015F","name":"LATIN SMALL LETTER S WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S CEDILLA","comment":"","uppercase_mapping":"015E","lowercase_mapping":"","titlecase_mapping":"015E","symbol":"\u015F"},353:{"value":"0161","name":"LATIN SMALL LETTER S WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S HACEK","comment":"","uppercase_mapping":"0160","lowercase_mapping":"","titlecase_mapping":"0160","symbol":"\u0161"},355:{"value":"0163","name":"LATIN SMALL LETTER T WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T CEDILLA","comment":"","uppercase_mapping":"0162","lowercase_mapping":"","titlecase_mapping":"0162","symbol":"\u0163"},357:{"value":"0165","name":"LATIN SMALL LETTER T WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T HACEK","comment":"","uppercase_mapping":"0164","lowercase_mapping":"","titlecase_mapping":"0164","symbol":"\u0165"},359:{"value":"0167","name":"LATIN SMALL LETTER T WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T BAR","comment":"","uppercase_mapping":"0166","lowercase_mapping":"","titlecase_mapping":"0166","symbol":"\u0167"},361:{"value":"0169","name":"LATIN SMALL LETTER U WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U TILDE","comment":"","uppercase_mapping":"0168","lowercase_mapping":"","titlecase_mapping":"0168","symbol":"\u0169"},363:{"value":"016B","name":"LATIN SMALL LETTER U WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U MACRON","comment":"","uppercase_mapping":"016A","lowercase_mapping":"","titlecase_mapping":"016A","symbol":"\u016B"},365:{"value":"016D","name":"LATIN SMALL LETTER U WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U BREVE","comment":"","uppercase_mapping":"016C","lowercase_mapping":"","titlecase_mapping":"016C","symbol":"\u016D"},367:{"value":"016F","name":"LATIN SMALL LETTER U WITH RING ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 030A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U RING","comment":"","uppercase_mapping":"016E","lowercase_mapping":"","titlecase_mapping":"016E","symbol":"\u016F"},369:{"value":"0171","name":"LATIN SMALL LETTER U WITH DOUBLE ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 030B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DOUBLE ACUTE","comment":"","uppercase_mapping":"0170","lowercase_mapping":"","titlecase_mapping":"0170","symbol":"\u0171"},371:{"value":"0173","name":"LATIN SMALL LETTER U WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U OGONEK","comment":"","uppercase_mapping":"0172","lowercase_mapping":"","titlecase_mapping":"0172","symbol":"\u0173"},373:{"value":"0175","name":"LATIN SMALL LETTER W WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER W CIRCUMFLEX","comment":"","uppercase_mapping":"0174","lowercase_mapping":"","titlecase_mapping":"0174","symbol":"\u0175"},375:{"value":"0177","name":"LATIN SMALL LETTER Y WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Y CIRCUMFLEX","comment":"","uppercase_mapping":"0176","lowercase_mapping":"","titlecase_mapping":"0176","symbol":"\u0177"},378:{"value":"017A","name":"LATIN SMALL LETTER Z WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z ACUTE","comment":"","uppercase_mapping":"0179","lowercase_mapping":"","titlecase_mapping":"0179","symbol":"\u017A"},380:{"value":"017C","name":"LATIN SMALL LETTER Z WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z DOT","comment":"","uppercase_mapping":"017B","lowercase_mapping":"","titlecase_mapping":"017B","symbol":"\u017C"},382:{"value":"017E","name":"LATIN SMALL LETTER Z WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z HACEK","comment":"","uppercase_mapping":"017D","lowercase_mapping":"","titlecase_mapping":"017D","symbol":"\u017E"},383:{"value":"017F","name":"LATIN SMALL LETTER LONG S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0053","lowercase_mapping":"","titlecase_mapping":"0053","symbol":"\u017F"},384:{"value":"0180","name":"LATIN SMALL LETTER B WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER B BAR","comment":"","uppercase_mapping":"0243","lowercase_mapping":"","titlecase_mapping":"0243","symbol":"\u0180"},387:{"value":"0183","name":"LATIN SMALL LETTER B WITH TOPBAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER B TOPBAR","comment":"","uppercase_mapping":"0182","lowercase_mapping":"","titlecase_mapping":"0182","symbol":"\u0183"},389:{"value":"0185","name":"LATIN SMALL LETTER TONE SIX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0184","lowercase_mapping":"","titlecase_mapping":"0184","symbol":"\u0185"},392:{"value":"0188","name":"LATIN SMALL LETTER C WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C HOOK","comment":"","uppercase_mapping":"0187","lowercase_mapping":"","titlecase_mapping":"0187","symbol":"\u0188"},396:{"value":"018C","name":"LATIN SMALL LETTER D WITH TOPBAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D TOPBAR","comment":"","uppercase_mapping":"018B","lowercase_mapping":"","titlecase_mapping":"018B","symbol":"\u018C"},397:{"value":"018D","name":"LATIN SMALL LETTER TURNED DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u018D"},402:{"value":"0192","name":"LATIN SMALL LETTER F WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER SCRIPT F","comment":"","uppercase_mapping":"0191","lowercase_mapping":"","titlecase_mapping":"0191","symbol":"\u0192"},405:{"value":"0195","name":"LATIN SMALL LETTER HV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER H V","comment":"","uppercase_mapping":"01F6","lowercase_mapping":"","titlecase_mapping":"01F6","symbol":"\u0195"},409:{"value":"0199","name":"LATIN SMALL LETTER K WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER K HOOK","comment":"","uppercase_mapping":"0198","lowercase_mapping":"","titlecase_mapping":"0198","symbol":"\u0199"},410:{"value":"019A","name":"LATIN SMALL LETTER L WITH BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER BARRED L","comment":"","uppercase_mapping":"023D","lowercase_mapping":"","titlecase_mapping":"023D","symbol":"\u019A"},411:{"value":"019B","name":"LATIN SMALL LETTER LAMBDA WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER BARRED LAMBDA","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u019B"},414:{"value":"019E","name":"LATIN SMALL LETTER N WITH LONG RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0220","lowercase_mapping":"","titlecase_mapping":"0220","symbol":"\u019E"},417:{"value":"01A1","name":"LATIN SMALL LETTER O WITH HORN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 031B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O HORN","comment":"","uppercase_mapping":"01A0","lowercase_mapping":"","titlecase_mapping":"01A0","symbol":"\u01A1"},419:{"value":"01A3","name":"LATIN SMALL LETTER OI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O I","comment":"","uppercase_mapping":"01A2","lowercase_mapping":"","titlecase_mapping":"01A2","symbol":"\u01A3"},421:{"value":"01A5","name":"LATIN SMALL LETTER P WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER P HOOK","comment":"","uppercase_mapping":"01A4","lowercase_mapping":"","titlecase_mapping":"01A4","symbol":"\u01A5"},424:{"value":"01A8","name":"LATIN SMALL LETTER TONE TWO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01A7","lowercase_mapping":"","titlecase_mapping":"01A7","symbol":"\u01A8"},426:{"value":"01AA","name":"LATIN LETTER REVERSED ESH LOOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01AA"},427:{"value":"01AB","name":"LATIN SMALL LETTER T WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T PALATAL HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01AB"},429:{"value":"01AD","name":"LATIN SMALL LETTER T WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T HOOK","comment":"","uppercase_mapping":"01AC","lowercase_mapping":"","titlecase_mapping":"01AC","symbol":"\u01AD"},432:{"value":"01B0","name":"LATIN SMALL LETTER U WITH HORN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 031B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U HORN","comment":"","uppercase_mapping":"01AF","lowercase_mapping":"","titlecase_mapping":"01AF","symbol":"\u01B0"},436:{"value":"01B4","name":"LATIN SMALL LETTER Y WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Y HOOK","comment":"","uppercase_mapping":"01B3","lowercase_mapping":"","titlecase_mapping":"01B3","symbol":"\u01B4"},438:{"value":"01B6","name":"LATIN SMALL LETTER Z WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z BAR","comment":"","uppercase_mapping":"01B5","lowercase_mapping":"","titlecase_mapping":"01B5","symbol":"\u01B6"},441:{"value":"01B9","name":"LATIN SMALL LETTER EZH REVERSED","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER REVERSED YOGH","comment":"","uppercase_mapping":"01B8","lowercase_mapping":"","titlecase_mapping":"01B8","symbol":"\u01B9"},442:{"value":"01BA","name":"LATIN SMALL LETTER EZH WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER YOGH WITH TAIL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01BA"},445:{"value":"01BD","name":"LATIN SMALL LETTER TONE FIVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01BC","lowercase_mapping":"","titlecase_mapping":"01BC","symbol":"\u01BD"},446:{"value":"01BE","name":"LATIN LETTER INVERTED GLOTTAL STOP WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER INVERTED GLOTTAL STOP BAR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01BE"},447:{"value":"01BF","name":"LATIN LETTER WYNN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01F7","lowercase_mapping":"","titlecase_mapping":"01F7","symbol":"\u01BF"},454:{"value":"01C6","name":"LATIN SMALL LETTER DZ WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064 017E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D Z HACEK","comment":"","uppercase_mapping":"01C4","lowercase_mapping":"","titlecase_mapping":"01C5","symbol":"\u01C6"},457:{"value":"01C9","name":"LATIN SMALL LETTER LJ","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L J","comment":"","uppercase_mapping":"01C7","lowercase_mapping":"","titlecase_mapping":"01C8","symbol":"\u01C9"},460:{"value":"01CC","name":"LATIN SMALL LETTER NJ","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N J","comment":"","uppercase_mapping":"01CA","lowercase_mapping":"","titlecase_mapping":"01CB","symbol":"\u01CC"},462:{"value":"01CE","name":"LATIN SMALL LETTER A WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A HACEK","comment":"","uppercase_mapping":"01CD","lowercase_mapping":"","titlecase_mapping":"01CD","symbol":"\u01CE"},464:{"value":"01D0","name":"LATIN SMALL LETTER I WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER I HACEK","comment":"","uppercase_mapping":"01CF","lowercase_mapping":"","titlecase_mapping":"01CF","symbol":"\u01D0"},466:{"value":"01D2","name":"LATIN SMALL LETTER O WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O HACEK","comment":"","uppercase_mapping":"01D1","lowercase_mapping":"","titlecase_mapping":"01D1","symbol":"\u01D2"},468:{"value":"01D4","name":"LATIN SMALL LETTER U WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U HACEK","comment":"","uppercase_mapping":"01D3","lowercase_mapping":"","titlecase_mapping":"01D3","symbol":"\u01D4"},470:{"value":"01D6","name":"LATIN SMALL LETTER U WITH DIAERESIS AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00FC 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS MACRON","comment":"","uppercase_mapping":"01D5","lowercase_mapping":"","titlecase_mapping":"01D5","symbol":"\u01D6"},472:{"value":"01D8","name":"LATIN SMALL LETTER U WITH DIAERESIS AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00FC 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS ACUTE","comment":"","uppercase_mapping":"01D7","lowercase_mapping":"","titlecase_mapping":"01D7","symbol":"\u01D8"},474:{"value":"01DA","name":"LATIN SMALL LETTER U WITH DIAERESIS AND CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00FC 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS HACEK","comment":"","uppercase_mapping":"01D9","lowercase_mapping":"","titlecase_mapping":"01D9","symbol":"\u01DA"},476:{"value":"01DC","name":"LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00FC 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER U DIAERESIS GRAVE","comment":"","uppercase_mapping":"01DB","lowercase_mapping":"","titlecase_mapping":"01DB","symbol":"\u01DC"},477:{"value":"01DD","name":"LATIN SMALL LETTER TURNED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"018E","lowercase_mapping":"","titlecase_mapping":"018E","symbol":"\u01DD"},479:{"value":"01DF","name":"LATIN SMALL LETTER A WITH DIAERESIS AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E4 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A DIAERESIS MACRON","comment":"","uppercase_mapping":"01DE","lowercase_mapping":"","titlecase_mapping":"01DE","symbol":"\u01DF"},481:{"value":"01E1","name":"LATIN SMALL LETTER A WITH DOT ABOVE AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0227 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A DOT MACRON","comment":"","uppercase_mapping":"01E0","lowercase_mapping":"","titlecase_mapping":"01E0","symbol":"\u01E1"},483:{"value":"01E3","name":"LATIN SMALL LETTER AE WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E6 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER A E MACRON","comment":"","uppercase_mapping":"01E2","lowercase_mapping":"","titlecase_mapping":"01E2","symbol":"\u01E3"},485:{"value":"01E5","name":"LATIN SMALL LETTER G WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G BAR","comment":"","uppercase_mapping":"01E4","lowercase_mapping":"","titlecase_mapping":"01E4","symbol":"\u01E5"},487:{"value":"01E7","name":"LATIN SMALL LETTER G WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G HACEK","comment":"","uppercase_mapping":"01E6","lowercase_mapping":"","titlecase_mapping":"01E6","symbol":"\u01E7"},489:{"value":"01E9","name":"LATIN SMALL LETTER K WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER K HACEK","comment":"","uppercase_mapping":"01E8","lowercase_mapping":"","titlecase_mapping":"01E8","symbol":"\u01E9"},491:{"value":"01EB","name":"LATIN SMALL LETTER O WITH OGONEK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0328","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O OGONEK","comment":"","uppercase_mapping":"01EA","lowercase_mapping":"","titlecase_mapping":"01EA","symbol":"\u01EB"},493:{"value":"01ED","name":"LATIN SMALL LETTER O WITH OGONEK AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01EB 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER O OGONEK MACRON","comment":"","uppercase_mapping":"01EC","lowercase_mapping":"","titlecase_mapping":"01EC","symbol":"\u01ED"},495:{"value":"01EF","name":"LATIN SMALL LETTER EZH WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0292 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER YOGH HACEK","comment":"","uppercase_mapping":"01EE","lowercase_mapping":"","titlecase_mapping":"01EE","symbol":"\u01EF"},496:{"value":"01F0","name":"LATIN SMALL LETTER J WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006A 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER J HACEK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u01F0"},499:{"value":"01F3","name":"LATIN SMALL LETTER DZ","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01F1","lowercase_mapping":"","titlecase_mapping":"01F2","symbol":"\u01F3"},501:{"value":"01F5","name":"LATIN SMALL LETTER G WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01F4","lowercase_mapping":"","titlecase_mapping":"01F4","symbol":"\u01F5"},505:{"value":"01F9","name":"LATIN SMALL LETTER N WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01F8","lowercase_mapping":"","titlecase_mapping":"01F8","symbol":"\u01F9"},507:{"value":"01FB","name":"LATIN SMALL LETTER A WITH RING ABOVE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E5 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01FA","lowercase_mapping":"","titlecase_mapping":"01FA","symbol":"\u01FB"},509:{"value":"01FD","name":"LATIN SMALL LETTER AE WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E6 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01FC","lowercase_mapping":"","titlecase_mapping":"01FC","symbol":"\u01FD"},511:{"value":"01FF","name":"LATIN SMALL LETTER O WITH STROKE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F8 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01FE","lowercase_mapping":"","titlecase_mapping":"01FE","symbol":"\u01FF"},513:{"value":"0201","name":"LATIN SMALL LETTER A WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0200","lowercase_mapping":"","titlecase_mapping":"0200","symbol":"\u0201"},515:{"value":"0203","name":"LATIN SMALL LETTER A WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0202","lowercase_mapping":"","titlecase_mapping":"0202","symbol":"\u0203"},517:{"value":"0205","name":"LATIN SMALL LETTER E WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0204","lowercase_mapping":"","titlecase_mapping":"0204","symbol":"\u0205"},519:{"value":"0207","name":"LATIN SMALL LETTER E WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0206","lowercase_mapping":"","titlecase_mapping":"0206","symbol":"\u0207"},521:{"value":"0209","name":"LATIN SMALL LETTER I WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0208","lowercase_mapping":"","titlecase_mapping":"0208","symbol":"\u0209"},523:{"value":"020B","name":"LATIN SMALL LETTER I WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"020A","lowercase_mapping":"","titlecase_mapping":"020A","symbol":"\u020B"},525:{"value":"020D","name":"LATIN SMALL LETTER O WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"020C","lowercase_mapping":"","titlecase_mapping":"020C","symbol":"\u020D"},527:{"value":"020F","name":"LATIN SMALL LETTER O WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"020E","lowercase_mapping":"","titlecase_mapping":"020E","symbol":"\u020F"},529:{"value":"0211","name":"LATIN SMALL LETTER R WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0210","lowercase_mapping":"","titlecase_mapping":"0210","symbol":"\u0211"},531:{"value":"0213","name":"LATIN SMALL LETTER R WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0212","lowercase_mapping":"","titlecase_mapping":"0212","symbol":"\u0213"},533:{"value":"0215","name":"LATIN SMALL LETTER U WITH DOUBLE GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0214","lowercase_mapping":"","titlecase_mapping":"0214","symbol":"\u0215"},535:{"value":"0217","name":"LATIN SMALL LETTER U WITH INVERTED BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0311","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0216","lowercase_mapping":"","titlecase_mapping":"0216","symbol":"\u0217"},537:{"value":"0219","name":"LATIN SMALL LETTER S WITH COMMA BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0326","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0218","lowercase_mapping":"","titlecase_mapping":"0218","symbol":"\u0219"},539:{"value":"021B","name":"LATIN SMALL LETTER T WITH COMMA BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0326","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"021A","lowercase_mapping":"","titlecase_mapping":"021A","symbol":"\u021B"},541:{"value":"021D","name":"LATIN SMALL LETTER YOGH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"021C","lowercase_mapping":"","titlecase_mapping":"021C","symbol":"\u021D"},543:{"value":"021F","name":"LATIN SMALL LETTER H WITH CARON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 030C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"021E","lowercase_mapping":"","titlecase_mapping":"021E","symbol":"\u021F"},545:{"value":"0221","name":"LATIN SMALL LETTER D WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0221"},547:{"value":"0223","name":"LATIN SMALL LETTER OU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0222","lowercase_mapping":"","titlecase_mapping":"0222","symbol":"\u0223"},549:{"value":"0225","name":"LATIN SMALL LETTER Z WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0224","lowercase_mapping":"","titlecase_mapping":"0224","symbol":"\u0225"},551:{"value":"0227","name":"LATIN SMALL LETTER A WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0226","lowercase_mapping":"","titlecase_mapping":"0226","symbol":"\u0227"},553:{"value":"0229","name":"LATIN SMALL LETTER E WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0228","lowercase_mapping":"","titlecase_mapping":"0228","symbol":"\u0229"},555:{"value":"022B","name":"LATIN SMALL LETTER O WITH DIAERESIS AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F6 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"022A","lowercase_mapping":"","titlecase_mapping":"022A","symbol":"\u022B"},557:{"value":"022D","name":"LATIN SMALL LETTER O WITH TILDE AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F5 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"022C","lowercase_mapping":"","titlecase_mapping":"022C","symbol":"\u022D"},559:{"value":"022F","name":"LATIN SMALL LETTER O WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"022E","lowercase_mapping":"","titlecase_mapping":"022E","symbol":"\u022F"},561:{"value":"0231","name":"LATIN SMALL LETTER O WITH DOT ABOVE AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"022F 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0230","lowercase_mapping":"","titlecase_mapping":"0230","symbol":"\u0231"},563:{"value":"0233","name":"LATIN SMALL LETTER Y WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0232","lowercase_mapping":"","titlecase_mapping":"0232","symbol":"\u0233"},564:{"value":"0234","name":"LATIN SMALL LETTER L WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0234"},565:{"value":"0235","name":"LATIN SMALL LETTER N WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0235"},566:{"value":"0236","name":"LATIN SMALL LETTER T WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0236"},567:{"value":"0237","name":"LATIN SMALL LETTER DOTLESS J","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0237"},568:{"value":"0238","name":"LATIN SMALL LETTER DB DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0238"},569:{"value":"0239","name":"LATIN SMALL LETTER QP DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0239"},572:{"value":"023C","name":"LATIN SMALL LETTER C WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"023B","lowercase_mapping":"","titlecase_mapping":"023B","symbol":"\u023C"},575:{"value":"023F","name":"LATIN SMALL LETTER S WITH SWASH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C7E","lowercase_mapping":"","titlecase_mapping":"2C7E","symbol":"\u023F"},576:{"value":"0240","name":"LATIN SMALL LETTER Z WITH SWASH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C7F","lowercase_mapping":"","titlecase_mapping":"2C7F","symbol":"\u0240"},578:{"value":"0242","name":"LATIN SMALL LETTER GLOTTAL STOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0241","lowercase_mapping":"","titlecase_mapping":"0241","symbol":"\u0242"},583:{"value":"0247","name":"LATIN SMALL LETTER E WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0246","lowercase_mapping":"","titlecase_mapping":"0246","symbol":"\u0247"},585:{"value":"0249","name":"LATIN SMALL LETTER J WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0248","lowercase_mapping":"","titlecase_mapping":"0248","symbol":"\u0249"},587:{"value":"024B","name":"LATIN SMALL LETTER Q WITH HOOK TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"024A","lowercase_mapping":"","titlecase_mapping":"024A","symbol":"\u024B"},589:{"value":"024D","name":"LATIN SMALL LETTER R WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"024C","lowercase_mapping":"","titlecase_mapping":"024C","symbol":"\u024D"},591:{"value":"024F","name":"LATIN SMALL LETTER Y WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"024E","lowercase_mapping":"","titlecase_mapping":"024E","symbol":"\u024F"},592:{"value":"0250","name":"LATIN SMALL LETTER TURNED A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C6F","lowercase_mapping":"","titlecase_mapping":"2C6F","symbol":"\u0250"},593:{"value":"0251","name":"LATIN SMALL LETTER ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER SCRIPT A","comment":"","uppercase_mapping":"2C6D","lowercase_mapping":"","titlecase_mapping":"2C6D","symbol":"\u0251"},594:{"value":"0252","name":"LATIN SMALL LETTER TURNED ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER TURNED SCRIPT A","comment":"","uppercase_mapping":"2C70","lowercase_mapping":"","titlecase_mapping":"2C70","symbol":"\u0252"},595:{"value":"0253","name":"LATIN SMALL LETTER B WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER B HOOK","comment":"","uppercase_mapping":"0181","lowercase_mapping":"","titlecase_mapping":"0181","symbol":"\u0253"},596:{"value":"0254","name":"LATIN SMALL LETTER OPEN O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0186","lowercase_mapping":"","titlecase_mapping":"0186","symbol":"\u0254"},597:{"value":"0255","name":"LATIN SMALL LETTER C WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER C CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0255"},598:{"value":"0256","name":"LATIN SMALL LETTER D WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D RETROFLEX HOOK","comment":"","uppercase_mapping":"0189","lowercase_mapping":"","titlecase_mapping":"0189","symbol":"\u0256"},599:{"value":"0257","name":"LATIN SMALL LETTER D WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D HOOK","comment":"","uppercase_mapping":"018A","lowercase_mapping":"","titlecase_mapping":"018A","symbol":"\u0257"},600:{"value":"0258","name":"LATIN SMALL LETTER REVERSED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0258"},601:{"value":"0259","name":"LATIN SMALL LETTER SCHWA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"018F","lowercase_mapping":"","titlecase_mapping":"018F","symbol":"\u0259"},602:{"value":"025A","name":"LATIN SMALL LETTER SCHWA WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER SCHWA HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u025A"},603:{"value":"025B","name":"LATIN SMALL LETTER OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER EPSILON","comment":"","uppercase_mapping":"0190","lowercase_mapping":"","titlecase_mapping":"0190","symbol":"\u025B"},604:{"value":"025C","name":"LATIN SMALL LETTER REVERSED OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER REVERSED EPSILON","comment":"","uppercase_mapping":"A7AB","lowercase_mapping":"","titlecase_mapping":"A7AB","symbol":"\u025C"},605:{"value":"025D","name":"LATIN SMALL LETTER REVERSED OPEN E WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER REVERSED EPSILON HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u025D"},606:{"value":"025E","name":"LATIN SMALL LETTER CLOSED REVERSED OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER CLOSED REVERSED EPSILON","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u025E"},607:{"value":"025F","name":"LATIN SMALL LETTER DOTLESS J WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER DOTLESS J BAR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u025F"},608:{"value":"0260","name":"LATIN SMALL LETTER G WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER G HOOK","comment":"","uppercase_mapping":"0193","lowercase_mapping":"","titlecase_mapping":"0193","symbol":"\u0260"},609:{"value":"0261","name":"LATIN SMALL LETTER SCRIPT G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7AC","lowercase_mapping":"","titlecase_mapping":"A7AC","symbol":"\u0261"},610:{"value":"0262","name":"LATIN LETTER SMALL CAPITAL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0262"},611:{"value":"0263","name":"LATIN SMALL LETTER GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0194","lowercase_mapping":"","titlecase_mapping":"0194","symbol":"\u0263"},612:{"value":"0264","name":"LATIN SMALL LETTER RAMS HORN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER BABY GAMMA","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0264"},613:{"value":"0265","name":"LATIN SMALL LETTER TURNED H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A78D","lowercase_mapping":"","titlecase_mapping":"A78D","symbol":"\u0265"},614:{"value":"0266","name":"LATIN SMALL LETTER H WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER H HOOK","comment":"","uppercase_mapping":"A7AA","lowercase_mapping":"","titlecase_mapping":"A7AA","symbol":"\u0266"},615:{"value":"0267","name":"LATIN SMALL LETTER HENG WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER HENG HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0267"},616:{"value":"0268","name":"LATIN SMALL LETTER I WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER BARRED I","comment":"","uppercase_mapping":"0197","lowercase_mapping":"","titlecase_mapping":"0197","symbol":"\u0268"},617:{"value":"0269","name":"LATIN SMALL LETTER IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0196","lowercase_mapping":"","titlecase_mapping":"0196","symbol":"\u0269"},618:{"value":"026A","name":"LATIN LETTER SMALL CAPITAL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7AE","lowercase_mapping":"","titlecase_mapping":"A7AE","symbol":"\u026A"},619:{"value":"026B","name":"LATIN SMALL LETTER L WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C62","lowercase_mapping":"","titlecase_mapping":"2C62","symbol":"\u026B"},620:{"value":"026C","name":"LATIN SMALL LETTER L WITH BELT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L BELT","comment":"","uppercase_mapping":"A7AD","lowercase_mapping":"","titlecase_mapping":"A7AD","symbol":"\u026C"},621:{"value":"026D","name":"LATIN SMALL LETTER L WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L RETROFLEX HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u026D"},622:{"value":"026E","name":"LATIN SMALL LETTER LEZH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER L YOGH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u026E"},623:{"value":"026F","name":"LATIN SMALL LETTER TURNED M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"019C","lowercase_mapping":"","titlecase_mapping":"019C","symbol":"\u026F"},624:{"value":"0270","name":"LATIN SMALL LETTER TURNED M WITH LONG LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0270"},625:{"value":"0271","name":"LATIN SMALL LETTER M WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER M HOOK","comment":"","uppercase_mapping":"2C6E","lowercase_mapping":"","titlecase_mapping":"2C6E","symbol":"\u0271"},626:{"value":"0272","name":"LATIN SMALL LETTER N WITH LEFT HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N HOOK","comment":"","uppercase_mapping":"019D","lowercase_mapping":"","titlecase_mapping":"019D","symbol":"\u0272"},627:{"value":"0273","name":"LATIN SMALL LETTER N WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER N RETROFLEX HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0273"},628:{"value":"0274","name":"LATIN LETTER SMALL CAPITAL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0274"},629:{"value":"0275","name":"LATIN SMALL LETTER BARRED O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"019F","lowercase_mapping":"","titlecase_mapping":"019F","symbol":"\u0275"},630:{"value":"0276","name":"LATIN LETTER SMALL CAPITAL OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER SMALL CAPITAL O E","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0276"},631:{"value":"0277","name":"LATIN SMALL LETTER CLOSED OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0277"},632:{"value":"0278","name":"LATIN SMALL LETTER PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0278"},633:{"value":"0279","name":"LATIN SMALL LETTER TURNED R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0279"},634:{"value":"027A","name":"LATIN SMALL LETTER TURNED R WITH LONG LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027A"},635:{"value":"027B","name":"LATIN SMALL LETTER TURNED R WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER TURNED R HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027B"},636:{"value":"027C","name":"LATIN SMALL LETTER R WITH LONG LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027C"},637:{"value":"027D","name":"LATIN SMALL LETTER R WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER R HOOK","comment":"","uppercase_mapping":"2C64","lowercase_mapping":"","titlecase_mapping":"2C64","symbol":"\u027D"},638:{"value":"027E","name":"LATIN SMALL LETTER R WITH FISHHOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER FISHHOOK R","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027E"},639:{"value":"027F","name":"LATIN SMALL LETTER REVERSED R WITH FISHHOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER REVERSED FISHHOOK R","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u027F"},640:{"value":"0280","name":"LATIN LETTER SMALL CAPITAL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01A6","lowercase_mapping":"","titlecase_mapping":"01A6","symbol":"\u0280"},641:{"value":"0281","name":"LATIN LETTER SMALL CAPITAL INVERTED R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0281"},642:{"value":"0282","name":"LATIN SMALL LETTER S WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER S HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0282"},643:{"value":"0283","name":"LATIN SMALL LETTER ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01A9","lowercase_mapping":"","titlecase_mapping":"01A9","symbol":"\u0283"},644:{"value":"0284","name":"LATIN SMALL LETTER DOTLESS J WITH STROKE AND HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER DOTLESS J BAR HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0284"},645:{"value":"0285","name":"LATIN SMALL LETTER SQUAT REVERSED ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0285"},646:{"value":"0286","name":"LATIN SMALL LETTER ESH WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER ESH CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0286"},647:{"value":"0287","name":"LATIN SMALL LETTER TURNED T","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B1","lowercase_mapping":"","titlecase_mapping":"A7B1","symbol":"\u0287"},648:{"value":"0288","name":"LATIN SMALL LETTER T WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T RETROFLEX HOOK","comment":"","uppercase_mapping":"01AE","lowercase_mapping":"","titlecase_mapping":"01AE","symbol":"\u0288"},649:{"value":"0289","name":"LATIN SMALL LETTER U BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0244","lowercase_mapping":"","titlecase_mapping":"0244","symbol":"\u0289"},650:{"value":"028A","name":"LATIN SMALL LETTER UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"01B1","lowercase_mapping":"","titlecase_mapping":"01B1","symbol":"\u028A"},651:{"value":"028B","name":"LATIN SMALL LETTER V WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER SCRIPT V","comment":"","uppercase_mapping":"01B2","lowercase_mapping":"","titlecase_mapping":"01B2","symbol":"\u028B"},652:{"value":"028C","name":"LATIN SMALL LETTER TURNED V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0245","lowercase_mapping":"","titlecase_mapping":"0245","symbol":"\u028C"},653:{"value":"028D","name":"LATIN SMALL LETTER TURNED W","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u028D"},654:{"value":"028E","name":"LATIN SMALL LETTER TURNED Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u028E"},655:{"value":"028F","name":"LATIN LETTER SMALL CAPITAL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u028F"},656:{"value":"0290","name":"LATIN SMALL LETTER Z WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z RETROFLEX HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0290"},657:{"value":"0291","name":"LATIN SMALL LETTER Z WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Z CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0291"},658:{"value":"0292","name":"LATIN SMALL LETTER EZH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER YOGH","comment":"","uppercase_mapping":"01B7","lowercase_mapping":"","titlecase_mapping":"01B7","symbol":"\u0292"},659:{"value":"0293","name":"LATIN SMALL LETTER EZH WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER YOGH CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0293"},661:{"value":"0295","name":"LATIN LETTER PHARYNGEAL VOICED FRICATIVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER REVERSED GLOTTAL STOP","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0295"},662:{"value":"0296","name":"LATIN LETTER INVERTED GLOTTAL STOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0296"},663:{"value":"0297","name":"LATIN LETTER STRETCHED C","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0297"},664:{"value":"0298","name":"LATIN LETTER BILABIAL CLICK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER BULLSEYE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0298"},665:{"value":"0299","name":"LATIN LETTER SMALL CAPITAL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0299"},666:{"value":"029A","name":"LATIN SMALL LETTER CLOSED OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER CLOSED EPSILON","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u029A"},667:{"value":"029B","name":"LATIN LETTER SMALL CAPITAL G WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER SMALL CAPITAL G HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u029B"},668:{"value":"029C","name":"LATIN LETTER SMALL CAPITAL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u029C"},669:{"value":"029D","name":"LATIN SMALL LETTER J WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER CROSSED-TAIL J","comment":"","uppercase_mapping":"A7B2","lowercase_mapping":"","titlecase_mapping":"A7B2","symbol":"\u029D"},670:{"value":"029E","name":"LATIN SMALL LETTER TURNED K","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B0","lowercase_mapping":"","titlecase_mapping":"A7B0","symbol":"\u029E"},671:{"value":"029F","name":"LATIN LETTER SMALL CAPITAL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u029F"},672:{"value":"02A0","name":"LATIN SMALL LETTER Q WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER Q HOOK","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A0"},673:{"value":"02A1","name":"LATIN LETTER GLOTTAL STOP WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER GLOTTAL STOP BAR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A1"},674:{"value":"02A2","name":"LATIN LETTER REVERSED GLOTTAL STOP WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN LETTER REVERSED GLOTTAL STOP BAR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A2"},675:{"value":"02A3","name":"LATIN SMALL LETTER DZ DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D Z","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A3"},676:{"value":"02A4","name":"LATIN SMALL LETTER DEZH DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D YOGH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A4"},677:{"value":"02A5","name":"LATIN SMALL LETTER DZ DIGRAPH WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER D Z CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A5"},678:{"value":"02A6","name":"LATIN SMALL LETTER TS DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T S","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A6"},679:{"value":"02A7","name":"LATIN SMALL LETTER TESH DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T ESH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A7"},680:{"value":"02A8","name":"LATIN SMALL LETTER TC DIGRAPH WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"LATIN SMALL LETTER T C CURL","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A8"},681:{"value":"02A9","name":"LATIN SMALL LETTER FENG DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02A9"},682:{"value":"02AA","name":"LATIN SMALL LETTER LS DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AA"},683:{"value":"02AB","name":"LATIN SMALL LETTER LZ DIGRAPH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AB"},684:{"value":"02AC","name":"LATIN LETTER BILABIAL PERCUSSIVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AC"},685:{"value":"02AD","name":"LATIN LETTER BIDENTAL PERCUSSIVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AD"},686:{"value":"02AE","name":"LATIN SMALL LETTER TURNED H WITH FISHHOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AE"},687:{"value":"02AF","name":"LATIN SMALL LETTER TURNED H WITH FISHHOOK AND TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u02AF"},881:{"value":"0371","name":"GREEK SMALL LETTER HETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0370","lowercase_mapping":"","titlecase_mapping":"0370","symbol":"\u0371"},883:{"value":"0373","name":"GREEK SMALL LETTER ARCHAIC SAMPI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0372","lowercase_mapping":"","titlecase_mapping":"0372","symbol":"\u0373"},887:{"value":"0377","name":"GREEK SMALL LETTER PAMPHYLIAN DIGAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0376","lowercase_mapping":"","titlecase_mapping":"0376","symbol":"\u0377"},891:{"value":"037B","name":"GREEK SMALL REVERSED LUNATE SIGMA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03FD","lowercase_mapping":"","titlecase_mapping":"03FD","symbol":"\u037B"},892:{"value":"037C","name":"GREEK SMALL DOTTED LUNATE SIGMA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03FE","lowercase_mapping":"","titlecase_mapping":"03FE","symbol":"\u037C"},893:{"value":"037D","name":"GREEK SMALL REVERSED DOTTED LUNATE SIGMA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03FF","lowercase_mapping":"","titlecase_mapping":"03FF","symbol":"\u037D"},912:{"value":"0390","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CA 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER IOTA DIAERESIS TONOS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0390"},940:{"value":"03AC","name":"GREEK SMALL LETTER ALPHA WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER ALPHA TONOS","comment":"","uppercase_mapping":"0386","lowercase_mapping":"","titlecase_mapping":"0386","symbol":"\u03AC"},941:{"value":"03AD","name":"GREEK SMALL LETTER EPSILON WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B5 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER EPSILON TONOS","comment":"","uppercase_mapping":"0388","lowercase_mapping":"","titlecase_mapping":"0388","symbol":"\u03AD"},942:{"value":"03AE","name":"GREEK SMALL LETTER ETA WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER ETA TONOS","comment":"","uppercase_mapping":"0389","lowercase_mapping":"","titlecase_mapping":"0389","symbol":"\u03AE"},943:{"value":"03AF","name":"GREEK SMALL LETTER IOTA WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER IOTA TONOS","comment":"","uppercase_mapping":"038A","lowercase_mapping":"","titlecase_mapping":"038A","symbol":"\u03AF"},944:{"value":"03B0","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CB 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER UPSILON DIAERESIS TONOS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u03B0"},945:{"value":"03B1","name":"GREEK SMALL LETTER ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0391","lowercase_mapping":"","titlecase_mapping":"0391","symbol":"\u03B1"},946:{"value":"03B2","name":"GREEK SMALL LETTER BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0392","lowercase_mapping":"","titlecase_mapping":"0392","symbol":"\u03B2"},947:{"value":"03B3","name":"GREEK SMALL LETTER GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0393","lowercase_mapping":"","titlecase_mapping":"0393","symbol":"\u03B3"},948:{"value":"03B4","name":"GREEK SMALL LETTER DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0394","lowercase_mapping":"","titlecase_mapping":"0394","symbol":"\u03B4"},949:{"value":"03B5","name":"GREEK SMALL LETTER EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0395","lowercase_mapping":"","titlecase_mapping":"0395","symbol":"\u03B5"},950:{"value":"03B6","name":"GREEK SMALL LETTER ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0396","lowercase_mapping":"","titlecase_mapping":"0396","symbol":"\u03B6"},951:{"value":"03B7","name":"GREEK SMALL LETTER ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0397","lowercase_mapping":"","titlecase_mapping":"0397","symbol":"\u03B7"},952:{"value":"03B8","name":"GREEK SMALL LETTER THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0398","lowercase_mapping":"","titlecase_mapping":"0398","symbol":"\u03B8"},953:{"value":"03B9","name":"GREEK SMALL LETTER IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0399","lowercase_mapping":"","titlecase_mapping":"0399","symbol":"\u03B9"},954:{"value":"03BA","name":"GREEK SMALL LETTER KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039A","lowercase_mapping":"","titlecase_mapping":"039A","symbol":"\u03BA"},955:{"value":"03BB","name":"GREEK SMALL LETTER LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER LAMBDA","comment":"","uppercase_mapping":"039B","lowercase_mapping":"","titlecase_mapping":"039B","symbol":"\u03BB"},956:{"value":"03BC","name":"GREEK SMALL LETTER MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039C","lowercase_mapping":"","titlecase_mapping":"039C","symbol":"\u03BC"},957:{"value":"03BD","name":"GREEK SMALL LETTER NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039D","lowercase_mapping":"","titlecase_mapping":"039D","symbol":"\u03BD"},958:{"value":"03BE","name":"GREEK SMALL LETTER XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039E","lowercase_mapping":"","titlecase_mapping":"039E","symbol":"\u03BE"},959:{"value":"03BF","name":"GREEK SMALL LETTER OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"039F","lowercase_mapping":"","titlecase_mapping":"039F","symbol":"\u03BF"},960:{"value":"03C0","name":"GREEK SMALL LETTER PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A0","lowercase_mapping":"","titlecase_mapping":"03A0","symbol":"\u03C0"},961:{"value":"03C1","name":"GREEK SMALL LETTER RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A1","lowercase_mapping":"","titlecase_mapping":"03A1","symbol":"\u03C1"},962:{"value":"03C2","name":"GREEK SMALL LETTER FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A3","lowercase_mapping":"","titlecase_mapping":"03A3","symbol":"\u03C2"},963:{"value":"03C3","name":"GREEK SMALL LETTER SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A3","lowercase_mapping":"","titlecase_mapping":"03A3","symbol":"\u03C3"},964:{"value":"03C4","name":"GREEK SMALL LETTER TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A4","lowercase_mapping":"","titlecase_mapping":"03A4","symbol":"\u03C4"},965:{"value":"03C5","name":"GREEK SMALL LETTER UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A5","lowercase_mapping":"","titlecase_mapping":"03A5","symbol":"\u03C5"},966:{"value":"03C6","name":"GREEK SMALL LETTER PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A6","lowercase_mapping":"","titlecase_mapping":"03A6","symbol":"\u03C6"},967:{"value":"03C7","name":"GREEK SMALL LETTER CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A7","lowercase_mapping":"","titlecase_mapping":"03A7","symbol":"\u03C7"},968:{"value":"03C8","name":"GREEK SMALL LETTER PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A8","lowercase_mapping":"","titlecase_mapping":"03A8","symbol":"\u03C8"},969:{"value":"03C9","name":"GREEK SMALL LETTER OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03A9","lowercase_mapping":"","titlecase_mapping":"03A9","symbol":"\u03C9"},970:{"value":"03CA","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER IOTA DIAERESIS","comment":"","uppercase_mapping":"03AA","lowercase_mapping":"","titlecase_mapping":"03AA","symbol":"\u03CA"},971:{"value":"03CB","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER UPSILON DIAERESIS","comment":"","uppercase_mapping":"03AB","lowercase_mapping":"","titlecase_mapping":"03AB","symbol":"\u03CB"},972:{"value":"03CC","name":"GREEK SMALL LETTER OMICRON WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03BF 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER OMICRON TONOS","comment":"","uppercase_mapping":"038C","lowercase_mapping":"","titlecase_mapping":"038C","symbol":"\u03CC"},973:{"value":"03CD","name":"GREEK SMALL LETTER UPSILON WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER UPSILON TONOS","comment":"","uppercase_mapping":"038E","lowercase_mapping":"","titlecase_mapping":"038E","symbol":"\u03CD"},974:{"value":"03CE","name":"GREEK SMALL LETTER OMEGA WITH TONOS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER OMEGA TONOS","comment":"","uppercase_mapping":"038F","lowercase_mapping":"","titlecase_mapping":"038F","symbol":"\u03CE"},976:{"value":"03D0","name":"GREEK BETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER CURLED BETA","comment":"","uppercase_mapping":"0392","lowercase_mapping":"","titlecase_mapping":"0392","symbol":"\u03D0"},977:{"value":"03D1","name":"GREEK THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SCRIPT THETA","comment":"","uppercase_mapping":"0398","lowercase_mapping":"","titlecase_mapping":"0398","symbol":"\u03D1"},981:{"value":"03D5","name":"GREEK PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SCRIPT PHI","comment":"","uppercase_mapping":"03A6","lowercase_mapping":"","titlecase_mapping":"03A6","symbol":"\u03D5"},982:{"value":"03D6","name":"GREEK PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER OMEGA PI","comment":"","uppercase_mapping":"03A0","lowercase_mapping":"","titlecase_mapping":"03A0","symbol":"\u03D6"},983:{"value":"03D7","name":"GREEK KAI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03CF","lowercase_mapping":"","titlecase_mapping":"03CF","symbol":"\u03D7"},985:{"value":"03D9","name":"GREEK SMALL LETTER ARCHAIC KOPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03D8","lowercase_mapping":"","titlecase_mapping":"03D8","symbol":"\u03D9"},987:{"value":"03DB","name":"GREEK SMALL LETTER STIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03DA","lowercase_mapping":"","titlecase_mapping":"03DA","symbol":"\u03DB"},989:{"value":"03DD","name":"GREEK SMALL LETTER DIGAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03DC","lowercase_mapping":"","titlecase_mapping":"03DC","symbol":"\u03DD"},991:{"value":"03DF","name":"GREEK SMALL LETTER KOPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03DE","lowercase_mapping":"","titlecase_mapping":"03DE","symbol":"\u03DF"},993:{"value":"03E1","name":"GREEK SMALL LETTER SAMPI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03E0","lowercase_mapping":"","titlecase_mapping":"03E0","symbol":"\u03E1"},995:{"value":"03E3","name":"COPTIC SMALL LETTER SHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SHEI","comment":"","uppercase_mapping":"03E2","lowercase_mapping":"","titlecase_mapping":"03E2","symbol":"\u03E3"},997:{"value":"03E5","name":"COPTIC SMALL LETTER FEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER FEI","comment":"","uppercase_mapping":"03E4","lowercase_mapping":"","titlecase_mapping":"03E4","symbol":"\u03E5"},999:{"value":"03E7","name":"COPTIC SMALL LETTER KHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER KHEI","comment":"","uppercase_mapping":"03E6","lowercase_mapping":"","titlecase_mapping":"03E6","symbol":"\u03E7"},1001:{"value":"03E9","name":"COPTIC SMALL LETTER HORI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER HORI","comment":"","uppercase_mapping":"03E8","lowercase_mapping":"","titlecase_mapping":"03E8","symbol":"\u03E9"},1003:{"value":"03EB","name":"COPTIC SMALL LETTER GANGIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER GANGIA","comment":"","uppercase_mapping":"03EA","lowercase_mapping":"","titlecase_mapping":"03EA","symbol":"\u03EB"},1005:{"value":"03ED","name":"COPTIC SMALL LETTER SHIMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SHIMA","comment":"","uppercase_mapping":"03EC","lowercase_mapping":"","titlecase_mapping":"03EC","symbol":"\u03ED"},1007:{"value":"03EF","name":"COPTIC SMALL LETTER DEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER DEI","comment":"","uppercase_mapping":"03EE","lowercase_mapping":"","titlecase_mapping":"03EE","symbol":"\u03EF"},1008:{"value":"03F0","name":"GREEK KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER SCRIPT KAPPA","comment":"","uppercase_mapping":"039A","lowercase_mapping":"","titlecase_mapping":"039A","symbol":"\u03F0"},1009:{"value":"03F1","name":"GREEK RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER TAILED RHO","comment":"","uppercase_mapping":"03A1","lowercase_mapping":"","titlecase_mapping":"03A1","symbol":"\u03F1"},1010:{"value":"03F2","name":"GREEK LUNATE SIGMA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"GREEK SMALL LETTER LUNATE SIGMA","comment":"","uppercase_mapping":"03F9","lowercase_mapping":"","titlecase_mapping":"03F9","symbol":"\u03F2"},1011:{"value":"03F3","name":"GREEK LETTER YOT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"037F","lowercase_mapping":"","titlecase_mapping":"037F","symbol":"\u03F3"},1013:{"value":"03F5","name":"GREEK LUNATE EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0395","lowercase_mapping":"","titlecase_mapping":"0395","symbol":"\u03F5"},1016:{"value":"03F8","name":"GREEK SMALL LETTER SHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03F7","lowercase_mapping":"","titlecase_mapping":"03F7","symbol":"\u03F8"},1019:{"value":"03FB","name":"GREEK SMALL LETTER SAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"03FA","lowercase_mapping":"","titlecase_mapping":"03FA","symbol":"\u03FB"},1020:{"value":"03FC","name":"GREEK RHO WITH STROKE SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u03FC"},1072:{"value":"0430","name":"CYRILLIC SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0410","lowercase_mapping":"","titlecase_mapping":"0410","symbol":"\u0430"},1073:{"value":"0431","name":"CYRILLIC SMALL LETTER BE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0411","lowercase_mapping":"","titlecase_mapping":"0411","symbol":"\u0431"},1074:{"value":"0432","name":"CYRILLIC SMALL LETTER VE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0412","lowercase_mapping":"","titlecase_mapping":"0412","symbol":"\u0432"},1075:{"value":"0433","name":"CYRILLIC SMALL LETTER GHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER GE","comment":"","uppercase_mapping":"0413","lowercase_mapping":"","titlecase_mapping":"0413","symbol":"\u0433"},1076:{"value":"0434","name":"CYRILLIC SMALL LETTER DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0414","lowercase_mapping":"","titlecase_mapping":"0414","symbol":"\u0434"},1077:{"value":"0435","name":"CYRILLIC SMALL LETTER IE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0415","lowercase_mapping":"","titlecase_mapping":"0415","symbol":"\u0435"},1078:{"value":"0436","name":"CYRILLIC SMALL LETTER ZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0416","lowercase_mapping":"","titlecase_mapping":"0416","symbol":"\u0436"},1079:{"value":"0437","name":"CYRILLIC SMALL LETTER ZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0417","lowercase_mapping":"","titlecase_mapping":"0417","symbol":"\u0437"},1080:{"value":"0438","name":"CYRILLIC SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER II","comment":"","uppercase_mapping":"0418","lowercase_mapping":"","titlecase_mapping":"0418","symbol":"\u0438"},1081:{"value":"0439","name":"CYRILLIC SMALL LETTER SHORT I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0438 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER SHORT II","comment":"","uppercase_mapping":"0419","lowercase_mapping":"","titlecase_mapping":"0419","symbol":"\u0439"},1082:{"value":"043A","name":"CYRILLIC SMALL LETTER KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041A","lowercase_mapping":"","titlecase_mapping":"041A","symbol":"\u043A"},1083:{"value":"043B","name":"CYRILLIC SMALL LETTER EL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041B","lowercase_mapping":"","titlecase_mapping":"041B","symbol":"\u043B"},1084:{"value":"043C","name":"CYRILLIC SMALL LETTER EM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041C","lowercase_mapping":"","titlecase_mapping":"041C","symbol":"\u043C"},1085:{"value":"043D","name":"CYRILLIC SMALL LETTER EN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041D","lowercase_mapping":"","titlecase_mapping":"041D","symbol":"\u043D"},1086:{"value":"043E","name":"CYRILLIC SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041E","lowercase_mapping":"","titlecase_mapping":"041E","symbol":"\u043E"},1087:{"value":"043F","name":"CYRILLIC SMALL LETTER PE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041F","lowercase_mapping":"","titlecase_mapping":"041F","symbol":"\u043F"},1088:{"value":"0440","name":"CYRILLIC SMALL LETTER ER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0420","lowercase_mapping":"","titlecase_mapping":"0420","symbol":"\u0440"},1089:{"value":"0441","name":"CYRILLIC SMALL LETTER ES","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0421","lowercase_mapping":"","titlecase_mapping":"0421","symbol":"\u0441"},1090:{"value":"0442","name":"CYRILLIC SMALL LETTER TE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0422","lowercase_mapping":"","titlecase_mapping":"0422","symbol":"\u0442"},1091:{"value":"0443","name":"CYRILLIC SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0423","lowercase_mapping":"","titlecase_mapping":"0423","symbol":"\u0443"},1092:{"value":"0444","name":"CYRILLIC SMALL LETTER EF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0424","lowercase_mapping":"","titlecase_mapping":"0424","symbol":"\u0444"},1093:{"value":"0445","name":"CYRILLIC SMALL LETTER HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KHA","comment":"","uppercase_mapping":"0425","lowercase_mapping":"","titlecase_mapping":"0425","symbol":"\u0445"},1094:{"value":"0446","name":"CYRILLIC SMALL LETTER TSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0426","lowercase_mapping":"","titlecase_mapping":"0426","symbol":"\u0446"},1095:{"value":"0447","name":"CYRILLIC SMALL LETTER CHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0427","lowercase_mapping":"","titlecase_mapping":"0427","symbol":"\u0447"},1096:{"value":"0448","name":"CYRILLIC SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0428","lowercase_mapping":"","titlecase_mapping":"0428","symbol":"\u0448"},1097:{"value":"0449","name":"CYRILLIC SMALL LETTER SHCHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0429","lowercase_mapping":"","titlecase_mapping":"0429","symbol":"\u0449"},1098:{"value":"044A","name":"CYRILLIC SMALL LETTER HARD SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"042A","lowercase_mapping":"","titlecase_mapping":"042A","symbol":"\u044A"},1099:{"value":"044B","name":"CYRILLIC SMALL LETTER YERU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER YERI","comment":"","uppercase_mapping":"042B","lowercase_mapping":"","titlecase_mapping":"042B","symbol":"\u044B"},1100:{"value":"044C","name":"CYRILLIC SMALL LETTER SOFT SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"042C","lowercase_mapping":"","titlecase_mapping":"042C","symbol":"\u044C"},1101:{"value":"044D","name":"CYRILLIC SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER REVERSED E","comment":"","uppercase_mapping":"042D","lowercase_mapping":"","titlecase_mapping":"042D","symbol":"\u044D"},1102:{"value":"044E","name":"CYRILLIC SMALL LETTER YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IU","comment":"","uppercase_mapping":"042E","lowercase_mapping":"","titlecase_mapping":"042E","symbol":"\u044E"},1103:{"value":"044F","name":"CYRILLIC SMALL LETTER YA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IA","comment":"","uppercase_mapping":"042F","lowercase_mapping":"","titlecase_mapping":"042F","symbol":"\u044F"},1104:{"value":"0450","name":"CYRILLIC SMALL LETTER IE WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0435 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0400","lowercase_mapping":"","titlecase_mapping":"0400","symbol":"\u0450"},1105:{"value":"0451","name":"CYRILLIC SMALL LETTER IO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0435 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0401","lowercase_mapping":"","titlecase_mapping":"0401","symbol":"\u0451"},1106:{"value":"0452","name":"CYRILLIC SMALL LETTER DJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0402","lowercase_mapping":"","titlecase_mapping":"0402","symbol":"\u0452"},1107:{"value":"0453","name":"CYRILLIC SMALL LETTER GJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0433 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0403","lowercase_mapping":"","titlecase_mapping":"0403","symbol":"\u0453"},1108:{"value":"0454","name":"CYRILLIC SMALL LETTER UKRAINIAN IE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER E","comment":"","uppercase_mapping":"0404","lowercase_mapping":"","titlecase_mapping":"0404","symbol":"\u0454"},1109:{"value":"0455","name":"CYRILLIC SMALL LETTER DZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0405","lowercase_mapping":"","titlecase_mapping":"0405","symbol":"\u0455"},1110:{"value":"0456","name":"CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER I","comment":"","uppercase_mapping":"0406","lowercase_mapping":"","titlecase_mapping":"0406","symbol":"\u0456"},1111:{"value":"0457","name":"CYRILLIC SMALL LETTER YI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0456 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0407","lowercase_mapping":"","titlecase_mapping":"0407","symbol":"\u0457"},1112:{"value":"0458","name":"CYRILLIC SMALL LETTER JE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0408","lowercase_mapping":"","titlecase_mapping":"0408","symbol":"\u0458"},1113:{"value":"0459","name":"CYRILLIC SMALL LETTER LJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0409","lowercase_mapping":"","titlecase_mapping":"0409","symbol":"\u0459"},1114:{"value":"045A","name":"CYRILLIC SMALL LETTER NJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040A","lowercase_mapping":"","titlecase_mapping":"040A","symbol":"\u045A"},1115:{"value":"045B","name":"CYRILLIC SMALL LETTER TSHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040B","lowercase_mapping":"","titlecase_mapping":"040B","symbol":"\u045B"},1116:{"value":"045C","name":"CYRILLIC SMALL LETTER KJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"043A 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040C","lowercase_mapping":"","titlecase_mapping":"040C","symbol":"\u045C"},1117:{"value":"045D","name":"CYRILLIC SMALL LETTER I WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0438 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040D","lowercase_mapping":"","titlecase_mapping":"040D","symbol":"\u045D"},1118:{"value":"045E","name":"CYRILLIC SMALL LETTER SHORT U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0443 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040E","lowercase_mapping":"","titlecase_mapping":"040E","symbol":"\u045E"},1119:{"value":"045F","name":"CYRILLIC SMALL LETTER DZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"040F","lowercase_mapping":"","titlecase_mapping":"040F","symbol":"\u045F"},1121:{"value":"0461","name":"CYRILLIC SMALL LETTER OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0460","lowercase_mapping":"","titlecase_mapping":"0460","symbol":"\u0461"},1123:{"value":"0463","name":"CYRILLIC SMALL LETTER YAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0462","lowercase_mapping":"","titlecase_mapping":"0462","symbol":"\u0463"},1125:{"value":"0465","name":"CYRILLIC SMALL LETTER IOTIFIED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0464","lowercase_mapping":"","titlecase_mapping":"0464","symbol":"\u0465"},1127:{"value":"0467","name":"CYRILLIC SMALL LETTER LITTLE YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0466","lowercase_mapping":"","titlecase_mapping":"0466","symbol":"\u0467"},1129:{"value":"0469","name":"CYRILLIC SMALL LETTER IOTIFIED LITTLE YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0468","lowercase_mapping":"","titlecase_mapping":"0468","symbol":"\u0469"},1131:{"value":"046B","name":"CYRILLIC SMALL LETTER BIG YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"046A","lowercase_mapping":"","titlecase_mapping":"046A","symbol":"\u046B"},1133:{"value":"046D","name":"CYRILLIC SMALL LETTER IOTIFIED BIG YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"046C","lowercase_mapping":"","titlecase_mapping":"046C","symbol":"\u046D"},1135:{"value":"046F","name":"CYRILLIC SMALL LETTER KSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"046E","lowercase_mapping":"","titlecase_mapping":"046E","symbol":"\u046F"},1137:{"value":"0471","name":"CYRILLIC SMALL LETTER PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0470","lowercase_mapping":"","titlecase_mapping":"0470","symbol":"\u0471"},1139:{"value":"0473","name":"CYRILLIC SMALL LETTER FITA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0472","lowercase_mapping":"","titlecase_mapping":"0472","symbol":"\u0473"},1141:{"value":"0475","name":"CYRILLIC SMALL LETTER IZHITSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0474","lowercase_mapping":"","titlecase_mapping":"0474","symbol":"\u0475"},1143:{"value":"0477","name":"CYRILLIC SMALL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0475 030F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IZHITSA DOUBLE GRAVE","comment":"","uppercase_mapping":"0476","lowercase_mapping":"","titlecase_mapping":"0476","symbol":"\u0477"},1145:{"value":"0479","name":"CYRILLIC SMALL LETTER UK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER UK DIGRAPH","comment":"","uppercase_mapping":"0478","lowercase_mapping":"","titlecase_mapping":"0478","symbol":"\u0479"},1147:{"value":"047B","name":"CYRILLIC SMALL LETTER ROUND OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"047A","lowercase_mapping":"","titlecase_mapping":"047A","symbol":"\u047B"},1149:{"value":"047D","name":"CYRILLIC SMALL LETTER OMEGA WITH TITLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER OMEGA TITLO","comment":"","uppercase_mapping":"047C","lowercase_mapping":"","titlecase_mapping":"047C","symbol":"\u047D"},1151:{"value":"047F","name":"CYRILLIC SMALL LETTER OT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"047E","lowercase_mapping":"","titlecase_mapping":"047E","symbol":"\u047F"},1153:{"value":"0481","name":"CYRILLIC SMALL LETTER KOPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0480","lowercase_mapping":"","titlecase_mapping":"0480","symbol":"\u0481"},1163:{"value":"048B","name":"CYRILLIC SMALL LETTER SHORT I WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"048A","lowercase_mapping":"","titlecase_mapping":"048A","symbol":"\u048B"},1165:{"value":"048D","name":"CYRILLIC SMALL LETTER SEMISOFT SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"048C","lowercase_mapping":"","titlecase_mapping":"048C","symbol":"\u048D"},1167:{"value":"048F","name":"CYRILLIC SMALL LETTER ER WITH TICK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"048E","lowercase_mapping":"","titlecase_mapping":"048E","symbol":"\u048F"},1169:{"value":"0491","name":"CYRILLIC SMALL LETTER GHE WITH UPTURN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER GE WITH UPTURN","comment":"","uppercase_mapping":"0490","lowercase_mapping":"","titlecase_mapping":"0490","symbol":"\u0491"},1171:{"value":"0493","name":"CYRILLIC SMALL LETTER GHE WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER GE BAR","comment":"","uppercase_mapping":"0492","lowercase_mapping":"","titlecase_mapping":"0492","symbol":"\u0493"},1173:{"value":"0495","name":"CYRILLIC SMALL LETTER GHE WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER GE HOOK","comment":"","uppercase_mapping":"0494","lowercase_mapping":"","titlecase_mapping":"0494","symbol":"\u0495"},1175:{"value":"0497","name":"CYRILLIC SMALL LETTER ZHE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER ZHE WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"0496","lowercase_mapping":"","titlecase_mapping":"0496","symbol":"\u0497"},1177:{"value":"0499","name":"CYRILLIC SMALL LETTER ZE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER ZE CEDILLA","comment":"","uppercase_mapping":"0498","lowercase_mapping":"","titlecase_mapping":"0498","symbol":"\u0499"},1179:{"value":"049B","name":"CYRILLIC SMALL LETTER KA WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KA WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"049A","lowercase_mapping":"","titlecase_mapping":"049A","symbol":"\u049B"},1181:{"value":"049D","name":"CYRILLIC SMALL LETTER KA WITH VERTICAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KA VERTICAL BAR","comment":"","uppercase_mapping":"049C","lowercase_mapping":"","titlecase_mapping":"049C","symbol":"\u049D"},1183:{"value":"049F","name":"CYRILLIC SMALL LETTER KA WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KA BAR","comment":"","uppercase_mapping":"049E","lowercase_mapping":"","titlecase_mapping":"049E","symbol":"\u049F"},1185:{"value":"04A1","name":"CYRILLIC SMALL LETTER BASHKIR KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER REVERSED GE KA","comment":"","uppercase_mapping":"04A0","lowercase_mapping":"","titlecase_mapping":"04A0","symbol":"\u04A1"},1187:{"value":"04A3","name":"CYRILLIC SMALL LETTER EN WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER EN WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"04A2","lowercase_mapping":"","titlecase_mapping":"04A2","symbol":"\u04A3"},1189:{"value":"04A5","name":"CYRILLIC SMALL LIGATURE EN GHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER EN GE","comment":"","uppercase_mapping":"04A4","lowercase_mapping":"","titlecase_mapping":"04A4","symbol":"\u04A5"},1191:{"value":"04A7","name":"CYRILLIC SMALL LETTER PE WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER PE HOOK","comment":"","uppercase_mapping":"04A6","lowercase_mapping":"","titlecase_mapping":"04A6","symbol":"\u04A7"},1193:{"value":"04A9","name":"CYRILLIC SMALL LETTER ABKHASIAN HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER O HOOK","comment":"","uppercase_mapping":"04A8","lowercase_mapping":"","titlecase_mapping":"04A8","symbol":"\u04A9"},1195:{"value":"04AB","name":"CYRILLIC SMALL LETTER ES WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER ES CEDILLA","comment":"","uppercase_mapping":"04AA","lowercase_mapping":"","titlecase_mapping":"04AA","symbol":"\u04AB"},1197:{"value":"04AD","name":"CYRILLIC SMALL LETTER TE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER TE WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"04AC","lowercase_mapping":"","titlecase_mapping":"04AC","symbol":"\u04AD"},1199:{"value":"04AF","name":"CYRILLIC SMALL LETTER STRAIGHT U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04AE","lowercase_mapping":"","titlecase_mapping":"04AE","symbol":"\u04AF"},1201:{"value":"04B1","name":"CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER STRAIGHT U BAR","comment":"","uppercase_mapping":"04B0","lowercase_mapping":"","titlecase_mapping":"04B0","symbol":"\u04B1"},1203:{"value":"04B3","name":"CYRILLIC SMALL LETTER HA WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KHA WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"04B2","lowercase_mapping":"","titlecase_mapping":"04B2","symbol":"\u04B3"},1205:{"value":"04B5","name":"CYRILLIC SMALL LIGATURE TE TSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER TE TSE","comment":"","uppercase_mapping":"04B4","lowercase_mapping":"","titlecase_mapping":"04B4","symbol":"\u04B5"},1207:{"value":"04B7","name":"CYRILLIC SMALL LETTER CHE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER CHE WITH RIGHT DESCENDER","comment":"","uppercase_mapping":"04B6","lowercase_mapping":"","titlecase_mapping":"04B6","symbol":"\u04B7"},1209:{"value":"04B9","name":"CYRILLIC SMALL LETTER CHE WITH VERTICAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER CHE VERTICAL BAR","comment":"","uppercase_mapping":"04B8","lowercase_mapping":"","titlecase_mapping":"04B8","symbol":"\u04B9"},1211:{"value":"04BB","name":"CYRILLIC SMALL LETTER SHHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER H","comment":"","uppercase_mapping":"04BA","lowercase_mapping":"","titlecase_mapping":"04BA","symbol":"\u04BB"},1213:{"value":"04BD","name":"CYRILLIC SMALL LETTER ABKHASIAN CHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IE HOOK","comment":"","uppercase_mapping":"04BC","lowercase_mapping":"","titlecase_mapping":"04BC","symbol":"\u04BD"},1215:{"value":"04BF","name":"CYRILLIC SMALL LETTER ABKHASIAN CHE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER IE HOOK OGONEK","comment":"","uppercase_mapping":"04BE","lowercase_mapping":"","titlecase_mapping":"04BE","symbol":"\u04BF"},1218:{"value":"04C2","name":"CYRILLIC SMALL LETTER ZHE WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0436 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER SHORT ZHE","comment":"","uppercase_mapping":"04C1","lowercase_mapping":"","titlecase_mapping":"04C1","symbol":"\u04C2"},1220:{"value":"04C4","name":"CYRILLIC SMALL LETTER KA WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER KA HOOK","comment":"","uppercase_mapping":"04C3","lowercase_mapping":"","titlecase_mapping":"04C3","symbol":"\u04C4"},1222:{"value":"04C6","name":"CYRILLIC SMALL LETTER EL WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04C5","lowercase_mapping":"","titlecase_mapping":"04C5","symbol":"\u04C6"},1224:{"value":"04C8","name":"CYRILLIC SMALL LETTER EN WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER EN HOOK","comment":"","uppercase_mapping":"04C7","lowercase_mapping":"","titlecase_mapping":"04C7","symbol":"\u04C8"},1226:{"value":"04CA","name":"CYRILLIC SMALL LETTER EN WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04C9","lowercase_mapping":"","titlecase_mapping":"04C9","symbol":"\u04CA"},1228:{"value":"04CC","name":"CYRILLIC SMALL LETTER KHAKASSIAN CHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"CYRILLIC SMALL LETTER CHE WITH LEFT DESCENDER","comment":"","uppercase_mapping":"04CB","lowercase_mapping":"","titlecase_mapping":"04CB","symbol":"\u04CC"},1230:{"value":"04CE","name":"CYRILLIC SMALL LETTER EM WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04CD","lowercase_mapping":"","titlecase_mapping":"04CD","symbol":"\u04CE"},1231:{"value":"04CF","name":"CYRILLIC SMALL LETTER PALOCHKA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04C0","lowercase_mapping":"","titlecase_mapping":"04C0","symbol":"\u04CF"},1233:{"value":"04D1","name":"CYRILLIC SMALL LETTER A WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0430 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D0","lowercase_mapping":"","titlecase_mapping":"04D0","symbol":"\u04D1"},1235:{"value":"04D3","name":"CYRILLIC SMALL LETTER A WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0430 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D2","lowercase_mapping":"","titlecase_mapping":"04D2","symbol":"\u04D3"},1237:{"value":"04D5","name":"CYRILLIC SMALL LIGATURE A IE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D4","lowercase_mapping":"","titlecase_mapping":"04D4","symbol":"\u04D5"},1239:{"value":"04D7","name":"CYRILLIC SMALL LETTER IE WITH BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0435 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D6","lowercase_mapping":"","titlecase_mapping":"04D6","symbol":"\u04D7"},1241:{"value":"04D9","name":"CYRILLIC SMALL LETTER SCHWA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04D8","lowercase_mapping":"","titlecase_mapping":"04D8","symbol":"\u04D9"},1243:{"value":"04DB","name":"CYRILLIC SMALL LETTER SCHWA WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"04D9 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04DA","lowercase_mapping":"","titlecase_mapping":"04DA","symbol":"\u04DB"},1245:{"value":"04DD","name":"CYRILLIC SMALL LETTER ZHE WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0436 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04DC","lowercase_mapping":"","titlecase_mapping":"04DC","symbol":"\u04DD"},1247:{"value":"04DF","name":"CYRILLIC SMALL LETTER ZE WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0437 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04DE","lowercase_mapping":"","titlecase_mapping":"04DE","symbol":"\u04DF"},1249:{"value":"04E1","name":"CYRILLIC SMALL LETTER ABKHASIAN DZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E0","lowercase_mapping":"","titlecase_mapping":"04E0","symbol":"\u04E1"},1251:{"value":"04E3","name":"CYRILLIC SMALL LETTER I WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0438 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E2","lowercase_mapping":"","titlecase_mapping":"04E2","symbol":"\u04E3"},1253:{"value":"04E5","name":"CYRILLIC SMALL LETTER I WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0438 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E4","lowercase_mapping":"","titlecase_mapping":"04E4","symbol":"\u04E5"},1255:{"value":"04E7","name":"CYRILLIC SMALL LETTER O WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"043E 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E6","lowercase_mapping":"","titlecase_mapping":"04E6","symbol":"\u04E7"},1257:{"value":"04E9","name":"CYRILLIC SMALL LETTER BARRED O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04E8","lowercase_mapping":"","titlecase_mapping":"04E8","symbol":"\u04E9"},1259:{"value":"04EB","name":"CYRILLIC SMALL LETTER BARRED O WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"04E9 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04EA","lowercase_mapping":"","titlecase_mapping":"04EA","symbol":"\u04EB"},1261:{"value":"04ED","name":"CYRILLIC SMALL LETTER E WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"044D 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04EC","lowercase_mapping":"","titlecase_mapping":"04EC","symbol":"\u04ED"},1263:{"value":"04EF","name":"CYRILLIC SMALL LETTER U WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0443 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04EE","lowercase_mapping":"","titlecase_mapping":"04EE","symbol":"\u04EF"},1265:{"value":"04F1","name":"CYRILLIC SMALL LETTER U WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0443 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F0","lowercase_mapping":"","titlecase_mapping":"04F0","symbol":"\u04F1"},1267:{"value":"04F3","name":"CYRILLIC SMALL LETTER U WITH DOUBLE ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0443 030B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F2","lowercase_mapping":"","titlecase_mapping":"04F2","symbol":"\u04F3"},1269:{"value":"04F5","name":"CYRILLIC SMALL LETTER CHE WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0447 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F4","lowercase_mapping":"","titlecase_mapping":"04F4","symbol":"\u04F5"},1271:{"value":"04F7","name":"CYRILLIC SMALL LETTER GHE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F6","lowercase_mapping":"","titlecase_mapping":"04F6","symbol":"\u04F7"},1273:{"value":"04F9","name":"CYRILLIC SMALL LETTER YERU WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"044B 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04F8","lowercase_mapping":"","titlecase_mapping":"04F8","symbol":"\u04F9"},1275:{"value":"04FB","name":"CYRILLIC SMALL LETTER GHE WITH STROKE AND HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04FA","lowercase_mapping":"","titlecase_mapping":"04FA","symbol":"\u04FB"},1277:{"value":"04FD","name":"CYRILLIC SMALL LETTER HA WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04FC","lowercase_mapping":"","titlecase_mapping":"04FC","symbol":"\u04FD"},1279:{"value":"04FF","name":"CYRILLIC SMALL LETTER HA WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"04FE","lowercase_mapping":"","titlecase_mapping":"04FE","symbol":"\u04FF"},1281:{"value":"0501","name":"CYRILLIC SMALL LETTER KOMI DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0500","lowercase_mapping":"","titlecase_mapping":"0500","symbol":"\u0501"},1283:{"value":"0503","name":"CYRILLIC SMALL LETTER KOMI DJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0502","lowercase_mapping":"","titlecase_mapping":"0502","symbol":"\u0503"},1285:{"value":"0505","name":"CYRILLIC SMALL LETTER KOMI ZJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0504","lowercase_mapping":"","titlecase_mapping":"0504","symbol":"\u0505"},1287:{"value":"0507","name":"CYRILLIC SMALL LETTER KOMI DZJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0506","lowercase_mapping":"","titlecase_mapping":"0506","symbol":"\u0507"},1289:{"value":"0509","name":"CYRILLIC SMALL LETTER KOMI LJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0508","lowercase_mapping":"","titlecase_mapping":"0508","symbol":"\u0509"},1291:{"value":"050B","name":"CYRILLIC SMALL LETTER KOMI NJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"050A","lowercase_mapping":"","titlecase_mapping":"050A","symbol":"\u050B"},1293:{"value":"050D","name":"CYRILLIC SMALL LETTER KOMI SJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"050C","lowercase_mapping":"","titlecase_mapping":"050C","symbol":"\u050D"},1295:{"value":"050F","name":"CYRILLIC SMALL LETTER KOMI TJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"050E","lowercase_mapping":"","titlecase_mapping":"050E","symbol":"\u050F"},1297:{"value":"0511","name":"CYRILLIC SMALL LETTER REVERSED ZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0510","lowercase_mapping":"","titlecase_mapping":"0510","symbol":"\u0511"},1299:{"value":"0513","name":"CYRILLIC SMALL LETTER EL WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0512","lowercase_mapping":"","titlecase_mapping":"0512","symbol":"\u0513"},1301:{"value":"0515","name":"CYRILLIC SMALL LETTER LHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0514","lowercase_mapping":"","titlecase_mapping":"0514","symbol":"\u0515"},1303:{"value":"0517","name":"CYRILLIC SMALL LETTER RHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0516","lowercase_mapping":"","titlecase_mapping":"0516","symbol":"\u0517"},1305:{"value":"0519","name":"CYRILLIC SMALL LETTER YAE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0518","lowercase_mapping":"","titlecase_mapping":"0518","symbol":"\u0519"},1307:{"value":"051B","name":"CYRILLIC SMALL LETTER QA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"051A","lowercase_mapping":"","titlecase_mapping":"051A","symbol":"\u051B"},1309:{"value":"051D","name":"CYRILLIC SMALL LETTER WE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"051C","lowercase_mapping":"","titlecase_mapping":"051C","symbol":"\u051D"},1311:{"value":"051F","name":"CYRILLIC SMALL LETTER ALEUT KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"051E","lowercase_mapping":"","titlecase_mapping":"051E","symbol":"\u051F"},1313:{"value":"0521","name":"CYRILLIC SMALL LETTER EL WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0520","lowercase_mapping":"","titlecase_mapping":"0520","symbol":"\u0521"},1315:{"value":"0523","name":"CYRILLIC SMALL LETTER EN WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0522","lowercase_mapping":"","titlecase_mapping":"0522","symbol":"\u0523"},1317:{"value":"0525","name":"CYRILLIC SMALL LETTER PE WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0524","lowercase_mapping":"","titlecase_mapping":"0524","symbol":"\u0525"},1319:{"value":"0527","name":"CYRILLIC SMALL LETTER SHHA WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0526","lowercase_mapping":"","titlecase_mapping":"0526","symbol":"\u0527"},1321:{"value":"0529","name":"CYRILLIC SMALL LETTER EN WITH LEFT HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0528","lowercase_mapping":"","titlecase_mapping":"0528","symbol":"\u0529"},1323:{"value":"052B","name":"CYRILLIC SMALL LETTER DZZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"052A","lowercase_mapping":"","titlecase_mapping":"052A","symbol":"\u052B"},1325:{"value":"052D","name":"CYRILLIC SMALL LETTER DCHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"052C","lowercase_mapping":"","titlecase_mapping":"052C","symbol":"\u052D"},1327:{"value":"052F","name":"CYRILLIC SMALL LETTER EL WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"052E","lowercase_mapping":"","titlecase_mapping":"052E","symbol":"\u052F"},1377:{"value":"0561","name":"ARMENIAN SMALL LETTER AYB","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0531","lowercase_mapping":"","titlecase_mapping":"0531","symbol":"\u0561"},1378:{"value":"0562","name":"ARMENIAN SMALL LETTER BEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0532","lowercase_mapping":"","titlecase_mapping":"0532","symbol":"\u0562"},1379:{"value":"0563","name":"ARMENIAN SMALL LETTER GIM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0533","lowercase_mapping":"","titlecase_mapping":"0533","symbol":"\u0563"},1380:{"value":"0564","name":"ARMENIAN SMALL LETTER DA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0534","lowercase_mapping":"","titlecase_mapping":"0534","symbol":"\u0564"},1381:{"value":"0565","name":"ARMENIAN SMALL LETTER ECH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0535","lowercase_mapping":"","titlecase_mapping":"0535","symbol":"\u0565"},1382:{"value":"0566","name":"ARMENIAN SMALL LETTER ZA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0536","lowercase_mapping":"","titlecase_mapping":"0536","symbol":"\u0566"},1383:{"value":"0567","name":"ARMENIAN SMALL LETTER EH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0537","lowercase_mapping":"","titlecase_mapping":"0537","symbol":"\u0567"},1384:{"value":"0568","name":"ARMENIAN SMALL LETTER ET","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0538","lowercase_mapping":"","titlecase_mapping":"0538","symbol":"\u0568"},1385:{"value":"0569","name":"ARMENIAN SMALL LETTER TO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0539","lowercase_mapping":"","titlecase_mapping":"0539","symbol":"\u0569"},1386:{"value":"056A","name":"ARMENIAN SMALL LETTER ZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053A","lowercase_mapping":"","titlecase_mapping":"053A","symbol":"\u056A"},1387:{"value":"056B","name":"ARMENIAN SMALL LETTER INI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053B","lowercase_mapping":"","titlecase_mapping":"053B","symbol":"\u056B"},1388:{"value":"056C","name":"ARMENIAN SMALL LETTER LIWN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053C","lowercase_mapping":"","titlecase_mapping":"053C","symbol":"\u056C"},1389:{"value":"056D","name":"ARMENIAN SMALL LETTER XEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053D","lowercase_mapping":"","titlecase_mapping":"053D","symbol":"\u056D"},1390:{"value":"056E","name":"ARMENIAN SMALL LETTER CA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053E","lowercase_mapping":"","titlecase_mapping":"053E","symbol":"\u056E"},1391:{"value":"056F","name":"ARMENIAN SMALL LETTER KEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"053F","lowercase_mapping":"","titlecase_mapping":"053F","symbol":"\u056F"},1392:{"value":"0570","name":"ARMENIAN SMALL LETTER HO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0540","lowercase_mapping":"","titlecase_mapping":"0540","symbol":"\u0570"},1393:{"value":"0571","name":"ARMENIAN SMALL LETTER JA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0541","lowercase_mapping":"","titlecase_mapping":"0541","symbol":"\u0571"},1394:{"value":"0572","name":"ARMENIAN SMALL LETTER GHAD","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"ARMENIAN SMALL LETTER LAD","comment":"","uppercase_mapping":"0542","lowercase_mapping":"","titlecase_mapping":"0542","symbol":"\u0572"},1395:{"value":"0573","name":"ARMENIAN SMALL LETTER CHEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0543","lowercase_mapping":"","titlecase_mapping":"0543","symbol":"\u0573"},1396:{"value":"0574","name":"ARMENIAN SMALL LETTER MEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0544","lowercase_mapping":"","titlecase_mapping":"0544","symbol":"\u0574"},1397:{"value":"0575","name":"ARMENIAN SMALL LETTER YI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0545","lowercase_mapping":"","titlecase_mapping":"0545","symbol":"\u0575"},1398:{"value":"0576","name":"ARMENIAN SMALL LETTER NOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0546","lowercase_mapping":"","titlecase_mapping":"0546","symbol":"\u0576"},1399:{"value":"0577","name":"ARMENIAN SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0547","lowercase_mapping":"","titlecase_mapping":"0547","symbol":"\u0577"},1400:{"value":"0578","name":"ARMENIAN SMALL LETTER VO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0548","lowercase_mapping":"","titlecase_mapping":"0548","symbol":"\u0578"},1401:{"value":"0579","name":"ARMENIAN SMALL LETTER CHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0549","lowercase_mapping":"","titlecase_mapping":"0549","symbol":"\u0579"},1402:{"value":"057A","name":"ARMENIAN SMALL LETTER PEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054A","lowercase_mapping":"","titlecase_mapping":"054A","symbol":"\u057A"},1403:{"value":"057B","name":"ARMENIAN SMALL LETTER JHEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054B","lowercase_mapping":"","titlecase_mapping":"054B","symbol":"\u057B"},1404:{"value":"057C","name":"ARMENIAN SMALL LETTER RA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054C","lowercase_mapping":"","titlecase_mapping":"054C","symbol":"\u057C"},1405:{"value":"057D","name":"ARMENIAN SMALL LETTER SEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054D","lowercase_mapping":"","titlecase_mapping":"054D","symbol":"\u057D"},1406:{"value":"057E","name":"ARMENIAN SMALL LETTER VEW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054E","lowercase_mapping":"","titlecase_mapping":"054E","symbol":"\u057E"},1407:{"value":"057F","name":"ARMENIAN SMALL LETTER TIWN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"054F","lowercase_mapping":"","titlecase_mapping":"054F","symbol":"\u057F"},1408:{"value":"0580","name":"ARMENIAN SMALL LETTER REH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0550","lowercase_mapping":"","titlecase_mapping":"0550","symbol":"\u0580"},1409:{"value":"0581","name":"ARMENIAN SMALL LETTER CO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0551","lowercase_mapping":"","titlecase_mapping":"0551","symbol":"\u0581"},1410:{"value":"0582","name":"ARMENIAN SMALL LETTER YIWN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0552","lowercase_mapping":"","titlecase_mapping":"0552","symbol":"\u0582"},1411:{"value":"0583","name":"ARMENIAN SMALL LETTER PIWR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0553","lowercase_mapping":"","titlecase_mapping":"0553","symbol":"\u0583"},1412:{"value":"0584","name":"ARMENIAN SMALL LETTER KEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0554","lowercase_mapping":"","titlecase_mapping":"0554","symbol":"\u0584"},1413:{"value":"0585","name":"ARMENIAN SMALL LETTER OH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0555","lowercase_mapping":"","titlecase_mapping":"0555","symbol":"\u0585"},1414:{"value":"0586","name":"ARMENIAN SMALL LETTER FEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0556","lowercase_mapping":"","titlecase_mapping":"0556","symbol":"\u0586"},1415:{"value":"0587","name":"ARMENIAN SMALL LIGATURE ECH YIWN","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0565 0582","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0587"},5112:{"value":"13F8","name":"CHEROKEE SMALL LETTER YE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F0","lowercase_mapping":"","titlecase_mapping":"13F0","symbol":"\u13F8"},5113:{"value":"13F9","name":"CHEROKEE SMALL LETTER YI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F1","lowercase_mapping":"","titlecase_mapping":"13F1","symbol":"\u13F9"},5114:{"value":"13FA","name":"CHEROKEE SMALL LETTER YO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F2","lowercase_mapping":"","titlecase_mapping":"13F2","symbol":"\u13FA"},5115:{"value":"13FB","name":"CHEROKEE SMALL LETTER YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F3","lowercase_mapping":"","titlecase_mapping":"13F3","symbol":"\u13FB"},5116:{"value":"13FC","name":"CHEROKEE SMALL LETTER YV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F4","lowercase_mapping":"","titlecase_mapping":"13F4","symbol":"\u13FC"},5117:{"value":"13FD","name":"CHEROKEE SMALL LETTER MV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13F5","lowercase_mapping":"","titlecase_mapping":"13F5","symbol":"\u13FD"},7296:{"value":"1C80","name":"CYRILLIC SMALL LETTER ROUNDED VE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0412","lowercase_mapping":"","titlecase_mapping":"0412","symbol":"\u1C80"},7297:{"value":"1C81","name":"CYRILLIC SMALL LETTER LONG-LEGGED DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0414","lowercase_mapping":"","titlecase_mapping":"0414","symbol":"\u1C81"},7298:{"value":"1C82","name":"CYRILLIC SMALL LETTER NARROW O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"041E","lowercase_mapping":"","titlecase_mapping":"041E","symbol":"\u1C82"},7299:{"value":"1C83","name":"CYRILLIC SMALL LETTER WIDE ES","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0421","lowercase_mapping":"","titlecase_mapping":"0421","symbol":"\u1C83"},7300:{"value":"1C84","name":"CYRILLIC SMALL LETTER TALL TE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0422","lowercase_mapping":"","titlecase_mapping":"0422","symbol":"\u1C84"},7301:{"value":"1C85","name":"CYRILLIC SMALL LETTER THREE-LEGGED TE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0422","lowercase_mapping":"","titlecase_mapping":"0422","symbol":"\u1C85"},7302:{"value":"1C86","name":"CYRILLIC SMALL LETTER TALL HARD SIGN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"042A","lowercase_mapping":"","titlecase_mapping":"042A","symbol":"\u1C86"},7303:{"value":"1C87","name":"CYRILLIC SMALL LETTER TALL YAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0462","lowercase_mapping":"","titlecase_mapping":"0462","symbol":"\u1C87"},7304:{"value":"1C88","name":"CYRILLIC SMALL LETTER UNBLENDED UK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A64A","lowercase_mapping":"","titlecase_mapping":"A64A","symbol":"\u1C88"},7424:{"value":"1D00","name":"LATIN LETTER SMALL CAPITAL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D00"},7425:{"value":"1D01","name":"LATIN LETTER SMALL CAPITAL AE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D01"},7426:{"value":"1D02","name":"LATIN SMALL LETTER TURNED AE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D02"},7427:{"value":"1D03","name":"LATIN LETTER SMALL CAPITAL BARRED B","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D03"},7428:{"value":"1D04","name":"LATIN LETTER SMALL CAPITAL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D04"},7429:{"value":"1D05","name":"LATIN LETTER SMALL CAPITAL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D05"},7430:{"value":"1D06","name":"LATIN LETTER SMALL CAPITAL ETH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D06"},7431:{"value":"1D07","name":"LATIN LETTER SMALL CAPITAL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D07"},7432:{"value":"1D08","name":"LATIN SMALL LETTER TURNED OPEN E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D08"},7433:{"value":"1D09","name":"LATIN SMALL LETTER TURNED I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D09"},7434:{"value":"1D0A","name":"LATIN LETTER SMALL CAPITAL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0A"},7435:{"value":"1D0B","name":"LATIN LETTER SMALL CAPITAL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0B"},7436:{"value":"1D0C","name":"LATIN LETTER SMALL CAPITAL L WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0C"},7437:{"value":"1D0D","name":"LATIN LETTER SMALL CAPITAL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0D"},7438:{"value":"1D0E","name":"LATIN LETTER SMALL CAPITAL REVERSED N","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0E"},7439:{"value":"1D0F","name":"LATIN LETTER SMALL CAPITAL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D0F"},7440:{"value":"1D10","name":"LATIN LETTER SMALL CAPITAL OPEN O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D10"},7441:{"value":"1D11","name":"LATIN SMALL LETTER SIDEWAYS O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D11"},7442:{"value":"1D12","name":"LATIN SMALL LETTER SIDEWAYS OPEN O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D12"},7443:{"value":"1D13","name":"LATIN SMALL LETTER SIDEWAYS O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D13"},7444:{"value":"1D14","name":"LATIN SMALL LETTER TURNED OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D14"},7445:{"value":"1D15","name":"LATIN LETTER SMALL CAPITAL OU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D15"},7446:{"value":"1D16","name":"LATIN SMALL LETTER TOP HALF O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D16"},7447:{"value":"1D17","name":"LATIN SMALL LETTER BOTTOM HALF O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D17"},7448:{"value":"1D18","name":"LATIN LETTER SMALL CAPITAL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D18"},7449:{"value":"1D19","name":"LATIN LETTER SMALL CAPITAL REVERSED R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D19"},7450:{"value":"1D1A","name":"LATIN LETTER SMALL CAPITAL TURNED R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1A"},7451:{"value":"1D1B","name":"LATIN LETTER SMALL CAPITAL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1B"},7452:{"value":"1D1C","name":"LATIN LETTER SMALL CAPITAL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1C"},7453:{"value":"1D1D","name":"LATIN SMALL LETTER SIDEWAYS U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1D"},7454:{"value":"1D1E","name":"LATIN SMALL LETTER SIDEWAYS DIAERESIZED U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1E"},7455:{"value":"1D1F","name":"LATIN SMALL LETTER SIDEWAYS TURNED M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D1F"},7456:{"value":"1D20","name":"LATIN LETTER SMALL CAPITAL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D20"},7457:{"value":"1D21","name":"LATIN LETTER SMALL CAPITAL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D21"},7458:{"value":"1D22","name":"LATIN LETTER SMALL CAPITAL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D22"},7459:{"value":"1D23","name":"LATIN LETTER SMALL CAPITAL EZH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D23"},7460:{"value":"1D24","name":"LATIN LETTER VOICED LARYNGEAL SPIRANT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D24"},7461:{"value":"1D25","name":"LATIN LETTER AIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D25"},7462:{"value":"1D26","name":"GREEK LETTER SMALL CAPITAL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D26"},7463:{"value":"1D27","name":"GREEK LETTER SMALL CAPITAL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D27"},7464:{"value":"1D28","name":"GREEK LETTER SMALL CAPITAL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D28"},7465:{"value":"1D29","name":"GREEK LETTER SMALL CAPITAL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D29"},7466:{"value":"1D2A","name":"GREEK LETTER SMALL CAPITAL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D2A"},7467:{"value":"1D2B","name":"CYRILLIC LETTER SMALL CAPITAL EL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D2B"},7531:{"value":"1D6B","name":"LATIN SMALL LETTER UE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6B"},7532:{"value":"1D6C","name":"LATIN SMALL LETTER B WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6C"},7533:{"value":"1D6D","name":"LATIN SMALL LETTER D WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6D"},7534:{"value":"1D6E","name":"LATIN SMALL LETTER F WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6E"},7535:{"value":"1D6F","name":"LATIN SMALL LETTER M WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D6F"},7536:{"value":"1D70","name":"LATIN SMALL LETTER N WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D70"},7537:{"value":"1D71","name":"LATIN SMALL LETTER P WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D71"},7538:{"value":"1D72","name":"LATIN SMALL LETTER R WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D72"},7539:{"value":"1D73","name":"LATIN SMALL LETTER R WITH FISHHOOK AND MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D73"},7540:{"value":"1D74","name":"LATIN SMALL LETTER S WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D74"},7541:{"value":"1D75","name":"LATIN SMALL LETTER T WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D75"},7542:{"value":"1D76","name":"LATIN SMALL LETTER Z WITH MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D76"},7543:{"value":"1D77","name":"LATIN SMALL LETTER TURNED G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D77"},7545:{"value":"1D79","name":"LATIN SMALL LETTER INSULAR G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A77D","lowercase_mapping":"","titlecase_mapping":"A77D","symbol":"\u1D79"},7546:{"value":"1D7A","name":"LATIN SMALL LETTER TH WITH STRIKETHROUGH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7A"},7547:{"value":"1D7B","name":"LATIN SMALL CAPITAL LETTER I WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7B"},7548:{"value":"1D7C","name":"LATIN SMALL LETTER IOTA WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7C"},7549:{"value":"1D7D","name":"LATIN SMALL LETTER P WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C63","lowercase_mapping":"","titlecase_mapping":"2C63","symbol":"\u1D7D"},7550:{"value":"1D7E","name":"LATIN SMALL CAPITAL LETTER U WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7E"},7551:{"value":"1D7F","name":"LATIN SMALL LETTER UPSILON WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D7F"},7552:{"value":"1D80","name":"LATIN SMALL LETTER B WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D80"},7553:{"value":"1D81","name":"LATIN SMALL LETTER D WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D81"},7554:{"value":"1D82","name":"LATIN SMALL LETTER F WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D82"},7555:{"value":"1D83","name":"LATIN SMALL LETTER G WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D83"},7556:{"value":"1D84","name":"LATIN SMALL LETTER K WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D84"},7557:{"value":"1D85","name":"LATIN SMALL LETTER L WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D85"},7558:{"value":"1D86","name":"LATIN SMALL LETTER M WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D86"},7559:{"value":"1D87","name":"LATIN SMALL LETTER N WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D87"},7560:{"value":"1D88","name":"LATIN SMALL LETTER P WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D88"},7561:{"value":"1D89","name":"LATIN SMALL LETTER R WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D89"},7562:{"value":"1D8A","name":"LATIN SMALL LETTER S WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8A"},7563:{"value":"1D8B","name":"LATIN SMALL LETTER ESH WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8B"},7564:{"value":"1D8C","name":"LATIN SMALL LETTER V WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8C"},7565:{"value":"1D8D","name":"LATIN SMALL LETTER X WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8D"},7566:{"value":"1D8E","name":"LATIN SMALL LETTER Z WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8E"},7567:{"value":"1D8F","name":"LATIN SMALL LETTER A WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D8F"},7568:{"value":"1D90","name":"LATIN SMALL LETTER ALPHA WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D90"},7569:{"value":"1D91","name":"LATIN SMALL LETTER D WITH HOOK AND TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D91"},7570:{"value":"1D92","name":"LATIN SMALL LETTER E WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D92"},7571:{"value":"1D93","name":"LATIN SMALL LETTER OPEN E WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D93"},7572:{"value":"1D94","name":"LATIN SMALL LETTER REVERSED OPEN E WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D94"},7573:{"value":"1D95","name":"LATIN SMALL LETTER SCHWA WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D95"},7574:{"value":"1D96","name":"LATIN SMALL LETTER I WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D96"},7575:{"value":"1D97","name":"LATIN SMALL LETTER OPEN O WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D97"},7576:{"value":"1D98","name":"LATIN SMALL LETTER ESH WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D98"},7577:{"value":"1D99","name":"LATIN SMALL LETTER U WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D99"},7578:{"value":"1D9A","name":"LATIN SMALL LETTER EZH WITH RETROFLEX HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1D9A"},7681:{"value":"1E01","name":"LATIN SMALL LETTER A WITH RING BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0325","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E00","lowercase_mapping":"","titlecase_mapping":"1E00","symbol":"\u1E01"},7683:{"value":"1E03","name":"LATIN SMALL LETTER B WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0062 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E02","lowercase_mapping":"","titlecase_mapping":"1E02","symbol":"\u1E03"},7685:{"value":"1E05","name":"LATIN SMALL LETTER B WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0062 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E04","lowercase_mapping":"","titlecase_mapping":"1E04","symbol":"\u1E05"},7687:{"value":"1E07","name":"LATIN SMALL LETTER B WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0062 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E06","lowercase_mapping":"","titlecase_mapping":"1E06","symbol":"\u1E07"},7689:{"value":"1E09","name":"LATIN SMALL LETTER C WITH CEDILLA AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E7 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E08","lowercase_mapping":"","titlecase_mapping":"1E08","symbol":"\u1E09"},7691:{"value":"1E0B","name":"LATIN SMALL LETTER D WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E0A","lowercase_mapping":"","titlecase_mapping":"1E0A","symbol":"\u1E0B"},7693:{"value":"1E0D","name":"LATIN SMALL LETTER D WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E0C","lowercase_mapping":"","titlecase_mapping":"1E0C","symbol":"\u1E0D"},7695:{"value":"1E0F","name":"LATIN SMALL LETTER D WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E0E","lowercase_mapping":"","titlecase_mapping":"1E0E","symbol":"\u1E0F"},7697:{"value":"1E11","name":"LATIN SMALL LETTER D WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E10","lowercase_mapping":"","titlecase_mapping":"1E10","symbol":"\u1E11"},7699:{"value":"1E13","name":"LATIN SMALL LETTER D WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0064 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E12","lowercase_mapping":"","titlecase_mapping":"1E12","symbol":"\u1E13"},7701:{"value":"1E15","name":"LATIN SMALL LETTER E WITH MACRON AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0113 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E14","lowercase_mapping":"","titlecase_mapping":"1E14","symbol":"\u1E15"},7703:{"value":"1E17","name":"LATIN SMALL LETTER E WITH MACRON AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0113 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E16","lowercase_mapping":"","titlecase_mapping":"1E16","symbol":"\u1E17"},7705:{"value":"1E19","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E18","lowercase_mapping":"","titlecase_mapping":"1E18","symbol":"\u1E19"},7707:{"value":"1E1B","name":"LATIN SMALL LETTER E WITH TILDE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0330","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E1A","lowercase_mapping":"","titlecase_mapping":"1E1A","symbol":"\u1E1B"},7709:{"value":"1E1D","name":"LATIN SMALL LETTER E WITH CEDILLA AND BREVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0229 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E1C","lowercase_mapping":"","titlecase_mapping":"1E1C","symbol":"\u1E1D"},7711:{"value":"1E1F","name":"LATIN SMALL LETTER F WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0066 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E1E","lowercase_mapping":"","titlecase_mapping":"1E1E","symbol":"\u1E1F"},7713:{"value":"1E21","name":"LATIN SMALL LETTER G WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0067 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E20","lowercase_mapping":"","titlecase_mapping":"1E20","symbol":"\u1E21"},7715:{"value":"1E23","name":"LATIN SMALL LETTER H WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E22","lowercase_mapping":"","titlecase_mapping":"1E22","symbol":"\u1E23"},7717:{"value":"1E25","name":"LATIN SMALL LETTER H WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E24","lowercase_mapping":"","titlecase_mapping":"1E24","symbol":"\u1E25"},7719:{"value":"1E27","name":"LATIN SMALL LETTER H WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E26","lowercase_mapping":"","titlecase_mapping":"1E26","symbol":"\u1E27"},7721:{"value":"1E29","name":"LATIN SMALL LETTER H WITH CEDILLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0327","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E28","lowercase_mapping":"","titlecase_mapping":"1E28","symbol":"\u1E29"},7723:{"value":"1E2B","name":"LATIN SMALL LETTER H WITH BREVE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 032E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E2A","lowercase_mapping":"","titlecase_mapping":"1E2A","symbol":"\u1E2B"},7725:{"value":"1E2D","name":"LATIN SMALL LETTER I WITH TILDE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0330","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E2C","lowercase_mapping":"","titlecase_mapping":"1E2C","symbol":"\u1E2D"},7727:{"value":"1E2F","name":"LATIN SMALL LETTER I WITH DIAERESIS AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EF 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E2E","lowercase_mapping":"","titlecase_mapping":"1E2E","symbol":"\u1E2F"},7729:{"value":"1E31","name":"LATIN SMALL LETTER K WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E30","lowercase_mapping":"","titlecase_mapping":"1E30","symbol":"\u1E31"},7731:{"value":"1E33","name":"LATIN SMALL LETTER K WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E32","lowercase_mapping":"","titlecase_mapping":"1E32","symbol":"\u1E33"},7733:{"value":"1E35","name":"LATIN SMALL LETTER K WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006B 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E34","lowercase_mapping":"","titlecase_mapping":"1E34","symbol":"\u1E35"},7735:{"value":"1E37","name":"LATIN SMALL LETTER L WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E36","lowercase_mapping":"","titlecase_mapping":"1E36","symbol":"\u1E37"},7737:{"value":"1E39","name":"LATIN SMALL LETTER L WITH DOT BELOW AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1E37 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E38","lowercase_mapping":"","titlecase_mapping":"1E38","symbol":"\u1E39"},7739:{"value":"1E3B","name":"LATIN SMALL LETTER L WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E3A","lowercase_mapping":"","titlecase_mapping":"1E3A","symbol":"\u1E3B"},7741:{"value":"1E3D","name":"LATIN SMALL LETTER L WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006C 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E3C","lowercase_mapping":"","titlecase_mapping":"1E3C","symbol":"\u1E3D"},7743:{"value":"1E3F","name":"LATIN SMALL LETTER M WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006D 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E3E","lowercase_mapping":"","titlecase_mapping":"1E3E","symbol":"\u1E3F"},7745:{"value":"1E41","name":"LATIN SMALL LETTER M WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006D 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E40","lowercase_mapping":"","titlecase_mapping":"1E40","symbol":"\u1E41"},7747:{"value":"1E43","name":"LATIN SMALL LETTER M WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006D 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E42","lowercase_mapping":"","titlecase_mapping":"1E42","symbol":"\u1E43"},7749:{"value":"1E45","name":"LATIN SMALL LETTER N WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E44","lowercase_mapping":"","titlecase_mapping":"1E44","symbol":"\u1E45"},7751:{"value":"1E47","name":"LATIN SMALL LETTER N WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E46","lowercase_mapping":"","titlecase_mapping":"1E46","symbol":"\u1E47"},7753:{"value":"1E49","name":"LATIN SMALL LETTER N WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E48","lowercase_mapping":"","titlecase_mapping":"1E48","symbol":"\u1E49"},7755:{"value":"1E4B","name":"LATIN SMALL LETTER N WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006E 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E4A","lowercase_mapping":"","titlecase_mapping":"1E4A","symbol":"\u1E4B"},7757:{"value":"1E4D","name":"LATIN SMALL LETTER O WITH TILDE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F5 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E4C","lowercase_mapping":"","titlecase_mapping":"1E4C","symbol":"\u1E4D"},7759:{"value":"1E4F","name":"LATIN SMALL LETTER O WITH TILDE AND DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F5 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E4E","lowercase_mapping":"","titlecase_mapping":"1E4E","symbol":"\u1E4F"},7761:{"value":"1E51","name":"LATIN SMALL LETTER O WITH MACRON AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"014D 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E50","lowercase_mapping":"","titlecase_mapping":"1E50","symbol":"\u1E51"},7763:{"value":"1E53","name":"LATIN SMALL LETTER O WITH MACRON AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"014D 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E52","lowercase_mapping":"","titlecase_mapping":"1E52","symbol":"\u1E53"},7765:{"value":"1E55","name":"LATIN SMALL LETTER P WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0070 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E54","lowercase_mapping":"","titlecase_mapping":"1E54","symbol":"\u1E55"},7767:{"value":"1E57","name":"LATIN SMALL LETTER P WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0070 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E56","lowercase_mapping":"","titlecase_mapping":"1E56","symbol":"\u1E57"},7769:{"value":"1E59","name":"LATIN SMALL LETTER R WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E58","lowercase_mapping":"","titlecase_mapping":"1E58","symbol":"\u1E59"},7771:{"value":"1E5B","name":"LATIN SMALL LETTER R WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E5A","lowercase_mapping":"","titlecase_mapping":"1E5A","symbol":"\u1E5B"},7773:{"value":"1E5D","name":"LATIN SMALL LETTER R WITH DOT BELOW AND MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1E5B 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E5C","lowercase_mapping":"","titlecase_mapping":"1E5C","symbol":"\u1E5D"},7775:{"value":"1E5F","name":"LATIN SMALL LETTER R WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0072 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E5E","lowercase_mapping":"","titlecase_mapping":"1E5E","symbol":"\u1E5F"},7777:{"value":"1E61","name":"LATIN SMALL LETTER S WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E60","lowercase_mapping":"","titlecase_mapping":"1E60","symbol":"\u1E61"},7779:{"value":"1E63","name":"LATIN SMALL LETTER S WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0073 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E62","lowercase_mapping":"","titlecase_mapping":"1E62","symbol":"\u1E63"},7781:{"value":"1E65","name":"LATIN SMALL LETTER S WITH ACUTE AND DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"015B 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E64","lowercase_mapping":"","titlecase_mapping":"1E64","symbol":"\u1E65"},7783:{"value":"1E67","name":"LATIN SMALL LETTER S WITH CARON AND DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0161 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E66","lowercase_mapping":"","titlecase_mapping":"1E66","symbol":"\u1E67"},7785:{"value":"1E69","name":"LATIN SMALL LETTER S WITH DOT BELOW AND DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1E63 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E68","lowercase_mapping":"","titlecase_mapping":"1E68","symbol":"\u1E69"},7787:{"value":"1E6B","name":"LATIN SMALL LETTER T WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E6A","lowercase_mapping":"","titlecase_mapping":"1E6A","symbol":"\u1E6B"},7789:{"value":"1E6D","name":"LATIN SMALL LETTER T WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E6C","lowercase_mapping":"","titlecase_mapping":"1E6C","symbol":"\u1E6D"},7791:{"value":"1E6F","name":"LATIN SMALL LETTER T WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E6E","lowercase_mapping":"","titlecase_mapping":"1E6E","symbol":"\u1E6F"},7793:{"value":"1E71","name":"LATIN SMALL LETTER T WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E70","lowercase_mapping":"","titlecase_mapping":"1E70","symbol":"\u1E71"},7795:{"value":"1E73","name":"LATIN SMALL LETTER U WITH DIAERESIS BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0324","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E72","lowercase_mapping":"","titlecase_mapping":"1E72","symbol":"\u1E73"},7797:{"value":"1E75","name":"LATIN SMALL LETTER U WITH TILDE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0330","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E74","lowercase_mapping":"","titlecase_mapping":"1E74","symbol":"\u1E75"},7799:{"value":"1E77","name":"LATIN SMALL LETTER U WITH CIRCUMFLEX BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 032D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E76","lowercase_mapping":"","titlecase_mapping":"1E76","symbol":"\u1E77"},7801:{"value":"1E79","name":"LATIN SMALL LETTER U WITH TILDE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0169 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E78","lowercase_mapping":"","titlecase_mapping":"1E78","symbol":"\u1E79"},7803:{"value":"1E7B","name":"LATIN SMALL LETTER U WITH MACRON AND DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"016B 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E7A","lowercase_mapping":"","titlecase_mapping":"1E7A","symbol":"\u1E7B"},7805:{"value":"1E7D","name":"LATIN SMALL LETTER V WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0076 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E7C","lowercase_mapping":"","titlecase_mapping":"1E7C","symbol":"\u1E7D"},7807:{"value":"1E7F","name":"LATIN SMALL LETTER V WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0076 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E7E","lowercase_mapping":"","titlecase_mapping":"1E7E","symbol":"\u1E7F"},7809:{"value":"1E81","name":"LATIN SMALL LETTER W WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E80","lowercase_mapping":"","titlecase_mapping":"1E80","symbol":"\u1E81"},7811:{"value":"1E83","name":"LATIN SMALL LETTER W WITH ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E82","lowercase_mapping":"","titlecase_mapping":"1E82","symbol":"\u1E83"},7813:{"value":"1E85","name":"LATIN SMALL LETTER W WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E84","lowercase_mapping":"","titlecase_mapping":"1E84","symbol":"\u1E85"},7815:{"value":"1E87","name":"LATIN SMALL LETTER W WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E86","lowercase_mapping":"","titlecase_mapping":"1E86","symbol":"\u1E87"},7817:{"value":"1E89","name":"LATIN SMALL LETTER W WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E88","lowercase_mapping":"","titlecase_mapping":"1E88","symbol":"\u1E89"},7819:{"value":"1E8B","name":"LATIN SMALL LETTER X WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0078 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E8A","lowercase_mapping":"","titlecase_mapping":"1E8A","symbol":"\u1E8B"},7821:{"value":"1E8D","name":"LATIN SMALL LETTER X WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0078 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E8C","lowercase_mapping":"","titlecase_mapping":"1E8C","symbol":"\u1E8D"},7823:{"value":"1E8F","name":"LATIN SMALL LETTER Y WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E8E","lowercase_mapping":"","titlecase_mapping":"1E8E","symbol":"\u1E8F"},7825:{"value":"1E91","name":"LATIN SMALL LETTER Z WITH CIRCUMFLEX","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90","lowercase_mapping":"","titlecase_mapping":"1E90","symbol":"\u1E91"},7827:{"value":"1E93","name":"LATIN SMALL LETTER Z WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E92","lowercase_mapping":"","titlecase_mapping":"1E92","symbol":"\u1E93"},7829:{"value":"1E95","name":"LATIN SMALL LETTER Z WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"007A 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E94","lowercase_mapping":"","titlecase_mapping":"1E94","symbol":"\u1E95"},7830:{"value":"1E96","name":"LATIN SMALL LETTER H WITH LINE BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0068 0331","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E96"},7831:{"value":"1E97","name":"LATIN SMALL LETTER T WITH DIAERESIS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0074 0308","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E97"},7832:{"value":"1E98","name":"LATIN SMALL LETTER W WITH RING ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0077 030A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E98"},7833:{"value":"1E99","name":"LATIN SMALL LETTER Y WITH RING ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 030A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E99"},7834:{"value":"1E9A","name":"LATIN SMALL LETTER A WITH RIGHT HALF RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061 02BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E9A"},7835:{"value":"1E9B","name":"LATIN SMALL LETTER LONG S WITH DOT ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"017F 0307","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E60","lowercase_mapping":"","titlecase_mapping":"1E60","symbol":"\u1E9B"},7836:{"value":"1E9C","name":"LATIN SMALL LETTER LONG S WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E9C"},7837:{"value":"1E9D","name":"LATIN SMALL LETTER LONG S WITH HIGH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E9D"},7839:{"value":"1E9F","name":"LATIN SMALL LETTER DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1E9F"},7841:{"value":"1EA1","name":"LATIN SMALL LETTER A WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA0","lowercase_mapping":"","titlecase_mapping":"1EA0","symbol":"\u1EA1"},7843:{"value":"1EA3","name":"LATIN SMALL LETTER A WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0061 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA2","lowercase_mapping":"","titlecase_mapping":"1EA2","symbol":"\u1EA3"},7845:{"value":"1EA5","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E2 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA4","lowercase_mapping":"","titlecase_mapping":"1EA4","symbol":"\u1EA5"},7847:{"value":"1EA7","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E2 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA6","lowercase_mapping":"","titlecase_mapping":"1EA6","symbol":"\u1EA7"},7849:{"value":"1EA9","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E2 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EA8","lowercase_mapping":"","titlecase_mapping":"1EA8","symbol":"\u1EA9"},7851:{"value":"1EAB","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00E2 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EAA","lowercase_mapping":"","titlecase_mapping":"1EAA","symbol":"\u1EAB"},7853:{"value":"1EAD","name":"LATIN SMALL LETTER A WITH CIRCUMFLEX AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1EA1 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EAC","lowercase_mapping":"","titlecase_mapping":"1EAC","symbol":"\u1EAD"},7855:{"value":"1EAF","name":"LATIN SMALL LETTER A WITH BREVE AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0103 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EAE","lowercase_mapping":"","titlecase_mapping":"1EAE","symbol":"\u1EAF"},7857:{"value":"1EB1","name":"LATIN SMALL LETTER A WITH BREVE AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0103 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB0","lowercase_mapping":"","titlecase_mapping":"1EB0","symbol":"\u1EB1"},7859:{"value":"1EB3","name":"LATIN SMALL LETTER A WITH BREVE AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0103 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB2","lowercase_mapping":"","titlecase_mapping":"1EB2","symbol":"\u1EB3"},7861:{"value":"1EB5","name":"LATIN SMALL LETTER A WITH BREVE AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0103 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB4","lowercase_mapping":"","titlecase_mapping":"1EB4","symbol":"\u1EB5"},7863:{"value":"1EB7","name":"LATIN SMALL LETTER A WITH BREVE AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1EA1 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB6","lowercase_mapping":"","titlecase_mapping":"1EB6","symbol":"\u1EB7"},7865:{"value":"1EB9","name":"LATIN SMALL LETTER E WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EB8","lowercase_mapping":"","titlecase_mapping":"1EB8","symbol":"\u1EB9"},7867:{"value":"1EBB","name":"LATIN SMALL LETTER E WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EBA","lowercase_mapping":"","titlecase_mapping":"1EBA","symbol":"\u1EBB"},7869:{"value":"1EBD","name":"LATIN SMALL LETTER E WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0065 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EBC","lowercase_mapping":"","titlecase_mapping":"1EBC","symbol":"\u1EBD"},7871:{"value":"1EBF","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EA 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EBE","lowercase_mapping":"","titlecase_mapping":"1EBE","symbol":"\u1EBF"},7873:{"value":"1EC1","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EA 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC0","lowercase_mapping":"","titlecase_mapping":"1EC0","symbol":"\u1EC1"},7875:{"value":"1EC3","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EA 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC2","lowercase_mapping":"","titlecase_mapping":"1EC2","symbol":"\u1EC3"},7877:{"value":"1EC5","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00EA 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC4","lowercase_mapping":"","titlecase_mapping":"1EC4","symbol":"\u1EC5"},7879:{"value":"1EC7","name":"LATIN SMALL LETTER E WITH CIRCUMFLEX AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1EB9 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC6","lowercase_mapping":"","titlecase_mapping":"1EC6","symbol":"\u1EC7"},7881:{"value":"1EC9","name":"LATIN SMALL LETTER I WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EC8","lowercase_mapping":"","titlecase_mapping":"1EC8","symbol":"\u1EC9"},7883:{"value":"1ECB","name":"LATIN SMALL LETTER I WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0069 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ECA","lowercase_mapping":"","titlecase_mapping":"1ECA","symbol":"\u1ECB"},7885:{"value":"1ECD","name":"LATIN SMALL LETTER O WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ECC","lowercase_mapping":"","titlecase_mapping":"1ECC","symbol":"\u1ECD"},7887:{"value":"1ECF","name":"LATIN SMALL LETTER O WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"006F 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ECE","lowercase_mapping":"","titlecase_mapping":"1ECE","symbol":"\u1ECF"},7889:{"value":"1ED1","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F4 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED0","lowercase_mapping":"","titlecase_mapping":"1ED0","symbol":"\u1ED1"},7891:{"value":"1ED3","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F4 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED2","lowercase_mapping":"","titlecase_mapping":"1ED2","symbol":"\u1ED3"},7893:{"value":"1ED5","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F4 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED4","lowercase_mapping":"","titlecase_mapping":"1ED4","symbol":"\u1ED5"},7895:{"value":"1ED7","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"00F4 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED6","lowercase_mapping":"","titlecase_mapping":"1ED6","symbol":"\u1ED7"},7897:{"value":"1ED9","name":"LATIN SMALL LETTER O WITH CIRCUMFLEX AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1ECD 0302","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1ED8","lowercase_mapping":"","titlecase_mapping":"1ED8","symbol":"\u1ED9"},7899:{"value":"1EDB","name":"LATIN SMALL LETTER O WITH HORN AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EDA","lowercase_mapping":"","titlecase_mapping":"1EDA","symbol":"\u1EDB"},7901:{"value":"1EDD","name":"LATIN SMALL LETTER O WITH HORN AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EDC","lowercase_mapping":"","titlecase_mapping":"1EDC","symbol":"\u1EDD"},7903:{"value":"1EDF","name":"LATIN SMALL LETTER O WITH HORN AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EDE","lowercase_mapping":"","titlecase_mapping":"1EDE","symbol":"\u1EDF"},7905:{"value":"1EE1","name":"LATIN SMALL LETTER O WITH HORN AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE0","lowercase_mapping":"","titlecase_mapping":"1EE0","symbol":"\u1EE1"},7907:{"value":"1EE3","name":"LATIN SMALL LETTER O WITH HORN AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01A1 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE2","lowercase_mapping":"","titlecase_mapping":"1EE2","symbol":"\u1EE3"},7909:{"value":"1EE5","name":"LATIN SMALL LETTER U WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE4","lowercase_mapping":"","titlecase_mapping":"1EE4","symbol":"\u1EE5"},7911:{"value":"1EE7","name":"LATIN SMALL LETTER U WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0075 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE6","lowercase_mapping":"","titlecase_mapping":"1EE6","symbol":"\u1EE7"},7913:{"value":"1EE9","name":"LATIN SMALL LETTER U WITH HORN AND ACUTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EE8","lowercase_mapping":"","titlecase_mapping":"1EE8","symbol":"\u1EE9"},7915:{"value":"1EEB","name":"LATIN SMALL LETTER U WITH HORN AND GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EEA","lowercase_mapping":"","titlecase_mapping":"1EEA","symbol":"\u1EEB"},7917:{"value":"1EED","name":"LATIN SMALL LETTER U WITH HORN AND HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EEC","lowercase_mapping":"","titlecase_mapping":"1EEC","symbol":"\u1EED"},7919:{"value":"1EEF","name":"LATIN SMALL LETTER U WITH HORN AND TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EEE","lowercase_mapping":"","titlecase_mapping":"1EEE","symbol":"\u1EEF"},7921:{"value":"1EF1","name":"LATIN SMALL LETTER U WITH HORN AND DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"01B0 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF0","lowercase_mapping":"","titlecase_mapping":"1EF0","symbol":"\u1EF1"},7923:{"value":"1EF3","name":"LATIN SMALL LETTER Y WITH GRAVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF2","lowercase_mapping":"","titlecase_mapping":"1EF2","symbol":"\u1EF3"},7925:{"value":"1EF5","name":"LATIN SMALL LETTER Y WITH DOT BELOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0323","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF4","lowercase_mapping":"","titlecase_mapping":"1EF4","symbol":"\u1EF5"},7927:{"value":"1EF7","name":"LATIN SMALL LETTER Y WITH HOOK ABOVE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0309","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF6","lowercase_mapping":"","titlecase_mapping":"1EF6","symbol":"\u1EF7"},7929:{"value":"1EF9","name":"LATIN SMALL LETTER Y WITH TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0079 0303","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EF8","lowercase_mapping":"","titlecase_mapping":"1EF8","symbol":"\u1EF9"},7931:{"value":"1EFB","name":"LATIN SMALL LETTER MIDDLE-WELSH LL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EFA","lowercase_mapping":"","titlecase_mapping":"1EFA","symbol":"\u1EFB"},7933:{"value":"1EFD","name":"LATIN SMALL LETTER MIDDLE-WELSH V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EFC","lowercase_mapping":"","titlecase_mapping":"1EFC","symbol":"\u1EFD"},7935:{"value":"1EFF","name":"LATIN SMALL LETTER Y WITH LOOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1EFE","lowercase_mapping":"","titlecase_mapping":"1EFE","symbol":"\u1EFF"},7936:{"value":"1F00","name":"GREEK SMALL LETTER ALPHA WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F08","lowercase_mapping":"","titlecase_mapping":"1F08","symbol":"\u1F00"},7937:{"value":"1F01","name":"GREEK SMALL LETTER ALPHA WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F09","lowercase_mapping":"","titlecase_mapping":"1F09","symbol":"\u1F01"},7938:{"value":"1F02","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F00 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0A","lowercase_mapping":"","titlecase_mapping":"1F0A","symbol":"\u1F02"},7939:{"value":"1F03","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F01 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0B","lowercase_mapping":"","titlecase_mapping":"1F0B","symbol":"\u1F03"},7940:{"value":"1F04","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F00 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0C","lowercase_mapping":"","titlecase_mapping":"1F0C","symbol":"\u1F04"},7941:{"value":"1F05","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F01 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0D","lowercase_mapping":"","titlecase_mapping":"1F0D","symbol":"\u1F05"},7942:{"value":"1F06","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F00 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0E","lowercase_mapping":"","titlecase_mapping":"1F0E","symbol":"\u1F06"},7943:{"value":"1F07","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F01 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F0F","lowercase_mapping":"","titlecase_mapping":"1F0F","symbol":"\u1F07"},7952:{"value":"1F10","name":"GREEK SMALL LETTER EPSILON WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B5 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F18","lowercase_mapping":"","titlecase_mapping":"1F18","symbol":"\u1F10"},7953:{"value":"1F11","name":"GREEK SMALL LETTER EPSILON WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B5 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F19","lowercase_mapping":"","titlecase_mapping":"1F19","symbol":"\u1F11"},7954:{"value":"1F12","name":"GREEK SMALL LETTER EPSILON WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F10 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F1A","lowercase_mapping":"","titlecase_mapping":"1F1A","symbol":"\u1F12"},7955:{"value":"1F13","name":"GREEK SMALL LETTER EPSILON WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F11 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F1B","lowercase_mapping":"","titlecase_mapping":"1F1B","symbol":"\u1F13"},7956:{"value":"1F14","name":"GREEK SMALL LETTER EPSILON WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F10 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F1C","lowercase_mapping":"","titlecase_mapping":"1F1C","symbol":"\u1F14"},7957:{"value":"1F15","name":"GREEK SMALL LETTER EPSILON WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F11 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F1D","lowercase_mapping":"","titlecase_mapping":"1F1D","symbol":"\u1F15"},7968:{"value":"1F20","name":"GREEK SMALL LETTER ETA WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F28","lowercase_mapping":"","titlecase_mapping":"1F28","symbol":"\u1F20"},7969:{"value":"1F21","name":"GREEK SMALL LETTER ETA WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F29","lowercase_mapping":"","titlecase_mapping":"1F29","symbol":"\u1F21"},7970:{"value":"1F22","name":"GREEK SMALL LETTER ETA WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F20 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2A","lowercase_mapping":"","titlecase_mapping":"1F2A","symbol":"\u1F22"},7971:{"value":"1F23","name":"GREEK SMALL LETTER ETA WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F21 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2B","lowercase_mapping":"","titlecase_mapping":"1F2B","symbol":"\u1F23"},7972:{"value":"1F24","name":"GREEK SMALL LETTER ETA WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F20 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2C","lowercase_mapping":"","titlecase_mapping":"1F2C","symbol":"\u1F24"},7973:{"value":"1F25","name":"GREEK SMALL LETTER ETA WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F21 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2D","lowercase_mapping":"","titlecase_mapping":"1F2D","symbol":"\u1F25"},7974:{"value":"1F26","name":"GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F20 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2E","lowercase_mapping":"","titlecase_mapping":"1F2E","symbol":"\u1F26"},7975:{"value":"1F27","name":"GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F21 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F2F","lowercase_mapping":"","titlecase_mapping":"1F2F","symbol":"\u1F27"},7984:{"value":"1F30","name":"GREEK SMALL LETTER IOTA WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F38","lowercase_mapping":"","titlecase_mapping":"1F38","symbol":"\u1F30"},7985:{"value":"1F31","name":"GREEK SMALL LETTER IOTA WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F39","lowercase_mapping":"","titlecase_mapping":"1F39","symbol":"\u1F31"},7986:{"value":"1F32","name":"GREEK SMALL LETTER IOTA WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F30 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3A","lowercase_mapping":"","titlecase_mapping":"1F3A","symbol":"\u1F32"},7987:{"value":"1F33","name":"GREEK SMALL LETTER IOTA WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F31 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3B","lowercase_mapping":"","titlecase_mapping":"1F3B","symbol":"\u1F33"},7988:{"value":"1F34","name":"GREEK SMALL LETTER IOTA WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F30 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3C","lowercase_mapping":"","titlecase_mapping":"1F3C","symbol":"\u1F34"},7989:{"value":"1F35","name":"GREEK SMALL LETTER IOTA WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F31 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3D","lowercase_mapping":"","titlecase_mapping":"1F3D","symbol":"\u1F35"},7990:{"value":"1F36","name":"GREEK SMALL LETTER IOTA WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F30 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3E","lowercase_mapping":"","titlecase_mapping":"1F3E","symbol":"\u1F36"},7991:{"value":"1F37","name":"GREEK SMALL LETTER IOTA WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F31 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F3F","lowercase_mapping":"","titlecase_mapping":"1F3F","symbol":"\u1F37"},8000:{"value":"1F40","name":"GREEK SMALL LETTER OMICRON WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03BF 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F48","lowercase_mapping":"","titlecase_mapping":"1F48","symbol":"\u1F40"},8001:{"value":"1F41","name":"GREEK SMALL LETTER OMICRON WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03BF 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F49","lowercase_mapping":"","titlecase_mapping":"1F49","symbol":"\u1F41"},8002:{"value":"1F42","name":"GREEK SMALL LETTER OMICRON WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F40 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F4A","lowercase_mapping":"","titlecase_mapping":"1F4A","symbol":"\u1F42"},8003:{"value":"1F43","name":"GREEK SMALL LETTER OMICRON WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F41 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F4B","lowercase_mapping":"","titlecase_mapping":"1F4B","symbol":"\u1F43"},8004:{"value":"1F44","name":"GREEK SMALL LETTER OMICRON WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F40 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F4C","lowercase_mapping":"","titlecase_mapping":"1F4C","symbol":"\u1F44"},8005:{"value":"1F45","name":"GREEK SMALL LETTER OMICRON WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F41 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F4D","lowercase_mapping":"","titlecase_mapping":"1F4D","symbol":"\u1F45"},8016:{"value":"1F50","name":"GREEK SMALL LETTER UPSILON WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1F50"},8017:{"value":"1F51","name":"GREEK SMALL LETTER UPSILON WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F59","lowercase_mapping":"","titlecase_mapping":"1F59","symbol":"\u1F51"},8018:{"value":"1F52","name":"GREEK SMALL LETTER UPSILON WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F50 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1F52"},8019:{"value":"1F53","name":"GREEK SMALL LETTER UPSILON WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F51 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F5B","lowercase_mapping":"","titlecase_mapping":"1F5B","symbol":"\u1F53"},8020:{"value":"1F54","name":"GREEK SMALL LETTER UPSILON WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F50 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1F54"},8021:{"value":"1F55","name":"GREEK SMALL LETTER UPSILON WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F51 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F5D","lowercase_mapping":"","titlecase_mapping":"1F5D","symbol":"\u1F55"},8022:{"value":"1F56","name":"GREEK SMALL LETTER UPSILON WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F50 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1F56"},8023:{"value":"1F57","name":"GREEK SMALL LETTER UPSILON WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F51 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F5F","lowercase_mapping":"","titlecase_mapping":"1F5F","symbol":"\u1F57"},8032:{"value":"1F60","name":"GREEK SMALL LETTER OMEGA WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F68","lowercase_mapping":"","titlecase_mapping":"1F68","symbol":"\u1F60"},8033:{"value":"1F61","name":"GREEK SMALL LETTER OMEGA WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F69","lowercase_mapping":"","titlecase_mapping":"1F69","symbol":"\u1F61"},8034:{"value":"1F62","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F60 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6A","lowercase_mapping":"","titlecase_mapping":"1F6A","symbol":"\u1F62"},8035:{"value":"1F63","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F61 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6B","lowercase_mapping":"","titlecase_mapping":"1F6B","symbol":"\u1F63"},8036:{"value":"1F64","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F60 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6C","lowercase_mapping":"","titlecase_mapping":"1F6C","symbol":"\u1F64"},8037:{"value":"1F65","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F61 0301","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6D","lowercase_mapping":"","titlecase_mapping":"1F6D","symbol":"\u1F65"},8038:{"value":"1F66","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F60 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6E","lowercase_mapping":"","titlecase_mapping":"1F6E","symbol":"\u1F66"},8039:{"value":"1F67","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F61 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F6F","lowercase_mapping":"","titlecase_mapping":"1F6F","symbol":"\u1F67"},8048:{"value":"1F70","name":"GREEK SMALL LETTER ALPHA WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FBA","lowercase_mapping":"","titlecase_mapping":"1FBA","symbol":"\u1F70"},8049:{"value":"1F71","name":"GREEK SMALL LETTER ALPHA WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FBB","lowercase_mapping":"","titlecase_mapping":"1FBB","symbol":"\u1F71"},8050:{"value":"1F72","name":"GREEK SMALL LETTER EPSILON WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B5 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FC8","lowercase_mapping":"","titlecase_mapping":"1FC8","symbol":"\u1F72"},8051:{"value":"1F73","name":"GREEK SMALL LETTER EPSILON WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FC9","lowercase_mapping":"","titlecase_mapping":"1FC9","symbol":"\u1F73"},8052:{"value":"1F74","name":"GREEK SMALL LETTER ETA WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FCA","lowercase_mapping":"","titlecase_mapping":"1FCA","symbol":"\u1F74"},8053:{"value":"1F75","name":"GREEK SMALL LETTER ETA WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FCB","lowercase_mapping":"","titlecase_mapping":"1FCB","symbol":"\u1F75"},8054:{"value":"1F76","name":"GREEK SMALL LETTER IOTA WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FDA","lowercase_mapping":"","titlecase_mapping":"1FDA","symbol":"\u1F76"},8055:{"value":"1F77","name":"GREEK SMALL LETTER IOTA WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FDB","lowercase_mapping":"","titlecase_mapping":"1FDB","symbol":"\u1F77"},8056:{"value":"1F78","name":"GREEK SMALL LETTER OMICRON WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03BF 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FF8","lowercase_mapping":"","titlecase_mapping":"1FF8","symbol":"\u1F78"},8057:{"value":"1F79","name":"GREEK SMALL LETTER OMICRON WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FF9","lowercase_mapping":"","titlecase_mapping":"1FF9","symbol":"\u1F79"},8058:{"value":"1F7A","name":"GREEK SMALL LETTER UPSILON WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FEA","lowercase_mapping":"","titlecase_mapping":"1FEA","symbol":"\u1F7A"},8059:{"value":"1F7B","name":"GREEK SMALL LETTER UPSILON WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FEB","lowercase_mapping":"","titlecase_mapping":"1FEB","symbol":"\u1F7B"},8060:{"value":"1F7C","name":"GREEK SMALL LETTER OMEGA WITH VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FFA","lowercase_mapping":"","titlecase_mapping":"1FFA","symbol":"\u1F7C"},8061:{"value":"1F7D","name":"GREEK SMALL LETTER OMEGA WITH OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FFB","lowercase_mapping":"","titlecase_mapping":"1FFB","symbol":"\u1F7D"},8064:{"value":"1F80","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F00 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F88","lowercase_mapping":"","titlecase_mapping":"1F88","symbol":"\u1F80"},8065:{"value":"1F81","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F01 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F89","lowercase_mapping":"","titlecase_mapping":"1F89","symbol":"\u1F81"},8066:{"value":"1F82","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F02 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8A","lowercase_mapping":"","titlecase_mapping":"1F8A","symbol":"\u1F82"},8067:{"value":"1F83","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F03 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8B","lowercase_mapping":"","titlecase_mapping":"1F8B","symbol":"\u1F83"},8068:{"value":"1F84","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F04 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8C","lowercase_mapping":"","titlecase_mapping":"1F8C","symbol":"\u1F84"},8069:{"value":"1F85","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F05 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8D","lowercase_mapping":"","titlecase_mapping":"1F8D","symbol":"\u1F85"},8070:{"value":"1F86","name":"GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F06 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8E","lowercase_mapping":"","titlecase_mapping":"1F8E","symbol":"\u1F86"},8071:{"value":"1F87","name":"GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F07 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F8F","lowercase_mapping":"","titlecase_mapping":"1F8F","symbol":"\u1F87"},8080:{"value":"1F90","name":"GREEK SMALL LETTER ETA WITH PSILI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F20 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F98","lowercase_mapping":"","titlecase_mapping":"1F98","symbol":"\u1F90"},8081:{"value":"1F91","name":"GREEK SMALL LETTER ETA WITH DASIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F21 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F99","lowercase_mapping":"","titlecase_mapping":"1F99","symbol":"\u1F91"},8082:{"value":"1F92","name":"GREEK SMALL LETTER ETA WITH PSILI AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F22 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9A","lowercase_mapping":"","titlecase_mapping":"1F9A","symbol":"\u1F92"},8083:{"value":"1F93","name":"GREEK SMALL LETTER ETA WITH DASIA AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F23 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9B","lowercase_mapping":"","titlecase_mapping":"1F9B","symbol":"\u1F93"},8084:{"value":"1F94","name":"GREEK SMALL LETTER ETA WITH PSILI AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F24 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9C","lowercase_mapping":"","titlecase_mapping":"1F9C","symbol":"\u1F94"},8085:{"value":"1F95","name":"GREEK SMALL LETTER ETA WITH DASIA AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F25 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9D","lowercase_mapping":"","titlecase_mapping":"1F9D","symbol":"\u1F95"},8086:{"value":"1F96","name":"GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F26 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9E","lowercase_mapping":"","titlecase_mapping":"1F9E","symbol":"\u1F96"},8087:{"value":"1F97","name":"GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F27 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1F9F","lowercase_mapping":"","titlecase_mapping":"1F9F","symbol":"\u1F97"},8096:{"value":"1FA0","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F60 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FA8","lowercase_mapping":"","titlecase_mapping":"1FA8","symbol":"\u1FA0"},8097:{"value":"1FA1","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F61 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FA9","lowercase_mapping":"","titlecase_mapping":"1FA9","symbol":"\u1FA1"},8098:{"value":"1FA2","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F62 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAA","lowercase_mapping":"","titlecase_mapping":"1FAA","symbol":"\u1FA2"},8099:{"value":"1FA3","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F63 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAB","lowercase_mapping":"","titlecase_mapping":"1FAB","symbol":"\u1FA3"},8100:{"value":"1FA4","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F64 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAC","lowercase_mapping":"","titlecase_mapping":"1FAC","symbol":"\u1FA4"},8101:{"value":"1FA5","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F65 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAD","lowercase_mapping":"","titlecase_mapping":"1FAD","symbol":"\u1FA5"},8102:{"value":"1FA6","name":"GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F66 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAE","lowercase_mapping":"","titlecase_mapping":"1FAE","symbol":"\u1FA6"},8103:{"value":"1FA7","name":"GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F67 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FAF","lowercase_mapping":"","titlecase_mapping":"1FAF","symbol":"\u1FA7"},8112:{"value":"1FB0","name":"GREEK SMALL LETTER ALPHA WITH VRACHY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FB8","lowercase_mapping":"","titlecase_mapping":"1FB8","symbol":"\u1FB0"},8113:{"value":"1FB1","name":"GREEK SMALL LETTER ALPHA WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FB9","lowercase_mapping":"","titlecase_mapping":"1FB9","symbol":"\u1FB1"},8114:{"value":"1FB2","name":"GREEK SMALL LETTER ALPHA WITH VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F70 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FB2"},8115:{"value":"1FB3","name":"GREEK SMALL LETTER ALPHA WITH YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FBC","lowercase_mapping":"","titlecase_mapping":"1FBC","symbol":"\u1FB3"},8116:{"value":"1FB4","name":"GREEK SMALL LETTER ALPHA WITH OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AC 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FB4"},8118:{"value":"1FB6","name":"GREEK SMALL LETTER ALPHA WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B1 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FB6"},8119:{"value":"1FB7","name":"GREEK SMALL LETTER ALPHA WITH PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1FB6 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FB7"},8126:{"value":"1FBE","name":"GREEK PROSGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"0399","lowercase_mapping":"","titlecase_mapping":"0399","symbol":"\u1FBE"},8130:{"value":"1FC2","name":"GREEK SMALL LETTER ETA WITH VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F74 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FC2"},8131:{"value":"1FC3","name":"GREEK SMALL LETTER ETA WITH YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FCC","lowercase_mapping":"","titlecase_mapping":"1FCC","symbol":"\u1FC3"},8132:{"value":"1FC4","name":"GREEK SMALL LETTER ETA WITH OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03AE 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FC4"},8134:{"value":"1FC6","name":"GREEK SMALL LETTER ETA WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B7 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FC6"},8135:{"value":"1FC7","name":"GREEK SMALL LETTER ETA WITH PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1FC6 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FC7"},8144:{"value":"1FD0","name":"GREEK SMALL LETTER IOTA WITH VRACHY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FD8","lowercase_mapping":"","titlecase_mapping":"1FD8","symbol":"\u1FD0"},8145:{"value":"1FD1","name":"GREEK SMALL LETTER IOTA WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FD9","lowercase_mapping":"","titlecase_mapping":"1FD9","symbol":"\u1FD1"},8146:{"value":"1FD2","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CA 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FD2"},8147:{"value":"1FD3","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"0390","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FD3"},8150:{"value":"1FD6","name":"GREEK SMALL LETTER IOTA WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B9 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FD6"},8151:{"value":"1FD7","name":"GREEK SMALL LETTER IOTA WITH DIALYTIKA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CA 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FD7"},8160:{"value":"1FE0","name":"GREEK SMALL LETTER UPSILON WITH VRACHY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0306","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FE8","lowercase_mapping":"","titlecase_mapping":"1FE8","symbol":"\u1FE0"},8161:{"value":"1FE1","name":"GREEK SMALL LETTER UPSILON WITH MACRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0304","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FE9","lowercase_mapping":"","titlecase_mapping":"1FE9","symbol":"\u1FE1"},8162:{"value":"1FE2","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND VARIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CB 0300","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE2"},8163:{"value":"1FE3","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03B0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE3"},8164:{"value":"1FE4","name":"GREEK SMALL LETTER RHO WITH PSILI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C1 0313","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE4"},8165:{"value":"1FE5","name":"GREEK SMALL LETTER RHO WITH DASIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C1 0314","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FEC","lowercase_mapping":"","titlecase_mapping":"1FEC","symbol":"\u1FE5"},8166:{"value":"1FE6","name":"GREEK SMALL LETTER UPSILON WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C5 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE6"},8167:{"value":"1FE7","name":"GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CB 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FE7"},8178:{"value":"1FF2","name":"GREEK SMALL LETTER OMEGA WITH VARIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1F7C 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FF2"},8179:{"value":"1FF3","name":"GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1FFC","lowercase_mapping":"","titlecase_mapping":"1FFC","symbol":"\u1FF3"},8180:{"value":"1FF4","name":"GREEK SMALL LETTER OMEGA WITH OXIA AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03CE 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FF4"},8182:{"value":"1FF6","name":"GREEK SMALL LETTER OMEGA WITH PERISPOMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"03C9 0342","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FF6"},8183:{"value":"1FF7","name":"GREEK SMALL LETTER OMEGA WITH PERISPOMENI AND YPOGEGRAMMENI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"1FF6 0345","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1FF7"},8458:{"value":"210A","name":"SCRIPT SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u210A"},8462:{"value":"210E","name":"PLANCK CONSTANT","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u210E"},8463:{"value":"210F","name":"PLANCK CONSTANT OVER TWO PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0127","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"PLANCK CONSTANT OVER 2 PI","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u210F"},8467:{"value":"2113","name":"SCRIPT SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2113"},8495:{"value":"212F","name":"SCRIPT SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u212F"},8500:{"value":"2134","name":"SCRIPT SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2134"},8505:{"value":"2139","name":"INFORMATION SOURCE","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2139"},8508:{"value":"213C","name":"DOUBLE-STRUCK SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u213C"},8509:{"value":"213D","name":"DOUBLE-STRUCK SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u213D"},8518:{"value":"2146","name":"DOUBLE-STRUCK ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2146"},8519:{"value":"2147","name":"DOUBLE-STRUCK ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2147"},8520:{"value":"2148","name":"DOUBLE-STRUCK ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2148"},8521:{"value":"2149","name":"DOUBLE-STRUCK ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2149"},8526:{"value":"214E","name":"TURNED SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2132","lowercase_mapping":"","titlecase_mapping":"2132","symbol":"\u214E"},8580:{"value":"2184","name":"LATIN SMALL LETTER REVERSED C","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2183","lowercase_mapping":"","titlecase_mapping":"2183","symbol":"\u2184"},11312:{"value":"2C30","name":"GLAGOLITIC SMALL LETTER AZU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C00","lowercase_mapping":"","titlecase_mapping":"2C00","symbol":"\u2C30"},11313:{"value":"2C31","name":"GLAGOLITIC SMALL LETTER BUKY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C01","lowercase_mapping":"","titlecase_mapping":"2C01","symbol":"\u2C31"},11314:{"value":"2C32","name":"GLAGOLITIC SMALL LETTER VEDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C02","lowercase_mapping":"","titlecase_mapping":"2C02","symbol":"\u2C32"},11315:{"value":"2C33","name":"GLAGOLITIC SMALL LETTER GLAGOLI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C03","lowercase_mapping":"","titlecase_mapping":"2C03","symbol":"\u2C33"},11316:{"value":"2C34","name":"GLAGOLITIC SMALL LETTER DOBRO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C04","lowercase_mapping":"","titlecase_mapping":"2C04","symbol":"\u2C34"},11317:{"value":"2C35","name":"GLAGOLITIC SMALL LETTER YESTU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C05","lowercase_mapping":"","titlecase_mapping":"2C05","symbol":"\u2C35"},11318:{"value":"2C36","name":"GLAGOLITIC SMALL LETTER ZHIVETE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C06","lowercase_mapping":"","titlecase_mapping":"2C06","symbol":"\u2C36"},11319:{"value":"2C37","name":"GLAGOLITIC SMALL LETTER DZELO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C07","lowercase_mapping":"","titlecase_mapping":"2C07","symbol":"\u2C37"},11320:{"value":"2C38","name":"GLAGOLITIC SMALL LETTER ZEMLJA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C08","lowercase_mapping":"","titlecase_mapping":"2C08","symbol":"\u2C38"},11321:{"value":"2C39","name":"GLAGOLITIC SMALL LETTER IZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C09","lowercase_mapping":"","titlecase_mapping":"2C09","symbol":"\u2C39"},11322:{"value":"2C3A","name":"GLAGOLITIC SMALL LETTER INITIAL IZHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0A","lowercase_mapping":"","titlecase_mapping":"2C0A","symbol":"\u2C3A"},11323:{"value":"2C3B","name":"GLAGOLITIC SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0B","lowercase_mapping":"","titlecase_mapping":"2C0B","symbol":"\u2C3B"},11324:{"value":"2C3C","name":"GLAGOLITIC SMALL LETTER DJERVI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0C","lowercase_mapping":"","titlecase_mapping":"2C0C","symbol":"\u2C3C"},11325:{"value":"2C3D","name":"GLAGOLITIC SMALL LETTER KAKO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0D","lowercase_mapping":"","titlecase_mapping":"2C0D","symbol":"\u2C3D"},11326:{"value":"2C3E","name":"GLAGOLITIC SMALL LETTER LJUDIJE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0E","lowercase_mapping":"","titlecase_mapping":"2C0E","symbol":"\u2C3E"},11327:{"value":"2C3F","name":"GLAGOLITIC SMALL LETTER MYSLITE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C0F","lowercase_mapping":"","titlecase_mapping":"2C0F","symbol":"\u2C3F"},11328:{"value":"2C40","name":"GLAGOLITIC SMALL LETTER NASHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C10","lowercase_mapping":"","titlecase_mapping":"2C10","symbol":"\u2C40"},11329:{"value":"2C41","name":"GLAGOLITIC SMALL LETTER ONU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C11","lowercase_mapping":"","titlecase_mapping":"2C11","symbol":"\u2C41"},11330:{"value":"2C42","name":"GLAGOLITIC SMALL LETTER POKOJI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C12","lowercase_mapping":"","titlecase_mapping":"2C12","symbol":"\u2C42"},11331:{"value":"2C43","name":"GLAGOLITIC SMALL LETTER RITSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C13","lowercase_mapping":"","titlecase_mapping":"2C13","symbol":"\u2C43"},11332:{"value":"2C44","name":"GLAGOLITIC SMALL LETTER SLOVO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C14","lowercase_mapping":"","titlecase_mapping":"2C14","symbol":"\u2C44"},11333:{"value":"2C45","name":"GLAGOLITIC SMALL LETTER TVRIDO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C15","lowercase_mapping":"","titlecase_mapping":"2C15","symbol":"\u2C45"},11334:{"value":"2C46","name":"GLAGOLITIC SMALL LETTER UKU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C16","lowercase_mapping":"","titlecase_mapping":"2C16","symbol":"\u2C46"},11335:{"value":"2C47","name":"GLAGOLITIC SMALL LETTER FRITU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C17","lowercase_mapping":"","titlecase_mapping":"2C17","symbol":"\u2C47"},11336:{"value":"2C48","name":"GLAGOLITIC SMALL LETTER HERU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C18","lowercase_mapping":"","titlecase_mapping":"2C18","symbol":"\u2C48"},11337:{"value":"2C49","name":"GLAGOLITIC SMALL LETTER OTU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C19","lowercase_mapping":"","titlecase_mapping":"2C19","symbol":"\u2C49"},11338:{"value":"2C4A","name":"GLAGOLITIC SMALL LETTER PE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1A","lowercase_mapping":"","titlecase_mapping":"2C1A","symbol":"\u2C4A"},11339:{"value":"2C4B","name":"GLAGOLITIC SMALL LETTER SHTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1B","lowercase_mapping":"","titlecase_mapping":"2C1B","symbol":"\u2C4B"},11340:{"value":"2C4C","name":"GLAGOLITIC SMALL LETTER TSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1C","lowercase_mapping":"","titlecase_mapping":"2C1C","symbol":"\u2C4C"},11341:{"value":"2C4D","name":"GLAGOLITIC SMALL LETTER CHRIVI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1D","lowercase_mapping":"","titlecase_mapping":"2C1D","symbol":"\u2C4D"},11342:{"value":"2C4E","name":"GLAGOLITIC SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1E","lowercase_mapping":"","titlecase_mapping":"2C1E","symbol":"\u2C4E"},11343:{"value":"2C4F","name":"GLAGOLITIC SMALL LETTER YERU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C1F","lowercase_mapping":"","titlecase_mapping":"2C1F","symbol":"\u2C4F"},11344:{"value":"2C50","name":"GLAGOLITIC SMALL LETTER YERI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C20","lowercase_mapping":"","titlecase_mapping":"2C20","symbol":"\u2C50"},11345:{"value":"2C51","name":"GLAGOLITIC SMALL LETTER YATI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C21","lowercase_mapping":"","titlecase_mapping":"2C21","symbol":"\u2C51"},11346:{"value":"2C52","name":"GLAGOLITIC SMALL LETTER SPIDERY HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C22","lowercase_mapping":"","titlecase_mapping":"2C22","symbol":"\u2C52"},11347:{"value":"2C53","name":"GLAGOLITIC SMALL LETTER YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C23","lowercase_mapping":"","titlecase_mapping":"2C23","symbol":"\u2C53"},11348:{"value":"2C54","name":"GLAGOLITIC SMALL LETTER SMALL YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C24","lowercase_mapping":"","titlecase_mapping":"2C24","symbol":"\u2C54"},11349:{"value":"2C55","name":"GLAGOLITIC SMALL LETTER SMALL YUS WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C25","lowercase_mapping":"","titlecase_mapping":"2C25","symbol":"\u2C55"},11350:{"value":"2C56","name":"GLAGOLITIC SMALL LETTER YO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C26","lowercase_mapping":"","titlecase_mapping":"2C26","symbol":"\u2C56"},11351:{"value":"2C57","name":"GLAGOLITIC SMALL LETTER IOTATED SMALL YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C27","lowercase_mapping":"","titlecase_mapping":"2C27","symbol":"\u2C57"},11352:{"value":"2C58","name":"GLAGOLITIC SMALL LETTER BIG YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C28","lowercase_mapping":"","titlecase_mapping":"2C28","symbol":"\u2C58"},11353:{"value":"2C59","name":"GLAGOLITIC SMALL LETTER IOTATED BIG YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C29","lowercase_mapping":"","titlecase_mapping":"2C29","symbol":"\u2C59"},11354:{"value":"2C5A","name":"GLAGOLITIC SMALL LETTER FITA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2A","lowercase_mapping":"","titlecase_mapping":"2C2A","symbol":"\u2C5A"},11355:{"value":"2C5B","name":"GLAGOLITIC SMALL LETTER IZHITSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2B","lowercase_mapping":"","titlecase_mapping":"2C2B","symbol":"\u2C5B"},11356:{"value":"2C5C","name":"GLAGOLITIC SMALL LETTER SHTAPIC","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2C","lowercase_mapping":"","titlecase_mapping":"2C2C","symbol":"\u2C5C"},11357:{"value":"2C5D","name":"GLAGOLITIC SMALL LETTER TROKUTASTI A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2D","lowercase_mapping":"","titlecase_mapping":"2C2D","symbol":"\u2C5D"},11358:{"value":"2C5E","name":"GLAGOLITIC SMALL LETTER LATINATE MYSLITE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C2E","lowercase_mapping":"","titlecase_mapping":"2C2E","symbol":"\u2C5E"},11361:{"value":"2C61","name":"LATIN SMALL LETTER L WITH DOUBLE BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C60","lowercase_mapping":"","titlecase_mapping":"2C60","symbol":"\u2C61"},11365:{"value":"2C65","name":"LATIN SMALL LETTER A WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"023A","lowercase_mapping":"","titlecase_mapping":"023A","symbol":"\u2C65"},11366:{"value":"2C66","name":"LATIN SMALL LETTER T WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"023E","lowercase_mapping":"","titlecase_mapping":"023E","symbol":"\u2C66"},11368:{"value":"2C68","name":"LATIN SMALL LETTER H WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C67","lowercase_mapping":"","titlecase_mapping":"2C67","symbol":"\u2C68"},11370:{"value":"2C6A","name":"LATIN SMALL LETTER K WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C69","lowercase_mapping":"","titlecase_mapping":"2C69","symbol":"\u2C6A"},11372:{"value":"2C6C","name":"LATIN SMALL LETTER Z WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C6B","lowercase_mapping":"","titlecase_mapping":"2C6B","symbol":"\u2C6C"},11377:{"value":"2C71","name":"LATIN SMALL LETTER V WITH RIGHT HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C71"},11379:{"value":"2C73","name":"LATIN SMALL LETTER W WITH HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C72","lowercase_mapping":"","titlecase_mapping":"2C72","symbol":"\u2C73"},11380:{"value":"2C74","name":"LATIN SMALL LETTER V WITH CURL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C74"},11382:{"value":"2C76","name":"LATIN SMALL LETTER HALF H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C75","lowercase_mapping":"","titlecase_mapping":"2C75","symbol":"\u2C76"},11383:{"value":"2C77","name":"LATIN SMALL LETTER TAILLESS PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C77"},11384:{"value":"2C78","name":"LATIN SMALL LETTER E WITH NOTCH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C78"},11385:{"value":"2C79","name":"LATIN SMALL LETTER TURNED R WITH TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C79"},11386:{"value":"2C7A","name":"LATIN SMALL LETTER O WITH LOW RING INSIDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C7A"},11387:{"value":"2C7B","name":"LATIN LETTER SMALL CAPITAL TURNED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2C7B"},11393:{"value":"2C81","name":"COPTIC SMALL LETTER ALFA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C80","lowercase_mapping":"","titlecase_mapping":"2C80","symbol":"\u2C81"},11395:{"value":"2C83","name":"COPTIC SMALL LETTER VIDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C82","lowercase_mapping":"","titlecase_mapping":"2C82","symbol":"\u2C83"},11397:{"value":"2C85","name":"COPTIC SMALL LETTER GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C84","lowercase_mapping":"","titlecase_mapping":"2C84","symbol":"\u2C85"},11399:{"value":"2C87","name":"COPTIC SMALL LETTER DALDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C86","lowercase_mapping":"","titlecase_mapping":"2C86","symbol":"\u2C87"},11401:{"value":"2C89","name":"COPTIC SMALL LETTER EIE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C88","lowercase_mapping":"","titlecase_mapping":"2C88","symbol":"\u2C89"},11403:{"value":"2C8B","name":"COPTIC SMALL LETTER SOU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C8A","lowercase_mapping":"","titlecase_mapping":"2C8A","symbol":"\u2C8B"},11405:{"value":"2C8D","name":"COPTIC SMALL LETTER ZATA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C8C","lowercase_mapping":"","titlecase_mapping":"2C8C","symbol":"\u2C8D"},11407:{"value":"2C8F","name":"COPTIC SMALL LETTER HATE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C8E","lowercase_mapping":"","titlecase_mapping":"2C8E","symbol":"\u2C8F"},11409:{"value":"2C91","name":"COPTIC SMALL LETTER THETHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C90","lowercase_mapping":"","titlecase_mapping":"2C90","symbol":"\u2C91"},11411:{"value":"2C93","name":"COPTIC SMALL LETTER IAUDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C92","lowercase_mapping":"","titlecase_mapping":"2C92","symbol":"\u2C93"},11413:{"value":"2C95","name":"COPTIC SMALL LETTER KAPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C94","lowercase_mapping":"","titlecase_mapping":"2C94","symbol":"\u2C95"},11415:{"value":"2C97","name":"COPTIC SMALL LETTER LAULA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C96","lowercase_mapping":"","titlecase_mapping":"2C96","symbol":"\u2C97"},11417:{"value":"2C99","name":"COPTIC SMALL LETTER MI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C98","lowercase_mapping":"","titlecase_mapping":"2C98","symbol":"\u2C99"},11419:{"value":"2C9B","name":"COPTIC SMALL LETTER NI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C9A","lowercase_mapping":"","titlecase_mapping":"2C9A","symbol":"\u2C9B"},11421:{"value":"2C9D","name":"COPTIC SMALL LETTER KSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C9C","lowercase_mapping":"","titlecase_mapping":"2C9C","symbol":"\u2C9D"},11423:{"value":"2C9F","name":"COPTIC SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2C9E","lowercase_mapping":"","titlecase_mapping":"2C9E","symbol":"\u2C9F"},11425:{"value":"2CA1","name":"COPTIC SMALL LETTER PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA0","lowercase_mapping":"","titlecase_mapping":"2CA0","symbol":"\u2CA1"},11427:{"value":"2CA3","name":"COPTIC SMALL LETTER RO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA2","lowercase_mapping":"","titlecase_mapping":"2CA2","symbol":"\u2CA3"},11429:{"value":"2CA5","name":"COPTIC SMALL LETTER SIMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA4","lowercase_mapping":"","titlecase_mapping":"2CA4","symbol":"\u2CA5"},11431:{"value":"2CA7","name":"COPTIC SMALL LETTER TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA6","lowercase_mapping":"","titlecase_mapping":"2CA6","symbol":"\u2CA7"},11433:{"value":"2CA9","name":"COPTIC SMALL LETTER UA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CA8","lowercase_mapping":"","titlecase_mapping":"2CA8","symbol":"\u2CA9"},11435:{"value":"2CAB","name":"COPTIC SMALL LETTER FI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CAA","lowercase_mapping":"","titlecase_mapping":"2CAA","symbol":"\u2CAB"},11437:{"value":"2CAD","name":"COPTIC SMALL LETTER KHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CAC","lowercase_mapping":"","titlecase_mapping":"2CAC","symbol":"\u2CAD"},11439:{"value":"2CAF","name":"COPTIC SMALL LETTER PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CAE","lowercase_mapping":"","titlecase_mapping":"2CAE","symbol":"\u2CAF"},11441:{"value":"2CB1","name":"COPTIC SMALL LETTER OOU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB0","lowercase_mapping":"","titlecase_mapping":"2CB0","symbol":"\u2CB1"},11443:{"value":"2CB3","name":"COPTIC SMALL LETTER DIALECT-P ALEF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB2","lowercase_mapping":"","titlecase_mapping":"2CB2","symbol":"\u2CB3"},11445:{"value":"2CB5","name":"COPTIC SMALL LETTER OLD COPTIC AIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB4","lowercase_mapping":"","titlecase_mapping":"2CB4","symbol":"\u2CB5"},11447:{"value":"2CB7","name":"COPTIC SMALL LETTER CRYPTOGRAMMIC EIE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB6","lowercase_mapping":"","titlecase_mapping":"2CB6","symbol":"\u2CB7"},11449:{"value":"2CB9","name":"COPTIC SMALL LETTER DIALECT-P KAPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CB8","lowercase_mapping":"","titlecase_mapping":"2CB8","symbol":"\u2CB9"},11451:{"value":"2CBB","name":"COPTIC SMALL LETTER DIALECT-P NI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CBA","lowercase_mapping":"","titlecase_mapping":"2CBA","symbol":"\u2CBB"},11453:{"value":"2CBD","name":"COPTIC SMALL LETTER CRYPTOGRAMMIC NI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CBC","lowercase_mapping":"","titlecase_mapping":"2CBC","symbol":"\u2CBD"},11455:{"value":"2CBF","name":"COPTIC SMALL LETTER OLD COPTIC OOU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CBE","lowercase_mapping":"","titlecase_mapping":"2CBE","symbol":"\u2CBF"},11457:{"value":"2CC1","name":"COPTIC SMALL LETTER SAMPI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC0","lowercase_mapping":"","titlecase_mapping":"2CC0","symbol":"\u2CC1"},11459:{"value":"2CC3","name":"COPTIC SMALL LETTER CROSSED SHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC2","lowercase_mapping":"","titlecase_mapping":"2CC2","symbol":"\u2CC3"},11461:{"value":"2CC5","name":"COPTIC SMALL LETTER OLD COPTIC SHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC4","lowercase_mapping":"","titlecase_mapping":"2CC4","symbol":"\u2CC5"},11463:{"value":"2CC7","name":"COPTIC SMALL LETTER OLD COPTIC ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC6","lowercase_mapping":"","titlecase_mapping":"2CC6","symbol":"\u2CC7"},11465:{"value":"2CC9","name":"COPTIC SMALL LETTER AKHMIMIC KHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CC8","lowercase_mapping":"","titlecase_mapping":"2CC8","symbol":"\u2CC9"},11467:{"value":"2CCB","name":"COPTIC SMALL LETTER DIALECT-P HORI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CCA","lowercase_mapping":"","titlecase_mapping":"2CCA","symbol":"\u2CCB"},11469:{"value":"2CCD","name":"COPTIC SMALL LETTER OLD COPTIC HORI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CCC","lowercase_mapping":"","titlecase_mapping":"2CCC","symbol":"\u2CCD"},11471:{"value":"2CCF","name":"COPTIC SMALL LETTER OLD COPTIC HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CCE","lowercase_mapping":"","titlecase_mapping":"2CCE","symbol":"\u2CCF"},11473:{"value":"2CD1","name":"COPTIC SMALL LETTER L-SHAPED HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD0","lowercase_mapping":"","titlecase_mapping":"2CD0","symbol":"\u2CD1"},11475:{"value":"2CD3","name":"COPTIC SMALL LETTER OLD COPTIC HEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD2","lowercase_mapping":"","titlecase_mapping":"2CD2","symbol":"\u2CD3"},11477:{"value":"2CD5","name":"COPTIC SMALL LETTER OLD COPTIC HAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD4","lowercase_mapping":"","titlecase_mapping":"2CD4","symbol":"\u2CD5"},11479:{"value":"2CD7","name":"COPTIC SMALL LETTER OLD COPTIC GANGIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD6","lowercase_mapping":"","titlecase_mapping":"2CD6","symbol":"\u2CD7"},11481:{"value":"2CD9","name":"COPTIC SMALL LETTER OLD COPTIC DJA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CD8","lowercase_mapping":"","titlecase_mapping":"2CD8","symbol":"\u2CD9"},11483:{"value":"2CDB","name":"COPTIC SMALL LETTER OLD COPTIC SHIMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CDA","lowercase_mapping":"","titlecase_mapping":"2CDA","symbol":"\u2CDB"},11485:{"value":"2CDD","name":"COPTIC SMALL LETTER OLD NUBIAN SHIMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CDC","lowercase_mapping":"","titlecase_mapping":"2CDC","symbol":"\u2CDD"},11487:{"value":"2CDF","name":"COPTIC SMALL LETTER OLD NUBIAN NGI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CDE","lowercase_mapping":"","titlecase_mapping":"2CDE","symbol":"\u2CDF"},11489:{"value":"2CE1","name":"COPTIC SMALL LETTER OLD NUBIAN NYI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CE0","lowercase_mapping":"","titlecase_mapping":"2CE0","symbol":"\u2CE1"},11491:{"value":"2CE3","name":"COPTIC SMALL LETTER OLD NUBIAN WAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CE2","lowercase_mapping":"","titlecase_mapping":"2CE2","symbol":"\u2CE3"},11492:{"value":"2CE4","name":"COPTIC SYMBOL KAI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2CE4"},11500:{"value":"2CEC","name":"COPTIC SMALL LETTER CRYPTOGRAMMIC SHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CEB","lowercase_mapping":"","titlecase_mapping":"2CEB","symbol":"\u2CEC"},11502:{"value":"2CEE","name":"COPTIC SMALL LETTER CRYPTOGRAMMIC GANGIA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CED","lowercase_mapping":"","titlecase_mapping":"2CED","symbol":"\u2CEE"},11507:{"value":"2CF3","name":"COPTIC SMALL LETTER BOHAIRIC KHEI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"2CF2","lowercase_mapping":"","titlecase_mapping":"2CF2","symbol":"\u2CF3"},11520:{"value":"2D00","name":"GEORGIAN SMALL LETTER AN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A0","lowercase_mapping":"","titlecase_mapping":"10A0","symbol":"\u2D00"},11521:{"value":"2D01","name":"GEORGIAN SMALL LETTER BAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A1","lowercase_mapping":"","titlecase_mapping":"10A1","symbol":"\u2D01"},11522:{"value":"2D02","name":"GEORGIAN SMALL LETTER GAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A2","lowercase_mapping":"","titlecase_mapping":"10A2","symbol":"\u2D02"},11523:{"value":"2D03","name":"GEORGIAN SMALL LETTER DON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A3","lowercase_mapping":"","titlecase_mapping":"10A3","symbol":"\u2D03"},11524:{"value":"2D04","name":"GEORGIAN SMALL LETTER EN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A4","lowercase_mapping":"","titlecase_mapping":"10A4","symbol":"\u2D04"},11525:{"value":"2D05","name":"GEORGIAN SMALL LETTER VIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A5","lowercase_mapping":"","titlecase_mapping":"10A5","symbol":"\u2D05"},11526:{"value":"2D06","name":"GEORGIAN SMALL LETTER ZEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A6","lowercase_mapping":"","titlecase_mapping":"10A6","symbol":"\u2D06"},11527:{"value":"2D07","name":"GEORGIAN SMALL LETTER TAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A7","lowercase_mapping":"","titlecase_mapping":"10A7","symbol":"\u2D07"},11528:{"value":"2D08","name":"GEORGIAN SMALL LETTER IN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A8","lowercase_mapping":"","titlecase_mapping":"10A8","symbol":"\u2D08"},11529:{"value":"2D09","name":"GEORGIAN SMALL LETTER KAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10A9","lowercase_mapping":"","titlecase_mapping":"10A9","symbol":"\u2D09"},11530:{"value":"2D0A","name":"GEORGIAN SMALL LETTER LAS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AA","lowercase_mapping":"","titlecase_mapping":"10AA","symbol":"\u2D0A"},11531:{"value":"2D0B","name":"GEORGIAN SMALL LETTER MAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AB","lowercase_mapping":"","titlecase_mapping":"10AB","symbol":"\u2D0B"},11532:{"value":"2D0C","name":"GEORGIAN SMALL LETTER NAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AC","lowercase_mapping":"","titlecase_mapping":"10AC","symbol":"\u2D0C"},11533:{"value":"2D0D","name":"GEORGIAN SMALL LETTER ON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AD","lowercase_mapping":"","titlecase_mapping":"10AD","symbol":"\u2D0D"},11534:{"value":"2D0E","name":"GEORGIAN SMALL LETTER PAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AE","lowercase_mapping":"","titlecase_mapping":"10AE","symbol":"\u2D0E"},11535:{"value":"2D0F","name":"GEORGIAN SMALL LETTER ZHAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10AF","lowercase_mapping":"","titlecase_mapping":"10AF","symbol":"\u2D0F"},11536:{"value":"2D10","name":"GEORGIAN SMALL LETTER RAE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B0","lowercase_mapping":"","titlecase_mapping":"10B0","symbol":"\u2D10"},11537:{"value":"2D11","name":"GEORGIAN SMALL LETTER SAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B1","lowercase_mapping":"","titlecase_mapping":"10B1","symbol":"\u2D11"},11538:{"value":"2D12","name":"GEORGIAN SMALL LETTER TAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B2","lowercase_mapping":"","titlecase_mapping":"10B2","symbol":"\u2D12"},11539:{"value":"2D13","name":"GEORGIAN SMALL LETTER UN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B3","lowercase_mapping":"","titlecase_mapping":"10B3","symbol":"\u2D13"},11540:{"value":"2D14","name":"GEORGIAN SMALL LETTER PHAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B4","lowercase_mapping":"","titlecase_mapping":"10B4","symbol":"\u2D14"},11541:{"value":"2D15","name":"GEORGIAN SMALL LETTER KHAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B5","lowercase_mapping":"","titlecase_mapping":"10B5","symbol":"\u2D15"},11542:{"value":"2D16","name":"GEORGIAN SMALL LETTER GHAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B6","lowercase_mapping":"","titlecase_mapping":"10B6","symbol":"\u2D16"},11543:{"value":"2D17","name":"GEORGIAN SMALL LETTER QAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B7","lowercase_mapping":"","titlecase_mapping":"10B7","symbol":"\u2D17"},11544:{"value":"2D18","name":"GEORGIAN SMALL LETTER SHIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B8","lowercase_mapping":"","titlecase_mapping":"10B8","symbol":"\u2D18"},11545:{"value":"2D19","name":"GEORGIAN SMALL LETTER CHIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10B9","lowercase_mapping":"","titlecase_mapping":"10B9","symbol":"\u2D19"},11546:{"value":"2D1A","name":"GEORGIAN SMALL LETTER CAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BA","lowercase_mapping":"","titlecase_mapping":"10BA","symbol":"\u2D1A"},11547:{"value":"2D1B","name":"GEORGIAN SMALL LETTER JIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BB","lowercase_mapping":"","titlecase_mapping":"10BB","symbol":"\u2D1B"},11548:{"value":"2D1C","name":"GEORGIAN SMALL LETTER CIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BC","lowercase_mapping":"","titlecase_mapping":"10BC","symbol":"\u2D1C"},11549:{"value":"2D1D","name":"GEORGIAN SMALL LETTER CHAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BD","lowercase_mapping":"","titlecase_mapping":"10BD","symbol":"\u2D1D"},11550:{"value":"2D1E","name":"GEORGIAN SMALL LETTER XAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BE","lowercase_mapping":"","titlecase_mapping":"10BE","symbol":"\u2D1E"},11551:{"value":"2D1F","name":"GEORGIAN SMALL LETTER JHAN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10BF","lowercase_mapping":"","titlecase_mapping":"10BF","symbol":"\u2D1F"},11552:{"value":"2D20","name":"GEORGIAN SMALL LETTER HAE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C0","lowercase_mapping":"","titlecase_mapping":"10C0","symbol":"\u2D20"},11553:{"value":"2D21","name":"GEORGIAN SMALL LETTER HE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C1","lowercase_mapping":"","titlecase_mapping":"10C1","symbol":"\u2D21"},11554:{"value":"2D22","name":"GEORGIAN SMALL LETTER HIE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C2","lowercase_mapping":"","titlecase_mapping":"10C2","symbol":"\u2D22"},11555:{"value":"2D23","name":"GEORGIAN SMALL LETTER WE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C3","lowercase_mapping":"","titlecase_mapping":"10C3","symbol":"\u2D23"},11556:{"value":"2D24","name":"GEORGIAN SMALL LETTER HAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C4","lowercase_mapping":"","titlecase_mapping":"10C4","symbol":"\u2D24"},11557:{"value":"2D25","name":"GEORGIAN SMALL LETTER HOE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C5","lowercase_mapping":"","titlecase_mapping":"10C5","symbol":"\u2D25"},11559:{"value":"2D27","name":"GEORGIAN SMALL LETTER YN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C7","lowercase_mapping":"","titlecase_mapping":"10C7","symbol":"\u2D27"},11565:{"value":"2D2D","name":"GEORGIAN SMALL LETTER AEN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CD","lowercase_mapping":"","titlecase_mapping":"10CD","symbol":"\u2D2D"},42561:{"value":"A641","name":"CYRILLIC SMALL LETTER ZEMLYA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A640","lowercase_mapping":"","titlecase_mapping":"A640","symbol":"\uA641"},42563:{"value":"A643","name":"CYRILLIC SMALL LETTER DZELO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A642","lowercase_mapping":"","titlecase_mapping":"A642","symbol":"\uA643"},42565:{"value":"A645","name":"CYRILLIC SMALL LETTER REVERSED DZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A644","lowercase_mapping":"","titlecase_mapping":"A644","symbol":"\uA645"},42567:{"value":"A647","name":"CYRILLIC SMALL LETTER IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A646","lowercase_mapping":"","titlecase_mapping":"A646","symbol":"\uA647"},42569:{"value":"A649","name":"CYRILLIC SMALL LETTER DJERV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A648","lowercase_mapping":"","titlecase_mapping":"A648","symbol":"\uA649"},42571:{"value":"A64B","name":"CYRILLIC SMALL LETTER MONOGRAPH UK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A64A","lowercase_mapping":"","titlecase_mapping":"A64A","symbol":"\uA64B"},42573:{"value":"A64D","name":"CYRILLIC SMALL LETTER BROAD OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A64C","lowercase_mapping":"","titlecase_mapping":"A64C","symbol":"\uA64D"},42575:{"value":"A64F","name":"CYRILLIC SMALL LETTER NEUTRAL YER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A64E","lowercase_mapping":"","titlecase_mapping":"A64E","symbol":"\uA64F"},42577:{"value":"A651","name":"CYRILLIC SMALL LETTER YERU WITH BACK YER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A650","lowercase_mapping":"","titlecase_mapping":"A650","symbol":"\uA651"},42579:{"value":"A653","name":"CYRILLIC SMALL LETTER IOTIFIED YAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A652","lowercase_mapping":"","titlecase_mapping":"A652","symbol":"\uA653"},42581:{"value":"A655","name":"CYRILLIC SMALL LETTER REVERSED YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A654","lowercase_mapping":"","titlecase_mapping":"A654","symbol":"\uA655"},42583:{"value":"A657","name":"CYRILLIC SMALL LETTER IOTIFIED A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A656","lowercase_mapping":"","titlecase_mapping":"A656","symbol":"\uA657"},42585:{"value":"A659","name":"CYRILLIC SMALL LETTER CLOSED LITTLE YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A658","lowercase_mapping":"","titlecase_mapping":"A658","symbol":"\uA659"},42587:{"value":"A65B","name":"CYRILLIC SMALL LETTER BLENDED YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A65A","lowercase_mapping":"","titlecase_mapping":"A65A","symbol":"\uA65B"},42589:{"value":"A65D","name":"CYRILLIC SMALL LETTER IOTIFIED CLOSED LITTLE YUS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A65C","lowercase_mapping":"","titlecase_mapping":"A65C","symbol":"\uA65D"},42591:{"value":"A65F","name":"CYRILLIC SMALL LETTER YN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A65E","lowercase_mapping":"","titlecase_mapping":"A65E","symbol":"\uA65F"},42593:{"value":"A661","name":"CYRILLIC SMALL LETTER REVERSED TSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A660","lowercase_mapping":"","titlecase_mapping":"A660","symbol":"\uA661"},42595:{"value":"A663","name":"CYRILLIC SMALL LETTER SOFT DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A662","lowercase_mapping":"","titlecase_mapping":"A662","symbol":"\uA663"},42597:{"value":"A665","name":"CYRILLIC SMALL LETTER SOFT EL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A664","lowercase_mapping":"","titlecase_mapping":"A664","symbol":"\uA665"},42599:{"value":"A667","name":"CYRILLIC SMALL LETTER SOFT EM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A666","lowercase_mapping":"","titlecase_mapping":"A666","symbol":"\uA667"},42601:{"value":"A669","name":"CYRILLIC SMALL LETTER MONOCULAR O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A668","lowercase_mapping":"","titlecase_mapping":"A668","symbol":"\uA669"},42603:{"value":"A66B","name":"CYRILLIC SMALL LETTER BINOCULAR O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A66A","lowercase_mapping":"","titlecase_mapping":"A66A","symbol":"\uA66B"},42605:{"value":"A66D","name":"CYRILLIC SMALL LETTER DOUBLE MONOCULAR O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A66C","lowercase_mapping":"","titlecase_mapping":"A66C","symbol":"\uA66D"},42625:{"value":"A681","name":"CYRILLIC SMALL LETTER DWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A680","lowercase_mapping":"","titlecase_mapping":"A680","symbol":"\uA681"},42627:{"value":"A683","name":"CYRILLIC SMALL LETTER DZWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A682","lowercase_mapping":"","titlecase_mapping":"A682","symbol":"\uA683"},42629:{"value":"A685","name":"CYRILLIC SMALL LETTER ZHWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A684","lowercase_mapping":"","titlecase_mapping":"A684","symbol":"\uA685"},42631:{"value":"A687","name":"CYRILLIC SMALL LETTER CCHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A686","lowercase_mapping":"","titlecase_mapping":"A686","symbol":"\uA687"},42633:{"value":"A689","name":"CYRILLIC SMALL LETTER DZZE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A688","lowercase_mapping":"","titlecase_mapping":"A688","symbol":"\uA689"},42635:{"value":"A68B","name":"CYRILLIC SMALL LETTER TE WITH MIDDLE HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A68A","lowercase_mapping":"","titlecase_mapping":"A68A","symbol":"\uA68B"},42637:{"value":"A68D","name":"CYRILLIC SMALL LETTER TWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A68C","lowercase_mapping":"","titlecase_mapping":"A68C","symbol":"\uA68D"},42639:{"value":"A68F","name":"CYRILLIC SMALL LETTER TSWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A68E","lowercase_mapping":"","titlecase_mapping":"A68E","symbol":"\uA68F"},42641:{"value":"A691","name":"CYRILLIC SMALL LETTER TSSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A690","lowercase_mapping":"","titlecase_mapping":"A690","symbol":"\uA691"},42643:{"value":"A693","name":"CYRILLIC SMALL LETTER TCHE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A692","lowercase_mapping":"","titlecase_mapping":"A692","symbol":"\uA693"},42645:{"value":"A695","name":"CYRILLIC SMALL LETTER HWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A694","lowercase_mapping":"","titlecase_mapping":"A694","symbol":"\uA695"},42647:{"value":"A697","name":"CYRILLIC SMALL LETTER SHWE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A696","lowercase_mapping":"","titlecase_mapping":"A696","symbol":"\uA697"},42649:{"value":"A699","name":"CYRILLIC SMALL LETTER DOUBLE O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A698","lowercase_mapping":"","titlecase_mapping":"A698","symbol":"\uA699"},42651:{"value":"A69B","name":"CYRILLIC SMALL LETTER CROSSED O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A69A","lowercase_mapping":"","titlecase_mapping":"A69A","symbol":"\uA69B"},42787:{"value":"A723","name":"LATIN SMALL LETTER EGYPTOLOGICAL ALEF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A722","lowercase_mapping":"","titlecase_mapping":"A722","symbol":"\uA723"},42789:{"value":"A725","name":"LATIN SMALL LETTER EGYPTOLOGICAL AIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A724","lowercase_mapping":"","titlecase_mapping":"A724","symbol":"\uA725"},42791:{"value":"A727","name":"LATIN SMALL LETTER HENG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A726","lowercase_mapping":"","titlecase_mapping":"A726","symbol":"\uA727"},42793:{"value":"A729","name":"LATIN SMALL LETTER TZ","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A728","lowercase_mapping":"","titlecase_mapping":"A728","symbol":"\uA729"},42795:{"value":"A72B","name":"LATIN SMALL LETTER TRESILLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A72A","lowercase_mapping":"","titlecase_mapping":"A72A","symbol":"\uA72B"},42797:{"value":"A72D","name":"LATIN SMALL LETTER CUATRILLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A72C","lowercase_mapping":"","titlecase_mapping":"A72C","symbol":"\uA72D"},42799:{"value":"A72F","name":"LATIN SMALL LETTER CUATRILLO WITH COMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A72E","lowercase_mapping":"","titlecase_mapping":"A72E","symbol":"\uA72F"},42800:{"value":"A730","name":"LATIN LETTER SMALL CAPITAL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA730"},42801:{"value":"A731","name":"LATIN LETTER SMALL CAPITAL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA731"},42803:{"value":"A733","name":"LATIN SMALL LETTER AA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A732","lowercase_mapping":"","titlecase_mapping":"A732","symbol":"\uA733"},42805:{"value":"A735","name":"LATIN SMALL LETTER AO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A734","lowercase_mapping":"","titlecase_mapping":"A734","symbol":"\uA735"},42807:{"value":"A737","name":"LATIN SMALL LETTER AU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A736","lowercase_mapping":"","titlecase_mapping":"A736","symbol":"\uA737"},42809:{"value":"A739","name":"LATIN SMALL LETTER AV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A738","lowercase_mapping":"","titlecase_mapping":"A738","symbol":"\uA739"},42811:{"value":"A73B","name":"LATIN SMALL LETTER AV WITH HORIZONTAL BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A73A","lowercase_mapping":"","titlecase_mapping":"A73A","symbol":"\uA73B"},42813:{"value":"A73D","name":"LATIN SMALL LETTER AY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A73C","lowercase_mapping":"","titlecase_mapping":"A73C","symbol":"\uA73D"},42815:{"value":"A73F","name":"LATIN SMALL LETTER REVERSED C WITH DOT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A73E","lowercase_mapping":"","titlecase_mapping":"A73E","symbol":"\uA73F"},42817:{"value":"A741","name":"LATIN SMALL LETTER K WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A740","lowercase_mapping":"","titlecase_mapping":"A740","symbol":"\uA741"},42819:{"value":"A743","name":"LATIN SMALL LETTER K WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A742","lowercase_mapping":"","titlecase_mapping":"A742","symbol":"\uA743"},42821:{"value":"A745","name":"LATIN SMALL LETTER K WITH STROKE AND DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A744","lowercase_mapping":"","titlecase_mapping":"A744","symbol":"\uA745"},42823:{"value":"A747","name":"LATIN SMALL LETTER BROKEN L","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A746","lowercase_mapping":"","titlecase_mapping":"A746","symbol":"\uA747"},42825:{"value":"A749","name":"LATIN SMALL LETTER L WITH HIGH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A748","lowercase_mapping":"","titlecase_mapping":"A748","symbol":"\uA749"},42827:{"value":"A74B","name":"LATIN SMALL LETTER O WITH LONG STROKE OVERLAY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A74A","lowercase_mapping":"","titlecase_mapping":"A74A","symbol":"\uA74B"},42829:{"value":"A74D","name":"LATIN SMALL LETTER O WITH LOOP","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A74C","lowercase_mapping":"","titlecase_mapping":"A74C","symbol":"\uA74D"},42831:{"value":"A74F","name":"LATIN SMALL LETTER OO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A74E","lowercase_mapping":"","titlecase_mapping":"A74E","symbol":"\uA74F"},42833:{"value":"A751","name":"LATIN SMALL LETTER P WITH STROKE THROUGH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A750","lowercase_mapping":"","titlecase_mapping":"A750","symbol":"\uA751"},42835:{"value":"A753","name":"LATIN SMALL LETTER P WITH FLOURISH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A752","lowercase_mapping":"","titlecase_mapping":"A752","symbol":"\uA753"},42837:{"value":"A755","name":"LATIN SMALL LETTER P WITH SQUIRREL TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A754","lowercase_mapping":"","titlecase_mapping":"A754","symbol":"\uA755"},42839:{"value":"A757","name":"LATIN SMALL LETTER Q WITH STROKE THROUGH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A756","lowercase_mapping":"","titlecase_mapping":"A756","symbol":"\uA757"},42841:{"value":"A759","name":"LATIN SMALL LETTER Q WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A758","lowercase_mapping":"","titlecase_mapping":"A758","symbol":"\uA759"},42843:{"value":"A75B","name":"LATIN SMALL LETTER R ROTUNDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A75A","lowercase_mapping":"","titlecase_mapping":"A75A","symbol":"\uA75B"},42845:{"value":"A75D","name":"LATIN SMALL LETTER RUM ROTUNDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A75C","lowercase_mapping":"","titlecase_mapping":"A75C","symbol":"\uA75D"},42847:{"value":"A75F","name":"LATIN SMALL LETTER V WITH DIAGONAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A75E","lowercase_mapping":"","titlecase_mapping":"A75E","symbol":"\uA75F"},42849:{"value":"A761","name":"LATIN SMALL LETTER VY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A760","lowercase_mapping":"","titlecase_mapping":"A760","symbol":"\uA761"},42851:{"value":"A763","name":"LATIN SMALL LETTER VISIGOTHIC Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A762","lowercase_mapping":"","titlecase_mapping":"A762","symbol":"\uA763"},42853:{"value":"A765","name":"LATIN SMALL LETTER THORN WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A764","lowercase_mapping":"","titlecase_mapping":"A764","symbol":"\uA765"},42855:{"value":"A767","name":"LATIN SMALL LETTER THORN WITH STROKE THROUGH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A766","lowercase_mapping":"","titlecase_mapping":"A766","symbol":"\uA767"},42857:{"value":"A769","name":"LATIN SMALL LETTER VEND","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A768","lowercase_mapping":"","titlecase_mapping":"A768","symbol":"\uA769"},42859:{"value":"A76B","name":"LATIN SMALL LETTER ET","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A76A","lowercase_mapping":"","titlecase_mapping":"A76A","symbol":"\uA76B"},42861:{"value":"A76D","name":"LATIN SMALL LETTER IS","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A76C","lowercase_mapping":"","titlecase_mapping":"A76C","symbol":"\uA76D"},42863:{"value":"A76F","name":"LATIN SMALL LETTER CON","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A76E","lowercase_mapping":"","titlecase_mapping":"A76E","symbol":"\uA76F"},42865:{"value":"A771","name":"LATIN SMALL LETTER DUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA771"},42866:{"value":"A772","name":"LATIN SMALL LETTER LUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA772"},42867:{"value":"A773","name":"LATIN SMALL LETTER MUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA773"},42868:{"value":"A774","name":"LATIN SMALL LETTER NUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA774"},42869:{"value":"A775","name":"LATIN SMALL LETTER RUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA775"},42870:{"value":"A776","name":"LATIN LETTER SMALL CAPITAL RUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA776"},42871:{"value":"A777","name":"LATIN SMALL LETTER TUM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA777"},42872:{"value":"A778","name":"LATIN SMALL LETTER UM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA778"},42874:{"value":"A77A","name":"LATIN SMALL LETTER INSULAR D","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A779","lowercase_mapping":"","titlecase_mapping":"A779","symbol":"\uA77A"},42876:{"value":"A77C","name":"LATIN SMALL LETTER INSULAR F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A77B","lowercase_mapping":"","titlecase_mapping":"A77B","symbol":"\uA77C"},42879:{"value":"A77F","name":"LATIN SMALL LETTER TURNED INSULAR G","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A77E","lowercase_mapping":"","titlecase_mapping":"A77E","symbol":"\uA77F"},42881:{"value":"A781","name":"LATIN SMALL LETTER TURNED L","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A780","lowercase_mapping":"","titlecase_mapping":"A780","symbol":"\uA781"},42883:{"value":"A783","name":"LATIN SMALL LETTER INSULAR R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A782","lowercase_mapping":"","titlecase_mapping":"A782","symbol":"\uA783"},42885:{"value":"A785","name":"LATIN SMALL LETTER INSULAR S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A784","lowercase_mapping":"","titlecase_mapping":"A784","symbol":"\uA785"},42887:{"value":"A787","name":"LATIN SMALL LETTER INSULAR T","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A786","lowercase_mapping":"","titlecase_mapping":"A786","symbol":"\uA787"},42892:{"value":"A78C","name":"LATIN SMALL LETTER SALTILLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A78B","lowercase_mapping":"","titlecase_mapping":"A78B","symbol":"\uA78C"},42894:{"value":"A78E","name":"LATIN SMALL LETTER L WITH RETROFLEX HOOK AND BELT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA78E"},42897:{"value":"A791","name":"LATIN SMALL LETTER N WITH DESCENDER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A790","lowercase_mapping":"","titlecase_mapping":"A790","symbol":"\uA791"},42899:{"value":"A793","name":"LATIN SMALL LETTER C WITH BAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A792","lowercase_mapping":"","titlecase_mapping":"A792","symbol":"\uA793"},42900:{"value":"A794","name":"LATIN SMALL LETTER C WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA794"},42901:{"value":"A795","name":"LATIN SMALL LETTER H WITH PALATAL HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA795"},42903:{"value":"A797","name":"LATIN SMALL LETTER B WITH FLOURISH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A796","lowercase_mapping":"","titlecase_mapping":"A796","symbol":"\uA797"},42905:{"value":"A799","name":"LATIN SMALL LETTER F WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A798","lowercase_mapping":"","titlecase_mapping":"A798","symbol":"\uA799"},42907:{"value":"A79B","name":"LATIN SMALL LETTER VOLAPUK AE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A79A","lowercase_mapping":"","titlecase_mapping":"A79A","symbol":"\uA79B"},42909:{"value":"A79D","name":"LATIN SMALL LETTER VOLAPUK OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A79C","lowercase_mapping":"","titlecase_mapping":"A79C","symbol":"\uA79D"},42911:{"value":"A79F","name":"LATIN SMALL LETTER VOLAPUK UE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A79E","lowercase_mapping":"","titlecase_mapping":"A79E","symbol":"\uA79F"},42913:{"value":"A7A1","name":"LATIN SMALL LETTER G WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A0","lowercase_mapping":"","titlecase_mapping":"A7A0","symbol":"\uA7A1"},42915:{"value":"A7A3","name":"LATIN SMALL LETTER K WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A2","lowercase_mapping":"","titlecase_mapping":"A7A2","symbol":"\uA7A3"},42917:{"value":"A7A5","name":"LATIN SMALL LETTER N WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A4","lowercase_mapping":"","titlecase_mapping":"A7A4","symbol":"\uA7A5"},42919:{"value":"A7A7","name":"LATIN SMALL LETTER R WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A6","lowercase_mapping":"","titlecase_mapping":"A7A6","symbol":"\uA7A7"},42921:{"value":"A7A9","name":"LATIN SMALL LETTER S WITH OBLIQUE STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7A8","lowercase_mapping":"","titlecase_mapping":"A7A8","symbol":"\uA7A9"},42933:{"value":"A7B5","name":"LATIN SMALL LETTER BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B4","lowercase_mapping":"","titlecase_mapping":"A7B4","symbol":"\uA7B5"},42935:{"value":"A7B7","name":"LATIN SMALL LETTER OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B6","lowercase_mapping":"","titlecase_mapping":"A7B6","symbol":"\uA7B7"},43002:{"value":"A7FA","name":"LATIN LETTER SMALL CAPITAL TURNED M","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA7FA"},43824:{"value":"AB30","name":"LATIN SMALL LETTER BARRED ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB30"},43825:{"value":"AB31","name":"LATIN SMALL LETTER A REVERSED-SCHWA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB31"},43826:{"value":"AB32","name":"LATIN SMALL LETTER BLACKLETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB32"},43827:{"value":"AB33","name":"LATIN SMALL LETTER BARRED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB33"},43828:{"value":"AB34","name":"LATIN SMALL LETTER E WITH FLOURISH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB34"},43829:{"value":"AB35","name":"LATIN SMALL LETTER LENIS F","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB35"},43830:{"value":"AB36","name":"LATIN SMALL LETTER SCRIPT G WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB36"},43831:{"value":"AB37","name":"LATIN SMALL LETTER L WITH INVERTED LAZY S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB37"},43832:{"value":"AB38","name":"LATIN SMALL LETTER L WITH DOUBLE MIDDLE TILDE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB38"},43833:{"value":"AB39","name":"LATIN SMALL LETTER L WITH MIDDLE RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB39"},43834:{"value":"AB3A","name":"LATIN SMALL LETTER M WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3A"},43835:{"value":"AB3B","name":"LATIN SMALL LETTER N WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3B"},43836:{"value":"AB3C","name":"LATIN SMALL LETTER ENG WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3C"},43837:{"value":"AB3D","name":"LATIN SMALL LETTER BLACKLETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3D"},43838:{"value":"AB3E","name":"LATIN SMALL LETTER BLACKLETTER O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3E"},43839:{"value":"AB3F","name":"LATIN SMALL LETTER OPEN O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB3F"},43840:{"value":"AB40","name":"LATIN SMALL LETTER INVERTED OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB40"},43841:{"value":"AB41","name":"LATIN SMALL LETTER TURNED OE WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB41"},43842:{"value":"AB42","name":"LATIN SMALL LETTER TURNED OE WITH HORIZONTAL STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB42"},43843:{"value":"AB43","name":"LATIN SMALL LETTER TURNED O OPEN-O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB43"},43844:{"value":"AB44","name":"LATIN SMALL LETTER TURNED O OPEN-O WITH STROKE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB44"},43845:{"value":"AB45","name":"LATIN SMALL LETTER STIRRUP R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB45"},43846:{"value":"AB46","name":"LATIN LETTER SMALL CAPITAL R WITH RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB46"},43847:{"value":"AB47","name":"LATIN SMALL LETTER R WITHOUT HANDLE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB47"},43848:{"value":"AB48","name":"LATIN SMALL LETTER DOUBLE R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB48"},43849:{"value":"AB49","name":"LATIN SMALL LETTER R WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB49"},43850:{"value":"AB4A","name":"LATIN SMALL LETTER DOUBLE R WITH CROSSED-TAIL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4A"},43851:{"value":"AB4B","name":"LATIN SMALL LETTER SCRIPT R","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4B"},43852:{"value":"AB4C","name":"LATIN SMALL LETTER SCRIPT R WITH RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4C"},43853:{"value":"AB4D","name":"LATIN SMALL LETTER BASELINE ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4D"},43854:{"value":"AB4E","name":"LATIN SMALL LETTER U WITH SHORT RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4E"},43855:{"value":"AB4F","name":"LATIN SMALL LETTER U BAR WITH SHORT RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB4F"},43856:{"value":"AB50","name":"LATIN SMALL LETTER UI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB50"},43857:{"value":"AB51","name":"LATIN SMALL LETTER TURNED UI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB51"},43858:{"value":"AB52","name":"LATIN SMALL LETTER U WITH LEFT HOOK","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB52"},43859:{"value":"AB53","name":"LATIN SMALL LETTER CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"A7B3","lowercase_mapping":"","titlecase_mapping":"A7B3","symbol":"\uAB53"},43860:{"value":"AB54","name":"LATIN SMALL LETTER CHI WITH LOW RIGHT RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB54"},43861:{"value":"AB55","name":"LATIN SMALL LETTER CHI WITH LOW LEFT SERIF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB55"},43862:{"value":"AB56","name":"LATIN SMALL LETTER X WITH LOW RIGHT RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB56"},43863:{"value":"AB57","name":"LATIN SMALL LETTER X WITH LONG LEFT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB57"},43864:{"value":"AB58","name":"LATIN SMALL LETTER X WITH LONG LEFT LEG AND LOW RIGHT RING","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB58"},43865:{"value":"AB59","name":"LATIN SMALL LETTER X WITH LONG LEFT LEG WITH SERIF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB59"},43866:{"value":"AB5A","name":"LATIN SMALL LETTER Y WITH SHORT RIGHT LEG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB5A"},43872:{"value":"AB60","name":"LATIN SMALL LETTER SAKHA YAT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB60"},43873:{"value":"AB61","name":"LATIN SMALL LETTER IOTIFIED E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB61"},43874:{"value":"AB62","name":"LATIN SMALL LETTER OPEN OE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB62"},43875:{"value":"AB63","name":"LATIN SMALL LETTER UO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB63"},43876:{"value":"AB64","name":"LATIN SMALL LETTER INVERTED ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB64"},43877:{"value":"AB65","name":"GREEK LETTER SMALL CAPITAL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uAB65"},43888:{"value":"AB70","name":"CHEROKEE SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A0","lowercase_mapping":"","titlecase_mapping":"13A0","symbol":"\uAB70"},43889:{"value":"AB71","name":"CHEROKEE SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A1","lowercase_mapping":"","titlecase_mapping":"13A1","symbol":"\uAB71"},43890:{"value":"AB72","name":"CHEROKEE SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A2","lowercase_mapping":"","titlecase_mapping":"13A2","symbol":"\uAB72"},43891:{"value":"AB73","name":"CHEROKEE SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A3","lowercase_mapping":"","titlecase_mapping":"13A3","symbol":"\uAB73"},43892:{"value":"AB74","name":"CHEROKEE SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A4","lowercase_mapping":"","titlecase_mapping":"13A4","symbol":"\uAB74"},43893:{"value":"AB75","name":"CHEROKEE SMALL LETTER V","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A5","lowercase_mapping":"","titlecase_mapping":"13A5","symbol":"\uAB75"},43894:{"value":"AB76","name":"CHEROKEE SMALL LETTER GA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A6","lowercase_mapping":"","titlecase_mapping":"13A6","symbol":"\uAB76"},43895:{"value":"AB77","name":"CHEROKEE SMALL LETTER KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A7","lowercase_mapping":"","titlecase_mapping":"13A7","symbol":"\uAB77"},43896:{"value":"AB78","name":"CHEROKEE SMALL LETTER GE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A8","lowercase_mapping":"","titlecase_mapping":"13A8","symbol":"\uAB78"},43897:{"value":"AB79","name":"CHEROKEE SMALL LETTER GI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13A9","lowercase_mapping":"","titlecase_mapping":"13A9","symbol":"\uAB79"},43898:{"value":"AB7A","name":"CHEROKEE SMALL LETTER GO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AA","lowercase_mapping":"","titlecase_mapping":"13AA","symbol":"\uAB7A"},43899:{"value":"AB7B","name":"CHEROKEE SMALL LETTER GU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AB","lowercase_mapping":"","titlecase_mapping":"13AB","symbol":"\uAB7B"},43900:{"value":"AB7C","name":"CHEROKEE SMALL LETTER GV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AC","lowercase_mapping":"","titlecase_mapping":"13AC","symbol":"\uAB7C"},43901:{"value":"AB7D","name":"CHEROKEE SMALL LETTER HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AD","lowercase_mapping":"","titlecase_mapping":"13AD","symbol":"\uAB7D"},43902:{"value":"AB7E","name":"CHEROKEE SMALL LETTER HE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AE","lowercase_mapping":"","titlecase_mapping":"13AE","symbol":"\uAB7E"},43903:{"value":"AB7F","name":"CHEROKEE SMALL LETTER HI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13AF","lowercase_mapping":"","titlecase_mapping":"13AF","symbol":"\uAB7F"},43904:{"value":"AB80","name":"CHEROKEE SMALL LETTER HO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B0","lowercase_mapping":"","titlecase_mapping":"13B0","symbol":"\uAB80"},43905:{"value":"AB81","name":"CHEROKEE SMALL LETTER HU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B1","lowercase_mapping":"","titlecase_mapping":"13B1","symbol":"\uAB81"},43906:{"value":"AB82","name":"CHEROKEE SMALL LETTER HV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B2","lowercase_mapping":"","titlecase_mapping":"13B2","symbol":"\uAB82"},43907:{"value":"AB83","name":"CHEROKEE SMALL LETTER LA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B3","lowercase_mapping":"","titlecase_mapping":"13B3","symbol":"\uAB83"},43908:{"value":"AB84","name":"CHEROKEE SMALL LETTER LE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B4","lowercase_mapping":"","titlecase_mapping":"13B4","symbol":"\uAB84"},43909:{"value":"AB85","name":"CHEROKEE SMALL LETTER LI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B5","lowercase_mapping":"","titlecase_mapping":"13B5","symbol":"\uAB85"},43910:{"value":"AB86","name":"CHEROKEE SMALL LETTER LO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B6","lowercase_mapping":"","titlecase_mapping":"13B6","symbol":"\uAB86"},43911:{"value":"AB87","name":"CHEROKEE SMALL LETTER LU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B7","lowercase_mapping":"","titlecase_mapping":"13B7","symbol":"\uAB87"},43912:{"value":"AB88","name":"CHEROKEE SMALL LETTER LV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B8","lowercase_mapping":"","titlecase_mapping":"13B8","symbol":"\uAB88"},43913:{"value":"AB89","name":"CHEROKEE SMALL LETTER MA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13B9","lowercase_mapping":"","titlecase_mapping":"13B9","symbol":"\uAB89"},43914:{"value":"AB8A","name":"CHEROKEE SMALL LETTER ME","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BA","lowercase_mapping":"","titlecase_mapping":"13BA","symbol":"\uAB8A"},43915:{"value":"AB8B","name":"CHEROKEE SMALL LETTER MI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BB","lowercase_mapping":"","titlecase_mapping":"13BB","symbol":"\uAB8B"},43916:{"value":"AB8C","name":"CHEROKEE SMALL LETTER MO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BC","lowercase_mapping":"","titlecase_mapping":"13BC","symbol":"\uAB8C"},43917:{"value":"AB8D","name":"CHEROKEE SMALL LETTER MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BD","lowercase_mapping":"","titlecase_mapping":"13BD","symbol":"\uAB8D"},43918:{"value":"AB8E","name":"CHEROKEE SMALL LETTER NA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BE","lowercase_mapping":"","titlecase_mapping":"13BE","symbol":"\uAB8E"},43919:{"value":"AB8F","name":"CHEROKEE SMALL LETTER HNA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13BF","lowercase_mapping":"","titlecase_mapping":"13BF","symbol":"\uAB8F"},43920:{"value":"AB90","name":"CHEROKEE SMALL LETTER NAH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C0","lowercase_mapping":"","titlecase_mapping":"13C0","symbol":"\uAB90"},43921:{"value":"AB91","name":"CHEROKEE SMALL LETTER NE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C1","lowercase_mapping":"","titlecase_mapping":"13C1","symbol":"\uAB91"},43922:{"value":"AB92","name":"CHEROKEE SMALL LETTER NI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C2","lowercase_mapping":"","titlecase_mapping":"13C2","symbol":"\uAB92"},43923:{"value":"AB93","name":"CHEROKEE SMALL LETTER NO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C3","lowercase_mapping":"","titlecase_mapping":"13C3","symbol":"\uAB93"},43924:{"value":"AB94","name":"CHEROKEE SMALL LETTER NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C4","lowercase_mapping":"","titlecase_mapping":"13C4","symbol":"\uAB94"},43925:{"value":"AB95","name":"CHEROKEE SMALL LETTER NV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C5","lowercase_mapping":"","titlecase_mapping":"13C5","symbol":"\uAB95"},43926:{"value":"AB96","name":"CHEROKEE SMALL LETTER QUA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C6","lowercase_mapping":"","titlecase_mapping":"13C6","symbol":"\uAB96"},43927:{"value":"AB97","name":"CHEROKEE SMALL LETTER QUE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C7","lowercase_mapping":"","titlecase_mapping":"13C7","symbol":"\uAB97"},43928:{"value":"AB98","name":"CHEROKEE SMALL LETTER QUI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C8","lowercase_mapping":"","titlecase_mapping":"13C8","symbol":"\uAB98"},43929:{"value":"AB99","name":"CHEROKEE SMALL LETTER QUO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13C9","lowercase_mapping":"","titlecase_mapping":"13C9","symbol":"\uAB99"},43930:{"value":"AB9A","name":"CHEROKEE SMALL LETTER QUU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CA","lowercase_mapping":"","titlecase_mapping":"13CA","symbol":"\uAB9A"},43931:{"value":"AB9B","name":"CHEROKEE SMALL LETTER QUV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CB","lowercase_mapping":"","titlecase_mapping":"13CB","symbol":"\uAB9B"},43932:{"value":"AB9C","name":"CHEROKEE SMALL LETTER SA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CC","lowercase_mapping":"","titlecase_mapping":"13CC","symbol":"\uAB9C"},43933:{"value":"AB9D","name":"CHEROKEE SMALL LETTER S","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CD","lowercase_mapping":"","titlecase_mapping":"13CD","symbol":"\uAB9D"},43934:{"value":"AB9E","name":"CHEROKEE SMALL LETTER SE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CE","lowercase_mapping":"","titlecase_mapping":"13CE","symbol":"\uAB9E"},43935:{"value":"AB9F","name":"CHEROKEE SMALL LETTER SI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13CF","lowercase_mapping":"","titlecase_mapping":"13CF","symbol":"\uAB9F"},43936:{"value":"ABA0","name":"CHEROKEE SMALL LETTER SO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D0","lowercase_mapping":"","titlecase_mapping":"13D0","symbol":"\uABA0"},43937:{"value":"ABA1","name":"CHEROKEE SMALL LETTER SU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D1","lowercase_mapping":"","titlecase_mapping":"13D1","symbol":"\uABA1"},43938:{"value":"ABA2","name":"CHEROKEE SMALL LETTER SV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D2","lowercase_mapping":"","titlecase_mapping":"13D2","symbol":"\uABA2"},43939:{"value":"ABA3","name":"CHEROKEE SMALL LETTER DA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D3","lowercase_mapping":"","titlecase_mapping":"13D3","symbol":"\uABA3"},43940:{"value":"ABA4","name":"CHEROKEE SMALL LETTER TA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D4","lowercase_mapping":"","titlecase_mapping":"13D4","symbol":"\uABA4"},43941:{"value":"ABA5","name":"CHEROKEE SMALL LETTER DE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D5","lowercase_mapping":"","titlecase_mapping":"13D5","symbol":"\uABA5"},43942:{"value":"ABA6","name":"CHEROKEE SMALL LETTER TE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D6","lowercase_mapping":"","titlecase_mapping":"13D6","symbol":"\uABA6"},43943:{"value":"ABA7","name":"CHEROKEE SMALL LETTER DI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D7","lowercase_mapping":"","titlecase_mapping":"13D7","symbol":"\uABA7"},43944:{"value":"ABA8","name":"CHEROKEE SMALL LETTER TI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D8","lowercase_mapping":"","titlecase_mapping":"13D8","symbol":"\uABA8"},43945:{"value":"ABA9","name":"CHEROKEE SMALL LETTER DO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13D9","lowercase_mapping":"","titlecase_mapping":"13D9","symbol":"\uABA9"},43946:{"value":"ABAA","name":"CHEROKEE SMALL LETTER DU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DA","lowercase_mapping":"","titlecase_mapping":"13DA","symbol":"\uABAA"},43947:{"value":"ABAB","name":"CHEROKEE SMALL LETTER DV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DB","lowercase_mapping":"","titlecase_mapping":"13DB","symbol":"\uABAB"},43948:{"value":"ABAC","name":"CHEROKEE SMALL LETTER DLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DC","lowercase_mapping":"","titlecase_mapping":"13DC","symbol":"\uABAC"},43949:{"value":"ABAD","name":"CHEROKEE SMALL LETTER TLA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DD","lowercase_mapping":"","titlecase_mapping":"13DD","symbol":"\uABAD"},43950:{"value":"ABAE","name":"CHEROKEE SMALL LETTER TLE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DE","lowercase_mapping":"","titlecase_mapping":"13DE","symbol":"\uABAE"},43951:{"value":"ABAF","name":"CHEROKEE SMALL LETTER TLI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13DF","lowercase_mapping":"","titlecase_mapping":"13DF","symbol":"\uABAF"},43952:{"value":"ABB0","name":"CHEROKEE SMALL LETTER TLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E0","lowercase_mapping":"","titlecase_mapping":"13E0","symbol":"\uABB0"},43953:{"value":"ABB1","name":"CHEROKEE SMALL LETTER TLU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E1","lowercase_mapping":"","titlecase_mapping":"13E1","symbol":"\uABB1"},43954:{"value":"ABB2","name":"CHEROKEE SMALL LETTER TLV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E2","lowercase_mapping":"","titlecase_mapping":"13E2","symbol":"\uABB2"},43955:{"value":"ABB3","name":"CHEROKEE SMALL LETTER TSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E3","lowercase_mapping":"","titlecase_mapping":"13E3","symbol":"\uABB3"},43956:{"value":"ABB4","name":"CHEROKEE SMALL LETTER TSE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E4","lowercase_mapping":"","titlecase_mapping":"13E4","symbol":"\uABB4"},43957:{"value":"ABB5","name":"CHEROKEE SMALL LETTER TSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E5","lowercase_mapping":"","titlecase_mapping":"13E5","symbol":"\uABB5"},43958:{"value":"ABB6","name":"CHEROKEE SMALL LETTER TSO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E6","lowercase_mapping":"","titlecase_mapping":"13E6","symbol":"\uABB6"},43959:{"value":"ABB7","name":"CHEROKEE SMALL LETTER TSU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E7","lowercase_mapping":"","titlecase_mapping":"13E7","symbol":"\uABB7"},43960:{"value":"ABB8","name":"CHEROKEE SMALL LETTER TSV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E8","lowercase_mapping":"","titlecase_mapping":"13E8","symbol":"\uABB8"},43961:{"value":"ABB9","name":"CHEROKEE SMALL LETTER WA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13E9","lowercase_mapping":"","titlecase_mapping":"13E9","symbol":"\uABB9"},43962:{"value":"ABBA","name":"CHEROKEE SMALL LETTER WE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EA","lowercase_mapping":"","titlecase_mapping":"13EA","symbol":"\uABBA"},43963:{"value":"ABBB","name":"CHEROKEE SMALL LETTER WI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EB","lowercase_mapping":"","titlecase_mapping":"13EB","symbol":"\uABBB"},43964:{"value":"ABBC","name":"CHEROKEE SMALL LETTER WO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EC","lowercase_mapping":"","titlecase_mapping":"13EC","symbol":"\uABBC"},43965:{"value":"ABBD","name":"CHEROKEE SMALL LETTER WU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13ED","lowercase_mapping":"","titlecase_mapping":"13ED","symbol":"\uABBD"},43966:{"value":"ABBE","name":"CHEROKEE SMALL LETTER WV","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EE","lowercase_mapping":"","titlecase_mapping":"13EE","symbol":"\uABBE"},43967:{"value":"ABBF","name":"CHEROKEE SMALL LETTER YA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"13EF","lowercase_mapping":"","titlecase_mapping":"13EF","symbol":"\uABBF"},64256:{"value":"FB00","name":"LATIN SMALL LIGATURE FF","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB00"},64257:{"value":"FB01","name":"LATIN SMALL LIGATURE FI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB01"},64258:{"value":"FB02","name":"LATIN SMALL LIGATURE FL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB02"},64259:{"value":"FB03","name":"LATIN SMALL LIGATURE FFI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 0066 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB03"},64260:{"value":"FB04","name":"LATIN SMALL LIGATURE FFL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066 0066 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB04"},64261:{"value":"FB05","name":"LATIN SMALL LIGATURE LONG S T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 017F 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB05"},64262:{"value":"FB06","name":"LATIN SMALL LIGATURE ST","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB06"},64275:{"value":"FB13","name":"ARMENIAN SMALL LIGATURE MEN NOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0574 0576","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB13"},64276:{"value":"FB14","name":"ARMENIAN SMALL LIGATURE MEN ECH","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0574 0565","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB14"},64277:{"value":"FB15","name":"ARMENIAN SMALL LIGATURE MEN INI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0574 056B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB15"},64278:{"value":"FB16","name":"ARMENIAN SMALL LIGATURE VEW NOW","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 057E 0576","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB16"},64279:{"value":"FB17","name":"ARMENIAN SMALL LIGATURE MEN XEH","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0574 056D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uFB17"},65345:{"value":"FF41","name":"FULLWIDTH LATIN SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF21","lowercase_mapping":"","titlecase_mapping":"FF21","symbol":"\uFF41"},65346:{"value":"FF42","name":"FULLWIDTH LATIN SMALL LETTER B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF22","lowercase_mapping":"","titlecase_mapping":"FF22","symbol":"\uFF42"},65347:{"value":"FF43","name":"FULLWIDTH LATIN SMALL LETTER C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF23","lowercase_mapping":"","titlecase_mapping":"FF23","symbol":"\uFF43"},65348:{"value":"FF44","name":"FULLWIDTH LATIN SMALL LETTER D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF24","lowercase_mapping":"","titlecase_mapping":"FF24","symbol":"\uFF44"},65349:{"value":"FF45","name":"FULLWIDTH LATIN SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF25","lowercase_mapping":"","titlecase_mapping":"FF25","symbol":"\uFF45"},65350:{"value":"FF46","name":"FULLWIDTH LATIN SMALL LETTER F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF26","lowercase_mapping":"","titlecase_mapping":"FF26","symbol":"\uFF46"},65351:{"value":"FF47","name":"FULLWIDTH LATIN SMALL LETTER G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF27","lowercase_mapping":"","titlecase_mapping":"FF27","symbol":"\uFF47"},65352:{"value":"FF48","name":"FULLWIDTH LATIN SMALL LETTER H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF28","lowercase_mapping":"","titlecase_mapping":"FF28","symbol":"\uFF48"},65353:{"value":"FF49","name":"FULLWIDTH LATIN SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF29","lowercase_mapping":"","titlecase_mapping":"FF29","symbol":"\uFF49"},65354:{"value":"FF4A","name":"FULLWIDTH LATIN SMALL LETTER J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2A","lowercase_mapping":"","titlecase_mapping":"FF2A","symbol":"\uFF4A"},65355:{"value":"FF4B","name":"FULLWIDTH LATIN SMALL LETTER K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2B","lowercase_mapping":"","titlecase_mapping":"FF2B","symbol":"\uFF4B"},65356:{"value":"FF4C","name":"FULLWIDTH LATIN SMALL LETTER L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2C","lowercase_mapping":"","titlecase_mapping":"FF2C","symbol":"\uFF4C"},65357:{"value":"FF4D","name":"FULLWIDTH LATIN SMALL LETTER M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2D","lowercase_mapping":"","titlecase_mapping":"FF2D","symbol":"\uFF4D"},65358:{"value":"FF4E","name":"FULLWIDTH LATIN SMALL LETTER N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2E","lowercase_mapping":"","titlecase_mapping":"FF2E","symbol":"\uFF4E"},65359:{"value":"FF4F","name":"FULLWIDTH LATIN SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF2F","lowercase_mapping":"","titlecase_mapping":"FF2F","symbol":"\uFF4F"},65360:{"value":"FF50","name":"FULLWIDTH LATIN SMALL LETTER P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF30","lowercase_mapping":"","titlecase_mapping":"FF30","symbol":"\uFF50"},65361:{"value":"FF51","name":"FULLWIDTH LATIN SMALL LETTER Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF31","lowercase_mapping":"","titlecase_mapping":"FF31","symbol":"\uFF51"},65362:{"value":"FF52","name":"FULLWIDTH LATIN SMALL LETTER R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF32","lowercase_mapping":"","titlecase_mapping":"FF32","symbol":"\uFF52"},65363:{"value":"FF53","name":"FULLWIDTH LATIN SMALL LETTER S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF33","lowercase_mapping":"","titlecase_mapping":"FF33","symbol":"\uFF53"},65364:{"value":"FF54","name":"FULLWIDTH LATIN SMALL LETTER T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF34","lowercase_mapping":"","titlecase_mapping":"FF34","symbol":"\uFF54"},65365:{"value":"FF55","name":"FULLWIDTH LATIN SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF35","lowercase_mapping":"","titlecase_mapping":"FF35","symbol":"\uFF55"},65366:{"value":"FF56","name":"FULLWIDTH LATIN SMALL LETTER V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF36","lowercase_mapping":"","titlecase_mapping":"FF36","symbol":"\uFF56"},65367:{"value":"FF57","name":"FULLWIDTH LATIN SMALL LETTER W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF37","lowercase_mapping":"","titlecase_mapping":"FF37","symbol":"\uFF57"},65368:{"value":"FF58","name":"FULLWIDTH LATIN SMALL LETTER X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF38","lowercase_mapping":"","titlecase_mapping":"FF38","symbol":"\uFF58"},65369:{"value":"FF59","name":"FULLWIDTH LATIN SMALL LETTER Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF39","lowercase_mapping":"","titlecase_mapping":"FF39","symbol":"\uFF59"},65370:{"value":"FF5A","name":"FULLWIDTH LATIN SMALL LETTER Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"FF3A","lowercase_mapping":"","titlecase_mapping":"FF3A","symbol":"\uFF5A"},66600:{"value":"10428","name":"DESERET SMALL LETTER LONG I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10400","lowercase_mapping":"","titlecase_mapping":"10400","symbol":"\u0428"},66601:{"value":"10429","name":"DESERET SMALL LETTER LONG E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10401","lowercase_mapping":"","titlecase_mapping":"10401","symbol":"\u0429"},66602:{"value":"1042A","name":"DESERET SMALL LETTER LONG A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10402","lowercase_mapping":"","titlecase_mapping":"10402","symbol":"\u042A"},66603:{"value":"1042B","name":"DESERET SMALL LETTER LONG AH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10403","lowercase_mapping":"","titlecase_mapping":"10403","symbol":"\u042B"},66604:{"value":"1042C","name":"DESERET SMALL LETTER LONG O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10404","lowercase_mapping":"","titlecase_mapping":"10404","symbol":"\u042C"},66605:{"value":"1042D","name":"DESERET SMALL LETTER LONG OO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10405","lowercase_mapping":"","titlecase_mapping":"10405","symbol":"\u042D"},66606:{"value":"1042E","name":"DESERET SMALL LETTER SHORT I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10406","lowercase_mapping":"","titlecase_mapping":"10406","symbol":"\u042E"},66607:{"value":"1042F","name":"DESERET SMALL LETTER SHORT E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10407","lowercase_mapping":"","titlecase_mapping":"10407","symbol":"\u042F"},66608:{"value":"10430","name":"DESERET SMALL LETTER SHORT A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10408","lowercase_mapping":"","titlecase_mapping":"10408","symbol":"\u0430"},66609:{"value":"10431","name":"DESERET SMALL LETTER SHORT AH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10409","lowercase_mapping":"","titlecase_mapping":"10409","symbol":"\u0431"},66610:{"value":"10432","name":"DESERET SMALL LETTER SHORT O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040A","lowercase_mapping":"","titlecase_mapping":"1040A","symbol":"\u0432"},66611:{"value":"10433","name":"DESERET SMALL LETTER SHORT OO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040B","lowercase_mapping":"","titlecase_mapping":"1040B","symbol":"\u0433"},66612:{"value":"10434","name":"DESERET SMALL LETTER AY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040C","lowercase_mapping":"","titlecase_mapping":"1040C","symbol":"\u0434"},66613:{"value":"10435","name":"DESERET SMALL LETTER OW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040D","lowercase_mapping":"","titlecase_mapping":"1040D","symbol":"\u0435"},66614:{"value":"10436","name":"DESERET SMALL LETTER WU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040E","lowercase_mapping":"","titlecase_mapping":"1040E","symbol":"\u0436"},66615:{"value":"10437","name":"DESERET SMALL LETTER YEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1040F","lowercase_mapping":"","titlecase_mapping":"1040F","symbol":"\u0437"},66616:{"value":"10438","name":"DESERET SMALL LETTER H","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10410","lowercase_mapping":"","titlecase_mapping":"10410","symbol":"\u0438"},66617:{"value":"10439","name":"DESERET SMALL LETTER PEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10411","lowercase_mapping":"","titlecase_mapping":"10411","symbol":"\u0439"},66618:{"value":"1043A","name":"DESERET SMALL LETTER BEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10412","lowercase_mapping":"","titlecase_mapping":"10412","symbol":"\u043A"},66619:{"value":"1043B","name":"DESERET SMALL LETTER TEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10413","lowercase_mapping":"","titlecase_mapping":"10413","symbol":"\u043B"},66620:{"value":"1043C","name":"DESERET SMALL LETTER DEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10414","lowercase_mapping":"","titlecase_mapping":"10414","symbol":"\u043C"},66621:{"value":"1043D","name":"DESERET SMALL LETTER CHEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10415","lowercase_mapping":"","titlecase_mapping":"10415","symbol":"\u043D"},66622:{"value":"1043E","name":"DESERET SMALL LETTER JEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10416","lowercase_mapping":"","titlecase_mapping":"10416","symbol":"\u043E"},66623:{"value":"1043F","name":"DESERET SMALL LETTER KAY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10417","lowercase_mapping":"","titlecase_mapping":"10417","symbol":"\u043F"},66624:{"value":"10440","name":"DESERET SMALL LETTER GAY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10418","lowercase_mapping":"","titlecase_mapping":"10418","symbol":"\u0440"},66625:{"value":"10441","name":"DESERET SMALL LETTER EF","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10419","lowercase_mapping":"","titlecase_mapping":"10419","symbol":"\u0441"},66626:{"value":"10442","name":"DESERET SMALL LETTER VEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041A","lowercase_mapping":"","titlecase_mapping":"1041A","symbol":"\u0442"},66627:{"value":"10443","name":"DESERET SMALL LETTER ETH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041B","lowercase_mapping":"","titlecase_mapping":"1041B","symbol":"\u0443"},66628:{"value":"10444","name":"DESERET SMALL LETTER THEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041C","lowercase_mapping":"","titlecase_mapping":"1041C","symbol":"\u0444"},66629:{"value":"10445","name":"DESERET SMALL LETTER ES","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041D","lowercase_mapping":"","titlecase_mapping":"1041D","symbol":"\u0445"},66630:{"value":"10446","name":"DESERET SMALL LETTER ZEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041E","lowercase_mapping":"","titlecase_mapping":"1041E","symbol":"\u0446"},66631:{"value":"10447","name":"DESERET SMALL LETTER ESH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1041F","lowercase_mapping":"","titlecase_mapping":"1041F","symbol":"\u0447"},66632:{"value":"10448","name":"DESERET SMALL LETTER ZHEE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10420","lowercase_mapping":"","titlecase_mapping":"10420","symbol":"\u0448"},66633:{"value":"10449","name":"DESERET SMALL LETTER ER","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10421","lowercase_mapping":"","titlecase_mapping":"10421","symbol":"\u0449"},66634:{"value":"1044A","name":"DESERET SMALL LETTER EL","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10422","lowercase_mapping":"","titlecase_mapping":"10422","symbol":"\u044A"},66635:{"value":"1044B","name":"DESERET SMALL LETTER EM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10423","lowercase_mapping":"","titlecase_mapping":"10423","symbol":"\u044B"},66636:{"value":"1044C","name":"DESERET SMALL LETTER EN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10424","lowercase_mapping":"","titlecase_mapping":"10424","symbol":"\u044C"},66637:{"value":"1044D","name":"DESERET SMALL LETTER ENG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10425","lowercase_mapping":"","titlecase_mapping":"10425","symbol":"\u044D"},66638:{"value":"1044E","name":"DESERET SMALL LETTER OI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10426","lowercase_mapping":"","titlecase_mapping":"10426","symbol":"\u044E"},66639:{"value":"1044F","name":"DESERET SMALL LETTER EW","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10427","lowercase_mapping":"","titlecase_mapping":"10427","symbol":"\u044F"},66776:{"value":"104D8","name":"OSAGE SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B0","lowercase_mapping":"","titlecase_mapping":"104B0","symbol":"\u04D8"},66777:{"value":"104D9","name":"OSAGE SMALL LETTER AI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B1","lowercase_mapping":"","titlecase_mapping":"104B1","symbol":"\u04D9"},66778:{"value":"104DA","name":"OSAGE SMALL LETTER AIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B2","lowercase_mapping":"","titlecase_mapping":"104B2","symbol":"\u04DA"},66779:{"value":"104DB","name":"OSAGE SMALL LETTER AH","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B3","lowercase_mapping":"","titlecase_mapping":"104B3","symbol":"\u04DB"},66780:{"value":"104DC","name":"OSAGE SMALL LETTER BRA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B4","lowercase_mapping":"","titlecase_mapping":"104B4","symbol":"\u04DC"},66781:{"value":"104DD","name":"OSAGE SMALL LETTER CHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B5","lowercase_mapping":"","titlecase_mapping":"104B5","symbol":"\u04DD"},66782:{"value":"104DE","name":"OSAGE SMALL LETTER EHCHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B6","lowercase_mapping":"","titlecase_mapping":"104B6","symbol":"\u04DE"},66783:{"value":"104DF","name":"OSAGE SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B7","lowercase_mapping":"","titlecase_mapping":"104B7","symbol":"\u04DF"},66784:{"value":"104E0","name":"OSAGE SMALL LETTER EIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B8","lowercase_mapping":"","titlecase_mapping":"104B8","symbol":"\u04E0"},66785:{"value":"104E1","name":"OSAGE SMALL LETTER HA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104B9","lowercase_mapping":"","titlecase_mapping":"104B9","symbol":"\u04E1"},66786:{"value":"104E2","name":"OSAGE SMALL LETTER HYA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BA","lowercase_mapping":"","titlecase_mapping":"104BA","symbol":"\u04E2"},66787:{"value":"104E3","name":"OSAGE SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BB","lowercase_mapping":"","titlecase_mapping":"104BB","symbol":"\u04E3"},66788:{"value":"104E4","name":"OSAGE SMALL LETTER KA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BC","lowercase_mapping":"","titlecase_mapping":"104BC","symbol":"\u04E4"},66789:{"value":"104E5","name":"OSAGE SMALL LETTER EHKA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BD","lowercase_mapping":"","titlecase_mapping":"104BD","symbol":"\u04E5"},66790:{"value":"104E6","name":"OSAGE SMALL LETTER KYA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BE","lowercase_mapping":"","titlecase_mapping":"104BE","symbol":"\u04E6"},66791:{"value":"104E7","name":"OSAGE SMALL LETTER LA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104BF","lowercase_mapping":"","titlecase_mapping":"104BF","symbol":"\u04E7"},66792:{"value":"104E8","name":"OSAGE SMALL LETTER MA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C0","lowercase_mapping":"","titlecase_mapping":"104C0","symbol":"\u04E8"},66793:{"value":"104E9","name":"OSAGE SMALL LETTER NA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C1","lowercase_mapping":"","titlecase_mapping":"104C1","symbol":"\u04E9"},66794:{"value":"104EA","name":"OSAGE SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C2","lowercase_mapping":"","titlecase_mapping":"104C2","symbol":"\u04EA"},66795:{"value":"104EB","name":"OSAGE SMALL LETTER OIN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C3","lowercase_mapping":"","titlecase_mapping":"104C3","symbol":"\u04EB"},66796:{"value":"104EC","name":"OSAGE SMALL LETTER PA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C4","lowercase_mapping":"","titlecase_mapping":"104C4","symbol":"\u04EC"},66797:{"value":"104ED","name":"OSAGE SMALL LETTER EHPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C5","lowercase_mapping":"","titlecase_mapping":"104C5","symbol":"\u04ED"},66798:{"value":"104EE","name":"OSAGE SMALL LETTER SA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C6","lowercase_mapping":"","titlecase_mapping":"104C6","symbol":"\u04EE"},66799:{"value":"104EF","name":"OSAGE SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C7","lowercase_mapping":"","titlecase_mapping":"104C7","symbol":"\u04EF"},66800:{"value":"104F0","name":"OSAGE SMALL LETTER TA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C8","lowercase_mapping":"","titlecase_mapping":"104C8","symbol":"\u04F0"},66801:{"value":"104F1","name":"OSAGE SMALL LETTER EHTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104C9","lowercase_mapping":"","titlecase_mapping":"104C9","symbol":"\u04F1"},66802:{"value":"104F2","name":"OSAGE SMALL LETTER TSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CA","lowercase_mapping":"","titlecase_mapping":"104CA","symbol":"\u04F2"},66803:{"value":"104F3","name":"OSAGE SMALL LETTER EHTSA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CB","lowercase_mapping":"","titlecase_mapping":"104CB","symbol":"\u04F3"},66804:{"value":"104F4","name":"OSAGE SMALL LETTER TSHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CC","lowercase_mapping":"","titlecase_mapping":"104CC","symbol":"\u04F4"},66805:{"value":"104F5","name":"OSAGE SMALL LETTER DHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CD","lowercase_mapping":"","titlecase_mapping":"104CD","symbol":"\u04F5"},66806:{"value":"104F6","name":"OSAGE SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CE","lowercase_mapping":"","titlecase_mapping":"104CE","symbol":"\u04F6"},66807:{"value":"104F7","name":"OSAGE SMALL LETTER WA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104CF","lowercase_mapping":"","titlecase_mapping":"104CF","symbol":"\u04F7"},66808:{"value":"104F8","name":"OSAGE SMALL LETTER KHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104D0","lowercase_mapping":"","titlecase_mapping":"104D0","symbol":"\u04F8"},66809:{"value":"104F9","name":"OSAGE SMALL LETTER GHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104D1","lowercase_mapping":"","titlecase_mapping":"104D1","symbol":"\u04F9"},66810:{"value":"104FA","name":"OSAGE SMALL LETTER ZA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104D2","lowercase_mapping":"","titlecase_mapping":"104D2","symbol":"\u04FA"},66811:{"value":"104FB","name":"OSAGE SMALL LETTER ZHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"104D3","lowercase_mapping":"","titlecase_mapping":"104D3","symbol":"\u04FB"},68800:{"value":"10CC0","name":"OLD HUNGARIAN SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C80","lowercase_mapping":"","titlecase_mapping":"10C80","symbol":"\u0CC0"},68801:{"value":"10CC1","name":"OLD HUNGARIAN SMALL LETTER AA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C81","lowercase_mapping":"","titlecase_mapping":"10C81","symbol":"\u0CC1"},68802:{"value":"10CC2","name":"OLD HUNGARIAN SMALL LETTER EB","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C82","lowercase_mapping":"","titlecase_mapping":"10C82","symbol":"\u0CC2"},68803:{"value":"10CC3","name":"OLD HUNGARIAN SMALL LETTER AMB","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C83","lowercase_mapping":"","titlecase_mapping":"10C83","symbol":"\u0CC3"},68804:{"value":"10CC4","name":"OLD HUNGARIAN SMALL LETTER EC","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C84","lowercase_mapping":"","titlecase_mapping":"10C84","symbol":"\u0CC4"},68805:{"value":"10CC5","name":"OLD HUNGARIAN SMALL LETTER ENC","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C85","lowercase_mapping":"","titlecase_mapping":"10C85","symbol":"\u0CC5"},68806:{"value":"10CC6","name":"OLD HUNGARIAN SMALL LETTER ECS","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C86","lowercase_mapping":"","titlecase_mapping":"10C86","symbol":"\u0CC6"},68807:{"value":"10CC7","name":"OLD HUNGARIAN SMALL LETTER ED","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C87","lowercase_mapping":"","titlecase_mapping":"10C87","symbol":"\u0CC7"},68808:{"value":"10CC8","name":"OLD HUNGARIAN SMALL LETTER AND","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C88","lowercase_mapping":"","titlecase_mapping":"10C88","symbol":"\u0CC8"},68809:{"value":"10CC9","name":"OLD HUNGARIAN SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C89","lowercase_mapping":"","titlecase_mapping":"10C89","symbol":"\u0CC9"},68810:{"value":"10CCA","name":"OLD HUNGARIAN SMALL LETTER CLOSE E","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8A","lowercase_mapping":"","titlecase_mapping":"10C8A","symbol":"\u0CCA"},68811:{"value":"10CCB","name":"OLD HUNGARIAN SMALL LETTER EE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8B","lowercase_mapping":"","titlecase_mapping":"10C8B","symbol":"\u0CCB"},68812:{"value":"10CCC","name":"OLD HUNGARIAN SMALL LETTER EF","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8C","lowercase_mapping":"","titlecase_mapping":"10C8C","symbol":"\u0CCC"},68813:{"value":"10CCD","name":"OLD HUNGARIAN SMALL LETTER EG","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8D","lowercase_mapping":"","titlecase_mapping":"10C8D","symbol":"\u0CCD"},68814:{"value":"10CCE","name":"OLD HUNGARIAN SMALL LETTER EGY","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8E","lowercase_mapping":"","titlecase_mapping":"10C8E","symbol":"\u0CCE"},68815:{"value":"10CCF","name":"OLD HUNGARIAN SMALL LETTER EH","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C8F","lowercase_mapping":"","titlecase_mapping":"10C8F","symbol":"\u0CCF"},68816:{"value":"10CD0","name":"OLD HUNGARIAN SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C90","lowercase_mapping":"","titlecase_mapping":"10C90","symbol":"\u0CD0"},68817:{"value":"10CD1","name":"OLD HUNGARIAN SMALL LETTER II","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C91","lowercase_mapping":"","titlecase_mapping":"10C91","symbol":"\u0CD1"},68818:{"value":"10CD2","name":"OLD HUNGARIAN SMALL LETTER EJ","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C92","lowercase_mapping":"","titlecase_mapping":"10C92","symbol":"\u0CD2"},68819:{"value":"10CD3","name":"OLD HUNGARIAN SMALL LETTER EK","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C93","lowercase_mapping":"","titlecase_mapping":"10C93","symbol":"\u0CD3"},68820:{"value":"10CD4","name":"OLD HUNGARIAN SMALL LETTER AK","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C94","lowercase_mapping":"","titlecase_mapping":"10C94","symbol":"\u0CD4"},68821:{"value":"10CD5","name":"OLD HUNGARIAN SMALL LETTER UNK","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C95","lowercase_mapping":"","titlecase_mapping":"10C95","symbol":"\u0CD5"},68822:{"value":"10CD6","name":"OLD HUNGARIAN SMALL LETTER EL","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C96","lowercase_mapping":"","titlecase_mapping":"10C96","symbol":"\u0CD6"},68823:{"value":"10CD7","name":"OLD HUNGARIAN SMALL LETTER ELY","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C97","lowercase_mapping":"","titlecase_mapping":"10C97","symbol":"\u0CD7"},68824:{"value":"10CD8","name":"OLD HUNGARIAN SMALL LETTER EM","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C98","lowercase_mapping":"","titlecase_mapping":"10C98","symbol":"\u0CD8"},68825:{"value":"10CD9","name":"OLD HUNGARIAN SMALL LETTER EN","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C99","lowercase_mapping":"","titlecase_mapping":"10C99","symbol":"\u0CD9"},68826:{"value":"10CDA","name":"OLD HUNGARIAN SMALL LETTER ENY","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9A","lowercase_mapping":"","titlecase_mapping":"10C9A","symbol":"\u0CDA"},68827:{"value":"10CDB","name":"OLD HUNGARIAN SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9B","lowercase_mapping":"","titlecase_mapping":"10C9B","symbol":"\u0CDB"},68828:{"value":"10CDC","name":"OLD HUNGARIAN SMALL LETTER OO","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9C","lowercase_mapping":"","titlecase_mapping":"10C9C","symbol":"\u0CDC"},68829:{"value":"10CDD","name":"OLD HUNGARIAN SMALL LETTER NIKOLSBURG OE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9D","lowercase_mapping":"","titlecase_mapping":"10C9D","symbol":"\u0CDD"},68830:{"value":"10CDE","name":"OLD HUNGARIAN SMALL LETTER RUDIMENTA OE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9E","lowercase_mapping":"","titlecase_mapping":"10C9E","symbol":"\u0CDE"},68831:{"value":"10CDF","name":"OLD HUNGARIAN SMALL LETTER OEE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10C9F","lowercase_mapping":"","titlecase_mapping":"10C9F","symbol":"\u0CDF"},68832:{"value":"10CE0","name":"OLD HUNGARIAN SMALL LETTER EP","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA0","lowercase_mapping":"","titlecase_mapping":"10CA0","symbol":"\u0CE0"},68833:{"value":"10CE1","name":"OLD HUNGARIAN SMALL LETTER EMP","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA1","lowercase_mapping":"","titlecase_mapping":"10CA1","symbol":"\u0CE1"},68834:{"value":"10CE2","name":"OLD HUNGARIAN SMALL LETTER ER","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA2","lowercase_mapping":"","titlecase_mapping":"10CA2","symbol":"\u0CE2"},68835:{"value":"10CE3","name":"OLD HUNGARIAN SMALL LETTER SHORT ER","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA3","lowercase_mapping":"","titlecase_mapping":"10CA3","symbol":"\u0CE3"},68836:{"value":"10CE4","name":"OLD HUNGARIAN SMALL LETTER ES","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA4","lowercase_mapping":"","titlecase_mapping":"10CA4","symbol":"\u0CE4"},68837:{"value":"10CE5","name":"OLD HUNGARIAN SMALL LETTER ESZ","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA5","lowercase_mapping":"","titlecase_mapping":"10CA5","symbol":"\u0CE5"},68838:{"value":"10CE6","name":"OLD HUNGARIAN SMALL LETTER ET","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA6","lowercase_mapping":"","titlecase_mapping":"10CA6","symbol":"\u0CE6"},68839:{"value":"10CE7","name":"OLD HUNGARIAN SMALL LETTER ENT","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA7","lowercase_mapping":"","titlecase_mapping":"10CA7","symbol":"\u0CE7"},68840:{"value":"10CE8","name":"OLD HUNGARIAN SMALL LETTER ETY","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA8","lowercase_mapping":"","titlecase_mapping":"10CA8","symbol":"\u0CE8"},68841:{"value":"10CE9","name":"OLD HUNGARIAN SMALL LETTER ECH","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CA9","lowercase_mapping":"","titlecase_mapping":"10CA9","symbol":"\u0CE9"},68842:{"value":"10CEA","name":"OLD HUNGARIAN SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAA","lowercase_mapping":"","titlecase_mapping":"10CAA","symbol":"\u0CEA"},68843:{"value":"10CEB","name":"OLD HUNGARIAN SMALL LETTER UU","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAB","lowercase_mapping":"","titlecase_mapping":"10CAB","symbol":"\u0CEB"},68844:{"value":"10CEC","name":"OLD HUNGARIAN SMALL LETTER NIKOLSBURG UE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAC","lowercase_mapping":"","titlecase_mapping":"10CAC","symbol":"\u0CEC"},68845:{"value":"10CED","name":"OLD HUNGARIAN SMALL LETTER RUDIMENTA UE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAD","lowercase_mapping":"","titlecase_mapping":"10CAD","symbol":"\u0CED"},68846:{"value":"10CEE","name":"OLD HUNGARIAN SMALL LETTER EV","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAE","lowercase_mapping":"","titlecase_mapping":"10CAE","symbol":"\u0CEE"},68847:{"value":"10CEF","name":"OLD HUNGARIAN SMALL LETTER EZ","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CAF","lowercase_mapping":"","titlecase_mapping":"10CAF","symbol":"\u0CEF"},68848:{"value":"10CF0","name":"OLD HUNGARIAN SMALL LETTER EZS","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CB0","lowercase_mapping":"","titlecase_mapping":"10CB0","symbol":"\u0CF0"},68849:{"value":"10CF1","name":"OLD HUNGARIAN SMALL LETTER ENT-SHAPED SIGN","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CB1","lowercase_mapping":"","titlecase_mapping":"10CB1","symbol":"\u0CF1"},68850:{"value":"10CF2","name":"OLD HUNGARIAN SMALL LETTER US","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"10CB2","lowercase_mapping":"","titlecase_mapping":"10CB2","symbol":"\u0CF2"},71872:{"value":"118C0","name":"WARANG CITI SMALL LETTER NGAA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A0","lowercase_mapping":"","titlecase_mapping":"118A0","symbol":"\u18C0"},71873:{"value":"118C1","name":"WARANG CITI SMALL LETTER A","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A1","lowercase_mapping":"","titlecase_mapping":"118A1","symbol":"\u18C1"},71874:{"value":"118C2","name":"WARANG CITI SMALL LETTER WI","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A2","lowercase_mapping":"","titlecase_mapping":"118A2","symbol":"\u18C2"},71875:{"value":"118C3","name":"WARANG CITI SMALL LETTER YU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A3","lowercase_mapping":"","titlecase_mapping":"118A3","symbol":"\u18C3"},71876:{"value":"118C4","name":"WARANG CITI SMALL LETTER YA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A4","lowercase_mapping":"","titlecase_mapping":"118A4","symbol":"\u18C4"},71877:{"value":"118C5","name":"WARANG CITI SMALL LETTER YO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A5","lowercase_mapping":"","titlecase_mapping":"118A5","symbol":"\u18C5"},71878:{"value":"118C6","name":"WARANG CITI SMALL LETTER II","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A6","lowercase_mapping":"","titlecase_mapping":"118A6","symbol":"\u18C6"},71879:{"value":"118C7","name":"WARANG CITI SMALL LETTER UU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A7","lowercase_mapping":"","titlecase_mapping":"118A7","symbol":"\u18C7"},71880:{"value":"118C8","name":"WARANG CITI SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A8","lowercase_mapping":"","titlecase_mapping":"118A8","symbol":"\u18C8"},71881:{"value":"118C9","name":"WARANG CITI SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118A9","lowercase_mapping":"","titlecase_mapping":"118A9","symbol":"\u18C9"},71882:{"value":"118CA","name":"WARANG CITI SMALL LETTER ANG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AA","lowercase_mapping":"","titlecase_mapping":"118AA","symbol":"\u18CA"},71883:{"value":"118CB","name":"WARANG CITI SMALL LETTER GA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AB","lowercase_mapping":"","titlecase_mapping":"118AB","symbol":"\u18CB"},71884:{"value":"118CC","name":"WARANG CITI SMALL LETTER KO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AC","lowercase_mapping":"","titlecase_mapping":"118AC","symbol":"\u18CC"},71885:{"value":"118CD","name":"WARANG CITI SMALL LETTER ENY","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AD","lowercase_mapping":"","titlecase_mapping":"118AD","symbol":"\u18CD"},71886:{"value":"118CE","name":"WARANG CITI SMALL LETTER YUJ","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AE","lowercase_mapping":"","titlecase_mapping":"118AE","symbol":"\u18CE"},71887:{"value":"118CF","name":"WARANG CITI SMALL LETTER UC","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118AF","lowercase_mapping":"","titlecase_mapping":"118AF","symbol":"\u18CF"},71888:{"value":"118D0","name":"WARANG CITI SMALL LETTER ENN","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B0","lowercase_mapping":"","titlecase_mapping":"118B0","symbol":"\u18D0"},71889:{"value":"118D1","name":"WARANG CITI SMALL LETTER ODD","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B1","lowercase_mapping":"","titlecase_mapping":"118B1","symbol":"\u18D1"},71890:{"value":"118D2","name":"WARANG CITI SMALL LETTER TTE","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B2","lowercase_mapping":"","titlecase_mapping":"118B2","symbol":"\u18D2"},71891:{"value":"118D3","name":"WARANG CITI SMALL LETTER NUNG","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B3","lowercase_mapping":"","titlecase_mapping":"118B3","symbol":"\u18D3"},71892:{"value":"118D4","name":"WARANG CITI SMALL LETTER DA","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B4","lowercase_mapping":"","titlecase_mapping":"118B4","symbol":"\u18D4"},71893:{"value":"118D5","name":"WARANG CITI SMALL LETTER AT","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B5","lowercase_mapping":"","titlecase_mapping":"118B5","symbol":"\u18D5"},71894:{"value":"118D6","name":"WARANG CITI SMALL LETTER AM","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B6","lowercase_mapping":"","titlecase_mapping":"118B6","symbol":"\u18D6"},71895:{"value":"118D7","name":"WARANG CITI SMALL LETTER BU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B7","lowercase_mapping":"","titlecase_mapping":"118B7","symbol":"\u18D7"},71896:{"value":"118D8","name":"WARANG CITI SMALL LETTER PU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B8","lowercase_mapping":"","titlecase_mapping":"118B8","symbol":"\u18D8"},71897:{"value":"118D9","name":"WARANG CITI SMALL LETTER HIYO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118B9","lowercase_mapping":"","titlecase_mapping":"118B9","symbol":"\u18D9"},71898:{"value":"118DA","name":"WARANG CITI SMALL LETTER HOLO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BA","lowercase_mapping":"","titlecase_mapping":"118BA","symbol":"\u18DA"},71899:{"value":"118DB","name":"WARANG CITI SMALL LETTER HORR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BB","lowercase_mapping":"","titlecase_mapping":"118BB","symbol":"\u18DB"},71900:{"value":"118DC","name":"WARANG CITI SMALL LETTER HAR","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BC","lowercase_mapping":"","titlecase_mapping":"118BC","symbol":"\u18DC"},71901:{"value":"118DD","name":"WARANG CITI SMALL LETTER SSUU","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BD","lowercase_mapping":"","titlecase_mapping":"118BD","symbol":"\u18DD"},71902:{"value":"118DE","name":"WARANG CITI SMALL LETTER SII","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BE","lowercase_mapping":"","titlecase_mapping":"118BE","symbol":"\u18DE"},71903:{"value":"118DF","name":"WARANG CITI SMALL LETTER VIYO","category":"Ll","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"118BF","lowercase_mapping":"","titlecase_mapping":"118BF","symbol":"\u18DF"},119834:{"value":"1D41A","name":"MATHEMATICAL BOLD SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41A"},119835:{"value":"1D41B","name":"MATHEMATICAL BOLD SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41B"},119836:{"value":"1D41C","name":"MATHEMATICAL BOLD SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41C"},119837:{"value":"1D41D","name":"MATHEMATICAL BOLD SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41D"},119838:{"value":"1D41E","name":"MATHEMATICAL BOLD SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41E"},119839:{"value":"1D41F","name":"MATHEMATICAL BOLD SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD41F"},119840:{"value":"1D420","name":"MATHEMATICAL BOLD SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD420"},119841:{"value":"1D421","name":"MATHEMATICAL BOLD SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD421"},119842:{"value":"1D422","name":"MATHEMATICAL BOLD SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD422"},119843:{"value":"1D423","name":"MATHEMATICAL BOLD SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD423"},119844:{"value":"1D424","name":"MATHEMATICAL BOLD SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD424"},119845:{"value":"1D425","name":"MATHEMATICAL BOLD SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD425"},119846:{"value":"1D426","name":"MATHEMATICAL BOLD SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD426"},119847:{"value":"1D427","name":"MATHEMATICAL BOLD SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD427"},119848:{"value":"1D428","name":"MATHEMATICAL BOLD SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD428"},119849:{"value":"1D429","name":"MATHEMATICAL BOLD SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD429"},119850:{"value":"1D42A","name":"MATHEMATICAL BOLD SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42A"},119851:{"value":"1D42B","name":"MATHEMATICAL BOLD SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42B"},119852:{"value":"1D42C","name":"MATHEMATICAL BOLD SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42C"},119853:{"value":"1D42D","name":"MATHEMATICAL BOLD SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42D"},119854:{"value":"1D42E","name":"MATHEMATICAL BOLD SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42E"},119855:{"value":"1D42F","name":"MATHEMATICAL BOLD SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD42F"},119856:{"value":"1D430","name":"MATHEMATICAL BOLD SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD430"},119857:{"value":"1D431","name":"MATHEMATICAL BOLD SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD431"},119858:{"value":"1D432","name":"MATHEMATICAL BOLD SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD432"},119859:{"value":"1D433","name":"MATHEMATICAL BOLD SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD433"},119886:{"value":"1D44E","name":"MATHEMATICAL ITALIC SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD44E"},119887:{"value":"1D44F","name":"MATHEMATICAL ITALIC SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD44F"},119888:{"value":"1D450","name":"MATHEMATICAL ITALIC SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD450"},119889:{"value":"1D451","name":"MATHEMATICAL ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD451"},119890:{"value":"1D452","name":"MATHEMATICAL ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD452"},119891:{"value":"1D453","name":"MATHEMATICAL ITALIC SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD453"},119892:{"value":"1D454","name":"MATHEMATICAL ITALIC SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD454"},119894:{"value":"1D456","name":"MATHEMATICAL ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD456"},119895:{"value":"1D457","name":"MATHEMATICAL ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD457"},119896:{"value":"1D458","name":"MATHEMATICAL ITALIC SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD458"},119897:{"value":"1D459","name":"MATHEMATICAL ITALIC SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD459"},119898:{"value":"1D45A","name":"MATHEMATICAL ITALIC SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45A"},119899:{"value":"1D45B","name":"MATHEMATICAL ITALIC SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45B"},119900:{"value":"1D45C","name":"MATHEMATICAL ITALIC SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45C"},119901:{"value":"1D45D","name":"MATHEMATICAL ITALIC SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45D"},119902:{"value":"1D45E","name":"MATHEMATICAL ITALIC SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45E"},119903:{"value":"1D45F","name":"MATHEMATICAL ITALIC SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD45F"},119904:{"value":"1D460","name":"MATHEMATICAL ITALIC SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD460"},119905:{"value":"1D461","name":"MATHEMATICAL ITALIC SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD461"},119906:{"value":"1D462","name":"MATHEMATICAL ITALIC SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD462"},119907:{"value":"1D463","name":"MATHEMATICAL ITALIC SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD463"},119908:{"value":"1D464","name":"MATHEMATICAL ITALIC SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD464"},119909:{"value":"1D465","name":"MATHEMATICAL ITALIC SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD465"},119910:{"value":"1D466","name":"MATHEMATICAL ITALIC SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD466"},119911:{"value":"1D467","name":"MATHEMATICAL ITALIC SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD467"},119938:{"value":"1D482","name":"MATHEMATICAL BOLD ITALIC SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD482"},119939:{"value":"1D483","name":"MATHEMATICAL BOLD ITALIC SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD483"},119940:{"value":"1D484","name":"MATHEMATICAL BOLD ITALIC SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD484"},119941:{"value":"1D485","name":"MATHEMATICAL BOLD ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD485"},119942:{"value":"1D486","name":"MATHEMATICAL BOLD ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD486"},119943:{"value":"1D487","name":"MATHEMATICAL BOLD ITALIC SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD487"},119944:{"value":"1D488","name":"MATHEMATICAL BOLD ITALIC SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD488"},119945:{"value":"1D489","name":"MATHEMATICAL BOLD ITALIC SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD489"},119946:{"value":"1D48A","name":"MATHEMATICAL BOLD ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48A"},119947:{"value":"1D48B","name":"MATHEMATICAL BOLD ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48B"},119948:{"value":"1D48C","name":"MATHEMATICAL BOLD ITALIC SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48C"},119949:{"value":"1D48D","name":"MATHEMATICAL BOLD ITALIC SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48D"},119950:{"value":"1D48E","name":"MATHEMATICAL BOLD ITALIC SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48E"},119951:{"value":"1D48F","name":"MATHEMATICAL BOLD ITALIC SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD48F"},119952:{"value":"1D490","name":"MATHEMATICAL BOLD ITALIC SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD490"},119953:{"value":"1D491","name":"MATHEMATICAL BOLD ITALIC SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD491"},119954:{"value":"1D492","name":"MATHEMATICAL BOLD ITALIC SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD492"},119955:{"value":"1D493","name":"MATHEMATICAL BOLD ITALIC SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD493"},119956:{"value":"1D494","name":"MATHEMATICAL BOLD ITALIC SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD494"},119957:{"value":"1D495","name":"MATHEMATICAL BOLD ITALIC SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD495"},119958:{"value":"1D496","name":"MATHEMATICAL BOLD ITALIC SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD496"},119959:{"value":"1D497","name":"MATHEMATICAL BOLD ITALIC SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD497"},119960:{"value":"1D498","name":"MATHEMATICAL BOLD ITALIC SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD498"},119961:{"value":"1D499","name":"MATHEMATICAL BOLD ITALIC SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD499"},119962:{"value":"1D49A","name":"MATHEMATICAL BOLD ITALIC SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD49A"},119963:{"value":"1D49B","name":"MATHEMATICAL BOLD ITALIC SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD49B"},119990:{"value":"1D4B6","name":"MATHEMATICAL SCRIPT SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4B6"},119991:{"value":"1D4B7","name":"MATHEMATICAL SCRIPT SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4B7"},119992:{"value":"1D4B8","name":"MATHEMATICAL SCRIPT SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4B8"},119993:{"value":"1D4B9","name":"MATHEMATICAL SCRIPT SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4B9"},119995:{"value":"1D4BB","name":"MATHEMATICAL SCRIPT SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4BB"},119997:{"value":"1D4BD","name":"MATHEMATICAL SCRIPT SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4BD"},119998:{"value":"1D4BE","name":"MATHEMATICAL SCRIPT SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4BE"},119999:{"value":"1D4BF","name":"MATHEMATICAL SCRIPT SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4BF"},120000:{"value":"1D4C0","name":"MATHEMATICAL SCRIPT SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C0"},120001:{"value":"1D4C1","name":"MATHEMATICAL SCRIPT SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C1"},120002:{"value":"1D4C2","name":"MATHEMATICAL SCRIPT SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C2"},120003:{"value":"1D4C3","name":"MATHEMATICAL SCRIPT SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C3"},120005:{"value":"1D4C5","name":"MATHEMATICAL SCRIPT SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C5"},120006:{"value":"1D4C6","name":"MATHEMATICAL SCRIPT SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C6"},120007:{"value":"1D4C7","name":"MATHEMATICAL SCRIPT SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C7"},120008:{"value":"1D4C8","name":"MATHEMATICAL SCRIPT SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C8"},120009:{"value":"1D4C9","name":"MATHEMATICAL SCRIPT SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4C9"},120010:{"value":"1D4CA","name":"MATHEMATICAL SCRIPT SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CA"},120011:{"value":"1D4CB","name":"MATHEMATICAL SCRIPT SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CB"},120012:{"value":"1D4CC","name":"MATHEMATICAL SCRIPT SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CC"},120013:{"value":"1D4CD","name":"MATHEMATICAL SCRIPT SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CD"},120014:{"value":"1D4CE","name":"MATHEMATICAL SCRIPT SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CE"},120015:{"value":"1D4CF","name":"MATHEMATICAL SCRIPT SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4CF"},120042:{"value":"1D4EA","name":"MATHEMATICAL BOLD SCRIPT SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EA"},120043:{"value":"1D4EB","name":"MATHEMATICAL BOLD SCRIPT SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EB"},120044:{"value":"1D4EC","name":"MATHEMATICAL BOLD SCRIPT SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EC"},120045:{"value":"1D4ED","name":"MATHEMATICAL BOLD SCRIPT SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4ED"},120046:{"value":"1D4EE","name":"MATHEMATICAL BOLD SCRIPT SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EE"},120047:{"value":"1D4EF","name":"MATHEMATICAL BOLD SCRIPT SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4EF"},120048:{"value":"1D4F0","name":"MATHEMATICAL BOLD SCRIPT SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F0"},120049:{"value":"1D4F1","name":"MATHEMATICAL BOLD SCRIPT SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F1"},120050:{"value":"1D4F2","name":"MATHEMATICAL BOLD SCRIPT SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F2"},120051:{"value":"1D4F3","name":"MATHEMATICAL BOLD SCRIPT SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F3"},120052:{"value":"1D4F4","name":"MATHEMATICAL BOLD SCRIPT SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F4"},120053:{"value":"1D4F5","name":"MATHEMATICAL BOLD SCRIPT SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F5"},120054:{"value":"1D4F6","name":"MATHEMATICAL BOLD SCRIPT SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F6"},120055:{"value":"1D4F7","name":"MATHEMATICAL BOLD SCRIPT SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F7"},120056:{"value":"1D4F8","name":"MATHEMATICAL BOLD SCRIPT SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F8"},120057:{"value":"1D4F9","name":"MATHEMATICAL BOLD SCRIPT SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4F9"},120058:{"value":"1D4FA","name":"MATHEMATICAL BOLD SCRIPT SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FA"},120059:{"value":"1D4FB","name":"MATHEMATICAL BOLD SCRIPT SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FB"},120060:{"value":"1D4FC","name":"MATHEMATICAL BOLD SCRIPT SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FC"},120061:{"value":"1D4FD","name":"MATHEMATICAL BOLD SCRIPT SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FD"},120062:{"value":"1D4FE","name":"MATHEMATICAL BOLD SCRIPT SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FE"},120063:{"value":"1D4FF","name":"MATHEMATICAL BOLD SCRIPT SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD4FF"},120064:{"value":"1D500","name":"MATHEMATICAL BOLD SCRIPT SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD500"},120065:{"value":"1D501","name":"MATHEMATICAL BOLD SCRIPT SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD501"},120066:{"value":"1D502","name":"MATHEMATICAL BOLD SCRIPT SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD502"},120067:{"value":"1D503","name":"MATHEMATICAL BOLD SCRIPT SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD503"},120094:{"value":"1D51E","name":"MATHEMATICAL FRAKTUR SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD51E"},120095:{"value":"1D51F","name":"MATHEMATICAL FRAKTUR SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD51F"},120096:{"value":"1D520","name":"MATHEMATICAL FRAKTUR SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD520"},120097:{"value":"1D521","name":"MATHEMATICAL FRAKTUR SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD521"},120098:{"value":"1D522","name":"MATHEMATICAL FRAKTUR SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD522"},120099:{"value":"1D523","name":"MATHEMATICAL FRAKTUR SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD523"},120100:{"value":"1D524","name":"MATHEMATICAL FRAKTUR SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD524"},120101:{"value":"1D525","name":"MATHEMATICAL FRAKTUR SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD525"},120102:{"value":"1D526","name":"MATHEMATICAL FRAKTUR SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD526"},120103:{"value":"1D527","name":"MATHEMATICAL FRAKTUR SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD527"},120104:{"value":"1D528","name":"MATHEMATICAL FRAKTUR SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD528"},120105:{"value":"1D529","name":"MATHEMATICAL FRAKTUR SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD529"},120106:{"value":"1D52A","name":"MATHEMATICAL FRAKTUR SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52A"},120107:{"value":"1D52B","name":"MATHEMATICAL FRAKTUR SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52B"},120108:{"value":"1D52C","name":"MATHEMATICAL FRAKTUR SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52C"},120109:{"value":"1D52D","name":"MATHEMATICAL FRAKTUR SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52D"},120110:{"value":"1D52E","name":"MATHEMATICAL FRAKTUR SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52E"},120111:{"value":"1D52F","name":"MATHEMATICAL FRAKTUR SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD52F"},120112:{"value":"1D530","name":"MATHEMATICAL FRAKTUR SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD530"},120113:{"value":"1D531","name":"MATHEMATICAL FRAKTUR SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD531"},120114:{"value":"1D532","name":"MATHEMATICAL FRAKTUR SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD532"},120115:{"value":"1D533","name":"MATHEMATICAL FRAKTUR SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD533"},120116:{"value":"1D534","name":"MATHEMATICAL FRAKTUR SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD534"},120117:{"value":"1D535","name":"MATHEMATICAL FRAKTUR SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD535"},120118:{"value":"1D536","name":"MATHEMATICAL FRAKTUR SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD536"},120119:{"value":"1D537","name":"MATHEMATICAL FRAKTUR SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD537"},120146:{"value":"1D552","name":"MATHEMATICAL DOUBLE-STRUCK SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD552"},120147:{"value":"1D553","name":"MATHEMATICAL DOUBLE-STRUCK SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD553"},120148:{"value":"1D554","name":"MATHEMATICAL DOUBLE-STRUCK SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD554"},120149:{"value":"1D555","name":"MATHEMATICAL DOUBLE-STRUCK SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD555"},120150:{"value":"1D556","name":"MATHEMATICAL DOUBLE-STRUCK SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD556"},120151:{"value":"1D557","name":"MATHEMATICAL DOUBLE-STRUCK SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD557"},120152:{"value":"1D558","name":"MATHEMATICAL DOUBLE-STRUCK SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD558"},120153:{"value":"1D559","name":"MATHEMATICAL DOUBLE-STRUCK SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD559"},120154:{"value":"1D55A","name":"MATHEMATICAL DOUBLE-STRUCK SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55A"},120155:{"value":"1D55B","name":"MATHEMATICAL DOUBLE-STRUCK SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55B"},120156:{"value":"1D55C","name":"MATHEMATICAL DOUBLE-STRUCK SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55C"},120157:{"value":"1D55D","name":"MATHEMATICAL DOUBLE-STRUCK SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55D"},120158:{"value":"1D55E","name":"MATHEMATICAL DOUBLE-STRUCK SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55E"},120159:{"value":"1D55F","name":"MATHEMATICAL DOUBLE-STRUCK SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD55F"},120160:{"value":"1D560","name":"MATHEMATICAL DOUBLE-STRUCK SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD560"},120161:{"value":"1D561","name":"MATHEMATICAL DOUBLE-STRUCK SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD561"},120162:{"value":"1D562","name":"MATHEMATICAL DOUBLE-STRUCK SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD562"},120163:{"value":"1D563","name":"MATHEMATICAL DOUBLE-STRUCK SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD563"},120164:{"value":"1D564","name":"MATHEMATICAL DOUBLE-STRUCK SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD564"},120165:{"value":"1D565","name":"MATHEMATICAL DOUBLE-STRUCK SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD565"},120166:{"value":"1D566","name":"MATHEMATICAL DOUBLE-STRUCK SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD566"},120167:{"value":"1D567","name":"MATHEMATICAL DOUBLE-STRUCK SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD567"},120168:{"value":"1D568","name":"MATHEMATICAL DOUBLE-STRUCK SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD568"},120169:{"value":"1D569","name":"MATHEMATICAL DOUBLE-STRUCK SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD569"},120170:{"value":"1D56A","name":"MATHEMATICAL DOUBLE-STRUCK SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD56A"},120171:{"value":"1D56B","name":"MATHEMATICAL DOUBLE-STRUCK SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD56B"},120198:{"value":"1D586","name":"MATHEMATICAL BOLD FRAKTUR SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD586"},120199:{"value":"1D587","name":"MATHEMATICAL BOLD FRAKTUR SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD587"},120200:{"value":"1D588","name":"MATHEMATICAL BOLD FRAKTUR SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD588"},120201:{"value":"1D589","name":"MATHEMATICAL BOLD FRAKTUR SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD589"},120202:{"value":"1D58A","name":"MATHEMATICAL BOLD FRAKTUR SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58A"},120203:{"value":"1D58B","name":"MATHEMATICAL BOLD FRAKTUR SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58B"},120204:{"value":"1D58C","name":"MATHEMATICAL BOLD FRAKTUR SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58C"},120205:{"value":"1D58D","name":"MATHEMATICAL BOLD FRAKTUR SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58D"},120206:{"value":"1D58E","name":"MATHEMATICAL BOLD FRAKTUR SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58E"},120207:{"value":"1D58F","name":"MATHEMATICAL BOLD FRAKTUR SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD58F"},120208:{"value":"1D590","name":"MATHEMATICAL BOLD FRAKTUR SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD590"},120209:{"value":"1D591","name":"MATHEMATICAL BOLD FRAKTUR SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD591"},120210:{"value":"1D592","name":"MATHEMATICAL BOLD FRAKTUR SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD592"},120211:{"value":"1D593","name":"MATHEMATICAL BOLD FRAKTUR SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD593"},120212:{"value":"1D594","name":"MATHEMATICAL BOLD FRAKTUR SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD594"},120213:{"value":"1D595","name":"MATHEMATICAL BOLD FRAKTUR SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD595"},120214:{"value":"1D596","name":"MATHEMATICAL BOLD FRAKTUR SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD596"},120215:{"value":"1D597","name":"MATHEMATICAL BOLD FRAKTUR SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD597"},120216:{"value":"1D598","name":"MATHEMATICAL BOLD FRAKTUR SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD598"},120217:{"value":"1D599","name":"MATHEMATICAL BOLD FRAKTUR SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD599"},120218:{"value":"1D59A","name":"MATHEMATICAL BOLD FRAKTUR SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59A"},120219:{"value":"1D59B","name":"MATHEMATICAL BOLD FRAKTUR SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59B"},120220:{"value":"1D59C","name":"MATHEMATICAL BOLD FRAKTUR SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59C"},120221:{"value":"1D59D","name":"MATHEMATICAL BOLD FRAKTUR SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59D"},120222:{"value":"1D59E","name":"MATHEMATICAL BOLD FRAKTUR SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59E"},120223:{"value":"1D59F","name":"MATHEMATICAL BOLD FRAKTUR SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD59F"},120250:{"value":"1D5BA","name":"MATHEMATICAL SANS-SERIF SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BA"},120251:{"value":"1D5BB","name":"MATHEMATICAL SANS-SERIF SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BB"},120252:{"value":"1D5BC","name":"MATHEMATICAL SANS-SERIF SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BC"},120253:{"value":"1D5BD","name":"MATHEMATICAL SANS-SERIF SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BD"},120254:{"value":"1D5BE","name":"MATHEMATICAL SANS-SERIF SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BE"},120255:{"value":"1D5BF","name":"MATHEMATICAL SANS-SERIF SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5BF"},120256:{"value":"1D5C0","name":"MATHEMATICAL SANS-SERIF SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C0"},120257:{"value":"1D5C1","name":"MATHEMATICAL SANS-SERIF SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C1"},120258:{"value":"1D5C2","name":"MATHEMATICAL SANS-SERIF SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C2"},120259:{"value":"1D5C3","name":"MATHEMATICAL SANS-SERIF SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C3"},120260:{"value":"1D5C4","name":"MATHEMATICAL SANS-SERIF SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C4"},120261:{"value":"1D5C5","name":"MATHEMATICAL SANS-SERIF SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C5"},120262:{"value":"1D5C6","name":"MATHEMATICAL SANS-SERIF SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C6"},120263:{"value":"1D5C7","name":"MATHEMATICAL SANS-SERIF SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C7"},120264:{"value":"1D5C8","name":"MATHEMATICAL SANS-SERIF SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C8"},120265:{"value":"1D5C9","name":"MATHEMATICAL SANS-SERIF SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5C9"},120266:{"value":"1D5CA","name":"MATHEMATICAL SANS-SERIF SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CA"},120267:{"value":"1D5CB","name":"MATHEMATICAL SANS-SERIF SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CB"},120268:{"value":"1D5CC","name":"MATHEMATICAL SANS-SERIF SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CC"},120269:{"value":"1D5CD","name":"MATHEMATICAL SANS-SERIF SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CD"},120270:{"value":"1D5CE","name":"MATHEMATICAL SANS-SERIF SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CE"},120271:{"value":"1D5CF","name":"MATHEMATICAL SANS-SERIF SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5CF"},120272:{"value":"1D5D0","name":"MATHEMATICAL SANS-SERIF SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5D0"},120273:{"value":"1D5D1","name":"MATHEMATICAL SANS-SERIF SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5D1"},120274:{"value":"1D5D2","name":"MATHEMATICAL SANS-SERIF SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5D2"},120275:{"value":"1D5D3","name":"MATHEMATICAL SANS-SERIF SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5D3"},120302:{"value":"1D5EE","name":"MATHEMATICAL SANS-SERIF BOLD SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5EE"},120303:{"value":"1D5EF","name":"MATHEMATICAL SANS-SERIF BOLD SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5EF"},120304:{"value":"1D5F0","name":"MATHEMATICAL SANS-SERIF BOLD SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F0"},120305:{"value":"1D5F1","name":"MATHEMATICAL SANS-SERIF BOLD SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F1"},120306:{"value":"1D5F2","name":"MATHEMATICAL SANS-SERIF BOLD SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F2"},120307:{"value":"1D5F3","name":"MATHEMATICAL SANS-SERIF BOLD SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F3"},120308:{"value":"1D5F4","name":"MATHEMATICAL SANS-SERIF BOLD SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F4"},120309:{"value":"1D5F5","name":"MATHEMATICAL SANS-SERIF BOLD SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F5"},120310:{"value":"1D5F6","name":"MATHEMATICAL SANS-SERIF BOLD SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F6"},120311:{"value":"1D5F7","name":"MATHEMATICAL SANS-SERIF BOLD SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F7"},120312:{"value":"1D5F8","name":"MATHEMATICAL SANS-SERIF BOLD SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F8"},120313:{"value":"1D5F9","name":"MATHEMATICAL SANS-SERIF BOLD SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5F9"},120314:{"value":"1D5FA","name":"MATHEMATICAL SANS-SERIF BOLD SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FA"},120315:{"value":"1D5FB","name":"MATHEMATICAL SANS-SERIF BOLD SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FB"},120316:{"value":"1D5FC","name":"MATHEMATICAL SANS-SERIF BOLD SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FC"},120317:{"value":"1D5FD","name":"MATHEMATICAL SANS-SERIF BOLD SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FD"},120318:{"value":"1D5FE","name":"MATHEMATICAL SANS-SERIF BOLD SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FE"},120319:{"value":"1D5FF","name":"MATHEMATICAL SANS-SERIF BOLD SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD5FF"},120320:{"value":"1D600","name":"MATHEMATICAL SANS-SERIF BOLD SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD600"},120321:{"value":"1D601","name":"MATHEMATICAL SANS-SERIF BOLD SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD601"},120322:{"value":"1D602","name":"MATHEMATICAL SANS-SERIF BOLD SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD602"},120323:{"value":"1D603","name":"MATHEMATICAL SANS-SERIF BOLD SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD603"},120324:{"value":"1D604","name":"MATHEMATICAL SANS-SERIF BOLD SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD604"},120325:{"value":"1D605","name":"MATHEMATICAL SANS-SERIF BOLD SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD605"},120326:{"value":"1D606","name":"MATHEMATICAL SANS-SERIF BOLD SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD606"},120327:{"value":"1D607","name":"MATHEMATICAL SANS-SERIF BOLD SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD607"},120354:{"value":"1D622","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD622"},120355:{"value":"1D623","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD623"},120356:{"value":"1D624","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD624"},120357:{"value":"1D625","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD625"},120358:{"value":"1D626","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD626"},120359:{"value":"1D627","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD627"},120360:{"value":"1D628","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD628"},120361:{"value":"1D629","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD629"},120362:{"value":"1D62A","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62A"},120363:{"value":"1D62B","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62B"},120364:{"value":"1D62C","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62C"},120365:{"value":"1D62D","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62D"},120366:{"value":"1D62E","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62E"},120367:{"value":"1D62F","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD62F"},120368:{"value":"1D630","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD630"},120369:{"value":"1D631","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD631"},120370:{"value":"1D632","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD632"},120371:{"value":"1D633","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD633"},120372:{"value":"1D634","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD634"},120373:{"value":"1D635","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD635"},120374:{"value":"1D636","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD636"},120375:{"value":"1D637","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD637"},120376:{"value":"1D638","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD638"},120377:{"value":"1D639","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD639"},120378:{"value":"1D63A","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD63A"},120379:{"value":"1D63B","name":"MATHEMATICAL SANS-SERIF ITALIC SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD63B"},120406:{"value":"1D656","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD656"},120407:{"value":"1D657","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD657"},120408:{"value":"1D658","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD658"},120409:{"value":"1D659","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD659"},120410:{"value":"1D65A","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65A"},120411:{"value":"1D65B","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65B"},120412:{"value":"1D65C","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65C"},120413:{"value":"1D65D","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65D"},120414:{"value":"1D65E","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65E"},120415:{"value":"1D65F","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD65F"},120416:{"value":"1D660","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD660"},120417:{"value":"1D661","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD661"},120418:{"value":"1D662","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD662"},120419:{"value":"1D663","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD663"},120420:{"value":"1D664","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD664"},120421:{"value":"1D665","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD665"},120422:{"value":"1D666","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD666"},120423:{"value":"1D667","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD667"},120424:{"value":"1D668","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD668"},120425:{"value":"1D669","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD669"},120426:{"value":"1D66A","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66A"},120427:{"value":"1D66B","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66B"},120428:{"value":"1D66C","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66C"},120429:{"value":"1D66D","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66D"},120430:{"value":"1D66E","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66E"},120431:{"value":"1D66F","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD66F"},120458:{"value":"1D68A","name":"MATHEMATICAL MONOSPACE SMALL A","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0061","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68A"},120459:{"value":"1D68B","name":"MATHEMATICAL MONOSPACE SMALL B","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0062","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68B"},120460:{"value":"1D68C","name":"MATHEMATICAL MONOSPACE SMALL C","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0063","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68C"},120461:{"value":"1D68D","name":"MATHEMATICAL MONOSPACE SMALL D","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0064","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68D"},120462:{"value":"1D68E","name":"MATHEMATICAL MONOSPACE SMALL E","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0065","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68E"},120463:{"value":"1D68F","name":"MATHEMATICAL MONOSPACE SMALL F","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0066","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD68F"},120464:{"value":"1D690","name":"MATHEMATICAL MONOSPACE SMALL G","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0067","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD690"},120465:{"value":"1D691","name":"MATHEMATICAL MONOSPACE SMALL H","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0068","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD691"},120466:{"value":"1D692","name":"MATHEMATICAL MONOSPACE SMALL I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0069","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD692"},120467:{"value":"1D693","name":"MATHEMATICAL MONOSPACE SMALL J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD693"},120468:{"value":"1D694","name":"MATHEMATICAL MONOSPACE SMALL K","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006B","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD694"},120469:{"value":"1D695","name":"MATHEMATICAL MONOSPACE SMALL L","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006C","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD695"},120470:{"value":"1D696","name":"MATHEMATICAL MONOSPACE SMALL M","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006D","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD696"},120471:{"value":"1D697","name":"MATHEMATICAL MONOSPACE SMALL N","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006E","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD697"},120472:{"value":"1D698","name":"MATHEMATICAL MONOSPACE SMALL O","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 006F","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD698"},120473:{"value":"1D699","name":"MATHEMATICAL MONOSPACE SMALL P","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0070","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD699"},120474:{"value":"1D69A","name":"MATHEMATICAL MONOSPACE SMALL Q","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0071","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69A"},120475:{"value":"1D69B","name":"MATHEMATICAL MONOSPACE SMALL R","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0072","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69B"},120476:{"value":"1D69C","name":"MATHEMATICAL MONOSPACE SMALL S","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0073","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69C"},120477:{"value":"1D69D","name":"MATHEMATICAL MONOSPACE SMALL T","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0074","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69D"},120478:{"value":"1D69E","name":"MATHEMATICAL MONOSPACE SMALL U","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0075","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69E"},120479:{"value":"1D69F","name":"MATHEMATICAL MONOSPACE SMALL V","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0076","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD69F"},120480:{"value":"1D6A0","name":"MATHEMATICAL MONOSPACE SMALL W","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0077","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A0"},120481:{"value":"1D6A1","name":"MATHEMATICAL MONOSPACE SMALL X","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0078","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A1"},120482:{"value":"1D6A2","name":"MATHEMATICAL MONOSPACE SMALL Y","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0079","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A2"},120483:{"value":"1D6A3","name":"MATHEMATICAL MONOSPACE SMALL Z","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 007A","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A3"},120484:{"value":"1D6A4","name":"MATHEMATICAL ITALIC SMALL DOTLESS I","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0131","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A4"},120485:{"value":"1D6A5","name":"MATHEMATICAL ITALIC SMALL DOTLESS J","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 0237","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6A5"},120514:{"value":"1D6C2","name":"MATHEMATICAL BOLD SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C2"},120515:{"value":"1D6C3","name":"MATHEMATICAL BOLD SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C3"},120516:{"value":"1D6C4","name":"MATHEMATICAL BOLD SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C4"},120517:{"value":"1D6C5","name":"MATHEMATICAL BOLD SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C5"},120518:{"value":"1D6C6","name":"MATHEMATICAL BOLD SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C6"},120519:{"value":"1D6C7","name":"MATHEMATICAL BOLD SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C7"},120520:{"value":"1D6C8","name":"MATHEMATICAL BOLD SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C8"},120521:{"value":"1D6C9","name":"MATHEMATICAL BOLD SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6C9"},120522:{"value":"1D6CA","name":"MATHEMATICAL BOLD SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CA"},120523:{"value":"1D6CB","name":"MATHEMATICAL BOLD SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CB"},120524:{"value":"1D6CC","name":"MATHEMATICAL BOLD SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CC"},120525:{"value":"1D6CD","name":"MATHEMATICAL BOLD SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CD"},120526:{"value":"1D6CE","name":"MATHEMATICAL BOLD SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CE"},120527:{"value":"1D6CF","name":"MATHEMATICAL BOLD SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6CF"},120528:{"value":"1D6D0","name":"MATHEMATICAL BOLD SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D0"},120529:{"value":"1D6D1","name":"MATHEMATICAL BOLD SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D1"},120530:{"value":"1D6D2","name":"MATHEMATICAL BOLD SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D2"},120531:{"value":"1D6D3","name":"MATHEMATICAL BOLD SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D3"},120532:{"value":"1D6D4","name":"MATHEMATICAL BOLD SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D4"},120533:{"value":"1D6D5","name":"MATHEMATICAL BOLD SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D5"},120534:{"value":"1D6D6","name":"MATHEMATICAL BOLD SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D6"},120535:{"value":"1D6D7","name":"MATHEMATICAL BOLD SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D7"},120536:{"value":"1D6D8","name":"MATHEMATICAL BOLD SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D8"},120537:{"value":"1D6D9","name":"MATHEMATICAL BOLD SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6D9"},120538:{"value":"1D6DA","name":"MATHEMATICAL BOLD SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DA"},120540:{"value":"1D6DC","name":"MATHEMATICAL BOLD EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DC"},120541:{"value":"1D6DD","name":"MATHEMATICAL BOLD THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DD"},120542:{"value":"1D6DE","name":"MATHEMATICAL BOLD KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DE"},120543:{"value":"1D6DF","name":"MATHEMATICAL BOLD PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6DF"},120544:{"value":"1D6E0","name":"MATHEMATICAL BOLD RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6E0"},120545:{"value":"1D6E1","name":"MATHEMATICAL BOLD PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6E1"},120572:{"value":"1D6FC","name":"MATHEMATICAL ITALIC SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6FC"},120573:{"value":"1D6FD","name":"MATHEMATICAL ITALIC SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6FD"},120574:{"value":"1D6FE","name":"MATHEMATICAL ITALIC SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6FE"},120575:{"value":"1D6FF","name":"MATHEMATICAL ITALIC SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD6FF"},120576:{"value":"1D700","name":"MATHEMATICAL ITALIC SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD700"},120577:{"value":"1D701","name":"MATHEMATICAL ITALIC SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD701"},120578:{"value":"1D702","name":"MATHEMATICAL ITALIC SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD702"},120579:{"value":"1D703","name":"MATHEMATICAL ITALIC SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD703"},120580:{"value":"1D704","name":"MATHEMATICAL ITALIC SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD704"},120581:{"value":"1D705","name":"MATHEMATICAL ITALIC SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD705"},120582:{"value":"1D706","name":"MATHEMATICAL ITALIC SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD706"},120583:{"value":"1D707","name":"MATHEMATICAL ITALIC SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD707"},120584:{"value":"1D708","name":"MATHEMATICAL ITALIC SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD708"},120585:{"value":"1D709","name":"MATHEMATICAL ITALIC SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD709"},120586:{"value":"1D70A","name":"MATHEMATICAL ITALIC SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70A"},120587:{"value":"1D70B","name":"MATHEMATICAL ITALIC SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70B"},120588:{"value":"1D70C","name":"MATHEMATICAL ITALIC SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70C"},120589:{"value":"1D70D","name":"MATHEMATICAL ITALIC SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70D"},120590:{"value":"1D70E","name":"MATHEMATICAL ITALIC SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70E"},120591:{"value":"1D70F","name":"MATHEMATICAL ITALIC SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD70F"},120592:{"value":"1D710","name":"MATHEMATICAL ITALIC SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD710"},120593:{"value":"1D711","name":"MATHEMATICAL ITALIC SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD711"},120594:{"value":"1D712","name":"MATHEMATICAL ITALIC SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD712"},120595:{"value":"1D713","name":"MATHEMATICAL ITALIC SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD713"},120596:{"value":"1D714","name":"MATHEMATICAL ITALIC SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD714"},120598:{"value":"1D716","name":"MATHEMATICAL ITALIC EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD716"},120599:{"value":"1D717","name":"MATHEMATICAL ITALIC THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD717"},120600:{"value":"1D718","name":"MATHEMATICAL ITALIC KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD718"},120601:{"value":"1D719","name":"MATHEMATICAL ITALIC PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD719"},120602:{"value":"1D71A","name":"MATHEMATICAL ITALIC RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD71A"},120603:{"value":"1D71B","name":"MATHEMATICAL ITALIC PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD71B"},120630:{"value":"1D736","name":"MATHEMATICAL BOLD ITALIC SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD736"},120631:{"value":"1D737","name":"MATHEMATICAL BOLD ITALIC SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD737"},120632:{"value":"1D738","name":"MATHEMATICAL BOLD ITALIC SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD738"},120633:{"value":"1D739","name":"MATHEMATICAL BOLD ITALIC SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD739"},120634:{"value":"1D73A","name":"MATHEMATICAL BOLD ITALIC SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73A"},120635:{"value":"1D73B","name":"MATHEMATICAL BOLD ITALIC SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73B"},120636:{"value":"1D73C","name":"MATHEMATICAL BOLD ITALIC SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73C"},120637:{"value":"1D73D","name":"MATHEMATICAL BOLD ITALIC SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73D"},120638:{"value":"1D73E","name":"MATHEMATICAL BOLD ITALIC SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73E"},120639:{"value":"1D73F","name":"MATHEMATICAL BOLD ITALIC SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD73F"},120640:{"value":"1D740","name":"MATHEMATICAL BOLD ITALIC SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD740"},120641:{"value":"1D741","name":"MATHEMATICAL BOLD ITALIC SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD741"},120642:{"value":"1D742","name":"MATHEMATICAL BOLD ITALIC SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD742"},120643:{"value":"1D743","name":"MATHEMATICAL BOLD ITALIC SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD743"},120644:{"value":"1D744","name":"MATHEMATICAL BOLD ITALIC SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD744"},120645:{"value":"1D745","name":"MATHEMATICAL BOLD ITALIC SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD745"},120646:{"value":"1D746","name":"MATHEMATICAL BOLD ITALIC SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD746"},120647:{"value":"1D747","name":"MATHEMATICAL BOLD ITALIC SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD747"},120648:{"value":"1D748","name":"MATHEMATICAL BOLD ITALIC SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD748"},120649:{"value":"1D749","name":"MATHEMATICAL BOLD ITALIC SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD749"},120650:{"value":"1D74A","name":"MATHEMATICAL BOLD ITALIC SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74A"},120651:{"value":"1D74B","name":"MATHEMATICAL BOLD ITALIC SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74B"},120652:{"value":"1D74C","name":"MATHEMATICAL BOLD ITALIC SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74C"},120653:{"value":"1D74D","name":"MATHEMATICAL BOLD ITALIC SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74D"},120654:{"value":"1D74E","name":"MATHEMATICAL BOLD ITALIC SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD74E"},120656:{"value":"1D750","name":"MATHEMATICAL BOLD ITALIC EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD750"},120657:{"value":"1D751","name":"MATHEMATICAL BOLD ITALIC THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD751"},120658:{"value":"1D752","name":"MATHEMATICAL BOLD ITALIC KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD752"},120659:{"value":"1D753","name":"MATHEMATICAL BOLD ITALIC PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD753"},120660:{"value":"1D754","name":"MATHEMATICAL BOLD ITALIC RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD754"},120661:{"value":"1D755","name":"MATHEMATICAL BOLD ITALIC PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD755"},120688:{"value":"1D770","name":"MATHEMATICAL SANS-SERIF BOLD SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD770"},120689:{"value":"1D771","name":"MATHEMATICAL SANS-SERIF BOLD SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD771"},120690:{"value":"1D772","name":"MATHEMATICAL SANS-SERIF BOLD SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD772"},120691:{"value":"1D773","name":"MATHEMATICAL SANS-SERIF BOLD SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD773"},120692:{"value":"1D774","name":"MATHEMATICAL SANS-SERIF BOLD SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD774"},120693:{"value":"1D775","name":"MATHEMATICAL SANS-SERIF BOLD SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD775"},120694:{"value":"1D776","name":"MATHEMATICAL SANS-SERIF BOLD SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD776"},120695:{"value":"1D777","name":"MATHEMATICAL SANS-SERIF BOLD SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD777"},120696:{"value":"1D778","name":"MATHEMATICAL SANS-SERIF BOLD SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD778"},120697:{"value":"1D779","name":"MATHEMATICAL SANS-SERIF BOLD SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD779"},120698:{"value":"1D77A","name":"MATHEMATICAL SANS-SERIF BOLD SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77A"},120699:{"value":"1D77B","name":"MATHEMATICAL SANS-SERIF BOLD SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77B"},120700:{"value":"1D77C","name":"MATHEMATICAL SANS-SERIF BOLD SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77C"},120701:{"value":"1D77D","name":"MATHEMATICAL SANS-SERIF BOLD SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77D"},120702:{"value":"1D77E","name":"MATHEMATICAL SANS-SERIF BOLD SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77E"},120703:{"value":"1D77F","name":"MATHEMATICAL SANS-SERIF BOLD SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD77F"},120704:{"value":"1D780","name":"MATHEMATICAL SANS-SERIF BOLD SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD780"},120705:{"value":"1D781","name":"MATHEMATICAL SANS-SERIF BOLD SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD781"},120706:{"value":"1D782","name":"MATHEMATICAL SANS-SERIF BOLD SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD782"},120707:{"value":"1D783","name":"MATHEMATICAL SANS-SERIF BOLD SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD783"},120708:{"value":"1D784","name":"MATHEMATICAL SANS-SERIF BOLD SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD784"},120709:{"value":"1D785","name":"MATHEMATICAL SANS-SERIF BOLD SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD785"},120710:{"value":"1D786","name":"MATHEMATICAL SANS-SERIF BOLD SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD786"},120711:{"value":"1D787","name":"MATHEMATICAL SANS-SERIF BOLD SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD787"},120712:{"value":"1D788","name":"MATHEMATICAL SANS-SERIF BOLD SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD788"},120714:{"value":"1D78A","name":"MATHEMATICAL SANS-SERIF BOLD EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78A"},120715:{"value":"1D78B","name":"MATHEMATICAL SANS-SERIF BOLD THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78B"},120716:{"value":"1D78C","name":"MATHEMATICAL SANS-SERIF BOLD KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78C"},120717:{"value":"1D78D","name":"MATHEMATICAL SANS-SERIF BOLD PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78D"},120718:{"value":"1D78E","name":"MATHEMATICAL SANS-SERIF BOLD RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78E"},120719:{"value":"1D78F","name":"MATHEMATICAL SANS-SERIF BOLD PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD78F"},120746:{"value":"1D7AA","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ALPHA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AA"},120747:{"value":"1D7AB","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL BETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AB"},120748:{"value":"1D7AC","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL GAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AC"},120749:{"value":"1D7AD","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL DELTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AD"},120750:{"value":"1D7AE","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL EPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AE"},120751:{"value":"1D7AF","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ZETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7AF"},120752:{"value":"1D7B0","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B0"},120753:{"value":"1D7B1","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL THETA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B1"},120754:{"value":"1D7B2","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL IOTA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03B9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B2"},120755:{"value":"1D7B3","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL KAPPA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BA","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B3"},120756:{"value":"1D7B4","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL LAMDA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BB","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B4"},120757:{"value":"1D7B5","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL MU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BC","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B5"},120758:{"value":"1D7B6","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL NU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B6"},120759:{"value":"1D7B7","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL XI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BE","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B7"},120760:{"value":"1D7B8","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMICRON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03BF","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B8"},120761:{"value":"1D7B9","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7B9"},120762:{"value":"1D7BA","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL RHO","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BA"},120763:{"value":"1D7BB","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL FINAL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C2","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BB"},120764:{"value":"1D7BC","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL SIGMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C3","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BC"},120765:{"value":"1D7BD","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL TAU","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C4","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BD"},120766:{"value":"1D7BE","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL UPSILON","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BE"},120767:{"value":"1D7BF","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7BF"},120768:{"value":"1D7C0","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL CHI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C7","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C0"},120769:{"value":"1D7C1","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PSI","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C8","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C1"},120770:{"value":"1D7C2","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMEGA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03C9","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C2"},120772:{"value":"1D7C4","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC EPSILON SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C4"},120773:{"value":"1D7C5","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC THETA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C5"},120774:{"value":"1D7C6","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC KAPPA SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F0","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C6"},120775:{"value":"1D7C7","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC PHI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D5","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C7"},120776:{"value":"1D7C8","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC RHO SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03F1","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C8"},120777:{"value":"1D7C9","name":"MATHEMATICAL SANS-SERIF BOLD ITALIC PI SYMBOL","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03D6","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7C9"},120779:{"value":"1D7CB","name":"MATHEMATICAL BOLD SMALL DIGAMMA","category":"Ll","class":"0","bidirectional_category":"L","mapping":" 03DD","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uD7CB"},125218:{"value":"1E922","name":"ADLAM SMALL LETTER ALIF","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E900","lowercase_mapping":"","titlecase_mapping":"1E900","symbol":"\uE922"},125219:{"value":"1E923","name":"ADLAM SMALL LETTER DAALI","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E901","lowercase_mapping":"","titlecase_mapping":"1E901","symbol":"\uE923"},125220:{"value":"1E924","name":"ADLAM SMALL LETTER LAAM","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E902","lowercase_mapping":"","titlecase_mapping":"1E902","symbol":"\uE924"},125221:{"value":"1E925","name":"ADLAM SMALL LETTER MIIM","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E903","lowercase_mapping":"","titlecase_mapping":"1E903","symbol":"\uE925"},125222:{"value":"1E926","name":"ADLAM SMALL LETTER BA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E904","lowercase_mapping":"","titlecase_mapping":"1E904","symbol":"\uE926"},125223:{"value":"1E927","name":"ADLAM SMALL LETTER SINNYIIYHE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E905","lowercase_mapping":"","titlecase_mapping":"1E905","symbol":"\uE927"},125224:{"value":"1E928","name":"ADLAM SMALL LETTER PE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E906","lowercase_mapping":"","titlecase_mapping":"1E906","symbol":"\uE928"},125225:{"value":"1E929","name":"ADLAM SMALL LETTER BHE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E907","lowercase_mapping":"","titlecase_mapping":"1E907","symbol":"\uE929"},125226:{"value":"1E92A","name":"ADLAM SMALL LETTER RA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E908","lowercase_mapping":"","titlecase_mapping":"1E908","symbol":"\uE92A"},125227:{"value":"1E92B","name":"ADLAM SMALL LETTER E","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E909","lowercase_mapping":"","titlecase_mapping":"1E909","symbol":"\uE92B"},125228:{"value":"1E92C","name":"ADLAM SMALL LETTER FA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90A","lowercase_mapping":"","titlecase_mapping":"1E90A","symbol":"\uE92C"},125229:{"value":"1E92D","name":"ADLAM SMALL LETTER I","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90B","lowercase_mapping":"","titlecase_mapping":"1E90B","symbol":"\uE92D"},125230:{"value":"1E92E","name":"ADLAM SMALL LETTER O","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90C","lowercase_mapping":"","titlecase_mapping":"1E90C","symbol":"\uE92E"},125231:{"value":"1E92F","name":"ADLAM SMALL LETTER DHA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90D","lowercase_mapping":"","titlecase_mapping":"1E90D","symbol":"\uE92F"},125232:{"value":"1E930","name":"ADLAM SMALL LETTER YHE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90E","lowercase_mapping":"","titlecase_mapping":"1E90E","symbol":"\uE930"},125233:{"value":"1E931","name":"ADLAM SMALL LETTER WAW","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E90F","lowercase_mapping":"","titlecase_mapping":"1E90F","symbol":"\uE931"},125234:{"value":"1E932","name":"ADLAM SMALL LETTER NUN","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E910","lowercase_mapping":"","titlecase_mapping":"1E910","symbol":"\uE932"},125235:{"value":"1E933","name":"ADLAM SMALL LETTER KAF","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E911","lowercase_mapping":"","titlecase_mapping":"1E911","symbol":"\uE933"},125236:{"value":"1E934","name":"ADLAM SMALL LETTER YA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E912","lowercase_mapping":"","titlecase_mapping":"1E912","symbol":"\uE934"},125237:{"value":"1E935","name":"ADLAM SMALL LETTER U","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E913","lowercase_mapping":"","titlecase_mapping":"1E913","symbol":"\uE935"},125238:{"value":"1E936","name":"ADLAM SMALL LETTER JIIM","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E914","lowercase_mapping":"","titlecase_mapping":"1E914","symbol":"\uE936"},125239:{"value":"1E937","name":"ADLAM SMALL LETTER CHI","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E915","lowercase_mapping":"","titlecase_mapping":"1E915","symbol":"\uE937"},125240:{"value":"1E938","name":"ADLAM SMALL LETTER HA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E916","lowercase_mapping":"","titlecase_mapping":"1E916","symbol":"\uE938"},125241:{"value":"1E939","name":"ADLAM SMALL LETTER QAAF","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E917","lowercase_mapping":"","titlecase_mapping":"1E917","symbol":"\uE939"},125242:{"value":"1E93A","name":"ADLAM SMALL LETTER GA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E918","lowercase_mapping":"","titlecase_mapping":"1E918","symbol":"\uE93A"},125243:{"value":"1E93B","name":"ADLAM SMALL LETTER NYA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E919","lowercase_mapping":"","titlecase_mapping":"1E919","symbol":"\uE93B"},125244:{"value":"1E93C","name":"ADLAM SMALL LETTER TU","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91A","lowercase_mapping":"","titlecase_mapping":"1E91A","symbol":"\uE93C"},125245:{"value":"1E93D","name":"ADLAM SMALL LETTER NHA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91B","lowercase_mapping":"","titlecase_mapping":"1E91B","symbol":"\uE93D"},125246:{"value":"1E93E","name":"ADLAM SMALL LETTER VA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91C","lowercase_mapping":"","titlecase_mapping":"1E91C","symbol":"\uE93E"},125247:{"value":"1E93F","name":"ADLAM SMALL LETTER KHA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91D","lowercase_mapping":"","titlecase_mapping":"1E91D","symbol":"\uE93F"},125248:{"value":"1E940","name":"ADLAM SMALL LETTER GBE","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91E","lowercase_mapping":"","titlecase_mapping":"1E91E","symbol":"\uE940"},125249:{"value":"1E941","name":"ADLAM SMALL LETTER ZAL","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E91F","lowercase_mapping":"","titlecase_mapping":"1E91F","symbol":"\uE941"},125250:{"value":"1E942","name":"ADLAM SMALL LETTER KPO","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E920","lowercase_mapping":"","titlecase_mapping":"1E920","symbol":"\uE942"},125251:{"value":"1E943","name":"ADLAM SMALL LETTER SHA","category":"Ll","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"1E921","lowercase_mapping":"","titlecase_mapping":"1E921","symbol":"\uE943"}}; +},{}],1001:[function(require,module,exports){ (function (root) { "use strict"; - /***** unorm.js *****/ +/***** 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 $ - */ +/* + * 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 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) { + var UChar = function(cp, feature){ this.codepoint = cp; this.feature = feature; }; @@ -147010,59 +155069,59 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // Strategies var cache = {}; var cacheCounter = []; - for (var i = 0; i <= 0xFF; ++i) { + for (var i = 0; i <= 0xFF; ++i){ cacheCounter[i] = 0; } - function fromCache(next, cp, needFeature) { + function fromCache(next, cp, needFeature){ var ret = cache[cp]; - if (!ret) { + if(!ret){ ret = next(cp, needFeature); - if (!!ret.feature && ++cacheCounter[cp >> 8 & 0xFF] > CACHE_THRESHOLD) { + if(!!ret.feature && ++cacheCounter[(cp >> 8) & 0xFF] > CACHE_THRESHOLD){ cache[cp] = ret; } } return ret; } - function fromData(next, cp, needFeature) { + 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) { + function fromCpOnly(next, cp, needFeature){ return !!needFeature ? next(cp, needFeature) : new UChar(cp, null); } - function fromRuleBasedJamo(next, cp, needFeature) { + function fromRuleBasedJamo(next, cp, needFeature){ var j; - if (cp < LBase || LBase + LCount <= cp && cp < SBase || SBase + SCount < cp) { + if(cp < LBase || (LBase + LCount <= cp && cp < SBase) || (SBase + SCount < cp)){ return next(cp, needFeature); } - if (LBase <= cp && cp < LBase + LCount) { + if(LBase <= cp && cp < LBase + LCount){ var c = {}; var base = (cp - LBase) * VCount; - for (j = 0; j < VCount; ++j) { + for (j = 0; j < VCount; ++j){ c[VBase + j] = SBase + TCount * (j + base); } - return new UChar(cp, [,, c]); + return new UChar(cp, [,,c]); } var SIndex = cp - SBase; var TIndex = SIndex % TCount; var feature = []; - if (TIndex !== 0) { + 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[0] = [LBase + Math.floor(SIndex / NCount), VBase + Math.floor((SIndex % NCount) / TCount)]; feature[2] = {}; - for (j = 1; j < TCount; ++j) { + for (j = 1; j < TCount; ++j){ feature[2][TBase + j] = cp + j; } } return new UChar(cp, feature); } - function fromCpFilter(next, cp, needFeature) { + function fromCpFilter(next, cp, needFeature){ return cp < 60 || 13311 < cp && cp < 42607 ? new UChar(cp, DEFAULT_FEATURE) : next(cp, needFeature); } @@ -147074,21 +155133,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; }, null); - UChar.isHighSurrogate = function (cp) { + UChar.isHighSurrogate = function(cp){ return cp >= 0xD800 && cp <= 0xDBFF; }; - UChar.isLowSurrogate = function (cp) { + UChar.isLowSurrogate = function(cp){ return cp >= 0xDC00 && cp <= 0xDFFF; }; - UChar.prototype.prepFeature = function () { - if (!this.feature) { + UChar.prototype.prepFeature = function(){ + if(!this.feature){ this.feature = UChar.fromCharCode(this.codepoint, true).feature; } }; - UChar.prototype.toString = function () { - if (this.codepoint < 0x10000) { + UChar.prototype.toString = function(){ + if(this.codepoint < 0x10000){ return String.fromCharCode(this.codepoint); } else { var x = this.codepoint - 0x10000; @@ -147096,42 +155155,42 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - UChar.prototype.getDecomp = function () { + UChar.prototype.getDecomp = function(){ this.prepFeature(); return this.feature[0] || null; }; - UChar.prototype.isCompatibility = function () { + UChar.prototype.isCompatibility = function(){ this.prepFeature(); - return !!this.feature[1] && this.feature[1] & 1 << 8; + return !!this.feature[1] && (this.feature[1] & (1 << 8)); }; - UChar.prototype.isExclude = function () { + UChar.prototype.isExclude = function(){ this.prepFeature(); - return !!this.feature[1] && this.feature[1] & 1 << 9; + return !!this.feature[1] && (this.feature[1] & (1 << 9)); }; - UChar.prototype.getCanonicalClass = function () { + UChar.prototype.getCanonicalClass = function(){ this.prepFeature(); - return !!this.feature[1] ? this.feature[1] & 0xff : 0; + return !!this.feature[1] ? (this.feature[1] & 0xff) : 0; }; - UChar.prototype.getComposite = function (following) { + UChar.prototype.getComposite = function(following){ this.prepFeature(); - if (!this.feature[2]) { + if(!this.feature[2]){ return null; } var cp = this.feature[2][following.codepoint]; return cp ? UChar.fromCharCode(cp) : null; }; - var UCharIterator = function UCharIterator(str) { + var UCharIterator = function(str){ this.str = str; this.cursor = 0; }; - UCharIterator.prototype.next = function () { - if (!!this.str && this.cursor < this.str.length) { + 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; + 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); @@ -147141,29 +155200,29 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } }; - var RecursDecompIterator = function RecursDecompIterator(it, cano) { + var RecursDecompIterator = function(it, cano){ this.it = it; this.canonical = cano; this.resBuf = []; }; - RecursDecompIterator.prototype.next = function () { - function recursiveDecomp(cano, uchar) { + RecursDecompIterator.prototype.next = function(){ + function recursiveDecomp(cano, uchar){ var decomp = uchar.getDecomp(); - if (!!decomp && !(cano && uchar.isCompatibility())) { + if(!!decomp && !(cano && uchar.isCompatibility())){ var ret = []; - for (var i = 0; i < decomp.length; ++i) { + for(var i = 0; i < decomp.length; ++i){ var a = recursiveDecomp(cano, UChar.fromCharCode(decomp[i])); - ret = ret.concat(a); + ret = ret.concat(a); } return ret; } else { return [uchar]; } } - if (this.resBuf.length === 0) { + if(this.resBuf.length === 0){ var uchar = this.it.next(); - if (!uchar) { + if(!uchar){ return null; } this.resBuf = recursiveDecomp(this.canonical, uchar); @@ -147171,62 +155230,62 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.resBuf.shift(); }; - var DecompIterator = function DecompIterator(it) { + var DecompIterator = function(it){ this.it = it; this.resBuf = []; }; - DecompIterator.prototype.next = function () { + DecompIterator.prototype.next = function(){ var cc; - if (this.resBuf.length === 0) { - do { + if(this.resBuf.length === 0){ + do{ var uchar = this.it.next(); - if (!uchar) { + if(!uchar){ break; } cc = uchar.getCanonicalClass(); var inspt = this.resBuf.length; - if (cc !== 0) { - for (; inspt > 0; --inspt) { + if(cc !== 0){ + for(; inspt > 0; --inspt){ var uchar2 = this.resBuf[inspt - 1]; var cc2 = uchar2.getCanonicalClass(); - if (cc2 <= cc) { + if(cc2 <= cc){ break; } } } this.resBuf.splice(inspt, 0, uchar); - } while (cc !== 0); + } while(cc !== 0); } return this.resBuf.shift(); }; - var CompIterator = function CompIterator(it) { + var CompIterator = function(it){ this.it = it; this.procBuf = []; this.resBuf = []; this.lastClass = null; }; - CompIterator.prototype.next = function () { - while (this.resBuf.length === 0) { + CompIterator.prototype.next = function(){ + while(this.resBuf.length === 0){ var uchar = this.it.next(); - if (!uchar) { + if(!uchar){ this.resBuf = this.procBuf; this.procBuf = []; break; } - if (this.procBuf.length === 0) { + 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)) { + if(!!composite && (this.lastClass < cc || this.lastClass === 0)){ this.procBuf[0] = composite; } else { - if (cc === 0) { + if(cc === 0){ this.resBuf = this.procBuf; this.procBuf = []; } @@ -147238,8 +155297,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return this.resBuf.shift(); }; - var createIterator = function createIterator(mode, str) { - switch (mode) { + var createIterator = function(mode, str){ + switch(mode){ case "NFD": return new DecompIterator(new RecursDecompIterator(new UCharIterator(str), true)); case "NFKD": @@ -147251,110 +155310,110 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } throw mode + " is invalid"; }; - var normalize = function normalize(mode, str) { + var normalize = function(mode, str){ var it = createIterator(mode, str); var ret = ""; var uchar; - while (!!(uchar = it.next())) { + while(!!(uchar = it.next())){ ret += uchar.toString(); } return ret; }; /* API functions */ - function nfd(str) { + function nfd(str){ return normalize("NFD", str); } - function nfkd(str) { + function nfkd(str){ return normalize("NFKD", str); } - function nfc(str) { + function nfc(str){ return normalize("NFC", str); } - function nfkc(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] } +/* 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 = { @@ -147367,16 +155426,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /*globals module:true,define:true*/ // CommonJS - if ((typeof module === "undefined" ? "undefined" : _typeof(module)) === "object") { + if (typeof module === "object") { module.exports = unorm; - // AMD + // AMD } else if (typeof define === "function" && define.amd) { define("unorm", function () { return unorm; }); - // Global + // Global } else { root.unorm = unorm; } @@ -147384,9 +155443,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol /***** 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") + + 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). + + 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". @@ -147395,15 +155456,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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. + + 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; + unorm.shimApplied = false; if (!String.prototype.normalize) { - String.prototype.normalize = function (form) { + String.prototype.normalize = function(form) { var str = "" + this; - form = form === undefined ? "NFC" : form; + form = form === undefined ? "NFC" : form; if (form === "NFC") { return unorm.nfc(str); @@ -147420,26 +155483,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol unorm.shimApplied = true; } -})(undefined); +}(this)); -},{}],988:[function(require,module,exports){ +},{}],1002:[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) { +;(function(root) { // Detect free variables `exports` - var freeExports = (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) == 'object' && exports; + var freeExports = typeof exports == 'object' && exports; // Detect free variable `module` - var freeModule = (typeof module === 'undefined' ? 'undefined' : _typeof(module)) == 'object' && module && module.exports == freeExports && module; + var freeModule = 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; + var freeGlobal = typeof global == 'object' && global; if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { root = freeGlobal; } @@ -147460,8 +155520,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol 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 + 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 @@ -147496,36 +155555,37 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol function checkScalarValue(codePoint) { if (codePoint >= 0xD800 && codePoint <= 0xDFFF) { - throw Error('Lone surrogate U+' + codePoint.toString(16).toUpperCase() + ' is not a scalar value'); + throw Error( + 'Lone surrogate U+' + codePoint.toString(16).toUpperCase() + + ' is not a scalar value' + ); } } /*--------------------------------------------------------------------------*/ function createByte(codePoint, shift) { - return stringFromCharCode(codePoint >> shift & 0x3F | 0x80); + return stringFromCharCode(((codePoint >> shift) & 0x3F) | 0x80); } function encodeCodePoint(codePoint) { - if ((codePoint & 0xFFFFFF80) == 0) { - // 1-byte sequence + 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 + 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 = stringFromCharCode(((codePoint >> 12) & 0x0F) | 0xE0); symbol += createByte(codePoint, 6); - } else if ((codePoint & 0xFFE00000) == 0) { - // 4-byte sequence - symbol = stringFromCharCode(codePoint >> 18 & 0x07 | 0xF0); + } + 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); + symbol += stringFromCharCode((codePoint & 0x3F) | 0x80); return symbol; } @@ -147587,7 +155647,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 2-byte sequence if ((byte1 & 0xE0) == 0xC0) { byte2 = readContinuationByte(); - codePoint = (byte1 & 0x1F) << 6 | byte2; + codePoint = ((byte1 & 0x1F) << 6) | byte2; if (codePoint >= 0x80) { return codePoint; } else { @@ -147599,7 +155659,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol if ((byte1 & 0xF0) == 0xE0) { byte2 = readContinuationByte(); byte3 = readContinuationByte(); - codePoint = (byte1 & 0x0F) << 12 | byte2 << 6 | byte3; + codePoint = ((byte1 & 0x0F) << 12) | (byte2 << 6) | byte3; if (codePoint >= 0x0800) { checkScalarValue(codePoint); return codePoint; @@ -147613,7 +155673,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol byte2 = readContinuationByte(); byte3 = readContinuationByte(); byte4 = readContinuationByte(); - codePoint = (byte1 & 0x07) << 0x12 | byte2 << 0x0C | byte3 << 0x06 | byte4; + codePoint = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0C) | + (byte3 << 0x06) | byte4; if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) { return codePoint; } @@ -147647,34 +155708,34 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol // 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 () { + 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+ + } 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- + } 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 + } 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 : {}) -},{}],989:[function(require,module,exports){ -arguments[4][311][0].apply(exports,arguments) -},{"dup":311}],990:[function(require,module,exports){ -'use strict'; +}(this)); +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}],1003:[function(require,module,exports){ +arguments[4][313][0].apply(exports,arguments) +},{"dup":313}],1004:[function(require,module,exports){ var v1 = require('./v1'); var v4 = require('./v4'); @@ -147684,9 +155745,7 @@ uuid.v4 = v4; module.exports = uuid; -},{"./v1":993,"./v4":994}],991:[function(require,module,exports){ -'use strict'; - +},{"./v1":1007,"./v4":1008}],1005:[function(require,module,exports){ /** * Convert array of 16 byte values to UUID string format of the form: * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX @@ -147700,14 +155759,19 @@ function bytesToUuid(buf, offset) { var i = offset || 0; var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 - 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++]]].join(''); + 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++]]]).join(''); } module.exports = bytesToUuid; -},{}],992:[function(require,module,exports){ -'use strict'; - +},{}],1006:[function(require,module,exports){ // 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 @@ -147715,7 +155779,8 @@ module.exports = bytesToUuid; // getRandomValues needs to be invoked in a context where "this" is a Crypto // implementation. Also, find the complete implementation of crypto on IE11. -var getRandomValues = typeof crypto != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto); +var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) || + (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto)); if (getRandomValues) { // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto @@ -147742,9 +155807,7 @@ if (getRandomValues) { }; } -},{}],993:[function(require,module,exports){ -'use strict'; - +},{}],1007:[function(require,module,exports){ var rng = require('./lib/rng'); var bytesToUuid = require('./lib/bytesToUuid'); @@ -147776,7 +155839,10 @@ function v1(options, buf, offset) { var seedBytes = rng(); if (node == null) { // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + node = _nodeId = [ + seedBytes[0] | 0x01, + seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5] + ]; } if (clockseq == null) { // Per 4.2.2, randomize (14 bit) clockseq @@ -147795,7 +155861,7 @@ function v1(options, buf, offset) { var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; + var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000; // Per 4.2.1.2, Bump clockseq on clock regression if (dt < 0 && options.clockseq === undefined) { @@ -147828,7 +155894,7 @@ function v1(options, buf, offset) { b[i++] = tl & 0xff; // `time_mid` - var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff; b[i++] = tmh >>> 8 & 0xff; b[i++] = tmh & 0xff; @@ -147852,16 +155918,14 @@ function v1(options, buf, offset) { module.exports = v1; -},{"./lib/bytesToUuid":991,"./lib/rng":992}],994:[function(require,module,exports){ -'use strict'; - +},{"./lib/bytesToUuid":1005,"./lib/rng":1006}],1008:[function(require,module,exports){ var rng = require('./lib/rng'); var bytesToUuid = require('./lib/bytesToUuid'); function v4(options, buf, offset) { var i = buf && offset || 0; - if (typeof options == 'string') { + if (typeof(options) == 'string') { buf = options === 'binary' ? new Array(16) : null; options = null; } @@ -147870,8 +155934,8 @@ function v4(options, buf, offset) { 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; + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; // Copy bytes to buffer, if provided if (buf) { @@ -147885,52 +155949,53 @@ function v4(options, buf, offset) { module.exports = v4; -},{"./lib/bytesToUuid":991,"./lib/rng":992}],995:[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; }; - +},{"./lib/bytesToUuid":1005,"./lib/rng":1006}],1009:[function(require,module,exports){ var indexOf = require('indexof'); -var Object_keys = function Object_keys(obj) { - if (Object.keys) return Object.keys(obj);else { +var Object_keys = function (obj) { + if (Object.keys) return Object.keys(obj) + else { var res = []; - for (var key in obj) { - res.push(key); - }return 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++) { +var forEach = function (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 () { +var defineProp = (function() { try { Object.defineProperty({}, '_', {}); - return function (obj, name, value) { + return function(obj, name, value) { Object.defineProperty(obj, name, { writable: true, enumerable: false, configurable: true, value: value - }); + }) }; - } catch (e) { - return function (obj, name, 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']; +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) { +var Script = exports.Script = function NodeScript (code) { if (!(this instanceof Script)) return new Script(code); this.code = code; }; @@ -147939,23 +156004,22 @@ 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; + 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]; }); @@ -147964,11 +156028,11 @@ Script.prototype.runInContext = function (context) { 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` @@ -147983,9 +156047,9 @@ Script.prototype.runInContext = function (context) { defineProp(context, key, win[key]); } }); - + document.body.removeChild(iframe); - + return res; }; @@ -148017,7 +156081,7 @@ exports.createScript = function (code) { exports.createContext = Script.createContext = function (context) { var copy = new Context(); - if ((typeof context === 'undefined' ? 'undefined' : _typeof(context)) === 'object') { + if(typeof context === 'object') { forEach(Object_keys(context), function (key) { copy[key] = context[key]; }); @@ -148025,9 +156089,7 @@ exports.createContext = Script.createContext = function (context) { return copy; }; -},{"indexof":881}],996:[function(require,module,exports){ -'use strict'; - +},{"indexof":895}],1010:[function(require,module,exports){ // Base58 encoding/decoding // Originally written by Mike Hearn for BitcoinJ // Copyright (c) 2011 Google Inc @@ -148043,25 +156105,22 @@ for (var i = 0; i < ALPHABET.length; ++i) { var BASE = ALPHABET.length; module.exports = { - decode: function decode(string) { + decode: function(string) { if (string.length === 0) return []; - var i, - j, - bytes = [0]; + 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]; + 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; + bytes[j] &= 0xff } while (carry) { @@ -148070,7 +156129,7 @@ module.exports = { } } // deal with leading zeros - for (i = 0; string[i] === '1' && i < string.length - 1; ++i) { + for (i = 0; string[i] === '1' && i < string.length - 1; ++i){ bytes.push(0); } @@ -148078,174 +156137,198 @@ module.exports = { } }; -},{}],997:[function(require,module,exports){ +},{}],1011:[function(require,module,exports){ (function (Buffer){ 'use strict'; /** * Credits to https://github.com/cryptocoinjs/blake-hash */ +Blake256.sigma = [ + [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], + [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3], + [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4], + [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8], + [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13], + [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9], + [12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11], + [13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10], + [6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5], + [10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0], + [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], + [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3], + [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4], + [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8], + [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13], + [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9] +] -Blake256.sigma = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3], [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4], [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8], [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13], [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9], [12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11], [13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10], [6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5], [10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3], [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4], [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8], [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13], [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9]]; - -Blake256.u256 = [0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, 0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89, 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c, 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917]; +Blake256.u256 = [ + 0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, + 0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89, + 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c, + 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917 +] -Blake256.padding = new Buffer([0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); +Blake256.padding = new Buffer([ + 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +]) Blake256.prototype._length_carry = function (arr) { for (var j = 0; j < arr.length; ++j) { - if (arr[j] < 0x0100000000) break; - arr[j] -= 0x0100000000; - arr[j + 1] += 1; + if (arr[j] < 0x0100000000) break + arr[j] -= 0x0100000000 + arr[j + 1] += 1 } -}; +} Blake256.prototype.update = function (data, encoding) { data = new Buffer(data, encoding); - var block = this._block; - var offset = 0; + var block = this._block + var offset = 0 while (this._blockOffset + data.length - offset >= block.length) { - for (var i = this._blockOffset; i < block.length;) { - block[i++] = data[offset++]; - }this._length[0] += block.length * 8; - this._length_carry(this._length); + for (var i = this._blockOffset; i < block.length;) block[i++] = data[offset++] + + this._length[0] += block.length * 8 + this._length_carry(this._length) - this._compress(); - this._blockOffset = 0; + this._compress() + this._blockOffset = 0 } - while (offset < data.length) { - block[this._blockOffset++] = data[offset++]; - }return this; -}; + while (offset < data.length) block[this._blockOffset++] = data[offset++] + return this; +} -var zo = new Buffer([0x01]); -var oo = new Buffer([0x81]); +var zo = new Buffer([0x01]) +var oo = new Buffer([0x81]) -function rot(x, n) { - return (x << 32 - n | x >>> n) >>> 0; +function rot (x, n) { + return ((x << (32 - n)) | (x >>> n)) >>> 0 } -function g(v, m, i, a, b, c, d, e) { - var sigma = Blake256.sigma; - var u256 = Blake256.u256; +function g (v, m, i, a, b, c, d, e) { + var sigma = Blake256.sigma + var u256 = Blake256.u256 - v[a] = v[a] + ((m[sigma[i][e]] ^ u256[sigma[i][e + 1]]) >>> 0) + v[b] >>> 0; - v[d] = rot(v[d] ^ v[a], 16); - v[c] = v[c] + v[d] >>> 0; - v[b] = rot(v[b] ^ v[c], 12); - v[a] = v[a] + ((m[sigma[i][e + 1]] ^ u256[sigma[i][e]]) >>> 0) + v[b] >>> 0; - v[d] = rot(v[d] ^ v[a], 8); - v[c] = v[c] + v[d] >>> 0; - v[b] = rot(v[b] ^ v[c], 7); + v[a] = (v[a] + ((m[sigma[i][e]] ^ u256[sigma[i][e + 1]]) >>> 0) + v[b]) >>> 0 + v[d] = rot(v[d] ^ v[a], 16) + v[c] = (v[c] + v[d]) >>> 0 + v[b] = rot(v[b] ^ v[c], 12) + v[a] = (v[a] + ((m[sigma[i][e + 1]] ^ u256[sigma[i][e]]) >>> 0) + v[b]) >>> 0 + v[d] = rot(v[d] ^ v[a], 8) + v[c] = (v[c] + v[d]) >>> 0 + v[b] = rot(v[b] ^ v[c], 7) } -function Blake256() { - this._h = [0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19]; +function Blake256 () { + this._h = [ + 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, + 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 + ] - this._s = [0, 0, 0, 0]; + this._s = [0, 0, 0, 0] - this._block = new Buffer(64); - this._blockOffset = 0; - this._length = [0, 0]; + this._block = new Buffer(64) + this._blockOffset = 0 + this._length = [0, 0] - this._nullt = false; + this._nullt = false - this._zo = zo; - this._oo = oo; + this._zo = zo + this._oo = oo } Blake256.prototype._compress = function () { - var u256 = Blake256.u256; - var v = new Array(16); - var m = new Array(16); - var i; + var u256 = Blake256.u256 + var v = new Array(16) + var m = new Array(16) + var i + + for (i = 0; i < 16; ++i) m[i] = this._block.readUInt32BE(i * 4) + for (i = 0; i < 8; ++i) v[i] = this._h[i] >>> 0 + for (i = 8; i < 12; ++i) v[i] = (this._s[i - 8] ^ u256[i - 8]) >>> 0 + for (i = 12; i < 16; ++i) v[i] = u256[i - 8] - for (i = 0; i < 16; ++i) { - m[i] = this._block.readUInt32BE(i * 4); - }for (i = 0; i < 8; ++i) { - v[i] = this._h[i] >>> 0; - }for (i = 8; i < 12; ++i) { - v[i] = (this._s[i - 8] ^ u256[i - 8]) >>> 0; - }for (i = 12; i < 16; ++i) { - v[i] = u256[i - 8]; - }if (!this._nullt) { - v[12] = (v[12] ^ this._length[0]) >>> 0; - v[13] = (v[13] ^ this._length[0]) >>> 0; - v[14] = (v[14] ^ this._length[1]) >>> 0; - v[15] = (v[15] ^ this._length[1]) >>> 0; + if (!this._nullt) { + v[12] = (v[12] ^ this._length[0]) >>> 0 + v[13] = (v[13] ^ this._length[0]) >>> 0 + v[14] = (v[14] ^ this._length[1]) >>> 0 + v[15] = (v[15] ^ this._length[1]) >>> 0 } for (i = 0; i < 14; ++i) { /* column step */ - g(v, m, i, 0, 4, 8, 12, 0); - g(v, m, i, 1, 5, 9, 13, 2); - g(v, m, i, 2, 6, 10, 14, 4); - g(v, m, i, 3, 7, 11, 15, 6); + g(v, m, i, 0, 4, 8, 12, 0) + g(v, m, i, 1, 5, 9, 13, 2) + g(v, m, i, 2, 6, 10, 14, 4) + g(v, m, i, 3, 7, 11, 15, 6) /* diagonal step */ - g(v, m, i, 0, 5, 10, 15, 8); - g(v, m, i, 1, 6, 11, 12, 10); - g(v, m, i, 2, 7, 8, 13, 12); - g(v, m, i, 3, 4, 9, 14, 14); + g(v, m, i, 0, 5, 10, 15, 8) + g(v, m, i, 1, 6, 11, 12, 10) + g(v, m, i, 2, 7, 8, 13, 12) + g(v, m, i, 3, 4, 9, 14, 14) } - for (i = 0; i < 16; ++i) { - this._h[i % 8] = (this._h[i % 8] ^ v[i]) >>> 0; - }for (i = 0; i < 8; ++i) { - this._h[i] = (this._h[i] ^ this._s[i % 4]) >>> 0; - } -}; + for (i = 0; i < 16; ++i) this._h[i % 8] = (this._h[i % 8] ^ v[i]) >>> 0 + for (i = 0; i < 8; ++i) this._h[i] = (this._h[i] ^ this._s[i % 4]) >>> 0 +} Blake256.prototype._padding = function () { - var lo = this._length[0] + this._blockOffset * 8; - var hi = this._length[1]; + var lo = this._length[0] + this._blockOffset * 8 + var hi = this._length[1] if (lo >= 0x0100000000) { - lo -= 0x0100000000; - hi += 1; + lo -= 0x0100000000 + hi += 1 } - var msglen = new Buffer(8); - msglen.writeUInt32BE(hi, 0); - msglen.writeUInt32BE(lo, 4); + var msglen = new Buffer(8) + msglen.writeUInt32BE(hi, 0) + msglen.writeUInt32BE(lo, 4) if (this._blockOffset === 55) { - this._length[0] -= 8; - this.update(this._oo); + this._length[0] -= 8 + this.update(this._oo) } else { if (this._blockOffset < 55) { - if (this._blockOffset === 0) this._nullt = true; - this._length[0] -= (55 - this._blockOffset) * 8; - this.update(Blake256.padding.slice(0, 55 - this._blockOffset)); + if (this._blockOffset === 0) this._nullt = true + this._length[0] -= (55 - this._blockOffset) * 8 + this.update(Blake256.padding.slice(0, 55 - this._blockOffset)) } else { - this._length[0] -= (64 - this._blockOffset) * 8; - this.update(Blake256.padding.slice(0, 64 - this._blockOffset)); - this._length[0] -= 55 * 8; - this.update(Blake256.padding.slice(1, 1 + 55)); - this._nullt = true; + this._length[0] -= (64 - this._blockOffset) * 8 + this.update(Blake256.padding.slice(0, 64 - this._blockOffset)) + this._length[0] -= 55 * 8 + this.update(Blake256.padding.slice(1, 1 + 55)) + this._nullt = true } - this.update(this._zo); - this._length[0] -= 8; + this.update(this._zo) + this._length[0] -= 8 } - this._length[0] -= 64; - this.update(msglen); -}; + this._length[0] -= 64 + this.update(msglen) +} Blake256.prototype.digest = function (encoding) { - this._padding(); + this._padding() - var buffer = new Buffer(32); - for (var i = 0; i < 8; ++i) { - buffer.writeUInt32BE(this._h[i], i * 4); - }return buffer.toString(encoding); -}; + var buffer = new Buffer(32) + for (var i = 0; i < 8; ++i) buffer.writeUInt32BE(this._h[i], i * 4) + return buffer.toString(encoding); +} module.exports = Blake256; - }).call(this,require("buffer").Buffer) -},{"buffer":401}],998:[function(require,module,exports){ +},{"buffer":415}],1012:[function(require,module,exports){ (function (process,global){ /** * [js-sha3]{@link https://github.com/emn178/js-sha3} @@ -148258,16 +156341,14 @@ module.exports = Blake256; /*jslint bitwise: true */ '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 ERROR = 'input is invalid type'; -var WINDOW = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object'; +var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_SHA3_NO_WINDOW) { WINDOW = false; } -var WEB_WORKER = !WINDOW && (typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object'; -var NODE_JS = !root.JS_SHA3_NO_NODE_JS && (typeof process === 'undefined' ? 'undefined' : _typeof(process)) === 'object' && process.versions && process.versions.node; +var WEB_WORKER = !WINDOW && typeof self === 'object'; +var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { @@ -148280,7 +156361,11 @@ var CSHAKE_PADDING = [4, 1024, 262144, 67108864]; var KECCAK_PADDING = [1, 256, 65536, 16777216]; var PADDING = [6, 1536, 393216, 100663296]; var SHIFT = [0, 8, 16, 24]; -var RC = [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]; +var RC = [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]; var BITS = [224, 256, 384, 512]; var SHAKE_BITS = [128, 256]; var OUTPUT_TYPES = ['hex', 'buffer', 'arrayBuffer', 'array', 'digest']; @@ -148297,35 +156382,35 @@ if (root.JS_SHA3_NO_NODE_JS || !Array.isArray) { if (ARRAY_BUFFER && (root.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function (obj) { - return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; + return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } -var createOutputMethod = function createOutputMethod(bits, padding, outputType) { +var createOutputMethod = function (bits, padding, outputType) { return function (message) { return new Keccak(bits, padding, bits).update(message)[outputType](); }; }; -var createShakeOutputMethod = function createShakeOutputMethod(bits, padding, outputType) { +var createShakeOutputMethod = function (bits, padding, outputType) { return function (message, outputBits) { return new Keccak(bits, padding, outputBits).update(message)[outputType](); }; }; -var createCshakeOutputMethod = function createCshakeOutputMethod(bits, padding, outputType) { +var createCshakeOutputMethod = function (bits, padding, outputType) { return function (message, outputBits, n, s) { return methods['cshake' + bits].update(message, outputBits, n, s)[outputType](); }; }; -var createKmacOutputMethod = function createKmacOutputMethod(bits, padding, outputType) { +var createKmacOutputMethod = function (bits, padding, outputType) { return function (key, message, outputBits, s) { return methods['kmac' + bits].update(key, message, outputBits, s)[outputType](); }; }; -var createOutputMethods = function createOutputMethods(method, createMethod, bits, padding) { +var createOutputMethods = function (method, createMethod, bits, padding) { for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method[type] = createMethod(bits, padding, type); @@ -148333,7 +156418,7 @@ var createOutputMethods = function createOutputMethods(method, createMethod, bit return method; }; -var createMethod = function createMethod(bits, padding) { +var createMethod = function (bits, padding) { var method = createOutputMethod(bits, padding, 'hex'); method.create = function () { return new Keccak(bits, padding, bits); @@ -148344,7 +156429,7 @@ var createMethod = function createMethod(bits, padding) { return createOutputMethods(method, createOutputMethod, bits, padding); }; -var createShakeMethod = function createShakeMethod(bits, padding) { +var createShakeMethod = function (bits, padding) { var method = createShakeOutputMethod(bits, padding, 'hex'); method.create = function (outputBits) { return new Keccak(bits, padding, outputBits); @@ -148355,7 +156440,7 @@ var createShakeMethod = function createShakeMethod(bits, padding) { return createOutputMethods(method, createShakeOutputMethod, bits, padding); }; -var createCshakeMethod = function createCshakeMethod(bits, padding) { +var createCshakeMethod = function (bits, padding) { var w = CSHAKE_BYTEPAD[bits]; var method = createCshakeOutputMethod(bits, padding, 'hex'); method.create = function (outputBits, n, s) { @@ -148371,7 +156456,7 @@ var createCshakeMethod = function createCshakeMethod(bits, padding) { return createOutputMethods(method, createCshakeOutputMethod, bits, padding); }; -var createKmacMethod = function createKmacMethod(bits, padding) { +var createKmacMethod = function (bits, padding) { var w = CSHAKE_BYTEPAD[bits]; var method = createKmacOutputMethod(bits, padding, 'hex'); method.create = function (key, outputBits, s) { @@ -148383,10 +156468,15 @@ var createKmacMethod = function createKmacMethod(bits, padding) { return createOutputMethods(method, createKmacOutputMethod, bits, padding); }; -var algorithms = [{ name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod }, { name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod }, { name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod }, { name: 'cshake', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createCshakeMethod }, { name: 'kmac', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createKmacMethod }]; +var algorithms = [ + { name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod }, + { name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod }, + { name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod }, + { name: 'cshake', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createCshakeMethod }, + { name: 'kmac', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createKmacMethod } +]; -var methods = {}, - methodNames = []; +var methods = {}, methodNames = []; for (var i = 0; i < algorithms.length; ++i) { var algorithm = algorithms[i]; @@ -148412,7 +156502,7 @@ function Keccak(bits, padding, outputBits) { this.finalized = false; this.block = 0; this.start = 0; - this.blockCount = 1600 - (bits << 1) >> 5; + this.blockCount = (1600 - (bits << 1)) >> 5; this.byteCount = this.blockCount << 2; this.outputBlocks = outputBits >> 5; this.extraBytes = (outputBits & 31) >> 3; @@ -148426,8 +156516,7 @@ Keccak.prototype.update = function (message) { if (this.finalized) { return; } - var notString, - type = typeof message === 'undefined' ? 'undefined' : _typeof(message); + var notString, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { @@ -148444,14 +156533,8 @@ Keccak.prototype.update = function (message) { } notString = true; } - var blocks = this.blocks, - byteCount = this.byteCount, - length = message.length, - blockCount = this.blockCount, - index = 0, - s = this.s, - i, - code; + var blocks = this.blocks, byteCount = this.byteCount, length = message.length, + blockCount = this.blockCount, index = 0, s = this.s, i, code; while (index < length) { if (this.reset) { @@ -148471,18 +156554,18 @@ Keccak.prototype.update = function (message) { if (code < 0x80) { blocks[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 0x800) { - blocks[i >> 2] |= (0xc0 | code >> 6) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code & 0x3f) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { - blocks[i >> 2] |= (0xe0 | code >> 12) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code >> 6 & 0x3f) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code & 0x3f) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else { - code = 0x10000 + ((code & 0x3ff) << 10 | message.charCodeAt(++index) & 0x3ff); - blocks[i >> 2] |= (0xf0 | code >> 18) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code >> 12 & 0x3f) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code >> 6 & 0x3f) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | code & 0x3f) << SHIFT[i++ & 3]; + code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); + blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; + blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } } } @@ -148503,8 +156586,7 @@ Keccak.prototype.update = function (message) { }; Keccak.prototype.encode = function (x, right) { - var o = x & 255, - n = 1; + var o = x & 255, n = 1; var bytes = [o]; x = x >> 8; o = x & 255; @@ -148524,8 +156606,7 @@ Keccak.prototype.encode = function (x, right) { }; Keccak.prototype.encodeString = function (str) { - var notString, - type = typeof str === 'undefined' ? 'undefined' : _typeof(str); + var notString, type = typeof str; if (type !== 'string') { if (type === 'object') { if (str === null) { @@ -148542,8 +156623,7 @@ Keccak.prototype.encodeString = function (str) { } notString = true; } - var bytes = 0, - length = str.length; + var bytes = 0, length = str.length; if (notString) { bytes = length; } else { @@ -148556,7 +156636,7 @@ Keccak.prototype.encodeString = function (str) { } else if (code < 0xd800 || code >= 0xe000) { bytes += 3; } else { - code = 0x10000 + ((code & 0x3ff) << 10 | str.charCodeAt(++i) & 0x3ff); + code = 0x10000 + (((code & 0x3ff) << 10) | (str.charCodeAt(++i) & 0x3ff)); bytes += 4; } } @@ -148583,10 +156663,7 @@ Keccak.prototype.finalize = function () { return; } this.finalized = true; - var blocks = this.blocks, - i = this.lastByteIndex, - blockCount = this.blockCount, - s = this.s; + var blocks = this.blocks, i = this.lastByteIndex, blockCount = this.blockCount, s = this.s; blocks[i >> 2] |= this.padding[i & 3]; if (this.lastByteIndex === this.byteCount) { blocks[0] = blocks[blockCount]; @@ -148604,18 +156681,16 @@ Keccak.prototype.finalize = function () { Keccak.prototype.toString = Keccak.prototype.hex = function () { this.finalize(); - var blockCount = this.blockCount, - s = this.s, - outputBlocks = this.outputBlocks, - extraBytes = this.extraBytes, - i = 0, - j = 0; - var hex = '', - block; + var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks, + extraBytes = this.extraBytes, i = 0, j = 0; + var hex = '', block; while (j < outputBlocks) { for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) { block = s[i]; - hex += HEX_CHARS[block >> 4 & 0x0F] + HEX_CHARS[block & 0x0F] + HEX_CHARS[block >> 12 & 0x0F] + HEX_CHARS[block >> 8 & 0x0F] + HEX_CHARS[block >> 20 & 0x0F] + HEX_CHARS[block >> 16 & 0x0F] + HEX_CHARS[block >> 28 & 0x0F] + HEX_CHARS[block >> 24 & 0x0F]; + hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F] + + HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F] + + HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F] + + HEX_CHARS[(block >> 28) & 0x0F] + HEX_CHARS[(block >> 24) & 0x0F]; } if (j % blockCount === 0) { f(s); @@ -148624,12 +156699,12 @@ Keccak.prototype.toString = Keccak.prototype.hex = function () { } if (extraBytes) { block = s[i]; - hex += HEX_CHARS[block >> 4 & 0x0F] + HEX_CHARS[block & 0x0F]; + hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F]; if (extraBytes > 1) { - hex += HEX_CHARS[block >> 12 & 0x0F] + HEX_CHARS[block >> 8 & 0x0F]; + hex += HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F]; } if (extraBytes > 2) { - hex += HEX_CHARS[block >> 20 & 0x0F] + HEX_CHARS[block >> 16 & 0x0F]; + hex += HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F]; } } return hex; @@ -148638,16 +156713,12 @@ Keccak.prototype.toString = Keccak.prototype.hex = function () { Keccak.prototype.arrayBuffer = function () { this.finalize(); - var blockCount = this.blockCount, - s = this.s, - outputBlocks = this.outputBlocks, - extraBytes = this.extraBytes, - i = 0, - j = 0; + var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks, + extraBytes = this.extraBytes, i = 0, j = 0; var bytes = this.outputBits >> 3; var buffer; if (extraBytes) { - buffer = new ArrayBuffer(outputBlocks + 1 << 2); + buffer = new ArrayBuffer((outputBlocks + 1) << 2); } else { buffer = new ArrayBuffer(bytes); } @@ -148672,23 +156743,17 @@ Keccak.prototype.buffer = Keccak.prototype.arrayBuffer; Keccak.prototype.digest = Keccak.prototype.array = function () { this.finalize(); - var blockCount = this.blockCount, - s = this.s, - outputBlocks = this.outputBlocks, - extraBytes = this.extraBytes, - i = 0, - j = 0; - var array = [], - offset, - block; + var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks, + extraBytes = this.extraBytes, i = 0, j = 0; + var array = [], offset, block; while (j < outputBlocks) { for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) { offset = j << 2; block = s[i]; array[offset] = block & 0xFF; - array[offset + 1] = block >> 8 & 0xFF; - array[offset + 2] = block >> 16 & 0xFF; - array[offset + 3] = block >> 24 & 0xFF; + array[offset + 1] = (block >> 8) & 0xFF; + array[offset + 2] = (block >> 16) & 0xFF; + array[offset + 3] = (block >> 24) & 0xFF; } if (j % blockCount === 0) { f(s); @@ -148699,10 +156764,10 @@ Keccak.prototype.digest = Keccak.prototype.array = function () { block = s[i]; array[offset] = block & 0xFF; if (extraBytes > 1) { - array[offset + 1] = block >> 8 & 0xFF; + array[offset + 1] = (block >> 8) & 0xFF; } if (extraBytes > 2) { - array[offset + 2] = block >> 16 & 0xFF; + array[offset + 2] = (block >> 16) & 0xFF; } } return array; @@ -148719,8 +156784,11 @@ Kmac.prototype.finalize = function () { return Keccak.prototype.finalize.call(this); }; -var f = function f(s) { - var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33, b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49; +var f = function (s) { + var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, + b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17, + b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33, + b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49; for (n = 0; n < 48; n += 2) { c0 = s[0] ^ s[10] ^ s[20] ^ s[30] ^ s[40]; c1 = s[1] ^ s[11] ^ s[21] ^ s[31] ^ s[41]; @@ -148733,8 +156801,8 @@ var f = function f(s) { c8 = s[8] ^ s[18] ^ s[28] ^ s[38] ^ s[48]; c9 = s[9] ^ s[19] ^ s[29] ^ s[39] ^ s[49]; - h = c8 ^ (c2 << 1 | c3 >>> 31); - l = c9 ^ (c3 << 1 | c2 >>> 31); + h = c8 ^ ((c2 << 1) | (c3 >>> 31)); + l = c9 ^ ((c3 << 1) | (c2 >>> 31)); s[0] ^= h; s[1] ^= l; s[10] ^= h; @@ -148745,8 +156813,8 @@ var f = function f(s) { s[31] ^= l; s[40] ^= h; s[41] ^= l; - h = c0 ^ (c4 << 1 | c5 >>> 31); - l = c1 ^ (c5 << 1 | c4 >>> 31); + h = c0 ^ ((c4 << 1) | (c5 >>> 31)); + l = c1 ^ ((c5 << 1) | (c4 >>> 31)); s[2] ^= h; s[3] ^= l; s[12] ^= h; @@ -148757,8 +156825,8 @@ var f = function f(s) { s[33] ^= l; s[42] ^= h; s[43] ^= l; - h = c2 ^ (c6 << 1 | c7 >>> 31); - l = c3 ^ (c7 << 1 | c6 >>> 31); + h = c2 ^ ((c6 << 1) | (c7 >>> 31)); + l = c3 ^ ((c7 << 1) | (c6 >>> 31)); s[4] ^= h; s[5] ^= l; s[14] ^= h; @@ -148769,8 +156837,8 @@ var f = function f(s) { s[35] ^= l; s[44] ^= h; s[45] ^= l; - h = c4 ^ (c8 << 1 | c9 >>> 31); - l = c5 ^ (c9 << 1 | c8 >>> 31); + h = c4 ^ ((c8 << 1) | (c9 >>> 31)); + l = c5 ^ ((c9 << 1) | (c8 >>> 31)); s[6] ^= h; s[7] ^= l; s[16] ^= h; @@ -148781,8 +156849,8 @@ var f = function f(s) { s[37] ^= l; s[46] ^= h; s[47] ^= l; - h = c6 ^ (c0 << 1 | c1 >>> 31); - l = c7 ^ (c1 << 1 | c0 >>> 31); + h = c6 ^ ((c0 << 1) | (c1 >>> 31)); + l = c7 ^ ((c1 << 1) | (c0 >>> 31)); s[8] ^= h; s[9] ^= l; s[18] ^= h; @@ -148796,105 +156864,105 @@ var f = function f(s) { b0 = s[0]; b1 = s[1]; - b32 = s[11] << 4 | s[10] >>> 28; - b33 = s[10] << 4 | s[11] >>> 28; - b14 = s[20] << 3 | s[21] >>> 29; - b15 = s[21] << 3 | s[20] >>> 29; - b46 = s[31] << 9 | s[30] >>> 23; - b47 = s[30] << 9 | s[31] >>> 23; - b28 = s[40] << 18 | s[41] >>> 14; - b29 = s[41] << 18 | s[40] >>> 14; - b20 = s[2] << 1 | s[3] >>> 31; - b21 = s[3] << 1 | s[2] >>> 31; - b2 = s[13] << 12 | s[12] >>> 20; - b3 = s[12] << 12 | s[13] >>> 20; - b34 = s[22] << 10 | s[23] >>> 22; - b35 = s[23] << 10 | s[22] >>> 22; - b16 = s[33] << 13 | s[32] >>> 19; - b17 = s[32] << 13 | s[33] >>> 19; - b48 = s[42] << 2 | s[43] >>> 30; - b49 = s[43] << 2 | s[42] >>> 30; - b40 = s[5] << 30 | s[4] >>> 2; - b41 = s[4] << 30 | s[5] >>> 2; - b22 = s[14] << 6 | s[15] >>> 26; - b23 = s[15] << 6 | s[14] >>> 26; - b4 = s[25] << 11 | s[24] >>> 21; - b5 = s[24] << 11 | s[25] >>> 21; - b36 = s[34] << 15 | s[35] >>> 17; - b37 = s[35] << 15 | s[34] >>> 17; - b18 = s[45] << 29 | s[44] >>> 3; - b19 = s[44] << 29 | s[45] >>> 3; - b10 = s[6] << 28 | s[7] >>> 4; - b11 = s[7] << 28 | s[6] >>> 4; - b42 = s[17] << 23 | s[16] >>> 9; - b43 = s[16] << 23 | s[17] >>> 9; - b24 = s[26] << 25 | s[27] >>> 7; - b25 = s[27] << 25 | s[26] >>> 7; - b6 = s[36] << 21 | s[37] >>> 11; - b7 = s[37] << 21 | s[36] >>> 11; - b38 = s[47] << 24 | s[46] >>> 8; - b39 = s[46] << 24 | s[47] >>> 8; - b30 = s[8] << 27 | s[9] >>> 5; - b31 = s[9] << 27 | s[8] >>> 5; - b12 = s[18] << 20 | s[19] >>> 12; - b13 = s[19] << 20 | s[18] >>> 12; - b44 = s[29] << 7 | s[28] >>> 25; - b45 = s[28] << 7 | s[29] >>> 25; - b26 = s[38] << 8 | s[39] >>> 24; - b27 = s[39] << 8 | s[38] >>> 24; - b8 = s[48] << 14 | s[49] >>> 18; - b9 = s[49] << 14 | s[48] >>> 18; - - s[0] = b0 ^ ~b2 & b4; - s[1] = b1 ^ ~b3 & b5; - s[10] = b10 ^ ~b12 & b14; - s[11] = b11 ^ ~b13 & b15; - s[20] = b20 ^ ~b22 & b24; - s[21] = b21 ^ ~b23 & b25; - s[30] = b30 ^ ~b32 & b34; - s[31] = b31 ^ ~b33 & b35; - s[40] = b40 ^ ~b42 & b44; - s[41] = b41 ^ ~b43 & b45; - s[2] = b2 ^ ~b4 & b6; - s[3] = b3 ^ ~b5 & b7; - s[12] = b12 ^ ~b14 & b16; - s[13] = b13 ^ ~b15 & b17; - s[22] = b22 ^ ~b24 & b26; - s[23] = b23 ^ ~b25 & b27; - s[32] = b32 ^ ~b34 & b36; - s[33] = b33 ^ ~b35 & b37; - s[42] = b42 ^ ~b44 & b46; - s[43] = b43 ^ ~b45 & b47; - s[4] = b4 ^ ~b6 & b8; - s[5] = b5 ^ ~b7 & b9; - s[14] = b14 ^ ~b16 & b18; - s[15] = b15 ^ ~b17 & b19; - s[24] = b24 ^ ~b26 & b28; - s[25] = b25 ^ ~b27 & b29; - s[34] = b34 ^ ~b36 & b38; - s[35] = b35 ^ ~b37 & b39; - s[44] = b44 ^ ~b46 & b48; - s[45] = b45 ^ ~b47 & b49; - s[6] = b6 ^ ~b8 & b0; - s[7] = b7 ^ ~b9 & b1; - s[16] = b16 ^ ~b18 & b10; - s[17] = b17 ^ ~b19 & b11; - s[26] = b26 ^ ~b28 & b20; - s[27] = b27 ^ ~b29 & b21; - s[36] = b36 ^ ~b38 & b30; - s[37] = b37 ^ ~b39 & b31; - s[46] = b46 ^ ~b48 & b40; - s[47] = b47 ^ ~b49 & b41; - s[8] = b8 ^ ~b0 & b2; - s[9] = b9 ^ ~b1 & b3; - s[18] = b18 ^ ~b10 & b12; - s[19] = b19 ^ ~b11 & b13; - s[28] = b28 ^ ~b20 & b22; - s[29] = b29 ^ ~b21 & b23; - s[38] = b38 ^ ~b30 & b32; - s[39] = b39 ^ ~b31 & b33; - s[48] = b48 ^ ~b40 & b42; - s[49] = b49 ^ ~b41 & b43; + b32 = (s[11] << 4) | (s[10] >>> 28); + b33 = (s[10] << 4) | (s[11] >>> 28); + b14 = (s[20] << 3) | (s[21] >>> 29); + b15 = (s[21] << 3) | (s[20] >>> 29); + b46 = (s[31] << 9) | (s[30] >>> 23); + b47 = (s[30] << 9) | (s[31] >>> 23); + b28 = (s[40] << 18) | (s[41] >>> 14); + b29 = (s[41] << 18) | (s[40] >>> 14); + b20 = (s[2] << 1) | (s[3] >>> 31); + b21 = (s[3] << 1) | (s[2] >>> 31); + b2 = (s[13] << 12) | (s[12] >>> 20); + b3 = (s[12] << 12) | (s[13] >>> 20); + b34 = (s[22] << 10) | (s[23] >>> 22); + b35 = (s[23] << 10) | (s[22] >>> 22); + b16 = (s[33] << 13) | (s[32] >>> 19); + b17 = (s[32] << 13) | (s[33] >>> 19); + b48 = (s[42] << 2) | (s[43] >>> 30); + b49 = (s[43] << 2) | (s[42] >>> 30); + b40 = (s[5] << 30) | (s[4] >>> 2); + b41 = (s[4] << 30) | (s[5] >>> 2); + b22 = (s[14] << 6) | (s[15] >>> 26); + b23 = (s[15] << 6) | (s[14] >>> 26); + b4 = (s[25] << 11) | (s[24] >>> 21); + b5 = (s[24] << 11) | (s[25] >>> 21); + b36 = (s[34] << 15) | (s[35] >>> 17); + b37 = (s[35] << 15) | (s[34] >>> 17); + b18 = (s[45] << 29) | (s[44] >>> 3); + b19 = (s[44] << 29) | (s[45] >>> 3); + b10 = (s[6] << 28) | (s[7] >>> 4); + b11 = (s[7] << 28) | (s[6] >>> 4); + b42 = (s[17] << 23) | (s[16] >>> 9); + b43 = (s[16] << 23) | (s[17] >>> 9); + b24 = (s[26] << 25) | (s[27] >>> 7); + b25 = (s[27] << 25) | (s[26] >>> 7); + b6 = (s[36] << 21) | (s[37] >>> 11); + b7 = (s[37] << 21) | (s[36] >>> 11); + b38 = (s[47] << 24) | (s[46] >>> 8); + b39 = (s[46] << 24) | (s[47] >>> 8); + b30 = (s[8] << 27) | (s[9] >>> 5); + b31 = (s[9] << 27) | (s[8] >>> 5); + b12 = (s[18] << 20) | (s[19] >>> 12); + b13 = (s[19] << 20) | (s[18] >>> 12); + b44 = (s[29] << 7) | (s[28] >>> 25); + b45 = (s[28] << 7) | (s[29] >>> 25); + b26 = (s[38] << 8) | (s[39] >>> 24); + b27 = (s[39] << 8) | (s[38] >>> 24); + b8 = (s[48] << 14) | (s[49] >>> 18); + b9 = (s[49] << 14) | (s[48] >>> 18); + + s[0] = b0 ^ (~b2 & b4); + s[1] = b1 ^ (~b3 & b5); + s[10] = b10 ^ (~b12 & b14); + s[11] = b11 ^ (~b13 & b15); + s[20] = b20 ^ (~b22 & b24); + s[21] = b21 ^ (~b23 & b25); + s[30] = b30 ^ (~b32 & b34); + s[31] = b31 ^ (~b33 & b35); + s[40] = b40 ^ (~b42 & b44); + s[41] = b41 ^ (~b43 & b45); + s[2] = b2 ^ (~b4 & b6); + s[3] = b3 ^ (~b5 & b7); + s[12] = b12 ^ (~b14 & b16); + s[13] = b13 ^ (~b15 & b17); + s[22] = b22 ^ (~b24 & b26); + s[23] = b23 ^ (~b25 & b27); + s[32] = b32 ^ (~b34 & b36); + s[33] = b33 ^ (~b35 & b37); + s[42] = b42 ^ (~b44 & b46); + s[43] = b43 ^ (~b45 & b47); + s[4] = b4 ^ (~b6 & b8); + s[5] = b5 ^ (~b7 & b9); + s[14] = b14 ^ (~b16 & b18); + s[15] = b15 ^ (~b17 & b19); + s[24] = b24 ^ (~b26 & b28); + s[25] = b25 ^ (~b27 & b29); + s[34] = b34 ^ (~b36 & b38); + s[35] = b35 ^ (~b37 & b39); + s[44] = b44 ^ (~b46 & b48); + s[45] = b45 ^ (~b47 & b49); + s[6] = b6 ^ (~b8 & b0); + s[7] = b7 ^ (~b9 & b1); + s[16] = b16 ^ (~b18 & b10); + s[17] = b17 ^ (~b19 & b11); + s[26] = b26 ^ (~b28 & b20); + s[27] = b27 ^ (~b29 & b21); + s[36] = b36 ^ (~b38 & b30); + s[37] = b37 ^ (~b39 & b31); + s[46] = b46 ^ (~b48 & b40); + s[47] = b47 ^ (~b49 & b41); + s[8] = b8 ^ (~b0 & b2); + s[9] = b9 ^ (~b1 & b3); + s[18] = b18 ^ (~b10 & b12); + s[19] = b19 ^ (~b11 & b13); + s[28] = b28 ^ (~b20 & b22); + s[29] = b29 ^ (~b21 & b23); + s[38] = b38 ^ (~b30 & b32); + s[39] = b39 ^ (~b31 & b33); + s[48] = b48 ^ (~b40 & b42); + s[49] = b49 ^ (~b41 & b43); s[0] ^= RC[n]; s[1] ^= RC[n + 1]; @@ -148904,51 +156972,47 @@ var f = function f(s) { module.exports = methods; }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"_process":911}],999:[function(require,module,exports){ -'use strict'; - +},{"_process":925}],1013:[function(require,module,exports){ var jsSHA = require('jssha/src/sha256'); var Blake256 = require('./blake256'); -var _keccak = require('./sha3')['keccak256']; +var keccak256 = require('./sha3')['keccak256']; -function numberToHex(number) { +function numberToHex (number) { var hex = Math.round(number).toString(16); - if (hex.length === 1) { + if(hex.length === 1) { hex = '0' + hex; } return hex; } module.exports = { - toHex: function toHex(arrayOfBytes) { + toHex: function (arrayOfBytes) { var hex = ''; - for (var i = 0; i < arrayOfBytes.length; i++) { + for(var i = 0; i < arrayOfBytes.length; i++) { hex += numberToHex(arrayOfBytes[i]); } return hex; }, - sha256: function sha256(hexString) { + sha256: function (hexString) { var sha = new jsSHA('SHA-256', 'HEX'); sha.update(hexString); return sha.getHash('HEX'); }, - sha256Checksum: function sha256Checksum(payload) { + sha256Checksum: function (payload) { return this.sha256(this.sha256(payload)).substr(0, 8); }, - blake256: function blake256(hexString) { + blake256: function (hexString) { return new Blake256().update(hexString, 'hex').digest('hex'); }, - blake256Checksum: function blake256Checksum(payload) { + blake256Checksum: function (payload) { return this.blake256(this.blake256(payload)).substr(0, 8); }, - keccak256: function keccak256(hexString) { - return _keccak(hexString); + keccak256: function (hexString) { + return keccak256(hexString); } }; -},{"./blake256":997,"./sha3":998,"jssha/src/sha256":886}],1000:[function(require,module,exports){ -'use strict'; - +},{"./blake256":1011,"./sha3":1012,"jssha/src/sha256":900}],1014:[function(require,module,exports){ var XRPValidator = require('./ripple_validator'); var ETHValidator = require('./ethereum_validator'); @@ -148956,165 +157020,166 @@ var ETHValidator = require('./ethereum_validator'); var CURRENCIES = [{ name: 'bitcoin', symbol: 'btc', - addressTypes: { prod: ['00', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['00', '05'], testnet: ['6f', 'c4']} +},{ name: 'bitcoincash', symbol: 'bch', - addressTypes: { prod: ['00', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['00', '05'], testnet: ['6f', 'c4']} +},{ name: 'litecoin', symbol: 'ltc', - addressTypes: { prod: ['30', '05', '32'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['30', '05', '32'], testnet: ['6f', 'c4']} +},{ name: 'peercoin', symbol: 'ppc', - addressTypes: { prod: ['37', '75'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['37', '75'], testnet: ['6f', 'c4']} +},{ name: 'dogecoin', symbol: 'doge', - addressTypes: { prod: ['1e', '16'], testnet: ['71', 'c4'] } -}, { + addressTypes: {prod: ['1e', '16'], testnet: ['71', 'c4']} +},{ name: 'beavercoin', symbol: 'bvc', - addressTypes: { prod: ['19', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['19', '05'], testnet: ['6f', 'c4']} +},{ name: 'freicoin', symbol: 'frc', - addressTypes: { prod: ['00', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['00', '05'], testnet: ['6f', 'c4']} +},{ name: 'protoshares', symbol: 'pts', - addressTypes: { prod: ['38', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['38', '05'], testnet: ['6f', 'c4']} +},{ name: 'megacoin', symbol: 'mec', - addressTypes: { prod: ['32', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['32', '05'], testnet: ['6f', 'c4']} +},{ name: 'primecoin', symbol: 'xpm', - addressTypes: { prod: ['17', '53'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['17', '53'], testnet: ['6f', 'c4']} +},{ name: 'auroracoin', symbol: 'aur', - addressTypes: { prod: ['17', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['17', '05'], testnet: ['6f', 'c4']} +},{ name: 'namecoin', symbol: 'nmc', - addressTypes: { prod: ['34'], testnet: [] } -}, { + addressTypes: {prod: ['34'], testnet: []} +},{ name: 'biocoin', symbol: 'bio', - addressTypes: { prod: ['19', '14'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['19', '14'], testnet: ['6f', 'c4']} +},{ name: 'garlicoin', symbol: 'grlc', - addressTypes: { prod: ['26', '05'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['26', '05'], testnet: ['6f', 'c4']} +},{ name: 'vertcoin', symbol: 'vtc', - addressTypes: { prod: ['0x', '47'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['0x', '47'], testnet: ['6f', 'c4']} +},{ name: 'bitcoingold', symbol: 'btg', - addressTypes: { prod: ['26', '17'], testnet: ['6f', 'c4'] } -}, { + addressTypes: {prod: ['26', '17'], testnet: ['6f', 'c4']} +},{ name: 'komodo', symbol: 'kmd', - addressTypes: { prod: ['3c', '55'], testnet: ['0', '5'] } -}, { + addressTypes: {prod: ['3c', '55'], testnet: ['0','5']} +},{ name: 'bitcoinz', symbol: 'btcz', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'bitcoinprivate', symbol: 'btcp', expectedLength: 26, - addressTypes: { prod: ['1325', '13af'], testnet: ['1957', '19e0'] } -}, { + addressTypes: {prod: ['1325','13af'], testnet: ['1957', '19e0']} +},{ name: 'hush', symbol: 'hush', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'snowgem', symbol: 'sng', expectedLength: 26, - addressTypes: { prod: ['1c28', '1c2d'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1c28','1c2d'], testnet: ['1d25', '1cba']} +},{ name: 'zcash', symbol: 'zec', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'zclassic', symbol: 'zcl', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'zencash', symbol: 'zen', expectedLength: 26, - addressTypes: { prod: ['2089', '2096'], testnet: ['2092', '2098'] } -}, { + addressTypes: {prod: ['2089','2096'], testnet: ['2092','2098']} +},{ name: 'votecoin', symbol: 'vot', expectedLength: 26, - addressTypes: { prod: ['1cb8', '1cbd'], testnet: ['1d25', '1cba'] } -}, { + addressTypes: {prod: ['1cb8','1cbd'], testnet: ['1d25', '1cba']} +},{ name: 'decred', symbol: 'dcr', - addressTypes: { prod: ['073f', '071a'], testnet: ['0f21', '0efc'] }, + addressTypes: {prod: ['073f', '071a'], testnet: ['0f21', '0efc']}, hashFunction: 'blake256', expectedLength: 26 -}, { +},{ name: 'digibyte', symbol: 'dgb', - addressTypes: { prod: ['1e'], testnet: [] } -}, { + addressTypes: {prod: ['1e'], testnet: []}, +},{ name: 'ethereum', symbol: 'eth', - validator: ETHValidator -}, { + validator: ETHValidator, +},{ name: 'etherzero', symbol: 'etz', - validator: ETHValidator -}, { + validator: ETHValidator, +},{ name: 'ethereumclassic', symbol: 'etc', - validator: ETHValidator -}, { + validator: ETHValidator, +},{ name: 'callisto', symbol: 'clo', - validator: ETHValidator -}, { + validator: ETHValidator, +},{ name: 'ripple', symbol: 'xrp', - validator: XRPValidator -}, { + validator: XRPValidator, +},{ name: 'dash', symbol: 'dash', - addressTypes: { prod: ['4c', '10'], testnet: ['8c', '13'] } -}, { + addressTypes: {prod: ['4c', '10'], testnet: ['8c', '13']} +},{ name: 'neo', symbol: 'neo', - addressTypes: { prod: ['17'], testnet: [] } -}, { + addressTypes: {prod: ['17'], testnet: []} +},{ name: 'neogas', symbol: 'gas', - addressTypes: { prod: ['17'], testnet: [] } -}, { + addressTypes: {prod: ['17'], testnet: []} +},{ name: 'qtum', symbol: 'qtum', - addressTypes: { prod: ['3a', '32'], testnet: ['6f', 'c4'] } + addressTypes: {prod: ['3a', '32'], testnet: ['6f', 'c4']} }]; + module.exports = { - getByNameOrSymbol: function getByNameOrSymbol(currencyNameOrSymbol) { + getByNameOrSymbol: function (currencyNameOrSymbol) { var nameOrSymbol = currencyNameOrSymbol.toLowerCase(); for (var i = 0; i < CURRENCIES.length; i++) { var currency = CURRENCIES[i]; - if (currency.name === nameOrSymbol || currency.symbol === nameOrSymbol) { + if(currency.name === nameOrSymbol || currency.symbol === nameOrSymbol) { return currency; } } @@ -149122,13 +157187,11 @@ module.exports = { } }; -},{"./ethereum_validator":1001,"./ripple_validator":1002}],1001:[function(require,module,exports){ -'use strict'; - +},{"./ethereum_validator":1015,"./ripple_validator":1016}],1015:[function(require,module,exports){ var cryptoUtils = require('./crypto/utils'); module.exports = { - isValidAddress: function isValidAddress(address) { + isValidAddress: function (address) { if (!/^0x[0-9a-fA-F]{40}$/.test(address)) { // Check if it has the basic requirements of an address return false; @@ -149142,15 +157205,16 @@ module.exports = { // Otherwise check each case return this.verifyChecksum(address); }, - verifyChecksum: function verifyChecksum(address) { + verifyChecksum: function (address) { // Check each case - address = address.replace('0x', ''); + address = address.replace('0x',''); var addressHash = cryptoUtils.keccak256(address.toLowerCase()); - for (var i = 0; i < 40; i++) { + 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]) { + if ((parseInt(addressHash[i], 16) > 7 && address[i].toUpperCase() !== address[i]) || + (parseInt(addressHash[i], 16) <= 7 && address[i].toLowerCase() !== address[i])) { return false; } } @@ -149159,9 +157223,7 @@ module.exports = { } }; -},{"./crypto/utils":999}],1002:[function(require,module,exports){ -'use strict'; - +},{"./crypto/utils":1013}],1016:[function(require,module,exports){ var cryptoUtils = require('./crypto/utils'); var baseX = require('base-x'); @@ -149174,7 +157236,7 @@ module.exports = { /** * ripple address validation */ - isValidAddress: function isValidAddress(address) { + isValidAddress: function (address) { if (regexp.test(address)) { return this.verifyChecksum(address); } @@ -149182,18 +157244,16 @@ module.exports = { return false; }, - verifyChecksum: function verifyChecksum(address) { + verifyChecksum: function (address) { var bytes = codec.decode(address); var computedChecksum = cryptoUtils.sha256Checksum(cryptoUtils.toHex(bytes.slice(0, -4))); var checksum = cryptoUtils.toHex(bytes.slice(-4)); - return computedChecksum === checksum; + return computedChecksum === checksum } }; -},{"./crypto/utils":999,"base-x":354}],1003:[function(require,module,exports){ -'use strict'; - +},{"./crypto/utils":1013,"base-x":368}],1017:[function(require,module,exports){ var base58 = require('./crypto/base58'); var cryptoUtils = require('./crypto/utils'); var currencies = require('./currencies'); @@ -149262,8 +157322,8 @@ function validate(address, currencyNameOrSymbol, networkType) { return false; } - if (networkType === 'prod' || networkType === 'testnet') { - correctAddressTypes = currency.addressTypes[networkType]; + if (networkType === 'prod' || networkType === 'testnet'){ + correctAddressTypes = currency.addressTypes[networkType] } else { correctAddressTypes = currency.addressTypes.prod.concat(currency.addressTypes.testnet); } @@ -149274,478 +157334,478 @@ function validate(address, currencyNameOrSymbol, networkType) { module.exports = { getAddressType: getAddressType, checksum: getChecksum, - validate: validate + validate: validate, }; -},{"./crypto/base58":996,"./crypto/utils":999,"./currencies":1000}],1004:[function(require,module,exports){ -'use strict'; - -(function (self) { +},{"./crypto/base58":1010,"./crypto/utils":1013,"./currencies":1014}],1018:[function(require,module,exports){ +(function(self) { 'use strict'; if (self.fetch) { - return; + return } var support = { searchParams: 'URLSearchParams' in self, iterable: 'Symbol' in self && 'iterator' in Symbol, - blob: 'FileReader' in self && 'Blob' in self && function () { + blob: 'FileReader' in self && 'Blob' in self && (function() { try { - new Blob(); - return true; - } catch (e) { - return false; + new Blob() + return true + } catch(e) { + return false } - }(), + })(), formData: 'FormData' in self, arrayBuffer: 'ArrayBuffer' in self - }; + } if (support.arrayBuffer) { - var viewClasses = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]']; + var viewClasses = [ + '[object Int8Array]', + '[object Uint8Array]', + '[object Uint8ClampedArray]', + '[object Int16Array]', + '[object Uint16Array]', + '[object Int32Array]', + '[object Uint32Array]', + '[object Float32Array]', + '[object Float64Array]' + ] - var isDataView = function isDataView(obj) { - return obj && DataView.prototype.isPrototypeOf(obj); - }; + var isDataView = function(obj) { + return obj && DataView.prototype.isPrototypeOf(obj) + } - var isArrayBufferView = ArrayBuffer.isView || function (obj) { - return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1; - }; + var isArrayBufferView = ArrayBuffer.isView || function(obj) { + return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 + } } function normalizeName(name) { if (typeof name !== 'string') { - name = String(name); + name = String(name) } if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) { - throw new TypeError('Invalid character in header field name'); + throw new TypeError('Invalid character in header field name') } - return name.toLowerCase(); + return name.toLowerCase() } function normalizeValue(value) { if (typeof value !== 'string') { - value = String(value); + value = String(value) } - return value; + return value } // Build a destructive iterator for the value list function iteratorFor(items) { var iterator = { - next: function next() { - var value = items.shift(); - return { done: value === undefined, value: value }; + next: function() { + var value = items.shift() + return {done: value === undefined, value: value} } - }; + } if (support.iterable) { - iterator[Symbol.iterator] = function () { - return iterator; - }; + iterator[Symbol.iterator] = function() { + return iterator + } } - return iterator; + return iterator } function Headers(headers) { - this.map = {}; + this.map = {} if (headers instanceof Headers) { - headers.forEach(function (value, name) { - this.append(name, value); - }, this); + headers.forEach(function(value, name) { + this.append(name, value) + }, this) } else if (Array.isArray(headers)) { - headers.forEach(function (header) { - this.append(header[0], header[1]); - }, this); + headers.forEach(function(header) { + this.append(header[0], header[1]) + }, this) } else if (headers) { - Object.getOwnPropertyNames(headers).forEach(function (name) { - this.append(name, headers[name]); - }, this); + Object.getOwnPropertyNames(headers).forEach(function(name) { + this.append(name, headers[name]) + }, this) } } - Headers.prototype.append = function (name, value) { - name = normalizeName(name); - value = normalizeValue(value); - var oldValue = this.map[name]; - this.map[name] = oldValue ? oldValue + ',' + value : value; - }; + Headers.prototype.append = function(name, value) { + name = normalizeName(name) + value = normalizeValue(value) + var oldValue = this.map[name] + this.map[name] = oldValue ? oldValue+','+value : value + } - Headers.prototype['delete'] = function (name) { - delete this.map[normalizeName(name)]; - }; + Headers.prototype['delete'] = function(name) { + delete this.map[normalizeName(name)] + } - Headers.prototype.get = function (name) { - name = normalizeName(name); - return this.has(name) ? this.map[name] : null; - }; + Headers.prototype.get = function(name) { + name = normalizeName(name) + return this.has(name) ? this.map[name] : null + } - Headers.prototype.has = function (name) { - return this.map.hasOwnProperty(normalizeName(name)); - }; + Headers.prototype.has = function(name) { + return this.map.hasOwnProperty(normalizeName(name)) + } - Headers.prototype.set = function (name, value) { - this.map[normalizeName(name)] = normalizeValue(value); - }; + Headers.prototype.set = function(name, value) { + this.map[normalizeName(name)] = normalizeValue(value) + } - Headers.prototype.forEach = function (callback, thisArg) { + Headers.prototype.forEach = function(callback, thisArg) { for (var name in this.map) { if (this.map.hasOwnProperty(name)) { - callback.call(thisArg, this.map[name], name, this); + callback.call(thisArg, this.map[name], name, this) } } - }; + } - Headers.prototype.keys = function () { - var items = []; - this.forEach(function (value, name) { - items.push(name); - }); - return iteratorFor(items); - }; + Headers.prototype.keys = function() { + var items = [] + this.forEach(function(value, name) { items.push(name) }) + return iteratorFor(items) + } - Headers.prototype.values = function () { - var items = []; - this.forEach(function (value) { - items.push(value); - }); - return iteratorFor(items); - }; + Headers.prototype.values = function() { + var items = [] + this.forEach(function(value) { items.push(value) }) + return iteratorFor(items) + } - Headers.prototype.entries = function () { - var items = []; - this.forEach(function (value, name) { - items.push([name, value]); - }); - return iteratorFor(items); - }; + Headers.prototype.entries = function() { + var items = [] + this.forEach(function(value, name) { items.push([name, value]) }) + return iteratorFor(items) + } if (support.iterable) { - Headers.prototype[Symbol.iterator] = Headers.prototype.entries; + Headers.prototype[Symbol.iterator] = Headers.prototype.entries } function consumed(body) { if (body.bodyUsed) { - return Promise.reject(new TypeError('Already read')); + return Promise.reject(new TypeError('Already read')) } - body.bodyUsed = true; + body.bodyUsed = true } function fileReaderReady(reader) { - return new Promise(function (resolve, reject) { - reader.onload = function () { - resolve(reader.result); - }; - reader.onerror = function () { - reject(reader.error); - }; - }); + return new Promise(function(resolve, reject) { + reader.onload = function() { + resolve(reader.result) + } + reader.onerror = function() { + reject(reader.error) + } + }) } function readBlobAsArrayBuffer(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsArrayBuffer(blob); - return promise; + var reader = new FileReader() + var promise = fileReaderReady(reader) + reader.readAsArrayBuffer(blob) + return promise } function readBlobAsText(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsText(blob); - return promise; + var reader = new FileReader() + var promise = fileReaderReady(reader) + reader.readAsText(blob) + return promise } function readArrayBufferAsText(buf) { - var view = new Uint8Array(buf); - var chars = new Array(view.length); + var view = new Uint8Array(buf) + var chars = new Array(view.length) for (var i = 0; i < view.length; i++) { - chars[i] = String.fromCharCode(view[i]); + chars[i] = String.fromCharCode(view[i]) } - return chars.join(''); + return chars.join('') } function bufferClone(buf) { if (buf.slice) { - return buf.slice(0); + return buf.slice(0) } else { - var view = new Uint8Array(buf.byteLength); - view.set(new Uint8Array(buf)); - return view.buffer; + var view = new Uint8Array(buf.byteLength) + view.set(new Uint8Array(buf)) + return view.buffer } } function Body() { - this.bodyUsed = false; + this.bodyUsed = false - this._initBody = function (body) { - this._bodyInit = body; + this._initBody = function(body) { + this._bodyInit = body if (!body) { - this._bodyText = ''; + this._bodyText = '' } else if (typeof body === 'string') { - this._bodyText = body; + this._bodyText = body } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { - this._bodyBlob = body; + this._bodyBlob = body } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { - this._bodyFormData = body; + this._bodyFormData = body } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this._bodyText = body.toString(); + this._bodyText = body.toString() } else if (support.arrayBuffer && support.blob && isDataView(body)) { - this._bodyArrayBuffer = bufferClone(body.buffer); + this._bodyArrayBuffer = bufferClone(body.buffer) // IE 10-11 can't handle a DataView body. - this._bodyInit = new Blob([this._bodyArrayBuffer]); + this._bodyInit = new Blob([this._bodyArrayBuffer]) } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { - this._bodyArrayBuffer = bufferClone(body); + this._bodyArrayBuffer = bufferClone(body) } else { - throw new Error('unsupported BodyInit type'); + throw new Error('unsupported BodyInit type') } if (!this.headers.get('content-type')) { if (typeof body === 'string') { - this.headers.set('content-type', 'text/plain;charset=UTF-8'); + this.headers.set('content-type', 'text/plain;charset=UTF-8') } else if (this._bodyBlob && this._bodyBlob.type) { - this.headers.set('content-type', this._bodyBlob.type); + this.headers.set('content-type', this._bodyBlob.type) } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); + this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8') } } - }; + } if (support.blob) { - this.blob = function () { - var rejected = consumed(this); + this.blob = function() { + var rejected = consumed(this) if (rejected) { - return rejected; + return rejected } if (this._bodyBlob) { - return Promise.resolve(this._bodyBlob); + return Promise.resolve(this._bodyBlob) } else if (this._bodyArrayBuffer) { - return Promise.resolve(new Blob([this._bodyArrayBuffer])); + return Promise.resolve(new Blob([this._bodyArrayBuffer])) } else if (this._bodyFormData) { - throw new Error('could not read FormData body as blob'); + throw new Error('could not read FormData body as blob') } else { - return Promise.resolve(new Blob([this._bodyText])); + return Promise.resolve(new Blob([this._bodyText])) } - }; + } - this.arrayBuffer = function () { + this.arrayBuffer = function() { if (this._bodyArrayBuffer) { - return consumed(this) || Promise.resolve(this._bodyArrayBuffer); + return consumed(this) || Promise.resolve(this._bodyArrayBuffer) } else { - return this.blob().then(readBlobAsArrayBuffer); + return this.blob().then(readBlobAsArrayBuffer) } - }; + } } - this.text = function () { - var rejected = consumed(this); + this.text = function() { + var rejected = consumed(this) if (rejected) { - return rejected; + return rejected } if (this._bodyBlob) { - return readBlobAsText(this._bodyBlob); + return readBlobAsText(this._bodyBlob) } else if (this._bodyArrayBuffer) { - return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); + return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)) } else if (this._bodyFormData) { - throw new Error('could not read FormData body as text'); + throw new Error('could not read FormData body as text') } else { - return Promise.resolve(this._bodyText); + return Promise.resolve(this._bodyText) } - }; + } if (support.formData) { - this.formData = function () { - return this.text().then(decode); - }; + this.formData = function() { + return this.text().then(decode) + } } - this.json = function () { - return this.text().then(JSON.parse); - }; + this.json = function() { + return this.text().then(JSON.parse) + } - return this; + return this } // HTTP methods whose capitalization should be normalized - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'] function normalizeMethod(method) { - var upcased = method.toUpperCase(); - return methods.indexOf(upcased) > -1 ? upcased : method; + var upcased = method.toUpperCase() + return (methods.indexOf(upcased) > -1) ? upcased : method } function Request(input, options) { - options = options || {}; - var body = options.body; + options = options || {} + var body = options.body if (input instanceof Request) { if (input.bodyUsed) { - throw new TypeError('Already read'); + throw new TypeError('Already read') } - this.url = input.url; - this.credentials = input.credentials; + this.url = input.url + this.credentials = input.credentials if (!options.headers) { - this.headers = new Headers(input.headers); + this.headers = new Headers(input.headers) } - this.method = input.method; - this.mode = input.mode; + this.method = input.method + this.mode = input.mode if (!body && input._bodyInit != null) { - body = input._bodyInit; - input.bodyUsed = true; + body = input._bodyInit + input.bodyUsed = true } } else { - this.url = String(input); + this.url = String(input) } - this.credentials = options.credentials || this.credentials || 'omit'; + this.credentials = options.credentials || this.credentials || 'omit' if (options.headers || !this.headers) { - this.headers = new Headers(options.headers); + this.headers = new Headers(options.headers) } - this.method = normalizeMethod(options.method || this.method || 'GET'); - this.mode = options.mode || this.mode || null; - this.referrer = null; + this.method = normalizeMethod(options.method || this.method || 'GET') + this.mode = options.mode || this.mode || null + this.referrer = null if ((this.method === 'GET' || this.method === 'HEAD') && body) { - throw new TypeError('Body not allowed for GET or HEAD requests'); + throw new TypeError('Body not allowed for GET or HEAD requests') } - this._initBody(body); + this._initBody(body) } - Request.prototype.clone = function () { - return new Request(this, { body: this._bodyInit }); - }; + Request.prototype.clone = function() { + return new Request(this, { body: this._bodyInit }) + } function decode(body) { - var form = new FormData(); - body.trim().split('&').forEach(function (bytes) { + var form = new FormData() + body.trim().split('&').forEach(function(bytes) { if (bytes) { - var split = bytes.split('='); - var name = split.shift().replace(/\+/g, ' '); - var value = split.join('=').replace(/\+/g, ' '); - form.append(decodeURIComponent(name), decodeURIComponent(value)); + var split = bytes.split('=') + var name = split.shift().replace(/\+/g, ' ') + var value = split.join('=').replace(/\+/g, ' ') + form.append(decodeURIComponent(name), decodeURIComponent(value)) } - }); - return form; + }) + return form } function parseHeaders(rawHeaders) { - var headers = new Headers(); + var headers = new Headers() // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space // https://tools.ietf.org/html/rfc7230#section-3.2 - var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); - preProcessedHeaders.split(/\r?\n/).forEach(function (line) { - var parts = line.split(':'); - var key = parts.shift().trim(); + var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ') + preProcessedHeaders.split(/\r?\n/).forEach(function(line) { + var parts = line.split(':') + var key = parts.shift().trim() if (key) { - var value = parts.join(':').trim(); - headers.append(key, value); + var value = parts.join(':').trim() + headers.append(key, value) } - }); - return headers; + }) + return headers } - Body.call(Request.prototype); + Body.call(Request.prototype) function Response(bodyInit, options) { if (!options) { - options = {}; + options = {} } - this.type = 'default'; - this.status = options.status === undefined ? 200 : options.status; - this.ok = this.status >= 200 && this.status < 300; - this.statusText = 'statusText' in options ? options.statusText : 'OK'; - this.headers = new Headers(options.headers); - this.url = options.url || ''; - this._initBody(bodyInit); + this.type = 'default' + this.status = options.status === undefined ? 200 : options.status + this.ok = this.status >= 200 && this.status < 300 + this.statusText = 'statusText' in options ? options.statusText : 'OK' + this.headers = new Headers(options.headers) + this.url = options.url || '' + this._initBody(bodyInit) } - Body.call(Response.prototype); + Body.call(Response.prototype) - Response.prototype.clone = function () { + Response.prototype.clone = function() { return new Response(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new Headers(this.headers), url: this.url - }); - }; + }) + } - Response.error = function () { - var response = new Response(null, { status: 0, statusText: '' }); - response.type = 'error'; - return response; - }; + Response.error = function() { + var response = new Response(null, {status: 0, statusText: ''}) + response.type = 'error' + return response + } - var redirectStatuses = [301, 302, 303, 307, 308]; + var redirectStatuses = [301, 302, 303, 307, 308] - Response.redirect = function (url, status) { + Response.redirect = function(url, status) { if (redirectStatuses.indexOf(status) === -1) { - throw new RangeError('Invalid status code'); + throw new RangeError('Invalid status code') } - return new Response(null, { status: status, headers: { location: url } }); - }; + return new Response(null, {status: status, headers: {location: url}}) + } - self.Headers = Headers; - self.Request = Request; - self.Response = Response; + self.Headers = Headers + self.Request = Request + self.Response = Response - self.fetch = function (input, init) { - return new Promise(function (resolve, reject) { - var request = new Request(input, init); - var xhr = new XMLHttpRequest(); + self.fetch = function(input, init) { + return new Promise(function(resolve, reject) { + var request = new Request(input, init) + var xhr = new XMLHttpRequest() - xhr.onload = function () { + xhr.onload = function() { var options = { status: xhr.status, statusText: xhr.statusText, headers: parseHeaders(xhr.getAllResponseHeaders() || '') - }; - options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); - var body = 'response' in xhr ? xhr.response : xhr.responseText; - resolve(new Response(body, options)); - }; + } + options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL') + var body = 'response' in xhr ? xhr.response : xhr.responseText + resolve(new Response(body, options)) + } - xhr.onerror = function () { - reject(new TypeError('Network request failed')); - }; + xhr.onerror = function() { + reject(new TypeError('Network request failed')) + } - xhr.ontimeout = function () { - reject(new TypeError('Network request failed')); - }; + xhr.ontimeout = function() { + reject(new TypeError('Network request failed')) + } - xhr.open(request.method, request.url, true); + xhr.open(request.method, request.url, true) if (request.credentials === 'include') { - xhr.withCredentials = true; + xhr.withCredentials = true } else if (request.credentials === 'omit') { - xhr.withCredentials = false; + xhr.withCredentials = false } if ('responseType' in xhr && support.blob) { - xhr.responseType = 'blob'; + xhr.responseType = 'blob' } - request.headers.forEach(function (value, name) { - xhr.setRequestHeader(name, value); - }); - - xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); - }); - }; - self.fetch.polyfill = true; -})(typeof self !== 'undefined' ? self : undefined); + request.headers.forEach(function(value, name) { + xhr.setRequestHeader(name, value) + }) -},{}],1005:[function(require,module,exports){ -'use strict'; + xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit) + }) + } + self.fetch.polyfill = true +})(typeof self !== 'undefined' ? self : this); +},{}],1019:[function(require,module,exports){ /* Copyright (c) 2015, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. @@ -149759,20 +157819,20 @@ Authors: Nera Liu exports._getPrivFilters = function () { - var LT = /])/g, - SPECIAL_HTML_CHARS = /[&<>"'`]/g, + SPECIAL_HTML_CHARS = /[&<>"'`]/g, SPECIAL_COMMENT_CHARS = /(?:\x00|^-*!?>|--!?>|--?!?$|\]>|\]$)/g; // CSS sensitive chars: ()"'/,!*@{}:; // By CSS: (Tab|NewLine|colon|semi|lpar|rpar|apos|sol|comma|excl|ast|midast);|(quot|QUOT) // By URI_PROTOCOL: (Tab|NewLine); var SENSITIVE_HTML_ENTITIES = /&(?:#([xX][0-9A-Fa-f]+|\d+);?|(Tab|NewLine|colon|semi|lpar|rpar|apos|sol|comma|excl|ast|midast|ensp|emsp|thinsp);|(nbsp|amp|AMP|lt|LT|gt|GT|quot|QUOT);?)/g, - SENSITIVE_NAMED_REF_MAP = { Tab: '\t', NewLine: '\n', colon: ':', semi: ';', lpar: '(', rpar: ')', apos: '\'', sol: '/', comma: ',', excl: '!', ast: '*', midast: '*', ensp: '\u2002', emsp: '\u2003', thinsp: '\u2009', nbsp: '\xA0', amp: '&', lt: '<', gt: '>', quot: '"', QUOT: '"' }; + SENSITIVE_NAMED_REF_MAP = {Tab: '\t', NewLine: '\n', colon: ':', semi: ';', lpar: '(', rpar: ')', apos: '\'', sol: '/', comma: ',', excl: '!', ast: '*', midast: '*', ensp: '\u2002', emsp: '\u2003', thinsp: '\u2009', nbsp: '\xA0', amp: '&', lt: '<', gt: '>', quot: '"', QUOT: '"'}; // var CSS_VALID_VALUE = // /^(?: @@ -149782,61 +157842,61 @@ exports._getPrivFilters = function () { // | //empty // )$/i; var CSS_VALID_VALUE = /^(?:(?!-*expression)#?[-\w]+|[+-]?(?:\d+|\d*\.\d+)(?:r?em|ex|ch|cm|mm|in|px|pt|pc|%|vh|vw|vmin|vmax)?|!important|)$/i, - - // TODO: prevent double css escaping by not encoding \ again, but this may require CSS decoding - // \x7F and \x01-\x1F less \x09 are for Safari 5.0, added []{}/* for unbalanced quote - CSS_DOUBLE_QUOTED_CHARS = /[\x00-\x1F\x7F\[\]{}\\"]/g, + // TODO: prevent double css escaping by not encoding \ again, but this may require CSS decoding + // \x7F and \x01-\x1F less \x09 are for Safari 5.0, added []{}/* for unbalanced quote + CSS_DOUBLE_QUOTED_CHARS = /[\x00-\x1F\x7F\[\]{}\\"]/g, CSS_SINGLE_QUOTED_CHARS = /[\x00-\x1F\x7F\[\]{}\\']/g, - - // (, \u207D and \u208D can be used in background: 'url(...)' in IE, assumed all \ chars are encoded by QUOTED_CHARS, and null is already replaced with \uFFFD - // otherwise, use this CSS_BLACKLIST instead (enhance it with url matching): /(?:\\?\(|[\u207D\u208D]|\\0{0,4}28 ?|\\0{0,2}20[78][Dd] ?)+/g - CSS_BLACKLIST = /url[\(\u207D\u208D]+/g, - - // this assumes encodeURI() and encodeURIComponent() has escaped 1-32, 127 for IE8 - CSS_UNQUOTED_URL = /['\(\)]/g; // " \ treated by encodeURI() + // (, \u207D and \u208D can be used in background: 'url(...)' in IE, assumed all \ chars are encoded by QUOTED_CHARS, and null is already replaced with \uFFFD + // otherwise, use this CSS_BLACKLIST instead (enhance it with url matching): /(?:\\?\(|[\u207D\u208D]|\\0{0,4}28 ?|\\0{0,2}20[78][Dd] ?)+/g + CSS_BLACKLIST = /url[\(\u207D\u208D]+/g, + // this assumes encodeURI() and encodeURIComponent() has escaped 1-32, 127 for IE8 + CSS_UNQUOTED_URL = /['\(\)]/g; // " \ treated by encodeURI() // Given a full URI, need to support "[" ( IPv6address ) "]" in URI as per RFC3986 // Reference: https://tools.ietf.org/html/rfc3986 var URL_IPV6 = /\/\/%5[Bb]([A-Fa-f0-9:]+)%5[Dd]/; + // Reference: http://shazzer.co.uk/database/All/characters-allowd-in-html-entities // Reference: http://shazzer.co.uk/vector/Characters-allowed-after-ampersand-in-named-character-references // Reference: http://shazzer.co.uk/database/All/Characters-before-javascript-uri // Reference: http://shazzer.co.uk/database/All/Characters-after-javascript-uri // Reference: https://html.spec.whatwg.org/multipage/syntax.html#consume-a-character-reference // Reference for named characters: https://html.spec.whatwg.org/multipage/entities.json - var URI_BLACKLIST_PROTOCOLS = { 'javascript': 1, 'data': 1, 'vbscript': 1, 'mhtml': 1, 'x-schema': 1 }, + var URI_BLACKLIST_PROTOCOLS = {'javascript':1, 'data':1, 'vbscript':1, 'mhtml':1, 'x-schema':1}, URI_PROTOCOL_COLON = /(?::|&#[xX]0*3[aA];?|�*58;?|:)/, URI_PROTOCOL_WHITESPACES = /(?:^[\x00-\x20]+|[\t\n\r\x00]+)/g, - URI_PROTOCOL_NAMED_REF_MAP = { Tab: '\t', NewLine: '\n' }; + URI_PROTOCOL_NAMED_REF_MAP = {Tab: '\t', NewLine: '\n'}; - var x, - strReplace = function strReplace(s, regexp, callback) { - return s === undefined ? 'undefined' : s === null ? 'null' : s.toString().replace(regexp, callback); - }, - fromCodePoint = String.fromCodePoint || function (codePoint) { - if (arguments.length === 0) { - return ''; - } - if (codePoint <= 0xFFFF) { - // BMP code point - return String.fromCharCode(codePoint); - } + var x, + strReplace = function (s, regexp, callback) { + return s === undefined ? 'undefined' + : s === null ? 'null' + : s.toString().replace(regexp, callback); + }, + fromCodePoint = String.fromCodePoint || function(codePoint) { + if (arguments.length === 0) { + return ''; + } + if (codePoint <= 0xFFFF) { // BMP code point + return String.fromCharCode(codePoint); + } + + // Astral code point; split in surrogate halves + // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + codePoint -= 0x10000; + return String.fromCharCode((codePoint >> 10) + 0xD800, (codePoint % 0x400) + 0xDC00); + }; - // Astral code point; split in surrogate halves - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - codePoint -= 0x10000; - return String.fromCharCode((codePoint >> 10) + 0xD800, codePoint % 0x400 + 0xDC00); - }; function getProtocol(str) { var s = str.split(URI_PROTOCOL_COLON, 2); // str.length !== s[0].length is for older IE (e.g., v8), where delimeter residing at last will result in length equals 1, but not 2 - return s[0] && (s.length === 2 || str.length !== s[0].length) ? s[0] : null; + return (s[0] && (s.length === 2 || str.length !== s[0].length)) ? s[0] : null; } function htmlDecode(s, namedRefMap, reNamedRef, skipReplacement) { - + namedRefMap = namedRefMap || SENSITIVE_NAMED_REF_MAP; reNamedRef = reNamedRef || SENSITIVE_HTML_ENTITIES; @@ -149875,39 +157935,43 @@ exports._getPrivFilters = function () { // // num >= 0xD800 && num <= 0xDFFF, and 0x0D is separately handled, as it doesn't fall into the range of x.pec() // return (num >= 0xD800 && num <= 0xDFFF) || num === 0x0D ? '\uFFFD' : x.frCoPt(num); - return skipReplacement ? fromCodePoint(num) : num === 0x80 ? '\u20AC' // EURO SIGN (€) - : num === 0x82 ? '\u201A' // SINGLE LOW-9 QUOTATION MARK (‚) - : num === 0x83 ? '\u0192' // LATIN SMALL LETTER F WITH HOOK (ƒ) - : num === 0x84 ? '\u201E' // DOUBLE LOW-9 QUOTATION MARK („) - : num === 0x85 ? '\u2026' // HORIZONTAL ELLIPSIS (…) - : num === 0x86 ? '\u2020' // DAGGER (†) - : num === 0x87 ? '\u2021' // DOUBLE DAGGER (‡) - : num === 0x88 ? '\u02C6' // MODIFIER LETTER CIRCUMFLEX ACCENT (ˆ) - : num === 0x89 ? '\u2030' // PER MILLE SIGN (‰) - : num === 0x8A ? '\u0160' // LATIN CAPITAL LETTER S WITH CARON (Š) - : num === 0x8B ? '\u2039' // SINGLE LEFT-POINTING ANGLE QUOTATION MARK (‹) - : num === 0x8C ? '\u0152' // LATIN CAPITAL LIGATURE OE (Œ) - : num === 0x8E ? '\u017D' // LATIN CAPITAL LETTER Z WITH CARON (Ž) - : num === 0x91 ? '\u2018' // LEFT SINGLE QUOTATION MARK (‘) - : num === 0x92 ? '\u2019' // RIGHT SINGLE QUOTATION MARK (’) - : num === 0x93 ? '\u201C' // LEFT DOUBLE QUOTATION MARK (“) - : num === 0x94 ? '\u201D' // RIGHT DOUBLE QUOTATION MARK (”) - : num === 0x95 ? '\u2022' // BULLET (•) - : num === 0x96 ? '\u2013' // EN DASH (–) - : num === 0x97 ? '\u2014' // EM DASH (—) - : num === 0x98 ? '\u02DC' // SMALL TILDE (˜) - : num === 0x99 ? '\u2122' // TRADE MARK SIGN (™) - : num === 0x9A ? '\u0161' // LATIN SMALL LETTER S WITH CARON (š) - : num === 0x9B ? '\u203A' // SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (›) - : num === 0x9C ? '\u0153' // LATIN SMALL LIGATURE OE (œ) - : num === 0x9E ? '\u017E' // LATIN SMALL LETTER Z WITH CARON (ž) - : num === 0x9F ? '\u0178' // LATIN CAPITAL LETTER Y WITH DIAERESIS (Ÿ) - : num >= 0xD800 && num <= 0xDFFF || num === 0x0D ? '\uFFFD' : x.frCoPt(num); + return skipReplacement ? fromCodePoint(num) + : num === 0x80 ? '\u20AC' // EURO SIGN (€) + : num === 0x82 ? '\u201A' // SINGLE LOW-9 QUOTATION MARK (‚) + : num === 0x83 ? '\u0192' // LATIN SMALL LETTER F WITH HOOK (ƒ) + : num === 0x84 ? '\u201E' // DOUBLE LOW-9 QUOTATION MARK („) + : num === 0x85 ? '\u2026' // HORIZONTAL ELLIPSIS (…) + : num === 0x86 ? '\u2020' // DAGGER (†) + : num === 0x87 ? '\u2021' // DOUBLE DAGGER (‡) + : num === 0x88 ? '\u02C6' // MODIFIER LETTER CIRCUMFLEX ACCENT (ˆ) + : num === 0x89 ? '\u2030' // PER MILLE SIGN (‰) + : num === 0x8A ? '\u0160' // LATIN CAPITAL LETTER S WITH CARON (Š) + : num === 0x8B ? '\u2039' // SINGLE LEFT-POINTING ANGLE QUOTATION MARK (‹) + : num === 0x8C ? '\u0152' // LATIN CAPITAL LIGATURE OE (Œ) + : num === 0x8E ? '\u017D' // LATIN CAPITAL LETTER Z WITH CARON (Ž) + : num === 0x91 ? '\u2018' // LEFT SINGLE QUOTATION MARK (‘) + : num === 0x92 ? '\u2019' // RIGHT SINGLE QUOTATION MARK (’) + : num === 0x93 ? '\u201C' // LEFT DOUBLE QUOTATION MARK (“) + : num === 0x94 ? '\u201D' // RIGHT DOUBLE QUOTATION MARK (”) + : num === 0x95 ? '\u2022' // BULLET (•) + : num === 0x96 ? '\u2013' // EN DASH (–) + : num === 0x97 ? '\u2014' // EM DASH (—) + : num === 0x98 ? '\u02DC' // SMALL TILDE (˜) + : num === 0x99 ? '\u2122' // TRADE MARK SIGN (™) + : num === 0x9A ? '\u0161' // LATIN SMALL LETTER S WITH CARON (š) + : num === 0x9B ? '\u203A' // SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (›) + : num === 0x9C ? '\u0153' // LATIN SMALL LIGATURE OE (œ) + : num === 0x9E ? '\u017E' // LATIN SMALL LETTER Z WITH CARON (ž) + : num === 0x9F ? '\u0178' // LATIN CAPITAL LETTER Y WITH DIAERESIS (Ÿ) + : (num >= 0xD800 && num <= 0xDFFF) || num === 0x0D ? '\uFFFD' + : x.frCoPt(num); } return namedRefMap[named || named1] || m; } - return s === undefined ? 'undefined' : s === null ? 'null' : s.toString().replace(NULL, '\uFFFD').replace(reNamedRef, regExpFunction); + return s === undefined ? 'undefined' + : s === null ? 'null' + : s.toString().replace(NULL, '\uFFFD').replace(reNamedRef, regExpFunction); } function cssEncode(chr) { @@ -149915,9 +157979,7 @@ exports._getPrivFilters = function () { return '\\' + chr.charCodeAt(0).toString(16).toLowerCase() + ' '; } function cssBlacklist(s) { - return s.replace(CSS_BLACKLIST, function (m) { - return '-x-' + m; - }); + return s.replace(CSS_BLACKLIST, function(m){ return '-x-' + m; }); } function cssUrl(s) { // encodeURI() in yufull() will throw error for use of the CSS_UNSUPPORTED_CODE_POINT (i.e., [\uD800-\uDFFF]) @@ -149926,25 +157988,33 @@ exports._getPrivFilters = function () { // prefix ## for blacklisted protocols // here .replace(URI_PROTOCOL_WHITESPACES, '') is not needed since yufull has already percent-encoded the whitespaces - return protocol && URI_BLACKLIST_PROTOCOLS[protocol.toLowerCase()] ? '##' + s : s; + return (protocol && URI_BLACKLIST_PROTOCOLS[protocol.toLowerCase()]) ? '##' + s : s; } - return x = { + return (x = { // turn invalid codePoints and that of non-characters to \uFFFD, and then fromCodePoint() - frCoPt: function frCoPt(num) { - return num === undefined || num === null ? '' : !isFinite(num = Number(num)) || // `NaN`, `+Infinity`, or `-Infinity` - num <= 0 || // not a valid Unicode code point - num > 0x10FFFF || // not a valid Unicode code point - // Math.floor(num) != num || - - num >= 0x01 && num <= 0x08 || num >= 0x0E && num <= 0x1F || num >= 0x7F && num <= 0x9F || num >= 0xFDD0 && num <= 0xFDEF || num === 0x0B || (num & 0xFFFF) === 0xFFFF || (num & 0xFFFF) === 0xFFFE ? '\uFFFD' : fromCodePoint(num); + frCoPt: function(num) { + return num === undefined || num === null ? '' : + !isFinite(num = Number(num)) || // `NaN`, `+Infinity`, or `-Infinity` + num <= 0 || // not a valid Unicode code point + num > 0x10FFFF || // not a valid Unicode code point + // Math.floor(num) != num || + + (num >= 0x01 && num <= 0x08) || + (num >= 0x0E && num <= 0x1F) || + (num >= 0x7F && num <= 0x9F) || + (num >= 0xFDD0 && num <= 0xFDEF) || + + num === 0x0B || + (num & 0xFFFF) === 0xFFFF || + (num & 0xFFFF) === 0xFFFE ? '\uFFFD' : fromCodePoint(num); }, d: htmlDecode, /* * @param {string} s - An untrusted uri input * @returns {string} s - null if relative url, otherwise the protocol with whitespaces stripped and lower-cased */ - yup: function yup(s) { + yup: function(s) { s = getProtocol(s.replace(NULL, '')); // URI_PROTOCOL_WHITESPACES is required for left trim and remove interim whitespaces return s ? htmlDecode(s, URI_PROTOCOL_NAMED_REF_MAP, null, true).replace(URI_PROTOCOL_WHITESPACES, '').toLowerCase() : null; @@ -149956,20 +158026,25 @@ exports._getPrivFilters = function () { * @returns {string} s - The original user input with & < > " ' ` encoded respectively as & < > " ' and `. * */ - y: function y(s) { + y: function(s) { return strReplace(s, SPECIAL_HTML_CHARS, function (m) { - return m === '&' ? '&' : m === '<' ? '<' : m === '>' ? '>' : m === '"' ? '"' : m === "'" ? ''' : /*m === '`'*/'`'; // in hex: 60 + return m === '&' ? '&' + : m === '<' ? '<' + : m === '>' ? '>' + : m === '"' ? '"' + : m === "'" ? ''' + : /*m === '`'*/ '`'; // in hex: 60 }); }, // This filter is meant to introduce double-encoding, and should be used with extra care. - ya: function ya(s) { + ya: function(s) { return strReplace(s, AMP, '&'); }, // FOR DETAILS, refer to inHTMLData() // Reference: https://html.spec.whatwg.org/multipage/syntax.html#data-state - yd: function yd(s) { + yd: function (s) { return strReplace(s, LT, '<'); }, @@ -149985,25 +158060,27 @@ exports._getPrivFilters = function () { // Reference: http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx // We do not care --\s>, which can possibly be intepreted as a valid close comment tag in very old browsers (e.g., firefox 3.6), as specified in the html4 spec // Reference: http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.4 - yc: function yc(s) { - return strReplace(s, SPECIAL_COMMENT_CHARS, function (m) { - return m === '\x00' ? '\uFFFD' : m === '--!' || m === '--' || m === '-' || m === ']' ? m + ' ' : /* - : m === ']>' ? '] >' - : m === '-->' ? '-- >' - : m === '--!>' ? '--! >' - : /-*!?>/.test(m) ? */m.slice(0, -1) + ' >'; + yc: function (s) { + return strReplace(s, SPECIAL_COMMENT_CHARS, function(m){ + return m === '\x00' ? '\uFFFD' + : m === '--!' || m === '--' || m === '-' || m === ']' ? m + ' ' + :/* + : m === ']>' ? '] >' + : m === '-->' ? '-- >' + : m === '--!>' ? '--! >' + : /-*!?>/.test(m) ? */ m.slice(0, -1) + ' >'; }); }, // FOR DETAILS, refer to inDoubleQuotedAttr() // Reference: https://html.spec.whatwg.org/multipage/syntax.html#attribute-value-(double-quoted)-state - yavd: function yavd(s) { + yavd: function (s) { return strReplace(s, QUOT, '"'); }, // FOR DETAILS, refer to inSingleQuotedAttr() // Reference: https://html.spec.whatwg.org/multipage/syntax.html#attribute-value-(single-quoted)-state - yavs: function yavs(s) { + yavs: function (s) { return strReplace(s, SQUOT, '''); }, @@ -150036,16 +158113,21 @@ exports._getPrivFilters = function () { // // Example: // - yavu: function yavu(s) { + yavu: function (s) { return strReplace(s, SPECIAL_ATTR_VALUE_UNQUOTED_CHARS, function (m) { - return m === '\t' ? ' ' // in hex: 09 - : m === '\n' ? ' ' // in hex: 0A - : m === '\x0B' ? ' ' // in hex: 0B for IE. IE<9 \v equals v, so use \x0B instead - : m === '\f' ? ' ' // in hex: 0C - : m === '\r' ? ' ' // in hex: 0D - : m === ' ' ? ' ' // in hex: 20 - : m === '=' ? '=' // in hex: 3D - : m === '<' ? '<' : m === '>' ? '>' : m === '"' ? '"' : m === "'" ? ''' : m === '`' ? '`' : /*empty or null*/'\uFFFD'; + return m === '\t' ? ' ' // in hex: 09 + : m === '\n' ? ' ' // in hex: 0A + : m === '\x0B' ? ' ' // in hex: 0B for IE. IE<9 \v equals v, so use \x0B instead + : m === '\f' ? ' ' // in hex: 0C + : m === '\r' ? ' ' // in hex: 0D + : m === ' ' ? ' ' // in hex: 20 + : m === '=' ? '=' // in hex: 3D + : m === '<' ? '<' + : m === '>' ? '>' + : m === '"' ? '"' + : m === "'" ? ''' + : m === '`' ? '`' + : /*empty or null*/ '\uFFFD'; }); }, @@ -150054,20 +158136,20 @@ exports._getPrivFilters = function () { // Notice that yubl MUST BE APPLIED LAST, and will not be used independently (expected output from encodeURI/encodeURIComponent and yavd/yavs/yavu) // This is used to disable JS execution capabilities by prefixing x- to ^javascript:, ^vbscript: or ^data: that possibly could trigger script execution in URI attribute context - yubl: function yubl(s) { + yubl: function (s) { return URI_BLACKLIST_PROTOCOLS[x.yup(s)] ? 'x-' + s : s; }, // This is NOT a security-critical filter. // Reference: https://tools.ietf.org/html/rfc3986 - yufull: function yufull(s) { - return x.yu(s).replace(URL_IPV6, function (m, p) { + yufull: function (s) { + return x.yu(s).replace(URL_IPV6, function(m, p) { return '//[' + p + ']'; }); }, // chain yufull() with yubl() - yublf: function yublf(s) { + yublf: function (s) { return x.yubl(x.yufull(s)); }, @@ -150088,18 +158170,18 @@ exports._getPrivFilters = function () { // NOTE: delimiter in CSS - \ _ : ; ( ) " ' / , % # ! * @ . { } // 2d 5c 5f 3a 3b 28 29 22 27 2f 2c 25 23 21 2a 40 2e 7b 7d - yceu: function yceu(s) { + yceu: function(s) { s = htmlDecode(s); return CSS_VALID_VALUE.test(s) ? s : ";-x:'" + cssBlacklist(s.replace(CSS_SINGLE_QUOTED_CHARS, cssEncode)) + "';-v:"; }, // string1 = \"([^\n\r\f\\"]|\\{nl}|\\[^\n\r\f0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*\" - yced: function yced(s) { + yced: function(s) { return cssBlacklist(htmlDecode(s).replace(CSS_DOUBLE_QUOTED_CHARS, cssEncode)); }, // string2 = \'([^\n\r\f\\']|\\{nl}|\\[^\n\r\f0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*\' - yces: function yces(s) { + yces: function(s) { return cssBlacklist(htmlDecode(s).replace(CSS_SINGLE_QUOTED_CHARS, cssEncode)); }, @@ -150108,36 +158190,38 @@ exports._getPrivFilters = function () { // unquoted_url = ([^"'()\\ \t\n\r\f\v\u0000\u0008\u000b\u000e-\u001f\u007f]|\\{h}{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])* (CSS 3.0 definition) // The state machine in CSS 3.0 is more well defined - http://www.w3.org/TR/css-syntax-3/#consume-a-url-token0 // CSS_UNQUOTED_URL = /['\(\)]/g; // " \ treated by encodeURI() - yceuu: function yceuu(s) { + yceuu: function(s) { return cssUrl(s).replace(CSS_UNQUOTED_URL, function (chr) { - return chr === '\'' ? '\\27 ' : chr === '(' ? '%28' : - /* chr === ')' ? */'%29'; + return chr === '\'' ? '\\27 ' : + chr === '(' ? '%28' : + /* chr === ')' ? */ '%29'; }); }, // for url("{{{yceud url}}} - yceud: function yceud(s) { + yceud: function(s) { return cssUrl(s); }, // for url('{{{yceus url}}} - yceus: function yceus(s) { + yceus: function(s) { return cssUrl(s).replace(SQUOT, '\\27 '); } - }; + }); }; // exposing privFilters // this is an undocumented feature, and please use it with extra care var privFilters = exports._privFilters = exports._getPrivFilters(); + /* chaining filters */ // uriInAttr and literally uriPathInAttr // yubl is always used // Rationale: given pattern like this:
    // developer may expect s is always prefixed with ? or /, but an attacker can abuse it with 'javascript:alert(1)' -function uriInAttr(s, yav, yu) { +function uriInAttr (s, yav, yu) { return privFilters.yubl(yav((yu || privFilters.yufull)(s))); } @@ -150270,6 +158354,7 @@ exports.inDoubleQuotedAttr = privFilters.yavd; */ exports.inUnQuotedAttr = privFilters.yavu; + /** * @function module:xss-filters#uriInSingleQuotedAttr * @@ -150324,6 +158409,7 @@ exports.uriInDoubleQuotedAttr = function (s) { return uriInAttr(s, privFilters.yavd); }; + /** * @function module:xss-filters#uriInUnQuotedAttr * @@ -150376,6 +158462,7 @@ exports.uriInUnQuotedAttr = function (s) { */ exports.uriInHTMLData = privFilters.yufull; + /** * @function module:xss-filters#uriInHTMLComment * @@ -150403,6 +158490,9 @@ exports.uriInHTMLComment = function (s) { return privFilters.yc(privFilters.yufull(s)); }; + + + /** * @function module:xss-filters#uriPathInSingleQuotedAttr * @@ -150455,6 +158545,7 @@ exports.uriPathInDoubleQuotedAttr = function (s) { return uriInAttr(s, privFilters.yavd, privFilters.yu); }; + /** * @function module:xss-filters#uriPathInUnQuotedAttr * @@ -150506,6 +158597,7 @@ exports.uriPathInUnQuotedAttr = function (s) { */ exports.uriPathInHTMLData = privFilters.yu; + /** * @function module:xss-filters#uriPathInHTMLComment * @@ -150531,6 +158623,7 @@ exports.uriPathInHTMLComment = function (s) { return privFilters.yc(privFilters.yu(s)); }; + /** * @function module:xss-filters#uriQueryInSingleQuotedAttr * @description This is an alias of {@link module:xss-filters#uriPathInSingleQuotedAttr} @@ -150571,6 +158664,8 @@ exports.uriQueryInHTMLData = exports.uriPathInHTMLData; */ exports.uriQueryInHTMLComment = exports.uriPathInHTMLComment; + + /** * @function module:xss-filters#uriComponentInSingleQuotedAttr * @@ -150623,6 +158718,7 @@ exports.uriComponentInDoubleQuotedAttr = function (s) { return privFilters.yavd(privFilters.yuc(s)); }; + /** * @function module:xss-filters#uriComponentInUnQuotedAttr * @@ -150674,6 +158770,7 @@ exports.uriComponentInUnQuotedAttr = function (s) { */ exports.uriComponentInHTMLData = privFilters.yuc; + /** * @function module:xss-filters#uriComponentInHTMLComment * @@ -150699,6 +158796,7 @@ exports.uriComponentInHTMLComment = function (s) { return privFilters.yc(privFilters.yuc(s)); }; + // uriFragmentInSingleQuotedAttr // added yubl on top of uriComponentInAttr // Rationale: given pattern like this: @@ -150791,6 +158889,7 @@ exports.uriFragmentInUnQuotedAttr = function (s) { return privFilters.yubl(privFilters.yavu(privFilters.yuc(s))); }; + /** * @function module:xss-filters#uriFragmentInHTMLData * @description This is an alias of {@link module:xss-filters#uriComponentInHTMLData} diff --git a/dist/phishing.html b/dist/phishing.html index 601637ccf5..264eae0fc4 100644 --- a/dist/phishing.html +++ b/dist/phishing.html @@ -98,13 +98,13 @@ MyEtherWallet -

    3.23.0

    +

    3.23.1

    - + diff --git a/dist/privacy-policy.html b/dist/privacy-policy.html index 9dec7e5ef8..391a4553e5 100644 --- a/dist/privacy-policy.html +++ b/dist/privacy-policy.html @@ -98,13 +98,13 @@ MyEtherWallet -

    3.23.0

    +

    3.23.1

    - + diff --git a/package.json b/package.json index ed969dd889..1f1edfd38e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build": "gulp build" }, "dependencies": { - "@myetherwallet/mewconnect-web-client": "^1.0.8", + "@myetherwallet/mewconnect-web-client": "^1.0.9", "archiver": "^1.3.0", "babel-plugin-transform-es3-member-expression-literals": "6.22.0", "babel-plugin-transform-es3-property-literals": "6.22.0", From c89344152ccd1b66b7280e8a4013c68c3233e3a7 Mon Sep 17 00:00:00 2001 From: gamalielhere Date: Wed, 17 Oct 2018 13:47:15 -0700 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76d0523d66..53c34fc5ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,12 @@ ### Update -- Update mewconnect version package []() +- Update mewconnect version package [#2106](https://github.com/kvhnuke/etherwallet/pull/2106) - Update EOSC chainid [#2105](https://github.com/kvhnuke/etherwallet/pull/2105) ### New -- Reorder token contract, add EWO token []() +- Reorder token contract, add EWO token [#2106](https://github.com/kvhnuke/etherwallet/pull/2106) ### Release v3.23.0 From 9bcb564f5e00d6dab60230ed0e51848136bc590a Mon Sep 17 00:00:00 2001 From: gamalielhere Date: Wed, 17 Oct 2018 13:52:14 -0700 Subject: [PATCH 3/3] Update package log, rebuild to include new package --- chrome-extension/js/etherwallet-master.js | 100 +++++++--------------- dist/js/etherwallet-master.js | 100 +++++++--------------- package-lock.json | 42 +++++++-- 3 files changed, 99 insertions(+), 143 deletions(-) diff --git a/chrome-extension/js/etherwallet-master.js b/chrome-extension/js/etherwallet-master.js index f33be89def..c5f4dc6e12 100644 --- a/chrome-extension/js/etherwallet-master.js +++ b/chrome-extension/js/etherwallet-master.js @@ -74,27 +74,6 @@ module.exports=[ },{}],9:[function(require,module,exports){ module.exports=[ { "name": "Select a contract...", "address": "", "abi": "" }, - { - "name": "ImmortalPlayerCharacters (IPCs)", - "address": "0x011C77fa577c500dEeDaD364b8af9e8540b808C0", - "abi": '[ { "constant": false, "inputs": [ { "name": "_newGod", "type": "address" } ], "name": "renounceGodhood", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nameModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "randomizeDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "ImmortalPlayerCharacter" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "name": "", "type": "address", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToChangeName", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateIpcContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "setMaxIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "changePriceToModifyDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "ipcPriceInCents", "outputs": [ { "name": "", "type": "uint256", "value": "25" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_adminToRemove", "type": "address" } ], "name": "removeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getAllPositions", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "Ipcs", "outputs": [ { "name": "name", "type": "string", "value": "Eve" }, { "name": "attributeSeed", "type": "bytes32", "value": "0xf2cfccdde23c372c60a76a2795f77ca9cbd241e6dab46d90a0caad74dc9af739" }, { "name": "dna", "type": "bytes32", "value": "0x4a2899f96d0202f1d682a81d4b868499e963b4052cf44d0eed7ded9ee1782190" }, { "name": "experience", "type": "uint128", "value": "0" }, { "name": "timeOfBirth", "type": "uint128", "value": "1521154199" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newMultiplier", "type": "uint256" } ], "name": "changeCustomizationMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newUrl", "type": "string" } ], "name": "updateIpcUrl", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcIdArray", "type": "uint256[]" }, { "name": "_xpIdArray", "type": "uint256[]" } ], "name": "grantBulkXp", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_index", "type": "uint256" } ], "name": "tokenOfOwnerByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_beneficiaryAddress", "type": "address" }, { "name": "_beneficiaryPrice", "type": "uint256" } ], "name": "setSpecialPriceForAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getAdmins", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToMarketInfo", "outputs": [ { "name": "sellPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" }, { "name": "approvalAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" } ], "name": "ipcIdToExperience", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "setIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "buyIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createRandomizedIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignRandomizedIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_developer", "type": "address" } ], "name": "experiencesOfDeveloper", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_index", "type": "uint256" } ], "name": "tokenByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "1" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "mostCurrentIpcAddress", "outputs": [ { "name": "", "type": "address", "value": "0x011c77fa577c500deedad364b8af9e8540b808c0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "maxIpcPrice", "outputs": [ { "name": "", "type": "uint256", "value": "100000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "name": "owner", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalDevelopers", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "releaseNewTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_dna", "type": "bytes32" } ], "name": "customizeDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "value", "type": "bool" } ], "name": "setAutoTrancheRelease", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAdmin", "type": "address" } ], "name": "addAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "customizationPriceMultiplier", "outputs": [ { "name": "", "type": "uint256", "value": "4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcPriceInWei", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalIpcs", "outputs": [ { "name": "", "type": "uint128", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpc", "outputs": [ { "name": "name", "type": "string" }, { "name": "attributeSeed", "type": "bytes32" }, { "name": "dna", "type": "bytes32" }, { "name": "experience", "type": "uint128" }, { "name": "timeOfBirth", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAmount", "type": "uint256" } ], "name": "changeXpPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_xpId", "type": "uint256" } ], "name": "removeExperience", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "tokensOfOwner", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeNameModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpPrice", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_address", "type": "address" }, { "name": "_name", "type": "string" } ], "name": "setDeveloperName", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateMarketPriceContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newInterfaceId", "type": "bytes4" } ], "name": "addSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "rollAttributes", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": "IPC" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "developer", "type": "address" }, { "name": "value", "type": "bool" } ], "name": "changeDeveloperStatus", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_authorization", "type": "bool" } ], "name": "changeAdminAuthorization", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "dnaModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "1000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToOwner", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToModifyDna", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignIpcSeed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcName", "outputs": [ { "name": "result", "type": "bytes32", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCashier", "type": "address" } ], "name": "setCashier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPriceIncrease", "type": "uint256" } ], "name": "changePriceIncreasePerTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_description", "type": "string" } ], "name": "registerNewExperience", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newSize", "type": "uint256" } ], "name": "changeTrancheSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }, { "name": "data", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "removeSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createIpcSeed", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "tokenURI", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpBalance", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "experiences", "outputs": [ { "name": "developer", "type": "address" }, { "name": "description", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "buyXp", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "ownerIpcCount", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_byteToModify", "type": "uint256" }, { "name": "_modifyAmount", "type": "int256" } ], "name": "modifyDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeDnaModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newName", "type": "string" } ], "name": "changeIpcName", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newExec", "type": "address" } ], "name": "setExec", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_xpId", "type": "uint256" } ], "name": "grantXpToIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "developer", "type": "address" }, { "indexed": true, "name": "xpId", "type": "uint256" } ], "name": "ExperienceEarned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_to", "type": "string" } ], "name": "NameChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_seller", "type": "address" }, { "indexed": true, "name": "_buyer", "type": "address" }, { "indexed": false, "name": "price", "type": "uint256" } ], "name": "Bought", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "from", "type": "uint256" }, { "indexed": false, "name": "to", "type": "uint256" } ], "name": "PriceChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "owner", "type": "address" }, { "indexed": false, "name": "name", "type": "string" } ], "name": "Created", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "dna", "type": "bytes32" }, { "indexed": false, "name": "attributes", "type": "bytes32" } ], "name": "Substantiated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "to", "type": "bytes32" } ], "name": "DnaModified", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_from", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_approved", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_operator", "type": "address" }, { "indexed": false, "name": "_approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" } ]' - }, - { - "name": "ROCK2PAY", - "address": "0x0E3de3B0E3D617FD8D1D8088639bA877feb4d742", - "comment": "", - "abi": '[{"constant": true,"inputs": [{ "name": "_owner", "type": "address" }],"name": "balanceOf","outputs": [{ "name": "balance", "type": "uint256" }],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{ "name": "to", "type": "address" },{ "name": "tokens", "type": "uint256" }],"name": "transfer","outputs": [{ "name": "success", "type": "bool" }],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "addTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "addTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_newState", "type": "uint8" }],"name": "changeState","outputs": [],"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": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "decreaseTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "decreaseTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","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": "_amount", "type": "uint256" },{ "name": "_address", "type": "address" }],"name": "requestPayout","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "state","outputs": [{ "name": "", "type": "uint8" }],"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": "tech","outputs": [{ "name": "", "type": "address" }],"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": "newOwner", "type": "address" }],"name": "transferOwnership","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "newTech", "type": "address" }],"name": "transferTech","outputs": [],"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": "value", "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"}]' - }, - { - "name": "TangguoTaoToken", - "address": "0xfA0eF5E034CaE1AE752d59bdb8aDcDe37Ed7aB97", - "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":"INITIAL_SUPPLY","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":false,"inputs":[],"name":"unpause","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":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","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":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","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":"_owner","type":"address"},{"name":"_spender","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":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"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":"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": "PAX", - "address": "0x8e870d67f660d95d5be530380d0ec0bd388289e1", - "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": "_newLawEnforcementRole","type": "address"}],"name": "setLawEnforcementRole","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "unpause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "unfreeze","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_newSupplyController","type": "address"}],"name": "setSupplyController","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "paused","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "balanceOf","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [],"name": "initialize","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "pause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "freeze","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": "_value","type": "uint256"}],"name": "decreaseSupply","outputs": [{"name": "success","type": "bool"}],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "lawEnforcementRole","outputs": [{"name": "","type": "address"}],"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": "_value","type": "uint256"}],"name": "increaseSupply","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": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "wipeFrozenAddress","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "isFrozen","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [],"name": "supplyController","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": [],"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"},{"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": "oldOwner","type": "address"},{"indexed"true,"name": "newOwner","type": "address"}],"name": "OwnershipTransferred","type": "event"},{"anonymous": false,"inputs": [],"name": "Pause","type": "event"},{"anonymous": false,"inputs": [],"name": "Unpause","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressFrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressUnfrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "FrozenAddressWiped","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldLawEnforcementRole","type": "address"},{"indexed": true,"name": "newLawEnforcementRole","type": "address"}],"name": "LawEnforcementRoleSet","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "to","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyIncreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "from","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyDecreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldSupplyController","type": "address"},{"indexed": true,"name": "newSupplyController","type": "address"}],"name": "SupplyControllerSet","type": "event"}]' - }, { "name": "ADST - AdShares", "address": "0x422866a8F0b032c5cf1DfBDEf31A20F4509562b0", @@ -389,6 +368,11 @@ module.exports=[ "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": "ImmortalPlayerCharacters (IPCs)", + "address": "0x011C77fa577c500dEeDaD364b8af9e8540b808C0", + "abi": '[ { "constant": false, "inputs": [ { "name": "_newGod", "type": "address" } ], "name": "renounceGodhood", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nameModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "randomizeDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "ImmortalPlayerCharacter" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "name": "", "type": "address", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToChangeName", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateIpcContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "setMaxIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "changePriceToModifyDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "ipcPriceInCents", "outputs": [ { "name": "", "type": "uint256", "value": "25" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_adminToRemove", "type": "address" } ], "name": "removeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getAllPositions", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "Ipcs", "outputs": [ { "name": "name", "type": "string", "value": "Eve" }, { "name": "attributeSeed", "type": "bytes32", "value": "0xf2cfccdde23c372c60a76a2795f77ca9cbd241e6dab46d90a0caad74dc9af739" }, { "name": "dna", "type": "bytes32", "value": "0x4a2899f96d0202f1d682a81d4b868499e963b4052cf44d0eed7ded9ee1782190" }, { "name": "experience", "type": "uint128", "value": "0" }, { "name": "timeOfBirth", "type": "uint128", "value": "1521154199" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newMultiplier", "type": "uint256" } ], "name": "changeCustomizationMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newUrl", "type": "string" } ], "name": "updateIpcUrl", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcIdArray", "type": "uint256[]" }, { "name": "_xpIdArray", "type": "uint256[]" } ], "name": "grantBulkXp", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_index", "type": "uint256" } ], "name": "tokenOfOwnerByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_beneficiaryAddress", "type": "address" }, { "name": "_beneficiaryPrice", "type": "uint256" } ], "name": "setSpecialPriceForAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getAdmins", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToMarketInfo", "outputs": [ { "name": "sellPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" }, { "name": "approvalAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" } ], "name": "ipcIdToExperience", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "setIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "buyIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createRandomizedIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignRandomizedIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_developer", "type": "address" } ], "name": "experiencesOfDeveloper", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_index", "type": "uint256" } ], "name": "tokenByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "1" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "mostCurrentIpcAddress", "outputs": [ { "name": "", "type": "address", "value": "0x011c77fa577c500deedad364b8af9e8540b808c0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "maxIpcPrice", "outputs": [ { "name": "", "type": "uint256", "value": "100000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "name": "owner", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalDevelopers", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "releaseNewTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_dna", "type": "bytes32" } ], "name": "customizeDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "value", "type": "bool" } ], "name": "setAutoTrancheRelease", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAdmin", "type": "address" } ], "name": "addAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "customizationPriceMultiplier", "outputs": [ { "name": "", "type": "uint256", "value": "4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcPriceInWei", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalIpcs", "outputs": [ { "name": "", "type": "uint128", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpc", "outputs": [ { "name": "name", "type": "string" }, { "name": "attributeSeed", "type": "bytes32" }, { "name": "dna", "type": "bytes32" }, { "name": "experience", "type": "uint128" }, { "name": "timeOfBirth", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAmount", "type": "uint256" } ], "name": "changeXpPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_xpId", "type": "uint256" } ], "name": "removeExperience", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "tokensOfOwner", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeNameModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpPrice", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_address", "type": "address" }, { "name": "_name", "type": "string" } ], "name": "setDeveloperName", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateMarketPriceContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newInterfaceId", "type": "bytes4" } ], "name": "addSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "rollAttributes", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": "IPC" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "developer", "type": "address" }, { "name": "value", "type": "bool" } ], "name": "changeDeveloperStatus", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_authorization", "type": "bool" } ], "name": "changeAdminAuthorization", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "dnaModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "1000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToOwner", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToModifyDna", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignIpcSeed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcName", "outputs": [ { "name": "result", "type": "bytes32", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCashier", "type": "address" } ], "name": "setCashier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPriceIncrease", "type": "uint256" } ], "name": "changePriceIncreasePerTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_description", "type": "string" } ], "name": "registerNewExperience", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newSize", "type": "uint256" } ], "name": "changeTrancheSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }, { "name": "data", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "removeSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createIpcSeed", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "tokenURI", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpBalance", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "experiences", "outputs": [ { "name": "developer", "type": "address" }, { "name": "description", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "buyXp", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "ownerIpcCount", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_byteToModify", "type": "uint256" }, { "name": "_modifyAmount", "type": "int256" } ], "name": "modifyDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeDnaModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newName", "type": "string" } ], "name": "changeIpcName", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newExec", "type": "address" } ], "name": "setExec", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_xpId", "type": "uint256" } ], "name": "grantXpToIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "developer", "type": "address" }, { "indexed": true, "name": "xpId", "type": "uint256" } ], "name": "ExperienceEarned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_to", "type": "string" } ], "name": "NameChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_seller", "type": "address" }, { "indexed": true, "name": "_buyer", "type": "address" }, { "indexed": false, "name": "price", "type": "uint256" } ], "name": "Bought", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "from", "type": "uint256" }, { "indexed": false, "name": "to", "type": "uint256" } ], "name": "PriceChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "owner", "type": "address" }, { "indexed": false, "name": "name", "type": "string" } ], "name": "Created", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "dna", "type": "bytes32" }, { "indexed": false, "name": "attributes", "type": "bytes32" } ], "name": "Substantiated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "to", "type": "bytes32" } ], "name": "DnaModified", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_from", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_approved", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_operator", "type": "address" }, { "indexed": false, "name": "_approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" } ]' + }, { "name": "Ink Protocol", "address": "0xBC86727E770de68B1060C91f6BB6945c73e10388", @@ -539,6 +523,11 @@ module.exports=[ "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": "PAX", + "address": "0x8e870d67f660d95d5be530380d0ec0bd388289e1", + "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": "_newLawEnforcementRole","type": "address"}],"name": "setLawEnforcementRole","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "unpause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "unfreeze","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_newSupplyController","type": "address"}],"name": "setSupplyController","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "paused","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "balanceOf","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [],"name": "initialize","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "pause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "freeze","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": "_value","type": "uint256"}],"name": "decreaseSupply","outputs": [{"name": "success","type": "bool"}],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "lawEnforcementRole","outputs": [{"name": "","type": "address"}],"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": "_value","type": "uint256"}],"name": "increaseSupply","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": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "wipeFrozenAddress","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "isFrozen","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [],"name": "supplyController","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": [],"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"},{"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": "oldOwner","type": "address"},{"indexed"true,"name": "newOwner","type": "address"}],"name": "OwnershipTransferred","type": "event"},{"anonymous": false,"inputs": [],"name": "Pause","type": "event"},{"anonymous": false,"inputs": [],"name": "Unpause","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressFrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressUnfrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "FrozenAddressWiped","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldLawEnforcementRole","type": "address"},{"indexed": true,"name": "newLawEnforcementRole","type": "address"}],"name": "LawEnforcementRoleSet","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "to","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyIncreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "from","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyDecreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldSupplyController","type": "address"},{"indexed": true,"name": "newSupplyController","type": "address"}],"name": "SupplyControllerSet","type": "event"}]' + }, { "name": "Peculium", "address": "0x3618516F45CD3c913F81F9987AF41077932Bc40d", @@ -575,11 +564,11 @@ module.exports=[ "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":"creationBlock","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":"_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":false,"inputs":[{"name":"_newController","type":"address"}],"name":"changeController","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_blockNumber","type":"uint256"}],"name":"balanceOfAt","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":"_cloneTokenName","type":"string"},{"name":"_cloneDecimalUnits","type":"uint8"},{"name":"_cloneTokenSymbol","type":"string"},{"name":"_snapshotBlock","type":"uint256"},{"name":"_transfersEnabled","type":"bool"}],"name":"createCloneToken","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":"parentToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"generateTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_blockNumber","type":"uint256"}],"name":"totalSupplyAt","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":"transfersEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentSnapShotBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"destroyTokens","outputs":[{"name":"","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":"_token","type":"address"}],"name":"claimTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenFactory","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_transfersEnabled","type":"bool"}],"name":"enableTransfers","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_token","type":"address"},{"indexed":true,"name":"_controller","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"ClaimedTokens","type":"event"},{"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":"_cloneToken","type":"address"},{"indexed":false,"name":"_snapshotBlock","type":"uint256"}],"name":"NewCloneToken","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"}]' }, - { - "name": "PUC", - "address": "0xef6b4ce8c9bc83744fbcde2657b32ec18790458a", - "abi": '[{"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":"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":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"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":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","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"}]' - }, + { + "name": "PUC", + "address": "0xef6b4ce8c9bc83744fbcde2657b32ec18790458a", + "abi": '[{"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":"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":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"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":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","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"}]' + }, { "name": "Q - TiiQu Network", "address": "0x2C3C1F05187dBa7A5f2Dd47Dca57281C4d4F183F", @@ -604,6 +593,12 @@ module.exports=[ "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": "ROCK2PAY", + "address": "0x0E3de3B0E3D617FD8D1D8088639bA877feb4d742", + "comment": "", + "abi": '[{"constant": true,"inputs": [{ "name": "_owner", "type": "address" }],"name": "balanceOf","outputs": [{ "name": "balance", "type": "uint256" }],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{ "name": "to", "type": "address" },{ "name": "tokens", "type": "uint256" }],"name": "transfer","outputs": [{ "name": "success", "type": "bool" }],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "addTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "addTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_newState", "type": "uint8" }],"name": "changeState","outputs": [],"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": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "decreaseTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "decreaseTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","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": "_amount", "type": "uint256" },{ "name": "_address", "type": "address" }],"name": "requestPayout","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "state","outputs": [{ "name": "", "type": "uint8" }],"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": "tech","outputs": [{ "name": "", "type": "address" }],"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": "newOwner", "type": "address" }],"name": "transferOwnership","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "newTech", "type": "address" }],"name": "transferTech","outputs": [],"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": "value", "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"}]' + }, { "name": "SGelder", "address": "0xa1ccc166faf0E998b3E33225A1A0301B1C86119D", @@ -665,6 +660,11 @@ module.exports=[ "abi": '[{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_operator","type":"address"},{"indexed":false,"name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"constant":false,"inputs":[{"name":"_approved","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_newOwner","type":"address"}],"name":"grantToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_nftId","type":"uint256"}],"name":"Personalized","type":"event"},{"constant":false,"inputs":[{"name":"_squareId","type":"uint256"},{"name":"_rgbData","type":"bytes"},{"name":"_title","type":"string"},{"name":"_href","type":"string"}],"name":"personalizeSquare","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"constant":false,"inputs":[{"name":"_nftId","type":"uint256"}],"name":"purchase","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"},{"name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_operator","type":"address"},{"name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_executiveOfficerAddress","type":"address"}],"name":"setExecutiveOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_financialOfficerAddress","type":"address"}],"name":"setFinancialOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_operatingOfficerAddress","type":"address"}],"name":"setOperatingOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"executiveOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"financialOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"operatingOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"promoCreatedCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"suSquares","outputs":[{"name":"version","type":"uint256"},{"name":"rgbData","type":"bytes"},{"name":"title","type":"string"},{"name":"href","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"_tokenId","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"_tokenURI","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]' }, + { + "name": "TangguoTaoToken", + "address": "0xfA0eF5E034CaE1AE752d59bdb8aDcDe37Ed7aB97", + "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":"INITIAL_SUPPLY","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":false,"inputs":[],"name":"unpause","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":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","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":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","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":"_owner","type":"address"},{"name":"_spender","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":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"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":"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": "Telcoin Redeem", "address": "0x6D9FE564C9B1C81C305e066346dF73de6cF9295f", @@ -988,8 +988,6 @@ bity.post = function (path, data, callback) { module.exports = bity; },{}],27:[function(require,module,exports){ -"use strict"; - var darklist = function darklist() { return [{ address: "0x8abe0a9b8A1C8a003354E61F3ed8befdeb7D2CEc", @@ -9267,8 +9265,6 @@ var walletGenCtrl = function walletGenCtrl($scope) { module.exports = walletGenCtrl; },{}],51:[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) @@ -10018,8 +10014,6 @@ var walletDecryptDrtv = function walletDecryptDrtv() { module.exports = walletDecryptDrtv; },{"./walletDecryptDrtv.html":60}],62:[function(require,module,exports){ -'use strict'; - var ens = require('./ens'); var domainsaleInterface = require('./domainsaleConfigs/domainsaleABI.json'); @@ -10601,8 +10595,6 @@ module.exports=[ },{}],64:[function(require,module,exports){ (function (Buffer){ -'use strict'; - function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } var uts46 = require('idna-uts46'); @@ -14146,8 +14138,6 @@ module.exports={ } },{}],77:[function(require,module,exports){ -'use strict'; - function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } var mainKyberNetworkABI = require('./kyberConfig/KyberNetworkABI.json'); @@ -17454,8 +17444,6 @@ var walletService = function walletService() { module.exports = walletService; },{}],98:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -17484,8 +17472,6 @@ SolidityTypeAddress.prototype.isType = function (name) { module.exports = SolidityTypeAddress; },{"./formatters":104,"./type":109}],99:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -17514,8 +17500,6 @@ SolidityTypeBool.prototype.isType = function (name) { module.exports = SolidityTypeBool; },{"./formatters":104,"./type":109}],100:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -17547,8 +17531,6 @@ SolidityTypeBytes.prototype.isType = function (name) { module.exports = SolidityTypeBytes; },{"./formatters":104,"./type":109}],101:[function(require,module,exports){ -'use strict'; - /* This file is part of web3.js. @@ -17800,8 +17782,6 @@ var coder = new SolidityCoder([new SolidityTypeAddress(), new SolidityTypeBool() module.exports = coder; },{"./address":98,"./bool":99,"./bytes":100,"./dynamicbytes":103,"./formatters":104,"./int":105,"./real":107,"./string":108,"./uint":110,"./ureal":111,"./utils":112}],102:[function(require,module,exports){ -'use strict'; - /* This file is part of web3.js. @@ -17853,8 +17833,6 @@ module.exports = { }; },{"bignumber.js":370}],103:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -17877,8 +17855,6 @@ SolidityTypeDynamicBytes.prototype.isDynamicType = function () { module.exports = SolidityTypeDynamicBytes; },{"./formatters":104,"./type":109}],104:[function(require,module,exports){ -'use strict'; - /* This file is part of web3.js. @@ -18132,8 +18108,6 @@ module.exports = { }; },{"./config":102,"./param":106,"./utils":112,"bignumber.js":370}],105:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18168,8 +18142,6 @@ SolidityTypeInt.prototype.isType = function (name) { module.exports = SolidityTypeInt; },{"./formatters":104,"./type":109}],106:[function(require,module,exports){ -'use strict'; - /* This file is part of web3.js. @@ -18321,8 +18293,6 @@ SolidityParam.encodeList = function (params) { module.exports = SolidityParam; },{"./utils":112}],107:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18357,8 +18327,6 @@ SolidityTypeReal.prototype.isType = function (name) { module.exports = SolidityTypeReal; },{"./formatters":104,"./type":109}],108:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18381,8 +18349,6 @@ SolidityTypeString.prototype.isDynamicType = function () { module.exports = SolidityTypeString; },{"./formatters":104,"./type":109}],109:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityParam = require('./param'); @@ -18635,8 +18601,6 @@ SolidityType.prototype.decode = function (bytes, offset, name) { module.exports = SolidityType; },{"./formatters":104,"./param":106}],110:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18671,8 +18635,6 @@ SolidityTypeUInt.prototype.isType = function (name) { module.exports = SolidityTypeUInt; },{"./formatters":104,"./type":109}],111:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18707,8 +18669,6 @@ SolidityTypeUReal.prototype.isType = function (name) { module.exports = SolidityTypeUReal; },{"./formatters":104,"./type":109}],112:[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; }; /* @@ -19835,8 +19795,6 @@ module.exports = Ledger3; }).call(this,require("buffer").Buffer) },{"buffer":415}],118:[function(require,module,exports){ -'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -23497,6 +23455,12 @@ module.exports=[ "decimal": 4, "type": "default" }, + { + "address": "0x444997b7e7fC830E20089afea3078cd518fCF2A2", + "symbol": "EWO", + "decimal": 18, + "type": "default" + }, { "address": "0x00c4b398500645eb5da00a1a379a88b11683ba01", "symbol": "EXC", diff --git a/dist/js/etherwallet-master.js b/dist/js/etherwallet-master.js index f33be89def..c5f4dc6e12 100644 --- a/dist/js/etherwallet-master.js +++ b/dist/js/etherwallet-master.js @@ -74,27 +74,6 @@ module.exports=[ },{}],9:[function(require,module,exports){ module.exports=[ { "name": "Select a contract...", "address": "", "abi": "" }, - { - "name": "ImmortalPlayerCharacters (IPCs)", - "address": "0x011C77fa577c500dEeDaD364b8af9e8540b808C0", - "abi": '[ { "constant": false, "inputs": [ { "name": "_newGod", "type": "address" } ], "name": "renounceGodhood", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nameModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "randomizeDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "ImmortalPlayerCharacter" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "name": "", "type": "address", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToChangeName", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateIpcContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "setMaxIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "changePriceToModifyDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "ipcPriceInCents", "outputs": [ { "name": "", "type": "uint256", "value": "25" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_adminToRemove", "type": "address" } ], "name": "removeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getAllPositions", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "Ipcs", "outputs": [ { "name": "name", "type": "string", "value": "Eve" }, { "name": "attributeSeed", "type": "bytes32", "value": "0xf2cfccdde23c372c60a76a2795f77ca9cbd241e6dab46d90a0caad74dc9af739" }, { "name": "dna", "type": "bytes32", "value": "0x4a2899f96d0202f1d682a81d4b868499e963b4052cf44d0eed7ded9ee1782190" }, { "name": "experience", "type": "uint128", "value": "0" }, { "name": "timeOfBirth", "type": "uint128", "value": "1521154199" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newMultiplier", "type": "uint256" } ], "name": "changeCustomizationMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newUrl", "type": "string" } ], "name": "updateIpcUrl", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcIdArray", "type": "uint256[]" }, { "name": "_xpIdArray", "type": "uint256[]" } ], "name": "grantBulkXp", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_index", "type": "uint256" } ], "name": "tokenOfOwnerByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_beneficiaryAddress", "type": "address" }, { "name": "_beneficiaryPrice", "type": "uint256" } ], "name": "setSpecialPriceForAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getAdmins", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToMarketInfo", "outputs": [ { "name": "sellPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" }, { "name": "approvalAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" } ], "name": "ipcIdToExperience", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "setIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "buyIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createRandomizedIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignRandomizedIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_developer", "type": "address" } ], "name": "experiencesOfDeveloper", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_index", "type": "uint256" } ], "name": "tokenByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "1" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "mostCurrentIpcAddress", "outputs": [ { "name": "", "type": "address", "value": "0x011c77fa577c500deedad364b8af9e8540b808c0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "maxIpcPrice", "outputs": [ { "name": "", "type": "uint256", "value": "100000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "name": "owner", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalDevelopers", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "releaseNewTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_dna", "type": "bytes32" } ], "name": "customizeDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "value", "type": "bool" } ], "name": "setAutoTrancheRelease", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAdmin", "type": "address" } ], "name": "addAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "customizationPriceMultiplier", "outputs": [ { "name": "", "type": "uint256", "value": "4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcPriceInWei", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalIpcs", "outputs": [ { "name": "", "type": "uint128", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpc", "outputs": [ { "name": "name", "type": "string" }, { "name": "attributeSeed", "type": "bytes32" }, { "name": "dna", "type": "bytes32" }, { "name": "experience", "type": "uint128" }, { "name": "timeOfBirth", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAmount", "type": "uint256" } ], "name": "changeXpPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_xpId", "type": "uint256" } ], "name": "removeExperience", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "tokensOfOwner", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeNameModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpPrice", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_address", "type": "address" }, { "name": "_name", "type": "string" } ], "name": "setDeveloperName", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateMarketPriceContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newInterfaceId", "type": "bytes4" } ], "name": "addSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "rollAttributes", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": "IPC" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "developer", "type": "address" }, { "name": "value", "type": "bool" } ], "name": "changeDeveloperStatus", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_authorization", "type": "bool" } ], "name": "changeAdminAuthorization", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "dnaModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "1000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToOwner", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToModifyDna", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignIpcSeed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcName", "outputs": [ { "name": "result", "type": "bytes32", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCashier", "type": "address" } ], "name": "setCashier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPriceIncrease", "type": "uint256" } ], "name": "changePriceIncreasePerTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_description", "type": "string" } ], "name": "registerNewExperience", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newSize", "type": "uint256" } ], "name": "changeTrancheSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }, { "name": "data", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "removeSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createIpcSeed", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "tokenURI", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpBalance", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "experiences", "outputs": [ { "name": "developer", "type": "address" }, { "name": "description", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "buyXp", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "ownerIpcCount", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_byteToModify", "type": "uint256" }, { "name": "_modifyAmount", "type": "int256" } ], "name": "modifyDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeDnaModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newName", "type": "string" } ], "name": "changeIpcName", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newExec", "type": "address" } ], "name": "setExec", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_xpId", "type": "uint256" } ], "name": "grantXpToIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "developer", "type": "address" }, { "indexed": true, "name": "xpId", "type": "uint256" } ], "name": "ExperienceEarned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_to", "type": "string" } ], "name": "NameChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_seller", "type": "address" }, { "indexed": true, "name": "_buyer", "type": "address" }, { "indexed": false, "name": "price", "type": "uint256" } ], "name": "Bought", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "from", "type": "uint256" }, { "indexed": false, "name": "to", "type": "uint256" } ], "name": "PriceChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "owner", "type": "address" }, { "indexed": false, "name": "name", "type": "string" } ], "name": "Created", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "dna", "type": "bytes32" }, { "indexed": false, "name": "attributes", "type": "bytes32" } ], "name": "Substantiated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "to", "type": "bytes32" } ], "name": "DnaModified", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_from", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_approved", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_operator", "type": "address" }, { "indexed": false, "name": "_approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" } ]' - }, - { - "name": "ROCK2PAY", - "address": "0x0E3de3B0E3D617FD8D1D8088639bA877feb4d742", - "comment": "", - "abi": '[{"constant": true,"inputs": [{ "name": "_owner", "type": "address" }],"name": "balanceOf","outputs": [{ "name": "balance", "type": "uint256" }],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{ "name": "to", "type": "address" },{ "name": "tokens", "type": "uint256" }],"name": "transfer","outputs": [{ "name": "success", "type": "bool" }],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "addTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "addTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_newState", "type": "uint8" }],"name": "changeState","outputs": [],"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": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "decreaseTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "decreaseTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","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": "_amount", "type": "uint256" },{ "name": "_address", "type": "address" }],"name": "requestPayout","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "state","outputs": [{ "name": "", "type": "uint8" }],"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": "tech","outputs": [{ "name": "", "type": "address" }],"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": "newOwner", "type": "address" }],"name": "transferOwnership","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "newTech", "type": "address" }],"name": "transferTech","outputs": [],"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": "value", "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"}]' - }, - { - "name": "TangguoTaoToken", - "address": "0xfA0eF5E034CaE1AE752d59bdb8aDcDe37Ed7aB97", - "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":"INITIAL_SUPPLY","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":false,"inputs":[],"name":"unpause","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":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","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":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","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":"_owner","type":"address"},{"name":"_spender","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":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"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":"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": "PAX", - "address": "0x8e870d67f660d95d5be530380d0ec0bd388289e1", - "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": "_newLawEnforcementRole","type": "address"}],"name": "setLawEnforcementRole","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "unpause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "unfreeze","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_newSupplyController","type": "address"}],"name": "setSupplyController","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "paused","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "balanceOf","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [],"name": "initialize","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "pause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "freeze","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": "_value","type": "uint256"}],"name": "decreaseSupply","outputs": [{"name": "success","type": "bool"}],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "lawEnforcementRole","outputs": [{"name": "","type": "address"}],"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": "_value","type": "uint256"}],"name": "increaseSupply","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": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "wipeFrozenAddress","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "isFrozen","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [],"name": "supplyController","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": [],"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"},{"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": "oldOwner","type": "address"},{"indexed"true,"name": "newOwner","type": "address"}],"name": "OwnershipTransferred","type": "event"},{"anonymous": false,"inputs": [],"name": "Pause","type": "event"},{"anonymous": false,"inputs": [],"name": "Unpause","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressFrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressUnfrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "FrozenAddressWiped","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldLawEnforcementRole","type": "address"},{"indexed": true,"name": "newLawEnforcementRole","type": "address"}],"name": "LawEnforcementRoleSet","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "to","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyIncreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "from","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyDecreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldSupplyController","type": "address"},{"indexed": true,"name": "newSupplyController","type": "address"}],"name": "SupplyControllerSet","type": "event"}]' - }, { "name": "ADST - AdShares", "address": "0x422866a8F0b032c5cf1DfBDEf31A20F4509562b0", @@ -389,6 +368,11 @@ module.exports=[ "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": "ImmortalPlayerCharacters (IPCs)", + "address": "0x011C77fa577c500dEeDaD364b8af9e8540b808C0", + "abi": '[ { "constant": false, "inputs": [ { "name": "_newGod", "type": "address" } ], "name": "renounceGodhood", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nameModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "randomizeDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "ImmortalPlayerCharacter" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "name": "", "type": "address", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToChangeName", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateIpcContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "setMaxIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPrice", "type": "uint256" } ], "name": "changePriceToModifyDna", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "ipcPriceInCents", "outputs": [ { "name": "", "type": "uint256", "value": "25" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_adminToRemove", "type": "address" } ], "name": "removeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getAllPositions", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "Ipcs", "outputs": [ { "name": "name", "type": "string", "value": "Eve" }, { "name": "attributeSeed", "type": "bytes32", "value": "0xf2cfccdde23c372c60a76a2795f77ca9cbd241e6dab46d90a0caad74dc9af739" }, { "name": "dna", "type": "bytes32", "value": "0x4a2899f96d0202f1d682a81d4b868499e963b4052cf44d0eed7ded9ee1782190" }, { "name": "experience", "type": "uint128", "value": "0" }, { "name": "timeOfBirth", "type": "uint128", "value": "1521154199" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newMultiplier", "type": "uint256" } ], "name": "changeCustomizationMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newUrl", "type": "string" } ], "name": "updateIpcUrl", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcIdArray", "type": "uint256[]" }, { "name": "_xpIdArray", "type": "uint256[]" } ], "name": "grantBulkXp", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_index", "type": "uint256" } ], "name": "tokenOfOwnerByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_beneficiaryAddress", "type": "address" }, { "name": "_beneficiaryPrice", "type": "uint256" } ], "name": "setSpecialPriceForAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getAdmins", "outputs": [ { "name": "", "type": "address[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToMarketInfo", "outputs": [ { "name": "sellPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryPrice", "type": "uint32", "value": "0" }, { "name": "beneficiaryAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" }, { "name": "approvalAddress", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" } ], "name": "ipcIdToExperience", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "setIpcPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newPrice", "type": "uint256" } ], "name": "buyIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createRandomizedIpc", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignRandomizedIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_developer", "type": "address" } ], "name": "experiencesOfDeveloper", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_index", "type": "uint256" } ], "name": "tokenByIndex", "outputs": [ { "name": "", "type": "uint256", "value": "1" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "mostCurrentIpcAddress", "outputs": [ { "name": "", "type": "address", "value": "0x011c77fa577c500deedad364b8af9e8540b808c0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "maxIpcPrice", "outputs": [ { "name": "", "type": "uint256", "value": "100000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "name": "owner", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalDevelopers", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "releaseNewTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_dna", "type": "bytes32" } ], "name": "customizeDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "value", "type": "bool" } ], "name": "setAutoTrancheRelease", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAdmin", "type": "address" } ], "name": "addAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "customizationPriceMultiplier", "outputs": [ { "name": "", "type": "uint256", "value": "4" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcPriceInWei", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalIpcs", "outputs": [ { "name": "", "type": "uint128", "value": "520" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpc", "outputs": [ { "name": "name", "type": "string" }, { "name": "attributeSeed", "type": "bytes32" }, { "name": "dna", "type": "bytes32" }, { "name": "experience", "type": "uint128" }, { "name": "timeOfBirth", "type": "uint128" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAmount", "type": "uint256" } ], "name": "changeXpPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_xpId", "type": "uint256" } ], "name": "removeExperience", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "tokensOfOwner", "outputs": [ { "name": "", "type": "uint256[]", "value": [] } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeNameModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpPrice", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_address", "type": "address" }, { "name": "_name", "type": "string" } ], "name": "setDeveloperName", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newAddress", "type": "address" } ], "name": "updateMarketPriceContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newInterfaceId", "type": "bytes4" } ], "name": "addSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "rollAttributes", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": "IPC" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "developer", "type": "address" }, { "name": "value", "type": "bool" } ], "name": "changeDeveloperStatus", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_authorization", "type": "bool" } ], "name": "changeAdminAuthorization", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "dnaModificationLevelRequirement", "outputs": [ { "name": "", "type": "uint256", "value": "1000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "ipcToOwner", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "priceToModifyDna", "outputs": [ { "name": "", "type": "uint256", "value": "100" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" }, { "name": "_owner", "type": "address" } ], "name": "createAndAssignIpcSeed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_ipcId", "type": "uint256" } ], "name": "getIpcName", "outputs": [ { "name": "result", "type": "bytes32", "value": "0x" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCashier", "type": "address" } ], "name": "setCashier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newPriceIncrease", "type": "uint256" } ], "name": "changePriceIncreasePerTranche", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_description", "type": "string" } ], "name": "registerNewExperience", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newSize", "type": "uint256" } ], "name": "changeTrancheSize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }, { "name": "data", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_interfaceId", "type": "bytes4" } ], "name": "removeSupportedInterface", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_price", "type": "uint256" } ], "name": "createIpcSeed", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_tokenId", "type": "uint256" } ], "name": "tokenURI", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getXpBalance", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "experiences", "outputs": [ { "name": "developer", "type": "address" }, { "name": "description", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "buyXp", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "ownerIpcCount", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_byteToModify", "type": "uint256" }, { "name": "_modifyAmount", "type": "int256" } ], "name": "modifyDna", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newReq", "type": "uint256" } ], "name": "changeDnaModificationLevelRequirement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_newName", "type": "string" } ], "name": "changeIpcName", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "name": "", "type": "bool", "value": false } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newExec", "type": "address" } ], "name": "setExec", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_ipcId", "type": "uint256" }, { "name": "_xpId", "type": "uint256" } ], "name": "grantXpToIpc", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "developer", "type": "address" }, { "indexed": true, "name": "xpId", "type": "uint256" } ], "name": "ExperienceEarned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_to", "type": "string" } ], "name": "NameChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "_seller", "type": "address" }, { "indexed": true, "name": "_buyer", "type": "address" }, { "indexed": false, "name": "price", "type": "uint256" } ], "name": "Bought", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_tokenId", "type": "uint256" }, { "indexed": false, "name": "from", "type": "uint256" }, { "indexed": false, "name": "to", "type": "uint256" } ], "name": "PriceChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": true, "name": "owner", "type": "address" }, { "indexed": false, "name": "name", "type": "string" } ], "name": "Created", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "dna", "type": "bytes32" }, { "indexed": false, "name": "attributes", "type": "bytes32" } ], "name": "Substantiated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "tokenId", "type": "uint256" }, { "indexed": false, "name": "to", "type": "bytes32" } ], "name": "DnaModified", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_from", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_approved", "type": "address" }, { "indexed": true, "name": "_tokenId", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_operator", "type": "address" }, { "indexed": false, "name": "_approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" } ]' + }, { "name": "Ink Protocol", "address": "0xBC86727E770de68B1060C91f6BB6945c73e10388", @@ -539,6 +523,11 @@ module.exports=[ "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": "PAX", + "address": "0x8e870d67f660d95d5be530380d0ec0bd388289e1", + "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": "_newLawEnforcementRole","type": "address"}],"name": "setLawEnforcementRole","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "unpause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "unfreeze","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_newSupplyController","type": "address"}],"name": "setSupplyController","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "paused","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "balanceOf","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [],"name": "initialize","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [],"name": "pause","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "freeze","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": "_value","type": "uint256"}],"name": "decreaseSupply","outputs": [{"name": "success","type": "bool"}],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "lawEnforcementRole","outputs": [{"name": "","type": "address"}],"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": "_value","type": "uint256"}],"name": "increaseSupply","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": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{"name": "_addr","type": "address"}],"name": "wipeFrozenAddress","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [{"name": "_addr","type": "address"}],"name": "isFrozen","outputs": [{"name": "","type": "bool"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [],"name": "supplyController","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": [],"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"},{"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": "oldOwner","type": "address"},{"indexed"true,"name": "newOwner","type": "address"}],"name": "OwnershipTransferred","type": "event"},{"anonymous": false,"inputs": [],"name": "Pause","type": "event"},{"anonymous": false,"inputs": [],"name": "Unpause","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressFrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "AddressUnfrozen","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "addr","type": "address"}],"name": "FrozenAddressWiped","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldLawEnforcementRole","type": "address"},{"indexed": true,"name": "newLawEnforcementRole","type": "address"}],"name": "LawEnforcementRoleSet","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "to","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyIncreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "from","type": "address"},{"indexed": false,"name": "value","type": "uint256"}],"name": "SupplyDecreased","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"name": "oldSupplyController","type": "address"},{"indexed": true,"name": "newSupplyController","type": "address"}],"name": "SupplyControllerSet","type": "event"}]' + }, { "name": "Peculium", "address": "0x3618516F45CD3c913F81F9987AF41077932Bc40d", @@ -575,11 +564,11 @@ module.exports=[ "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":"creationBlock","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":"_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":false,"inputs":[{"name":"_newController","type":"address"}],"name":"changeController","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_blockNumber","type":"uint256"}],"name":"balanceOfAt","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":"_cloneTokenName","type":"string"},{"name":"_cloneDecimalUnits","type":"uint8"},{"name":"_cloneTokenSymbol","type":"string"},{"name":"_snapshotBlock","type":"uint256"},{"name":"_transfersEnabled","type":"bool"}],"name":"createCloneToken","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":"parentToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"generateTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_blockNumber","type":"uint256"}],"name":"totalSupplyAt","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":"transfersEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentSnapShotBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"destroyTokens","outputs":[{"name":"","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":"_token","type":"address"}],"name":"claimTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenFactory","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_transfersEnabled","type":"bool"}],"name":"enableTransfers","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_token","type":"address"},{"indexed":true,"name":"_controller","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"ClaimedTokens","type":"event"},{"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":"_cloneToken","type":"address"},{"indexed":false,"name":"_snapshotBlock","type":"uint256"}],"name":"NewCloneToken","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"}]' }, - { - "name": "PUC", - "address": "0xef6b4ce8c9bc83744fbcde2657b32ec18790458a", - "abi": '[{"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":"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":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"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":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","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"}]' - }, + { + "name": "PUC", + "address": "0xef6b4ce8c9bc83744fbcde2657b32ec18790458a", + "abi": '[{"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":"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":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"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":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","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"}]' + }, { "name": "Q - TiiQu Network", "address": "0x2C3C1F05187dBa7A5f2Dd47Dca57281C4d4F183F", @@ -604,6 +593,12 @@ module.exports=[ "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": "ROCK2PAY", + "address": "0x0E3de3B0E3D617FD8D1D8088639bA877feb4d742", + "comment": "", + "abi": '[{"constant": true,"inputs": [{ "name": "_owner", "type": "address" }],"name": "balanceOf","outputs": [{ "name": "balance", "type": "uint256" }],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{ "name": "to", "type": "address" },{ "name": "tokens", "type": "uint256" }],"name": "transfer","outputs": [{ "name": "success", "type": "bool" }],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "addTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "addTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_newState", "type": "uint8" }],"name": "changeState","outputs": [],"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": "_address", "type": "address" },{ "name": "_amount", "type": "uint256" }],"name": "decreaseTokens","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "_address", "type": "address[]" },{ "name": "_amount", "type": "uint256[]" }],"name": "decreaseTokensMulti","outputs": [],"payable": false,"stateMutability": "nonpayable","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": "_amount", "type": "uint256" },{ "name": "_address", "type": "address" }],"name": "requestPayout","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "state","outputs": [{ "name": "", "type": "uint8" }],"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": "tech","outputs": [{ "name": "", "type": "address" }],"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": "newOwner", "type": "address" }],"name": "transferOwnership","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{ "name": "newTech", "type": "address" }],"name": "transferTech","outputs": [],"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": "value", "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"}]' + }, { "name": "SGelder", "address": "0xa1ccc166faf0E998b3E33225A1A0301B1C86119D", @@ -665,6 +660,11 @@ module.exports=[ "abi": '[{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_operator","type":"address"},{"indexed":false,"name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"constant":false,"inputs":[{"name":"_approved","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_newOwner","type":"address"}],"name":"grantToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_nftId","type":"uint256"}],"name":"Personalized","type":"event"},{"constant":false,"inputs":[{"name":"_squareId","type":"uint256"},{"name":"_rgbData","type":"bytes"},{"name":"_title","type":"string"},{"name":"_href","type":"string"}],"name":"personalizeSquare","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"constant":false,"inputs":[{"name":"_nftId","type":"uint256"}],"name":"purchase","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"},{"name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_operator","type":"address"},{"name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_executiveOfficerAddress","type":"address"}],"name":"setExecutiveOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_financialOfficerAddress","type":"address"}],"name":"setFinancialOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_operatingOfficerAddress","type":"address"}],"name":"setOperatingOfficer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"executiveOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"financialOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"operatingOfficerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"promoCreatedCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"suSquares","outputs":[{"name":"version","type":"uint256"},{"name":"rgbData","type":"bytes"},{"name":"title","type":"string"},{"name":"href","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"_tokenId","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"_tokenURI","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]' }, + { + "name": "TangguoTaoToken", + "address": "0xfA0eF5E034CaE1AE752d59bdb8aDcDe37Ed7aB97", + "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":"INITIAL_SUPPLY","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":false,"inputs":[],"name":"unpause","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":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","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":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","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":"_owner","type":"address"},{"name":"_spender","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":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"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":"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": "Telcoin Redeem", "address": "0x6D9FE564C9B1C81C305e066346dF73de6cF9295f", @@ -988,8 +988,6 @@ bity.post = function (path, data, callback) { module.exports = bity; },{}],27:[function(require,module,exports){ -"use strict"; - var darklist = function darklist() { return [{ address: "0x8abe0a9b8A1C8a003354E61F3ed8befdeb7D2CEc", @@ -9267,8 +9265,6 @@ var walletGenCtrl = function walletGenCtrl($scope) { module.exports = walletGenCtrl; },{}],51:[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) @@ -10018,8 +10014,6 @@ var walletDecryptDrtv = function walletDecryptDrtv() { module.exports = walletDecryptDrtv; },{"./walletDecryptDrtv.html":60}],62:[function(require,module,exports){ -'use strict'; - var ens = require('./ens'); var domainsaleInterface = require('./domainsaleConfigs/domainsaleABI.json'); @@ -10601,8 +10595,6 @@ module.exports=[ },{}],64:[function(require,module,exports){ (function (Buffer){ -'use strict'; - function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } var uts46 = require('idna-uts46'); @@ -14146,8 +14138,6 @@ module.exports={ } },{}],77:[function(require,module,exports){ -'use strict'; - function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } var mainKyberNetworkABI = require('./kyberConfig/KyberNetworkABI.json'); @@ -17454,8 +17444,6 @@ var walletService = function walletService() { module.exports = walletService; },{}],98:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -17484,8 +17472,6 @@ SolidityTypeAddress.prototype.isType = function (name) { module.exports = SolidityTypeAddress; },{"./formatters":104,"./type":109}],99:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -17514,8 +17500,6 @@ SolidityTypeBool.prototype.isType = function (name) { module.exports = SolidityTypeBool; },{"./formatters":104,"./type":109}],100:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -17547,8 +17531,6 @@ SolidityTypeBytes.prototype.isType = function (name) { module.exports = SolidityTypeBytes; },{"./formatters":104,"./type":109}],101:[function(require,module,exports){ -'use strict'; - /* This file is part of web3.js. @@ -17800,8 +17782,6 @@ var coder = new SolidityCoder([new SolidityTypeAddress(), new SolidityTypeBool() module.exports = coder; },{"./address":98,"./bool":99,"./bytes":100,"./dynamicbytes":103,"./formatters":104,"./int":105,"./real":107,"./string":108,"./uint":110,"./ureal":111,"./utils":112}],102:[function(require,module,exports){ -'use strict'; - /* This file is part of web3.js. @@ -17853,8 +17833,6 @@ module.exports = { }; },{"bignumber.js":370}],103:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -17877,8 +17855,6 @@ SolidityTypeDynamicBytes.prototype.isDynamicType = function () { module.exports = SolidityTypeDynamicBytes; },{"./formatters":104,"./type":109}],104:[function(require,module,exports){ -'use strict'; - /* This file is part of web3.js. @@ -18132,8 +18108,6 @@ module.exports = { }; },{"./config":102,"./param":106,"./utils":112,"bignumber.js":370}],105:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18168,8 +18142,6 @@ SolidityTypeInt.prototype.isType = function (name) { module.exports = SolidityTypeInt; },{"./formatters":104,"./type":109}],106:[function(require,module,exports){ -'use strict'; - /* This file is part of web3.js. @@ -18321,8 +18293,6 @@ SolidityParam.encodeList = function (params) { module.exports = SolidityParam; },{"./utils":112}],107:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18357,8 +18327,6 @@ SolidityTypeReal.prototype.isType = function (name) { module.exports = SolidityTypeReal; },{"./formatters":104,"./type":109}],108:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18381,8 +18349,6 @@ SolidityTypeString.prototype.isDynamicType = function () { module.exports = SolidityTypeString; },{"./formatters":104,"./type":109}],109:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityParam = require('./param'); @@ -18635,8 +18601,6 @@ SolidityType.prototype.decode = function (bytes, offset, name) { module.exports = SolidityType; },{"./formatters":104,"./param":106}],110:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18671,8 +18635,6 @@ SolidityTypeUInt.prototype.isType = function (name) { module.exports = SolidityTypeUInt; },{"./formatters":104,"./type":109}],111:[function(require,module,exports){ -'use strict'; - var f = require('./formatters'); var SolidityType = require('./type'); @@ -18707,8 +18669,6 @@ SolidityTypeUReal.prototype.isType = function (name) { module.exports = SolidityTypeUReal; },{"./formatters":104,"./type":109}],112:[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; }; /* @@ -19835,8 +19795,6 @@ module.exports = Ledger3; }).call(this,require("buffer").Buffer) },{"buffer":415}],118:[function(require,module,exports){ -'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -23497,6 +23455,12 @@ module.exports=[ "decimal": 4, "type": "default" }, + { + "address": "0x444997b7e7fC830E20089afea3078cd518fCF2A2", + "symbol": "EWO", + "decimal": 18, + "type": "default" + }, { "address": "0x00c4b398500645eb5da00a1a379a88b11683ba01", "symbol": "EXC", diff --git a/package-lock.json b/package-lock.json index c401bb4b38..c3c5ab22a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@myetherwallet/mewconnect-web-client": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@myetherwallet/mewconnect-web-client/-/mewconnect-web-client-1.0.8.tgz", - "integrity": "sha512-J9psxC83cL+506woClRR6yeX9yavQn3nMXrDIiiyGxaDZ5gXo19QGGS7/ehhiQcdASKKh0AqlxDt+7+r/7q8tw==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@myetherwallet/mewconnect-web-client/-/mewconnect-web-client-1.0.9.tgz", + "integrity": "sha512-K65HPEBTpV5BeazpettGhhLMZBjYQa9Jz3pLd6Vf8oBCga3RsCORASdo1jPfoJds5skjiIuz9Uo6kCEquh034g==", "requires": { "browser-or-node": "^1.1.0", "debug": "^4.0.1", @@ -19,7 +19,8 @@ "mocha": "^5.2.0", "secp256k1": "^3.5.2", "simple-peer": "^9.1.2", - "socket.io-client": "^2.1.1" + "socket.io-client": "^2.1.1", + "webrtc-adapter": "^6.4.3" }, "dependencies": { "@babel/code-frame": { @@ -7146,6 +7147,7 @@ "version": "0.1.4", "resolved": false, "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -7467,7 +7469,8 @@ "is-buffer": { "version": "1.1.6", "resolved": false, - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "optional": true }, "is-builtin-module": { "version": "1.0.0", @@ -7565,6 +7568,7 @@ "version": "3.2.2", "resolved": false, "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -7611,7 +7615,8 @@ "longest": { "version": "1.0.1", "resolved": false, - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=" + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "optional": true }, "lru-cache": { "version": "4.1.3", @@ -7877,7 +7882,8 @@ "repeat-string": { "version": "1.6.1", "resolved": false, - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "optional": true }, "require-directory": { "version": "2.1.1", @@ -9587,6 +9593,14 @@ "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz", "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==" }, + "rtcpeerconnection-shim": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/rtcpeerconnection-shim/-/rtcpeerconnection-shim-1.2.14.tgz", + "integrity": "sha512-/sl1vgarkFPU2rbXy+EMmytMQIzCKNbIm3fChjPnsdytKAROgoivB0KLE7PQRjKx/d/nr/Yx+6qu0/eCpoxn/A==", + "requires": { + "sdp": "^2.6.0" + } + }, "run-async": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", @@ -9921,6 +9935,11 @@ "ajv-keywords": "^3.1.0" } }, + "sdp": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/sdp/-/sdp-2.9.0.tgz", + "integrity": "sha512-XAVZQO4qsfzVTHorF49zCpkdxiGmPNjA8ps8RcJGtGP3QJ/A8I9/SVg/QnkAFDMXIyGbHZBBFwYBw6WdnhT96w==" + }, "secp256k1": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.5.2.tgz", @@ -11768,6 +11787,15 @@ } } }, + "webrtc-adapter": { + "version": "6.4.3", + "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-6.4.3.tgz", + "integrity": "sha512-hWbIPXnCLsDP9QHtIM6LF8wjQ73FmgZxkCNS7poAAwRi2lGZfiu8FJq7Su5SO7fbzufaQ7flmQzGdepxerzJvQ==", + "requires": { + "rtcpeerconnection-shim": "^1.2.14", + "sdp": "^2.9.0" + } + }, "whatwg-encoding": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz",